/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { FieldMask } from '../../../../google/protobuf/field_mask'; import { Operation } from '../../../../yandex/cloud/operation/operation'; export declare const protobufPackage = "yandex.cloud.organizationmanager.v1"; export interface GetOsLoginSettingsRequest { organizationId: string; } export interface OsLoginSettings { userSshKeySettings?: UserSshKeySettings; sshCertificateSettings?: SshCertificateSettings; } export interface UserSshKeySettings { enabled: boolean; allowManageOwnKeys: boolean; } export interface SshCertificateSettings { enabled: boolean; } export interface UpdateOsLoginSettingsRequest { organizationId: string; userSshKeySettings?: UpdateOsLoginSettingsRequest_UserSshKeySettings; sshCertificateSettings?: UpdateOsLoginSettingsRequest_SshCertificateSettings; updateMask?: FieldMask; } export interface UpdateOsLoginSettingsRequest_UserSshKeySettings { enabled: boolean; allowManageOwnKeys: boolean; } export interface UpdateOsLoginSettingsRequest_SshCertificateSettings { enabled: boolean; } export interface SetDefaultOsLoginProfileRequest { osLoginProfileId: string; } export interface GetOsLoginProfileRequest { osLoginProfileId: string; } export interface ListOsLoginProfilesRequest { organizationId: string; pageSize: number; pageToken: string; /** * A filter expression that filters profiles listed in the response. * The expression must specify: * 1. The field name. Currently you can use filtering by subject_id, uid or login. * 2. An `=` operator. * 3. The value in double quotes (`"`). * E.g. login="example-login" */ filter: string; } export interface ListOsLoginProfilesResponse { profiles: OsLoginProfile[]; nextPageToken: string; } export interface OsLoginProfile { id: string; organizationId: string; subjectId: string; login: string; uid: number; isDefault: boolean; homeDirectory: string; shell: string; } export interface UpdateOsLoginProfileRequest { osLoginProfileId: string; /** must not contain . or end in ~ */ login: string; /** 1000 - 2^63 - 1 */ uid: number; homeDirectory: string; shell: string; updateMask?: FieldMask; } export interface DeleteOsLoginProfileRequest { id: string; } export interface CreateOsLoginProfileRequest { organizationId: string; subjectId: string; /** must not contain . or end in ~ */ login: string; /** 1000 - 2^63 - 1 */ uid: number; homeDirectory: string; shell: string; } export interface UpdateOsLoginProfileMetadata { osLoginProfileId: string; } export interface DeleteOsLoginProfileMetadata { osLoginProfileId: string; } export interface CreateOsLoginProfileMetadata { osLoginProfileId: string; organizationId: string; subjectId: string; } export interface UpdateOsLoginSettingsMetadata { organizationId: string; } export interface SetDefaultOsLoginProfileMetadata { previousDefaultProfileId: string; currentDefaultProfileId: string; } export declare const GetOsLoginSettingsRequest: { encode(message: GetOsLoginSettingsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOsLoginSettingsRequest; fromJSON(object: any): GetOsLoginSettingsRequest; toJSON(message: GetOsLoginSettingsRequest): unknown; fromPartial, never>>(object: I): GetOsLoginSettingsRequest; }; export declare const OsLoginSettings: { encode(message: OsLoginSettings, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OsLoginSettings; fromJSON(object: any): OsLoginSettings; toJSON(message: OsLoginSettings): unknown; fromPartial, never>) | undefined; sshCertificateSettings?: ({ enabled?: boolean | undefined; } & { enabled?: boolean | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): OsLoginSettings; }; export declare const UserSshKeySettings: { encode(message: UserSshKeySettings, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UserSshKeySettings; fromJSON(object: any): UserSshKeySettings; toJSON(message: UserSshKeySettings): unknown; fromPartial, never>>(object: I): UserSshKeySettings; }; export declare const SshCertificateSettings: { encode(message: SshCertificateSettings, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SshCertificateSettings; fromJSON(object: any): SshCertificateSettings; toJSON(message: SshCertificateSettings): unknown; fromPartial, never>>(object: I): SshCertificateSettings; }; export declare const UpdateOsLoginSettingsRequest: { encode(message: UpdateOsLoginSettingsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateOsLoginSettingsRequest; fromJSON(object: any): UpdateOsLoginSettingsRequest; toJSON(message: UpdateOsLoginSettingsRequest): unknown; fromPartial, never>) | undefined; sshCertificateSettings?: ({ enabled?: boolean | undefined; } & { enabled?: boolean | undefined; } & Record, never>) | undefined; updateMask?: ({ paths?: string[] | undefined; } & { paths?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): UpdateOsLoginSettingsRequest; }; export declare const UpdateOsLoginSettingsRequest_UserSshKeySettings: { encode(message: UpdateOsLoginSettingsRequest_UserSshKeySettings, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateOsLoginSettingsRequest_UserSshKeySettings; fromJSON(object: any): UpdateOsLoginSettingsRequest_UserSshKeySettings; toJSON(message: UpdateOsLoginSettingsRequest_UserSshKeySettings): unknown; fromPartial, never>>(object: I): UpdateOsLoginSettingsRequest_UserSshKeySettings; }; export declare const UpdateOsLoginSettingsRequest_SshCertificateSettings: { encode(message: UpdateOsLoginSettingsRequest_SshCertificateSettings, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateOsLoginSettingsRequest_SshCertificateSettings; fromJSON(object: any): UpdateOsLoginSettingsRequest_SshCertificateSettings; toJSON(message: UpdateOsLoginSettingsRequest_SshCertificateSettings): unknown; fromPartial, never>>(object: I): UpdateOsLoginSettingsRequest_SshCertificateSettings; }; export declare const SetDefaultOsLoginProfileRequest: { encode(message: SetDefaultOsLoginProfileRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SetDefaultOsLoginProfileRequest; fromJSON(object: any): SetDefaultOsLoginProfileRequest; toJSON(message: SetDefaultOsLoginProfileRequest): unknown; fromPartial, never>>(object: I): SetDefaultOsLoginProfileRequest; }; export declare const GetOsLoginProfileRequest: { encode(message: GetOsLoginProfileRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOsLoginProfileRequest; fromJSON(object: any): GetOsLoginProfileRequest; toJSON(message: GetOsLoginProfileRequest): unknown; fromPartial, never>>(object: I): GetOsLoginProfileRequest; }; export declare const ListOsLoginProfilesRequest: { encode(message: ListOsLoginProfilesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListOsLoginProfilesRequest; fromJSON(object: any): ListOsLoginProfilesRequest; toJSON(message: ListOsLoginProfilesRequest): unknown; fromPartial, never>>(object: I): ListOsLoginProfilesRequest; }; export declare const ListOsLoginProfilesResponse: { encode(message: ListOsLoginProfilesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListOsLoginProfilesResponse; fromJSON(object: any): ListOsLoginProfilesResponse; toJSON(message: ListOsLoginProfilesResponse): unknown; fromPartial, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListOsLoginProfilesResponse; }; export declare const OsLoginProfile: { encode(message: OsLoginProfile, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OsLoginProfile; fromJSON(object: any): OsLoginProfile; toJSON(message: OsLoginProfile): unknown; fromPartial, never>>(object: I): OsLoginProfile; }; export declare const UpdateOsLoginProfileRequest: { encode(message: UpdateOsLoginProfileRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateOsLoginProfileRequest; fromJSON(object: any): UpdateOsLoginProfileRequest; toJSON(message: UpdateOsLoginProfileRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): UpdateOsLoginProfileRequest; }; export declare const DeleteOsLoginProfileRequest: { encode(message: DeleteOsLoginProfileRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteOsLoginProfileRequest; fromJSON(object: any): DeleteOsLoginProfileRequest; toJSON(message: DeleteOsLoginProfileRequest): unknown; fromPartial, never>>(object: I): DeleteOsLoginProfileRequest; }; export declare const CreateOsLoginProfileRequest: { encode(message: CreateOsLoginProfileRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateOsLoginProfileRequest; fromJSON(object: any): CreateOsLoginProfileRequest; toJSON(message: CreateOsLoginProfileRequest): unknown; fromPartial, never>>(object: I): CreateOsLoginProfileRequest; }; export declare const UpdateOsLoginProfileMetadata: { encode(message: UpdateOsLoginProfileMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateOsLoginProfileMetadata; fromJSON(object: any): UpdateOsLoginProfileMetadata; toJSON(message: UpdateOsLoginProfileMetadata): unknown; fromPartial, never>>(object: I): UpdateOsLoginProfileMetadata; }; export declare const DeleteOsLoginProfileMetadata: { encode(message: DeleteOsLoginProfileMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteOsLoginProfileMetadata; fromJSON(object: any): DeleteOsLoginProfileMetadata; toJSON(message: DeleteOsLoginProfileMetadata): unknown; fromPartial, never>>(object: I): DeleteOsLoginProfileMetadata; }; export declare const CreateOsLoginProfileMetadata: { encode(message: CreateOsLoginProfileMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateOsLoginProfileMetadata; fromJSON(object: any): CreateOsLoginProfileMetadata; toJSON(message: CreateOsLoginProfileMetadata): unknown; fromPartial, never>>(object: I): CreateOsLoginProfileMetadata; }; export declare const UpdateOsLoginSettingsMetadata: { encode(message: UpdateOsLoginSettingsMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateOsLoginSettingsMetadata; fromJSON(object: any): UpdateOsLoginSettingsMetadata; toJSON(message: UpdateOsLoginSettingsMetadata): unknown; fromPartial, never>>(object: I): UpdateOsLoginSettingsMetadata; }; export declare const SetDefaultOsLoginProfileMetadata: { encode(message: SetDefaultOsLoginProfileMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SetDefaultOsLoginProfileMetadata; fromJSON(object: any): SetDefaultOsLoginProfileMetadata; toJSON(message: SetDefaultOsLoginProfileMetadata): unknown; fromPartial, never>>(object: I): SetDefaultOsLoginProfileMetadata; }; export declare const OsLoginServiceService: { /** OsLogin settings */ readonly getSettings: { readonly path: "/yandex.cloud.organizationmanager.v1.OsLoginService/GetSettings"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetOsLoginSettingsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetOsLoginSettingsRequest; readonly responseSerialize: (value: OsLoginSettings) => Buffer; readonly responseDeserialize: (value: Buffer) => OsLoginSettings; }; readonly updateSettings: { readonly path: "/yandex.cloud.organizationmanager.v1.OsLoginService/UpdateSettings"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateOsLoginSettingsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateOsLoginSettingsRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** OsLogin Profiles */ readonly getProfile: { readonly path: "/yandex.cloud.organizationmanager.v1.OsLoginService/GetProfile"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetOsLoginProfileRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetOsLoginProfileRequest; readonly responseSerialize: (value: OsLoginProfile) => Buffer; readonly responseDeserialize: (value: Buffer) => OsLoginProfile; }; readonly listProfiles: { readonly path: "/yandex.cloud.organizationmanager.v1.OsLoginService/ListProfiles"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListOsLoginProfilesRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListOsLoginProfilesRequest; readonly responseSerialize: (value: ListOsLoginProfilesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListOsLoginProfilesResponse; }; readonly createProfile: { readonly path: "/yandex.cloud.organizationmanager.v1.OsLoginService/CreateProfile"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateOsLoginProfileRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreateOsLoginProfileRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly updateProfile: { readonly path: "/yandex.cloud.organizationmanager.v1.OsLoginService/UpdateProfile"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateOsLoginProfileRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateOsLoginProfileRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Sets a profile as a default for the subject assigned to this profile */ readonly setDefaultProfile: { readonly path: "/yandex.cloud.organizationmanager.v1.OsLoginService/SetDefaultProfile"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: SetDefaultOsLoginProfileRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => SetDefaultOsLoginProfileRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly deleteProfile: { readonly path: "/yandex.cloud.organizationmanager.v1.OsLoginService/DeleteProfile"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteOsLoginProfileRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteOsLoginProfileRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; export interface OsLoginServiceServer extends UntypedServiceImplementation { /** OsLogin settings */ getSettings: handleUnaryCall; updateSettings: handleUnaryCall; /** OsLogin Profiles */ getProfile: handleUnaryCall; listProfiles: handleUnaryCall; createProfile: handleUnaryCall; updateProfile: handleUnaryCall; /** Sets a profile as a default for the subject assigned to this profile */ setDefaultProfile: handleUnaryCall; deleteProfile: handleUnaryCall; } export interface OsLoginServiceClient extends Client { /** OsLogin settings */ getSettings(request: GetOsLoginSettingsRequest, callback: (error: ServiceError | null, response: OsLoginSettings) => void): ClientUnaryCall; getSettings(request: GetOsLoginSettingsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: OsLoginSettings) => void): ClientUnaryCall; getSettings(request: GetOsLoginSettingsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: OsLoginSettings) => void): ClientUnaryCall; updateSettings(request: UpdateOsLoginSettingsRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; updateSettings(request: UpdateOsLoginSettingsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; updateSettings(request: UpdateOsLoginSettingsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** OsLogin Profiles */ getProfile(request: GetOsLoginProfileRequest, callback: (error: ServiceError | null, response: OsLoginProfile) => void): ClientUnaryCall; getProfile(request: GetOsLoginProfileRequest, metadata: Metadata, callback: (error: ServiceError | null, response: OsLoginProfile) => void): ClientUnaryCall; getProfile(request: GetOsLoginProfileRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: OsLoginProfile) => void): ClientUnaryCall; listProfiles(request: ListOsLoginProfilesRequest, callback: (error: ServiceError | null, response: ListOsLoginProfilesResponse) => void): ClientUnaryCall; listProfiles(request: ListOsLoginProfilesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListOsLoginProfilesResponse) => void): ClientUnaryCall; listProfiles(request: ListOsLoginProfilesRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListOsLoginProfilesResponse) => void): ClientUnaryCall; createProfile(request: CreateOsLoginProfileRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; createProfile(request: CreateOsLoginProfileRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; createProfile(request: CreateOsLoginProfileRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; updateProfile(request: UpdateOsLoginProfileRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; updateProfile(request: UpdateOsLoginProfileRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; updateProfile(request: UpdateOsLoginProfileRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Sets a profile as a default for the subject assigned to this profile */ setDefaultProfile(request: SetDefaultOsLoginProfileRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; setDefaultProfile(request: SetDefaultOsLoginProfileRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; setDefaultProfile(request: SetDefaultOsLoginProfileRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; deleteProfile(request: DeleteOsLoginProfileRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; deleteProfile(request: DeleteOsLoginProfileRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; deleteProfile(request: DeleteOsLoginProfileRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; } export declare const OsLoginServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): OsLoginServiceClient; service: typeof OsLoginServiceService; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};