Latest generation

This commit is contained in:
ci core model
2025-06-12 13:11:54 +00:00
parent 9414b2cd34
commit ae1bb15115
11 changed files with 2727 additions and 678 deletions

View File

@@ -6,10 +6,10 @@ 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 type { DeleteResourceMappingsResult } from "./elastic";
import type { DeleteResourceMappingsRequest } from "./elastic";
import type { CreateResourceMappingsResult } from "./elastic";
import type { CreateResourceMappingsRequest } from "./elastic";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { UpdateModelMappingsResult } from "./elastic";
import type { UpdateModelMappingsRequest } from "./elastic";
@@ -19,130 +19,18 @@ 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
*/
updateModelMappings(input: UpdateModelMappingsRequest, options?: RpcOptions): UnaryCall<UpdateModelMappingsRequest, UpdateModelMappingsResult>;
/**
* @generated from protobuf rpc: CreateProjectMappings
* @generated from protobuf rpc: CreateResourceMappings
*/
createProjectMappings(input: CreateProjectMappingsRequest, options?: RpcOptions): UnaryCall<CreateProjectMappingsRequest, CreateProjectMappingsResult>;
createResourceMappings(input: CreateResourceMappingsRequest, options?: RpcOptions): UnaryCall<CreateResourceMappingsRequest, CreateResourceMappingsResult>;
/**
* @generated from protobuf rpc: DeleteProjectMappings
* @generated from protobuf rpc: DeleteResourceMappings
*/
deleteProjectMappings(input: DeleteProjectMappingsRequest, options?: RpcOptions): UnaryCall<DeleteProjectMappingsRequest, DeleteProjectMappingsResult>;
deleteResourceMappings(input: DeleteResourceMappingsRequest, options?: RpcOptions): UnaryCall<DeleteResourceMappingsRequest, DeleteResourceMappingsResult>;
/**
* @generated from protobuf rpc: ClearIndexEntity
*/
@@ -157,118 +45,6 @@ export class ElasticServiceClient implements IElasticServiceClient, ServiceInfo
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
*/
@@ -277,18 +53,18 @@ export class ElasticServiceClient implements IElasticServiceClient, ServiceInfo
return stackIntercept<UpdateModelMappingsRequest, UpdateModelMappingsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CreateProjectMappings
* @generated from protobuf rpc: CreateResourceMappings
*/
createProjectMappings(input: CreateProjectMappingsRequest, options?: RpcOptions): UnaryCall<CreateProjectMappingsRequest, CreateProjectMappingsResult> {
createResourceMappings(input: CreateResourceMappingsRequest, options?: RpcOptions): UnaryCall<CreateResourceMappingsRequest, CreateResourceMappingsResult> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateProjectMappingsRequest, CreateProjectMappingsResult>("unary", this._transport, method, opt, input);
return stackIntercept<CreateResourceMappingsRequest, CreateResourceMappingsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteProjectMappings
* @generated from protobuf rpc: DeleteResourceMappings
*/
deleteProjectMappings(input: DeleteProjectMappingsRequest, options?: RpcOptions): UnaryCall<DeleteProjectMappingsRequest, DeleteProjectMappingsResult> {
deleteResourceMappings(input: DeleteResourceMappingsRequest, options?: RpcOptions): UnaryCall<DeleteResourceMappingsRequest, DeleteResourceMappingsResult> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteProjectMappingsRequest, DeleteProjectMappingsResult>("unary", this._transport, method, opt, input);
return stackIntercept<DeleteResourceMappingsRequest, DeleteResourceMappingsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ClearIndexEntity