accountteam

package
v0.73.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TeamTypeChoices

func TeamTypeChoices() []string

Types

type AccountInviteOut

type AccountInviteOut struct {
	AccountId          string    `json:"account_id"`            // Account ID
	AccountName        string    `json:"account_name"`          // Account name
	CreateTime         time.Time `json:"create_time"`           // Timestamp in ISO 8601 format, always in UTC
	InvitedByUserEmail string    `json:"invited_by_user_email"` // User email address
	TeamId             string    `json:"team_id"`               // Team ID
	TeamName           string    `json:"team_name"`             // Team name
	UserEmail          string    `json:"user_email"`            // User email address
}

type AccountTeamCreateIn added in v0.15.0

type AccountTeamCreateIn struct {
	TeamName string `json:"team_name"` // Team name
}

AccountTeamCreateIn AccountTeamCreateRequestBody

type AccountTeamCreateOut added in v0.15.0

type AccountTeamCreateOut struct {
	AccountId  *string    `json:"account_id,omitempty"`  // Account ID
	CreateTime *time.Time `json:"create_time,omitempty"` // Timestamp in ISO 8601 format, always in UTC
	TeamId     string     `json:"team_id"`               // Team ID
	TeamName   string     `json:"team_name"`             // Team name
	UpdateTime *time.Time `json:"update_time,omitempty"` // Timestamp in ISO 8601 format, always in UTC
}

AccountTeamCreateOut Account Team details

type AccountTeamGetOut

type AccountTeamGetOut struct {
	AccountId  *string    `json:"account_id,omitempty"`  // Account ID
	CreateTime *time.Time `json:"create_time,omitempty"` // Timestamp in ISO 8601 format, always in UTC
	TeamId     string     `json:"team_id"`               // Team ID
	TeamName   string     `json:"team_name"`             // Team name
	UpdateTime *time.Time `json:"update_time,omitempty"` // Timestamp in ISO 8601 format, always in UTC
}

AccountTeamGetOut Account Team details

type AccountTeamHandler

type AccountTeamHandler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(doer doer) AccountTeamHandler

func (*AccountTeamHandler) AccountTeamCreate added in v0.15.0

func (h *AccountTeamHandler) AccountTeamCreate(ctx context.Context, accountId string, in *AccountTeamCreateIn) (*AccountTeamCreateOut, error)

func (*AccountTeamHandler) AccountTeamDelete

func (h *AccountTeamHandler) AccountTeamDelete(ctx context.Context, accountId string, teamId string) error

func (*AccountTeamHandler) AccountTeamGet

func (h *AccountTeamHandler) AccountTeamGet(ctx context.Context, accountId string, teamId string) (*AccountTeamGetOut, error)

func (*AccountTeamHandler) AccountTeamInvitesList

func (h *AccountTeamHandler) AccountTeamInvitesList(ctx context.Context, accountId string, teamId string) ([]AccountInviteOut, error)

func (*AccountTeamHandler) AccountTeamList

func (h *AccountTeamHandler) AccountTeamList(ctx context.Context, accountId string) ([]TeamOut, error)

func (*AccountTeamHandler) AccountTeamProjectAssociate

func (h *AccountTeamHandler) AccountTeamProjectAssociate(ctx context.Context, accountId string, teamId string, project string, in *AccountTeamProjectAssociateIn) error

func (*AccountTeamHandler) AccountTeamProjectAssociationUpdate added in v0.15.0

func (h *AccountTeamHandler) AccountTeamProjectAssociationUpdate(ctx context.Context, accountId string, teamId string, project string, in *AccountTeamProjectAssociationUpdateIn) error

func (*AccountTeamHandler) AccountTeamProjectDisassociate

func (h *AccountTeamHandler) AccountTeamProjectDisassociate(ctx context.Context, accountId string, teamId string, project string) error

func (*AccountTeamHandler) AccountTeamProjectList added in v0.8.0

