organizationapi

package
v1.24.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoleAssignments

func AddRoleAssignments(params AddRoleAssignmentsParams) (*models.EmptyResponse, error)

func DeleteInvitation

func DeleteInvitation(params DeleteInvitationParams) (models.EmptyResponse, error)

func DeleteMember

func DeleteMember(params DeleteMemberParams) (models.EmptyResponse, error)

func Get

func Get(params GetParams) (*models.Organization, error)

func List

func List(params ListParams) ([]*models.Organization, error)

func RemoveRoleAssignments

func RemoveRoleAssignments(params RemoveRoleAssignmentsParams) (*models.EmptyResponse, error)

func Update

func Update(params UpdateParams) (*models.Organization, error)

Types

type AddRoleAssignmentsParams

type AddRoleAssignmentsParams struct {
	*api.API

	UserID          string
	RoleAssignments models.RoleAssignments
}

func (AddRoleAssignmentsParams) Validate

func (params AddRoleAssignmentsParams) Validate() error

type CreateInvitationParams

type CreateInvitationParams struct {
	*api.API

	OrganizationID string

	// The email addresses to invite to the organization
	Emails []string

	// The expiration time for the invitation, for example 24h, 7d. Defaults to 72h.
	ExpiresIn string

	// Roles to assign to the newly invited user
	RoleAssignments *models.RoleAssignments
}

func (CreateInvitationParams) Validate

func (params CreateInvitationParams) Validate() error

type DeleteInvitationParams

type DeleteInvitationParams struct {
	*api.API

	OrganizationID string

	InvitationTokens []string
}

func (DeleteInvitationParams) Validate

func (params DeleteInvitationParams) Validate() error

type DeleteMemberParams

type DeleteMemberParams struct {
	*api.API

	OrganizationID string

	UserIDs []string
}

func (DeleteMemberParams) Validate

func (params DeleteMemberParams) Validate() error

type GetParams

type GetParams struct {
	*api.API

	OrganizationID string
}

func (GetParams) Validate

func (params GetParams) Validate() error

type ListInvitationsParams

type ListInvitationsParams struct {
	*api.API

	OrganizationID string
}

func (ListInvitationsParams) Validate

func (params ListInvitationsParams) Validate() error

type ListMembersParams

type ListMembersParams struct {
	*api.API

	OrganizationID string
}

func (ListMembersParams) Validate

func (params ListMembersParams) Validate() error

type ListParams

type ListParams struct {
	*api.API
}

func (ListParams) Validate

func (params ListParams) Validate() error

type RemoveRoleAssignmentsParams

type RemoveRoleAssignmentsParams struct {
	*api.API

	UserID          string
	RoleAssignments models.RoleAssignments
}

func (RemoveRoleAssignmentsParams) Validate

func (params RemoveRoleAssignmentsParams) Validate() error

type UpdateParams

type UpdateParams struct {
	*api.API

	OrganizationID                string
	Name                          string
	DefaultDiskUsageAlertsEnabled *bool
	BillingContacts               []string
	AllowedEmailDomains           []string
	OperationalContacts           []string
}

func (UpdateParams) Validate

func (params UpdateParams) Validate() error

Jump to

Keyboard shortcuts

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