Documentation ¶
Index ¶
- func PossibleValuesForBillingFrequency() []string
- func PossibleValuesForProductStatusType() []string
- func PossibleValuesForUpdateAutoRenew() []string
- func ValidateBillingAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateCustomerID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateInvoiceSectionID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateInvoiceSectionProductID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateProductID(input interface{}, key string) (warnings []string, errors []error)
- type Amount
- type BillingAccountId
- type BillingFrequency
- type CustomerId
- type GetByCustomerOperationResponse
- type GetOperationResponse
- type InvoiceSectionId
- type InvoiceSectionProductId
- type ListByBillingAccountCompleteResult
- type ListByBillingAccountCustomPager
- type ListByBillingAccountOperationOptions
- type ListByBillingAccountOperationResponse
- type ListByCustomerCompleteResult
- type ListByCustomerCustomPager
- type ListByCustomerOperationOptions
- type ListByCustomerOperationResponse
- type ListByInvoiceSectionCompleteResult
- type ListByInvoiceSectionCustomPager
- type ListByInvoiceSectionOperationOptions
- type ListByInvoiceSectionOperationResponse
- type Product
- type ProductId
- type ProductOperationPredicate
- type ProductProperties
- func (o *ProductProperties) GetEndDateAsTime() (*time.Time, error)
- func (o *ProductProperties) GetLastChargeDateAsTime() (*time.Time, error)
- func (o *ProductProperties) GetPurchaseDateAsTime() (*time.Time, error)
- func (o *ProductProperties) SetEndDateAsTime(input time.Time)
- func (o *ProductProperties) SetLastChargeDateAsTime(input time.Time)
- func (o *ProductProperties) SetPurchaseDateAsTime(input time.Time)
- type ProductStatusType
- type ProductsClient
- func (c ProductsClient) Get(ctx context.Context, id InvoiceSectionProductId) (result GetOperationResponse, err error)
- func (c ProductsClient) GetByCustomer(ctx context.Context, id ProductId) (result GetByCustomerOperationResponse, err error)
- func (c ProductsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountOperationResponse, err error)
- func (c ProductsClient) ListByBillingAccountComplete(ctx context.Context, id BillingAccountId, ...) (ListByBillingAccountCompleteResult, error)
- func (c ProductsClient) ListByBillingAccountCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountCompleteResult, err error)
- func (c ProductsClient) ListByCustomer(ctx context.Context, id CustomerId, options ListByCustomerOperationOptions) (result ListByCustomerOperationResponse, err error)
- func (c ProductsClient) ListByCustomerComplete(ctx context.Context, id CustomerId, options ListByCustomerOperationOptions) (ListByCustomerCompleteResult, error)
- func (c ProductsClient) ListByCustomerCompleteMatchingPredicate(ctx context.Context, id CustomerId, options ListByCustomerOperationOptions, ...) (result ListByCustomerCompleteResult, err error)
- func (c ProductsClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId, ...) (result ListByInvoiceSectionOperationResponse, err error)
- func (c ProductsClient) ListByInvoiceSectionComplete(ctx context.Context, id InvoiceSectionId, ...) (ListByInvoiceSectionCompleteResult, error)
- func (c ProductsClient) ListByInvoiceSectionCompleteMatchingPredicate(ctx context.Context, id InvoiceSectionId, ...) (result ListByInvoiceSectionCompleteResult, err error)
- func (c ProductsClient) Transfer(ctx context.Context, id InvoiceSectionProductId, ...) (result TransferOperationResponse, err error)
- func (c ProductsClient) UpdateAutoRenewByInvoiceSection(ctx context.Context, id InvoiceSectionProductId, input UpdateAutoRenewRequest) (result UpdateAutoRenewByInvoiceSectionOperationResponse, err error)
- type Reseller
- type TransferOperationResponse
- type TransferProductRequestProperties
- type UpdateAutoRenew
- type UpdateAutoRenewByInvoiceSectionOperationResponse
- type UpdateAutoRenewOperation
- type UpdateAutoRenewOperationProperties
- type UpdateAutoRenewRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForBillingFrequency ¶
func PossibleValuesForBillingFrequency() []string
func PossibleValuesForProductStatusType ¶
func PossibleValuesForProductStatusType() []string
func PossibleValuesForUpdateAutoRenew ¶
func PossibleValuesForUpdateAutoRenew() []string
func ValidateBillingAccountID ¶
ValidateBillingAccountID checks that 'input' can be parsed as a Billing Account ID
func ValidateCustomerID ¶
ValidateCustomerID checks that 'input' can be parsed as a Customer ID
func ValidateInvoiceSectionID ¶
ValidateInvoiceSectionID checks that 'input' can be parsed as a Invoice Section ID
func ValidateInvoiceSectionProductID ¶
func ValidateInvoiceSectionProductID(input interface{}, key string) (warnings []string, errors []error)
ValidateInvoiceSectionProductID checks that 'input' can be parsed as a Invoice Section Product ID
func ValidateProductID ¶
ValidateProductID checks that 'input' can be parsed as a Product 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 BillingFrequency ¶
type BillingFrequency string
const ( BillingFrequencyMonthly BillingFrequency = "Monthly" BillingFrequencyOneTime BillingFrequency = "OneTime" BillingFrequencyUsageBased BillingFrequency = "UsageBased" )
func (*BillingFrequency) UnmarshalJSON ¶
func (s *BillingFrequency) UnmarshalJSON(bytes []byte) error
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 GetOperationResponse ¶
type InvoiceSectionId ¶
type InvoiceSectionId struct { BillingAccountName string BillingProfileName string InvoiceSectionName string }
InvoiceSectionId is a struct representing the Resource ID for a Invoice Section
func NewInvoiceSectionID ¶
func NewInvoiceSectionID(billingAccountName string, billingProfileName string, invoiceSectionName string) InvoiceSectionId
NewInvoiceSectionID returns a new InvoiceSectionId struct
func ParseInvoiceSectionID ¶
func ParseInvoiceSectionID(input string) (*InvoiceSectionId, error)
ParseInvoiceSectionID parses 'input' into a InvoiceSectionId
func ParseInvoiceSectionIDInsensitively ¶
func ParseInvoiceSectionIDInsensitively(input string) (*InvoiceSectionId, error)
ParseInvoiceSectionIDInsensitively parses 'input' case-insensitively into a InvoiceSectionId note: this method should only be used for API response data and not user input
func (*InvoiceSectionId) FromParseResult ¶
func (id *InvoiceSectionId) FromParseResult(input resourceids.ParseResult) error
func (InvoiceSectionId) ID ¶
func (id InvoiceSectionId) ID() string
ID returns the formatted Invoice Section ID
func (InvoiceSectionId) Segments ¶
func (id InvoiceSectionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Invoice Section ID
func (InvoiceSectionId) String ¶
func (id InvoiceSectionId) String() string
String returns a human-readable description of this Invoice Section ID
type InvoiceSectionProductId ¶
type InvoiceSectionProductId struct { BillingAccountName string BillingProfileName string InvoiceSectionName string ProductName string }
InvoiceSectionProductId is a struct representing the Resource ID for a Invoice Section Product
func NewInvoiceSectionProductID ¶
func NewInvoiceSectionProductID(billingAccountName string, billingProfileName string, invoiceSectionName string, productName string) InvoiceSectionProductId
NewInvoiceSectionProductID returns a new InvoiceSectionProductId struct
func ParseInvoiceSectionProductID ¶
func ParseInvoiceSectionProductID(input string) (*InvoiceSectionProductId, error)
ParseInvoiceSectionProductID parses 'input' into a InvoiceSectionProductId
func ParseInvoiceSectionProductIDInsensitively ¶
func ParseInvoiceSectionProductIDInsensitively(input string) (*InvoiceSectionProductId, error)
ParseInvoiceSectionProductIDInsensitively parses 'input' case-insensitively into a InvoiceSectionProductId note: this method should only be used for API response data and not user input
func (*InvoiceSectionProductId) FromParseResult ¶
func (id *InvoiceSectionProductId) FromParseResult(input resourceids.ParseResult) error
func (InvoiceSectionProductId) ID ¶
func (id InvoiceSectionProductId) ID() string
ID returns the formatted Invoice Section Product ID
func (InvoiceSectionProductId) Segments ¶
func (id InvoiceSectionProductId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Invoice Section Product ID
func (InvoiceSectionProductId) String ¶
func (id InvoiceSectionProductId) String() string
String returns a human-readable description of this Invoice Section Product ID
type ListByBillingAccountCustomPager ¶ added in v0.20240628.1153531
func (*ListByBillingAccountCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link
type ListByBillingAccountOperationOptions ¶
type ListByBillingAccountOperationOptions struct {
Filter *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 ListByCustomerCompleteResult ¶ added in v0.20240226.1173038
type ListByCustomerCustomPager ¶ added in v0.20240628.1153531
func (*ListByCustomerCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link
type ListByCustomerOperationOptions ¶
type ListByCustomerOperationOptions struct {
Filter *string
}
func DefaultListByCustomerOperationOptions ¶
func DefaultListByCustomerOperationOptions() ListByCustomerOperationOptions
func (ListByCustomerOperationOptions) ToHeaders ¶
func (o ListByCustomerOperationOptions) ToHeaders() *client.Headers
func (ListByCustomerOperationOptions) ToOData ¶
func (o ListByCustomerOperationOptions) ToOData() *odata.Query
func (ListByCustomerOperationOptions) ToQuery ¶
func (o ListByCustomerOperationOptions) ToQuery() *client.QueryParams
type ListByInvoiceSectionCompleteResult ¶ added in v0.20240226.1173038
type ListByInvoiceSectionCustomPager ¶ added in v0.20240628.1153531
func (*ListByInvoiceSectionCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link
type ListByInvoiceSectionOperationOptions ¶
type ListByInvoiceSectionOperationOptions struct {
Filter *string
}
func DefaultListByInvoiceSectionOperationOptions ¶
func DefaultListByInvoiceSectionOperationOptions() ListByInvoiceSectionOperationOptions
func (ListByInvoiceSectionOperationOptions) ToHeaders ¶
func (o ListByInvoiceSectionOperationOptions) ToHeaders() *client.Headers
func (ListByInvoiceSectionOperationOptions) ToOData ¶
func (o ListByInvoiceSectionOperationOptions) ToOData() *odata.Query
func (ListByInvoiceSectionOperationOptions) ToQuery ¶
func (o ListByInvoiceSectionOperationOptions) ToQuery() *client.QueryParams
type Product ¶
type Product struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ProductProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type ProductId ¶
ProductId is a struct representing the Resource ID for a Product
func NewProductID ¶
NewProductID returns a new ProductId struct
func ParseProductID ¶
ParseProductID parses 'input' into a ProductId
func ParseProductIDInsensitively ¶
ParseProductIDInsensitively parses 'input' case-insensitively into a ProductId note: this method should only be used for API response data and not user input
func (*ProductId) FromParseResult ¶
func (id *ProductId) FromParseResult(input resourceids.ParseResult) error
func (ProductId) Segments ¶
func (id ProductId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Product ID
type ProductOperationPredicate ¶
func (ProductOperationPredicate) Matches ¶
func (p ProductOperationPredicate) Matches(input Product) bool
type ProductProperties ¶
type ProductProperties struct { AvailabilityId *string `json:"availabilityId,omitempty"` BillingFrequency *BillingFrequency `json:"billingFrequency,omitempty"` BillingProfileDisplayName *string `json:"billingProfileDisplayName,omitempty"` BillingProfileId *string `json:"billingProfileId,omitempty"` CustomerDisplayName *string `json:"customerDisplayName,omitempty"` CustomerId *string `json:"customerId,omitempty"` DisplayName *string `json:"displayName,omitempty"` EndDate *string `json:"endDate,omitempty"` InvoiceSectionDisplayName *string `json:"invoiceSectionDisplayName,omitempty"` InvoiceSectionId *string `json:"invoiceSectionId,omitempty"` LastCharge *Amount `json:"lastCharge,omitempty"` LastChargeDate *string `json:"lastChargeDate,omitempty"` ParentProductId *string `json:"parentProductId,omitempty"` ProductType *string `json:"productType,omitempty"` ProductTypeId *string `json:"productTypeId,omitempty"` PurchaseDate *string `json:"purchaseDate,omitempty"` Quantity *float64 `json:"quantity,omitempty"` Reseller *Reseller `json:"reseller,omitempty"` SkuDescription *string `json:"skuDescription,omitempty"` SkuId *string `json:"skuId,omitempty"` Status *ProductStatusType `json:"status,omitempty"` TenantId *string `json:"tenantId,omitempty"` }
func (*ProductProperties) GetEndDateAsTime ¶
func (o *ProductProperties) GetEndDateAsTime() (*time.Time, error)
func (*ProductProperties) GetLastChargeDateAsTime ¶
func (o *ProductProperties) GetLastChargeDateAsTime() (*time.Time, error)
func (*ProductProperties) GetPurchaseDateAsTime ¶
func (o *ProductProperties) GetPurchaseDateAsTime() (*time.Time, error)
func (*ProductProperties) SetEndDateAsTime ¶
func (o *ProductProperties) SetEndDateAsTime(input time.Time)
func (*ProductProperties) SetLastChargeDateAsTime ¶
func (o *ProductProperties) SetLastChargeDateAsTime(input time.Time)
func (*ProductProperties) SetPurchaseDateAsTime ¶
func (o *ProductProperties) SetPurchaseDateAsTime(input time.Time)
type ProductStatusType ¶
type ProductStatusType string
const ( ProductStatusTypeActive ProductStatusType = "Active" ProductStatusTypeAutoRenew ProductStatusType = "AutoRenew" ProductStatusTypeCancelled ProductStatusType = "Cancelled" ProductStatusTypeDisabled ProductStatusType = "Disabled" ProductStatusTypeExpired ProductStatusType = "Expired" ProductStatusTypeExpiring ProductStatusType = "Expiring" ProductStatusTypeInactive ProductStatusType = "Inactive" ProductStatusTypePastDue ProductStatusType = "PastDue" )
func (*ProductStatusType) UnmarshalJSON ¶
func (s *ProductStatusType) UnmarshalJSON(bytes []byte) error
type ProductsClient ¶
type ProductsClient struct {
Client *resourcemanager.Client
}
func NewProductsClientWithBaseURI ¶
func NewProductsClientWithBaseURI(sdkApi sdkEnv.Api) (*ProductsClient, error)
func (ProductsClient) Get ¶
func (c ProductsClient) Get(ctx context.Context, id InvoiceSectionProductId) (result GetOperationResponse, err error)
Get ...
func (ProductsClient) GetByCustomer ¶
func (c ProductsClient) GetByCustomer(ctx context.Context, id ProductId) (result GetByCustomerOperationResponse, err error)
GetByCustomer ...
func (ProductsClient) ListByBillingAccount ¶
func (c ProductsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error)
ListByBillingAccount ...
func (ProductsClient) ListByBillingAccountComplete ¶
func (c ProductsClient) ListByBillingAccountComplete(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (ListByBillingAccountCompleteResult, error)
ListByBillingAccountComplete retrieves all the results into a single object
func (ProductsClient) ListByBillingAccountCompleteMatchingPredicate ¶
func (c ProductsClient) ListByBillingAccountCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions, predicate ProductOperationPredicate) (result ListByBillingAccountCompleteResult, err error)
ListByBillingAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ProductsClient) ListByCustomer ¶
func (c ProductsClient) ListByCustomer(ctx context.Context, id CustomerId, options ListByCustomerOperationOptions) (result ListByCustomerOperationResponse, err error)
ListByCustomer ...
func (ProductsClient) ListByCustomerComplete ¶ added in v0.20240226.1173038
func (c ProductsClient) ListByCustomerComplete(ctx context.Context, id CustomerId, options ListByCustomerOperationOptions) (ListByCustomerCompleteResult, error)
ListByCustomerComplete retrieves all the results into a single object
func (ProductsClient) ListByCustomerCompleteMatchingPredicate ¶ added in v0.20240226.1173038
func (c ProductsClient) ListByCustomerCompleteMatchingPredicate(ctx context.Context, id CustomerId, options ListByCustomerOperationOptions, predicate ProductOperationPredicate) (result ListByCustomerCompleteResult, err error)
ListByCustomerCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ProductsClient) ListByInvoiceSection ¶
func (c ProductsClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId, options ListByInvoiceSectionOperationOptions) (result ListByInvoiceSectionOperationResponse, err error)
ListByInvoiceSection ...
func (ProductsClient) ListByInvoiceSectionComplete ¶ added in v0.20240226.1173038
func (c ProductsClient) ListByInvoiceSectionComplete(ctx context.Context, id InvoiceSectionId, options ListByInvoiceSectionOperationOptions) (ListByInvoiceSectionCompleteResult, error)
ListByInvoiceSectionComplete retrieves all the results into a single object
func (ProductsClient) ListByInvoiceSectionCompleteMatchingPredicate ¶ added in v0.20240226.1173038
func (c ProductsClient) ListByInvoiceSectionCompleteMatchingPredicate(ctx context.Context, id InvoiceSectionId, options ListByInvoiceSectionOperationOptions, predicate ProductOperationPredicate) (result ListByInvoiceSectionCompleteResult, err error)
ListByInvoiceSectionCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ProductsClient) Transfer ¶
func (c ProductsClient) Transfer(ctx context.Context, id InvoiceSectionProductId, input TransferProductRequestProperties) (result TransferOperationResponse, err error)
Transfer ...
func (ProductsClient) UpdateAutoRenewByInvoiceSection ¶
func (c ProductsClient) UpdateAutoRenewByInvoiceSection(ctx context.Context, id InvoiceSectionProductId, input UpdateAutoRenewRequest) (result UpdateAutoRenewByInvoiceSectionOperationResponse, err error)
UpdateAutoRenewByInvoiceSection ...
type UpdateAutoRenew ¶
type UpdateAutoRenew string
const ( UpdateAutoRenewFalse UpdateAutoRenew = "false" UpdateAutoRenewTrue UpdateAutoRenew = "true" )
func (*UpdateAutoRenew) UnmarshalJSON ¶
func (s *UpdateAutoRenew) UnmarshalJSON(bytes []byte) error
type UpdateAutoRenewByInvoiceSectionOperationResponse ¶
type UpdateAutoRenewByInvoiceSectionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *UpdateAutoRenewOperation }
type UpdateAutoRenewOperation ¶
type UpdateAutoRenewOperation struct {
Properties *UpdateAutoRenewOperationProperties `json:"properties,omitempty"`
}
type UpdateAutoRenewOperationProperties ¶
type UpdateAutoRenewOperationProperties struct {
EndDate *string `json:"endDate,omitempty"`
}
func (*UpdateAutoRenewOperationProperties) GetEndDateAsTime ¶
func (o *UpdateAutoRenewOperationProperties) GetEndDateAsTime() (*time.Time, error)
func (*UpdateAutoRenewOperationProperties) SetEndDateAsTime ¶
func (o *UpdateAutoRenewOperationProperties) SetEndDateAsTime(input time.Time)
type UpdateAutoRenewRequest ¶
type UpdateAutoRenewRequest struct {
AutoRenew *UpdateAutoRenew `json:"autoRenew,omitempty"`
}
Source Files ¶
- client.go
- constants.go
- id_billingaccount.go
- id_customer.go
- id_invoicesection.go
- id_invoicesectionproduct.go
- id_product.go
- method_get.go
- method_getbycustomer.go
- method_listbybillingaccount.go
- method_listbycustomer.go
- method_listbyinvoicesection.go
- method_transfer.go
- method_updateautorenewbyinvoicesection.go
- model_amount.go
- model_product.go
- model_productproperties.go
- model_reseller.go
- model_transferproductrequestproperties.go
- model_updateautorenewoperation.go
- model_updateautorenewoperationproperties.go
- model_updateautorenewrequest.go
- predicates.go
- version.go