func (h *AccountTeamHandler) AccountTeamProjectList(ctx context.Context, accountId string, teamId string) ([]ProjectOut, error)

func (*AccountTeamHandler) AccountTeamUpdate

func (h *AccountTeamHandler) AccountTeamUpdate(ctx context.Context, accountId string, teamId string, in *AccountTeamUpdateIn) (*AccountTeamUpdateOut, error)

type AccountTeamProjectAssociateIn

type AccountTeamProjectAssociateIn struct {
	TeamType TeamType `json:"team_type"` // Team type (permission level)
}

AccountTeamProjectAssociateIn AccountTeamProjectAssociateRequestBody

type AccountTeamProjectAssociationUpdateIn added in v0.15.0

type AccountTeamProjectAssociationUpdateIn struct {
	TeamType TeamType `json:"team_type,omitempty"` // Team type (permission level)
}

AccountTeamProjectAssociationUpdateIn AccountTeamProjectAssociationUpdateRequestBody

type AccountTeamUpdateIn

type AccountTeamUpdateIn struct {
	TeamName string `json:"team_name"` // Team name
}

AccountTeamUpdateIn AccountTeamUpdateRequestBody

type AccountTeamUpdateOut

type AccountTeamUpdateOut struct {
	AccountId  *string    `json:"account_id,omitempty"`  // Account ID
	CreateTime *time.Time `json:"create_time,omitempty"` // Timestamp in ISO 8601 format, always in UTC
	TeamId     string     `json:"team_id"`               // Team ID
	TeamName   string     `json:"team_name"`             // Team name
	UpdateTime *time.Time `json:"update_time,omitempty"` // Timestamp in ISO 8601 format, always in UTC
}

AccountTeamUpdateOut Account Team details

type Handler

type Handler interface {
	// Deprecated: AccountTeamCreate create a new team
	// POST /v1/account/{account_id}/teams
	// https://api.aiven.io/doc/#tag/Account/operation/AccountTeamCreate
	AccountTeamCreate(ctx context.Context, accountId string, in *AccountTeamCreateIn) (*AccountTeamCreateOut, error)

	// Deprecated: AccountTeamDelete delete a team
	// DELETE /v1/account/{account_id}/team/{team_id}
	// https://api.aiven.io/doc/#tag/Account/operation/AccountTeamDelete
	AccountTeamDelete(ctx context.Context, accountId string, teamId string) error

	// Deprecated: AccountTeamGet get details for a single team
	// GET /v1/account/{account_id}/team/{team_id}
	// https://api.aiven.io/doc/#tag/Account/operation/AccountTeamGet
	AccountTeamGet(ctx context.Context, accountId string, teamId string) (*AccountTeamGetOut, error)

	// Deprecated: AccountTeamInvitesList list pending invites
	// GET /v1/account/{account_id}/team/{team_id}/invites
	// https://api.aiven.io/doc/#tag/Account/operation/AccountTeamInvitesList
	AccountTeamInvitesList(ctx context.Context, accountId string, teamId string) ([]AccountInviteOut, error)

	// Deprecated: AccountTeamList list teams belonging to an account
	// GET /v1/account/{account_id}/teams
	// https://api.aiven.io/doc/#tag/Account/operation/AccountTeamList
	AccountTeamList(ctx context.Context, accountId string) ([]TeamOut, error)

	// Deprecated: AccountTeamProjectAssociate associate team to a project
	// POST /v1/account/{account_id}/team/{team_id}/project/{project}
	// https://api.aiven.io/doc/#tag/Account/operation/AccountTeamProjectAssociate
	AccountTeamProjectAssociate(ctx context.Context, accountId string, teamId string, project string, in *AccountTeamProjectAssociateIn) error

	// Deprecated: AccountTeamProjectAssociationUpdate update team-project association
	// PUT /v1/account/{account_id}/team/{team_id}/project/{project}
	// https://api.aiven.io/doc/#tag/Account/operation/AccountTeamProjectAssociationUpdate
	AccountTeamProjectAssociationUpdate(ctx context.Context, accountId string, teamId string, project string, in *AccountTeamProjectAssociationUpdateIn) error

	// Deprecated: AccountTeamProjectDisassociate disassociate team from a project
	// DELETE /v1/account/{account_id}/team/{team_id}/project/{project}
	// https://api.aiven.io/doc/#tag/Account/operation/AccountTeamProjectDisassociate
	AccountTeamProjectDisassociate(ctx context.Context, accountId string, teamId string, project string) error

	// Deprecated: AccountTeamProjectList list projects associated to a team
	// GET /v1/account/{account_id}/team/{team_id}/projects
	// https://api.aiven.io/doc/#tag/Account/operation/AccountTeamProjectList
	AccountTeamProjectList(ctx context.Context, accountId string, teamId string) ([]ProjectOut, error)

	// Deprecated: AccountTeamUpdate update team details
	// PUT /v1/account/{account_id}/team/{team_id}
	// https://api.aiven.io/doc/#tag/Account/operation/AccountTeamUpdate
	AccountTeamUpdate(ctx context.Context, accountId string, teamId string, in *AccountTeamUpdateIn) (*AccountTeamUpdateOut, error)
}

