You've already forked npm-core-sdk
Latest generation
This commit is contained in:
50
org.ts
50
org.ts
@@ -524,12 +524,12 @@ export enum StatusEnum {
|
||||
class Organisation$Type extends MessageType<Organisation> {
|
||||
constructor() {
|
||||
super("api.Organisation", [
|
||||
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" }, "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } } },
|
||||
{ no: 1, name: "ID", kind: "scalar", localName: "ID", jsonName: "ID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } },
|
||||
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "IDPs", kind: "message", localName: "IDPs", jsonName: "IDPs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => IDP },
|
||||
{ no: 4, name: "status", kind: "enum", T: () => ["api.StatusEnum", StatusEnum], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 5, name: "Modules", kind: "message", localName: "Modules", jsonName: "Modules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Module },
|
||||
{ no: 6, name: "DefaultLanguageISO6391", kind: "scalar", localName: "DefaultLanguageISO6391", jsonName: "DefaultLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" }, "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } } } }
|
||||
{ no: 6, name: "DefaultLanguageISO6391", kind: "scalar", localName: "DefaultLanguageISO6391", jsonName: "DefaultLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Organisation>): Organisation {
|
||||
@@ -759,8 +759,8 @@ class UpdateOrganisationRequest$Type extends MessageType<UpdateOrganisationReque
|
||||
constructor() {
|
||||
super("api.UpdateOrganisationRequest", [
|
||||
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" }, "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" } } } },
|
||||
{ no: 4, name: "DefaultLanguageISO6391", kind: "scalar", localName: "DefaultLanguageISO6391", jsonName: "DefaultLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" }, "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } } } }
|
||||
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:[- ][a-zA-Z0-9]+)*$" } } },
|
||||
{ no: 4, name: "DefaultLanguageISO6391", kind: "scalar", localName: "DefaultLanguageISO6391", jsonName: "DefaultLanguageISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<UpdateOrganisationRequest>): UpdateOrganisationRequest {
|
||||
@@ -2570,25 +2570,25 @@ export const DeleteOrganisationInDBResult = new DeleteOrganisationInDBResult$Typ
|
||||
* @generated ServiceType for protobuf service api.OrganisationService
|
||||
*/
|
||||
export const OrganisationService = new ServiceType("api.OrganisationService", [
|
||||
{ name: "Get", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Get" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Organisation", "api.roles": "Platform.Organisation" }, I: GetOrganisationRequest, O: GetOrganisationResult },
|
||||
{ name: "Create", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Create" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "" }, I: CreateOrganisationRequest, O: CreateOrganisationResult },
|
||||
{ name: "SetModules", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Set the modules of an organisation" }, "google.api.method_visibility": { restriction: "SDK" }, "api.rscType": "Platform", "api.roles": "" }, I: SetModulesOrganisationRequest, O: SetModulesOrganisationResult },
|
||||
{ name: "Update", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Update" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Organisation", "api.roles": "" }, I: UpdateOrganisationRequest, O: UpdateOrganisationResult },
|
||||
{ name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Delete" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "" }, I: DeleteOrganisationRequest, O: DeleteOrganisationResult },
|
||||
{ name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "List" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "Platform.Organisation" }, I: ListOrganisationRequest, O: ListOrganisationResult },
|
||||
{ name: "UpdateStatus", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Set the new status for the organisation" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "Platform.Organisation-Status" }, I: UpdateOrganisationStatusRequest, O: UpdateOrganisationStatusResult },
|
||||
{ name: "StartStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Start streaming jobs for the organisation and set the status RUNNING" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "" }, I: StartStreamingJobsRequest, O: StartStreamingJobsResult },
|
||||
{ name: "StopStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop gracefully streaming jobs for the organisation and set the status STOPPED" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "" }, I: StopStreamingJobsRequest, O: StopStreamingJobsResult },
|
||||
{ name: "CheckStreamingStatus", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Check status for all jobs for a organisation.\nIf organisation has status RUNNING and some jobs are not started the new organisation status is set to PARTIALLY_RUNNING.\nIf organisation has status STOPPED and some jobs are not stopped the new organisation status is set to PARTIALLY_STOPPED" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "" }, I: CheckStreamingStatusRequest, O: CheckStreamingStatusResult },
|
||||
{ name: "StopAllStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop gracefully all jobs for all Organisations with RUNNING status in the platform. For each Organisation set the PAUSE status" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "" }, I: StopAllStreamingJobsRequest, O: StopAllStreamingJobsResult },
|
||||
{ name: "RestartAllStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Restart all jobs not started for all organisations with RUNNING or PARTIALLY_RUNNING status in the platform. For each organisation set the Organisation status to RUNNING" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "" }, I: RestartAllStreamingJobsRequest, O: RestartAllStreamingJobsResult },
|
||||
{ name: "StartAllStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Start all jobs for all organisations. For each organisation set the Organisation status to RUNNING" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "" }, I: StartAllStreamingJobsRequest, O: StartAllStreamingJobsResult },
|
||||
{ name: "ForceStopAllStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop all jobs for all organisations with STOPPED or PARTIALLY_STOPPED status in the platform. For each organisation set the status STOPPED" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "" }, I: ForceStopAllStreamingJobsRequest, O: ForceStopAllStreamingJobsResult },
|
||||
{ name: "StartStreamingMetricsJob", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Start metrics job for the platform" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "" }, I: StartStreamingMetricsJobRequest, O: StartStreamingMetricsJobResult },
|
||||
{ name: "StopStreamingMetricsJob", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop metrics job for the platform" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "" }, I: StopStreamingMetricsJobRequest, O: StopStreamingMetricsJobResult },
|
||||
{ name: "StartIndividualStreamingJob", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Start one streaming job for the organisation" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "" }, I: StartIndividualStreamingJobRequest, O: StartIndividualStreamingJobResult },
|
||||
{ name: "StopIndividualStreamingJob", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop one streaming job for the organisation" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "" }, I: StopIndividualStreamingJobRequest, O: StopIndividualStreamingJobResult },
|
||||
{ name: "ProvisionGitOrg", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Provision a git organisation " }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "Platform.Gitea" }, I: ProvisionGitOrgRequest, O: ProvisionGitOrgResult },
|
||||
{ name: "DeprovisionGitOrg", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Deprovision a git organisation " }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "Platform.Gitea" }, I: DeprovisionGitOrgRequest, O: DeprovisionGitOrgResult },
|
||||
{ name: "DeleteOrganisationInDB", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Delete the organisation in database" }, "google.api.method_visibility": { restriction: "INTERNAL" }, "api.rscType": "Platform", "api.roles": "Platform.Organisation-Deletion" }, I: DeleteOrganisationInDBRequest, O: DeleteOrganisationInDBResult }
|
||||
{ name: "Get", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Get" }, "api.rscType": "Organisation", "api.roles": "Platform.Organisation", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetOrganisationRequest, O: GetOrganisationResult },
|
||||
{ name: "Create", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Create" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateOrganisationRequest, O: CreateOrganisationResult },
|
||||
{ name: "SetModules", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Set the modules of an organisation" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: SetModulesOrganisationRequest, O: SetModulesOrganisationResult },
|
||||
{ name: "Update", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Update" }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateOrganisationRequest, O: UpdateOrganisationResult },
|
||||
{ name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Delete" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteOrganisationRequest, O: DeleteOrganisationResult },
|
||||
{ name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "List" }, "api.rscType": "Platform", "api.roles": "Platform.Organisation", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ListOrganisationRequest, O: ListOrganisationResult },
|
||||
{ name: "UpdateStatus", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Set the new status for the organisation" }, "api.rscType": "Platform", "api.roles": "Platform.Organisation-Status", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateOrganisationStatusRequest, O: UpdateOrganisationStatusResult },
|
||||
{ name: "StartStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Start streaming jobs for the organisation and set the status RUNNING" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartStreamingJobsRequest, O: StartStreamingJobsResult },
|
||||
{ name: "StopStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop gracefully streaming jobs for the organisation and set the status STOPPED" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StopStreamingJobsRequest, O: StopStreamingJobsResult },
|
||||
{ name: "CheckStreamingStatus", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Check status for all jobs for a organisation.\nIf organisation has status RUNNING and some jobs are not started the new organisation status is set to PARTIALLY_RUNNING.\nIf organisation has status STOPPED and some jobs are not stopped the new organisation status is set to PARTIALLY_STOPPED" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CheckStreamingStatusRequest, O: CheckStreamingStatusResult },
|
||||
{ name: "StopAllStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop gracefully all jobs for all Organisations with RUNNING status in the platform. For each Organisation set the PAUSE status" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StopAllStreamingJobsRequest, O: StopAllStreamingJobsResult },
|
||||
{ name: "RestartAllStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Restart all jobs not started for all organisations with RUNNING or PARTIALLY_RUNNING status in the platform. For each organisation set the Organisation status to RUNNING" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: RestartAllStreamingJobsRequest, O: RestartAllStreamingJobsResult },
|
||||
{ name: "StartAllStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Start all jobs for all organisations. For each organisation set the Organisation status to RUNNING" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartAllStreamingJobsRequest, O: StartAllStreamingJobsResult },
|
||||
{ name: "ForceStopAllStreamingJobs", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop all jobs for all organisations with STOPPED or PARTIALLY_STOPPED status in the platform. For each organisation set the status STOPPED" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ForceStopAllStreamingJobsRequest, O: ForceStopAllStreamingJobsResult },
|
||||
{ name: "StartStreamingMetricsJob", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Start metrics job for the platform" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartStreamingMetricsJobRequest, O: StartStreamingMetricsJobResult },
|
||||
{ name: "StopStreamingMetricsJob", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop metrics job for the platform" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StopStreamingMetricsJobRequest, O: StopStreamingMetricsJobResult },
|
||||
{ name: "StartIndividualStreamingJob", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Start one streaming job for the organisation" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StartIndividualStreamingJobRequest, O: StartIndividualStreamingJobResult },
|
||||
{ name: "StopIndividualStreamingJob", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Streaming"], description: "Stop one streaming job for the organisation" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: StopIndividualStreamingJobRequest, O: StopIndividualStreamingJobResult },
|
||||
{ name: "ProvisionGitOrg", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Provision a git organisation " }, "api.rscType": "Platform", "api.roles": "Platform.Gitea", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ProvisionGitOrgRequest, O: ProvisionGitOrgResult },
|
||||
{ name: "DeprovisionGitOrg", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Deprovision a git organisation " }, "api.rscType": "Platform", "api.roles": "Platform.Gitea", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeprovisionGitOrgRequest, O: DeprovisionGitOrgResult },
|
||||
{ name: "DeleteOrganisationInDB", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Organisation"], description: "Delete the organisation in database" }, "api.rscType": "Platform", "api.roles": "Platform.Organisation-Deletion", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteOrganisationInDBRequest, O: DeleteOrganisationInDBResult }
|
||||
], { "api.k8sService": "organisation-server", "api.roleManager": true, "api.resourceManager": true });
|
||||
|
||||
Reference in New Issue
Block a user