|
| 1 | +The following are lists of functions supported by the ODM2 Python API |
| 2 | + |
| 3 | +ODM2 API Get Functions |
| 4 | +--- |
| 5 | +**getActions()** |
| 6 | +* Pass nothing - get a list of all Action objects |
| 7 | +* Pass ActionID - get a single Action object |
| 8 | +* Pass ActionType - get a list of all Actions of the type passed |
| 9 | + |
| 10 | +**getAffilations()** |
| 11 | +* Pass nothing - get a list of all affiliation objects |
| 12 | +* Pass a PersonID - get a list of all affilication objects for a person |
| 13 | + |
| 14 | +**getDatasets()** |
| 15 | +* Pass nothing - get a list of all dataset objects |
| 16 | +* Pass a DatasetCode - get a single dataset object |
| 17 | + |
| 18 | +**getEquipment()** |
| 19 | +* Pass nothing - get a list of all equipment objects |
| 20 | + |
| 21 | +**getMethods()** |
| 22 | +* Pass nothing - returns a full list of method objects |
| 23 | +* Pass a MethodID - returns a single method object |
| 24 | +* Pass a MethodCode - returns a single method object |
| 25 | + |
| 26 | +**getModels()** |
| 27 | +* Pass nothing - get a list of all model objects |
| 28 | +* Pass a ModelCode - get a single model object |
| 29 | + |
| 30 | +**getOrganizations()** |
| 31 | +* Pass nothing - returns a list of all organization objects |
| 32 | +* Pass OrganizationID - returns a single organization object |
| 33 | +* Pass OrganizationCode - rturns a single organization object |
| 34 | + |
| 35 | +**getPeople()** |
| 36 | +* Pass nothing - returns a list of all people objects |
| 37 | +* Pass PeopleID - returns a single people object |
| 38 | +* Pass Person Name (which name to pass???) - returns a single people object |
| 39 | + |
| 40 | +**getProcessingLevels()** |
| 41 | +* Pass nothing - returns a full list of processing level objects |
| 42 | +* Pass ProcessingLevelID - returns a single processing level object |
| 43 | +* Pass ProcessingLevelCode - returns a single processing level object |
| 44 | + |
| 45 | +**getRelatedActions()** |
| 46 | +* Pass an ActionID - get a list of Action objects related to the input action along with the relatinship type |
| 47 | + |
| 48 | +**getRelatedModels()** |
| 49 | +* Pass a ModelID - get a list of model objects related to the model having ModelID |
| 50 | +* Pass a ModelCode - get a list of model objects related to the model having ModeCode |
| 51 | + |
| 52 | +**getRelatedSamplingFeatures()** |
| 53 | +* Pass a SamplingFeatureID - get a list of sampling feature objects related to the input sampling feature along with the relationship type |
| 54 | + |
| 55 | +**getResults()** |
| 56 | +* Pass nothing - Returns a list of result objects (without values) with types specific to each result in the list |
| 57 | +* Pass a ResultID - Returns a single result object (without values) with type specific to that result |
| 58 | +* Pass an ActionID - Returns a list of result objects (without values) for an ActionID |
| 59 | +* Pass a ResultType - Returns a list of result objects (without values) of that type |
| 60 | + |
| 61 | +**getResultValues()v |
| 62 | +* Pass a ResultID - Returns a result values object of type that is specific to the result type |
| 63 | +* Pass a ResultID and a date range - returns a result values object of type that is specific to the result type with values between the input date range |
| 64 | +NOTE: Another option here would be to put a flag on getResults that specifies whether values should be returned |
| 65 | + |
| 66 | +**getSamplingFeatures()** |
| 67 | +* Pass nothing - returns a list of all sampling feature objects with each object of type specific to that sampling feature |
| 68 | +* Pass a SamplingFeatureID - returns a single sampling feature object |
| 69 | +* Pass a SamplingFeatureCode - returns a single sampling feature object |
| 70 | +* Pass a SamplingFeatureType - returns a list of sampling feature objects of the type passed in |
| 71 | + |
| 72 | +**getSimulations()** |
| 73 | +* Pass nothing - get a list of all model simuation objects |
| 74 | +* Pass a SimulationName - get a single simulation object |
| 75 | +* Pass an ActionID - get a single simulation object |
| 76 | + |
| 77 | +**getUnits()** |
| 78 | +* Pass nothing - returns a list of all units objects |
| 79 | +* Pass UnitsID - returns a single units object |
| 80 | +* Pass UnitsName - returns a single units object |
| 81 | + |
| 82 | +**getVariables()** |
| 83 | +* Pass nothing - returns full list of variable objects |
| 84 | +* Pass a VariableID - returns a single variable object |
| 85 | +* Pass a VariableCode - returns a single variable object |
| 86 | + |
| 87 | + |
| 88 | +ODM2 API Create Functions |
| 89 | +--- |
| 90 | +**createVariable()** |
| 91 | +**createMethod()** |
| 92 | +**createProcessingLevel()** |
| 93 | +**createSamplingFeature()** |
| 94 | +**createUnit()** |
| 95 | +**createOrganization()** |
| 96 | +**createPerson()** |
| 97 | +**createAffiliation()** |
| 98 | +**createDataset()** |
| 99 | +**createDatasetResults()** |
| 100 | +**createAction()** |
| 101 | +**createRelatedAction()** |
| 102 | +**createResult()** |
| 103 | +**createResultValues()** |
| 104 | +**createSamplingFeature()** |
| 105 | +**createSpatialReference()** |
| 106 | +**createModel()** |
| 107 | +**createRelatedModel()** |
| 108 | +**createSimulation()** |
0 commit comments