Class SubscriptionUsageRecordCollectionOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<Tuple<String,String>>
com.microsoft.store.partnercenter.usage.SubscriptionUsageRecordCollectionOperations
- All Implemented Interfaces:
IPartnerComponent<Tuple<String,String>>,ISubscriptionUsageRecordCollection
public class SubscriptionUsageRecordCollectionOperations extends BasePartnerComponent<Tuple<String,String>> implements ISubscriptionUsageRecordCollection
Implements the operations to get a customer's subscription usage records.
-
Constructor Summary
Constructors Constructor Description SubscriptionUsageRecordCollectionOperations(IPartner rootPartnerOperations, String customerId, String subscriptionId)Initializes a new instance of the SubscriptionUsageRecordCollectionOperations class. -
Method Summary
Modifier and Type Method Description IUsageRecordByMeterCollectionbyMeter()Gets the subscription usage records grouped by meter.IUsageRecordByResourceCollectionbyResource()Gets the subscription usage records grouped by resource.Methods inherited from class com.microsoft.store.partnercenter.BasePartnerComponent
getContext, getPartnerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.store.partnercenter.IPartnerComponent
getContext, getPartner
-
Constructor Details
-
SubscriptionUsageRecordCollectionOperations
public SubscriptionUsageRecordCollectionOperations(IPartner rootPartnerOperations, String customerId, String subscriptionId)Initializes a new instance of the SubscriptionUsageRecordCollectionOperations class.- Parameters:
rootPartnerOperations- The root partner operations instance.customerId- The customer identifier.subscriptionId- The subscription identifier.
-
-
Method Details
-
byMeter
Gets the subscription usage records grouped by meter.- Specified by:
byMeterin interfaceISubscriptionUsageRecordCollection- Returns:
- The subscription usage records grouped by meter operations.
-
byResource
Gets the subscription usage records grouped by resource.- Specified by:
byResourcein interfaceISubscriptionUsageRecordCollection- Returns:
- The subscription usage records grouped by resource operations.
-