Documentation ¶
Overview ¶
Code generated by tutone: DO NOT EDIT
Code generated by tutone: DO NOT EDIT
Code **NOT** generated by tutone
Code generated by tutone: DO NOT EDIT
Index ¶
- Constants
- type AccountManagementCancelAccountQueryResponse
- type AccountManagementCreateAccountQueryResponse
- type AccountManagementCreateInput
- type AccountManagementCreateResponse
- type AccountManagementManagedAccount
- type AccountManagementOrganizationStitchedFields
- type AccountManagementUpdateAccountQueryResponse
- type AccountManagementUpdateInput
- type AccountManagementUpdateResponse
- type Accountmanagement
- func (a *Accountmanagement) AccountManagementCancelAccount(iD int) (*AccountManagementManagedAccount, error)
- func (a *Accountmanagement) AccountManagementCancelAccountWithContext(ctx context.Context, iD int) (*AccountManagementManagedAccount, error)
- func (a *Accountmanagement) AccountManagementCreateAccount(managedAccount AccountManagementCreateInput) (*AccountManagementCreateResponse, error)
- func (a *Accountmanagement) AccountManagementCreateAccountWithContext(ctx context.Context, managedAccount AccountManagementCreateInput) (*AccountManagementCreateResponse, error)
- func (a *Accountmanagement) AccountManagementUpdateAccount(managedAccount AccountManagementUpdateInput) (*AccountManagementUpdateResponse, error)
- func (a *Accountmanagement) AccountManagementUpdateAccountWithContext(ctx context.Context, managedAccount AccountManagementUpdateInput) (*AccountManagementUpdateResponse, error)
- func (a *Accountmanagement) GetManagedAccounts() (*[]AccountManagementManagedAccount, error)
- func (a *Accountmanagement) GetManagedAccountsWithAdditionalArguments(isCanceled *bool) (*[]AccountManagementManagedAccount, error)
- func (a *Accountmanagement) GetManagedAccountsWithAdditionalArgumentsWithContext(ctx context.Context, isCanceled *bool) (*[]AccountManagementManagedAccount, error)
- func (a *Accountmanagement) GetManagedAccountsWithContext(ctx context.Context) (*[]AccountManagementManagedAccount, error)
- type Actor
- type ID
- type Organization
Constants ¶
const AccountManagementCancelAccountMutation = `mutation(
$id: Int!,
) { accountManagementCancelAccount(
id: $id,
) {
id
isCanceled
name
regionCode
} }`
const AccountManagementCreateAccountMutation = `` /* 195-byte string literal not displayed */
const AccountManagementUpdateAccountMutation = `` /* 182-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountManagementCancelAccountQueryResponse ¶ added in v2.41.0
type AccountManagementCancelAccountQueryResponse struct {
AccountManagementManagedAccount AccountManagementManagedAccount `json:"AccountManagementCancelAccount"`
}
type AccountManagementCreateAccountQueryResponse ¶
type AccountManagementCreateAccountQueryResponse struct {
AccountManagementCreateResponse AccountManagementCreateResponse `json:"AccountManagementCreateAccount"`
}
type AccountManagementCreateInput ¶
type AccountManagementCreateInput struct { // The name of the account. Name string `json:"name"` // The id of the managed organization where the account will be created. OrganizationId int `json:"organizationId,omitempty"` // The data center region for the account RegionCode string `json:"regionCode,omitempty"` }
AccountManagementCreateInput - Attributes for creating an account.
type AccountManagementCreateResponse ¶
type AccountManagementCreateResponse struct { // Information about the newly created account. ManagedAccount AccountManagementManagedAccount `json:"managedAccount,omitempty"` }
AccountManagementCreateResponse - The return object for a create-account mutation.
type AccountManagementManagedAccount ¶
type AccountManagementManagedAccount struct { // The account ID. ID int `json:"id"` // True if account is canceled IsCanceled bool `json:"isCanceled"` // The name of the account. Name string `json:"name"` // The data center region for the account (US or EU). RegionCode string `json:"regionCode"` }
AccountManagementManagedAccount - Account data view for administration tasks.
type AccountManagementOrganizationStitchedFields ¶
type AccountManagementOrganizationStitchedFields struct { // Admin-level info about the accounts in an organization. ManagedAccounts []AccountManagementManagedAccount `json:"managedAccounts"` }
AccountManagementOrganizationStitchedFields - The field type for stitching into the NerdGraph schema.
type AccountManagementUpdateAccountQueryResponse ¶
type AccountManagementUpdateAccountQueryResponse struct {
AccountManagementUpdateResponse AccountManagementUpdateResponse `json:"AccountManagementUpdateAccount"`
}
type AccountManagementUpdateInput ¶
type AccountManagementUpdateInput struct { // The ID for the account being updated. ID int `json:"id"` // The new account name. Name string `json:"name"` }
AccountManagementUpdateInput - The attributes for updating an account.
type AccountManagementUpdateResponse ¶
type AccountManagementUpdateResponse struct { // Information about an updated account ManagedAccount AccountManagementManagedAccount `json:"managedAccount,omitempty"` }
AccountManagementUpdateResponse - The return object for an update-account mutation.
type Accountmanagement ¶
type Accountmanagement struct {
// contains filtered or unexported fields
}
func New ¶
func New(config config.Config) Accountmanagement
New is used to create a new Account Management.
func (*Accountmanagement) AccountManagementCancelAccount ¶ added in v2.41.0
func (a *Accountmanagement) AccountManagementCancelAccount( iD int, ) (*AccountManagementManagedAccount, error)
Cancels an account.
func (*Accountmanagement) AccountManagementCancelAccountWithContext ¶ added in v2.41.0
func (a *Accountmanagement) AccountManagementCancelAccountWithContext( ctx context.Context, iD int, ) (*AccountManagementManagedAccount, error)
Cancels an account.
func (*Accountmanagement) AccountManagementCreateAccount ¶
func (a *Accountmanagement) AccountManagementCreateAccount( managedAccount AccountManagementCreateInput, ) (*AccountManagementCreateResponse, error)
Creates an organization-scoped account.
func (*Accountmanagement) AccountManagementCreateAccountWithContext ¶
func (a *Accountmanagement) AccountManagementCreateAccountWithContext( ctx context.Context, managedAccount AccountManagementCreateInput, ) (*AccountManagementCreateResponse, error)
Creates an organization-scoped account.
func (*Accountmanagement) AccountManagementUpdateAccount ¶
func (a *Accountmanagement) AccountManagementUpdateAccount( managedAccount AccountManagementUpdateInput, ) (*AccountManagementUpdateResponse, error)
Updates an account.
func (*Accountmanagement) AccountManagementUpdateAccountWithContext ¶
func (a *Accountmanagement) AccountManagementUpdateAccountWithContext( ctx context.Context, managedAccount AccountManagementUpdateInput, ) (*AccountManagementUpdateResponse, error)
Updates an account.
func (*Accountmanagement) GetManagedAccounts ¶
func (a *Accountmanagement) GetManagedAccounts() (*[]AccountManagementManagedAccount, error)
Admin-level info about the accounts in an organization.
func (*Accountmanagement) GetManagedAccountsWithAdditionalArguments ¶ added in v2.41.0
func (a *Accountmanagement) GetManagedAccountsWithAdditionalArguments( isCanceled *bool, ) (*[]AccountManagementManagedAccount, error)
Admin-level info about the accounts in an organization.
func (*Accountmanagement) GetManagedAccountsWithAdditionalArgumentsWithContext ¶ added in v2.41.0
func (a *Accountmanagement) GetManagedAccountsWithAdditionalArgumentsWithContext( ctx context.Context, isCanceled *bool, ) (*[]AccountManagementManagedAccount, error)
Admin-level info about the accounts in an organization.
func (*Accountmanagement) GetManagedAccountsWithContext ¶
func (a *Accountmanagement) GetManagedAccountsWithContext( ctx context.Context, ) (*[]AccountManagementManagedAccount, error)
Admin-level info about the accounts in an organization.
type Actor ¶
type Actor struct { // The `organization` field is the entry point into data that is scoped to the user's organization. Organization Organization `json:"organization,omitempty"` }
Actor - The `Actor` object contains fields that are scoped to the API user's access level.
type ID ¶ added in v2.41.0
type ID string
ID - The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.
type Organization ¶
type Organization struct { // This field provides access to AccountManagement data. AccountManagement AccountManagementOrganizationStitchedFields `json:"accountManagement,omitempty"` // The customer id for the organization. CustomerId string `json:"customerId,omitempty"` // The ID of the organization. ID int `json:"id,omitempty"` // The name of the organization. Name string `json:"name,omitempty"` // The telemetry id for the organization TelemetryId string `json:"telemetryId,omitempty"` }
Organization - The `Organization` object provides basic data about an organization.