Skip to content

Commit

Permalink
Update GraphQL client.
Browse files Browse the repository at this point in the history
  • Loading branch information
Barkin Simsek committed Jul 5, 2024
1 parent d87c9b5 commit a16cbb9
Show file tree
Hide file tree
Showing 2 changed files with 155 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.8.1 (2024-07-04)

### Changes

- Regenerate the graph client.

## 0.8.0 (2024-06-21)

### Changes
Expand Down
151 changes: 149 additions & 2 deletions python/mujinwebstackclient/webstackgraphclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# DO NOT EDIT, THIS FILE WAS AUTO-GENERATED
# GENERATED BY: mujin_webstackclientpy_generategraphclient.py
# GENERATED AGAINST: mujinwebstack/2.10.0+0cdb864bf9c743e90fd76f3184ae020b165398c0
# GENERATED AGAINST: mujinwebstack/2.11.0+76c276bf6635767e6152224e9a5ef121eb9d8265
#

from .webstackgraphclientutils import GraphClientBase
Expand Down Expand Up @@ -78,6 +78,22 @@ def ExistEnvironments(self, environmentIds, resolveReferences=None, units=None,
]
return self._CallSimpleGraphAPI('query', operationName='ExistEnvironments', parameterNameTypeValues=parameterNameTypeValues, returnType='Boolean', fields=fields, timeout=timeout)

def GetAlarmDefinition(self, alarmStatus, fields=None, timeout=None):
"""Get the alarm definition by the alarm status.
Args:
alarmStatus (AlarmStatus):
fields (list or dict, optional): Specifies a subset of fields to return.
timeout (float, optional): Number of seconds to wait for response.
Returns:
AlarmDefinition: An alarm definition entry in the alarm library alarms
"""
parameterNameTypeValues = [
('alarmStatus', 'AlarmStatus!', alarmStatus),
]
return self._CallSimpleGraphAPI('query', operationName='GetAlarmDefinition', parameterNameTypeValues=parameterNameTypeValues, returnType='AlarmDefinition', fields=fields, timeout=timeout)

