Class AllowancesClientImpl
java.lang.Object
co.yellowdog.platform.clients.usage.AllowancesClientImpl
- All Implemented Interfaces:
AllowancesClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllowance
(@NonNull Allowance allowance) boostAllowance
(@NonNull Allowance allowance, int boostHours) boostAllowance
(@NonNull String allowanceId, int boostHours) checkComputeRequirementExhaustion
(@NonNull ComputeRequirement computeRequirement) static AllowancesClientImpl
create
(@NonNull ServicesSchema servicesSchema, @NonNull RetryFactory retryFactory, @NonNull AuthenticationHeadersProvider authenticationHeadersProvider, @NonNull com.fasterxml.jackson.databind.ObjectMapper objectMapper, @NonNull UserAgent userAgent) void
deleteAllowance
(@NonNull Allowance allowance) void
deleteAllowance
(@NonNull String allowanceId) getAllowance
(@NonNull Allowance allowance) getAllowance
(@NonNull String allowanceId) getAllowances
(AllowanceSearch search)
-
Constructor Details
-
AllowancesClientImpl
-
-
Method Details
-
create
public static AllowancesClientImpl create(@NonNull @NonNull ServicesSchema servicesSchema, @NonNull @NonNull RetryFactory retryFactory, @NonNull @NonNull AuthenticationHeadersProvider authenticationHeadersProvider, @NonNull @NonNull com.fasterxml.jackson.databind.ObjectMapper objectMapper, @NonNull @NonNull UserAgent userAgent) -
addAllowance
- Specified by:
addAllowance
in interfaceAllowancesClient
-
deleteAllowance
- Specified by:
deleteAllowance
in interfaceAllowancesClient
-
deleteAllowance
- Specified by:
deleteAllowance
in interfaceAllowancesClient
-
getAllowance
- Specified by:
getAllowance
in interfaceAllowancesClient
-
getAllowance
- Specified by:
getAllowance
in interfaceAllowancesClient
-
boostAllowance
- Specified by:
boostAllowance
in interfaceAllowancesClient
-
boostAllowance
- Specified by:
boostAllowance
in interfaceAllowancesClient
-
getAllowances
- Specified by:
getAllowances
in interfaceAllowancesClient
-
checkComputeRequirementExhaustion
public List<AllowanceExhaustedNotification> checkComputeRequirementExhaustion(@NonNull @NonNull ComputeRequirement computeRequirement) - Specified by:
checkComputeRequirementExhaustion
in interfaceAllowancesClient
-