everyaction.services.Worksites

class everyaction.services.Worksites(ea: EAClient)

Represents the Worksites service.

Methods

create_work_area(**kwargs)

See POST /worksites/{worksiteId}/workAreas.

get(worksite_id)

See GET /worksites/{worksiteId}.

list(*[, limit])

See GET /worksites.

create_work_area(**kwargs: EAValue) WorkArea

See POST /worksites/{worksiteId}/workAreas.

Parameters

kwargs – The applicable query arguments and JSON data for the request. A WorkArea is appropriate to unpack here.

Returns

The created WorkArea.

Keyword Arguments
get(worksite_id: int) Worksite

See GET /worksites/{worksiteId}.

Parameters

worksite_id – The worksiteId path parameter.

Returns

The resulting Worksite object.

list(*, limit: Optional[int] = None, **kwargs: EAValue) List[Worksite]

See GET /worksites.

Parameters
  • limit – Maximum number of records to get for this request.

  • kwargs – Applicable query arguments and JSON data for the request.

Returns

List of the resulting Worksite objects.

Keyword Arguments