Skip to content

Latest commit

 

History

History
executable file
·
143 lines (85 loc) · 5.89 KB

File metadata and controls

executable file
·
143 lines (85 loc) · 5.89 KB

EligibilityRequirement

(eligibility_requirement)

Available Operations

  • create - Create Eligibility Requirement
  • delete - Delete Eligibility Requirement
  • get - Get Eligibility Requirement
  • update - Update Eligibility Requirement

create

Create Eligibility Requirement

Example Usage

import wingspan
from wingspan.models import shared

s = wingspan.Wingspan()

req = shared.EligibilityRequirementCreateRequest(
    requirement_type=shared.EligibilityRequirementCreateRequestRequirementType.SIGNATURE,
)

res = s.eligibility_requirement.create(req)

if res.eligibility_requirement is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
request shared.EligibilityRequirementCreateRequest ✔️ The request object to use for the request.

Response

operations.CreateEligibilityRequirementResponse

delete

Delete Eligibility Requirement

Example Usage

import wingspan
from wingspan.models import operations

s = wingspan.Wingspan()


res = s.eligibility_requirement.delete(id='program')

if res.eligibility_requirements is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
id str ✔️ Unique identifier

Response

operations.DeleteEligibilityRequirementResponse

get

Get Eligibility Requirement

Example Usage

import wingspan
from wingspan.models import operations

s = wingspan.Wingspan()


res = s.eligibility_requirement.get(id='female')

if res.eligibility_requirements is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
id str ✔️ Unique identifier

Response

operations.GetEligibilityRequirementResponse

update

Update Eligibility Requirement

Example Usage

import wingspan
from wingspan.models import operations, shared

s = wingspan.Wingspan()


res = s.eligibility_requirement.update(id='Van', eligibility_requirement_update_request=shared.EligibilityRequirementUpdateRequest(
    requirement_type=shared.EligibilityRequirementUpdateRequestRequirementType.SIGNATURE,
))

if res.eligibility_requirements is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
id str ✔️ Unique identifier
eligibility_requirement_update_request Optional[shared.EligibilityRequirementUpdateRequest] N/A

Response

operations.UpdateEligibilityRequirementResponse