import _m0 from 'protobufjs/minimal'; export declare const protobufPackage = "yandex.cloud.cdn.v1"; /** An origin. For details about the concept, see [documentation](/docs/cdn/concepts/origins). */ export interface Origin { /** ID of the origin. */ id: number; /** ID of the parent origin group. */ originGroupId: number; /** * IP address or Domain name of your origin and the port (if custom). * Used if [meta] variant is `common`. */ source: string; /** * The setting allows to enable or disable an Origin source in the Origins group. * * It has two possible values: * * True - The origin is enabled and used as a source for the CDN. An origins * group must contain at least one enabled origin. * False - The origin is disabled and the CDN is not using it to pull content. */ enabled: boolean; /** * Specifies whether the origin is used in its origin group as backup. * A backup origin is used when one of active origins becomes unavailable. */ backup: boolean; /** Set up origin of the content. */ meta?: OriginMeta; } /** Origin parameters. For details about the concept, see [documentation](/docs/cdn/concepts/origins). */ export interface OriginParams { /** Source: IP address or Domain name of your origin and the port (if custom). */ source: string; /** * The setting allows to enable or disable an Origin source in the Origins group. * * It has two possible values: * * True - The origin is enabled and used as a source for the CDN. An origins * group must contain at least one enabled origins. False - The origin is disabled * and the CDN is not using it to pull content. */ enabled: boolean; /** * backup option has two possible values: * * True - The option is active. The origin will not be used until one of * active origins become unavailable. * False - The option is disabled. */ backup: boolean; /** Set up origin of the content. */ meta?: OriginMeta; } /** Origin type. For details about the concept, see [documentation](/docs/cdn/concepts/origins). */ export interface OriginMeta { /** A server with a domain name linked to it */ common?: OriginNamedMeta | undefined; /** An Object Storage bucket not configured as a static site hosting. */ bucket?: OriginNamedMeta | undefined; /** An Object Storage bucket configured as a static site hosting. */ website?: OriginNamedMeta | undefined; /** * An L7 load balancer from Application Load Balancer. * CDN servers will access the load balancer at one of its IP addresses that must be selected in the origin settings. */ balancer?: OriginBalancerMeta | undefined; } /** Origin info. For details about the concept, see [documentation](/docs/cdn/concepts/origins). */ export interface OriginNamedMeta { /** Name of the origin. */ name: string; } /** Application Load Balancer origin info. For details about the concept, see [documentation](/docs/cdn/concepts/origins). */ export interface OriginBalancerMeta { /** ID of the origin. */ id: string; } export declare const Origin: { encode(message: Origin, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Origin; fromJSON(object: any): Origin; toJSON(message: Origin): unknown; fromPartial, never>) | undefined; bucket?: ({ name?: string | undefined; } & { name?: string | undefined; } & Record, never>) | undefined; website?: ({ name?: string | undefined; } & { name?: string | undefined; } & Record, never>) | undefined; balancer?: ({ id?: string | undefined; } & { id?: string | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): Origin; }; export declare const OriginParams: { encode(message: OriginParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OriginParams; fromJSON(object: any): OriginParams; toJSON(message: OriginParams): unknown; fromPartial, never>) | undefined; bucket?: ({ name?: string | undefined; } & { name?: string | undefined; } & Record, never>) | undefined; website?: ({ name?: string | undefined; } & { name?: string | undefined; } & Record, never>) | undefined; balancer?: ({ id?: string | undefined; } & { id?: string | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): OriginParams; }; export declare const OriginMeta: { encode(message: OriginMeta, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OriginMeta; fromJSON(object: any): OriginMeta; toJSON(message: OriginMeta): unknown; fromPartial, never>) | undefined; bucket?: ({ name?: string | undefined; } & { name?: string | undefined; } & Record, never>) | undefined; website?: ({ name?: string | undefined; } & { name?: string | undefined; } & Record, never>) | undefined; balancer?: ({ id?: string | undefined; } & { id?: string | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): OriginMeta; }; export declare const OriginNamedMeta: { encode(message: OriginNamedMeta, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OriginNamedMeta; fromJSON(object: any): OriginNamedMeta; toJSON(message: OriginNamedMeta): unknown; fromPartial, never>>(object: I): OriginNamedMeta; }; export declare const OriginBalancerMeta: { encode(message: OriginBalancerMeta, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OriginBalancerMeta; fromJSON(object: any): OriginBalancerMeta; toJSON(message: OriginBalancerMeta): unknown; fromPartial, never>>(object: I): OriginBalancerMeta; }; 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 {};