Skip to content

Commit

Permalink
Merge pull request #37 from mujin/renameApi20240501
Browse files Browse the repository at this point in the history
Rename API suffix V2 to Ex
  • Loading branch information
ziyan authored May 21, 2024
2 parents bd10773 + 9ca1c99 commit 8abfacb
Showing 1 changed file with 92 additions and 1 deletion.
93 changes: 92 additions & 1 deletion python/mujinwebstackclient/webstackgraphclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,37 @@
#
# DO NOT EDIT, THIS FILE WAS AUTO-GENERATED
# GENERATED BY: mujin_webstackclientpy_generategraphclient.py
# GENERATED AGAINST: mujinwebstack/2.9.0+749e0ec0d5497d539fb7f82379e398878729cc02
# GENERATED AGAINST: mujinwebstack/2.9.11+8b563c5599e8530ab3ccf90e4e75900550e99f74
#

from .webstackgraphclientutils import GraphClientBase
from .webstackgraphclientutils import UseLazyGraphQuery

class GraphQueries:

def CommandPackingOrchestrator(self, orchestratorId, fields=None, timeout=None):
parameterNameTypeValues = [
('orchestratorId', 'String!', orchestratorId),
]
return self._CallSimpleGraphAPI('query', operationName='CommandPackingOrchestrator', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandPackingOrchestratorQueries', fields=fields, timeout=timeout)

def CommandRobotBridgesEx(self, queueId=None, fields=None, timeout=None):
parameterNameTypeValues = [
('queueId', 'String', queueId),
]
return self._CallSimpleGraphAPI('query', operationName='CommandRobotBridgesEx', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandRobotBridgesExQueries', fields=fields, timeout=timeout)

def CommandRobotBridgesV2(self, queueId=None, fields=None, timeout=None):
parameterNameTypeValues = [
('queueId', 'String', queueId),
]
return self._CallSimpleGraphAPI('query', operationName='CommandRobotBridgesV2', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandRobotBridgesV2Queries', fields=fields, timeout=timeout)

def ConfigureRobotBridgesEx(self, fields=None, timeout=None):
parameterNameTypeValues = [
]
return self._CallSimpleGraphAPI('query', operationName='ConfigureRobotBridgesEx', parameterNameTypeValues=parameterNameTypeValues, returnType='ConfigureRobotBridgesExQueries', fields=fields, timeout=timeout)

def ConfigureRobotBridgesV2(self, fields=None, timeout=None):
parameterNameTypeValues = [
]
Expand Down Expand Up @@ -1637,10 +1654,30 @@ def ListLogEntries(self, logTypes=None, options=None, fields=None, timeout=None)
]
return self._CallSimpleGraphAPI('query', operationName='ListLogEntries', parameterNameTypeValues=parameterNameTypeValues, returnType='ListLogEntriesReturnValue', fields=fields, timeout=timeout)

@UseLazyGraphQuery
def ListLogEntriesEx(self, logTypes=None, options=None, fields=None, timeout=None):
"""List available log entries with new aggregation options.
Args:
logTypes ([LogType], optional): Filter by log entry type.
options (ListOptionsWithAggregationsInput, optional):
fields (list or dict, optional): Specifies a subset of fields to return.
timeout (float, optional): Number of seconds to wait for response.
Returns:
ListLogEntriesExReturnValue:
"""
parameterNameTypeValues = [
('logTypes', '[LogType!]', logTypes),
('options', 'ListOptionsWithAggregationsInput', options),
]
return self._CallSimpleGraphAPI('query', operationName='ListLogEntriesEx', parameterNameTypeValues=parameterNameTypeValues, returnType='ListLogEntriesExReturnValue', fields=fields, timeout=timeout)

@UseLazyGraphQuery
def ListLogEntriesV2(self, logTypes=None, options=None, fields=None, timeout=None):
"""List available log entries with new aggregation options.
Args:
logTypes ([LogType], optional): Filter by log entry type.
options (ListOptionsWithAggregationsInput, optional):
Expand Down Expand Up @@ -1871,6 +1908,7 @@ def ListSensorBridgeModules(self, options=None, fields=None, timeout=None):
def ListStatEntries(self, endedAt=None, intervalType=None, options=None, startedAt=None, statTypes=None, fields=None, timeout=None):
"""Lists all or specific types of statistics entries for a given time interval.
Args:
endedAt (DateTime, optional): The time until which statistics entries are requested. Statistics will be returned including the interval that includes this time.
intervalType (str, optional): The length of the intervals (i.e. the resolution) in which the statistic will be returned. One of:
Expand Down Expand Up @@ -1918,6 +1956,31 @@ def ListStatEntries(self, endedAt=None, intervalType=None, options=None, started
]
return self._CallSimpleGraphAPI('query', operationName='ListStatEntries', parameterNameTypeValues=parameterNameTypeValues, returnType='ListStatEntriesReturnValue', fields=fields, timeout=timeout)

@UseLazyGraphQuery
def ListStatEntriesEx(self, endedAt=None, intervalType=None, options=None, startedAt=None, statTypes=None, fields=None, timeout=None):
"""Lists all or specific types of statistics entries for a given time interval, with the new aggregation option.
Args:
endedAt (DateTime, optional): The time until which statistics entries are requested. Statistics will be returned including the interval that includes this time.
intervalType (IntervalType, optional): The length of the intervals (i.e. the resolution) in which the statistic will be returned, defaults to list all.
options (ListOptionsWithAggregationsInput, optional):
startedAt (DateTime, optional): The time from which statistics entries are requested. Statistics will be returned from the interval that includes this time. For example, a request for hourly data starting from 12:30 will return hourly data starting from 12:00.
statTypes ([StatType], optional): The type of statistics entries to list, defaults to list all.
fields (list or dict, optional): Specifies a subset of fields to return.
timeout (float, optional): Number of seconds to wait for response.
Returns:
ListStatEntriesExReturnValue:
"""
parameterNameTypeValues = [
('endedAt', 'DateTime', endedAt),
('intervalType', 'IntervalType', intervalType),
('options', 'ListOptionsWithAggregationsInput', options),
('startedAt', 'DateTime', startedAt),
('statTypes', '[StatType!]', statTypes),
]
return self._CallSimpleGraphAPI('query', operationName='ListStatEntriesEx', parameterNameTypeValues=parameterNameTypeValues, returnType='ListStatEntriesExReturnValue', fields=fields, timeout=timeout)

@UseLazyGraphQuery
def ListTools(self, bodyId, environmentId, options=None, resolveReferences=None, units=None, fields=None, timeout=None):
"""List tools defined on a robot.
Expand Down Expand Up @@ -2270,6 +2333,12 @@ def CommandRobotBridges(self, command, parameters=None, queueId=None, fields=Non
]
return self._CallSimpleGraphAPI('mutation', operationName='CommandRobotBridges', parameterNameTypeValues=parameterNameTypeValues, returnType='Any', fields=fields, timeout=timeout)

def CommandRobotBridgesEx(self, queueId=None, fields=None, timeout=None):
parameterNameTypeValues = [
('queueId', 'String', queueId),
]
return self._CallSimpleGraphAPI('mutation', operationName='CommandRobotBridgesEx', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandRobotBridgesExMutations', fields=fields, timeout=timeout)

def CommandRobotBridgesV2(self, queueId=None, fields=None, timeout=None):
parameterNameTypeValues = [
('queueId', 'String', queueId),
Expand Down Expand Up @@ -4112,6 +4181,28 @@ def MergeEnvironment(self, environment, environmentId, resolveReferences=None, u
]
return self._CallSimpleGraphAPI('mutation', operationName='MergeEnvironment', parameterNameTypeValues=parameterNameTypeValues, returnType='Environment', fields=fields, timeout=timeout)

def MergeEnvironments(self, environmentIds, environments, resolveReferences=None, units=None, fields=None, timeout=None):
"""Merge partial environments to existing environments.
Args:
environmentIds ([String]): IDs of the environments to modify.
environments ([EnvironmentInput]): Properties to be merged on the existing environments.
resolveReferences (bool, optional): Whether to operate on resolved bodies in the environment. Defaults to operate and return unresolved data.
units (UnitSelectionInput, optional): Optional unit selection.
fields (list or dict, optional): Specifies a subset of fields to return.
timeout (float, optional): Number of seconds to wait for response.
Returns:
[Environment]: An OpenRAVE Environment
"""
parameterNameTypeValues = [
('environmentIds', '[String!]!', environmentIds),
('environments', '[EnvironmentInput!]!', environments),
('resolveReferences', 'Boolean', resolveReferences),
('units', 'UnitSelectionInput', units),
]
return self._CallSimpleGraphAPI('mutation', operationName='MergeEnvironments', parameterNameTypeValues=parameterNameTypeValues, returnType='Environment', fields=fields, timeout=timeout)

def MergeOrchestratorMasterConfiguration(self, orchestratorMasterConfiguration, resolveReferences=None, units=None, fields=None, timeout=None):
"""Update configuration by merging a partial configuration into it.
Expand Down

0 comments on commit 8abfacb

Please sign in to comment.