Files
npm-core-sdk/elastic.client.ts
2025-03-20 10:05:56 +00:00

301 lines
15 KiB
TypeScript

// @generated by protobuf-ts 2.9.6
// @generated from protobuf file "elastic.proto" (package "api", syntax proto3)
// tslint:disable
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { ElasticService } from "./elastic";
import type { ClearIndexEntityResult } from "./elastic";
import type { ClearIndexEntityRequest } from "./elastic";
import type { DeleteProjectMappingsResult } from "./elastic";
import type { DeleteProjectMappingsRequest } from "./elastic";
import type { CreateProjectMappingsResult } from "./elastic";
import type { CreateProjectMappingsRequest } from "./elastic";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { UpdateModelMappingsResult } from "./elastic";
import type { UpdateModelMappingsRequest } from "./elastic";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
* @generated from protobuf service api.ElasticService
*/
export interface IElasticServiceClient {
//
// rpc ReIndexElastic (ReIndexElasticRequest) returns (ReIndexElasticResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "ReIndex Elastic indices. If no temporary index prefix is set, reindexes the index of each entity to temporary ones else reindexes the index of each entity from temporary ones."
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc DeleteIndexElastic (DeleteIndexElasticRequest) returns (DeleteIndexElasticResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Delete Elastic indices. If no temporary index prefix is set, deletes the index of each entity else deletes the temporary indexes."
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GetReindexStatus (GetReindexStatusRequest) returns (GetReindexStatusResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Get the status of an asynchrone reindex task. The TaskIDs attribute contains the task id for each entity"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GenerateElasticTemplate (GenerateElasticTemplateRequest) returns (GenerateElasticTemplateResult) {
// option (rscType) = "Platform";
// option (roles) = "Platform.Elastic";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Generate new Elastic template from platform model"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc CreateIsmPolicy (CreateIsmPolicyRequest) returns (CreateIsmPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Create LifeCycle ISM policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc DeleteIsmPolicy (DeleteIsmPolicyRequest) returns (DeleteIsmPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Delete LifeCycle ISM policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc CreateManagedIndexes (CreateManagedIndexesRequest) returns (CreateManagedIndexesResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Create RolloverTemplate for each entity, then created the managed Index with alias. ISM policy should be already created."
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GetCurrentManagedIndexes (GetCurrentManagedIndexesRequest) returns (GetCurrentManagedIndexesResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Get all current managed indexes for all entities"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GetEntityAllManagedIndexes (GetEntityAllManagedIndexesRequest) returns (GetEntityAllManagedIndexesResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Get all managed indexes for the entity"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc RetryFailedManagedIndexPolicy (RetryFailedManagedIndexPolicyRequest) returns (RetryFailedManagedIndexPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Retry failed managed index policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc RetryAllFailedManagedIndexPolicy (RetryAllFailedManagedIndexPolicyRequest) returns (RetryAllFailedManagedIndexPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Retry all failed managed index policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
/**
* @generated from protobuf rpc: UpdateModelMappings(api.UpdateModelMappingsRequest) returns (api.UpdateModelMappingsResult);
*/
updateModelMappings(input: UpdateModelMappingsRequest, options?: RpcOptions): UnaryCall<UpdateModelMappingsRequest, UpdateModelMappingsResult>;
/**
* @generated from protobuf rpc: CreateProjectMappings(api.CreateProjectMappingsRequest) returns (api.CreateProjectMappingsResult);
*/
createProjectMappings(input: CreateProjectMappingsRequest, options?: RpcOptions): UnaryCall<CreateProjectMappingsRequest, CreateProjectMappingsResult>;
/**
* @generated from protobuf rpc: DeleteProjectMappings(api.DeleteProjectMappingsRequest) returns (api.DeleteProjectMappingsResult);
*/
deleteProjectMappings(input: DeleteProjectMappingsRequest, options?: RpcOptions): UnaryCall<DeleteProjectMappingsRequest, DeleteProjectMappingsResult>;
/**
* @generated from protobuf rpc: ClearIndexEntity(api.ClearIndexEntityRequest) returns (api.ClearIndexEntityResult);
*/
clearIndexEntity(input: ClearIndexEntityRequest, options?: RpcOptions): UnaryCall<ClearIndexEntityRequest, ClearIndexEntityResult>;
}
/**
* @generated from protobuf service api.ElasticService
*/
export class ElasticServiceClient implements IElasticServiceClient, ServiceInfo {
typeName = ElasticService.typeName;
methods = ElasticService.methods;
options = ElasticService.options;
constructor(private readonly _transport: RpcTransport) {
}
//
// rpc ReIndexElastic (ReIndexElasticRequest) returns (ReIndexElasticResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "ReIndex Elastic indices. If no temporary index prefix is set, reindexes the index of each entity to temporary ones else reindexes the index of each entity from temporary ones."
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc DeleteIndexElastic (DeleteIndexElasticRequest) returns (DeleteIndexElasticResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Delete Elastic indices. If no temporary index prefix is set, deletes the index of each entity else deletes the temporary indexes."
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GetReindexStatus (GetReindexStatusRequest) returns (GetReindexStatusResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Get the status of an asynchrone reindex task. The TaskIDs attribute contains the task id for each entity"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GenerateElasticTemplate (GenerateElasticTemplateRequest) returns (GenerateElasticTemplateResult) {
// option (rscType) = "Platform";
// option (roles) = "Platform.Elastic";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Generate new Elastic template from platform model"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc CreateIsmPolicy (CreateIsmPolicyRequest) returns (CreateIsmPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Create LifeCycle ISM policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc DeleteIsmPolicy (DeleteIsmPolicyRequest) returns (DeleteIsmPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Delete LifeCycle ISM policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc CreateManagedIndexes (CreateManagedIndexesRequest) returns (CreateManagedIndexesResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Create RolloverTemplate for each entity, then created the managed Index with alias. ISM policy should be already created."
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GetCurrentManagedIndexes (GetCurrentManagedIndexesRequest) returns (GetCurrentManagedIndexesResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Get all current managed indexes for all entities"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc GetEntityAllManagedIndexes (GetEntityAllManagedIndexesRequest) returns (GetEntityAllManagedIndexesResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Get all managed indexes for the entity"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc RetryFailedManagedIndexPolicy (RetryFailedManagedIndexPolicyRequest) returns (RetryFailedManagedIndexPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Retry failed managed index policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
// rpc RetryAllFailedManagedIndexPolicy (RetryAllFailedManagedIndexPolicyRequest) returns (RetryAllFailedManagedIndexPolicyResult) {
// option (rscType) = "Platform";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// description: "Retry all failed managed index policy"
// summary: ""
// tags: "Project Elastic"
// };
// option (google.api.method_visibility).restriction = "INTERNAL";
// };
/**
* @generated from protobuf rpc: UpdateModelMappings(api.UpdateModelMappingsRequest) returns (api.UpdateModelMappingsResult);
*/
updateModelMappings(input: UpdateModelMappingsRequest, options?: RpcOptions): UnaryCall<UpdateModelMappingsRequest, UpdateModelMappingsResult> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateModelMappingsRequest, UpdateModelMappingsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CreateProjectMappings(api.CreateProjectMappingsRequest) returns (api.CreateProjectMappingsResult);
*/
createProjectMappings(input: CreateProjectMappingsRequest, options?: RpcOptions): UnaryCall<CreateProjectMappingsRequest, CreateProjectMappingsResult> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateProjectMappingsRequest, CreateProjectMappingsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteProjectMappings(api.DeleteProjectMappingsRequest) returns (api.DeleteProjectMappingsResult);
*/
deleteProjectMappings(input: DeleteProjectMappingsRequest, options?: RpcOptions): UnaryCall<DeleteProjectMappingsRequest, DeleteProjectMappingsResult> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteProjectMappingsRequest, DeleteProjectMappingsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ClearIndexEntity(api.ClearIndexEntityRequest) returns (api.ClearIndexEntityResult);
*/
clearIndexEntity(input: ClearIndexEntityRequest, options?: RpcOptions): UnaryCall<ClearIndexEntityRequest, ClearIndexEntityResult> {
const method = this.methods[3], opt = this._transport.mergeOptions(options);
return stackIntercept<ClearIndexEntityRequest, ClearIndexEntityResult>("unary", this._transport, method, opt, input);
}
}