Documentation ¶
Index ¶
- func ValidateBillingProfileID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateInstructionID(input interface{}, key string) (warnings []string, errors []error)
- type BillingProfileId
- type GetOperationResponse
- type Instruction
- type InstructionId
- type InstructionOperationPredicate
- type InstructionProperties
- func (o *InstructionProperties) GetCreationDateAsTime() (*time.Time, error)
- func (o *InstructionProperties) GetEndDateAsTime() (*time.Time, error)
- func (o *InstructionProperties) GetStartDateAsTime() (*time.Time, error)
- func (o *InstructionProperties) SetCreationDateAsTime(input time.Time)
- func (o *InstructionProperties) SetEndDateAsTime(input time.Time)
- func (o *InstructionProperties) SetStartDateAsTime(input time.Time)
- type InstructionsClient
- func (c InstructionsClient) Get(ctx context.Context, id InstructionId) (result GetOperationResponse, err error)
- func (c InstructionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error)
- func (c InstructionsClient) ListByBillingProfileComplete(ctx context.Context, id BillingProfileId) (ListByBillingProfileCompleteResult, error)
- func (c InstructionsClient) ListByBillingProfileCompleteMatchingPredicate(ctx context.Context, id BillingProfileId, ...) (result ListByBillingProfileCompleteResult, err error)
- func (c InstructionsClient) Put(ctx context.Context, id InstructionId, input Instruction) (result PutOperationResponse, err error)
- type ListByBillingProfileCompleteResult
- type ListByBillingProfileOperationResponse
- type PutOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateBillingProfileID ¶
ValidateBillingProfileID checks that 'input' can be parsed as a Billing Profile ID
func ValidateInstructionID ¶
ValidateInstructionID checks that 'input' can be parsed as a Instruction ID
Types ¶
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 GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *Instruction }
type Instruction ¶
type Instruction struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *InstructionProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type InstructionId ¶
type InstructionId struct { BillingAccountName string BillingProfileName string InstructionName string }
InstructionId is a struct representing the Resource ID for a Instruction
func NewInstructionID ¶
func NewInstructionID(billingAccountName string, billingProfileName string, instructionName string) InstructionId
NewInstructionID returns a new InstructionId struct
func ParseInstructionID ¶
func ParseInstructionID(input string) (*InstructionId, error)
ParseInstructionID parses 'input' into a InstructionId
func ParseInstructionIDInsensitively ¶
func ParseInstructionIDInsensitively(input string) (*InstructionId, error)
ParseInstructionIDInsensitively parses 'input' case-insensitively into a InstructionId note: this method should only be used for API response data and not user input
func (*InstructionId) FromParseResult ¶
func (id *InstructionId) FromParseResult(input resourceids.ParseResult) error
func (InstructionId) ID ¶
func (id InstructionId) ID() string
ID returns the formatted Instruction ID
func (InstructionId) Segments ¶
func (id InstructionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Instruction ID
func (InstructionId) String ¶
func (id InstructionId) String() string
String returns a human-readable description of this Instruction ID
type InstructionOperationPredicate ¶
func (InstructionOperationPredicate) Matches ¶
func (p InstructionOperationPredicate) Matches(input Instruction) bool
type InstructionProperties ¶
type InstructionProperties struct { Amount float64 `json:"amount"` CreationDate *string `json:"creationDate,omitempty"` EndDate string `json:"endDate"` StartDate string `json:"startDate"` }
func (*InstructionProperties) GetCreationDateAsTime ¶
func (o *InstructionProperties) GetCreationDateAsTime() (*time.Time, error)
func (*InstructionProperties) GetEndDateAsTime ¶
func (o *InstructionProperties) GetEndDateAsTime() (*time.Time, error)
func (*InstructionProperties) GetStartDateAsTime ¶
func (o *InstructionProperties) GetStartDateAsTime() (*time.Time, error)
func (*InstructionProperties) SetCreationDateAsTime ¶
func (o *InstructionProperties) SetCreationDateAsTime(input time.Time)
func (*InstructionProperties) SetEndDateAsTime ¶
func (o *InstructionProperties) SetEndDateAsTime(input time.Time)
func (*InstructionProperties) SetStartDateAsTime ¶
func (o *InstructionProperties) SetStartDateAsTime(input time.Time)
type InstructionsClient ¶
type InstructionsClient struct {
Client *resourcemanager.Client
}
func NewInstructionsClientWithBaseURI ¶
func NewInstructionsClientWithBaseURI(sdkApi sdkEnv.Api) (*InstructionsClient, error)
func (InstructionsClient) Get ¶
func (c InstructionsClient) Get(ctx context.Context, id InstructionId) (result GetOperationResponse, err error)
Get ...
func (InstructionsClient) ListByBillingProfile ¶
func (c InstructionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error)
ListByBillingProfile ...
func (InstructionsClient) ListByBillingProfileComplete ¶
func (c InstructionsClient) ListByBillingProfileComplete(ctx context.Context, id BillingProfileId) (ListByBillingProfileCompleteResult, error)
ListByBillingProfileComplete retrieves all the results into a single object
func (InstructionsClient) ListByBillingProfileCompleteMatchingPredicate ¶
func (c InstructionsClient) ListByBillingProfileCompleteMatchingPredicate(ctx context.Context, id BillingProfileId, predicate InstructionOperationPredicate) (result ListByBillingProfileCompleteResult, err error)
ListByBillingProfileCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (InstructionsClient) Put ¶
func (c InstructionsClient) Put(ctx context.Context, id InstructionId, input Instruction) (result PutOperationResponse, err error)
Put ...
type ListByBillingProfileCompleteResult ¶
type ListByBillingProfileCompleteResult struct { LatestHttpResponse *http.Response Items []Instruction }
type ListByBillingProfileOperationResponse ¶
type ListByBillingProfileOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]Instruction }
type PutOperationResponse ¶
type PutOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *Instruction }