clientsv1

package
v0.0.0-...-67ba7d2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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 (*RegisterRoleResourcesRequest) GetPayload

func (m *RegisterRoleResourcesRequest) GetPayload() isRegisterRoleResourcesRequest_Payload

func (*RegisterRoleResourcesRequest) GetResources

func (*RegisterRoleResourcesRequest) ProtoMessage

func (*RegisterRoleResourcesRequest) ProtoMessage()

func (*RegisterRoleResourcesRequest) ProtoReflect

func (*RegisterRoleResourcesRequest) Reset

func (x *RegisterRoleResourcesRequest) Reset()

func (*RegisterRoleResourcesRequest) 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 (*RegisterRoleResourcesRequestMetadata) ProtoMessage

func (*RegisterRoleResourcesRequestMetadata) ProtoMessage()

func (*RegisterRoleResourcesRequestMetadata) ProtoReflect

func (*RegisterRoleResourcesRequestMetadata) Reset

func (*RegisterRoleResourcesRequestMetadata) 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 (*RegisterRoleResourcesRequest_Resources) ProtoMessage

func (*RegisterRoleResourcesRequest_Resources) ProtoReflect

func (*RegisterRoleResourcesRequest_Resources) Reset

func (*RegisterRoleResourcesRequest_Resources) 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 (*RegisterRoleResourcesResponse) Reset

func (x *RegisterRoleResourcesResponse) Reset()

func (*RegisterRoleResourcesResponse) 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) Descriptor() ([]byte, []int)

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetResourceId

func (x *Role) GetResourceId() string

func (*Role) GetResourceType

func (x *Role) GetResourceType() string

func (*Role) GetRoleId

func (x *Role) GetRoleId() string

func (*Role) GetService

func (x *Role) GetService() string

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

func (x *Role) ProtoReflect() protoreflect.Message

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetId

func (x *Session) GetId() string

func (*Session) GetUser

func (x *Session) GetUser() *User

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

func (x *Session) ProtoReflect() protoreflect.Message

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

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 (*UpdateUserMetadataRequest) ProtoMessage

func (*UpdateUserMetadataRequest) ProtoMessage()

func (*UpdateUserMetadataRequest) ProtoReflect

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 (*UpdateUserMetadataResponse) ProtoMessage

func (*UpdateUserMetadataResponse) ProtoMessage()

func (*UpdateUserMetadataResponse) ProtoReflect

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatarUrl

func (x *User) GetAvatarUrl() string

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetEmailVerified

func (x *User) GetEmailVerified() bool

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() *timestamppb.Timestamp

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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