C# Class CSP_CREST.Services.CRESTService

Inheritance: ICRESTService
Datei anzeigen Open project: Microsoft/CSP-Explorer

Public Methods

Method Description
AcquireTokenForCustomer ( string customerId ) : Token
AcquireTokenForCustomerAsync ( string customerId ) : Task
AcquireTokenForReseller ( ) : Token
AcquireTokenForResellerAsync ( ) : Task
GetCustomer ( string CustomerAADId ) : Customer
GetCustomerAsync ( string CustomerAADId ) : Task
GetEntitlements ( string CustomerId ) : List
GetEntitlements ( string CustomerId, Token cus_token ) : List
GetEntitlementsAsync ( string CustomerId ) : Task>
GetEntitlementsAsync ( string CustomerId, Token cus_token ) : Task>
GetRateCard ( ) : RateCard
GetRateCardAsync ( ) : Task
GetReseller ( ) : Customer
GetResellerAsync ( ) : Task
GetSubscription ( string SubscriptionId ) : Subscription
GetSubscriptionAsync ( string SubscriptionId ) : Task
GetSubscriptionsByCustomer ( string CustomerId ) : List
GetSubscriptionsByCustomerAsync ( string CustomerId ) : Task>
GetUsage ( string SubscriptionId, System.DateTime StartDate, System.DateTime EndDate, string Granularity, bool ShowDetails, int Count ) : UsageRecord
GetUsage ( string SubscriptionId, bool showDetails = false ) : UsageRecord
GetUsageAsync ( string SubscriptionId, System.DateTime StartDate, System.DateTime EndDate, string Granularity, bool ShowDetails, int Count ) : Task
GetUsageAsync ( string SubscriptionId, bool showDetails = false ) : Task
Initialize ( ) : void
Initialize ( string OAuthToken, string ResellerId ) : void

Method Details

AcquireTokenForCustomer() public method

public AcquireTokenForCustomer ( string customerId ) : Token
customerId string
return CSP_CREST.Entities.Token

AcquireTokenForCustomerAsync() public method

public AcquireTokenForCustomerAsync ( string customerId ) : Task
customerId string
return Task

AcquireTokenForReseller() public method

public AcquireTokenForReseller ( ) : Token
return CSP_CREST.Entities.Token

AcquireTokenForResellerAsync() public method

public AcquireTokenForResellerAsync ( ) : Task
return Task

GetCustomer() public method

public GetCustomer ( string CustomerAADId ) : Customer
CustomerAADId string
return CSP_CREST.Entities.Customer

GetCustomerAsync() public method

public GetCustomerAsync ( string CustomerAADId ) : Task
CustomerAADId string
return Task

GetEntitlements() public method

public GetEntitlements ( string CustomerId ) : List
CustomerId string
return List

GetEntitlements() public method

public GetEntitlements ( string CustomerId, Token cus_token ) : List
CustomerId string
cus_token CSP_CREST.Entities.Token
return List

GetEntitlementsAsync() public method

public GetEntitlementsAsync ( string CustomerId ) : Task>
CustomerId string
return Task>

GetEntitlementsAsync() public method

public GetEntitlementsAsync ( string CustomerId, Token cus_token ) : Task>
CustomerId string
cus_token CSP_CREST.Entities.Token
return Task>

GetRateCard() public method

public GetRateCard ( ) : RateCard
return CSP_CREST.Entities.RateCard

GetRateCardAsync() public method

public GetRateCardAsync ( ) : Task
return Task

GetReseller() public method

public GetReseller ( ) : Customer
return CSP_CREST.Entities.Customer

GetResellerAsync() public method

public GetResellerAsync ( ) : Task
return Task

GetSubscription() public method

public GetSubscription ( string SubscriptionId ) : Subscription
SubscriptionId string
return CSP_CREST.Entities.Subscription

GetSubscriptionAsync() public method

public GetSubscriptionAsync ( string SubscriptionId ) : Task
SubscriptionId string
return Task

GetSubscriptionsByCustomer() public method

public GetSubscriptionsByCustomer ( string CustomerId ) : List
CustomerId string
return List

GetSubscriptionsByCustomerAsync() public method

public GetSubscriptionsByCustomerAsync ( string CustomerId ) : Task>
CustomerId string
return Task>

GetUsage() public method

public GetUsage ( string SubscriptionId, System.DateTime StartDate, System.DateTime EndDate, string Granularity, bool ShowDetails, int Count ) : UsageRecord
SubscriptionId string
StartDate System.DateTime
EndDate System.DateTime
Granularity string
ShowDetails bool
Count int
return CSP_CREST.Entities.UsageRecord

GetUsage() public method

public GetUsage ( string SubscriptionId, bool showDetails = false ) : UsageRecord
SubscriptionId string
showDetails bool
return CSP_CREST.Entities.UsageRecord

GetUsageAsync() public method

public GetUsageAsync ( string SubscriptionId, System.DateTime StartDate, System.DateTime EndDate, string Granularity, bool ShowDetails, int Count ) : Task
SubscriptionId string
StartDate System.DateTime
EndDate System.DateTime
Granularity string
ShowDetails bool
Count int
return Task

GetUsageAsync() public method

public GetUsageAsync ( string SubscriptionId, bool showDetails = false ) : Task
SubscriptionId string
showDetails bool
return Task

Initialize() public method

public Initialize ( ) : void
return void

Initialize() public method

public Initialize ( string OAuthToken, string ResellerId ) : void
OAuthToken string
ResellerId string
return void