Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added note in documentation that Parent/Child support may not yet be generally available #534

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added note in documentation that Parent/Child support may not yet be …
…generally available
  • Loading branch information
ezilber-akamai committed Jun 25, 2024
commit 757e96f1baae893b5aa50dce2c509447c9205582
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