Skip to content

Commit

Permalink
Added note in documentation that Parent/Child support may not yet be …
Browse files Browse the repository at this point in the history
…generally available (#534)
  • Loading branch information
ezilber-akamai authored Jun 26, 2024
1 parent bd6c262 commit a4ad883
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions account_child.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type ChildAccount = Account
type ChildAccountToken = Token

// ListChildAccounts lists child accounts under the current account.
// NOTE: Parent/Child related features may not be generally available.
func (c *Client) ListChildAccounts(ctx context.Context, opts *ListOptions) ([]ChildAccount, error) {
return getPaginatedResults[ChildAccount](
ctx,
Expand All @@ -24,6 +25,7 @@ func (c *Client) ListChildAccounts(ctx context.Context, opts *ListOptions) ([]Ch
}

// GetChildAccount gets a single child accounts under the current account.
// NOTE: Parent/Child related features may not be generally available.
func (c *Client) GetChildAccount(ctx context.Context, euuid string) (*ChildAccount, error) {
return doGETRequest[ChildAccount](
ctx,
Expand All @@ -35,6 +37,7 @@ func (c *Client) GetChildAccount(ctx context.Context, euuid string) (*ChildAccou
// CreateChildAccountToken creates a short-lived token that can be used to
// access the Linode API under a child account.
// The attributes of this token are not currently configurable.
// NOTE: Parent/Child related features may not be generally available.
func (c *Client) CreateChildAccountToken(ctx context.Context, euuid string) (*ChildAccountToken, error) {
return doPOSTRequest[ChildAccountToken, any](
ctx,
Expand Down

0 comments on commit a4ad883

Please sign in to comment.