Documentation ¶
Index ¶
- Variables
- type Grant
- type GrantJson
- func (*GrantJson) Descriptor() ([]byte, []int)deprecated
- func (x *GrantJson) GetActions() []string
- func (x *GrantJson) GetId() stringdeprecated
- func (x *GrantJson) GetIds() []string
- func (x *GrantJson) GetType() string
- func (*GrantJson) ProtoMessage()
- func (x *GrantJson) ProtoReflect() protoreflect.Message
- func (x *GrantJson) Reset()
- func (x *GrantJson) String() string
- type Principal
- func (*Principal) Descriptor() ([]byte, []int)deprecated
- func (x *Principal) GetId() string
- func (x *Principal) GetScopeId() string
- func (x *Principal) GetType() string
- func (*Principal) ProtoMessage()
- func (x *Principal) ProtoReflect() protoreflect.Message
- func (x *Principal) Reset()
- func (x *Principal) String() string
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetAuthorizedActions() []string
- func (x *Role) GetCreatedTime() *timestamppb.Timestamp
- func (x *Role) GetDescription() *wrapperspb.StringValue
- func (x *Role) GetGrantScopeId() *wrapperspb.StringValuedeprecated
- func (x *Role) GetGrantScopeIds() []string
- func (x *Role) GetGrantStrings() []string
- func (x *Role) GetGrants() []*Grant
- func (x *Role) GetId() string
- func (x *Role) GetName() *wrapperspb.StringValue
- func (x *Role) GetPrincipalIds() []string
- func (x *Role) GetPrincipals() []*Principal
- func (x *Role) GetScope() *scopes.ScopeInfo
- func (x *Role) GetScopeId() string
- func (x *Role) GetUpdatedTime() *timestamppb.Timestamp
- func (x *Role) GetVersion() uint32
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_controller_api_resources_roles_v1_role_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Grant ¶
type Grant struct { // Output only. The original user-supplied string. Raw string `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty" class:"public"` // @gotags: `class:"public"` // Output only. The canonically-formatted string. Canonical string `protobuf:"bytes,2,opt,name=canonical,proto3" json:"canonical,omitempty" class:"public"` // @gotags: `class:"public"` // Output only. The JSON representation of the grant. Json *GrantJson `protobuf:"bytes,3,opt,name=json,proto3" json:"json,omitempty"` // contains filtered or unexported fields }
func (*Grant) Descriptor
deprecated
func (*Grant) GetCanonical ¶
func (*Grant) ProtoMessage ¶
func (*Grant) ProtoMessage()
func (*Grant) ProtoReflect ¶
func (x *Grant) ProtoReflect() protoreflect.Message
type GrantJson ¶
type GrantJson struct { // Output only. The ID, if set. // Deprecated: use "ids" instead. // // Deprecated: Marked as deprecated in controller/api/resources/roles/v1/role.proto. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"` // Output only. The IDs, if set. Ids []string `protobuf:"bytes,4,rep,name=ids,proto3" json:"ids,omitempty" class:"public"` // @gotags: `class:"public"` // Output only. The type, if set. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty" class:"public"` // @gotags: `class:"public"` // Output only. The actions. Actions []string `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty" class:"public"` // @gotags: `class:"public"` // contains filtered or unexported fields }
func (*GrantJson) Descriptor
deprecated
func (*GrantJson) GetActions ¶
func (*GrantJson) ProtoMessage ¶
func (*GrantJson) ProtoMessage()
func (*GrantJson) ProtoReflect ¶
func (x *GrantJson) ProtoReflect() protoreflect.Message
type Principal ¶
type Principal struct { // Output only. The ID of the principal. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // Output only. The type of the principal. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // Output only. The Scope of the principal. ScopeId string `protobuf:"bytes,3,opt,name=scope_id,proto3" json:"scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // contains filtered or unexported fields }
func (*Principal) Descriptor
deprecated
func (*Principal) GetScopeId ¶
func (*Principal) ProtoMessage ¶
func (*Principal) ProtoMessage()
func (*Principal) ProtoReflect ¶
func (x *Principal) ProtoReflect() protoreflect.Message
type Role ¶
type Role struct { // Output only. The ID of the Role. Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // The ID of the Scope containing this Role. ScopeId string `protobuf:"bytes,20,opt,name=scope_id,proto3" json:"scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // Output only. Scope information for this resource. Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"` // Optional name for identification purposes. Name *wrapperspb.StringValue `protobuf:"bytes,40,opt,name=name,proto3" json:"name,omitempty" class:"public"` // @gotags: `class:"public"` // Optional user-set description for identification purposes. Description *wrapperspb.StringValue `protobuf:"bytes,50,opt,name=description,proto3" json:"description,omitempty" class:"public"` // @gotags: `class:"public"` // Output only. The time this resource was created. CreatedTime *timestamppb.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // Output only. The time this resource was last updated. UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // Version is used in mutation requests, after the initial creation, to ensure this resource has not changed. // The mutation will fail if the version does not match the latest known good version. Version uint32 `protobuf:"varint,80,opt,name=version,proto3" json:"version,omitempty" class:"public"` // @gotags: `class:"public"` // The Scope the grants will apply to. If the Role is at the global scope, // this can be an org or project. If the Role is at an org scope, this can be // a project within the org. It is invalid for this to be anything other than // the Role's scope when the Role's scope is a project. // // Deprecated: Use "grant_scope_ids" instead. // // Deprecated: Marked as deprecated in controller/api/resources/roles/v1/role.proto. GrantScopeId *wrapperspb.StringValue `protobuf:"bytes,90,opt,name=grant_scope_id,proto3" json:"grant_scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // Output only. The IDs of Scopes the grants will apply to. This can include // the role's own scope ID, or "this" for the same behavior; specific IDs of // scopes that are children of the role's scope; the value "children" to match // all direct child scopes of the role's scope; or the value "descendants" to // match all descendant scopes (e.g. child scopes, children of child scopes; // only valid at "global" scope since it is the only one with children of // children). GrantScopeIds []string `protobuf:"bytes,91,rep,name=grant_scope_ids,proto3" json:"grant_scope_ids,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // Output only. The IDs (only) of principals that are assigned to this role. PrincipalIds []string `protobuf:"bytes,100,rep,name=principal_ids,proto3" json:"principal_ids,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"` // Output only. The principals that are assigned to this role. Principals []*Principal `protobuf:"bytes,110,rep,name=principals,proto3" json:"principals,omitempty"` // Output only. The grants that this role provides for its principals. GrantStrings []string `protobuf:"bytes,120,rep,name=grant_strings,proto3" json:"grant_strings,omitempty" class:"public"` // @gotags: `class:"public"` // Output only. The parsed grant information. Grants []*Grant `protobuf:"bytes,130,rep,name=grants,proto3" json:"grants,omitempty"` // Output only. The available actions on this resource for this user. AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public"` // @gotags: `class:"public"` // contains filtered or unexported fields }
Role contains all fields related to a Role resource
func (*Role) Descriptor
deprecated
func (*Role) GetAuthorizedActions ¶
func (*Role) GetCreatedTime ¶
func (x *Role) GetCreatedTime() *timestamppb.Timestamp
func (*Role) GetDescription ¶
func (x *Role) GetDescription() *wrapperspb.StringValue
func (*Role) GetGrantScopeId
deprecated
func (x *Role) GetGrantScopeId() *wrapperspb.StringValue
Deprecated: Marked as deprecated in controller/api/resources/roles/v1/role.proto.
func (*Role) GetGrantScopeIds ¶ added in v0.0.42
func (*Role) GetGrantStrings ¶
func (*Role) GetName ¶
func (x *Role) GetName() *wrapperspb.StringValue
func (*Role) GetPrincipalIds ¶
func (*Role) GetPrincipals ¶
func (*Role) GetScopeId ¶
func (*Role) GetUpdatedTime ¶
func (x *Role) GetUpdatedTime() *timestamppb.Timestamp
func (*Role) GetVersion ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.