Versions in this module Expand all Collapse all v1 v1.0.1 Sep 13, 2022 v1.0.0 Sep 12, 2022 Changes in this version + const DefaultBaseURI + func UserAgent() string + func Version() string + type BaseClient struct + BaseURI string + GroupID uuid.UUID + func New(groupID uuid.UUID) BaseClient + func NewWithBaseURI(baseURI string, groupID uuid.UUID) BaseClient + type ChildInfo struct + ChildID *string + ChildType ChildType + DisplayName *string + TenantID *uuid.UUID + type ChildType string + const Account + const Department + const Enrollment + const Subscription + func PossibleChildTypeValues() []ChildType + type ChildType1 string + const ChildType1Account + const ChildType1Department + const ChildType1Enrollment + const ChildType1Subscription + func PossibleChildType1Values() []ChildType1 + type Client struct + func NewClient(groupID uuid.UUID) Client + func NewClientWithBaseURI(baseURI string, groupID uuid.UUID) Client + func (client Client) Get(ctx context.Context, expand string, recurse *bool) (result WithHierarchy, err error) + func (client Client) GetPreparer(ctx context.Context, expand string, recurse *bool) (*http.Request, error) + func (client Client) GetResponder(resp *http.Response) (result WithHierarchy, err error) + func (client Client) GetSender(req *http.Request) (*http.Response, error) + func (client Client) List(ctx context.Context, skiptoken string) (result ListResultPage, err error) + func (client Client) ListComplete(ctx context.Context, skiptoken string) (result ListResultIterator, err error) + func (client Client) ListPreparer(ctx context.Context, skiptoken string) (*http.Request, error) + func (client Client) ListResponder(resp *http.Response) (result ListResult, err error) + func (client Client) ListSender(req *http.Request) (*http.Response, error) + type DetailsProperties struct + ManagementGroupType ManagementGroupType + Parent *ParentGroupInfo + UpdatedBy *string + UpdatedTime *date.Time + Version *float64 + type ErrorDetails struct + Code *string + Message *string + Target *string + type ErrorResponse struct + Error *ErrorDetails + type Info struct + ID *string + Name *uuid.UUID + Type *string + func (i *Info) UnmarshalJSON(body []byte) error + func (i Info) MarshalJSON() ([]byte, error) + type InfoProperties struct + DisplayName *string + TenantID *uuid.UUID + type ListResult struct + NextLink *string + Value *[]Info + func (lr ListResult) IsEmpty() bool + func (lr ListResult) MarshalJSON() ([]byte, error) + type ListResultIterator struct + func NewListResultIterator(page ListResultPage) ListResultIterator + func (iter *ListResultIterator) Next() error + func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error) + func (iter ListResultIterator) NotDone() bool + func (iter ListResultIterator) Response() ListResult + func (iter ListResultIterator) Value() Info + type ListResultPage struct + func NewListResultPage(cur ListResult, ...) ListResultPage + func (page *ListResultPage) Next() error + func (page *ListResultPage) NextWithContext(ctx context.Context) (err error) + func (page ListResultPage) NotDone() bool + func (page ListResultPage) Response() ListResult + func (page ListResultPage) Values() []Info + type ManagementGroup struct + ID *string + Name *uuid.UUID + Type *string + func (mg *ManagementGroup) UnmarshalJSON(body []byte) error + func (mg ManagementGroup) MarshalJSON() ([]byte, error) + type ManagementGroupType string + const ManagementGroupTypeAccount + const ManagementGroupTypeDepartment + const ManagementGroupTypeEnrollment + const ManagementGroupTypeSubscription + func PossibleManagementGroupTypeValues() []ManagementGroupType + type Operation struct + Display *OperationDisplay + Name *string + func (o Operation) MarshalJSON() ([]byte, error) + type OperationDisplay struct + Operation *string + Provider *string + Resource *string + func (o OperationDisplay) MarshalJSON() ([]byte, error) + type OperationListResult struct + NextLink *string + Value *[]Operation + func (olr OperationListResult) IsEmpty() bool + func (olr OperationListResult) MarshalJSON() ([]byte, error) + type OperationListResultIterator struct + func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator + func (iter *OperationListResultIterator) Next() error + func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error) + func (iter OperationListResultIterator) NotDone() bool + func (iter OperationListResultIterator) Response() OperationListResult + func (iter OperationListResultIterator) Value() Operation + type OperationListResultPage struct + func NewOperationListResultPage(cur OperationListResult, ...) OperationListResultPage + func (page *OperationListResultPage) Next() error + func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error) + func (page OperationListResultPage) NotDone() bool + func (page OperationListResultPage) Response() OperationListResult + func (page OperationListResultPage) Values() []Operation + type OperationsClient struct + func NewOperationsClient(groupID uuid.UUID) OperationsClient + func NewOperationsClientWithBaseURI(baseURI string, groupID uuid.UUID) OperationsClient + func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) + func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) + func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) + func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) + func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) + type ParentGroupInfo struct + DisplayName *string + ParentID *string + type Properties struct + Details *DetailsProperties + DisplayName *string + TenantID *uuid.UUID + type PropertiesWithChildren struct + Children *[]ChildInfo + Details *DetailsProperties + DisplayName *string + TenantID *uuid.UUID + type PropertiesWithHierarchy struct + Children *[]RecursiveChildInfo + Details *DetailsProperties + DisplayName *string + TenantID *uuid.UUID + type RecursiveChildInfo struct + ChildID *string + ChildType ChildType1 + Children *[]RecursiveChildInfo + DisplayName *string + TenantID *uuid.UUID + type WithChildren struct + ID *string + Name *uuid.UUID + Type *string + func (wc *WithChildren) UnmarshalJSON(body []byte) error + func (wc WithChildren) MarshalJSON() ([]byte, error) + type WithHierarchy struct + ID *string + Name *uuid.UUID + Type *string + func (wh *WithHierarchy) UnmarshalJSON(body []byte) error + func (wh WithHierarchy) MarshalJSON() ([]byte, error)