Documentation ¶
Index ¶
- func PossibleValuesForCode() []string
- func PossibleValuesForIsEnabled() []string
- func PossibleValuesForPricingTier() []string
- func ValidatePricingID(input interface{}, key string) (warnings []string, errors []error)
- type Code
- type Extension
- type GetOperationResponse
- type IsEnabled
- type ListOperationResponse
- type OperationStatus
- type Pricing
- type PricingId
- type PricingList
- type PricingProperties
- type PricingTier
- type PricingsClient
- func (c PricingsClient) Get(ctx context.Context, id PricingId) (result GetOperationResponse, err error)
- func (c PricingsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c PricingsClient) Update(ctx context.Context, id PricingId, input Pricing) (result UpdateOperationResponse, err error)
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCode ¶
func PossibleValuesForCode() []string
func PossibleValuesForIsEnabled ¶
func PossibleValuesForIsEnabled() []string
func PossibleValuesForPricingTier ¶
func PossibleValuesForPricingTier() []string
func ValidatePricingID ¶
ValidatePricingID checks that 'input' can be parsed as a Pricing ID
Types ¶
type Extension ¶
type Extension struct { AdditionalExtensionProperties *interface{} `json:"additionalExtensionProperties,omitempty"` IsEnabled IsEnabled `json:"isEnabled"` Name string `json:"name"` OperationStatus *OperationStatus `json:"operationStatus,omitempty"` }
type GetOperationResponse ¶
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *PricingList }
type OperationStatus ¶
type Pricing ¶
type Pricing struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *PricingProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type PricingId ¶
PricingId is a struct representing the Resource ID for a Pricing
func NewPricingID ¶
NewPricingID returns a new PricingId struct
func ParsePricingID ¶
ParsePricingID parses 'input' into a PricingId
func ParsePricingIDInsensitively ¶
ParsePricingIDInsensitively parses 'input' case-insensitively into a PricingId note: this method should only be used for API response data and not user input
func (*PricingId) FromParseResult ¶
func (id *PricingId) FromParseResult(input resourceids.ParseResult) error
func (PricingId) Segments ¶
func (id PricingId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Pricing ID
type PricingList ¶
type PricingList struct {
Value []Pricing `json:"value"`
}
type PricingProperties ¶
type PricingProperties struct { Deprecated *bool `json:"deprecated,omitempty"` EnablementTime *string `json:"enablementTime,omitempty"` Extensions *[]Extension `json:"extensions,omitempty"` FreeTrialRemainingTime *string `json:"freeTrialRemainingTime,omitempty"` PricingTier PricingTier `json:"pricingTier"` ReplacedBy *[]string `json:"replacedBy,omitempty"` SubPlan *string `json:"subPlan,omitempty"` }
func (*PricingProperties) GetEnablementTimeAsTime ¶
func (o *PricingProperties) GetEnablementTimeAsTime() (*time.Time, error)
func (*PricingProperties) SetEnablementTimeAsTime ¶
func (o *PricingProperties) SetEnablementTimeAsTime(input time.Time)
type PricingTier ¶
type PricingTier string
const ( PricingTierFree PricingTier = "Free" PricingTierStandard PricingTier = "Standard" )
type PricingsClient ¶
func NewPricingsClientWithBaseURI ¶
func NewPricingsClientWithBaseURI(endpoint string) PricingsClient
func (PricingsClient) Get ¶
func (c PricingsClient) Get(ctx context.Context, id PricingId) (result GetOperationResponse, err error)
Get ...
func (PricingsClient) List ¶
func (c PricingsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (PricingsClient) Update ¶
func (c PricingsClient) Update(ctx context.Context, id PricingId, input Pricing) (result UpdateOperationResponse, err error)
Update ...
type UpdateOperationResponse ¶
Click to show internal directories.
Click to hide internal directories.