C# Class CSP_CREST.Services.CRESTService

Inheritance: ICRESTService
Afficher le fichier Open project: Microsoft/CSP-Explorer

Méthodes publiques

Méthode 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 méthode

public AcquireTokenForCustomer ( string customerId ) : Token
customerId string
Résultat CSP_CREST.Entities.Token

AcquireTokenForCustomerAsync() public méthode

public AcquireTokenForCustomerAsync ( string customerId ) : Task
customerId string
Résultat Task

AcquireTokenForReseller() public méthode

public AcquireTokenForReseller ( ) : Token
Résultat CSP_CREST.Entities.Token

AcquireTokenForResellerAsync() public méthode

public AcquireTokenForResellerAsync ( ) : Task
Résultat Task

GetCustomer() public méthode

public GetCustomer ( string CustomerAADId ) : Customer
CustomerAADId string
Résultat CSP_CREST.Entities.Customer

GetCustomerAsync() public méthode

public GetCustomerAsync ( string CustomerAADId ) : Task
CustomerAADId string
Résultat Task

GetEntitlements() public méthode

public GetEntitlements ( string CustomerId ) : List
CustomerId string
Résultat List

GetEntitlements() public méthode

public GetEntitlements ( string CustomerId, Token cus_token ) : List
CustomerId string
cus_token CSP_CREST.Entities.Token
Résultat List

GetEntitlementsAsync() public méthode

public GetEntitlementsAsync ( string CustomerId ) : Task>
CustomerId string
Résultat Task>

GetEntitlementsAsync() public méthode

public GetEntitlementsAsync ( string CustomerId, Token cus_token ) : Task>
CustomerId string
cus_token CSP_CREST.Entities.Token
Résultat Task>

GetRateCard() public méthode

public GetRateCard ( ) : RateCard
Résultat CSP_CREST.Entities.RateCard

GetRateCardAsync() public méthode

public GetRateCardAsync ( ) : Task
Résultat Task

GetReseller() public méthode

public GetReseller ( ) : Customer
Résultat CSP_CREST.Entities.Customer

GetResellerAsync() public méthode

public GetResellerAsync ( ) : Task
Résultat Task

GetSubscription() public méthode

public GetSubscription ( string SubscriptionId ) : Subscription
SubscriptionId string
Résultat CSP_CREST.Entities.Subscription

GetSubscriptionAsync() public méthode

public GetSubscriptionAsync ( string SubscriptionId ) : Task
SubscriptionId string
Résultat Task

GetSubscriptionsByCustomer() public méthode

public GetSubscriptionsByCustomer ( string CustomerId ) : List
CustomerId string
Résultat List

GetSubscriptionsByCustomerAsync() public méthode

public GetSubscriptionsByCustomerAsync ( string CustomerId ) : Task>
CustomerId string
Résultat Task>

GetUsage() public méthode

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
Résultat CSP_CREST.Entities.UsageRecord

GetUsage() public méthode

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

GetUsageAsync() public méthode

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
Résultat Task

GetUsageAsync() public méthode

public GetUsageAsync ( string SubscriptionId, bool showDetails = false ) : Task
SubscriptionId string
showDetails bool
Résultat Task

Initialize() public méthode

public Initialize ( ) : void
Résultat void

Initialize() public méthode

public Initialize ( string OAuthToken, string ResellerId ) : void
OAuthToken string
ResellerId string
Résultat void