var File_google_cloud_oslogin_v1alpha_oslogin_proto protoreflect.FileDescriptor
func RegisterOsLoginServiceServer(s *grpc.Server, srv OsLoginServiceServer)
A request message for deleting a POSIX account entry.
type DeletePosixAccountRequest struct { // A reference to the POSIX account to update. POSIX accounts are identified // by the project ID they are associated with. A reference to the POSIX // account is in format `users/{user}/projects/{project}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeletePosixAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePosixAccountRequest.ProtoReflect.Descriptor instead.
func (x *DeletePosixAccountRequest) GetName() string
func (*DeletePosixAccountRequest) ProtoMessage()
func (x *DeletePosixAccountRequest) ProtoReflect() protoreflect.Message
func (x *DeletePosixAccountRequest) Reset()
func (x *DeletePosixAccountRequest) String() string
A request message for deleting an SSH public key.
type DeleteSshPublicKeyRequest struct { // The fingerprint of the public key to update. Public keys are identified by // their SHA-256 fingerprint. The fingerprint of the public key is in format // `users/{user}/sshPublicKeys/{fingerprint}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteSshPublicKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSshPublicKeyRequest.ProtoReflect.Descriptor instead.
func (x *DeleteSshPublicKeyRequest) GetName() string
func (*DeleteSshPublicKeyRequest) ProtoMessage()
func (x *DeleteSshPublicKeyRequest) ProtoReflect() protoreflect.Message
func (x *DeleteSshPublicKeyRequest) Reset()
func (x *DeleteSshPublicKeyRequest) String() string
A request message for retrieving the login profile information for a user.
type GetLoginProfileRequest struct { // The unique ID for the user in format `users/{user}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetLoginProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLoginProfileRequest.ProtoReflect.Descriptor instead.
func (x *GetLoginProfileRequest) GetName() string
func (*GetLoginProfileRequest) ProtoMessage()
func (x *GetLoginProfileRequest) ProtoReflect() protoreflect.Message
func (x *GetLoginProfileRequest) Reset()
func (x *GetLoginProfileRequest) String() string
A request message for retrieving an SSH public key.
type GetSshPublicKeyRequest struct { // The fingerprint of the public key to retrieve. Public keys are identified // by their SHA-256 fingerprint. The fingerprint of the public key is in // format `users/{user}/sshPublicKeys/{fingerprint}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetSshPublicKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSshPublicKeyRequest.ProtoReflect.Descriptor instead.
func (x *GetSshPublicKeyRequest) GetName() string
func (*GetSshPublicKeyRequest) ProtoMessage()
func (x *GetSshPublicKeyRequest) ProtoReflect() protoreflect.Message
func (x *GetSshPublicKeyRequest) Reset()
func (x *GetSshPublicKeyRequest) String() string
A request message for importing an SSH public key.
type ImportSshPublicKeyRequest struct { // The unique ID for the user in format `users/{user}`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The SSH public key and expiration time. SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"` // The project ID of the Google Cloud Platform project. ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // contains filtered or unexported fields }
func (*ImportSshPublicKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImportSshPublicKeyRequest.ProtoReflect.Descriptor instead.
func (x *ImportSshPublicKeyRequest) GetParent() string
func (x *ImportSshPublicKeyRequest) GetProjectId() string
func (x *ImportSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey
func (*ImportSshPublicKeyRequest) ProtoMessage()
func (x *ImportSshPublicKeyRequest) ProtoReflect() protoreflect.Message
func (x *ImportSshPublicKeyRequest) Reset()
func (x *ImportSshPublicKeyRequest) String() string
A response message for importing an SSH public key.
type ImportSshPublicKeyResponse struct { // The login profile information for the user. LoginProfile *LoginProfile `protobuf:"bytes,1,opt,name=login_profile,json=loginProfile,proto3" json:"login_profile,omitempty"` // contains filtered or unexported fields }
func (*ImportSshPublicKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use ImportSshPublicKeyResponse.ProtoReflect.Descriptor instead.
func (x *ImportSshPublicKeyResponse) GetLoginProfile() *LoginProfile
func (*ImportSshPublicKeyResponse) ProtoMessage()
func (x *ImportSshPublicKeyResponse) ProtoReflect() protoreflect.Message
func (x *ImportSshPublicKeyResponse) Reset()
func (x *ImportSshPublicKeyResponse) String() string
The user profile information used for logging in to a virtual machine on Google Compute Engine.
type LoginProfile struct { // A unique user ID for identifying the user. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The list of POSIX accounts associated with the Directory API user. PosixAccounts []*common.PosixAccount `protobuf:"bytes,2,rep,name=posix_accounts,json=posixAccounts,proto3" json:"posix_accounts,omitempty"` // A map from SSH public key fingerprint to the associated key object. SshPublicKeys map[string]*common.SshPublicKey `protobuf:"bytes,3,rep,name=ssh_public_keys,json=sshPublicKeys,proto3" json:"ssh_public_keys,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Indicates if the user is suspended. Suspended bool `protobuf:"varint,4,opt,name=suspended,proto3" json:"suspended,omitempty"` // contains filtered or unexported fields }
func (*LoginProfile) Descriptor() ([]byte, []int)
Deprecated: Use LoginProfile.ProtoReflect.Descriptor instead.
func (x *LoginProfile) GetName() string
func (x *LoginProfile) GetPosixAccounts() []*common.PosixAccount
func (x *LoginProfile) GetSshPublicKeys() map[string]*common.SshPublicKey
func (x *LoginProfile) GetSuspended() bool
func (*LoginProfile) ProtoMessage()
func (x *LoginProfile) ProtoReflect() protoreflect.Message
func (x *LoginProfile) Reset()
func (x *LoginProfile) String() string
OsLoginServiceClient is the client API for OsLoginService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type OsLoginServiceClient interface { // Deletes a POSIX account. DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Deletes an SSH public key. DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Retrieves the profile information used for logging in to a virtual machine // on Google Compute Engine. GetLoginProfile(ctx context.Context, in *GetLoginProfileRequest, opts ...grpc.CallOption) (*LoginProfile, error) // Retrieves an SSH public key. GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error) // Adds an SSH public key and returns the profile information. Default POSIX // account information is set when no username and UID exist as part of the // login profile. ImportSshPublicKey(ctx context.Context, in *ImportSshPublicKeyRequest, opts ...grpc.CallOption) (*ImportSshPublicKeyResponse, error) // Updates an SSH public key and returns the profile information. This method // supports patch semantics. UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error) }
func NewOsLoginServiceClient(cc grpc.ClientConnInterface) OsLoginServiceClient
OsLoginServiceServer is the server API for OsLoginService service.
type OsLoginServiceServer interface { // Deletes a POSIX account. DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*emptypb.Empty, error) // Deletes an SSH public key. DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*emptypb.Empty, error) // Retrieves the profile information used for logging in to a virtual machine // on Google Compute Engine. GetLoginProfile(context.Context, *GetLoginProfileRequest) (*LoginProfile, error) // Retrieves an SSH public key. GetSshPublicKey(context.Context, *GetSshPublicKeyRequest) (*common.SshPublicKey, error) // Adds an SSH public key and returns the profile information. Default POSIX // account information is set when no username and UID exist as part of the // login profile. ImportSshPublicKey(context.Context, *ImportSshPublicKeyRequest) (*ImportSshPublicKeyResponse, error) // Updates an SSH public key and returns the profile information. This method // supports patch semantics. UpdateSshPublicKey(context.Context, *UpdateSshPublicKeyRequest) (*common.SshPublicKey, error) }
UnimplementedOsLoginServiceServer can be embedded to have forward compatible implementations.
type UnimplementedOsLoginServiceServer struct { }
func (*UnimplementedOsLoginServiceServer) DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*emptypb.Empty, error)
func (*UnimplementedOsLoginServiceServer) DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*emptypb.Empty, error)
func (*UnimplementedOsLoginServiceServer) GetLoginProfile(context.Context, *GetLoginProfileRequest) (*LoginProfile, error)
func (*UnimplementedOsLoginServiceServer) GetSshPublicKey(context.Context, *GetSshPublicKeyRequest) (*common.SshPublicKey, error)
func (*UnimplementedOsLoginServiceServer) ImportSshPublicKey(context.Context, *ImportSshPublicKeyRequest) (*ImportSshPublicKeyResponse, error)
func (*UnimplementedOsLoginServiceServer) UpdateSshPublicKey(context.Context, *UpdateSshPublicKeyRequest) (*common.SshPublicKey, error)
A request message for updating an SSH public key.
type UpdateSshPublicKeyRequest struct { // The fingerprint of the public key to update. Public keys are identified by // their SHA-256 fingerprint. The fingerprint of the public key is in format // `users/{user}/sshPublicKeys/{fingerprint}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The SSH public key and expiration time. SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"` // Mask to control which fields get updated. Updates all if not present. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateSshPublicKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSshPublicKeyRequest.ProtoReflect.Descriptor instead.
func (x *UpdateSshPublicKeyRequest) GetName() string
func (x *UpdateSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey
func (x *UpdateSshPublicKeyRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateSshPublicKeyRequest) ProtoMessage()
func (x *UpdateSshPublicKeyRequest) ProtoReflect() protoreflect.Message
func (x *UpdateSshPublicKeyRequest) Reset()
func (x *UpdateSshPublicKeyRequest) String() string