tcms.rpc.api.build module

tcms.rpc.api.build.create(values)[source]
RPC Build.create(values)

Create a new build object and store it in the database.

Parameters:

values (dict) – Field values for tcms.management.models.Build

Returns:

Serialized tcms.management.models.Build object

Return type:

dict

Raises:
  • ValueError – if input values don’t validate
  • PermissionDenied – if missing management.add_build permission
tcms.rpc.api.build.update(build_id, values)[source]
RPC Build.update(build_id, values)

Updates the fields of the selected build.

Parameters:
Returns:

Serialized tcms.management.models.Build object

Return type:

dict

Raises:
  • Build.DoesNotExist – if build not found
  • PermissionDenied – if missing management.change_build permission
  • ValueError – if input values don’t validate
tcms.rpc.api.build.filter(query=None)[source]
RPC Build.filter(query)

Search and return builds matching query.

Parameters:query (dict) – Field lookups for tcms.management.models.Build
Returns:List of serialized tcms.management.models.Build objects
Return type:list(dict)