custom_role

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 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 CustomRole

type CustomRole struct {
	ID               *string       `json:"id,omitempty"` // read-only
	Type             *string       `json:"type,omitempty"`
	Name             *string       `json:"name,omitempty"`
	Description      *string       `json:"description,omitempty"`
	Permissions      []*Permission `json:"permissions,omitempty"`
	StackRestriction *string       `json:"stackRestriction,omitempty"`
	// contains filtered or unexported fields
}

func (CustomRole) MarshalJSON

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

func (*CustomRole) SetDescription

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

func (*CustomRole) SetID

func (o *CustomRole) SetID(v *string) *CustomRole

func (*CustomRole) SetName

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

func (*CustomRole) SetPermissions

func (o *CustomRole) SetPermissions(v []*Permission) *CustomRole

func (*CustomRole) SetStackRestriction

func (o *CustomRole) SetStackRestriction(v *string) *CustomRole

func (*CustomRole) SetType added in v1.19.0

func (o *CustomRole) SetType(v *string) *CustomRole

type Permission

type Permission struct {
	Name         *string                  `json:"name,omitempty"`
	Names        []*string                `json:"names,omitempty"`
	Restrictions []*PermissionRestriction `json:"restrictions,omitempty"`
	// contains filtered or unexported fields
}

func (Permission) MarshalJSON

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

func (*Permission) SetName

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

func (*Permission) SetNames added in v1.19.0

func (o *Permission) SetNames(v []*string) *Permission

func (*Permission) SetRestrictions added in v1.19.0

func (o *Permission) SetRestrictions(v []*PermissionRestriction) *Permission

type PermissionRestriction added in v1.19.0

type PermissionRestriction struct {
	CloudProvider  *string `json:"cloudProvider,omitempty"`
	CloudAccountId *string `json:"cloudAccountId,omitempty"`
	CmResourceName *string `json:"cmResourceName,omitempty"`
	// contains filtered or unexported fields
}

func (PermissionRestriction) MarshalJSON added in v1.19.0

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

func (*PermissionRestriction) SetCloudAccountId added in v1.19.0

func (o *PermissionRestriction) SetCloudAccountId(v *string) *PermissionRestriction

func (*PermissionRestriction) SetCloudProvider added in v1.19.0

func (o *PermissionRestriction) SetCloudProvider(v *string) *PermissionRestriction

func (*PermissionRestriction) SetCmResourceName added in v1.19.0

func (o *PermissionRestriction) SetCmResourceName(v *string) *PermissionRestriction

type Service

type Service interface {
	CreateCustomRole(context.Context, *CustomRole) (*CustomRole, error)
	ListCustomRoles(context.Context, *string, *string) ([]*CustomRole, error)
	ReadCustomRole(context.Context, string) (*CustomRole, error)
	UpdateCustomRole(context.Context, string, *CustomRole) (*CustomRole, error)
	DeleteCustomRole(context.Context, string) (*commons.EmptyResponse, error)
}

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

func New

func New(sess *session.Session, cfgs ...*controlmonkey.Config) Service

type ServiceOp

type ServiceOp struct {
	Client *client.Client
}

func (*ServiceOp) CreateCustomRole

func (s *ServiceOp) CreateCustomRole(ctx context.Context, input *CustomRole) (*CustomRole, error)

func (*ServiceOp) DeleteCustomRole

func (s *ServiceOp) DeleteCustomRole(ctx context.Context, id string) (*commons.EmptyResponse, error)

func (*ServiceOp) ListCustomRoles

func (s *ServiceOp) ListCustomRoles(ctx context.Context, customRoleId *string, customRoleName *string) ([]*CustomRole, error)

func (*ServiceOp) ReadCustomRole

func (s *ServiceOp) ReadCustomRole(ctx context.Context, customRoleId string) (*CustomRole, error)

func (*ServiceOp) UpdateCustomRole

func (s *ServiceOp) UpdateCustomRole(ctx context.Context, id string, input *CustomRole) (*CustomRole, error)

Jump to

Keyboard shortcuts

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