-
Notifications
You must be signed in to change notification settings - Fork 49
Components
Kori Francis edited this page Jun 27, 2016
·
1 revision
var allocationResult = client.CreateComponentAllocation(subscription.SubscriptionID, component.ComponentID, quantityToAllocate);
var allocation = new ComponentAllocation() {
Quantity = 1,
Memo = "64GB Memory Upgrade",
UpgradeScheme = ComponentUpgradeProrationScheme.Prorate_Delay_Capture,
DowngradeScheme = ComponentDowngradeProrationScheme.No_Prorate
};
var result = client.CreateComponentAllocation(subscription.SubscriptionID, component.ComponentID, allocation);
var currentAllocationResult = client.GetAllocationListForSubscriptionComponent(subscription.SubscriptionID, component.ComponentID);
var usageResult = client.AddUsage(subscription.SubscriptionID, component.ID, usageQuantity, usageDescription);
var result = client.GetComponentInfoForSubscription(subscription.SubscriptionID, componentID)