Documentation ¶
Index ¶
- Variables
- type Effect
- type Group
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetCreated() *timestamppb.Timestamp
- func (x *Group) GetId() string
- func (x *Group) GetName() string
- func (x *Group) GetNamespace() string
- func (x *Group) GetParentIds() []string
- func (x *Group) GetRoleIds() []string
- func (x *Group) GetUpdated() *timestamppb.Timestamp
- func (x *Group) GetVersion() int64
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- type Organization
- func (*Organization) Descriptor() ([]byte, []int)deprecated
- func (x *Organization) GetCreated() *timestamppb.Timestamp
- func (x *Organization) GetId() string
- func (x *Organization) GetName() string
- func (x *Organization) GetNamespaces() []string
- func (x *Organization) GetParentIds() []string
- func (x *Organization) GetUpdated() *timestamppb.Timestamp
- func (x *Organization) GetUrl() string
- func (x *Organization) GetVersion() int64
- func (*Organization) ProtoMessage()
- func (x *Organization) ProtoReflect() protoreflect.Message
- func (x *Organization) Reset()
- func (x *Organization) String() string
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)deprecated
- func (x *Permission) GetActions() []string
- func (x *Permission) GetConstraints() string
- func (x *Permission) GetCreated() *timestamppb.Timestamp
- func (x *Permission) GetEffect() Effect
- func (x *Permission) GetId() string
- func (x *Permission) GetNamespace() string
- func (x *Permission) GetResourceId() string
- func (x *Permission) GetScope() string
- func (x *Permission) GetUpdated() *timestamppb.Timestamp
- func (x *Permission) GetVersion() int64
- func (*Permission) ProtoMessage()
- func (x *Permission) ProtoReflect() protoreflect.Message
- func (x *Permission) Reset()
- func (x *Permission) String() string
- type Principal
- func (*Principal) Descriptor() ([]byte, []int)deprecated
- func (x *Principal) GetAttributes() map[string]string
- func (x *Principal) GetCreated() *timestamppb.Timestamp
- func (x *Principal) GetEmail() string
- func (x *Principal) GetGroupIds() []string
- func (x *Principal) GetId() string
- func (x *Principal) GetName() string
- func (x *Principal) GetNamespaces() []string
- func (x *Principal) GetOrganizationId() string
- func (x *Principal) GetPermissionIds() []string
- func (x *Principal) GetRelationIds() []string
- func (x *Principal) GetRoleIds() []string
- func (x *Principal) GetUpdated() *timestamppb.Timestamp
- func (x *Principal) GetUsername() string
- func (x *Principal) GetVersion() int64
- func (*Principal) ProtoMessage()
- func (x *Principal) ProtoReflect() protoreflect.Message
- func (x *Principal) Reset()
- func (x *Principal) String() string
- type Relationship
- func (*Relationship) Descriptor() ([]byte, []int)deprecated
- func (x *Relationship) GetAttributes() map[string]string
- func (x *Relationship) GetCreated() *timestamppb.Timestamp
- func (x *Relationship) GetId() string
- func (x *Relationship) GetNamespace() string
- func (x *Relationship) GetPrincipalId() string
- func (x *Relationship) GetRelation() string
- func (x *Relationship) GetResourceId() string
- func (x *Relationship) GetUpdated() *timestamppb.Timestamp
- func (x *Relationship) GetVersion() int64
- func (*Relationship) ProtoMessage()
- func (x *Relationship) ProtoReflect() protoreflect.Message
- func (x *Relationship) Reset()
- func (x *Relationship) String() string
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetAllowedActions() []string
- func (x *Resource) GetAttributes() map[string]string
- func (x *Resource) GetCapacity() int32
- func (x *Resource) GetCreated() *timestamppb.Timestamp
- func (x *Resource) GetId() string
- func (x *Resource) GetName() string
- func (x *Resource) GetNamespace() string
- func (x *Resource) GetUpdated() *timestamppb.Timestamp
- func (x *Resource) GetVersion() int64
- func (x *Resource) GetWildcard() bool
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- type ResourceInstance
- func (*ResourceInstance) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceInstance) GetCreated() *timestamppb.Timestamp
- func (x *ResourceInstance) GetExpiry() *durationpb.Duration
- func (x *ResourceInstance) GetId() string
- func (x *ResourceInstance) GetNamespace() string
- func (x *ResourceInstance) GetPrincipalId() string
- func (x *ResourceInstance) GetResourceId() string
- func (x *ResourceInstance) GetState() ResourceState
- func (x *ResourceInstance) GetUpdated() *timestamppb.Timestamp
- func (x *ResourceInstance) GetVersion() int64
- func (*ResourceInstance) ProtoMessage()
- func (x *ResourceInstance) ProtoReflect() protoreflect.Message
- func (x *ResourceInstance) Reset()
- func (x *ResourceInstance) String() string
- type ResourceState
- func (ResourceState) Descriptor() protoreflect.EnumDescriptor
- func (x ResourceState) Enum() *ResourceState
- func (ResourceState) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResourceState) Number() protoreflect.EnumNumber
- func (x ResourceState) String() string
- func (ResourceState) Type() protoreflect.EnumType
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetCreated() *timestamppb.Timestamp
- func (x *Role) GetId() string
- func (x *Role) GetName() string
- func (x *Role) GetNamespace() string
- func (x *Role) GetParentIds() []string
- func (x *Role) GetPermissionIds() []string
- func (x *Role) GetUpdated() *timestamppb.Timestamp
- func (x *Role) GetVersion() int64
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ResourceState_name = map[int32]string{ 0: "ALLOCATED", 1: "AVAILABLE", } ResourceState_value = map[string]int32{ "ALLOCATED": 0, "AVAILABLE": 1, } )
Enum value maps for ResourceState.
var ( Effect_name = map[int32]string{ 0: "PERMITTED", 1: "DENIED", } Effect_value = map[string]int32{ "PERMITTED": 0, "DENIED": 1, } )
Enum value maps for Effect.
var File_api_v1_types_authz_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Effect ¶
type Effect int32
func (Effect) Descriptor ¶
func (Effect) Descriptor() protoreflect.EnumDescriptor
func (Effect) EnumDescriptor
deprecated
func (Effect) Number ¶
func (x Effect) Number() protoreflect.EnumNumber
func (Effect) Type ¶
func (Effect) Type() protoreflect.EnumType
type Group ¶
type Group struct { // ID unique identifier assigned to this group. // in:body Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Version // in:body Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // Namespace for permission. // in:body Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` // Name of the group. // in:body Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // RoleIDs that are associated. // in:body RoleIds []string `protobuf:"bytes,5,rep,name=role_ids,json=roleIds,proto3" json:"role_ids,omitempty"` // Optional parent ids. // in:body ParentIds []string `protobuf:"bytes,6,rep,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"` // Created date // in:body Created *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created,proto3" json:"created,omitempty"` // Updated date // in:body Updated *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated,proto3" json:"updated,omitempty"` // contains filtered or unexported fields }
Group - A collection of principals that are treated as a single unit for the purpose of granting permissions. For example, an "Admins" group might be given a role that allows them to perform administrative actions. swagger:model
func (*Group) Descriptor
deprecated
func (*Group) GetCreated ¶
func (x *Group) GetCreated() *timestamppb.Timestamp
func (*Group) GetNamespace ¶
func (*Group) GetParentIds ¶
func (*Group) GetRoleIds ¶
func (*Group) GetUpdated ¶
func (x *Group) GetUpdated() *timestamppb.Timestamp
func (*Group) GetVersion ¶
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type Organization ¶
type Organization struct { // ID unique identifier assigned to this organization. // in:body Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Version // in:body Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // Name of organization. // in:body Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Allowed Namespaces for organization. // in:body Namespaces []string `protobuf:"bytes,4,rep,name=namespaces,proto3" json:"namespaces,omitempty"` // url for organization. // in:body Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"` // Optional parent ids. // in:body ParentIds []string `protobuf:"bytes,6,rep,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"` // Created date // in:body Created *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created,proto3" json:"created,omitempty"` // Updated date // in:body Updated *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated,proto3" json:"updated,omitempty"` // contains filtered or unexported fields }
Organization that owns roles, groups, relations, and principals for a given namespace. swagger:model
func (*Organization) Descriptor
deprecated
func (*Organization) Descriptor() ([]byte, []int)
Deprecated: Use Organization.ProtoReflect.Descriptor instead.
func (*Organization) GetCreated ¶
func (x *Organization) GetCreated() *timestamppb.Timestamp
func (*Organization) GetId ¶
func (x *Organization) GetId() string
func (*Organization) GetName ¶
func (x *Organization) GetName() string
func (*Organization) GetNamespaces ¶
func (x *Organization) GetNamespaces() []string
func (*Organization) GetParentIds ¶
func (x *Organization) GetParentIds() []string
func (*Organization) GetUpdated ¶
func (x *Organization) GetUpdated() *timestamppb.Timestamp
func (*Organization) GetUrl ¶
func (x *Organization) GetUrl() string
func (*Organization) GetVersion ¶
func (x *Organization) GetVersion() int64
func (*Organization) ProtoMessage ¶
func (*Organization) ProtoMessage()
func (*Organization) ProtoReflect ¶
func (x *Organization) ProtoReflect() protoreflect.Message
func (*Organization) Reset ¶
func (x *Organization) Reset()
func (*Organization) String ¶
func (x *Organization) String() string
type Permission ¶
type Permission struct { // ID unique identifier assigned to this permission. // in:body Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Version // in:body Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // Namespace for permission. // in:body Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` // Scope for permission. // in:body Scope string `protobuf:"bytes,4,opt,name=scope,proto3" json:"scope,omitempty"` // Actions that can be performed. // in:body Actions []string `protobuf:"bytes,5,rep,name=actions,proto3" json:"actions,omitempty"` // Resource for the action. // in:body ResourceId string `protobuf:"bytes,6,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // Effect Permitted or Denied // in:body Effect Effect `protobuf:"varint,7,opt,name=effect,proto3,enum=api.authz.types.Effect" json:"effect,omitempty"` // Constraints expression with dynamic properties. // in:body Constraints string `protobuf:"bytes,8,opt,name=constraints,proto3" json:"constraints,omitempty"` // Created date // in:body Created *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created,proto3" json:"created,omitempty"` // Updated date // in:body Updated *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated,proto3" json:"updated,omitempty"` // contains filtered or unexported fields }
Permission - An action that a principal is allowed to perform on a particular resource. For example, reading a file, updating a database record, or deleting an account. swagger:model
func (*Permission) Descriptor
deprecated
func (*Permission) Descriptor() ([]byte, []int)
Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) GetActions ¶
func (x *Permission) GetActions() []string
func (*Permission) GetConstraints ¶
func (x *Permission) GetConstraints() string
func (*Permission) GetCreated ¶
func (x *Permission) GetCreated() *timestamppb.Timestamp
func (*Permission) GetEffect ¶
func (x *Permission) GetEffect() Effect
func (*Permission) GetId ¶
func (x *Permission) GetId() string
func (*Permission) GetNamespace ¶
func (x *Permission) GetNamespace() string
func (*Permission) GetResourceId ¶
func (x *Permission) GetResourceId() string
func (*Permission) GetScope ¶
func (x *Permission) GetScope() string
func (*Permission) GetUpdated ¶
func (x *Permission) GetUpdated() *timestamppb.Timestamp
func (*Permission) GetVersion ¶
func (x *Permission) GetVersion() int64
func (*Permission) ProtoMessage ¶
func (*Permission) ProtoMessage()
func (*Permission) ProtoReflect ¶
func (x *Permission) ProtoReflect() protoreflect.Message
func (*Permission) Reset ¶
func (x *Permission) Reset()
func (*Permission) String ¶
func (x *Permission) String() string
type Principal ¶
type Principal struct { // ID unique identifier assigned to this principal. // in:body Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Version // in:body Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // OrganizationId of the principal user. // in:body OrganizationId string `protobuf:"bytes,3,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // Allowed Namespaces for principal, should be subset of namespaces in organization. // in:body Namespaces []string `protobuf:"bytes,4,rep,name=namespaces,proto3" json:"namespaces,omitempty"` // Username of the principal user. // in:body Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` // Email of the principal user. // in:body Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` // Name of the principal user. // in:body Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` // Attributes of principal // in:body Attributes map[string]string `` /* 161-byte string literal not displayed */ // Groups that the principal belongs to. // in:body GroupIds []string `protobuf:"bytes,9,rep,name=group_ids,json=groupIds,proto3" json:"group_ids,omitempty"` // Roles that the principal belongs to. // in:body RoleIds []string `protobuf:"bytes,10,rep,name=role_ids,json=roleIds,proto3" json:"role_ids,omitempty"` // Permissions that the principal belongs to. // in:body PermissionIds []string `protobuf:"bytes,11,rep,name=permission_ids,json=permissionIds,proto3" json:"permission_ids,omitempty"` // Relationships that the principal belongs to. // in:body RelationIds []string `protobuf:"bytes,12,rep,name=relation_ids,json=relationIds,proto3" json:"relation_ids,omitempty"` // Created date // in:body Created *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=created,proto3" json:"created,omitempty"` // Updated date // in:body Updated *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=updated,proto3" json:"updated,omitempty"` // contains filtered or unexported fields }
Principal - The entity (which could be a user, system, or another service) that is making the request. Principals are often authenticated before they are authorized to perform an action. swagger:model
func (*Principal) Descriptor
deprecated
func (*Principal) GetAttributes ¶
func (*Principal) GetCreated ¶
func (x *Principal) GetCreated() *timestamppb.Timestamp
func (*Principal) GetGroupIds ¶
func (*Principal) GetNamespaces ¶
func (*Principal) GetOrganizationId ¶
func (*Principal) GetPermissionIds ¶
func (*Principal) GetRelationIds ¶
func (*Principal) GetRoleIds ¶
func (*Principal) GetUpdated ¶
func (x *Principal) GetUpdated() *timestamppb.Timestamp
func (*Principal) GetUsername ¶
func (*Principal) GetVersion ¶
func (*Principal) ProtoMessage ¶
func (*Principal) ProtoMessage()
func (*Principal) ProtoReflect ¶
func (x *Principal) ProtoReflect() protoreflect.Message
type Relationship ¶
type Relationship struct { // ID unique identifier assigned to this relationship. // in:body Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Version // in:body Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // Namespace for permission. // in:body Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` // Relation name. // in:body Relation string `protobuf:"bytes,4,opt,name=relation,proto3" json:"relation,omitempty"` // PrincipalID for relationship. // in:body PrincipalId string `protobuf:"bytes,5,opt,name=principal_id,json=principalId,proto3" json:"principal_id,omitempty"` // ResourceID for relationship. // in:body ResourceId string `protobuf:"bytes,6,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // Attributes of relationship. // in:body Attributes map[string]string `` /* 161-byte string literal not displayed */ // Created date // in:body Created *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created,proto3" json:"created,omitempty"` // Updated date // in:body Updated *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updated,proto3" json:"updated,omitempty"` // contains filtered or unexported fields }
Relationship - represents a relationship between a resource and a principal. swagger:model
func (*Relationship) Descriptor
deprecated
func (*Relationship) Descriptor() ([]byte, []int)
Deprecated: Use Relationship.ProtoReflect.Descriptor instead.
func (*Relationship) GetAttributes ¶
func (x *Relationship) GetAttributes() map[string]string
func (*Relationship) GetCreated ¶
func (x *Relationship) GetCreated() *timestamppb.Timestamp
func (*Relationship) GetId ¶
func (x *Relationship) GetId() string
func (*Relationship) GetNamespace ¶
func (x *Relationship) GetNamespace() string
func (*Relationship) GetPrincipalId ¶
func (x *Relationship) GetPrincipalId() string
func (*Relationship) GetRelation ¶
func (x *Relationship) GetRelation() string
func (*Relationship) GetResourceId ¶
func (x *Relationship) GetResourceId() string
func (*Relationship) GetUpdated ¶
func (x *Relationship) GetUpdated() *timestamppb.Timestamp
func (*Relationship) GetVersion ¶
func (x *Relationship) GetVersion() int64
func (*Relationship) ProtoMessage ¶
func (*Relationship) ProtoMessage()
func (*Relationship) ProtoReflect ¶
func (x *Relationship) ProtoReflect() protoreflect.Message
func (*Relationship) Reset ¶
func (x *Relationship) Reset()
func (*Relationship) String ¶
func (x *Relationship) String() string
type Resource ¶
type Resource struct { // ID unique identifier assigned to this resource. // in:body Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Version // in:body Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // Namespace for resource. // in:body Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` // Name of the resource. // in:body Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // capacity of resource. // in:body Capacity int32 `protobuf:"varint,5,opt,name=capacity,proto3" json:"capacity,omitempty"` // Attributes of resource. // in:body Attributes map[string]string `` /* 161-byte string literal not displayed */ // AllowedActions that can be performed. // in:body AllowedActions []string `protobuf:"bytes,7,rep,name=allowed_actions,json=allowedActions,proto3" json:"allowed_actions,omitempty"` // Wildcard if resource name contains * // in:body Wildcard bool `protobuf:"varint,8,opt,name=wildcard,proto3" json:"wildcard,omitempty"` // Created date // in:body Created *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created,proto3" json:"created,omitempty"` // Updated date // in:body Updated *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated,proto3" json:"updated,omitempty"` // contains filtered or unexported fields }
Resource - The object that the principal wants to access (e.g., a file, a database record). swagger:model
func (*Resource) Descriptor
deprecated
func (*Resource) GetAllowedActions ¶
func (*Resource) GetAttributes ¶
func (*Resource) GetCapacity ¶
func (*Resource) GetCreated ¶
func (x *Resource) GetCreated() *timestamppb.Timestamp
func (*Resource) GetNamespace ¶
func (*Resource) GetUpdated ¶
func (x *Resource) GetUpdated() *timestamppb.Timestamp
func (*Resource) GetVersion ¶
func (*Resource) GetWildcard ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type ResourceInstance ¶
type ResourceInstance struct { // ID unique identifier assigned to this resource instance. // in:body Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Version // in:body Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // ResourceID of the resource. // in:body ResourceId string `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // Namespace for resource. // in:body Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` // Principal that is using the resource. // in:body PrincipalId string `protobuf:"bytes,5,opt,name=principal_id,json=principalId,proto3" json:"principal_id,omitempty"` // state of resource instance. // in:body State ResourceState `protobuf:"varint,6,opt,name=state,proto3,enum=api.authz.types.ResourceState" json:"state,omitempty"` // Time duration in milliseconds after which instance will expire. // in:body Expiry *durationpb.Duration `protobuf:"bytes,7,opt,name=expiry,proto3" json:"expiry,omitempty"` // Created date // in:body Created *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created,proto3" json:"created,omitempty"` // Updated date // in:body Updated *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updated,proto3" json:"updated,omitempty"` // contains filtered or unexported fields }
ResourceInstance - instance of the resource for tracking quota of resource. swagger:model
func (*ResourceInstance) Descriptor
deprecated
func (*ResourceInstance) Descriptor() ([]byte, []int)
Deprecated: Use ResourceInstance.ProtoReflect.Descriptor instead.
func (*ResourceInstance) GetCreated ¶
func (x *ResourceInstance) GetCreated() *timestamppb.Timestamp
func (*ResourceInstance) GetExpiry ¶
func (x *ResourceInstance) GetExpiry() *durationpb.Duration
func (*ResourceInstance) GetId ¶
func (x *ResourceInstance) GetId() string
func (*ResourceInstance) GetNamespace ¶
func (x *ResourceInstance) GetNamespace() string
func (*ResourceInstance) GetPrincipalId ¶
func (x *ResourceInstance) GetPrincipalId() string
func (*ResourceInstance) GetResourceId ¶
func (x *ResourceInstance) GetResourceId() string
func (*ResourceInstance) GetState ¶
func (x *ResourceInstance) GetState() ResourceState
func (*ResourceInstance) GetUpdated ¶
func (x *ResourceInstance) GetUpdated() *timestamppb.Timestamp
func (*ResourceInstance) GetVersion ¶
func (x *ResourceInstance) GetVersion() int64
func (*ResourceInstance) ProtoMessage ¶
func (*ResourceInstance) ProtoMessage()
func (*ResourceInstance) ProtoReflect ¶
func (x *ResourceInstance) ProtoReflect() protoreflect.Message
func (*ResourceInstance) Reset ¶
func (x *ResourceInstance) Reset()
func (*ResourceInstance) String ¶
func (x *ResourceInstance) String() string
type ResourceState ¶
type ResourceState int32
const ( ResourceState_ALLOCATED ResourceState = 0 ResourceState_AVAILABLE ResourceState = 1 )
func (ResourceState) Descriptor ¶
func (ResourceState) Descriptor() protoreflect.EnumDescriptor
func (ResourceState) Enum ¶
func (x ResourceState) Enum() *ResourceState
func (ResourceState) EnumDescriptor
deprecated
func (ResourceState) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResourceState.Descriptor instead.
func (ResourceState) Number ¶
func (x ResourceState) Number() protoreflect.EnumNumber
func (ResourceState) String ¶
func (x ResourceState) String() string
func (ResourceState) Type ¶
func (ResourceState) Type() protoreflect.EnumType
type Role ¶
type Role struct { // ID unique identifier assigned to this role. // in:body Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Version // in:body Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // Namespace for permission. // in:body Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` // Name of the role. // in:body Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // PermissionIDs that can be performed. // in:body PermissionIds []string `protobuf:"bytes,5,rep,name=permission_ids,json=permissionIds,proto3" json:"permission_ids,omitempty"` // Optional parent ids // in:body ParentIds []string `protobuf:"bytes,6,rep,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"` // Created date // in:body Created *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created,proto3" json:"created,omitempty"` // Updated date // in:body Updated *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated,proto3" json:"updated,omitempty"` // contains filtered or unexported fields }
Role - A named collection of permissions that can be assigned to a principal. Roles simplify the management of permissions by grouping them together under a single label. swagger:model
func (*Role) Descriptor
deprecated
func (*Role) GetCreated ¶
func (x *Role) GetCreated() *timestamppb.Timestamp
func (*Role) GetNamespace ¶
func (*Role) GetParentIds ¶
func (*Role) GetPermissionIds ¶
func (*Role) GetUpdated ¶
func (x *Role) GetUpdated() *timestamppb.Timestamp
func (*Role) GetVersion ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message