type ProjectOut added in v0.8.0

type ProjectOut struct {
	ProjectName string   `json:"project_name"` // Project name
	TeamType    TeamType `json:"team_type"`    // Team type (permission level)
}

type TeamOut

type TeamOut struct {
	AccountId  *string    `json:"account_id,omitempty"`  // Account ID
	CreateTime *time.Time `json:"create_time,omitempty"` // Timestamp in ISO 8601 format, always in UTC
	TeamId     string     `json:"team_id"`               // Team ID
	TeamName   string     `json:"team_name"`             // Team name
	UpdateTime *time.Time `json:"update_time,omitempty"` // Timestamp in ISO 8601 format, always in UTC
}

type TeamType

type TeamType string
const (
	TeamTypeAdmin                     TeamType = "admin"
	TeamTypeOperator                  TeamType = "operator"
	TeamTypeDeveloper                 TeamType = "developer"
	TeamTypeReadOnly                  TeamType = "read_only"
	TeamTypeProjectIntegrationsRead   TeamType = "project:integrations:read"
	TeamTypeProjectIntegrationsWrite  TeamType = "project:integrations:write"
	TeamTypeProjectNetworkingRead     TeamType = "project:networking:read"
	TeamTypeProjectNetworkingWrite    TeamType = "project:networking:write"
	TeamTypeProjectPermissionsRead    TeamType = "project:permissions:read"
	TeamTypeServiceConfigurationWrite TeamType = "service:configuration:write"
	TeamTypeServiceLogsRead           TeamType = "service:logs:read"
	TeamTypeProjectServicesRead       TeamType = "project:services:read"
	TeamTypeProjectServicesWrite      TeamType = "project:services:write"
	TeamTypeProjectAuditLogsRead      TeamType = "project:audit_logs:read"
	TeamTypeServiceDataWrite          TeamType = "service:data:write"
	TeamTypeServiceSecretsRead        TeamType = "service:secrets:read"
	TeamTypeServiceUsersWrite         TeamType = "service:users:write"
	TeamTypeRoleServicesMaintenance   TeamType = "role:services:maintenance"
	TeamTypeRoleServicesRecover       TeamType = "role:services:recover"
	TeamTypeOrganizationAuditLogsRead TeamType = "organization:audit_logs:read"
	TeamTypeOrganizationUsersWrite    TeamType = "organization:users:write"
	TeamTypeOrganizationAppUsersWrite TeamType = "organization:app_users:write"
	TeamTypeOrganizationGroupsWrite   TeamType = "organization:groups:write"
	TeamTypeOrganizationIdpsWrite     TeamType = "organization:idps:write"
	TeamTypeOrganizationDomainsWrite  TeamType = "organization:domains:write"
	TeamTypeRoleOrganizationAdmin     TeamType = "role:organization:admin"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL