Documentation ¶
Index ¶
- func ValidateBillingAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateDepartmentID(input interface{}, key string) (warnings []string, errors []error)
- type BillingAccountId
- type Department
- type DepartmentClient
- func (c DepartmentClient) Get(ctx context.Context, id DepartmentId) (result GetOperationResponse, err error)
- func (c DepartmentClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountOperationResponse, err error)
- func (c DepartmentClient) ListByBillingAccountComplete(ctx context.Context, id BillingAccountId, ...) (ListByBillingAccountCompleteResult, error)
- func (c DepartmentClient) ListByBillingAccountCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountCompleteResult, err error)
- type DepartmentId
- type DepartmentOperationPredicate
- type DepartmentProperties
- type GetOperationResponse
- type ListByBillingAccountCompleteResult
- type ListByBillingAccountCustomPager
- type ListByBillingAccountOperationOptions
- type ListByBillingAccountOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateBillingAccountID ¶
ValidateBillingAccountID checks that 'input' can be parsed as a Billing Account ID
func ValidateDepartmentID ¶
ValidateDepartmentID checks that 'input' can be parsed as a Department 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 Department ¶
type Department struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *DepartmentProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type DepartmentClient ¶
type DepartmentClient struct {
Client *resourcemanager.Client
}
func NewDepartmentClientWithBaseURI ¶
func NewDepartmentClientWithBaseURI(sdkApi sdkEnv.Api) (*DepartmentClient, error)
func (DepartmentClient) Get ¶
func (c DepartmentClient) Get(ctx context.Context, id DepartmentId) (result GetOperationResponse, err error)
Get ...
func (DepartmentClient) ListByBillingAccount ¶
func (c DepartmentClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error)
ListByBillingAccount ...
func (DepartmentClient) ListByBillingAccountComplete ¶
func (c DepartmentClient) ListByBillingAccountComplete(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (ListByBillingAccountCompleteResult, error)
ListByBillingAccountComplete retrieves all the results into a single object
func (DepartmentClient) ListByBillingAccountCompleteMatchingPredicate ¶
func (c DepartmentClient) ListByBillingAccountCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions, predicate DepartmentOperationPredicate) (result ListByBillingAccountCompleteResult, err error)
ListByBillingAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate
type DepartmentId ¶
DepartmentId is a struct representing the Resource ID for a Department
func NewDepartmentID ¶
func NewDepartmentID(billingAccountName string, departmentName string) DepartmentId
NewDepartmentID returns a new DepartmentId struct
func ParseDepartmentID ¶
func ParseDepartmentID(input string) (*DepartmentId, error)
ParseDepartmentID parses 'input' into a DepartmentId
func ParseDepartmentIDInsensitively ¶
func ParseDepartmentIDInsensitively(input string) (*DepartmentId, error)
ParseDepartmentIDInsensitively parses 'input' case-insensitively into a DepartmentId note: this method should only be used for API response data and not user input
func (*DepartmentId) FromParseResult ¶
func (id *DepartmentId) FromParseResult(input resourceids.ParseResult) error
func (DepartmentId) Segments ¶
func (id DepartmentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Department ID
func (DepartmentId) String ¶
func (id DepartmentId) String() string
String returns a human-readable description of this Department ID
type DepartmentOperationPredicate ¶
func (DepartmentOperationPredicate) Matches ¶
func (p DepartmentOperationPredicate) Matches(input Department) bool
type DepartmentProperties ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *Department }
type ListByBillingAccountCompleteResult ¶
type ListByBillingAccountCompleteResult struct { LatestHttpResponse *http.Response Items []Department }
type ListByBillingAccountCustomPager ¶
func (*ListByBillingAccountCustomPager) NextPageLink ¶
func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link
type ListByBillingAccountOperationOptions ¶
type ListByBillingAccountOperationOptions struct { 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 ListByBillingAccountOperationResponse ¶
type ListByBillingAccountOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]Department }