Documentation ¶
Index ¶
- func ValidateBillingAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateEnrollmentAccountID(input interface{}, key string) (warnings []string, errors []error)
- type BillingAccountId
- type Department
- type DepartmentProperties
- type EnrollmentAccount
- type EnrollmentAccountId
- type EnrollmentAccountOperationPredicate
- 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 EnrollmentAccountsClient
- func (c EnrollmentAccountsClient) GetByEnrollmentAccountId(ctx context.Context, id EnrollmentAccountId, ...) (result GetByEnrollmentAccountIdOperationResponse, err error)
- func (c EnrollmentAccountsClient) ListByBillingAccountName(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountNameOperationResponse, err error)
- func (c EnrollmentAccountsClient) ListByBillingAccountNameComplete(ctx context.Context, id BillingAccountId, ...) (ListByBillingAccountNameCompleteResult, error)
- func (c EnrollmentAccountsClient) ListByBillingAccountNameCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountNameCompleteResult, err error)
- type GetByEnrollmentAccountIdOperationOptions
- type GetByEnrollmentAccountIdOperationResponse
- type ListByBillingAccountNameCompleteResult
- 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 ValidateEnrollmentAccountID ¶
ValidateEnrollmentAccountID checks that 'input' can be parsed as a Enrollment Account 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 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 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 EnrollmentAccountId ¶
EnrollmentAccountId is a struct representing the Resource ID for a Enrollment Account
func NewEnrollmentAccountID ¶
func NewEnrollmentAccountID(billingAccountName string, enrollmentAccountName string) EnrollmentAccountId
NewEnrollmentAccountID returns a new EnrollmentAccountId struct
func ParseEnrollmentAccountID ¶
func ParseEnrollmentAccountID(input string) (*EnrollmentAccountId, error)
ParseEnrollmentAccountID parses 'input' into a EnrollmentAccountId
func ParseEnrollmentAccountIDInsensitively ¶
func ParseEnrollmentAccountIDInsensitively(input string) (*EnrollmentAccountId, error)
ParseEnrollmentAccountIDInsensitively parses 'input' case-insensitively into a EnrollmentAccountId note: this method should only be used for API response data and not user input
func (*EnrollmentAccountId) FromParseResult ¶
func (id *EnrollmentAccountId) FromParseResult(input resourceids.ParseResult) error
func (EnrollmentAccountId) ID ¶
func (id EnrollmentAccountId) ID() string
ID returns the formatted Enrollment Account ID
func (EnrollmentAccountId) Segments ¶
func (id EnrollmentAccountId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Enrollment Account ID
func (EnrollmentAccountId) String ¶
func (id EnrollmentAccountId) String() string
String returns a human-readable description of this Enrollment Account ID
type EnrollmentAccountOperationPredicate ¶ added in v0.20240226.1173038
func (EnrollmentAccountOperationPredicate) Matches ¶ added in v0.20240226.1173038
func (p EnrollmentAccountOperationPredicate) Matches(input EnrollmentAccount) bool
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 EnrollmentAccountsClient ¶
type EnrollmentAccountsClient struct {
Client *resourcemanager.Client
}
func NewEnrollmentAccountsClientWithBaseURI ¶
func NewEnrollmentAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*EnrollmentAccountsClient, error)
func (EnrollmentAccountsClient) GetByEnrollmentAccountId ¶
func (c EnrollmentAccountsClient) GetByEnrollmentAccountId(ctx context.Context, id EnrollmentAccountId, options GetByEnrollmentAccountIdOperationOptions) (result GetByEnrollmentAccountIdOperationResponse, err error)
GetByEnrollmentAccountId ...
func (EnrollmentAccountsClient) ListByBillingAccountName ¶
func (c EnrollmentAccountsClient) ListByBillingAccountName(ctx context.Context, id BillingAccountId, options ListByBillingAccountNameOperationOptions) (result ListByBillingAccountNameOperationResponse, err error)
ListByBillingAccountName ...
func (EnrollmentAccountsClient) ListByBillingAccountNameComplete ¶ added in v0.20240226.1173038
func (c EnrollmentAccountsClient) ListByBillingAccountNameComplete(ctx context.Context, id BillingAccountId, options ListByBillingAccountNameOperationOptions) (ListByBillingAccountNameCompleteResult, error)
ListByBillingAccountNameComplete retrieves all the results into a single object
func (EnrollmentAccountsClient) ListByBillingAccountNameCompleteMatchingPredicate ¶ added in v0.20240226.1173038
func (c EnrollmentAccountsClient) ListByBillingAccountNameCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, options ListByBillingAccountNameOperationOptions, predicate EnrollmentAccountOperationPredicate) (result ListByBillingAccountNameCompleteResult, err error)
ListByBillingAccountNameCompleteMatchingPredicate retrieves all the results and then applies the predicate
type GetByEnrollmentAccountIdOperationOptions ¶
func DefaultGetByEnrollmentAccountIdOperationOptions ¶
func DefaultGetByEnrollmentAccountIdOperationOptions() GetByEnrollmentAccountIdOperationOptions
func (GetByEnrollmentAccountIdOperationOptions) ToHeaders ¶
func (o GetByEnrollmentAccountIdOperationOptions) ToHeaders() *client.Headers
func (GetByEnrollmentAccountIdOperationOptions) ToOData ¶
func (o GetByEnrollmentAccountIdOperationOptions) ToOData() *odata.Query
func (GetByEnrollmentAccountIdOperationOptions) ToQuery ¶
func (o GetByEnrollmentAccountIdOperationOptions) ToQuery() *client.QueryParams
type GetByEnrollmentAccountIdOperationResponse ¶
type GetByEnrollmentAccountIdOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *EnrollmentAccount }
type ListByBillingAccountNameCompleteResult ¶ added in v0.20240226.1173038
type ListByBillingAccountNameCompleteResult struct { LatestHttpResponse *http.Response Items []EnrollmentAccount }
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 *[]EnrollmentAccount }