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 BaseClient struct + BaseURI string + func New() BaseClient + func NewWithBaseURI(baseURI string) BaseClient + func (client BaseClient) CheckResourceName(ctx context.Context, resourceNameDefinition *ResourceName) (result CheckResourceNameResult, err error) + func (client BaseClient) CheckResourceNamePreparer(ctx context.Context, resourceNameDefinition *ResourceName) (*http.Request, error) + func (client BaseClient) CheckResourceNameResponder(resp *http.Response) (result CheckResourceNameResult, err error) + func (client BaseClient) CheckResourceNameSender(req *http.Request) (*http.Response, error) + type CheckResourceNameResult struct + Name *string + Status ResourceNameStatus + Type *string + type Client struct + func NewClient() Client + func NewClientWithBaseURI(baseURI string) Client + func (client Client) Get(ctx context.Context, subscriptionID string) (result Subscription, err error) + func (client Client) GetPreparer(ctx context.Context, subscriptionID string) (*http.Request, error) + func (client Client) GetResponder(resp *http.Response) (result Subscription, err error) + func (client Client) GetSender(req *http.Request) (*http.Response, error) + func (client Client) List(ctx context.Context) (result ListResultPage, err error) + func (client Client) ListComplete(ctx context.Context) (result ListResultIterator, err error) + func (client Client) ListLocations(ctx context.Context, subscriptionID string) (result LocationListResult, err error) + func (client Client) ListLocationsPreparer(ctx context.Context, subscriptionID string) (*http.Request, error) + func (client Client) ListLocationsResponder(resp *http.Response) (result LocationListResult, err error) + func (client Client) ListLocationsSender(req *http.Request) (*http.Response, error) + func (client Client) ListPreparer(ctx context.Context) (*http.Request, error) + func (client Client) ListResponder(resp *http.Response) (result ListResult, err error) + func (client Client) ListSender(req *http.Request) (*http.Response, error) + type ErrorDefinition struct + Code *string + Message *string + type ErrorResponse struct + Error *ErrorDefinition + type ListResult struct + NextLink *string + Value *[]Subscription + 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() Subscription + 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() []Subscription + 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 Operation struct + Display *OperationDisplay + Name *string + type OperationDisplay struct + Description *string + Operation *string + Provider *string + Resource *string + type OperationListResult struct + NextLink *string + Value *[]Operation + func (olr OperationListResult) IsEmpty() bool + type OperationListResultIterator struct + func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator + func (iter *OperationListResultIterator) Next() error + func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error) + func (iter OperationListResultIterator) NotDone() bool + func (iter OperationListResultIterator) Response() OperationListResult + func (iter OperationListResultIterator) Value() Operation + type OperationListResultPage struct + func NewOperationListResultPage(cur OperationListResult, ...) OperationListResultPage + func (page *OperationListResultPage) Next() error + func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error) + func (page OperationListResultPage) NotDone() bool + func (page OperationListResultPage) Response() OperationListResult + func (page OperationListResultPage) Values() []Operation + type OperationsClient struct + func NewOperationsClient() OperationsClient + func NewOperationsClientWithBaseURI(baseURI string) OperationsClient + func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) + func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, 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 ResourceName struct + Name *string + Type *string + type ResourceNameStatus string + const Allowed + const Reserved + func PossibleResourceNameStatusValues() []ResourceNameStatus + 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 Subscription struct + AuthorizationSource *string + DisplayName *string + ID *string + State State + SubscriptionID *string + SubscriptionPolicies *Policies + TenantID *string + func (s Subscription) MarshalJSON() ([]byte, error) + type TenantIDDescription struct + Country *string + CountryCode *string + DisplayName *string + Domains *[]string + 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)