/// 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 { Certificate } from '../../../../../yandex/cloud/organizationmanager/v1/saml/certificate'; import { Operation } from '../../../../../yandex/cloud/operation/operation'; export declare const protobufPackage = "yandex.cloud.organizationmanager.v1.saml"; export interface GetCertificateRequest { /** * ID of the certificate to return. * To get the certificate ID, make a [CertificateService.List] request. */ certificateId: string; } export interface ListCertificatesRequest { /** * ID of the federation to list certificates in. * To get the federation ID make a [yandex.cloud.organizationmanager.v1.saml.FederationService.List] request. */ federationId: string; /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], the service returns a [ListCertificatesResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. * Default value: 100. */ pageSize: number; /** * Page token. To get the next page of results, set [page_token] * to the [ListCertificatesResponse.next_page_token] * returned by a previous list request. */ pageToken: string; /** * A filter expression that filters resources listed in the response. * The expression must specify: * 1. The field name. Currently you can use filtering only on [Certificate.name] field. * 2. An `=` operator. * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`. */ filter: string; } export interface ListCertificatesResponse { /** List of certificates. */ certificates: Certificate[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListCertificatesRequest.page_size], use * the [next_page_token] as the value * for the [ListCertificatesRequest.page_token] query parameter * in the next list request. Each subsequent list request will have its own * [next_page_token] to continue paging through the results. */ nextPageToken: string; } export interface CreateCertificateRequest { /** * ID of the federation to add new certificate. * To get the federation ID make a [yandex.cloud.organizationmanager.v1.saml.FederationService.List] request. */ federationId: string; /** * Name of the certificate. * The name must be unique within the federation. */ name: string; /** Description of the certificate. */ description: string; /** Certificate data in PEM format. */ data: string; } export interface CreateCertificateMetadata { /** ID of the certificate that is being created. */ certificateId: string; } export interface UpdateCertificateRequest { /** * ID of the certificate to update. * To get the certificate ID, make a [CertificateService.List] request. */ certificateId: string; /** Field mask that specifies which fields of the certificate are going to be updated. */ updateMask?: FieldMask; /** * Name of the certificate. * The name must be unique within the federation. */ name: string; /** Description of the certificate. */ description: string; /** Certificate data in PEM format. */ data: string; } export interface UpdateCertificateMetadata { /** ID of the certificate that is being updated. */ certificateId: string; } export interface DeleteCertificateRequest { /** * ID of the certificate to delete. * To get the certificate ID, make a [CertificateService.List] request. */ certificateId: string; } export interface DeleteCertificateMetadata { /** ID of the certificate that is being deleted. */ certificateId: string; } export interface ListCertificateOperationsRequest { /** ID of the certificate to list operations for. */ certificateId: string; /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], the service returns a [ListCertificateOperationsResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. * Default value: 100. */ pageSize: number; /** * Page token. To get the next page of results, set [page_token] * to the [ListCertificateOperationsResponse.next_page_token] * returned by a previous list request. */ pageToken: string; } export interface ListCertificateOperationsResponse { /** List of operations for the specified certificate. */ operations: Operation[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListCertificateOperationsRequest.page_size], use the [next_page_token] as the value * for the [ListCertificateOperationsRequest.page_token] query parameter in the next list request. * Each subsequent list request will have its own [next_page_token] to continue paging through the results. */ nextPageToken: string; } export declare const GetCertificateRequest: { encode(message: GetCertificateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetCertificateRequest; fromJSON(object: any): GetCertificateRequest; toJSON(message: GetCertificateRequest): unknown; fromPartial, never>>(object: I): GetCertificateRequest; }; export declare const ListCertificatesRequest: { encode(message: ListCertificatesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListCertificatesRequest; fromJSON(object: any): ListCertificatesRequest; toJSON(message: ListCertificatesRequest): unknown; fromPartial, never>>(object: I): ListCertificatesRequest; }; export declare const ListCertificatesResponse: { encode(message: ListCertificatesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListCertificatesResponse; fromJSON(object: any): ListCertificatesResponse; toJSON(message: ListCertificatesResponse): unknown; fromPartial, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListCertificatesResponse; }; export declare const CreateCertificateRequest: { encode(message: CreateCertificateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateCertificateRequest; fromJSON(object: any): CreateCertificateRequest; toJSON(message: CreateCertificateRequest): unknown; fromPartial, never>>(object: I): CreateCertificateRequest; }; export declare const CreateCertificateMetadata: { encode(message: CreateCertificateMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateCertificateMetadata; fromJSON(object: any): CreateCertificateMetadata; toJSON(message: CreateCertificateMetadata): unknown; fromPartial, never>>(object: I): CreateCertificateMetadata; }; export declare const UpdateCertificateRequest: { encode(message: UpdateCertificateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateCertificateRequest; fromJSON(object: any): UpdateCertificateRequest; toJSON(message: UpdateCertificateRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; name?: string | undefined; description?: string | undefined; data?: string | undefined; } & Record, never>>(object: I): UpdateCertificateRequest; }; export declare const UpdateCertificateMetadata: { encode(message: UpdateCertificateMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateCertificateMetadata; fromJSON(object: any): UpdateCertificateMetadata; toJSON(message: UpdateCertificateMetadata): unknown; fromPartial, never>>(object: I): UpdateCertificateMetadata; }; export declare const DeleteCertificateRequest: { encode(message: DeleteCertificateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteCertificateRequest; fromJSON(object: any): DeleteCertificateRequest; toJSON(message: DeleteCertificateRequest): unknown; fromPartial, never>>(object: I): DeleteCertificateRequest; }; export declare const DeleteCertificateMetadata: { encode(message: DeleteCertificateMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteCertificateMetadata; fromJSON(object: any): DeleteCertificateMetadata; toJSON(message: DeleteCertificateMetadata): unknown; fromPartial, never>>(object: I): DeleteCertificateMetadata; }; export declare const ListCertificateOperationsRequest: { encode(message: ListCertificateOperationsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListCertificateOperationsRequest; fromJSON(object: any): ListCertificateOperationsRequest; toJSON(message: ListCertificateOperationsRequest): unknown; fromPartial, never>>(object: I): ListCertificateOperationsRequest; }; export declare const ListCertificateOperationsResponse: { encode(message: ListCertificateOperationsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListCertificateOperationsResponse; fromJSON(object: any): ListCertificateOperationsResponse; toJSON(message: ListCertificateOperationsResponse): unknown; fromPartial, never>) | undefined; error?: ({ code?: number | undefined; message?: string | undefined; details?: { typeUrl?: string | undefined; value?: Buffer | undefined; }[] | undefined; } & { code?: number | undefined; message?: string | undefined; details?: ({ typeUrl?: string | undefined; value?: Buffer | undefined; }[] & ({ typeUrl?: string | undefined; value?: Buffer | undefined; } & { typeUrl?: string | undefined; value?: Buffer | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; response?: ({ typeUrl?: string | undefined; value?: Buffer | undefined; } & { typeUrl?: string | undefined; value?: Buffer | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListCertificateOperationsResponse; }; /** A set of methods for managing certificates. */ export declare const CertificateServiceService: { /** * Returns the specified certificate. * * To get the list of available certificates, make a [List] request. */ readonly get: { readonly path: "/yandex.cloud.organizationmanager.v1.saml.CertificateService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetCertificateRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetCertificateRequest; readonly responseSerialize: (value: Certificate) => Buffer; readonly responseDeserialize: (value: Buffer) => Certificate; }; /** Retrieves the list of certificates in the specified federation. */ readonly list: { readonly path: "/yandex.cloud.organizationmanager.v1.saml.CertificateService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListCertificatesRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListCertificatesRequest; readonly responseSerialize: (value: ListCertificatesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListCertificatesResponse; }; /** Creates a certificate in the specified federation. */ readonly create: { readonly path: "/yandex.cloud.organizationmanager.v1.saml.CertificateService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateCertificateRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreateCertificateRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Updates the specified certificate. */ readonly update: { readonly path: "/yandex.cloud.organizationmanager.v1.saml.CertificateService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateCertificateRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateCertificateRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Deletes the specified certificate. */ readonly delete: { readonly path: "/yandex.cloud.organizationmanager.v1.saml.CertificateService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteCertificateRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteCertificateRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Lists operations for the specified certificate. */ readonly listOperations: { readonly path: "/yandex.cloud.organizationmanager.v1.saml.CertificateService/ListOperations"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListCertificateOperationsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListCertificateOperationsRequest; readonly responseSerialize: (value: ListCertificateOperationsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListCertificateOperationsResponse; }; }; export interface CertificateServiceServer extends UntypedServiceImplementation { /** * Returns the specified certificate. * * To get the list of available certificates, make a [List] request. */ get: handleUnaryCall; /** Retrieves the list of certificates in the specified federation. */ list: handleUnaryCall; /** Creates a certificate in the specified federation. */ create: handleUnaryCall; /** Updates the specified certificate. */ update: handleUnaryCall; /** Deletes the specified certificate. */ delete: handleUnaryCall; /** Lists operations for the specified certificate. */ listOperations: handleUnaryCall; } export interface CertificateServiceClient extends Client { /** * Returns the specified certificate. * * To get the list of available certificates, make a [List] request. */ get(request: GetCertificateRequest, callback: (error: ServiceError | null, response: Certificate) => void): ClientUnaryCall; get(request: GetCertificateRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Certificate) => void): ClientUnaryCall; get(request: GetCertificateRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Certificate) => void): ClientUnaryCall; /** Retrieves the list of certificates in the specified federation. */ list(request: ListCertificatesRequest, callback: (error: ServiceError | null, response: ListCertificatesResponse) => void): ClientUnaryCall; list(request: ListCertificatesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListCertificatesResponse) => void): ClientUnaryCall; list(request: ListCertificatesRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListCertificatesResponse) => void): ClientUnaryCall; /** Creates a certificate in the specified federation. */ create(request: CreateCertificateRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateCertificateRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateCertificateRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Updates the specified certificate. */ update(request: UpdateCertificateRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateCertificateRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateCertificateRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Deletes the specified certificate. */ delete(request: DeleteCertificateRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteCertificateRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteCertificateRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Lists operations for the specified certificate. */ listOperations(request: ListCertificateOperationsRequest, callback: (error: ServiceError | null, response: ListCertificateOperationsResponse) => void): ClientUnaryCall; listOperations(request: ListCertificateOperationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListCertificateOperationsResponse) => void): ClientUnaryCall; listOperations(request: ListCertificateOperationsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListCertificateOperationsResponse) => void): ClientUnaryCall; } export declare const CertificateServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): CertificateServiceClient; service: typeof CertificateServiceService; }; 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 {};
= P extends Builtin ? P : P & { [K in keyof P]: Exact
; } & Record>, never>; export {};