Documentation ¶
Index ¶
- func PossibleValuesForCustomerStatus() []string
- func ValidateBillingAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateBillingProfileCustomerID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateBillingProfileID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateCustomerID(input interface{}, key string) (warnings []string, errors []error)
- type AzurePlan
- type BillingAccountId
- type BillingProfileCustomerId
- func NewBillingProfileCustomerID(billingAccountName string, billingProfileName string, customerName string) BillingProfileCustomerId
- func ParseBillingProfileCustomerID(input string) (*BillingProfileCustomerId, error)
- func ParseBillingProfileCustomerIDInsensitively(input string) (*BillingProfileCustomerId, error)
- type BillingProfileId
- type Customer
- type CustomerClient
- func (c CustomerClient) Get(ctx context.Context, id BillingProfileCustomerId) (result GetOperationResponse, err error)
- func (c CustomerClient) GetByBillingAccount(ctx context.Context, id CustomerId) (result GetByBillingAccountOperationResponse, err error)
- func (c CustomerClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountOperationResponse, err error)
- func (c CustomerClient) ListByBillingAccountComplete(ctx context.Context, id BillingAccountId, ...) (ListByBillingAccountCompleteResult, error)
- func (c CustomerClient) ListByBillingAccountCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountCompleteResult, err error)
- func (c CustomerClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, ...) (result ListByBillingProfileOperationResponse, err error)
- func (c CustomerClient) ListByBillingProfileComplete(ctx context.Context, id BillingProfileId, ...) (ListByBillingProfileCompleteResult, error)
- func (c CustomerClient) ListByBillingProfileCompleteMatchingPredicate(ctx context.Context, id BillingProfileId, ...) (result ListByBillingProfileCompleteResult, err error)
- type CustomerId
- type CustomerOperationPredicate
- type CustomerProperties
- type CustomerStatus
- type GetByBillingAccountOperationResponse
- type GetOperationResponse
- type ListByBillingAccountCompleteResult
- type ListByBillingAccountOperationOptions
- type ListByBillingAccountOperationResponse
- type ListByBillingProfileCompleteResult
- type ListByBillingProfileOperationOptions
- type ListByBillingProfileOperationResponse
- type Reseller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCustomerStatus ¶
func PossibleValuesForCustomerStatus() []string
func ValidateBillingAccountID ¶
ValidateBillingAccountID checks that 'input' can be parsed as a Billing Account ID
func ValidateBillingProfileCustomerID ¶
func ValidateBillingProfileCustomerID(input interface{}, key string) (warnings []string, errors []error)
ValidateBillingProfileCustomerID checks that 'input' can be parsed as a Billing Profile Customer ID
func ValidateBillingProfileID ¶
ValidateBillingProfileID checks that 'input' can be parsed as a Billing Profile ID
func ValidateCustomerID ¶
ValidateCustomerID checks that 'input' can be parsed as a Customer ID
Types ¶
type BillingAccountId ¶
type BillingAccountId struct {
BillingAccountName string
}
BillingAccountId is a struct representing the Resource ID for a Billing Account
func NewBillingAccountID ¶
func NewBillingAccountID(billingAccountName string) BillingAccountId
NewBillingAccountID returns a new BillingAccountId struct
func ParseBillingAccountID ¶
func ParseBillingAccountID(input string) (*BillingAccountId, error)
ParseBillingAccountID parses 'input' into a BillingAccountId
func ParseBillingAccountIDInsensitively ¶
func ParseBillingAccountIDInsensitively(input string) (*BillingAccountId, error)
ParseBillingAccountIDInsensitively parses 'input' case-insensitively into a BillingAccountId note: this method should only be used for API response data and not user input
func (*BillingAccountId) FromParseResult ¶
func (id *BillingAccountId) FromParseResult(input resourceids.ParseResult) error
func (BillingAccountId) ID ¶
func (id BillingAccountId) ID() string
ID returns the formatted Billing Account ID
func (BillingAccountId) Segments ¶
func (id BillingAccountId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Billing Account ID
func (BillingAccountId) String ¶
func (id BillingAccountId) String() string
String returns a human-readable description of this Billing Account ID
type BillingProfileCustomerId ¶
type BillingProfileCustomerId struct { BillingAccountName string BillingProfileName string CustomerName string }
BillingProfileCustomerId is a struct representing the Resource ID for a Billing Profile Customer
func NewBillingProfileCustomerID ¶
func NewBillingProfileCustomerID(billingAccountName string, billingProfileName string, customerName string) BillingProfileCustomerId
NewBillingProfileCustomerID returns a new BillingProfileCustomerId struct
func ParseBillingProfileCustomerID ¶
func ParseBillingProfileCustomerID(input string) (*BillingProfileCustomerId, error)
ParseBillingProfileCustomerID parses 'input' into a BillingProfileCustomerId
func ParseBillingProfileCustomerIDInsensitively ¶
func ParseBillingProfileCustomerIDInsensitively(input string) (*BillingProfileCustomerId, error)
ParseBillingProfileCustomerIDInsensitively parses 'input' case-insensitively into a BillingProfileCustomerId note: this method should only be used for API response data and not user input
func (*BillingProfileCustomerId) FromParseResult ¶
func (id *BillingProfileCustomerId) FromParseResult(input resourceids.ParseResult) error
func (BillingProfileCustomerId) ID ¶
func (id BillingProfileCustomerId) ID() string
ID returns the formatted Billing Profile Customer ID
func (BillingProfileCustomerId) Segments ¶
func (id BillingProfileCustomerId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Billing Profile Customer ID
func (BillingProfileCustomerId) String ¶
func (id BillingProfileCustomerId) String() string
String returns a human-readable description of this Billing Profile Customer ID
type BillingProfileId ¶
BillingProfileId is a struct representing the Resource ID for a Billing Profile
func NewBillingProfileID ¶
func NewBillingProfileID(billingAccountName string, billingProfileName string) BillingProfileId
NewBillingProfileID returns a new BillingProfileId struct
func ParseBillingProfileID ¶
func ParseBillingProfileID(input string) (*BillingProfileId, error)
ParseBillingProfileID parses 'input' into a BillingProfileId
func ParseBillingProfileIDInsensitively ¶
func ParseBillingProfileIDInsensitively(input string) (*BillingProfileId, error)
ParseBillingProfileIDInsensitively parses 'input' case-insensitively into a BillingProfileId note: this method should only be used for API response data and not user input
func (*BillingProfileId) FromParseResult ¶
func (id *BillingProfileId) FromParseResult(input resourceids.ParseResult) error
func (BillingProfileId) ID ¶
func (id BillingProfileId) ID() string
ID returns the formatted Billing Profile ID
func (BillingProfileId) Segments ¶
func (id BillingProfileId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Billing Profile ID
func (BillingProfileId) String ¶
func (id BillingProfileId) String() string
String returns a human-readable description of this Billing Profile ID
type Customer ¶
type Customer struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *CustomerProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type CustomerClient ¶
type CustomerClient struct {
Client *resourcemanager.Client
}
func NewCustomerClientWithBaseURI ¶
func NewCustomerClientWithBaseURI(sdkApi sdkEnv.Api) (*CustomerClient, error)
func (CustomerClient) Get ¶
func (c CustomerClient) Get(ctx context.Context, id BillingProfileCustomerId) (result GetOperationResponse, err error)
Get ...
func (CustomerClient) GetByBillingAccount ¶
func (c CustomerClient) GetByBillingAccount(ctx context.Context, id CustomerId) (result GetByBillingAccountOperationResponse, err error)
GetByBillingAccount ...
func (CustomerClient) ListByBillingAccount ¶
func (c CustomerClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error)
ListByBillingAccount ...
func (CustomerClient) ListByBillingAccountComplete ¶
func (c CustomerClient) ListByBillingAccountComplete(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (ListByBillingAccountCompleteResult, error)
ListByBillingAccountComplete retrieves all the results into a single object
func (CustomerClient) ListByBillingAccountCompleteMatchingPredicate ¶
func (c CustomerClient) ListByBillingAccountCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions, predicate CustomerOperationPredicate) (result ListByBillingAccountCompleteResult, err error)
ListByBillingAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (CustomerClient) ListByBillingProfile ¶
func (c CustomerClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error)
ListByBillingProfile ...
func (CustomerClient) ListByBillingProfileComplete ¶
func (c CustomerClient) ListByBillingProfileComplete(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (ListByBillingProfileCompleteResult, error)
ListByBillingProfileComplete retrieves all the results into a single object
func (CustomerClient) ListByBillingProfileCompleteMatchingPredicate ¶
func (c CustomerClient) ListByBillingProfileCompleteMatchingPredicate(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions, predicate CustomerOperationPredicate) (result ListByBillingProfileCompleteResult, err error)
ListByBillingProfileCompleteMatchingPredicate retrieves all the results and then applies the predicate
type CustomerId ¶
CustomerId is a struct representing the Resource ID for a Customer
func NewCustomerID ¶
func NewCustomerID(billingAccountName string, customerName string) CustomerId
NewCustomerID returns a new CustomerId struct
func ParseCustomerID ¶
func ParseCustomerID(input string) (*CustomerId, error)
ParseCustomerID parses 'input' into a CustomerId
func ParseCustomerIDInsensitively ¶
func ParseCustomerIDInsensitively(input string) (*CustomerId, error)
ParseCustomerIDInsensitively parses 'input' case-insensitively into a CustomerId note: this method should only be used for API response data and not user input
func (*CustomerId) FromParseResult ¶
func (id *CustomerId) FromParseResult(input resourceids.ParseResult) error
func (CustomerId) Segments ¶
func (id CustomerId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Customer ID
func (CustomerId) String ¶
func (id CustomerId) String() string
String returns a human-readable description of this Customer ID
type CustomerOperationPredicate ¶
func (CustomerOperationPredicate) Matches ¶
func (p CustomerOperationPredicate) Matches(input Customer) bool
type CustomerProperties ¶
type CustomerProperties struct { BillingProfileDisplayName *string `json:"billingProfileDisplayName,omitempty"` BillingProfileId *string `json:"billingProfileId,omitempty"` DisplayName *string `json:"displayName,omitempty"` EnabledAzurePlans *[]AzurePlan `json:"enabledAzurePlans,omitempty"` Resellers *[]Reseller `json:"resellers,omitempty"` Status *CustomerStatus `json:"status,omitempty"` SystemId *string `json:"systemId,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type CustomerStatus ¶
type CustomerStatus string
const ( CustomerStatusActive CustomerStatus = "Active" CustomerStatusDeleted CustomerStatus = "Deleted" CustomerStatusDisabled CustomerStatus = "Disabled" CustomerStatusOther CustomerStatus = "Other" CustomerStatusPending CustomerStatus = "Pending" CustomerStatusUnderReview CustomerStatus = "UnderReview" CustomerStatusWarned CustomerStatus = "Warned" )
func (*CustomerStatus) UnmarshalJSON ¶
func (s *CustomerStatus) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type ListByBillingAccountOperationOptions ¶
type ListByBillingAccountOperationOptions struct { Count *bool Expand *string Filter *string OrderBy *string Search *string Skip *int64 Top *int64 }
func DefaultListByBillingAccountOperationOptions ¶
func DefaultListByBillingAccountOperationOptions() ListByBillingAccountOperationOptions
func (ListByBillingAccountOperationOptions) ToHeaders ¶
func (o ListByBillingAccountOperationOptions) ToHeaders() *client.Headers
func (ListByBillingAccountOperationOptions) ToOData ¶
func (o ListByBillingAccountOperationOptions) ToOData() *odata.Query
func (ListByBillingAccountOperationOptions) ToQuery ¶
func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams
type ListByBillingProfileOperationOptions ¶
type ListByBillingProfileOperationOptions struct { Count *bool Expand *string Filter *string OrderBy *string Search *string Skip *int64 Top *int64 }
func DefaultListByBillingProfileOperationOptions ¶
func DefaultListByBillingProfileOperationOptions() ListByBillingProfileOperationOptions
func (ListByBillingProfileOperationOptions) ToHeaders ¶
func (o ListByBillingProfileOperationOptions) ToHeaders() *client.Headers
func (ListByBillingProfileOperationOptions) ToOData ¶
func (o ListByBillingProfileOperationOptions) ToOData() *odata.Query
func (ListByBillingProfileOperationOptions) ToQuery ¶
func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams
Source Files ¶
- client.go
- constants.go
- id_billingaccount.go
- id_billingprofile.go
- id_billingprofilecustomer.go
- id_customer.go
- method_get.go
- method_getbybillingaccount.go
- method_listbybillingaccount.go
- method_listbybillingprofile.go
- model_azureplan.go
- model_customer.go
- model_customerproperties.go
- model_reseller.go
- predicates.go
- version.go