Documentation ¶
Index ¶
- Variables
- type ErrorRecordMismatch
- type GetSessionRequest
- type GetSessionResponse
- func (*GetSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSessionResponse) GetSession() *Session
- func (*GetSessionResponse) ProtoMessage()
- func (x *GetSessionResponse) ProtoReflect() protoreflect.Message
- func (x *GetSessionResponse) Reset()
- func (x *GetSessionResponse) String() string
- type GetUserMetadataRequest
- func (*GetUserMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserMetadataRequest) GetId() string
- func (x *GetUserMetadataRequest) GetNamespaces() []string
- func (*GetUserMetadataRequest) ProtoMessage()
- func (x *GetUserMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserMetadataRequest) Reset()
- func (x *GetUserMetadataRequest) String() string
- type GetUserMetadataResponse
- func (*GetUserMetadataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserMetadataResponse) GetMetadata() []*UserServiceMetadata
- func (*GetUserMetadataResponse) ProtoMessage()
- func (x *GetUserMetadataResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserMetadataResponse) Reset()
- func (x *GetUserMetadataResponse) String() string
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRequest) GetEmail() string
- func (x *GetUserRequest) GetId() string
- func (*GetUserRequest) ProtoMessage()
- func (x *GetUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRequest) Reset()
- func (x *GetUserRequest) String() string
- type GetUserResponse
- type GetUserRolesRequest
- func (*GetUserRolesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRolesRequest) GetId() string
- func (x *GetUserRolesRequest) GetService() string
- func (*GetUserRolesRequest) ProtoMessage()
- func (x *GetUserRolesRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRolesRequest) Reset()
- func (x *GetUserRolesRequest) String() string
- type GetUserRolesResponse
- func (*GetUserRolesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRolesResponse) GetRoles() []stringdeprecated
- func (x *GetUserRolesResponse) GetUserRoles() []*Role
- func (*GetUserRolesResponse) ProtoMessage()
- func (x *GetUserRolesResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserRolesResponse) Reset()
- func (x *GetUserRolesResponse) String() string
- type GetUsersRequest
- type GetUsersResponse
- type IntrospectTokenRequest
- func (*IntrospectTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IntrospectTokenRequest) GetToken() string
- func (*IntrospectTokenRequest) ProtoMessage()
- func (x *IntrospectTokenRequest) ProtoReflect() protoreflect.Message
- func (x *IntrospectTokenRequest) Reset()
- func (x *IntrospectTokenRequest) String() string
- type IntrospectTokenResponse
- func (*IntrospectTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IntrospectTokenResponse) GetActive() bool
- func (x *IntrospectTokenResponse) GetClientId() string
- func (x *IntrospectTokenResponse) GetExpiresAt() *timestamppb.Timestamp
- func (x *IntrospectTokenResponse) GetScopes() []string
- func (*IntrospectTokenResponse) ProtoMessage()
- func (x *IntrospectTokenResponse) ProtoReflect() protoreflect.Message
- func (x *IntrospectTokenResponse) Reset()
- func (x *IntrospectTokenResponse) String() string
- type RegisterRoleResourcesRequest
- func (*RegisterRoleResourcesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRoleResourcesRequest) GetMetadata() *RegisterRoleResourcesRequestMetadata
- func (m *RegisterRoleResourcesRequest) GetPayload() isRegisterRoleResourcesRequest_Payload
- func (x *RegisterRoleResourcesRequest) GetResources() *RegisterRoleResourcesRequest_Resources
- func (*RegisterRoleResourcesRequest) ProtoMessage()
- func (x *RegisterRoleResourcesRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRoleResourcesRequest) Reset()
- func (x *RegisterRoleResourcesRequest) String() string
- type RegisterRoleResourcesRequestMetadata
- func (*RegisterRoleResourcesRequestMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRoleResourcesRequestMetadata) GetResourceType() string
- func (x *RegisterRoleResourcesRequestMetadata) GetRevision() string
- func (*RegisterRoleResourcesRequestMetadata) ProtoMessage()
- func (x *RegisterRoleResourcesRequestMetadata) ProtoReflect() protoreflect.Message
- func (x *RegisterRoleResourcesRequestMetadata) Reset()
- func (x *RegisterRoleResourcesRequestMetadata) String() string
- type RegisterRoleResourcesRequest_Metadata
- type RegisterRoleResourcesRequest_Resources
- func (*RegisterRoleResourcesRequest_Resources) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRoleResourcesRequest_Resources) GetResources() []*RoleResource
- func (*RegisterRoleResourcesRequest_Resources) ProtoMessage()
- func (x *RegisterRoleResourcesRequest_Resources) ProtoReflect() protoreflect.Message
- func (x *RegisterRoleResourcesRequest_Resources) Reset()
- func (x *RegisterRoleResourcesRequest_Resources) String() string
- type RegisterRoleResourcesRequest_Resources_
- type RegisterRoleResourcesResponse
- func (*RegisterRoleResourcesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRoleResourcesResponse) GetResourceCount() uint64
- func (*RegisterRoleResourcesResponse) ProtoMessage()
- func (x *RegisterRoleResourcesResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterRoleResourcesResponse) Reset()
- func (x *RegisterRoleResourcesResponse) String() string
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetResourceId() string
- func (x *Role) GetResourceType() string
- func (x *Role) GetRoleId() string
- func (x *Role) GetService() string
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- type RoleResource
- func (*RoleResource) Descriptor() ([]byte, []int)deprecated
- func (x *RoleResource) GetDisplayName() string
- func (x *RoleResource) GetResourceId() string
- func (*RoleResource) ProtoMessage()
- func (x *RoleResource) ProtoReflect() protoreflect.Message
- func (x *RoleResource) Reset()
- func (x *RoleResource) String() string
- type Session
- type SignOutSessionRequest
- func (*SignOutSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignOutSessionRequest) GetId() string
- func (x *SignOutSessionRequest) GetUserId() string
- func (*SignOutSessionRequest) ProtoMessage()
- func (x *SignOutSessionRequest) ProtoReflect() protoreflect.Message
- func (x *SignOutSessionRequest) Reset()
- func (x *SignOutSessionRequest) String() string
- type SignOutSessionResponse
- type UpdateUserMetadataRequest
- func (*UpdateUserMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserMetadataRequest) GetMetadata() *UserServiceMetadata
- func (*UpdateUserMetadataRequest) ProtoMessage()
- func (x *UpdateUserMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserMetadataRequest) Reset()
- func (x *UpdateUserMetadataRequest) String() string
- type UpdateUserMetadataResponse
- func (*UpdateUserMetadataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserMetadataResponse) GetMetadata() *UserServiceMetadata
- func (*UpdateUserMetadataResponse) ProtoMessage()
- func (x *UpdateUserMetadataResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateUserMetadataResponse) Reset()
- func (x *UpdateUserMetadataResponse) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatarUrl() string
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetEmailVerified() bool
- func (x *User) GetId() string
- func (x *User) GetName() string
- func (x *User) GetUpdatedAt() *timestamppb.Timestamp
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserServiceMetadata
- func (*UserServiceMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *UserServiceMetadata) GetMetadata() *structpb.Struct
- func (x *UserServiceMetadata) GetNamespace() string
- func (x *UserServiceMetadata) GetUserId() string
- func (*UserServiceMetadata) ProtoMessage()
- func (x *UserServiceMetadata) ProtoReflect() protoreflect.Message
- func (x *UserServiceMetadata) Reset()
- func (x *UserServiceMetadata) String() string
Constants ¶
This section is empty.
Variables ¶
var ( // The SAMS scopes required to use this RPC. // // The range 50000-99999 is reserved for internal use within individual organizations // so you can use numbers in this range freely for in-house applications. // // repeated string sams_required_scopes = 50001; E_SamsRequiredScopes = &file_clients_v1_clients_proto_extTypes[0] )
Extension fields to descriptorpb.MethodOptions.
var File_clients_v1_clients_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ErrorRecordMismatch ¶
type ErrorRecordMismatch struct {
// contains filtered or unexported fields
}
ErrorRecordMismatch is returned in the error details when the record does not match the expected record, e.g. the desired user ID does not match the actual user ID.
func (*ErrorRecordMismatch) Descriptor
deprecated
func (*ErrorRecordMismatch) Descriptor() ([]byte, []int)
Deprecated: Use ErrorRecordMismatch.ProtoReflect.Descriptor instead.
func (*ErrorRecordMismatch) ProtoMessage ¶
func (*ErrorRecordMismatch) ProtoMessage()
func (*ErrorRecordMismatch) ProtoReflect ¶
func (x *ErrorRecordMismatch) ProtoReflect() protoreflect.Message
func (*ErrorRecordMismatch) Reset ¶
func (x *ErrorRecordMismatch) Reset()
func (*ErrorRecordMismatch) String ¶
func (x *ErrorRecordMismatch) String() string
type GetSessionRequest ¶
type GetSessionRequest struct { // The session's ID. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetSessionRequest) Descriptor
deprecated
func (*GetSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionRequest.ProtoReflect.Descriptor instead.
func (*GetSessionRequest) GetId ¶
func (x *GetSessionRequest) GetId() string
func (*GetSessionRequest) ProtoMessage ¶
func (*GetSessionRequest) ProtoMessage()
func (*GetSessionRequest) ProtoReflect ¶
func (x *GetSessionRequest) ProtoReflect() protoreflect.Message
func (*GetSessionRequest) Reset ¶
func (x *GetSessionRequest) Reset()
func (*GetSessionRequest) String ¶
func (x *GetSessionRequest) String() string
type GetSessionResponse ¶
type GetSessionResponse struct { Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"` // contains filtered or unexported fields }
func (*GetSessionResponse) Descriptor
deprecated
func (*GetSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSessionResponse.ProtoReflect.Descriptor instead.
func (*GetSessionResponse) GetSession ¶
func (x *GetSessionResponse) GetSession() *Session
func (*GetSessionResponse) ProtoMessage ¶
func (*GetSessionResponse) ProtoMessage()
func (*GetSessionResponse) ProtoReflect ¶
func (x *GetSessionResponse) ProtoReflect() protoreflect.Message
func (*GetSessionResponse) Reset ¶
func (x *GetSessionResponse) Reset()
func (*GetSessionResponse) String ¶
func (x *GetSessionResponse) String() string
type GetUserMetadataRequest ¶
type GetUserMetadataRequest struct { // The user's external ID. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The list of namespace to filter the metadata. "*" can be used to return // metadata for all namespaces. // // Requires the scope for the requested namespace(s); for example: // - namespaces: ['*'] requires 'sams::user.metadata::read' // - namespaces: ['dotcom'] requires 'sams::user.metadata.dotcom::read'. Namespaces []string `protobuf:"bytes,2,rep,name=namespaces,proto3" json:"namespaces,omitempty"` // contains filtered or unexported fields }
func (*GetUserMetadataRequest) Descriptor
deprecated
func (*GetUserMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserMetadataRequest.ProtoReflect.Descriptor instead.
func (*GetUserMetadataRequest) GetId ¶
func (x *GetUserMetadataRequest) GetId() string
func (*GetUserMetadataRequest) GetNamespaces ¶
func (x *GetUserMetadataRequest) GetNamespaces() []string
func (*GetUserMetadataRequest) ProtoMessage ¶
func (*GetUserMetadataRequest) ProtoMessage()
func (*GetUserMetadataRequest) ProtoReflect ¶
func (x *GetUserMetadataRequest) ProtoReflect() protoreflect.Message
func (*GetUserMetadataRequest) Reset ¶
func (x *GetUserMetadataRequest) Reset()
func (*GetUserMetadataRequest) String ¶
func (x *GetUserMetadataRequest) String() string
type GetUserMetadataResponse ¶
type GetUserMetadataResponse struct { // The requested metadata for the user. Metadata []*UserServiceMetadata `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*GetUserMetadataResponse) Descriptor
deprecated
func (*GetUserMetadataResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserMetadataResponse.ProtoReflect.Descriptor instead.
func (*GetUserMetadataResponse) GetMetadata ¶
func (x *GetUserMetadataResponse) GetMetadata() []*UserServiceMetadata
func (*GetUserMetadataResponse) ProtoMessage ¶
func (*GetUserMetadataResponse) ProtoMessage()
func (*GetUserMetadataResponse) ProtoReflect ¶
func (x *GetUserMetadataResponse) ProtoReflect() protoreflect.Message
func (*GetUserMetadataResponse) Reset ¶
func (x *GetUserMetadataResponse) Reset()
func (*GetUserMetadataResponse) String ¶
func (x *GetUserMetadataResponse) String() string
type GetUserRequest ¶
type GetUserRequest struct { // The user's external ID. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The user's verified email address. Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
Exactly one attribute can be set.
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetEmail ¶
func (x *GetUserRequest) GetEmail() string
func (*GetUserRequest) GetId ¶
func (x *GetUserRequest) GetId() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type GetUserResponse ¶
type GetUserResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetUser ¶
func (x *GetUserResponse) GetUser() *User
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
type GetUserRolesRequest ¶
type GetUserRolesRequest struct { // The user's external ID. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The service slug. Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
func (*GetUserRolesRequest) Descriptor
deprecated
func (*GetUserRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRolesRequest.ProtoReflect.Descriptor instead.
func (*GetUserRolesRequest) GetId ¶
func (x *GetUserRolesRequest) GetId() string
func (*GetUserRolesRequest) GetService ¶
func (x *GetUserRolesRequest) GetService() string
func (*GetUserRolesRequest) ProtoMessage ¶
func (*GetUserRolesRequest) ProtoMessage()
func (*GetUserRolesRequest) ProtoReflect ¶
func (x *GetUserRolesRequest) ProtoReflect() protoreflect.Message
func (*GetUserRolesRequest) Reset ¶
func (x *GetUserRolesRequest) Reset()
func (*GetUserRolesRequest) String ¶
func (x *GetUserRolesRequest) String() string
type GetUserRolesResponse ¶
type GetUserRolesResponse struct { // Deprecated: Marked as deprecated in clients/v1/clients.proto. Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` UserRoles []*Role `protobuf:"bytes,2,rep,name=user_roles,json=userRoles,proto3" json:"user_roles,omitempty"` // contains filtered or unexported fields }
func (*GetUserRolesResponse) Descriptor
deprecated
func (*GetUserRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRolesResponse.ProtoReflect.Descriptor instead.
func (*GetUserRolesResponse) GetRoles
deprecated
func (x *GetUserRolesResponse) GetRoles() []string
Deprecated: Marked as deprecated in clients/v1/clients.proto.
func (*GetUserRolesResponse) GetUserRoles ¶
func (x *GetUserRolesResponse) GetUserRoles() []*Role
func (*GetUserRolesResponse) ProtoMessage ¶
func (*GetUserRolesResponse) ProtoMessage()
func (*GetUserRolesResponse) ProtoReflect ¶
func (x *GetUserRolesResponse) ProtoReflect() protoreflect.Message
func (*GetUserRolesResponse) Reset ¶
func (x *GetUserRolesResponse) Reset()
func (*GetUserRolesResponse) String ¶
func (x *GetUserRolesResponse) String() string
type GetUsersRequest ¶
type GetUsersRequest struct { // The user's external IDs. Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*GetUsersRequest) Descriptor
deprecated
func (*GetUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersRequest.ProtoReflect.Descriptor instead.
func (*GetUsersRequest) GetIds ¶
func (x *GetUsersRequest) GetIds() []string
func (*GetUsersRequest) ProtoMessage ¶
func (*GetUsersRequest) ProtoMessage()
func (*GetUsersRequest) ProtoReflect ¶
func (x *GetUsersRequest) ProtoReflect() protoreflect.Message
func (*GetUsersRequest) Reset ¶
func (x *GetUsersRequest) Reset()
func (*GetUsersRequest) String ¶
func (x *GetUsersRequest) String() string
type GetUsersResponse ¶
type GetUsersResponse struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*GetUsersResponse) Descriptor
deprecated
func (*GetUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersResponse.ProtoReflect.Descriptor instead.
func (*GetUsersResponse) GetUsers ¶
func (x *GetUsersResponse) GetUsers() []*User
func (*GetUsersResponse) ProtoMessage ¶
func (*GetUsersResponse) ProtoMessage()
func (*GetUsersResponse) ProtoReflect ¶
func (x *GetUsersResponse) ProtoReflect() protoreflect.Message
func (*GetUsersResponse) Reset ¶
func (x *GetUsersResponse) Reset()
func (*GetUsersResponse) String ¶
func (x *GetUsersResponse) String() string
type IntrospectTokenRequest ¶
type IntrospectTokenRequest struct { // The access token to introspect. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*IntrospectTokenRequest) Descriptor
deprecated
func (*IntrospectTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use IntrospectTokenRequest.ProtoReflect.Descriptor instead.
func (*IntrospectTokenRequest) GetToken ¶
func (x *IntrospectTokenRequest) GetToken() string
func (*IntrospectTokenRequest) ProtoMessage ¶
func (*IntrospectTokenRequest) ProtoMessage()
func (*IntrospectTokenRequest) ProtoReflect ¶
func (x *IntrospectTokenRequest) ProtoReflect() protoreflect.Message
func (*IntrospectTokenRequest) Reset ¶
func (x *IntrospectTokenRequest) Reset()
func (*IntrospectTokenRequest) String ¶
func (x *IntrospectTokenRequest) String() string
type IntrospectTokenResponse ¶
type IntrospectTokenResponse struct { // Active indicates whether the token is currently active. The value is "true" // if the token has been issued by the SAMS instance, has not been revoked, and // has not expired. Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` // Scopes is the list of scopes granted by the token. Scopes []string `protobuf:"bytes,2,rep,name=scopes,proto3" json:"scopes,omitempty"` // ClientID is the identifier of the SAMS client that the token was issued to. ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // ExpiresAt indicates when the token expires. ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // contains filtered or unexported fields }
func (*IntrospectTokenResponse) Descriptor
deprecated
func (*IntrospectTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use IntrospectTokenResponse.ProtoReflect.Descriptor instead.
func (*IntrospectTokenResponse) GetActive ¶
func (x *IntrospectTokenResponse) GetActive() bool
func (*IntrospectTokenResponse) GetClientId ¶
func (x *IntrospectTokenResponse) GetClientId() string
func (*IntrospectTokenResponse) GetExpiresAt ¶
func (x *IntrospectTokenResponse) GetExpiresAt() *timestamppb.Timestamp
func (*IntrospectTokenResponse) GetScopes ¶
func (x *IntrospectTokenResponse) GetScopes() []string
func (*IntrospectTokenResponse) ProtoMessage ¶
func (*IntrospectTokenResponse) ProtoMessage()
func (*IntrospectTokenResponse) ProtoReflect ¶
func (x *IntrospectTokenResponse) ProtoReflect() protoreflect.Message
func (*IntrospectTokenResponse) Reset ¶
func (x *IntrospectTokenResponse) Reset()
func (*IntrospectTokenResponse) String ¶
func (x *IntrospectTokenResponse) String() string
type RegisterRoleResourcesRequest ¶
type RegisterRoleResourcesRequest struct { // Types that are assignable to Payload: // // *RegisterRoleResourcesRequest_Metadata // *RegisterRoleResourcesRequest_Resources_ Payload isRegisterRoleResourcesRequest_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
func (*RegisterRoleResourcesRequest) Descriptor
deprecated
func (*RegisterRoleResourcesRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRoleResourcesRequest.ProtoReflect.Descriptor instead.
func (*RegisterRoleResourcesRequest) GetMetadata ¶
func (x *RegisterRoleResourcesRequest) GetMetadata() *RegisterRoleResourcesRequestMetadata
func (*RegisterRoleResourcesRequest) GetPayload ¶
func (m *RegisterRoleResourcesRequest) GetPayload() isRegisterRoleResourcesRequest_Payload
func (*RegisterRoleResourcesRequest) GetResources ¶
func (x *RegisterRoleResourcesRequest) GetResources() *RegisterRoleResourcesRequest_Resources
func (*RegisterRoleResourcesRequest) ProtoMessage ¶
func (*RegisterRoleResourcesRequest) ProtoMessage()
func (*RegisterRoleResourcesRequest) ProtoReflect ¶
func (x *RegisterRoleResourcesRequest) ProtoReflect() protoreflect.Message
func (*RegisterRoleResourcesRequest) Reset ¶
func (x *RegisterRoleResourcesRequest) Reset()
func (*RegisterRoleResourcesRequest) String ¶
func (x *RegisterRoleResourcesRequest) String() string
type RegisterRoleResourcesRequestMetadata ¶
type RegisterRoleResourcesRequestMetadata struct { // Client-provided revision identifier. // Upon completing the streaming request, any `resource_type` resources with a different revision will be removed. Revision string `protobuf:"bytes,1,opt,name=revision,proto3" json:"revision,omitempty"` // The type of resources being registered. // Should be a valid resource type as defined in the `roles` package: // https://github.com/sourcegraph/sourcegraph-accounts-sdk-go/blob/main/roles/ ResourceType string `protobuf:"bytes,2,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` // contains filtered or unexported fields }
func (*RegisterRoleResourcesRequestMetadata) Descriptor
deprecated
func (*RegisterRoleResourcesRequestMetadata) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRoleResourcesRequestMetadata.ProtoReflect.Descriptor instead.
func (*RegisterRoleResourcesRequestMetadata) GetResourceType ¶
func (x *RegisterRoleResourcesRequestMetadata) GetResourceType() string
func (*RegisterRoleResourcesRequestMetadata) GetRevision ¶
func (x *RegisterRoleResourcesRequestMetadata) GetRevision() string
func (*RegisterRoleResourcesRequestMetadata) ProtoMessage ¶
func (*RegisterRoleResourcesRequestMetadata) ProtoMessage()
func (*RegisterRoleResourcesRequestMetadata) ProtoReflect ¶
func (x *RegisterRoleResourcesRequestMetadata) ProtoReflect() protoreflect.Message
func (*RegisterRoleResourcesRequestMetadata) Reset ¶
func (x *RegisterRoleResourcesRequestMetadata) Reset()
func (*RegisterRoleResourcesRequestMetadata) String ¶
func (x *RegisterRoleResourcesRequestMetadata) String() string
type RegisterRoleResourcesRequest_Metadata ¶
type RegisterRoleResourcesRequest_Metadata struct { // Metadata about the resources being registered. // It is expected that a metadata payload is sent only once per request and before any resources are sent. Metadata *RegisterRoleResourcesRequestMetadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"` }
type RegisterRoleResourcesRequest_Resources ¶
type RegisterRoleResourcesRequest_Resources struct { Resources []*RoleResource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` // contains filtered or unexported fields }
func (*RegisterRoleResourcesRequest_Resources) Descriptor
deprecated
func (*RegisterRoleResourcesRequest_Resources) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRoleResourcesRequest_Resources.ProtoReflect.Descriptor instead.
func (*RegisterRoleResourcesRequest_Resources) GetResources ¶
func (x *RegisterRoleResourcesRequest_Resources) GetResources() []*RoleResource
func (*RegisterRoleResourcesRequest_Resources) ProtoMessage ¶
func (*RegisterRoleResourcesRequest_Resources) ProtoMessage()
func (*RegisterRoleResourcesRequest_Resources) ProtoReflect ¶
func (x *RegisterRoleResourcesRequest_Resources) ProtoReflect() protoreflect.Message
func (*RegisterRoleResourcesRequest_Resources) Reset ¶
func (x *RegisterRoleResourcesRequest_Resources) Reset()
func (*RegisterRoleResourcesRequest_Resources) String ¶
func (x *RegisterRoleResourcesRequest_Resources) String() string
type RegisterRoleResourcesRequest_Resources_ ¶
type RegisterRoleResourcesRequest_Resources_ struct { // Batch of resources to register in a single request. Clients should aim to // batch a large number of resources into a series of smaller requests in the // RegisterRoleResources stream. Resources *RegisterRoleResourcesRequest_Resources `protobuf:"bytes,2,opt,name=resources,proto3,oneof"` }
type RegisterRoleResourcesResponse ¶
type RegisterRoleResourcesResponse struct { ResourceCount uint64 `protobuf:"varint,1,opt,name=resource_count,json=resourceCount,proto3" json:"resource_count,omitempty"` // contains filtered or unexported fields }
func (*RegisterRoleResourcesResponse) Descriptor
deprecated
func (*RegisterRoleResourcesResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRoleResourcesResponse.ProtoReflect.Descriptor instead.
func (*RegisterRoleResourcesResponse) GetResourceCount ¶
func (x *RegisterRoleResourcesResponse) GetResourceCount() uint64
func (*RegisterRoleResourcesResponse) ProtoMessage ¶
func (*RegisterRoleResourcesResponse) ProtoMessage()
func (*RegisterRoleResourcesResponse) ProtoReflect ¶
func (x *RegisterRoleResourcesResponse) ProtoReflect() protoreflect.Message
func (*RegisterRoleResourcesResponse) Reset ¶
func (x *RegisterRoleResourcesResponse) Reset()
func (*RegisterRoleResourcesResponse) String ¶
func (x *RegisterRoleResourcesResponse) String() string
type Role ¶
type Role struct { // The fully qualified role name e.g. `dotcom::site_admin` RoleId string `protobuf:"bytes,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` // The service the role is scoped to. Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` // If the role applies to a resource this is the ID of the resource. ResourceId *string `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof" json:"resource_id,omitempty"` // If the role applies to a resource the is the ResourceType of the resource. ResourceType *string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3,oneof" json:"resource_type,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) GetResourceId ¶
func (*Role) GetResourceType ¶
func (*Role) GetService ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type RoleResource ¶
type RoleResource struct { // A unique identifier for the resource ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // A human readable name for the resource DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // contains filtered or unexported fields }
func (*RoleResource) Descriptor
deprecated
func (*RoleResource) Descriptor() ([]byte, []int)
Deprecated: Use RoleResource.ProtoReflect.Descriptor instead.
func (*RoleResource) GetDisplayName ¶
func (x *RoleResource) GetDisplayName() string
func (*RoleResource) GetResourceId ¶
func (x *RoleResource) GetResourceId() string
func (*RoleResource) ProtoMessage ¶
func (*RoleResource) ProtoMessage()
func (*RoleResource) ProtoReflect ¶
func (x *RoleResource) ProtoReflect() protoreflect.Message
func (*RoleResource) Reset ¶
func (x *RoleResource) Reset()
func (*RoleResource) String ¶
func (x *RoleResource) String() string
type Session ¶
type Session struct { // The session's ID. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // When not empty, the authenticated user. User *User `protobuf:"bytes,2,opt,name=user,proto3,oneof" json:"user,omitempty"` // contains filtered or unexported fields }
func (*Session) Descriptor
deprecated
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
type SignOutSessionRequest ¶
type SignOutSessionRequest struct { // The session's ID. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The user's external ID. UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*SignOutSessionRequest) Descriptor
deprecated
func (*SignOutSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignOutSessionRequest.ProtoReflect.Descriptor instead.
func (*SignOutSessionRequest) GetId ¶
func (x *SignOutSessionRequest) GetId() string
func (*SignOutSessionRequest) GetUserId ¶
func (x *SignOutSessionRequest) GetUserId() string
func (*SignOutSessionRequest) ProtoMessage ¶
func (*SignOutSessionRequest) ProtoMessage()
func (*SignOutSessionRequest) ProtoReflect ¶
func (x *SignOutSessionRequest) ProtoReflect() protoreflect.Message
func (*SignOutSessionRequest) Reset ¶
func (x *SignOutSessionRequest) Reset()
func (*SignOutSessionRequest) String ¶
func (x *SignOutSessionRequest) String() string
type SignOutSessionResponse ¶
type SignOutSessionResponse struct {
// contains filtered or unexported fields
}
func (*SignOutSessionResponse) Descriptor
deprecated
func (*SignOutSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignOutSessionResponse.ProtoReflect.Descriptor instead.
func (*SignOutSessionResponse) ProtoMessage ¶
func (*SignOutSessionResponse) ProtoMessage()
func (*SignOutSessionResponse) ProtoReflect ¶
func (x *SignOutSessionResponse) ProtoReflect() protoreflect.Message
func (*SignOutSessionResponse) Reset ¶
func (x *SignOutSessionResponse) Reset()
func (*SignOutSessionResponse) String ¶
func (x *SignOutSessionResponse) String() string
type UpdateUserMetadataRequest ¶
type UpdateUserMetadataRequest struct { // The following fields are used to identify the workspace to update: // - user_id // - namespace // Both user_id and namespace are required to apply an update. // // An update requires the scope for the requested namespace(s); for example // namespaces: ['dotcom'] requires 'sams::user.metadata.dotcom::write' or the wildcard 'sams::user.metadata::write'. // // The wildcard '*' namespace is not allowed in an update. Metadata *UserServiceMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserMetadataRequest) Descriptor
deprecated
func (*UpdateUserMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserMetadataRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserMetadataRequest) GetMetadata ¶
func (x *UpdateUserMetadataRequest) GetMetadata() *UserServiceMetadata
func (*UpdateUserMetadataRequest) ProtoMessage ¶
func (*UpdateUserMetadataRequest) ProtoMessage()
func (*UpdateUserMetadataRequest) ProtoReflect ¶
func (x *UpdateUserMetadataRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserMetadataRequest) Reset ¶
func (x *UpdateUserMetadataRequest) Reset()
func (*UpdateUserMetadataRequest) String ¶
func (x *UpdateUserMetadataRequest) String() string
type UpdateUserMetadataResponse ¶
type UpdateUserMetadataResponse struct { // The updated user metadata. Metadata *UserServiceMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserMetadataResponse) Descriptor
deprecated
func (*UpdateUserMetadataResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserMetadataResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserMetadataResponse) GetMetadata ¶
func (x *UpdateUserMetadataResponse) GetMetadata() *UserServiceMetadata
func (*UpdateUserMetadataResponse) ProtoMessage ¶
func (*UpdateUserMetadataResponse) ProtoMessage()
func (*UpdateUserMetadataResponse) ProtoReflect ¶
func (x *UpdateUserMetadataResponse) ProtoReflect() protoreflect.Message
func (*UpdateUserMetadataResponse) Reset ¶
func (x *UpdateUserMetadataResponse) Reset()
func (*UpdateUserMetadataResponse) String ¶
func (x *UpdateUserMetadataResponse) String() string
type User ¶
type User struct { // The external ID. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The display name. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The primary email address. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // Whether the email address has been verified. EmailVerified bool `protobuf:"varint,4,opt,name=email_verified,json=emailVerified,proto3" json:"email_verified,omitempty"` // The profile avatar URL. AvatarUrl string `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // The time the user was created. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // The time the user information was last updated. UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAvatarUrl ¶
func (*User) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
func (*User) GetEmailVerified ¶
func (*User) GetUpdatedAt ¶
func (x *User) GetUpdatedAt() *timestamppb.Timestamp
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceMetadata ¶
type UserServiceMetadata struct { // The user's external ID. // // Behaviour: IDENTIFIER UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The metadata namespace. // // Behaviour: IDENTIFIER Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // Metadata associated with this user for the specified namespace. Metadata *structpb.Struct `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
The metadata associated with a user for a specific namespace.
func (*UserServiceMetadata) Descriptor
deprecated
func (*UserServiceMetadata) Descriptor() ([]byte, []int)
Deprecated: Use UserServiceMetadata.ProtoReflect.Descriptor instead.
func (*UserServiceMetadata) GetMetadata ¶
func (x *UserServiceMetadata) GetMetadata() *structpb.Struct
func (*UserServiceMetadata) GetNamespace ¶
func (x *UserServiceMetadata) GetNamespace() string
func (*UserServiceMetadata) GetUserId ¶
func (x *UserServiceMetadata) GetUserId() string
func (*UserServiceMetadata) ProtoMessage ¶
func (*UserServiceMetadata) ProtoMessage()
func (*UserServiceMetadata) ProtoReflect ¶
func (x *UserServiceMetadata) ProtoReflect() protoreflect.Message
func (*UserServiceMetadata) Reset ¶
func (x *UserServiceMetadata) Reset()
func (*UserServiceMetadata) String ¶
func (x *UserServiceMetadata) String() string