Client

The GraphQLClient provides direct access to generated GraphQL operations.

Most users should prefer GPPClient and its domains.

Use the generated client when you need low-level access to generated operations or want to inspect exact return types.

API Reference

class gpp_client.generated.client.GraphQLClient(url: str = '', headers: dict[str, str] | None = None, http_client: AsyncClient | None = None, ws_url: str = '', ws_headers: dict[str, Any] | None = None, ws_origin: str | None = None, ws_connection_init_payload: dict[str, Any] | None = None)[source]

Bases: AsyncBaseClient

async clone_observation(input: CloneObservationInput, **kwargs: Any) CloneObservation[source]
async clone_target(target_id: Any, include_deleted: bool, properties: TargetPropertiesInput | None | UnsetType = UNSET, replace_in: list[Any] | None | UnsetType = UNSET, **kwargs: Any) CloneTarget[source]
async create_call_for_proposals(properties: CallForProposalsPropertiesInput | None | UnsetType = UNSET, **kwargs: Any) CreateCallForProposals[source]
async create_observation(input: CreateObservationInput, **kwargs: Any) CreateObservation[source]
async create_program(include_deleted: bool, properties: ProgramPropertiesInput | None | UnsetType = UNSET, **kwargs: Any) CreateProgram[source]
async create_target_by_program_id(program_id: Any, properties: TargetPropertiesInput, include_deleted: bool, **kwargs: Any) CreateTargetByProgramId[source]
async create_target_by_program_reference(program_reference: Any, properties: TargetPropertiesInput, include_deleted: bool, **kwargs: Any) CreateTargetByProgramReference[source]
async create_target_by_proposal_reference(proposal_reference: Any, properties: TargetPropertiesInput, include_deleted: bool, **kwargs: Any) CreateTargetByProposalReference[source]
async delete_call_for_proposals_by_id(call_for_proposals_id: Any, **kwargs: Any) DeleteCallForProposalsById[source]
async delete_observation_by_id(observation_id: Any, **kwargs: Any) DeleteObservationById[source]
async delete_observation_by_reference(observation_reference: Any, **kwargs: Any) DeleteObservationByReference[source]
async delete_program_by_id(program_id: Any, **kwargs: Any) DeleteProgramById[source]
async delete_target_by_id(target_id: Any, **kwargs: Any) DeleteTargetById[source]
async execute_custom_operation(*fields: GraphQLField, operation_type: OperationType, operation_name: str) dict[str, Any][source]
async get_call_for_proposals(call_for_proposals_id: Any, **kwargs: Any) GetCallForProposals[source]
async get_calls_for_proposals(include_deleted: bool, where: WhereCallForProposals | None | UnsetType = UNSET, offset: Any | None | UnsetType = UNSET, limit: Any | None | UnsetType = UNSET, **kwargs: Any) GetCallsForProposals[source]
async get_goats_observations(program_id: Any, **kwargs: Any) GetGOATSObservations[source]
async get_goats_programs(**kwargs: Any) GetGOATSPrograms[source]
async get_observation(observation_id: Any | None | UnsetType = UNSET, observation_reference: Any | None | UnsetType = UNSET, **kwargs: Any) GetObservation[source]
async get_observation_attachments_by_id(observation_id: Any, **kwargs: Any) GetObservationAttachmentsById[source]
async get_observation_attachments_by_reference(observation_reference: Any, **kwargs: Any) GetObservationAttachmentsByReference[source]
async get_observation_workflow_state_by_id(observation_id: Any, **kwargs: Any) GetObservationWorkflowStateById[source]
async get_observation_workflow_state_by_reference(observation_reference: Any, **kwargs: Any) GetObservationWorkflowStateByReference[source]
async get_observations(include_deleted: bool, where: WhereObservation | None | UnsetType = UNSET, offset: Any | None | UnsetType = UNSET, limit: Any | None | UnsetType = UNSET, **kwargs: Any) GetObservations[source]
async get_program_attachments_by_id(program_id: Any, **kwargs: Any) GetProgramAttachmentsById[source]
async get_program_attachments_by_proposal_reference(proposal_reference: Any, **kwargs: Any) GetProgramAttachmentsByProposalReference[source]
async get_program_attachments_by_reference(program_reference: Any, **kwargs: Any) GetProgramAttachmentsByReference[source]
async get_program_by_id(program_id: Any, include_deleted: bool, **kwargs: Any) GetProgramById[source]
async get_program_by_proposal_reference(proposal_reference: Any, include_deleted: bool, **kwargs: Any) GetProgramByProposalReference[source]
async get_program_by_reference(program_reference: Any, include_deleted: bool, **kwargs: Any) GetProgramByReference[source]
async get_programs(include_deleted: bool, where: WhereProgram | None | UnsetType = UNSET, offset: Any | None | UnsetType = UNSET, limit: Any | None | UnsetType = UNSET, **kwargs: Any) GetPrograms[source]
async get_scheduler_all_programs_id(today: Any | None | UnsetType = UNSET, **kwargs: Any) GetSchedulerAllProgramsId[source]
async get_scheduler_programs(programs_list: list[Any] | None | UnsetType = UNSET, **kwargs: Any) GetSchedulerPrograms[source]
async get_target_by_id(target_id: Any, include_deleted: bool, **kwargs: Any) GetTargetById[source]
async get_targets(include_deleted: bool, where: WhereTarget | None | UnsetType = UNSET, offset: Any | None | UnsetType = UNSET, limit: Any | None | UnsetType = UNSET, **kwargs: Any) GetTargets[source]
async mutation(*fields: GraphQLField, operation_name: str) dict[str, Any][source]
async obs_calculation_update(program_id: Any | None | UnsetType = UNSET, **kwargs: Any) AsyncIterator[ObsCalculationUpdate][source]
async observation_edit(program_id: Any | None | UnsetType = UNSET, **kwargs: Any) AsyncIterator[ObservationEdit][source]
async ping(**kwargs: Any) Ping[source]
async program_edit(program_id: Any | None | UnsetType = UNSET, **kwargs: Any) AsyncIterator[ProgramEdit][source]
async query(*fields: GraphQLField, operation_name: str) dict[str, Any][source]
async restore_call_for_proposals_by_id(call_for_proposals_id: Any, **kwargs: Any) RestoreCallForProposalsById[source]
async restore_observation_by_id(observation_id: Any, **kwargs: Any) RestoreObservationById[source]
async restore_observation_by_reference(observation_reference: Any, **kwargs: Any) RestoreObservationByReference[source]
async restore_program_by_id(program_id: Any, **kwargs: Any) RestoreProgramById[source]
async restore_target_by_id(target_id: Any, **kwargs: Any) RestoreTargetById[source]
async set_observation_workflow_state(observation_id: Any, state: ObservationWorkflowState, **kwargs: Any) SetObservationWorkflowState[source]
async target_edit(target_edit: Any | None | UnsetType = UNSET, **kwargs: Any) AsyncIterator[TargetEdit][source]
async update_call_for_proposals_by_id(call_for_proposals_id: Any, properties: CallForProposalsPropertiesInput, include_deleted: bool, **kwargs: Any) UpdateCallForProposalsById[source]
async update_calls_for_proposals(properties: CallForProposalsPropertiesInput, include_deleted: bool, where: WhereCallForProposals | None | UnsetType = UNSET, limit: Any | None | UnsetType = UNSET, **kwargs: Any) UpdateCallsForProposals[source]
async update_observation_by_id(observation_id: Any, set_: ObservationPropertiesInput, **kwargs: Any) UpdateObservationById[source]
async update_observation_by_reference(observation_reference: Any, set_: ObservationPropertiesInput, **kwargs: Any) UpdateObservationByReference[source]
async update_observations(input: UpdateObservationsInput, **kwargs: Any) UpdateObservations[source]
async update_program_by_id(program_id: Any, properties: ProgramPropertiesInput, include_deleted: bool, **kwargs: Any) UpdateProgramById[source]
async update_programs(properties: ProgramPropertiesInput, include_deleted: bool, where: WhereProgram | None | UnsetType = UNSET, limit: Any | None | UnsetType = UNSET, **kwargs: Any) UpdatePrograms[source]
async update_target_by_id(target_id: Any, properties: TargetPropertiesInput, include_deleted: bool, **kwargs: Any) UpdateTargetById[source]
async update_targets(properties: TargetPropertiesInput, include_deleted: bool, where: WhereTarget | None | UnsetType = UNSET, limit: Any | None | UnsetType = UNSET, **kwargs: Any) UpdateTargets[source]