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 DepartmentId
- type DepartmentOperationPredicate
- type DepartmentProperties
- type DepartmentsClient
- func (c DepartmentsClient) Get(ctx context.Context, id DepartmentId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c DepartmentsClient) ListByBillingAccountName(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountNameOperationResponse, err error)
- func (c DepartmentsClient) ListByBillingAccountNameComplete(ctx context.Context, id BillingAccountId, ...) (ListByBillingAccountNameCompleteResult, error)
- func (c DepartmentsClient) ListByBillingAccountNameCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountNameCompleteResult, err error)
- type EnrollmentAccount
- type EnrollmentAccountProperties
- func (o *EnrollmentAccountProperties) GetEndDateAsTime() (*time.Time, error)
- func (o *EnrollmentAccountProperties) GetStartDateAsTime() (*time.Time, error)
- func (o *EnrollmentAccountProperties) SetEndDateAsTime(input time.Time)
- func (o *EnrollmentAccountProperties) SetStartDateAsTime(input time.Time)
- type GetOperationOptions
- type GetOperationResponse
- type ListByBillingAccountNameCompleteResult
- type ListByBillingAccountNameCustomPager
- type ListByBillingAccountNameOperationOptions
- type ListByBillingAccountNameOperationResponse
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"` Type *string `json:"type,omitempty"` }
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 ¶ added in v0.20240226.1173038
func (DepartmentOperationPredicate) Matches ¶ added in v0.20240226.1173038
func (p DepartmentOperationPredicate) Matches(input Department) bool
type DepartmentProperties ¶
type DepartmentProperties struct { CostCenter *string `json:"costCenter,omitempty"` DepartmentName *string `json:"departmentName,omitempty"` EnrollmentAccounts *[]EnrollmentAccount `json:"enrollmentAccounts,omitempty"` Status *string `json:"status,omitempty"` }
type DepartmentsClient ¶
type DepartmentsClient struct {
Client *resourcemanager.Client
}
func NewDepartmentsClientWithBaseURI ¶
func NewDepartmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*DepartmentsClient, error)
func (DepartmentsClient) Get ¶
func (c DepartmentsClient) Get(ctx context.Context, id DepartmentId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (DepartmentsClient) ListByBillingAccountName ¶
func (c DepartmentsClient) ListByBillingAccountName(ctx context.Context, id BillingAccountId, options ListByBillingAccountNameOperationOptions) (result ListByBillingAccountNameOperationResponse, err error)
ListByBillingAccountName ...
func (DepartmentsClient) ListByBillingAccountNameComplete ¶ added in v0.20240226.1173038
func (c DepartmentsClient) ListByBillingAccountNameComplete(ctx context.Context, id BillingAccountId, options ListByBillingAccountNameOperationOptions) (ListByBillingAccountNameCompleteResult, error)
ListByBillingAccountNameComplete retrieves all the results into a single object
func (DepartmentsClient) ListByBillingAccountNameCompleteMatchingPredicate ¶ added in v0.20240226.1173038
func (c DepartmentsClient) ListByBillingAccountNameCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, options ListByBillingAccountNameOperationOptions, predicate DepartmentOperationPredicate) (result ListByBillingAccountNameCompleteResult, err error)
ListByBillingAccountNameCompleteMatchingPredicate retrieves all the results and then applies the predicate
type EnrollmentAccount ¶
type EnrollmentAccount struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *EnrollmentAccountProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type EnrollmentAccountProperties ¶
type EnrollmentAccountProperties struct { AccountName *string `json:"accountName,omitempty"` AccountOwner *string `json:"accountOwner,omitempty"` CostCenter *string `json:"costCenter,omitempty"` Department *Department `json:"department,omitempty"` EndDate *string `json:"endDate,omitempty"` StartDate *string `json:"startDate,omitempty"` Status *string `json:"status,omitempty"` }
func (*EnrollmentAccountProperties) GetEndDateAsTime ¶
func (o *EnrollmentAccountProperties) GetEndDateAsTime() (*time.Time, error)
func (*EnrollmentAccountProperties) GetStartDateAsTime ¶
func (o *EnrollmentAccountProperties) GetStartDateAsTime() (*time.Time, error)
func (*EnrollmentAccountProperties) SetEndDateAsTime ¶
func (o *EnrollmentAccountProperties) SetEndDateAsTime(input time.Time)
func (*EnrollmentAccountProperties) SetStartDateAsTime ¶
func (o *EnrollmentAccountProperties) SetStartDateAsTime(input time.Time)
type GetOperationOptions ¶
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 *Department }
type ListByBillingAccountNameCompleteResult ¶ added in v0.20240226.1173038
type ListByBillingAccountNameCompleteResult struct { LatestHttpResponse *http.Response Items []Department }
type ListByBillingAccountNameCustomPager ¶ added in v0.20240628.1153531
func (*ListByBillingAccountNameCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByBillingAccountNameCustomPager) NextPageLink() *odata.Link
type ListByBillingAccountNameOperationOptions ¶
func DefaultListByBillingAccountNameOperationOptions ¶
func DefaultListByBillingAccountNameOperationOptions() ListByBillingAccountNameOperationOptions
func (ListByBillingAccountNameOperationOptions) ToHeaders ¶
func (o ListByBillingAccountNameOperationOptions) ToHeaders() *client.Headers
func (ListByBillingAccountNameOperationOptions) ToOData ¶
func (o ListByBillingAccountNameOperationOptions) ToOData() *odata.Query
func (ListByBillingAccountNameOperationOptions) ToQuery ¶
func (o ListByBillingAccountNameOperationOptions) ToQuery() *client.QueryParams
type ListByBillingAccountNameOperationResponse ¶
type ListByBillingAccountNameOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]Department }