Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAclServiceServer(s grpc.ServiceRegistrar, srv AclServiceServer)
- type AclServiceClient
- type AclServiceServer
- type CreateRolePermissionRequest
- func (*CreateRolePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRolePermissionRequest) GetDescription() string
- func (x *CreateRolePermissionRequest) GetPermission() string
- func (x *CreateRolePermissionRequest) GetResponseType() string
- func (x *CreateRolePermissionRequest) GetRoleId() int64
- func (x *CreateRolePermissionRequest) GetRule() string
- func (*CreateRolePermissionRequest) ProtoMessage()
- func (x *CreateRolePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRolePermissionRequest) Reset()
- func (x *CreateRolePermissionRequest) String() string
- type CreateRolePermissionResponse
- func (*CreateRolePermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRolePermissionResponse) GetResult() *Result
- func (*CreateRolePermissionResponse) ProtoMessage()
- func (x *CreateRolePermissionResponse) ProtoReflect() protoreflect.Message
- func (x *CreateRolePermissionResponse) Reset()
- func (x *CreateRolePermissionResponse) String() string
- type CreateRoleRequest
- func (*CreateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleRequest) GetPublicRole() bool
- func (x *CreateRoleRequest) GetResponseType() string
- func (x *CreateRoleRequest) GetRoleDescription() string
- func (x *CreateRoleRequest) GetRoleId() int64
- func (x *CreateRoleRequest) GetRoleName() string
- func (x *CreateRoleRequest) GetRoleType() string
- func (*CreateRoleRequest) ProtoMessage()
- func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRoleRequest) Reset()
- func (x *CreateRoleRequest) String() string
- type CreateRoleResponse
- func (*CreateRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleResponse) GetResult() *Result
- func (*CreateRoleResponse) ProtoMessage()
- func (x *CreateRoleResponse) ProtoReflect() protoreflect.Message
- func (x *CreateRoleResponse) Reset()
- func (x *CreateRoleResponse) String() string
- type DeleteRolePermissionRequest
- func (*DeleteRolePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRolePermissionRequest) GetResponseType() string
- func (x *DeleteRolePermissionRequest) GetRolePermissionId() int64
- func (*DeleteRolePermissionRequest) ProtoMessage()
- func (x *DeleteRolePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRolePermissionRequest) Reset()
- func (x *DeleteRolePermissionRequest) String() string
- type DeleteRolePermissionResponse
- func (*DeleteRolePermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRolePermissionResponse) GetResult() *Result
- func (*DeleteRolePermissionResponse) ProtoMessage()
- func (x *DeleteRolePermissionResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteRolePermissionResponse) Reset()
- func (x *DeleteRolePermissionResponse) String() string
- type DeleteRoleRequest
- func (*DeleteRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleRequest) GetResponseType() string
- func (x *DeleteRoleRequest) GetRoleId() int64
- func (*DeleteRoleRequest) ProtoMessage()
- func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleRequest) Reset()
- func (x *DeleteRoleRequest) String() string
- type DeleteRoleResponse
- func (*DeleteRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleResponse) GetResult() *Result
- func (*DeleteRoleResponse) ProtoMessage()
- func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleResponse) Reset()
- func (x *DeleteRoleResponse) String() string
- type DisableRoleRequest
- func (*DisableRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DisableRoleRequest) GetResponseType() string
- func (x *DisableRoleRequest) GetRoleId() int64
- func (*DisableRoleRequest) ProtoMessage()
- func (x *DisableRoleRequest) ProtoReflect() protoreflect.Message
- func (x *DisableRoleRequest) Reset()
- func (x *DisableRoleRequest) String() string
- type DisableRoleResponse
- func (*DisableRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DisableRoleResponse) GetResult() *Result
- func (*DisableRoleResponse) ProtoMessage()
- func (x *DisableRoleResponse) ProtoReflect() protoreflect.Message
- func (x *DisableRoleResponse) Reset()
- func (x *DisableRoleResponse) String() string
- type EnableRoleRequest
- func (*EnableRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnableRoleRequest) GetResponseType() string
- func (x *EnableRoleRequest) GetRoleId() int64
- func (*EnableRoleRequest) ProtoMessage()
- func (x *EnableRoleRequest) ProtoReflect() protoreflect.Message
- func (x *EnableRoleRequest) Reset()
- func (x *EnableRoleRequest) String() string
- type EnableRoleResponse
- func (*EnableRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EnableRoleResponse) GetResult() *Result
- func (*EnableRoleResponse) ProtoMessage()
- func (x *EnableRoleResponse) ProtoReflect() protoreflect.Message
- func (x *EnableRoleResponse) Reset()
- func (x *EnableRoleResponse) String() string
- type ImportRoleRequest
- func (*ImportRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImportRoleRequest) GetForced() bool
- func (x *ImportRoleRequest) GetPublicRole() bool
- func (x *ImportRoleRequest) GetResponseType() string
- func (x *ImportRoleRequest) GetRoleDescription() string
- func (x *ImportRoleRequest) GetRoleName() string
- func (x *ImportRoleRequest) GetRoleType() string
- func (x *ImportRoleRequest) GetRules() map[string]string
- func (*ImportRoleRequest) ProtoMessage()
- func (x *ImportRoleRequest) ProtoReflect() protoreflect.Message
- func (x *ImportRoleRequest) Reset()
- func (x *ImportRoleRequest) String() string
- type ImportRoleResponse
- func (*ImportRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ImportRoleResponse) GetResult() *Result
- func (*ImportRoleResponse) ProtoMessage()
- func (x *ImportRoleResponse) ProtoReflect() protoreflect.Message
- func (x *ImportRoleResponse) Reset()
- func (x *ImportRoleResponse) String() string
- type ListRolePermissionsRequest
- func (*ListRolePermissionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRolePermissionsRequest) GetResponseType() string
- func (x *ListRolePermissionsRequest) GetRoleId() int64
- func (*ListRolePermissionsRequest) ProtoMessage()
- func (x *ListRolePermissionsRequest) ProtoReflect() protoreflect.Message
- func (x *ListRolePermissionsRequest) Reset()
- func (x *ListRolePermissionsRequest) String() string
- type ListRolePermissionsResponse
- func (*ListRolePermissionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRolePermissionsResponse) GetItems() []*RolePermission
- func (x *ListRolePermissionsResponse) GetTotalCount() int32
- func (*ListRolePermissionsResponse) ProtoMessage()
- func (x *ListRolePermissionsResponse) ProtoReflect() protoreflect.Message
- func (x *ListRolePermissionsResponse) Reset()
- func (x *ListRolePermissionsResponse) String() string
- type ListRolesRequest
- func (*ListRolesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRolesRequest) GetId() int64
- func (x *ListRolesRequest) GetKeyword() string
- func (x *ListRolesRequest) GetPage() int32
- func (x *ListRolesRequest) GetPageSize() int32
- func (x *ListRolesRequest) GetResponseType() string
- func (x *ListRolesRequest) GetRoleName() string
- func (x *ListRolesRequest) GetRoleState() string
- func (x *ListRolesRequest) GetRoleType() string
- func (*ListRolesRequest) ProtoMessage()
- func (x *ListRolesRequest) ProtoReflect() protoreflect.Message
- func (x *ListRolesRequest) Reset()
- func (x *ListRolesRequest) String() string
- type ListRolesResponse
- func (*ListRolesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRolesResponse) GetItems() []*Role
- func (x *ListRolesResponse) GetTotalCount() int32
- func (*ListRolesResponse) ProtoMessage()
- func (x *ListRolesResponse) ProtoReflect() protoreflect.Message
- func (x *ListRolesResponse) Reset()
- func (x *ListRolesResponse) String() string
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetDisplayText() string
- func (x *Result) GetId() string
- func (x *Result) GetJobId() string
- func (x *Result) GetJobStatus() string
- func (x *Result) GetSuccess() bool
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetCreated() string
- func (x *Role) GetDescription() string
- func (x *Role) GetDisplayName() string
- func (x *Role) GetId() string
- func (x *Role) GetName() string
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- type RolePermission
- func (*RolePermission) Descriptor() ([]byte, []int)deprecated
- func (x *RolePermission) GetCreated() string
- func (x *RolePermission) GetDescription() string
- func (x *RolePermission) GetDisplayName() string
- func (x *RolePermission) GetId() string
- func (x *RolePermission) GetName() string
- func (*RolePermission) ProtoMessage()
- func (x *RolePermission) ProtoReflect() protoreflect.Message
- func (x *RolePermission) Reset()
- func (x *RolePermission) String() string
- type RulePermissionType
- func (RulePermissionType) Descriptor() protoreflect.EnumDescriptor
- func (x RulePermissionType) Enum() *RulePermissionType
- func (RulePermissionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RulePermissionType) Number() protoreflect.EnumNumber
- func (x RulePermissionType) String() string
- func (RulePermissionType) Type() protoreflect.EnumType
- type Success
- type UnimplementedAclServiceServer
- func (UnimplementedAclServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
- func (UnimplementedAclServiceServer) CreateRolePermission(context.Context, *CreateRolePermissionRequest) (*CreateRolePermissionResponse, error)
- func (UnimplementedAclServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
- func (UnimplementedAclServiceServer) DeleteRolePermission(context.Context, *DeleteRolePermissionRequest) (*DeleteRolePermissionResponse, error)
- func (UnimplementedAclServiceServer) DisableRole(context.Context, *DisableRoleRequest) (*DisableRoleResponse, error)
- func (UnimplementedAclServiceServer) EnableRole(context.Context, *EnableRoleRequest) (*EnableRoleResponse, error)
- func (UnimplementedAclServiceServer) ImportRole(context.Context, *ImportRoleRequest) (*ImportRoleResponse, error)
- func (UnimplementedAclServiceServer) ListRolePermissions(context.Context, *ListRolePermissionsRequest) (*ListRolePermissionsResponse, error)
- func (UnimplementedAclServiceServer) ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error)
- func (UnimplementedAclServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
- func (UnimplementedAclServiceServer) UpdateRolePermission(context.Context, *UpdateRolePermissionRequest) (*UpdateRolePermissionResponse, error)
- type UnsafeAclServiceServer
- type UpdateRolePermissionRequest
- func (*UpdateRolePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRolePermissionRequest) GetResponseType() string
- func (x *UpdateRolePermissionRequest) GetRoleId() int64
- func (x *UpdateRolePermissionRequest) GetRuleId() int64
- func (x *UpdateRolePermissionRequest) GetRulePermission() string
- func (x *UpdateRolePermissionRequest) GetRulePermissionOrder() []string
- func (*UpdateRolePermissionRequest) ProtoMessage()
- func (x *UpdateRolePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRolePermissionRequest) Reset()
- func (x *UpdateRolePermissionRequest) String() string
- type UpdateRolePermissionResponse
- func (*UpdateRolePermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRolePermissionResponse) GetResult() *Result
- func (*UpdateRolePermissionResponse) ProtoMessage()
- func (x *UpdateRolePermissionResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateRolePermissionResponse) Reset()
- func (x *UpdateRolePermissionResponse) String() string
- type UpdateRoleRequest
- func (*UpdateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleRequest) GetPublicRole() bool
- func (x *UpdateRoleRequest) GetResponseType() string
- func (x *UpdateRoleRequest) GetRoleDescription() string
- func (x *UpdateRoleRequest) GetRoleId() int64
- func (x *UpdateRoleRequest) GetRoleName() string
- func (x *UpdateRoleRequest) GetRoleType() string
- func (*UpdateRoleRequest) ProtoMessage()
- func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleRequest) Reset()
- func (x *UpdateRoleRequest) String() string
- type UpdateRoleResponse
- func (*UpdateRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleResponse) GetResult() *Result
- func (*UpdateRoleResponse) ProtoMessage()
- func (x *UpdateRoleResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleResponse) Reset()
- func (x *UpdateRoleResponse) String() string
Constants ¶
const ( AclService_CreateRole_FullMethodName = "/cloudstack.management.acl.v1.AclService/CreateRole" AclService_CreateRolePermission_FullMethodName = "/cloudstack.management.acl.v1.AclService/CreateRolePermission" AclService_DeleteRole_FullMethodName = "/cloudstack.management.acl.v1.AclService/DeleteRole" AclService_DeleteRolePermission_FullMethodName = "/cloudstack.management.acl.v1.AclService/DeleteRolePermission" AclService_DisableRole_FullMethodName = "/cloudstack.management.acl.v1.AclService/DisableRole" AclService_EnableRole_FullMethodName = "/cloudstack.management.acl.v1.AclService/EnableRole" AclService_ImportRole_FullMethodName = "/cloudstack.management.acl.v1.AclService/ImportRole" AclService_ListRolePermissions_FullMethodName = "/cloudstack.management.acl.v1.AclService/ListRolePermissions" AclService_ListRoles_FullMethodName = "/cloudstack.management.acl.v1.AclService/ListRoles" AclService_UpdateRole_FullMethodName = "/cloudstack.management.acl.v1.AclService/UpdateRole" AclService_UpdateRolePermission_FullMethodName = "/cloudstack.management.acl.v1.AclService/UpdateRolePermission" )
Variables ¶
var ( RulePermissionType_name = map[int32]string{ 0: "RULE_PERMISSION_TYPE_UNSPECIFIED", 1: "RULE_PERMISSION_TYPE_ALLOW", 2: "RULE_PERMISSION_TYPE_DENY", } RulePermissionType_value = map[string]int32{ "RULE_PERMISSION_TYPE_UNSPECIFIED": 0, "RULE_PERMISSION_TYPE_ALLOW": 1, "RULE_PERMISSION_TYPE_DENY": 2, } )
Enum value maps for RulePermissionType.
var AclService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudstack.management.acl.v1.AclService", HandlerType: (*AclServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRole", Handler: _AclService_CreateRole_Handler, }, { MethodName: "CreateRolePermission", Handler: _AclService_CreateRolePermission_Handler, }, { MethodName: "DeleteRole", Handler: _AclService_DeleteRole_Handler, }, { MethodName: "DeleteRolePermission", Handler: _AclService_DeleteRolePermission_Handler, }, { MethodName: "DisableRole", Handler: _AclService_DisableRole_Handler, }, { MethodName: "EnableRole", Handler: _AclService_EnableRole_Handler, }, { MethodName: "ImportRole", Handler: _AclService_ImportRole_Handler, }, { MethodName: "ListRolePermissions", Handler: _AclService_ListRolePermissions_Handler, }, { MethodName: "ListRoles", Handler: _AclService_ListRoles_Handler, }, { MethodName: "UpdateRole", Handler: _AclService_UpdateRole_Handler, }, { MethodName: "UpdateRolePermission", Handler: _AclService_UpdateRolePermission_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cloudstack/management/acl/v1/acl.gen.proto", }
AclService_ServiceDesc is the grpc.ServiceDesc for AclService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_cloudstack_management_acl_v1_acl_gen_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAclServiceServer ¶
func RegisterAclServiceServer(s grpc.ServiceRegistrar, srv AclServiceServer)
Types ¶
type AclServiceClient ¶
type AclServiceClient interface { // CreateRole Creates a role CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleResponse, error) // CreateRolePermission Adds an API permission to a role CreateRolePermission(ctx context.Context, in *CreateRolePermissionRequest, opts ...grpc.CallOption) (*CreateRolePermissionResponse, error) // DeleteRole Deletes a role DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error) // DeleteRolePermission Deletes a role permission DeleteRolePermission(ctx context.Context, in *DeleteRolePermissionRequest, opts ...grpc.CallOption) (*DeleteRolePermissionResponse, error) // DisableRole Disables a role DisableRole(ctx context.Context, in *DisableRoleRequest, opts ...grpc.CallOption) (*DisableRoleResponse, error) // EnableRole Enables a role EnableRole(ctx context.Context, in *EnableRoleRequest, opts ...grpc.CallOption) (*EnableRoleResponse, error) // ImportRole Imports a role based on provided map of rule permissions ImportRole(ctx context.Context, in *ImportRoleRequest, opts ...grpc.CallOption) (*ImportRoleResponse, error) // ListRolePermissions Lists role permissions ListRolePermissions(ctx context.Context, in *ListRolePermissionsRequest, opts ...grpc.CallOption) (*ListRolePermissionsResponse, error) // ListRoles Lists dynamic roles in CloudStack ListRoles(ctx context.Context, in *ListRolesRequest, opts ...grpc.CallOption) (*ListRolesResponse, error) // UpdateRole Updates a role UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleResponse, error) // UpdateRolePermission Updates a role permission order UpdateRolePermission(ctx context.Context, in *UpdateRolePermissionRequest, opts ...grpc.CallOption) (*UpdateRolePermissionResponse, error) }
AclServiceClient is the client API for AclService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
AclService provides operations for managing Acls
func NewAclServiceClient ¶
func NewAclServiceClient(cc grpc.ClientConnInterface) AclServiceClient
type AclServiceServer ¶
type AclServiceServer interface { // CreateRole Creates a role CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error) // CreateRolePermission Adds an API permission to a role CreateRolePermission(context.Context, *CreateRolePermissionRequest) (*CreateRolePermissionResponse, error) // DeleteRole Deletes a role DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error) // DeleteRolePermission Deletes a role permission DeleteRolePermission(context.Context, *DeleteRolePermissionRequest) (*DeleteRolePermissionResponse, error) // DisableRole Disables a role DisableRole(context.Context, *DisableRoleRequest) (*DisableRoleResponse, error) // EnableRole Enables a role EnableRole(context.Context, *EnableRoleRequest) (*EnableRoleResponse, error) // ImportRole Imports a role based on provided map of rule permissions ImportRole(context.Context, *ImportRoleRequest) (*ImportRoleResponse, error) // ListRolePermissions Lists role permissions ListRolePermissions(context.Context, *ListRolePermissionsRequest) (*ListRolePermissionsResponse, error) // ListRoles Lists dynamic roles in CloudStack ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error) // UpdateRole Updates a role UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error) // UpdateRolePermission Updates a role permission order UpdateRolePermission(context.Context, *UpdateRolePermissionRequest) (*UpdateRolePermissionResponse, error) // contains filtered or unexported methods }
AclServiceServer is the server API for AclService service. All implementations must embed UnimplementedAclServiceServer for forward compatibility.
AclService provides operations for managing Acls
type CreateRolePermissionRequest ¶
type CreateRolePermissionRequest struct { // ID of the role RoleId *int64 `protobuf:"varint,1,opt,name=role_id,json=roleId" json:"role_id,omitempty"` // The API name or wildcard rule such as list* Rule *string `protobuf:"bytes,2,opt,name=rule" json:"rule,omitempty"` // The rule permission, allow or deny. Default: deny. Permission *string `protobuf:"bytes,3,opt,name=permission" json:"permission,omitempty"` // The description of the role permission Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` ResponseType *string `protobuf:"bytes,5,opt,name=response_type,json=responseType" json:"response_type,omitempty"` // contains filtered or unexported fields }
CreateRolePermissionRequest represents the parameters for adds an api permission to a role
func (*CreateRolePermissionRequest) Descriptor
deprecated
func (*CreateRolePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRolePermissionRequest.ProtoReflect.Descriptor instead.
func (*CreateRolePermissionRequest) GetDescription ¶
func (x *CreateRolePermissionRequest) GetDescription() string
func (*CreateRolePermissionRequest) GetPermission ¶
func (x *CreateRolePermissionRequest) GetPermission() string
func (*CreateRolePermissionRequest) GetResponseType ¶
func (x *CreateRolePermissionRequest) GetResponseType() string
func (*CreateRolePermissionRequest) GetRoleId ¶
func (x *CreateRolePermissionRequest) GetRoleId() int64
func (*CreateRolePermissionRequest) GetRule ¶
func (x *CreateRolePermissionRequest) GetRule() string
func (*CreateRolePermissionRequest) ProtoMessage ¶
func (*CreateRolePermissionRequest) ProtoMessage()
func (*CreateRolePermissionRequest) ProtoReflect ¶
func (x *CreateRolePermissionRequest) ProtoReflect() protoreflect.Message
func (*CreateRolePermissionRequest) Reset ¶
func (x *CreateRolePermissionRequest) Reset()
func (*CreateRolePermissionRequest) String ¶
func (x *CreateRolePermissionRequest) String() string
type CreateRolePermissionResponse ¶
type CreateRolePermissionResponse struct { // The Result Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` // contains filtered or unexported fields }
CreateRolePermissionResponse represents the response from adds an api permission to a role
func (*CreateRolePermissionResponse) Descriptor
deprecated
func (*CreateRolePermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRolePermissionResponse.ProtoReflect.Descriptor instead.
func (*CreateRolePermissionResponse) GetResult ¶
func (x *CreateRolePermissionResponse) GetResult() *Result
func (*CreateRolePermissionResponse) ProtoMessage ¶
func (*CreateRolePermissionResponse) ProtoMessage()
func (*CreateRolePermissionResponse) ProtoReflect ¶
func (x *CreateRolePermissionResponse) ProtoReflect() protoreflect.Message
func (*CreateRolePermissionResponse) Reset ¶
func (x *CreateRolePermissionResponse) Reset()
func (*CreateRolePermissionResponse) String ¶
func (x *CreateRolePermissionResponse) String() string
type CreateRoleRequest ¶
type CreateRoleRequest struct { // Creates a role with this unique name RoleName *string `protobuf:"bytes,1,opt,name=role_name,json=roleName" json:"role_name,omitempty"` // ID of the role to be cloned from. Either roleid or type must be passed in RoleId *int64 `protobuf:"varint,2,opt,name=role_id,json=roleId" json:"role_id,omitempty"` // Indicates whether the role will be visible to all users (public) or only to root admins (private). Default is true. PublicRole *bool `protobuf:"varint,3,opt,name=public_role,json=publicRole" json:"public_role,omitempty"` // The type of the role, valid options are: Admin, ResourceAdmin, DomainAdmin, User RoleType *string `protobuf:"bytes,4,opt,name=role_type,json=roleType" json:"role_type,omitempty"` // The description of the role RoleDescription *string `protobuf:"bytes,5,opt,name=role_description,json=roleDescription" json:"role_description,omitempty"` ResponseType *string `protobuf:"bytes,6,opt,name=response_type,json=responseType" json:"response_type,omitempty"` // contains filtered or unexported fields }
CreateRoleRequest represents the parameters for creates a role
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) GetPublicRole ¶
func (x *CreateRoleRequest) GetPublicRole() bool
func (*CreateRoleRequest) GetResponseType ¶
func (x *CreateRoleRequest) GetResponseType() string
func (*CreateRoleRequest) GetRoleDescription ¶
func (x *CreateRoleRequest) GetRoleDescription() string
func (*CreateRoleRequest) GetRoleId ¶
func (x *CreateRoleRequest) GetRoleId() int64
func (*CreateRoleRequest) GetRoleName ¶
func (x *CreateRoleRequest) GetRoleName() string
func (*CreateRoleRequest) GetRoleType ¶
func (x *CreateRoleRequest) GetRoleType() string
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) ProtoReflect ¶
func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
func (*CreateRoleRequest) Reset ¶
func (x *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (x *CreateRoleRequest) String() string
type CreateRoleResponse ¶
type CreateRoleResponse struct { // The Result Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` // contains filtered or unexported fields }
CreateRoleResponse represents the response from creates a role
func (*CreateRoleResponse) Descriptor
deprecated
func (*CreateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleResponse.ProtoReflect.Descriptor instead.
func (*CreateRoleResponse) GetResult ¶
func (x *CreateRoleResponse) GetResult() *Result
func (*CreateRoleResponse) ProtoMessage ¶
func (*CreateRoleResponse) ProtoMessage()
func (*CreateRoleResponse) ProtoReflect ¶
func (x *CreateRoleResponse) ProtoReflect() protoreflect.Message
func (*CreateRoleResponse) Reset ¶
func (x *CreateRoleResponse) Reset()
func (*CreateRoleResponse) String ¶
func (x *CreateRoleResponse) String() string
type DeleteRolePermissionRequest ¶
type DeleteRolePermissionRequest struct { // ID of the role permission RolePermissionId *int64 `protobuf:"varint,1,opt,name=role_permission_id,json=rolePermissionId" json:"role_permission_id,omitempty"` ResponseType *string `protobuf:"bytes,2,opt,name=response_type,json=responseType" json:"response_type,omitempty"` // contains filtered or unexported fields }
DeleteRolePermissionRequest represents the parameters for deletes a role permission
func (*DeleteRolePermissionRequest) Descriptor
deprecated
func (*DeleteRolePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRolePermissionRequest.ProtoReflect.Descriptor instead.
func (*DeleteRolePermissionRequest) GetResponseType ¶
func (x *DeleteRolePermissionRequest) GetResponseType() string
func (*DeleteRolePermissionRequest) GetRolePermissionId ¶
func (x *DeleteRolePermissionRequest) GetRolePermissionId() int64
func (*DeleteRolePermissionRequest) ProtoMessage ¶
func (*DeleteRolePermissionRequest) ProtoMessage()
func (*DeleteRolePermissionRequest) ProtoReflect ¶
func (x *DeleteRolePermissionRequest) ProtoReflect() protoreflect.Message
func (*DeleteRolePermissionRequest) Reset ¶
func (x *DeleteRolePermissionRequest) Reset()
func (*DeleteRolePermissionRequest) String ¶
func (x *DeleteRolePermissionRequest) String() string
type DeleteRolePermissionResponse ¶
type DeleteRolePermissionResponse struct { // The Result Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` // contains filtered or unexported fields }
DeleteRolePermissionResponse represents the response from deletes a role permission
func (*DeleteRolePermissionResponse) Descriptor
deprecated
func (*DeleteRolePermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRolePermissionResponse.ProtoReflect.Descriptor instead.
func (*DeleteRolePermissionResponse) GetResult ¶
func (x *DeleteRolePermissionResponse) GetResult() *Result
func (*DeleteRolePermissionResponse) ProtoMessage ¶
func (*DeleteRolePermissionResponse) ProtoMessage()
func (*DeleteRolePermissionResponse) ProtoReflect ¶
func (x *DeleteRolePermissionResponse) ProtoReflect() protoreflect.Message
func (*DeleteRolePermissionResponse) Reset ¶
func (x *DeleteRolePermissionResponse) Reset()
func (*DeleteRolePermissionResponse) String ¶
func (x *DeleteRolePermissionResponse) String() string
type DeleteRoleRequest ¶
type DeleteRoleRequest struct { // ID of the role RoleId *int64 `protobuf:"varint,1,opt,name=role_id,json=roleId" json:"role_id,omitempty"` ResponseType *string `protobuf:"bytes,2,opt,name=response_type,json=responseType" json:"response_type,omitempty"` // contains filtered or unexported fields }
DeleteRoleRequest represents the parameters for deletes a role
func (*DeleteRoleRequest) Descriptor
deprecated
func (*DeleteRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.
func (*DeleteRoleRequest) GetResponseType ¶
func (x *DeleteRoleRequest) GetResponseType() string
func (*DeleteRoleRequest) GetRoleId ¶
func (x *DeleteRoleRequest) GetRoleId() int64
func (*DeleteRoleRequest) ProtoMessage ¶
func (*DeleteRoleRequest) ProtoMessage()
func (*DeleteRoleRequest) ProtoReflect ¶
func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
func (*DeleteRoleRequest) Reset ¶
func (x *DeleteRoleRequest) Reset()
func (*DeleteRoleRequest) String ¶
func (x *DeleteRoleRequest) String() string
type DeleteRoleResponse ¶
type DeleteRoleResponse struct { // The Result Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` // contains filtered or unexported fields }
DeleteRoleResponse represents the response from deletes a role
func (*DeleteRoleResponse) Descriptor
deprecated
func (*DeleteRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleResponse.ProtoReflect.Descriptor instead.
func (*DeleteRoleResponse) GetResult ¶
func (x *DeleteRoleResponse) GetResult() *Result
func (*DeleteRoleResponse) ProtoMessage ¶
func (*DeleteRoleResponse) ProtoMessage()
func (*DeleteRoleResponse) ProtoReflect ¶
func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message
func (*DeleteRoleResponse) Reset ¶
func (x *DeleteRoleResponse) Reset()
func (*DeleteRoleResponse) String ¶
func (x *DeleteRoleResponse) String() string
type DisableRoleRequest ¶
type DisableRoleRequest struct { // ID of the role RoleId *int64 `protobuf:"varint,1,opt,name=role_id,json=roleId" json:"role_id,omitempty"` ResponseType *string `protobuf:"bytes,2,opt,name=response_type,json=responseType" json:"response_type,omitempty"` // contains filtered or unexported fields }
DisableRoleRequest represents the parameters for disables a role
func (*DisableRoleRequest) Descriptor
deprecated
func (*DisableRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisableRoleRequest.ProtoReflect.Descriptor instead.
func (*DisableRoleRequest) GetResponseType ¶
func (x *DisableRoleRequest) GetResponseType() string
func (*DisableRoleRequest) GetRoleId ¶
func (x *DisableRoleRequest) GetRoleId() int64
func (*DisableRoleRequest) ProtoMessage ¶
func (*DisableRoleRequest) ProtoMessage()
func (*DisableRoleRequest) ProtoReflect ¶
func (x *DisableRoleRequest) ProtoReflect() protoreflect.Message
func (*DisableRoleRequest) Reset ¶
func (x *DisableRoleRequest) Reset()
func (*DisableRoleRequest) String ¶
func (x *DisableRoleRequest) String() string
type DisableRoleResponse ¶
type DisableRoleResponse struct { // The Result Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` // contains filtered or unexported fields }
DisableRoleResponse represents the response from disables a role
func (*DisableRoleResponse) Descriptor
deprecated
func (*DisableRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DisableRoleResponse.ProtoReflect.Descriptor instead.
func (*DisableRoleResponse) GetResult ¶
func (x *DisableRoleResponse) GetResult() *Result
func (*DisableRoleResponse) ProtoMessage ¶
func (*DisableRoleResponse) ProtoMessage()
func (*DisableRoleResponse) ProtoReflect ¶
func (x *DisableRoleResponse) ProtoReflect() protoreflect.Message
func (*DisableRoleResponse) Reset ¶
func (x *DisableRoleResponse) Reset()
func (*DisableRoleResponse) String ¶
func (x *DisableRoleResponse) String() string
type EnableRoleRequest ¶
type EnableRoleRequest struct { // ID of the role RoleId *int64 `protobuf:"varint,1,opt,name=role_id,json=roleId" json:"role_id,omitempty"` ResponseType *string `protobuf:"bytes,2,opt,name=response_type,json=responseType" json:"response_type,omitempty"` // contains filtered or unexported fields }
EnableRoleRequest represents the parameters for enables a role
func (*EnableRoleRequest) Descriptor
deprecated
func (*EnableRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnableRoleRequest.ProtoReflect.Descriptor instead.
func (*EnableRoleRequest) GetResponseType ¶
func (x *EnableRoleRequest) GetResponseType() string
func (*EnableRoleRequest) GetRoleId ¶
func (x *EnableRoleRequest) GetRoleId() int64
func (*EnableRoleRequest) ProtoMessage ¶
func (*EnableRoleRequest) ProtoMessage()
func (*EnableRoleRequest) ProtoReflect ¶
func (x *EnableRoleRequest) ProtoReflect() protoreflect.Message
func (*EnableRoleRequest) Reset ¶
func (x *EnableRoleRequest) Reset()
func (*EnableRoleRequest) String ¶
func (x *EnableRoleRequest) String() string
type EnableRoleResponse ¶
type EnableRoleResponse struct { // The Result Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` // contains filtered or unexported fields }
EnableRoleResponse represents the response from enables a role
func (*EnableRoleResponse) Descriptor
deprecated
func (*EnableRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnableRoleResponse.ProtoReflect.Descriptor instead.
func (*EnableRoleResponse) GetResult ¶
func (x *EnableRoleResponse) GetResult() *Result
func (*EnableRoleResponse) ProtoMessage ¶
func (*EnableRoleResponse) ProtoMessage()
func (*EnableRoleResponse) ProtoReflect ¶
func (x *EnableRoleResponse) ProtoReflect() protoreflect.Message
func (*EnableRoleResponse) Reset ¶
func (x *EnableRoleResponse) Reset()
func (*EnableRoleResponse) String ¶
func (x *EnableRoleResponse) String() string
type ImportRoleRequest ¶
type ImportRoleRequest struct { // Creates a role with this unique name RoleName *string `protobuf:"bytes,1,opt,name=role_name,json=roleName" json:"role_name,omitempty"` // Rules param list, rule and permission is must. Example: rules[0].rule=create*&rules[0].permission=allow&rules[0].description=create%20rule&rules[1].rule=list*&rules[1].permission=allow&rules[1].description=listing Rules map[string]string `` /* 130-byte string literal not displayed */ // Force create a role with the same name. This overrides the role type, description and rule permissions for the existing role. Default is false. Forced *bool `protobuf:"varint,3,opt,name=forced" json:"forced,omitempty"` // Indicates whether the role will be visible to all users (public) or only to root admins (private). If this parameter is not specified during the creation of the role its value will be defaulted to true (public). PublicRole *bool `protobuf:"varint,4,opt,name=public_role,json=publicRole" json:"public_role,omitempty"` // The type of the role, valid options are: Admin, ResourceAdmin, DomainAdmin, User RoleType *string `protobuf:"bytes,5,opt,name=role_type,json=roleType" json:"role_type,omitempty"` // The description of the role RoleDescription *string `protobuf:"bytes,6,opt,name=role_description,json=roleDescription" json:"role_description,omitempty"` ResponseType *string `protobuf:"bytes,7,opt,name=response_type,json=responseType" json:"response_type,omitempty"` // contains filtered or unexported fields }
ImportRoleRequest represents the parameters for imports a role based on provided map of rule permissions
func (*ImportRoleRequest) Descriptor
deprecated
func (*ImportRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImportRoleRequest.ProtoReflect.Descriptor instead.
func (*ImportRoleRequest) GetForced ¶
func (x *ImportRoleRequest) GetForced() bool
func (*ImportRoleRequest) GetPublicRole ¶
func (x *ImportRoleRequest) GetPublicRole() bool
func (*ImportRoleRequest) GetResponseType ¶
func (x *ImportRoleRequest) GetResponseType() string
func (*ImportRoleRequest) GetRoleDescription ¶
func (x *ImportRoleRequest) GetRoleDescription() string
func (*ImportRoleRequest) GetRoleName ¶
func (x *ImportRoleRequest) GetRoleName() string
func (*ImportRoleRequest) GetRoleType ¶
func (x *ImportRoleRequest) GetRoleType() string
func (*ImportRoleRequest) GetRules ¶
func (x *ImportRoleRequest) GetRules() map[string]string
func (*ImportRoleRequest) ProtoMessage ¶
func (*ImportRoleRequest) ProtoMessage()
func (*ImportRoleRequest) ProtoReflect ¶
func (x *ImportRoleRequest) ProtoReflect() protoreflect.Message
func (*ImportRoleRequest) Reset ¶
func (x *ImportRoleRequest) Reset()
func (*ImportRoleRequest) String ¶
func (x *ImportRoleRequest) String() string
type ImportRoleResponse ¶
type ImportRoleResponse struct { // The Result Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` // contains filtered or unexported fields }
ImportRoleResponse represents the response from imports a role based on provided map of rule permissions
func (*ImportRoleResponse) Descriptor
deprecated
func (*ImportRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use ImportRoleResponse.ProtoReflect.Descriptor instead.
func (*ImportRoleResponse) GetResult ¶
func (x *ImportRoleResponse) GetResult() *Result
func (*ImportRoleResponse) ProtoMessage ¶
func (*ImportRoleResponse) ProtoMessage()
func (*ImportRoleResponse) ProtoReflect ¶
func (x *ImportRoleResponse) ProtoReflect() protoreflect.Message
func (*ImportRoleResponse) Reset ¶
func (x *ImportRoleResponse) Reset()
func (*ImportRoleResponse) String ¶
func (x *ImportRoleResponse) String() string
type ListRolePermissionsRequest ¶
type ListRolePermissionsRequest struct { // ID of the role RoleId *int64 `protobuf:"varint,1,opt,name=role_id,json=roleId" json:"role_id,omitempty"` ResponseType *string `protobuf:"bytes,2,opt,name=response_type,json=responseType" json:"response_type,omitempty"` // contains filtered or unexported fields }
ListRolePermissionsRequest represents the parameters for lists role permissions
func (*ListRolePermissionsRequest) Descriptor
deprecated
func (*ListRolePermissionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRolePermissionsRequest.ProtoReflect.Descriptor instead.
func (*ListRolePermissionsRequest) GetResponseType ¶
func (x *ListRolePermissionsRequest) GetResponseType() string
func (*ListRolePermissionsRequest) GetRoleId ¶
func (x *ListRolePermissionsRequest) GetRoleId() int64
func (*ListRolePermissionsRequest) ProtoMessage ¶
func (*ListRolePermissionsRequest) ProtoMessage()
func (*ListRolePermissionsRequest) ProtoReflect ¶
func (x *ListRolePermissionsRequest) ProtoReflect() protoreflect.Message
func (*ListRolePermissionsRequest) Reset ¶
func (x *ListRolePermissionsRequest) Reset()
func (*ListRolePermissionsRequest) String ¶
func (x *ListRolePermissionsRequest) String() string
type ListRolePermissionsResponse ¶
type ListRolePermissionsResponse struct { // The list of RolePermissions Items []*RolePermission `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` // The total count of RolePermissions TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"` // contains filtered or unexported fields }
ListRolePermissionsResponse represents the response from lists role permissions
func (*ListRolePermissionsResponse) Descriptor
deprecated
func (*ListRolePermissionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRolePermissionsResponse.ProtoReflect.Descriptor instead.
func (*ListRolePermissionsResponse) GetItems ¶
func (x *ListRolePermissionsResponse) GetItems() []*RolePermission
func (*ListRolePermissionsResponse) GetTotalCount ¶
func (x *ListRolePermissionsResponse) GetTotalCount() int32
func (*ListRolePermissionsResponse) ProtoMessage ¶
func (*ListRolePermissionsResponse) ProtoMessage()
func (*ListRolePermissionsResponse) ProtoReflect ¶
func (x *ListRolePermissionsResponse) ProtoReflect() protoreflect.Message
func (*ListRolePermissionsResponse) Reset ¶
func (x *ListRolePermissionsResponse) Reset()
func (*ListRolePermissionsResponse) String ¶
func (x *ListRolePermissionsResponse) String() string
type ListRolesRequest ¶
type ListRolesRequest struct { // List role by role ID. Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` // List role by role name. RoleName *string `protobuf:"bytes,2,opt,name=role_name,json=roleName" json:"role_name,omitempty"` // List role by role type, valid options are: Admin, ResourceAdmin, DomainAdmin, User. RoleType *string `protobuf:"bytes,3,opt,name=role_type,json=roleType" json:"role_type,omitempty"` // List role by role type status, valid options are: enabled, disabled RoleState *string `protobuf:"bytes,4,opt,name=role_state,json=roleState" json:"role_state,omitempty"` // List by keyword Keyword *string `protobuf:"bytes,5,opt,name=keyword" json:"keyword,omitempty"` Page *int32 `protobuf:"varint,6,opt,name=page" json:"page,omitempty"` PageSize *int32 `protobuf:"varint,7,opt,name=page_size,json=pageSize" json:"page_size,omitempty"` ResponseType *string `protobuf:"bytes,8,opt,name=response_type,json=responseType" json:"response_type,omitempty"` // contains filtered or unexported fields }
ListRolesRequest represents the parameters for lists dynamic roles in cloudstack
func (*ListRolesRequest) Descriptor
deprecated
func (*ListRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRolesRequest.ProtoReflect.Descriptor instead.
func (*ListRolesRequest) GetId ¶
func (x *ListRolesRequest) GetId() int64
func (*ListRolesRequest) GetKeyword ¶
func (x *ListRolesRequest) GetKeyword() string
func (*ListRolesRequest) GetPage ¶
func (x *ListRolesRequest) GetPage() int32
func (*ListRolesRequest) GetPageSize ¶
func (x *ListRolesRequest) GetPageSize() int32
func (*ListRolesRequest) GetResponseType ¶
func (x *ListRolesRequest) GetResponseType() string
func (*ListRolesRequest) GetRoleName ¶
func (x *ListRolesRequest) GetRoleName() string
func (*ListRolesRequest) GetRoleState ¶
func (x *ListRolesRequest) GetRoleState() string
func (*ListRolesRequest) GetRoleType ¶
func (x *ListRolesRequest) GetRoleType() string
func (*ListRolesRequest) ProtoMessage ¶
func (*ListRolesRequest) ProtoMessage()
func (*ListRolesRequest) ProtoReflect ¶
func (x *ListRolesRequest) ProtoReflect() protoreflect.Message
func (*ListRolesRequest) Reset ¶
func (x *ListRolesRequest) Reset()
func (*ListRolesRequest) String ¶
func (x *ListRolesRequest) String() string
type ListRolesResponse ¶
type ListRolesResponse struct { // The list of Roles Items []*Role `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` // The total count of Roles TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"` // contains filtered or unexported fields }
ListRolesResponse represents the response from lists dynamic roles in cloudstack
func (*ListRolesResponse) Descriptor
deprecated
func (*ListRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRolesResponse.ProtoReflect.Descriptor instead.
func (*ListRolesResponse) GetItems ¶
func (x *ListRolesResponse) GetItems() []*Role
func (*ListRolesResponse) GetTotalCount ¶
func (x *ListRolesResponse) GetTotalCount() int32
func (*ListRolesResponse) ProtoMessage ¶
func (*ListRolesResponse) ProtoMessage()
func (*ListRolesResponse) ProtoReflect ¶
func (x *ListRolesResponse) ProtoReflect() protoreflect.Message
func (*ListRolesResponse) Reset ¶
func (x *ListRolesResponse) Reset()
func (*ListRolesResponse) String ¶
func (x *ListRolesResponse) String() string
type Result ¶
type Result struct { // Whether the operation was successful Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"` // Any text associated with the success or failure DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"` // The ID of the resource affected by the operation Id *string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` // The job ID for an async operation JobId *string `protobuf:"bytes,4,opt,name=job_id,json=jobId" json:"job_id,omitempty"` // The status of the job JobStatus *string `protobuf:"bytes,5,opt,name=job_status,json=jobStatus" json:"job_status,omitempty"` // contains filtered or unexported fields }
Result represents a generic operation result
func (*Result) Descriptor
deprecated
func (*Result) GetDisplayText ¶
func (*Result) GetJobStatus ¶
func (*Result) GetSuccess ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type Role ¶
type Role struct { // The ID of the Role Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The name of the Role Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // The display name of the Role DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"` // The description of the Role Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` // The date this entity was created Created *string `protobuf:"bytes,5,opt,name=created" json:"created,omitempty"` // contains filtered or unexported fields }
Role represents a Role Item
func (*Role) Descriptor
deprecated
func (*Role) GetCreated ¶
func (*Role) GetDescription ¶
func (*Role) GetDisplayName ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type RolePermission ¶
type RolePermission struct { // The ID of the RolePermission Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // The name of the RolePermission Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // The display name of the RolePermission DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"` // The description of the RolePermission Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` // The date this entity was created Created *string `protobuf:"bytes,5,opt,name=created" json:"created,omitempty"` // contains filtered or unexported fields }
RolePermission represents a RolePermission Item
func (*RolePermission) Descriptor
deprecated
func (*RolePermission) Descriptor() ([]byte, []int)
Deprecated: Use RolePermission.ProtoReflect.Descriptor instead.
func (*RolePermission) GetCreated ¶
func (x *RolePermission) GetCreated() string
func (*RolePermission) GetDescription ¶
func (x *RolePermission) GetDescription() string
func (*RolePermission) GetDisplayName ¶
func (x *RolePermission) GetDisplayName() string
func (*RolePermission) GetId ¶
func (x *RolePermission) GetId() string
func (*RolePermission) GetName ¶
func (x *RolePermission) GetName() string
func (*RolePermission) ProtoMessage ¶
func (*RolePermission) ProtoMessage()
func (*RolePermission) ProtoReflect ¶
func (x *RolePermission) ProtoReflect() protoreflect.Message
func (*RolePermission) Reset ¶
func (x *RolePermission) Reset()
func (*RolePermission) String ¶
func (x *RolePermission) String() string
type RulePermissionType ¶
type RulePermissionType int32
RulePermissionType represents the possible values for Rule permission, can be: allow or deny
const ( // Default unspecified value RulePermissionType_RULE_PERMISSION_TYPE_UNSPECIFIED RulePermissionType = 0 // ALLOW value RulePermissionType_RULE_PERMISSION_TYPE_ALLOW RulePermissionType = 1 // DENY value RulePermissionType_RULE_PERMISSION_TYPE_DENY RulePermissionType = 2 )
func (RulePermissionType) Descriptor ¶
func (RulePermissionType) Descriptor() protoreflect.EnumDescriptor
func (RulePermissionType) Enum ¶
func (x RulePermissionType) Enum() *RulePermissionType
func (RulePermissionType) EnumDescriptor
deprecated
func (RulePermissionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RulePermissionType.Descriptor instead.
func (RulePermissionType) Number ¶
func (x RulePermissionType) Number() protoreflect.EnumNumber
func (RulePermissionType) String ¶
func (x RulePermissionType) String() string
func (RulePermissionType) Type ¶
func (RulePermissionType) Type() protoreflect.EnumType
type Success ¶
type Success struct { // true if operation is executed successfully Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"` // any text associated with the success or failure DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"` // contains filtered or unexported fields }
Success represents a Success Operation Response
func (*Success) Descriptor
deprecated
func (*Success) GetDisplayText ¶
func (*Success) GetSuccess ¶
func (*Success) ProtoMessage ¶
func (*Success) ProtoMessage()
func (*Success) ProtoReflect ¶
func (x *Success) ProtoReflect() protoreflect.Message
type UnimplementedAclServiceServer ¶
type UnimplementedAclServiceServer struct{}
UnimplementedAclServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAclServiceServer) CreateRole ¶
func (UnimplementedAclServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
func (UnimplementedAclServiceServer) CreateRolePermission ¶
func (UnimplementedAclServiceServer) CreateRolePermission(context.Context, *CreateRolePermissionRequest) (*CreateRolePermissionResponse, error)
func (UnimplementedAclServiceServer) DeleteRole ¶
func (UnimplementedAclServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
func (UnimplementedAclServiceServer) DeleteRolePermission ¶
func (UnimplementedAclServiceServer) DeleteRolePermission(context.Context, *DeleteRolePermissionRequest) (*DeleteRolePermissionResponse, error)
func (UnimplementedAclServiceServer) DisableRole ¶
func (UnimplementedAclServiceServer) DisableRole(context.Context, *DisableRoleRequest) (*DisableRoleResponse, error)
func (UnimplementedAclServiceServer) EnableRole ¶
func (UnimplementedAclServiceServer) EnableRole(context.Context, *EnableRoleRequest) (*EnableRoleResponse, error)
func (UnimplementedAclServiceServer) ImportRole ¶
func (UnimplementedAclServiceServer) ImportRole(context.Context, *ImportRoleRequest) (*ImportRoleResponse, error)
func (UnimplementedAclServiceServer) ListRolePermissions ¶
func (UnimplementedAclServiceServer) ListRolePermissions(context.Context, *ListRolePermissionsRequest) (*ListRolePermissionsResponse, error)
func (UnimplementedAclServiceServer) ListRoles ¶
func (UnimplementedAclServiceServer) ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error)
func (UnimplementedAclServiceServer) UpdateRole ¶
func (UnimplementedAclServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
func (UnimplementedAclServiceServer) UpdateRolePermission ¶
func (UnimplementedAclServiceServer) UpdateRolePermission(context.Context, *UpdateRolePermissionRequest) (*UpdateRolePermissionResponse, error)
type UnsafeAclServiceServer ¶
type UnsafeAclServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAclServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AclServiceServer will result in compilation errors.
type UpdateRolePermissionRequest ¶
type UpdateRolePermissionRequest struct { // ID of the role RoleId *int64 `protobuf:"varint,1,opt,name=role_id,json=roleId" json:"role_id,omitempty"` // The parent role permission uuid, use 0 to move this rule at the top of the list RulePermissionOrder []string `protobuf:"bytes,2,rep,name=rule_permission_order,json=rulePermissionOrder" json:"rule_permission_order,omitempty"` // Role permission rule id RuleId *int64 `protobuf:"varint,3,opt,name=rule_id,json=ruleId" json:"rule_id,omitempty"` // Rule permission, can be: allow or deny RulePermission *string `protobuf:"bytes,4,opt,name=rule_permission,json=rulePermission" json:"rule_permission,omitempty"` ResponseType *string `protobuf:"bytes,5,opt,name=response_type,json=responseType" json:"response_type,omitempty"` // contains filtered or unexported fields }
UpdateRolePermissionRequest represents the parameters for updates a role permission order
func (*UpdateRolePermissionRequest) Descriptor
deprecated
func (*UpdateRolePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRolePermissionRequest.ProtoReflect.Descriptor instead.
func (*UpdateRolePermissionRequest) GetResponseType ¶
func (x *UpdateRolePermissionRequest) GetResponseType() string
func (*UpdateRolePermissionRequest) GetRoleId ¶
func (x *UpdateRolePermissionRequest) GetRoleId() int64
func (*UpdateRolePermissionRequest) GetRuleId ¶
func (x *UpdateRolePermissionRequest) GetRuleId() int64
func (*UpdateRolePermissionRequest) GetRulePermission ¶
func (x *UpdateRolePermissionRequest) GetRulePermission() string
func (*UpdateRolePermissionRequest) GetRulePermissionOrder ¶
func (x *UpdateRolePermissionRequest) GetRulePermissionOrder() []string
func (*UpdateRolePermissionRequest) ProtoMessage ¶
func (*UpdateRolePermissionRequest) ProtoMessage()
func (*UpdateRolePermissionRequest) ProtoReflect ¶
func (x *UpdateRolePermissionRequest) ProtoReflect() protoreflect.Message
func (*UpdateRolePermissionRequest) Reset ¶
func (x *UpdateRolePermissionRequest) Reset()
func (*UpdateRolePermissionRequest) String ¶
func (x *UpdateRolePermissionRequest) String() string
type UpdateRolePermissionResponse ¶
type UpdateRolePermissionResponse struct { // The Result Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` // contains filtered or unexported fields }
UpdateRolePermissionResponse represents the response from updates a role permission order
func (*UpdateRolePermissionResponse) Descriptor
deprecated
func (*UpdateRolePermissionResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRolePermissionResponse.ProtoReflect.Descriptor instead.
func (*UpdateRolePermissionResponse) GetResult ¶
func (x *UpdateRolePermissionResponse) GetResult() *Result
func (*UpdateRolePermissionResponse) ProtoMessage ¶
func (*UpdateRolePermissionResponse) ProtoMessage()
func (*UpdateRolePermissionResponse) ProtoReflect ¶
func (x *UpdateRolePermissionResponse) ProtoReflect() protoreflect.Message
func (*UpdateRolePermissionResponse) Reset ¶
func (x *UpdateRolePermissionResponse) Reset()
func (*UpdateRolePermissionResponse) String ¶
func (x *UpdateRolePermissionResponse) String() string
type UpdateRoleRequest ¶
type UpdateRoleRequest struct { // ID of the role RoleId *int64 `protobuf:"varint,1,opt,name=role_id,json=roleId" json:"role_id,omitempty"` // creates a role with this unique name RoleName *string `protobuf:"bytes,2,opt,name=role_name,json=roleName" json:"role_name,omitempty"` // The description of the role RoleDescription *string `protobuf:"bytes,3,opt,name=role_description,json=roleDescription" json:"role_description,omitempty"` // Indicates whether the role will be visible to all users (public) or only to root admins (private). PublicRole *bool `protobuf:"varint,4,opt,name=public_role,json=publicRole" json:"public_role,omitempty"` // The type of the role, valid options are: Admin, ResourceAdmin, DomainAdmin, User RoleType *string `protobuf:"bytes,5,opt,name=role_type,json=roleType" json:"role_type,omitempty"` ResponseType *string `protobuf:"bytes,6,opt,name=response_type,json=responseType" json:"response_type,omitempty"` // contains filtered or unexported fields }
UpdateRoleRequest represents the parameters for updates a role
func (*UpdateRoleRequest) Descriptor
deprecated
func (*UpdateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleRequest) GetPublicRole ¶
func (x *UpdateRoleRequest) GetPublicRole() bool
func (*UpdateRoleRequest) GetResponseType ¶
func (x *UpdateRoleRequest) GetResponseType() string
func (*UpdateRoleRequest) GetRoleDescription ¶
func (x *UpdateRoleRequest) GetRoleDescription() string
func (*UpdateRoleRequest) GetRoleId ¶
func (x *UpdateRoleRequest) GetRoleId() int64
func (*UpdateRoleRequest) GetRoleName ¶
func (x *UpdateRoleRequest) GetRoleName() string
func (*UpdateRoleRequest) GetRoleType ¶
func (x *UpdateRoleRequest) GetRoleType() string
func (*UpdateRoleRequest) ProtoMessage ¶
func (*UpdateRoleRequest) ProtoMessage()
func (*UpdateRoleRequest) ProtoReflect ¶
func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
func (*UpdateRoleRequest) Reset ¶
func (x *UpdateRoleRequest) Reset()
func (*UpdateRoleRequest) String ¶
func (x *UpdateRoleRequest) String() string
type UpdateRoleResponse ¶
type UpdateRoleResponse struct { // The Result Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` // contains filtered or unexported fields }
UpdateRoleResponse represents the response from updates a role
func (*UpdateRoleResponse) Descriptor
deprecated
func (*UpdateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleResponse.ProtoReflect.Descriptor instead.
func (*UpdateRoleResponse) GetResult ¶
func (x *UpdateRoleResponse) GetResult() *Result
func (*UpdateRoleResponse) ProtoMessage ¶
func (*UpdateRoleResponse) ProtoMessage()
func (*UpdateRoleResponse) ProtoReflect ¶
func (x *UpdateRoleResponse) ProtoReflect() protoreflect.Message
func (*UpdateRoleResponse) Reset ¶
func (x *UpdateRoleResponse) Reset()
func (*UpdateRoleResponse) String ¶
func (x *UpdateRoleResponse) String() string