/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { ScanRules, ScanPolicy } from '../../../../yandex/cloud/containerregistry/v1/scan_policy'; import { FieldMask } from '../../../../google/protobuf/field_mask'; import { Operation } from '../../../../yandex/cloud/operation/operation'; export declare const protobufPackage = "yandex.cloud.containerregistry.v1"; export interface GetScanPolicyRequest { /** ID of the scan policy. */ scanPolicyId: string; } export interface GetScanPolicyByRegistryRequest { /** ID of the registry with scan policy. */ registryId: string; } export interface CreateScanPolicyRequest { /** ID of the scan policy registry. */ registryId: string; /** Name of the scan policy. */ name: string; /** Description of the scan policy. */ description: string; /** Rules of the scan policy. */ rules?: ScanRules; } export interface UpdateScanPolicyRequest { /** ID of the scan policy. */ scanPolicyId: string; /** Field mask that specifies which fields of the scan policy resource are going to be updated. */ updateMask?: FieldMask; /** Name of the scan policy. */ name: string; /** Description of the scan policy. */ description: string; /** Rules of the scan policy. */ rules?: ScanRules; } export interface DeleteScanPolicyRequest { /** ID of the scan policy. */ scanPolicyId: string; } export interface CreateScanPolicyMetadata { /** ID of created scan policy resource. */ scanPolicyId: string; } export interface UpdateScanPolicyMetadata { /** ID of the scan policy resource that is updated. */ scanPolicyId: string; } export interface DeleteScanPolicyMetadata { /** ID of the scan policy resource that is deleted. */ scanPolicyId: string; } export declare const GetScanPolicyRequest: { encode(message: GetScanPolicyRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetScanPolicyRequest; fromJSON(object: any): GetScanPolicyRequest; toJSON(message: GetScanPolicyRequest): unknown; fromPartial, never>>(object: I): GetScanPolicyRequest; }; export declare const GetScanPolicyByRegistryRequest: { encode(message: GetScanPolicyByRegistryRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetScanPolicyByRegistryRequest; fromJSON(object: any): GetScanPolicyByRegistryRequest; toJSON(message: GetScanPolicyByRegistryRequest): unknown; fromPartial, never>>(object: I): GetScanPolicyByRegistryRequest; }; export declare const CreateScanPolicyRequest: { encode(message: CreateScanPolicyRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateScanPolicyRequest; fromJSON(object: any): CreateScanPolicyRequest; toJSON(message: CreateScanPolicyRequest): unknown; fromPartial, never>) | undefined; disabled?: boolean | undefined; } & Record, never>) | undefined; scheduleRules?: ({ repositoryPrefixes?: string[] | undefined; rescanPeriod?: { seconds?: number | undefined; nanos?: number | undefined; } | undefined; disabled?: boolean | undefined; }[] & ({ repositoryPrefixes?: string[] | undefined; rescanPeriod?: { seconds?: number | undefined; nanos?: number | undefined; } | undefined; disabled?: boolean | undefined; } & { repositoryPrefixes?: (string[] & string[] & Record, never>) | undefined; rescanPeriod?: ({ seconds?: number | undefined; nanos?: number | undefined; } & { seconds?: number | undefined; nanos?: number | undefined; } & Record, never>) | undefined; disabled?: boolean | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): CreateScanPolicyRequest; }; export declare const UpdateScanPolicyRequest: { encode(message: UpdateScanPolicyRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateScanPolicyRequest; fromJSON(object: any): UpdateScanPolicyRequest; toJSON(message: UpdateScanPolicyRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; name?: string | undefined; description?: string | undefined; rules?: ({ pushRule?: { repositoryPrefixes?: string[] | undefined; disabled?: boolean | undefined; } | undefined; scheduleRules?: { repositoryPrefixes?: string[] | undefined; rescanPeriod?: { seconds?: number | undefined; nanos?: number | undefined; } | undefined; disabled?: boolean | undefined; }[] | undefined; } & { pushRule?: ({ repositoryPrefixes?: string[] | undefined; disabled?: boolean | undefined; } & { repositoryPrefixes?: (string[] & string[] & Record, never>) | undefined; disabled?: boolean | undefined; } & Record, never>) | undefined; scheduleRules?: ({ repositoryPrefixes?: string[] | undefined; rescanPeriod?: { seconds?: number | undefined; nanos?: number | undefined; } | undefined; disabled?: boolean | undefined; }[] & ({ repositoryPrefixes?: string[] | undefined; rescanPeriod?: { seconds?: number | undefined; nanos?: number | undefined; } | undefined; disabled?: boolean | undefined; } & { repositoryPrefixes?: (string[] & string[] & Record, never>) | undefined; rescanPeriod?: ({ seconds?: number | undefined; nanos?: number | undefined; } & { seconds?: number | undefined; nanos?: number | undefined; } & Record, never>) | undefined; disabled?: boolean | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): UpdateScanPolicyRequest; }; export declare const DeleteScanPolicyRequest: { encode(message: DeleteScanPolicyRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteScanPolicyRequest; fromJSON(object: any): DeleteScanPolicyRequest; toJSON(message: DeleteScanPolicyRequest): unknown; fromPartial, never>>(object: I): DeleteScanPolicyRequest; }; export declare const CreateScanPolicyMetadata: { encode(message: CreateScanPolicyMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateScanPolicyMetadata; fromJSON(object: any): CreateScanPolicyMetadata; toJSON(message: CreateScanPolicyMetadata): unknown; fromPartial, never>>(object: I): CreateScanPolicyMetadata; }; export declare const UpdateScanPolicyMetadata: { encode(message: UpdateScanPolicyMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateScanPolicyMetadata; fromJSON(object: any): UpdateScanPolicyMetadata; toJSON(message: UpdateScanPolicyMetadata): unknown; fromPartial, never>>(object: I): UpdateScanPolicyMetadata; }; export declare const DeleteScanPolicyMetadata: { encode(message: DeleteScanPolicyMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteScanPolicyMetadata; fromJSON(object: any): DeleteScanPolicyMetadata; toJSON(message: DeleteScanPolicyMetadata): unknown; fromPartial, never>>(object: I): DeleteScanPolicyMetadata; }; /** A set of methods for managing scan policy resources. */ export declare const ScanPolicyServiceService: { /** Returns the specified scan policy. */ readonly get: { readonly path: "/yandex.cloud.containerregistry.v1.ScanPolicyService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetScanPolicyRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetScanPolicyRequest; readonly responseSerialize: (value: ScanPolicy) => Buffer; readonly responseDeserialize: (value: Buffer) => ScanPolicy; }; /** Returns scan policy for the registry if any exists. */ readonly getByRegistry: { readonly path: "/yandex.cloud.containerregistry.v1.ScanPolicyService/GetByRegistry"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetScanPolicyByRegistryRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetScanPolicyByRegistryRequest; readonly responseSerialize: (value: ScanPolicy) => Buffer; readonly responseDeserialize: (value: Buffer) => ScanPolicy; }; /** Creates a scan policy for the specified registry. */ readonly create: { readonly path: "/yandex.cloud.containerregistry.v1.ScanPolicyService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateScanPolicyRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreateScanPolicyRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Updates the specified scan policy. */ readonly update: { readonly path: "/yandex.cloud.containerregistry.v1.ScanPolicyService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateScanPolicyRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateScanPolicyRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Deletes the specified scan policy. */ readonly delete: { readonly path: "/yandex.cloud.containerregistry.v1.ScanPolicyService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteScanPolicyRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteScanPolicyRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; export interface ScanPolicyServiceServer extends UntypedServiceImplementation { /** Returns the specified scan policy. */ get: handleUnaryCall; /** Returns scan policy for the registry if any exists. */ getByRegistry: handleUnaryCall; /** Creates a scan policy for the specified registry. */ create: handleUnaryCall; /** Updates the specified scan policy. */ update: handleUnaryCall; /** Deletes the specified scan policy. */ delete: handleUnaryCall; } export interface ScanPolicyServiceClient extends Client { /** Returns the specified scan policy. */ get(request: GetScanPolicyRequest, callback: (error: ServiceError | null, response: ScanPolicy) => void): ClientUnaryCall; get(request: GetScanPolicyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ScanPolicy) => void): ClientUnaryCall; get(request: GetScanPolicyRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ScanPolicy) => void): ClientUnaryCall; /** Returns scan policy for the registry if any exists. */ getByRegistry(request: GetScanPolicyByRegistryRequest, callback: (error: ServiceError | null, response: ScanPolicy) => void): ClientUnaryCall; getByRegistry(request: GetScanPolicyByRegistryRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ScanPolicy) => void): ClientUnaryCall; getByRegistry(request: GetScanPolicyByRegistryRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ScanPolicy) => void): ClientUnaryCall; /** Creates a scan policy for the specified registry. */ create(request: CreateScanPolicyRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateScanPolicyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateScanPolicyRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Updates the specified scan policy. */ update(request: UpdateScanPolicyRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateScanPolicyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateScanPolicyRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Deletes the specified scan policy. */ delete(request: DeleteScanPolicyRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteScanPolicyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteScanPolicyRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; } export declare const ScanPolicyServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): ScanPolicyServiceClient; service: typeof ScanPolicyServiceService; }; 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 {};