administration

package
v1.175.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id   *string `json:"id,omitempty"`
	Role *string `json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (Account) MarshalJSON

func (o Account) MarshalJSON() ([]byte, error)

func (*Account) SetAccountId

func (o *Account) SetAccountId(v *string) *Account

func (*Account) SetRole

func (o *Account) SetRole(v *string) *Account

type CreatePolicyInput

type CreatePolicyInput struct {
	Policy *Policy `json:"policy,omitempty"`
}

type CreatePolicyOutput

type CreatePolicyOutput struct {
	Policy *Policy `json:"policy,omitempty"`
}

type CreateProgrammaticUserOutput

type CreateProgrammaticUserOutput struct {
	ProgrammaticUser *ProgrammaticUser `json:"user,omitempty"`
}

type CreateUserGroupOutput

type CreateUserGroupOutput struct {
	UserGroup *UserGroup `json:"userGroup,omitempty"`
}

type CreateUserOutput

type CreateUserOutput struct {
	User *User `json:"user,omitempty"`
}

type DeletePolicyInput

type DeletePolicyInput struct {
	PolicyID *string `json:"id,omitempty"`
}

type DeletePolicyOutput

type DeletePolicyOutput struct{}

type DeleteUserGroupInput

type DeleteUserGroupInput struct {
	UserGroupID *string `json:"id,omitempty"`
}

type DeleteUserGroupOutput

type DeleteUserGroupOutput struct{}

type DeleteUserInput

type DeleteUserInput struct {
	UserID *string `json:"userId,omitempty"`
}

type DeleteUserOutput

type DeleteUserOutput struct{}

type GetGroupUser

type GetGroupUser struct {
	Type     *string `json:"type,omitempty"`
	UserId   *string `json:"userId,omitempty"`
	UserName *string `json:"userName,omitempty"`
	// contains filtered or unexported fields
}

type Group

type Group struct {
	Id          *string   `json:"id,omitempty"`
	Name        *string   `json:"name,omitempty"`
	PolicyNames []*string `json:"policyNames,omitempty"`
	// contains filtered or unexported fields
}

type ListPoliciesInput

type ListPoliciesInput struct{}

type ListPoliciesOutput

type ListPoliciesOutput struct {
	Policies []*Policy `json:"policies,omitempty"`
}

type ListUserGroupsInput

type ListUserGroupsInput struct{}

type ListUserGroupsOutput

type ListUserGroupsOutput struct {
	UserGroups []*UserGroup `json:"userGroups,omitempty"`
}

type ListUsersInput

type ListUsersInput struct{}

type ListUsersOutput

type ListUsersOutput struct {
	Users []*User `json:"users,omitempty"`
}

type Policy

type Policy struct {
	Description   *string        `json:"description,omitempty"`
	Name          *string        `json:"name,omitempty"`
	PolicyContent *PolicyContent `json:"policyContent,omitempty"`
	PolicyID      *string        `json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (Policy) MarshalJSON

func (o Policy) MarshalJSON() ([]byte, error)

func (*Policy) SetDescription

func (o *Policy) SetDescription(v *string) *Policy

func (*Policy) SetName

func (o *Policy) SetName(v *string) *Policy

func (*Policy) SetPolicyContent

func (o *Policy) SetPolicyContent(v *PolicyContent) *Policy

type PolicyContent

type PolicyContent struct {
	Statements []*Statement `json:"statements,omitempty"`
	// contains filtered or unexported fields
}

func (PolicyContent) MarshalJSON

func (o PolicyContent) MarshalJSON() ([]byte, error)

func (*PolicyContent) SetStatements

func (o *PolicyContent) SetStatements(v []*Statement) *PolicyContent

type ProgPolicy

type ProgPolicy struct {
	PolicyId   *string  `json:"policyId,omitempty"`
	AccountIds []string `json:"accountIds,omitempty"`
	// contains filtered or unexported fields
}

func (ProgPolicy) MarshalJSON

func (o ProgPolicy) MarshalJSON() ([]byte, error)

func (*ProgPolicy) SetAccountIds

func (o *ProgPolicy) SetAccountIds(v []string) *ProgPolicy

func (*ProgPolicy) SetPolicyId

func (o *ProgPolicy) SetPolicyId(v *string) *ProgPolicy

type ProgrammaticUser

