@Service public class MeteredUsageApiClientServiceImpl extends Object implements MeteredUsageApiClientService
| Constructor and Description |
|---|
MeteredUsageApiClientServiceImpl(DeveloperSpecificAppmarketCredentialsSupplier credentialsSupplier,
OAuth1RetrofitWrapper oAuth1RetrofitWrapper) |
| Modifier and Type | Method and Description |
|---|---|
APIResult |
reportUsage(String baseUrl,
List<MeteredUsageItem> meteredUsageItems,
boolean billable,
String secretKey,
String secret)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
MeteredUsageItem meteredUsageItem,
boolean billable,
String secretKey,
String secret)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
MeteredUsageItem meteredUsageItem,
boolean billable,
String secretKey,
String secret,
String sourceType)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String secretKey,
List<MeteredUsageItem> meteredUsageItems,
boolean billable)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String idempotentKey,
List<MeteredUsageItem> meteredUsageItems,
boolean billable,
String secretKey,
String secret,
String sourceType)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String secretKey,
MeteredUsageItem meteredUsageItem,
boolean billable)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String secretKey,
MeteredUsageItem meteredUsageItem,
boolean billable,
String sourceType)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String idempotentKey,
MeteredUsageItem meteredUsageItem,
boolean billable,
String secretKey,
String secret)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String secretKey,
String idempotentKey,
List<MeteredUsageItem> meteredUsageItems,
boolean billable)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String secretKey,
String idempotentKey,
List<MeteredUsageItem> meteredUsageItems,
boolean billable,
String sourceType)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
reportUsage(String baseUrl,
String secretKey,
String idempotentKey,
MeteredUsageItem meteredUsageItem,
boolean billable)
Calls the Metered Usage API Endpoint to bill usages.
|
APIResult |
retryableReportUsage(String baseUrl,
String idempotentKey,
List<MeteredUsageItem> meteredUsageItems,
String secretKey,
boolean billable,
String sourceType) |
@Autowired public MeteredUsageApiClientServiceImpl(DeveloperSpecificAppmarketCredentialsSupplier credentialsSupplier, OAuth1RetrofitWrapper oAuth1RetrofitWrapper)
public APIResult reportUsage(String baseUrl, String secretKey, String idempotentKey, MeteredUsageItem meteredUsageItem, boolean billable)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicebaseUrl - from the requestsecretKey - to sign the requestidempotentKey - to make unique callsmeteredUsageItem - usage instance to be reportedbillable - specifies if the usage to be reported is billable or estimatedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public APIResult reportUsage(String baseUrl, String secretKey, MeteredUsageItem meteredUsageItem, boolean billable)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicebaseUrl - from the requestsecretKey - to sign the requestmeteredUsageItem - usage instance to be reportedbillable - specifies if the usage to be reported is billable or estimatedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public APIResult reportUsage(String baseUrl, String secretKey, MeteredUsageItem meteredUsageItem, boolean billable, String sourceType)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicebaseUrl - from the requestsecretKey - to sign the requestmeteredUsageItem - usage instance to be reportedbillable - specifies if the usage to be reported is billable or estimatedsourceType - specifies the type of source that generate the report (ex. aws, azure_csp, azure_modern)APIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public APIResult reportUsage(String baseUrl, String secretKey, List<MeteredUsageItem> meteredUsageItems, boolean billable)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicebaseUrl - from the requestsecretKey - to sign the requestmeteredUsageItems - list of usages to be reportedbillable - specifies if the usage to be reported is billable or estimatedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public APIResult reportUsage(String baseUrl, String secretKey, String idempotentKey, List<MeteredUsageItem> meteredUsageItems, boolean billable)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicebaseUrl - from the requestsecretKey - to sign the requestidempotentKey - to make unique callsmeteredUsageItems - list of usages to be reportedbillable - specifies if the usage to be reported is billable or estimatedAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public APIResult reportUsage(String baseUrl, String secretKey, String idempotentKey, List<MeteredUsageItem> meteredUsageItems, boolean billable, String sourceType)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicebaseUrl - from the requestsecretKey - to sign the requestidempotentKey - to make unique callsmeteredUsageItems - list of usages to be reportedbillable - specifies if the usage to be reported is billable or estimatedsourceType - specifies the type of source that generate the report (ex. aws, azure_csp, azure_modern)APIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public APIResult reportUsage(String baseUrl, String idempotentKey, MeteredUsageItem meteredUsageItem, boolean billable, String secretKey, String secret)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicebaseUrl - from the requestidempotentKey - to make unique callsmeteredUsageItem - usage instance to be reportedbillable - specifies if the usage to be reported is billable or estimatedsecretKey - to sign the requestAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public APIResult reportUsage(String baseUrl, MeteredUsageItem meteredUsageItem, boolean billable, String secretKey, String secret)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicebaseUrl - from the requestmeteredUsageItem - usage instance to be reportedbillable - specifies if the usage to be reported is billable or estimatedsecretKey - to sign the requestAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public APIResult reportUsage(String baseUrl, List<MeteredUsageItem> meteredUsageItems, boolean billable, String secretKey, String secret)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicebaseUrl - from the requestmeteredUsageItems - list of usages to be reportedbillable - specifies if the usage to be reported is billable or estimatedsecretKey - to sign the requestAPIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public APIResult reportUsage(String baseUrl, MeteredUsageItem meteredUsageItem, boolean billable, String secretKey, String secret, String sourceType)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicebaseUrl - from the requestmeteredUsageItem - usage instance to be reportedbillable - specifies if the usage to be reported is billable or estimatedsecretKey - to sign the requestsourceType - specifies the type of source that generate the report (ex. aws, azure_csp, azure_modern)APIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public APIResult reportUsage(String baseUrl, String idempotentKey, List<MeteredUsageItem> meteredUsageItems, boolean billable, String secretKey, String secret, String sourceType)
MeteredUsageApiClientServiceAppmarketBillingClient as this replaces the old API version.reportUsage in interface MeteredUsageApiClientServicebaseUrl - from the requestidempotentKey - to make unique callsmeteredUsageItems - list of usages to be reportedbillable - specifies if the usage to be reported is billable or estimatedsecretKey - to sign the requestsourceType - specifies the type of source that generate the report (ex. aws, azure_csp, azure_modern)APIResult instance representing the marketplace response
throws an MeteredUsageApiException to the client with an error code and a status:
public APIResult retryableReportUsage(String baseUrl, String idempotentKey, List<MeteredUsageItem> meteredUsageItems, String secretKey, boolean billable, String sourceType)
retryableReportUsage in interface MeteredUsageApiClientServiceCopyright © 2021 Pivotal Software, Inc.. All rights reserved.