def GetAppearanceParameters(self, bodyId, environmentId, resolveReferences=None, units=None, fields=None, timeout=None):
"""Get appearance parameters in a body.
Expand Down Expand Up @@ -608,7 +624,68 @@ def GetLogEntry(self, logEntryId, fields=None, timeout=None):
timeout (float, optional): Number of seconds to wait for response.
Returns:
LogEntry: An entry in the logs.
LogEntry: An entry in the logs. The current parent-children level relationship among log entry types:
```
LogEntry
├─ GenericLogEntry
├─ UserLogEntry
├─ DeviceLogEntry
├─ DeviceSnapshotLogEntry
├─ ProductionCycleLogEntry
│ ├─ ProductionCyclePausedLogEntry
│ ├─ ProductionCycleResumedLogEntry
│ ├─ ProductionCycleFinishedLogEntry
│ └─ ProductionOrderRequestLogEntry
│ ├─ ProductionOrderResultLogEntry
│ ├─ OrderCycleLogEntry
│ │ ├─ OrderCyclePreparedLogEntry
│ │ ├─ OrderCycleResumedLogEntry
│ │ ├─ OrderCycleFinishedLogEntry
│ │ │ └─ OrderCycleFinishAnnotationLogEntry
│ │ ├─ PlanningCycleLogEntry
│ │ ├─ ExecutionCycleLogEntry
│ │ ├─ ProcessedTargetLogEntry
│ │ ├─ PlacedTargetLogEntry
│ │ ├─ VisionContainerDetectionLogEntry
│ │ │ ├─ VisionContainerDetectionFinishedLogEntry
│ │ │ └─ SnapLogEntry
│ │ ├─ VisionObjectDetectionLogEntry
│ │ │ ├─ VisionObjectDetectionFinishedLogEntry
│ │ │ └─ SnapLogEntry
│ │ ├─ VisionExecutionVerificationLogEntry
│ │ │ ├─ VisionExecutionVerificationFinishedLogEntry
│ │ │ └─ SnapLogEntry
│ │ └─ TrajectoryLogEntry
│ ├─ PackFormationOrderCycleLogEntry
│ │ └─ PackFormationOrderCycleFinishedLogEntry
│ ├─ VisionInspectionOrderCycleLogEntry
│ │ ├─ VisionInspectionOrderCycleFinishedLogEntry
│ │ ├─ VisionContainerDetectionLogEntry
│ │ └─ VisionObjectDetectionLogEntry
│ └─ ITLOrderCycleLogEntry
│ └─ ITLOrderCycleFinishedLogEntry
├─ ManualDetectionLogEntry
│ ├─ VisionContainerDetectionLogEntry
│ └─ VisionObjectDetectionLogEntry
├─ CalibrationCycleLogEntry
│ ├─ CalibrationPosesLogEntry
│ ├─ CalibrationObservationPackLogEntry
│ │ └─ CalibrationObservationLogEntry
│ └─ CalibrationResultHandEyeLogEntry
├─ AccountUserChangeLogEntry
├─ AccountGroupChangeLogEntry
├─ AccountRoleChangeLogEntry
├─ AccountUserGroupRelationChangeLogEntry
├─ AccountGroupRoleRelationChangeLogEntry
├─ AccountRolePermissionRelationChangeLogEntry
├─ AccountAccessLogEntry
├─ ManualOperationLogEntry
│ └─ ManualOperationFinishedLogEntry
├─ AlarmLogEntry
│ └─ AlarmResolvedLogEntry
└─ MobileRobotControlSystemLogEntry
```
"""
parameterNameTypeValues = [
('logEntryId', 'String!', logEntryId),
Expand Down Expand Up @@ -684,6 +761,7 @@ def GetModelProcessorState(self, bodyId, environmentId, resolveReferences=None,
def GetModelProcessorTaskState(self, fields=None, timeout=None):
"""Get task state of model processor.
Args:
fields (list or dict, optional): Specifies a subset of fields to return.
timeout (float, optional): Number of seconds to wait for response.
Expand Down Expand Up @@ -1237,6 +1315,23 @@ def IsSensorLinkMoveable(self, bodyName, environmentId, sensorLinkName, fields=N
]
return self._CallSimpleGraphAPI('query', operationName='IsSensorLinkMoveable', parameterNameTypeValues=parameterNameTypeValues, returnType='Boolean', fields=fields, timeout=timeout)

@UseLazyGraphQuery
def ListAlarmDefinitions(self, options=None, fields=None, timeout=None):
"""List all alarm definitions.
Args:
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:
ListAlarmDefinitionsReturnValue:
"""
parameterNameTypeValues = [
('options', 'ListOptionsWithAggregationsInput', options),
]
return self._CallSimpleGraphAPI('query', operationName='ListAlarmDefinitions', parameterNameTypeValues=parameterNameTypeValues, returnType='ListAlarmDefinitionsReturnValue', fields=fields, timeout=timeout)

@UseLazyGraphQuery
def ListApplications(self, options=None, fields=None, timeout=None):
"""List all applications.
Expand Down Expand Up @@ -1306,6 +1401,7 @@ def ListBodies(self, environmentId, options=None, resolveReferences=None, units=
def ListConfigurations(self, options=None, resolveReferences=None, fields=None, timeout=None):
"""List available configurations.
Args:
options (ListOptionsInput, optional): Optional list query parameters, used to filter returned results.
resolveReferences (bool, optional): Whether to operate on resolved configurations. Defaults to operate and return unresolved data.
Expand Down Expand Up @@ -1420,6 +1516,7 @@ def ListElectronicDataSheets(self, options=None, fields=None, timeout=None):
def ListEnvironments(self, options=None, resolveReferences=None, units=None, fields=None, timeout=None):
"""List all environments.
Args:
options (ListOptionsInput, optional): Optional list query parameters, used to filter returned results.
resolveReferences (bool, optional): Whether to operate on resolved bodies in the environment. Defaults to operate and return unresolved data.
Expand Down Expand Up @@ -1746,6 +1843,44 @@ def ListModules(self, moduleTypes=None, options=None, fields=None, timeout=None)
]
return self._CallSimpleGraphAPI('query', operationName='ListModules', parameterNameTypeValues=parameterNameTypeValues, returnType='ListModulesReturnValue', fields=fields, timeout=timeout)

@UseLazyGraphQuery
def ListNonReferencedLogEntries(self, logTypes=None, options=None, fields=None, timeout=None):
"""List log entries that are not referenced by any other log entry.
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:
ListNonReferencedLogEntriesReturnValue:
"""
parameterNameTypeValues = [
('logTypes', '[LogType!]', logTypes),
('options', 'ListOptionsWithAggregationsInput', options),
]
return self._CallSimpleGraphAPI('query', operationName='ListNonReferencedLogEntries', parameterNameTypeValues=parameterNameTypeValues, returnType='ListNonReferencedLogEntriesReturnValue', fields=fields, timeout=timeout)

@UseLazyGraphQuery
def ListNonReferencingLogEntries(self, logTypes=None, options=None, fields=None, timeout=None):
"""List log entries that are not referencing any other log entry.
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:
ListNonReferencingLogEntriesReturnValue:
"""
parameterNameTypeValues = [
('logTypes', '[LogType!]', logTypes),
('options', 'ListOptionsWithAggregationsInput', options),
]
return self._CallSimpleGraphAPI('query', operationName='ListNonReferencingLogEntries', parameterNameTypeValues=parameterNameTypeValues, returnType='ListNonReferencingLogEntriesReturnValue', fields=fields, timeout=timeout)

@UseLazyGraphQuery
def ListOrchestratorModules(self, options=None, fields=None, timeout=None):
"""List orchestrator modules.
Expand Down Expand Up @@ -2300,6 +2435,12 @@ def CommandCalibrationOrchestrator(self, orchestratorId, fields=None, timeout=No
]
return self._CallSimpleGraphAPI('mutation', operationName='CommandCalibrationOrchestrator', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandCalibrationOrchestratorMutations', fields=fields, timeout=timeout)

def CommandFleetOrchestrator(self, orchestratorId, fields=None, timeout=None):
parameterNameTypeValues = [
('orchestratorId', 'String!', orchestratorId),
]
return self._CallSimpleGraphAPI('mutation', operationName='CommandFleetOrchestrator', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandFleetOrchestratorMutations', fields=fields, timeout=timeout)

def CommandOrchestratorMaster(self, fields=None, timeout=None):
parameterNameTypeValues = [
]
Expand Down Expand Up @@ -2413,6 +2554,12 @@ def CommandVisionManager(self, command, options=None, parameters=None, fields=No
]
return self._CallSimpleGraphAPI('mutation', operationName='CommandVisionManager', parameterNameTypeValues=parameterNameTypeValues, returnType='Any', fields=fields, timeout=timeout)

def CommandWarehouseExecutionOrchestrator(self, orchestratorId, fields=None, timeout=None):
parameterNameTypeValues = [
('orchestratorId', 'String!', orchestratorId),
]
return self._CallSimpleGraphAPI('mutation', operationName='CommandWarehouseExecutionOrchestrator', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandWarehouseExecutionOrchestratorMutations', fields=fields, timeout=timeout)

def ConfigureRobotBridges(self, command, parameters=None, fields=None, timeout=None):
parameterNameTypeValues = [
('command', 'String!', command),
Expand Down

0 comments on commit a16cbb9

Please sign in to comment.