describeAssetModelInterfaceRelationship method

Future<DescribeAssetModelInterfaceRelationshipResponse> describeAssetModelInterfaceRelationship({
  1. required String assetModelId,
  2. required String interfaceAssetModelId,
})

Retrieves information about an interface relationship between an asset model and an interface asset model.

May throw InternalFailureException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter assetModelId : The ID of the asset model. This can be either the actual ID in UUID format, or else externalId: followed by the external ID.

Parameter interfaceAssetModelId : The ID of the interface asset model. This can be either the actual ID in UUID format, or else externalId: followed by the external ID.

Implementation

Future<DescribeAssetModelInterfaceRelationshipResponse>
    describeAssetModelInterfaceRelationship({
  required String assetModelId,
  required String interfaceAssetModelId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/asset-models/${Uri.encodeComponent(assetModelId)}/interface/${Uri.encodeComponent(interfaceAssetModelId)}/asset-model-interface-relationship',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeAssetModelInterfaceRelationshipResponse.fromJson(response);
}