type ProgrammaticUser struct {
	Name        *string       `json:"name,omitempty"`
	Description *string       `json:"description,omitempty"`
	Policies    []*ProgPolicy `json:"policies,omitempty"`
	Accounts    []*Account    `json:"accounts,omitempty"`
	Token       *string       `json:"token,omitempty"`
	ProgUserId  *string       `json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (ProgrammaticUser) MarshalJSON

func (o ProgrammaticUser) MarshalJSON() ([]byte, error)

func (*ProgrammaticUser) SetAccounts

func (o *ProgrammaticUser) SetAccounts(v []*Account) *ProgrammaticUser

func (*ProgrammaticUser) SetDescription

func (o *ProgrammaticUser) SetDescription(v *string) *ProgrammaticUser

func (*ProgrammaticUser) SetName

func (o *ProgrammaticUser) SetName(v *string) *ProgrammaticUser

func (*ProgrammaticUser) SetPolicies

func (o *ProgrammaticUser) SetPolicies(v []*ProgPolicy) *ProgrammaticUser

type ReadPolicyInput

type ReadPolicyInput struct {
	PolicyID *string `json:"policyId,omitempty"`
}

type ReadPolicyOutput

type ReadPolicyOutput struct {
	Policy *Policy `json:"policy,omitempty"`
}

type ReadProgUserOutput

type ReadProgUserOutput struct {
	ProgUser *ProgrammaticUser `json:"user,omitempty"`
}

type ReadUserGroupInput

type ReadUserGroupInput struct {
	UserGroupID *string `json:"id,omitempty"`
}

type ReadUserGroupOutput

type ReadUserGroupOutput struct {
	UserGroup *UserGroup `json:"userGroup,omitempty"`
}

type ReadUserInput

type ReadUserInput struct {
	UserID *string `json:"userId,omitempty"`
}

type ReadUserOutput

type ReadUserOutput struct {
	User *User `json:"user,omitempty"`
}

type Service

Service provides the API operation methods for making requests to endpoints of the Spotinst API. See this package's package overview docs for details on the service.

type ServiceOp

type ServiceOp struct {
	Client *client.Client
}

func New

func New(sess *session.Session, cfgs ...*spotinst.Config) *ServiceOp

func (*ServiceOp) CreatePolicy

func (s *ServiceOp) CreatePolicy(ctx context.Context, input *CreatePolicyInput) (*CreatePolicyOutput, error)

func (*ServiceOp) CreateProgUser

func (s *ServiceOp) CreateProgUser(ctx context.Context, input *ProgrammaticUser) (*CreateProgrammaticUserOutput, error)

func (*ServiceOp) CreateUser

func (s *ServiceOp) CreateUser(ctx context.Context, input *User, generateToken *bool) (*CreateUserOutput, error)

func (*ServiceOp) CreateUserGroup

func (s *ServiceOp) CreateUserGroup(ctx context.Context, input *UserGroup) (*CreateUserGroupOutput, error)

func (*ServiceOp) DeletePolicy

func (s *ServiceOp) DeletePolicy(ctx context.Context, input *DeletePolicyInput) (*DeletePolicyOutput, error)

func (*ServiceOp) DeleteUser

func (s *ServiceOp) DeleteUser(ctx context.Context, input *DeleteUserInput) (*DeleteUserOutput, error)

func (*ServiceOp) DeleteUserGroup

func (s *ServiceOp) DeleteUserGroup(ctx context.Context, input *DeleteUserGroupInput) (*DeleteUserGroupOutput, error)

func (*ServiceOp) ListPolicies

func (s *ServiceOp) ListPolicies(ctx context.Context, input *ListPoliciesInput) (*ListPoliciesOutput, error)

func (*ServiceOp) ListUserGroups

func (s *ServiceOp) ListUserGroups(ctx context.Context, input *ListUserGroupsInput) (*ListUserGroupsOutput, error)

func (*ServiceOp) ListUsers

func (s *ServiceOp) ListUsers(ctx context.Context, input *ListUsersInput) (*ListUsersOutput, error)

func (*ServiceOp) ReadPolicy

func (s *ServiceOp) ReadPolicy(ctx context.Context, input *ReadPolicyInput) (*ReadPolicyOutput, error)

func (*ServiceOp) ReadProgUser

func (s *ServiceOp) ReadProgUser(ctx context.Context, input *ReadUserInput) (*ReadProgUserOutput, error)

func (*ServiceOp) ReadUser

func (s *ServiceOp) ReadUser(ctx context.Context, input *ReadUserInput) (*ReadUserOutput, error)

func (*ServiceOp) ReadUserGroup

func (s *ServiceOp) ReadUserGroup(ctx context.Context, input *ReadUserGroupInput) (*ReadUserGroupOutput, error)

func (*ServiceOp) UpdatePolicy

func (s *ServiceOp) UpdatePolicy(ctx context.Context, input *UpdatePolicyInput) (*UpdatePolicyOutput, error)

func (*ServiceOp) UpdateUserGroup

func (s *ServiceOp) UpdateUserGroup(ctx context.Context, input *UserGroup) error

type Statement

type Statement struct {
	Actions   []string `json:"actions,omitempty"`
	Effect    *string  `json:"effect,omitempty"`
	Resources []string `json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (Statement) MarshalJSON

func (o Statement) MarshalJSON() ([]byte, error)

func (*Statement) SetActions

func (o *Statement) SetActions(v []string) *Statement

func (*Statement) SetEffect

func (o *Statement) SetEffect(v *string) *Statement

func (*Statement) SetResources

func (o *Statement) SetResources(v []string) *Statement

type Token

type Token struct {
	Name            *string `json:"name,omitempty"`
	CreatedAt       *string `json:"createdAt,omitempty"`
	TokenId         *int    `json:"tokenId,omitempty"`
	TokenLastDigits *string `json:"tokenLastDigits,omitempty"`
	// contains filtered or unexported fields
}

type UpdatePolicyInput

type UpdatePolicyInput struct {
	Policy *Policy `json:"policy,omitempty"`
}

type UpdatePolicyOutput

type UpdatePolicyOutput struct {
	Policy *Policy `json:"policy,omitempty"`
}

type UpdateUserGroupInput

type UpdateUserGroupInput struct {
	UserGroupID *string `json:"id,omitempty"`
}

type User

type User struct {
	Email               *string       `json:"email,omitempty"`
	FirstName           *string       `json:"firstName,omitempty"`
	LastName            *string       `json:"lastName,omitempty"`
	Password            *string       `json:"password,omitempty"`
	Role                *string       `json:"role,omitempty"`
	UserID              *string       `json:"userId,omitempty"`
	Username            *string       `json:"username,omitempty"`
	Type                *string       `json:"type,omitempty"`
	Mfa                 *bool         `json:"mfa,omitempty"`
	Policies            []*UserPolicy `json:"policies,omitempty"`
	Tokens              []*Token      `json:"tokens,omitempty"`
	PersonalAccessToken *string       `json:"personalAccessToken,omitempty"`
	Id                  *int          `json:"id,omitempty"`
	GroupNames          []*string     `json:"groupNames,omitempty"`
	Groups              []*Group      `json:"groups,omitempty"`
	DisplayName         *string       `json:"displayName,omitempty"`
	OrganizationId      *int          `json:"organizationId,omitempty"`
	// contains filtered or unexported fields
}

func (User) MarshalJSON

func (o User) MarshalJSON() ([]byte, error)

func (*User) SetEmail

func (o *User) SetEmail(v *string) *User

func (*User) SetFirstName

func (o *User) SetFirstName(v *string) *User

func (*User) SetLastName

func (o *User) SetLastName(v *string) *User

func (*User) SetPassword

func (o *User) SetPassword(v *string) *User

func (*User) SetRole

func (o *User) SetRole(v *string) *User

type UserGroup

type UserGroup struct {
	Description *string            `json:"description,omitempty"`
	Name        *string            `json:"name,omitempty"`
	Policies    []*UserGroupPolicy `json:"policies,omitempty"`
	UserIds     []string           `json:"userIds,omitempty"`
	UserGroupId *string            `json:"id,omitempty"`
	Users       []*GetGroupUser    `json:"users,omitempty"`
	CreatedAt   *string            `json:"createdAt,omitempty"`
	PolicyNames []string           `json:"policyNames,omitempty"`
	UsersCount  *int               `json:"usersCount,omitempty"`
	// contains filtered or unexported fields
}

func (UserGroup) MarshalJSON

func (o UserGroup) MarshalJSON() ([]byte, error)

func (*UserGroup) SetDescription

func (o *UserGroup) SetDescription(v *string) *UserGroup

func (*UserGroup) SetName

func (o *UserGroup) SetName(v *string) *UserGroup

func (*UserGroup) SetPolicies

func (o *UserGroup) SetPolicies(v []*UserGroupPolicy) *UserGroup

func (*UserGroup) SetUserIds

func (o *UserGroup) SetUserIds(v []string) *UserGroup

type UserGroupPolicy

type UserGroupPolicy struct {
	AccountIds []string `json:"accountIds,omitempty"`
	PolicyId   *string  `json:"policyId,omitempty"`
	PolicyName *string  `json:"policyName,omitempty"`
	PolicyType *string  `json:"policyType,omitempty"`
	// contains filtered or unexported fields
}

func (UserGroupPolicy) MarshalJSON

func (o UserGroupPolicy) MarshalJSON() ([]byte, error)

func (*UserGroupPolicy) SetAccountIds

func (o *UserGroupPolicy) SetAccountIds(v []string) *UserGroupPolicy

func (*UserGroupPolicy) SetPolicyId

func (o *UserGroupPolicy) SetPolicyId(v *string) *UserGroupPolicy

type UserPolicy

type UserPolicy struct {
	PolicyId   *string  `json:"policyId,omitempty"`
	PolicyName *string  `json:"policyName,omitempty"`
	PolicyType *string  `json:"policyType,omitempty"`
	AccountIds []string `json:"accountIds,omitempty"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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