Versions in this module Expand all Collapse all v1 v1.0.1 Sep 13, 2022 v1.0.0 Sep 12, 2022 Changes in this version + const DefaultBaseURI + func UserAgent() string + func Version() string + type AdPrincipal struct + ObjectID *string + type BaseClient struct + BaseURI string + func New() BaseClient + func NewWithBaseURI(baseURI string) BaseClient + type CanceledSubscriptionID struct + Value *string + func (csi CanceledSubscriptionID) MarshalJSON() ([]byte, error) + type Client struct + func NewClient() Client + func NewClientWithBaseURI(baseURI string) Client + func (client Client) Cancel(ctx context.Context, subscriptionID string) (result CanceledSubscriptionID, err error) + func (client Client) CancelPreparer(ctx context.Context, subscriptionID string) (*http.Request, error) + func (client Client) CancelResponder(resp *http.Response) (result CanceledSubscriptionID, err error) + func (client Client) CancelSender(req *http.Request) (*http.Response, error) + func (client Client) CreateAlias(ctx context.Context, aliasName string, body PutAliasRequest) (result CreateAliasFuture, err error) + func (client Client) CreateAliasPreparer(ctx context.Context, aliasName string, body PutAliasRequest) (*http.Request, error) + func (client Client) CreateAliasResponder(resp *http.Response) (result PutAliasResponse, err error) + func (client Client) CreateAliasSender(req *http.Request) (future CreateAliasFuture, err error) + func (client Client) CreateCspSubscription(ctx context.Context, billingAccountName string, customerName string, ...) (result CreateCspSubscriptionFuture, err error) + func (client Client) CreateCspSubscriptionPreparer(ctx context.Context, billingAccountName string, customerName string, ...) (*http.Request, error) + func (client Client) CreateCspSubscriptionResponder(resp *http.Response) (result CreationResult, err error) + func (client Client) CreateCspSubscriptionSender(req *http.Request) (future CreateCspSubscriptionFuture, err error) + func (client Client) CreateSubscription(ctx context.Context, billingAccountName string, billingProfileName string, ...) (result CreateSubscriptionFuture, err error) + func (client Client) CreateSubscriptionInEnrollmentAccount(ctx context.Context, enrollmentAccountName string, body CreationParameters) (result CreateSubscriptionInEnrollmentAccountFuture, err error) + func (client Client) CreateSubscriptionInEnrollmentAccountPreparer(ctx context.Context, enrollmentAccountName string, body CreationParameters) (*http.Request, error) + func (client Client) CreateSubscriptionInEnrollmentAccountResponder(resp *http.Response) (result CreationResult, err error) + func (client Client) CreateSubscriptionInEnrollmentAccountSender(req *http.Request) (future CreateSubscriptionInEnrollmentAccountFuture, err error) + func (client Client) CreateSubscriptionPreparer(ctx context.Context, billingAccountName string, billingProfileName string, ...) (*http.Request, error) + func (client Client) CreateSubscriptionResponder(resp *http.Response) (result CreationResult, err error) + func (client Client) CreateSubscriptionSender(req *http.Request) (future CreateSubscriptionFuture, err error) + func (client Client) DeleteAlias(ctx context.Context, aliasName string) (result autorest.Response, err error) + func (client Client) DeleteAliasPreparer(ctx context.Context, aliasName string) (*http.Request, error) + func (client Client) DeleteAliasResponder(resp *http.Response) (result autorest.Response, err error) + func (client Client) DeleteAliasSender(req *http.Request) (*http.Response, error) + func (client Client) Enable(ctx context.Context, subscriptionID string) (result EnabledSubscriptionID, err error) + func (client Client) EnablePreparer(ctx context.Context, subscriptionID string) (*http.Request, error) + func (client Client) EnableResponder(resp *http.Response) (result EnabledSubscriptionID, err error) + func (client Client) EnableSender(req *http.Request) (*http.Response, error) + func (client Client) GetAlias(ctx context.Context, aliasName string) (result PutAliasResponse, err error) + func (client Client) GetAliasPreparer(ctx context.Context, aliasName string) (*http.Request, error) + func (client Client) GetAliasResponder(resp *http.Response) (result PutAliasResponse, err error) + func (client Client) GetAliasSender(req *http.Request) (*http.Response, error) + func (client Client) ListAlias(ctx context.Context) (result PutAliasListResult, err error) + func (client Client) ListAliasPreparer(ctx context.Context) (*http.Request, error) + func (client Client) ListAliasResponder(resp *http.Response) (result PutAliasListResult, err error) + func (client Client) ListAliasSender(req *http.Request) (*http.Response, error) + func (client Client) Rename(ctx context.Context, subscriptionID string, body Name) (result RenamedSubscriptionID, err error) + func (client Client) RenamePreparer(ctx context.Context, subscriptionID string, body Name) (*http.Request, error) + func (client Client) RenameResponder(resp *http.Response) (result RenamedSubscriptionID, err error) + func (client Client) RenameSender(req *http.Request) (*http.Response, error) + type CreateAliasFuture struct + Result func(Client) (PutAliasResponse, error) + func (future *CreateAliasFuture) UnmarshalJSON(body []byte) error + type CreateCspSubscriptionFuture struct + Result func(Client) (CreationResult, error) + func (future *CreateCspSubscriptionFuture) UnmarshalJSON(body []byte) error + type CreateSubscriptionFuture struct + Result func(Client) (CreationResult, error) + func (future *CreateSubscriptionFuture) UnmarshalJSON(body []byte) error + type CreateSubscriptionInEnrollmentAccountFuture struct + Result func(Client) (CreationResult, error) + func (future *CreateSubscriptionInEnrollmentAccountFuture) UnmarshalJSON(body []byte) error + type CreationParameters struct + AdditionalParameters map[string]interface{} + DisplayName *string + ManagementGroupID *string + OfferType OfferType + Owners *[]AdPrincipal + func (cp CreationParameters) MarshalJSON() ([]byte, error) + type CreationResult struct + SubscriptionLink *string + type EnabledSubscriptionID struct + Value *string + func (esi EnabledSubscriptionID) MarshalJSON() ([]byte, error) + type ErrorResponse struct + Code *string + Message *string + type ErrorResponseBody struct + Error *ErrorResponse + type ListResult struct + NextLink *string + Value *[]Model + func (lr ListResult) IsEmpty() bool + type ListResultIterator struct + func NewListResultIterator(page ListResultPage) ListResultIterator + func (iter *ListResultIterator) Next() error + func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error) + func (iter ListResultIterator) NotDone() bool + func (iter ListResultIterator) Response() ListResult + func (iter ListResultIterator) Value() Model + type ListResultPage struct + func NewListResultPage(cur ListResult, ...) ListResultPage + func (page *ListResultPage) Next() error + func (page *ListResultPage) NextWithContext(ctx context.Context) (err error) + func (page ListResultPage) NotDone() bool + func (page ListResultPage) Response() ListResult + func (page ListResultPage) Values() []Model + type Location struct + DisplayName *string + ID *string + Latitude *string + Longitude *string + Name *string + SubscriptionID *string + func (l Location) MarshalJSON() ([]byte, error) + type LocationListResult struct + Value *[]Location + type Model struct + AuthorizationSource *string + DisplayName *string + ID *string + State State + SubscriptionID *string + SubscriptionPolicies *Policies + func (mVar Model) MarshalJSON() ([]byte, error) + type ModernCspSubscriptionCreationParameters struct + DisplayName *string + ResellerID *string + SkuID *string + type ModernSubscriptionCreationParameters struct + AdditionalParameters map[string]interface{} + CostCenter *string + DisplayName *string + ManagementGroupID *string + Owner *AdPrincipal + SkuID *string + func (mscp ModernSubscriptionCreationParameters) MarshalJSON() ([]byte, error) + type Name struct + SubscriptionName *string + type OfferType string + const MSAZR0017P + const MSAZR0148P + func PossibleOfferTypeValues() []OfferType + type Operation struct + Display *OperationDisplay + Name *string + type OperationClient struct + func NewOperationClient() OperationClient + func NewOperationClientWithBaseURI(baseURI string) OperationClient + func (client OperationClient) Get(ctx context.Context, operationID string) (result CreationResult, err error) + func (client OperationClient) GetPreparer(ctx context.Context, operationID string) (*http.Request, error) + func (client OperationClient) GetResponder(resp *http.Response) (result CreationResult, err error) + func (client OperationClient) GetSender(req *http.Request) (*http.Response, error) + type OperationDisplay struct + Operation *string + Provider *string + Resource *string + type OperationListResult struct + NextLink *string + Value *[]Operation + type OperationsClient struct + func NewOperationsClient() OperationsClient + func NewOperationsClientWithBaseURI(baseURI string) OperationsClient + func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error) + func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) + func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) + func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) + type Policies struct + LocationPlacementID *string + QuotaID *string + SpendingLimit SpendingLimit + func (p Policies) MarshalJSON() ([]byte, error) + type ProvisioningState string + const Accepted + const Failed + const Succeeded + func PossibleProvisioningStateValues() []ProvisioningState + type PutAliasListResult struct + NextLink *string + Value *[]PutAliasResponse + func (palr PutAliasListResult) MarshalJSON() ([]byte, error) + type PutAliasRequest struct + Properties *PutAliasRequestProperties + type PutAliasRequestProperties struct + BillingScope *string + DisplayName *string + SubscriptionID *string + Workload Workload + type PutAliasResponse struct + ID *string + Name *string + Properties *PutAliasResponseProperties + Type *string + func (par PutAliasResponse) MarshalJSON() ([]byte, error) + type PutAliasResponseProperties struct + ProvisioningState ProvisioningState + SubscriptionID *string + func (parp PutAliasResponseProperties) MarshalJSON() ([]byte, error) + type RenamedSubscriptionID struct + Value *string + func (rsi RenamedSubscriptionID) MarshalJSON() ([]byte, error) + type SpendingLimit string + const CurrentPeriodOff + const Off + const On + func PossibleSpendingLimitValues() []SpendingLimit + type State string + const Deleted + const Disabled + const Enabled + const PastDue + const Warned + func PossibleStateValues() []State + type SubscriptionsClient struct + func NewSubscriptionsClient() SubscriptionsClient + func NewSubscriptionsClientWithBaseURI(baseURI string) SubscriptionsClient + func (client SubscriptionsClient) Get(ctx context.Context, subscriptionID string) (result Model, err error) + func (client SubscriptionsClient) GetPreparer(ctx context.Context, subscriptionID string) (*http.Request, error) + func (client SubscriptionsClient) GetResponder(resp *http.Response) (result Model, err error) + func (client SubscriptionsClient) GetSender(req *http.Request) (*http.Response, error) + func (client SubscriptionsClient) List(ctx context.Context) (result ListResultPage, err error) + func (client SubscriptionsClient) ListComplete(ctx context.Context) (result ListResultIterator, err error) + func (client SubscriptionsClient) ListLocations(ctx context.Context, subscriptionID string) (result LocationListResult, err error) + func (client SubscriptionsClient) ListLocationsPreparer(ctx context.Context, subscriptionID string) (*http.Request, error) + func (client SubscriptionsClient) ListLocationsResponder(resp *http.Response) (result LocationListResult, err error) + func (client SubscriptionsClient) ListLocationsSender(req *http.Request) (*http.Response, error) + func (client SubscriptionsClient) ListPreparer(ctx context.Context) (*http.Request, error) + func (client SubscriptionsClient) ListResponder(resp *http.Response) (result ListResult, err error) + func (client SubscriptionsClient) ListSender(req *http.Request) (*http.Response, error) + type TenantIDDescription struct + ID *string + TenantID *string + func (tid TenantIDDescription) MarshalJSON() ([]byte, error) + type TenantListResult struct + NextLink *string + Value *[]TenantIDDescription + func (tlr TenantListResult) IsEmpty() bool + type TenantListResultIterator struct + func NewTenantListResultIterator(page TenantListResultPage) TenantListResultIterator + func (iter *TenantListResultIterator) Next() error + func (iter *TenantListResultIterator) NextWithContext(ctx context.Context) (err error) + func (iter TenantListResultIterator) NotDone() bool + func (iter TenantListResultIterator) Response() TenantListResult + func (iter TenantListResultIterator) Value() TenantIDDescription + type TenantListResultPage struct + func NewTenantListResultPage(cur TenantListResult, ...) TenantListResultPage + func (page *TenantListResultPage) Next() error + func (page *TenantListResultPage) NextWithContext(ctx context.Context) (err error) + func (page TenantListResultPage) NotDone() bool + func (page TenantListResultPage) Response() TenantListResult + func (page TenantListResultPage) Values() []TenantIDDescription + type TenantsClient struct + func NewTenantsClient() TenantsClient + func NewTenantsClientWithBaseURI(baseURI string) TenantsClient + func (client TenantsClient) List(ctx context.Context) (result TenantListResultPage, err error) + func (client TenantsClient) ListComplete(ctx context.Context) (result TenantListResultIterator, err error) + func (client TenantsClient) ListPreparer(ctx context.Context) (*http.Request, error) + func (client TenantsClient) ListResponder(resp *http.Response) (result TenantListResult, err error) + func (client TenantsClient) ListSender(req *http.Request) (*http.Response, error) + type Workload string + const DevTest + const Production + func PossibleWorkloadValues() []Workload