Documentation ¶
Index ¶
- type Account
- type CreatePolicyInput
- type CreatePolicyOutput
- type CreateProgrammaticUserOutput
- type CreateUserGroupOutput
- type CreateUserOutput
- type DeletePolicyInput
- type DeletePolicyOutput
- type DeleteUserGroupInput
- type DeleteUserGroupOutput
- type DeleteUserInput
- type DeleteUserOutput
- type GetGroupUser
- type Group
- type ListPoliciesInput
- type ListPoliciesOutput
- type ListUserGroupsInput
- type ListUserGroupsOutput
- type ListUsersInput
- type ListUsersOutput
- type Policy
- type PolicyContent
- type ProgPolicy
- type ProgrammaticUser
- func (o ProgrammaticUser) MarshalJSON() ([]byte, error)
- func (o *ProgrammaticUser) SetAccounts(v []*Account) *ProgrammaticUser
- func (o *ProgrammaticUser) SetDescription(v *string) *ProgrammaticUser
- func (o *ProgrammaticUser) SetName(v *string) *ProgrammaticUser
- func (o *ProgrammaticUser) SetPolicies(v []*ProgPolicy) *ProgrammaticUser
- func (o *ProgrammaticUser) SetProgUserGroupIds(v []string) *ProgrammaticUser
- type ReadPolicyInput
- type ReadPolicyOutput
- type ReadProgUserOutput
- type ReadUserGroupInput
- type ReadUserGroupOutput
- type ReadUserInput
- type ReadUserOutput
- type Service
- type ServiceOp
- func (s *ServiceOp) CreatePolicy(ctx context.Context, input *CreatePolicyInput) (*CreatePolicyOutput, error)
- func (s *ServiceOp) CreateProgUser(ctx context.Context, input *ProgrammaticUser) (*CreateProgrammaticUserOutput, error)
- func (s *ServiceOp) CreateUser(ctx context.Context, input *User, generateToken *bool) (*CreateUserOutput, error)
- func (s *ServiceOp) CreateUserGroup(ctx context.Context, input *UserGroup) (*CreateUserGroupOutput, error)
- func (s *ServiceOp) DeletePolicy(ctx context.Context, input *DeletePolicyInput) (*DeletePolicyOutput, error)
- func (s *ServiceOp) DeleteUser(ctx context.Context, input *DeleteUserInput) (*DeleteUserOutput, error)
- func (s *ServiceOp) DeleteUserGroup(ctx context.Context, input *DeleteUserGroupInput) (*DeleteUserGroupOutput, error)
- func (s *ServiceOp) ListPolicies(ctx context.Context, input *ListPoliciesInput) (*ListPoliciesOutput, error)
- func (s *ServiceOp) ListUserGroups(ctx context.Context, input *ListUserGroupsInput) (*ListUserGroupsOutput, error)
- func (s *ServiceOp) ListUsers(ctx context.Context, input *ListUsersInput) (*ListUsersOutput, error)
- func (s *ServiceOp) ReadPolicy(ctx context.Context, input *ReadPolicyInput) (*ReadPolicyOutput, error)
- func (s *ServiceOp) ReadProgUser(ctx context.Context, input *ReadUserInput) (*ReadProgUserOutput, error)
- func (s *ServiceOp) ReadUser(ctx context.Context, input *ReadUserInput) (*ReadUserOutput, error)
- func (s *ServiceOp) ReadUserGroup(ctx context.Context, input *ReadUserGroupInput) (*ReadUserGroupOutput, error)
- func (s *ServiceOp) UpdatePolicy(ctx context.Context, input *UpdatePolicyInput) (*UpdatePolicyOutput, error)
- func (s *ServiceOp) UpdatePolicyMappingOfUser(ctx context.Context, input *UpdatePolicyMappingOfUserInput) error
- func (s *ServiceOp) UpdatePolicyMappingOfUserGroup(ctx context.Context, input *UpdatePolicyMappingOfUserGroupInput) error
- func (s *ServiceOp) UpdateUserGroup(ctx context.Context, input *UserGroup) error
- func (s *ServiceOp) UpdateUserGroupMappingOfUser(ctx context.Context, input *UpdateUserGroupMappingOfUserInput) error
- func (s *ServiceOp) UpdateUserMappingOfUserGroup(ctx context.Context, input *UpdateUserMappingOfUserGroupInput) error
- type Statement
- type Token
- type UpdatePolicyInput
- type UpdatePolicyMappingOfUserGroupInput
- type UpdatePolicyMappingOfUserInput
- type UpdatePolicyOutput
- type UpdateUserGroupInput
- type UpdateUserGroupMappingOfUserInput
- type UpdateUserMappingOfUserGroupInput
- type User
- func (o User) MarshalJSON() ([]byte, error)
- func (o *User) SetEmail(v *string) *User
- func (o *User) SetFirstName(v *string) *User
- func (o *User) SetLastName(v *string) *User
- func (o *User) SetPassword(v *string) *User
- func (o *User) SetRole(v *string) *User
- func (o *User) SetUserGroupIds(v []string) *User
- func (o *User) SetUserPolicies(v []*UserPolicy) *User
- type UserGroup
- type UserGroupPolicy
- type UserPolicy
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 (*Account) SetAccountId ¶
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 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 (*Policy) SetDescription ¶
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"` UserGroupIds []string `json:"userGroupIds,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
func (*ProgrammaticUser) SetProgUserGroupIds ¶
func (o *ProgrammaticUser) SetProgUserGroupIds(v []string) *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 ¶
type Service interface { ListUsers(context.Context, *ListUsersInput) (*ListUsersOutput, error) CreateUser(context.Context, *User, *bool) (*CreateUserOutput, error) CreateProgUser(context.Context, *ProgrammaticUser) (*CreateProgrammaticUserOutput, error) ReadUser(context.Context, *ReadUserInput) (*ReadUserOutput, error) ReadProgUser(context.Context, *ReadUserInput) (*ReadProgUserOutput, error) UpdatePolicyMappingOfUser(context.Context, *UpdatePolicyMappingOfUserInput) error UpdateUserGroupMappingOfUser(context.Context, *UpdateUserGroupMappingOfUserInput) error DeleteUser(context.Context, *DeleteUserInput) (*DeleteUserOutput, error) ListPolicies(context.Context, *ListPoliciesInput) (*ListPoliciesOutput, error) CreatePolicy(context.Context, *CreatePolicyInput) (*CreatePolicyOutput, error) ReadPolicy(context.Context, *ReadPolicyInput) (*ReadPolicyOutput, error) UpdatePolicy(context.Context, *UpdatePolicyInput) (*UpdatePolicyOutput, error) DeletePolicy(context.Context, *DeletePolicyInput) (*DeletePolicyOutput, error) ListUserGroups(context.Context, *ListUserGroupsInput) (*ListUserGroupsOutput, error) CreateUserGroup(context.Context, *UserGroup) (*CreateUserGroupOutput, error) ReadUserGroup(context.Context, *ReadUserGroupInput) (*ReadUserGroupOutput, error) UpdateUserGroup(context.Context, *UserGroup) error UpdateUserMappingOfUserGroup(context.Context, *UpdateUserMappingOfUserGroupInput) error UpdatePolicyMappingOfUserGroup(context.Context, *UpdatePolicyMappingOfUserGroupInput) error DeleteUserGroup(context.Context, *DeleteUserGroupInput) (*DeleteUserGroupOutput, error) }
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 ¶
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 (*ServiceOp) CreateUserGroup ¶
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) UpdatePolicyMappingOfUser ¶
func (s *ServiceOp) UpdatePolicyMappingOfUser(ctx context.Context, input *UpdatePolicyMappingOfUserInput) error
func (*ServiceOp) UpdatePolicyMappingOfUserGroup ¶
func (s *ServiceOp) UpdatePolicyMappingOfUserGroup(ctx context.Context, input *UpdatePolicyMappingOfUserGroupInput) error
func (*ServiceOp) UpdateUserGroup ¶
func (*ServiceOp) UpdateUserGroupMappingOfUser ¶
func (s *ServiceOp) UpdateUserGroupMappingOfUser(ctx context.Context, input *UpdateUserGroupMappingOfUserInput) error
func (*ServiceOp) UpdateUserMappingOfUserGroup ¶
func (s *ServiceOp) UpdateUserMappingOfUserGroup(ctx context.Context, input *UpdateUserMappingOfUserGroupInput) 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 (*Statement) SetActions ¶
func (*Statement) SetResources ¶
type UpdatePolicyInput ¶
type UpdatePolicyInput struct {
Policy *Policy `json:"policy,omitempty"`
}
type UpdatePolicyMappingOfUserGroupInput ¶
type UpdatePolicyMappingOfUserGroupInput struct { UserGroupId *string `json:"userGroupId,omitempty"` Policies []*UserPolicy `json:"policies,omitempty"` }
type UpdatePolicyMappingOfUserInput ¶
type UpdatePolicyMappingOfUserInput struct { UserID *string `json:"userId,omitempty"` Policies []*UserPolicy `json:"policies,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"` UserGroupIds []string `json:"userGroupIds,omitempty"` // contains filtered or unexported fields }
func (User) MarshalJSON ¶
func (*User) SetFirstName ¶
func (*User) SetLastName ¶
func (*User) SetPassword ¶
func (*User) SetUserGroupIds ¶
func (*User) SetUserPolicies ¶
func (o *User) SetUserPolicies(v []*UserPolicy) *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 (*UserGroup) SetDescription ¶
func (*UserGroup) SetPolicies ¶
func (o *UserGroup) SetPolicies(v []*UserGroupPolicy) *UserGroup
func (*UserGroup) SetUserIds ¶
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 }
func (UserPolicy) MarshalJSON ¶
func (o UserPolicy) MarshalJSON() ([]byte, error)
func (*UserPolicy) SetUserPolicyAccountIds ¶
func (o *UserPolicy) SetUserPolicyAccountIds(v []string) *UserPolicy
func (*UserPolicy) SetUserPolicyId ¶
func (o *UserPolicy) SetUserPolicyId(v *string) *UserPolicy
Click to show internal directories.
Click to hide internal directories.