Documentation ¶
Index ¶
- func PossibleValuesForBillingProfileStatus() []string
- func PossibleValuesForBillingRelationshipType() []string
- func PossibleValuesForDetachPaymentMethodEligibilityErrorCode() []string
- func PossibleValuesForInvoiceSectionState() []string
- func PossibleValuesForSpendingLimit() []string
- func PossibleValuesForStatusReasonCode() []string
- func PossibleValuesForTargetCloud() []string
- func ValidateBillingAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateBillingProfileID(input interface{}, key string) (warnings []string, errors []error)
- type AddressDetails
- type AzurePlan
- type BillingAccountId
- type BillingProfile
- type BillingProfileCreationRequest
- type BillingProfileId
- type BillingProfileListResult
- type BillingProfileProperties
- type BillingProfileStatus
- type BillingProfilesClient
- func (c BillingProfilesClient) Create(ctx context.Context, id BillingProfileId, input BillingProfileCreationRequest) (result CreateOperationResponse, err error)
- func (c BillingProfilesClient) CreateThenPoll(ctx context.Context, id BillingProfileId, input BillingProfileCreationRequest) error
- func (c BillingProfilesClient) Get(ctx context.Context, id BillingProfileId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c BillingProfilesClient) GetEligibilityToDetachPaymentMethod(ctx context.Context, id BillingProfileId) (result GetEligibilityToDetachPaymentMethodOperationResponse, err error)
- func (c BillingProfilesClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountOperationResponse, err error)
- func (c BillingProfilesClient) Update(ctx context.Context, id BillingProfileId, input BillingProfile) (result UpdateOperationResponse, err error)
- func (c BillingProfilesClient) UpdateThenPoll(ctx context.Context, id BillingProfileId, input BillingProfile) error
- type BillingRelationshipType
- type CreateOperationResponse
- type DetachPaymentMethodEligibilityErrorCode
- type DetachPaymentMethodEligibilityResult
- type DetachPaymentMethodErrorDetails
- type GetEligibilityToDetachPaymentMethodOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type IndirectRelationshipInfo
- type InvoiceSection
- type InvoiceSectionProperties
- type InvoiceSectionState
- type ListByBillingAccountOperationOptions
- type ListByBillingAccountOperationResponse
- type SpendingLimit
- type StatusReasonCode
- type TargetCloud
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForBillingProfileStatus ¶
func PossibleValuesForBillingProfileStatus() []string
func PossibleValuesForBillingRelationshipType ¶
func PossibleValuesForBillingRelationshipType() []string
func PossibleValuesForDetachPaymentMethodEligibilityErrorCode ¶
func PossibleValuesForDetachPaymentMethodEligibilityErrorCode() []string
func PossibleValuesForInvoiceSectionState ¶
func PossibleValuesForInvoiceSectionState() []string
func PossibleValuesForSpendingLimit ¶
func PossibleValuesForSpendingLimit() []string
func PossibleValuesForStatusReasonCode ¶
func PossibleValuesForStatusReasonCode() []string
func PossibleValuesForTargetCloud ¶
func PossibleValuesForTargetCloud() []string
func ValidateBillingAccountID ¶
ValidateBillingAccountID checks that 'input' can be parsed as a Billing Account ID
func ValidateBillingProfileID ¶
ValidateBillingProfileID checks that 'input' can be parsed as a Billing Profile ID
Types ¶
type AddressDetails ¶
type AddressDetails struct { AddressLine1 *string `json:"addressLine1,omitempty"` AddressLine2 *string `json:"addressLine2,omitempty"` AddressLine3 *string `json:"addressLine3,omitempty"` City *string `json:"city,omitempty"` CompanyName *string `json:"companyName,omitempty"` Country *string `json:"country,omitempty"` FirstName *string `json:"firstName,omitempty"` LastName *string `json:"lastName,omitempty"` PostalCode *string `json:"postalCode,omitempty"` Region *string `json:"region,omitempty"` }
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 BillingProfile ¶
type BillingProfile struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *BillingProfileProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type BillingProfileCreationRequest ¶
type BillingProfileCreationRequest struct { Address *AddressDetails `json:"address,omitempty"` DisplayName *string `json:"displayName,omitempty"` EnabledAzurePlans *[]AzurePlan `json:"enabledAzurePlans,omitempty"` InvoiceEmailOptIn *bool `json:"invoiceEmailOptIn,omitempty"` PoNumber *string `json:"poNumber,omitempty"` }
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 BillingProfileListResult ¶
type BillingProfileListResult struct { NextLink *string `json:"nextLink,omitempty"` Value *[]BillingProfile `json:"value,omitempty"` }
type BillingProfileProperties ¶
type BillingProfileProperties struct { Address *AddressDetails `json:"address,omitempty"` BillingRelationshipType *BillingRelationshipType `json:"billingRelationshipType,omitempty"` Currency *string `json:"currency,omitempty"` DisplayName *string `json:"displayName,omitempty"` EnabledAzurePlans *[]AzurePlan `json:"enabledAzurePlans,omitempty"` IndirectRelationshipInfo *IndirectRelationshipInfo `json:"indirectRelationshipInfo,omitempty"` InvoiceDay *int64 `json:"invoiceDay,omitempty"` InvoiceEmailOptIn *bool `json:"invoiceEmailOptIn,omitempty"` InvoiceSections *[]InvoiceSection `json:"invoiceSections,omitempty"` PoNumber *string `json:"poNumber,omitempty"` SpendingLimit *SpendingLimit `json:"spendingLimit,omitempty"` Status *BillingProfileStatus `json:"status,omitempty"` StatusReasonCode *StatusReasonCode `json:"statusReasonCode,omitempty"` TargetClouds *[]TargetCloud `json:"targetClouds,omitempty"` }
type BillingProfileStatus ¶
type BillingProfileStatus string
const ( BillingProfileStatusActive BillingProfileStatus = "Active" BillingProfileStatusDisabled BillingProfileStatus = "Disabled" BillingProfileStatusWarned BillingProfileStatus = "Warned" )
func (*BillingProfileStatus) UnmarshalJSON ¶
func (s *BillingProfileStatus) UnmarshalJSON(bytes []byte) error
type BillingProfilesClient ¶
type BillingProfilesClient struct {
Client *resourcemanager.Client
}
func NewBillingProfilesClientWithBaseURI ¶
func NewBillingProfilesClientWithBaseURI(sdkApi sdkEnv.Api) (*BillingProfilesClient, error)
func (BillingProfilesClient) Create ¶
func (c BillingProfilesClient) Create(ctx context.Context, id BillingProfileId, input BillingProfileCreationRequest) (result CreateOperationResponse, err error)
Create ...
func (BillingProfilesClient) CreateThenPoll ¶
func (c BillingProfilesClient) CreateThenPoll(ctx context.Context, id BillingProfileId, input BillingProfileCreationRequest) error
CreateThenPoll performs Create then polls until it's completed
func (BillingProfilesClient) Get ¶
func (c BillingProfilesClient) Get(ctx context.Context, id BillingProfileId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (BillingProfilesClient) GetEligibilityToDetachPaymentMethod ¶
func (c BillingProfilesClient) GetEligibilityToDetachPaymentMethod(ctx context.Context, id BillingProfileId) (result GetEligibilityToDetachPaymentMethodOperationResponse, err error)
GetEligibilityToDetachPaymentMethod ...
func (BillingProfilesClient) ListByBillingAccount ¶
func (c BillingProfilesClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error)
ListByBillingAccount ...
func (BillingProfilesClient) Update ¶
func (c BillingProfilesClient) Update(ctx context.Context, id BillingProfileId, input BillingProfile) (result UpdateOperationResponse, err error)
Update ...
func (BillingProfilesClient) UpdateThenPoll ¶
func (c BillingProfilesClient) UpdateThenPoll(ctx context.Context, id BillingProfileId, input BillingProfile) error
UpdateThenPoll performs Update then polls until it's completed
type BillingRelationshipType ¶
type BillingRelationshipType string
const ( BillingRelationshipTypeCSPPartner BillingRelationshipType = "CSPPartner" BillingRelationshipTypeDirect BillingRelationshipType = "Direct" BillingRelationshipTypeIndirectCustomer BillingRelationshipType = "IndirectCustomer" BillingRelationshipTypeIndirectPartner BillingRelationshipType = "IndirectPartner" )
func (*BillingRelationshipType) UnmarshalJSON ¶
func (s *BillingRelationshipType) UnmarshalJSON(bytes []byte) error
type CreateOperationResponse ¶
type DetachPaymentMethodEligibilityErrorCode ¶
type DetachPaymentMethodEligibilityErrorCode string
const ( DetachPaymentMethodEligibilityErrorCodeAzureSubscriptions DetachPaymentMethodEligibilityErrorCode = "AzureSubscriptions" DetachPaymentMethodEligibilityErrorCodeOutstandingCharges DetachPaymentMethodEligibilityErrorCode = "OutstandingCharges" DetachPaymentMethodEligibilityErrorCodePendingCharges DetachPaymentMethodEligibilityErrorCode = "PendingCharges" DetachPaymentMethodEligibilityErrorCodeRecurringCharges DetachPaymentMethodEligibilityErrorCode = "RecurringCharges" DetachPaymentMethodEligibilityErrorCodeReservedInstances DetachPaymentMethodEligibilityErrorCode = "ReservedInstances" )
func (*DetachPaymentMethodEligibilityErrorCode) UnmarshalJSON ¶
func (s *DetachPaymentMethodEligibilityErrorCode) UnmarshalJSON(bytes []byte) error
type DetachPaymentMethodEligibilityResult ¶
type DetachPaymentMethodEligibilityResult struct { ErrorDetails *[]DetachPaymentMethodErrorDetails `json:"errorDetails,omitempty"` IsEligible *bool `json:"isEligible,omitempty"` }
type DetachPaymentMethodErrorDetails ¶
type DetachPaymentMethodErrorDetails struct { Code *DetachPaymentMethodEligibilityErrorCode `json:"code,omitempty"` Message *string `json:"message,omitempty"` }
type GetEligibilityToDetachPaymentMethodOperationResponse ¶
type GetEligibilityToDetachPaymentMethodOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DetachPaymentMethodEligibilityResult }
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *BillingProfile }
type InvoiceSection ¶
type InvoiceSection struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *InvoiceSectionProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type InvoiceSectionProperties ¶
type InvoiceSectionProperties struct { DisplayName *string `json:"displayName,omitempty"` State *InvoiceSectionState `json:"state,omitempty"` TargetCloud *TargetCloud `json:"targetCloud,omitempty"` }
type InvoiceSectionState ¶
type InvoiceSectionState string
const ( InvoiceSectionStateActive InvoiceSectionState = "Active" InvoiceSectionStateRestricted InvoiceSectionState = "Restricted" )
func (*InvoiceSectionState) UnmarshalJSON ¶
func (s *InvoiceSectionState) UnmarshalJSON(bytes []byte) error
type ListByBillingAccountOperationOptions ¶
type ListByBillingAccountOperationOptions struct {
Expand *string
}
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 ListByBillingAccountOperationResponse ¶
type ListByBillingAccountOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *BillingProfileListResult }
type SpendingLimit ¶
type SpendingLimit string
const ( SpendingLimitOff SpendingLimit = "Off" SpendingLimitOn SpendingLimit = "On" )
func (*SpendingLimit) UnmarshalJSON ¶
func (s *SpendingLimit) UnmarshalJSON(bytes []byte) error
type StatusReasonCode ¶
type StatusReasonCode string
const ( StatusReasonCodePastDue StatusReasonCode = "PastDue" StatusReasonCodeSpendingLimitExpired StatusReasonCode = "SpendingLimitExpired" StatusReasonCodeSpendingLimitReached StatusReasonCode = "SpendingLimitReached" )
func (*StatusReasonCode) UnmarshalJSON ¶
func (s *StatusReasonCode) UnmarshalJSON(bytes []byte) error
type TargetCloud ¶
type TargetCloud string
const ( TargetCloudUSGov TargetCloud = "USGov" TargetCloudUSNat TargetCloud = "USNat" TargetCloudUSSec TargetCloud = "USSec" )
func (*TargetCloud) UnmarshalJSON ¶
func (s *TargetCloud) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
Source Files ¶
- client.go
- constants.go
- id_billingaccount.go
- id_billingprofile.go
- method_create.go
- method_get.go
- method_geteligibilitytodetachpaymentmethod.go
- method_listbybillingaccount.go
- method_update.go
- model_addressdetails.go
- model_azureplan.go
- model_billingprofile.go
- model_billingprofilecreationrequest.go
- model_billingprofilelistresult.go
- model_billingprofileproperties.go
- model_detachpaymentmethodeligibilityresult.go
- model_detachpaymentmethoderrordetails.go
- model_indirectrelationshipinfo.go
- model_invoicesection.go
- model_invoicesectionproperties.go
- version.go