<commit_before>// Copyright 2017 The OpenPitrix Authors. All rights reserved.
// Use of this source code is governed by a Apache license
// that can be found in the LICENSE file.


syntax = "proto3";
package openpitrix;

// set go package name to pb
option go_package = "pb";

import "google/protobuf/wrappers.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
import "protoc-gen-swagger/options/annotations.proto";

option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
	info: {
		title: "OpenPitrix Project";
		version: "0.0.1";
		contact: {
			name: "OpenPitrix Project";
			url: "https://openpitrix.io";
		};
	};
	schemes: HTTP;
	consumes: "application/json";
	produces: "application/json";
};

message RuntimeEnv{
	google.protobuf.StringValue runtime_env_id = 1;
	google.protobuf.StringValue name = 2;
	google.protobuf.StringValue description = 3;
	google.protobuf.StringValue runtime_env_url = 4;
	google.protobuf.StringValue runtime_env_credential_id = 5;
	google.protobuf.StringValue labels = 6;
	google.protobuf.StringValue owner = 7;
	google.protobuf.StringValue status = 8;
	google.protobuf.Timestamp create_time = 9;
	google.protobuf.Timestamp status_time = 10;
}

message CreateRuntimeEnvRequest {
	google.protobuf.StringValue name = 1;
	google.protobuf.StringValue description = 2;
	google.protobuf.StringValue labels = 3;
	google.protobuf.StringValue runtime_env_url = 4;
}

message CreateRuntimeEnvResponse{
	RuntimeEnv runtime_env = 1;
}

message DescribeRuntimeEnvsRequest{
	repeated google.protobuf.StringValue runtime_env_id = 1;
	repeated google.protobuf.StringValue status = 2;
	google.protobuf.StringValue search_word = 3;
	google.protobuf.StringValue selector = 4;
	repeated google.protobuf.StringValue owner = 5;
	google.protobuf.UInt32Value limit = 6;
	google.protobuf.UInt32Value offset = 7;
	google.protobuf.UInt32Value verbose = 8;
}

message DescribeRuntimeEnvsResponse{
	google.protobuf.UInt32Value total_count = 1;
	repeated RuntimeEnv runtime_env_set = 2;
}

message ModifyRuntimeEnvRequest{
	google.protobuf.StringValue runtime_env_id = 1;
	google.protobuf.StringValue name = 2;
	google.protobuf.StringValue description = 3;
	google.protobuf.StringValue labels = 4;
}

message ModifyRuntimeEnvResponse{
	RuntimeEnv runtime_env = 1;
}

message DeleteRuntimeEnvRequest{
	google.protobuf.StringValue runtime_env_id = 1;
}

message DeleteRuntimeEnvResponse{
	RuntimeEnv runtime_env = 1;
}

message RuntimeEnvCredential{
	google.protobuf.StringValue runtime_env_credential_id = 1;
	google.protobuf.StringValue name = 2;
	google.protobuf.StringValue description = 3;
	map <string, string> content = 4;
	google.protobuf.StringValue owner = 5;
	repeated google.protobuf.StringValue runtime_env_ids = 6;
	google.protobuf.StringValue status = 7;
	google.protobuf.Timestamp create_time = 9;
	google.protobuf.Timestamp status_time = 10;
}

message CreateRuntimeEnvCredentialRequset{
	google.protobuf.StringValue name = 1;
	google.protobuf.StringValue description = 2;
	map <string, string> content = 3;
}

message CreateRuntimeEnvCredentialResponse{
	RuntimeEnvCredential runtime_env_credential = 1 ;
}

message DescribeRuntimeEnvCredentialsRequset{
	repeated google.protobuf.StringValue runtime_env_credential_id = 1;
	repeated google.protobuf.StringValue status = 2;
	google.protobuf.StringValue search_word = 3;
	repeated google.protobuf.StringValue owner = 4;
	google.protobuf.UInt32Value limit = 5;
	google.protobuf.UInt32Value offset = 6;
	google.protobuf.UInt32Value verbose = 7;
}

message DescribeRuntimeEnvCredentialsResponse{
	google.protobuf.UInt32Value total_count = 1;
	repeated RuntimeEnvCredential runtime_env_credential_set = 2;
}

message ModifyRuntimeEnvCredentialRequest{
	google.protobuf.StringValue runtime_env_credential_id = 1;
	google.protobuf.StringValue name = 2;
	google.protobuf.StringValue description = 3;
	map <string, string> content = 4;
}

message ModifyRuntimeEnvCredentialResponse{
	RuntimeEnvCredential runtime_env_credential = 1 ;
}
<commit_msg>Fix string type in runtime env proto<commit_after>// Copyright 2017 The OpenPitrix Authors. All rights reserved.
// Use of this source code is governed by a Apache license
// that can be found in the LICENSE file.


syntax = "proto3";
package openpitrix;

// set go package name to pb
option go_package = "pb";

import "google/protobuf/wrappers.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
import "protoc-gen-swagger/options/annotations.proto";

option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
	info: {
		title: "OpenPitrix Project";
		version: "0.0.1";
		contact: {
			name: "OpenPitrix Project";
			url: "https://openpitrix.io";
		};
	};
	schemes: HTTP;
	consumes: "application/json";
	produces: "application/json";
};

message RuntimeEnv{
	google.protobuf.StringValue runtime_env_id = 1;
	google.protobuf.StringValue name = 2;
	google.protobuf.StringValue description = 3;
	google.protobuf.StringValue runtime_env_url = 4;
	google.protobuf.StringValue runtime_env_credential_id = 5;
	google.protobuf.StringValue labels = 6;
	google.protobuf.StringValue owner = 7;
	google.protobuf.StringValue status = 8;
	google.protobuf.Timestamp create_time = 9;
	google.protobuf.Timestamp status_time = 10;
}

message CreateRuntimeEnvRequest {
	google.protobuf.StringValue name = 1;
	google.protobuf.StringValue description = 2;
	google.protobuf.StringValue labels = 3;
	google.protobuf.StringValue runtime_env_url = 4;
}

message CreateRuntimeEnvResponse{
	RuntimeEnv runtime_env = 1;
}

message DescribeRuntimeEnvsRequest{
	repeated string runtime_env_id = 1;
	repeated string status = 2;
	google.protobuf.StringValue search_word = 3;
	google.protobuf.StringValue selector = 4;
	repeated string owner = 5;
	google.protobuf.UInt32Value limit = 6;
	google.protobuf.UInt32Value offset = 7;
	google.protobuf.UInt32Value verbose = 8;
}

message DescribeRuntimeEnvsResponse{
	google.protobuf.UInt32Value total_count = 1;
	repeated RuntimeEnv runtime_env_set = 2;
}

message ModifyRuntimeEnvRequest{
	google.protobuf.StringValue runtime_env_id = 1;
	google.protobuf.StringValue name = 2;
	google.protobuf.StringValue description = 3;
	google.protobuf.StringValue labels = 4;
}

message ModifyRuntimeEnvResponse{
	RuntimeEnv runtime_env = 1;
}

message DeleteRuntimeEnvRequest{
	google.protobuf.StringValue runtime_env_id = 1;
}

message DeleteRuntimeEnvResponse{
	RuntimeEnv runtime_env = 1;
}

message RuntimeEnvCredential{
	google.protobuf.StringValue runtime_env_credential_id = 1;
	google.protobuf.StringValue name = 2;
	google.protobuf.StringValue description = 3;
	map <string, string> content = 4;
	google.protobuf.StringValue owner = 5;
	repeated string runtime_env_id = 6;
	google.protobuf.StringValue status = 7;
	google.protobuf.Timestamp create_time = 9;
	google.protobuf.Timestamp status_time = 10;
}

message CreateRuntimeEnvCredentialRequset{
	google.protobuf.StringValue name = 1;
	google.protobuf.StringValue description = 2;
	map <string, string> content = 3;
}

message CreateRuntimeEnvCredentialResponse{
	RuntimeEnvCredential runtime_env_credential = 1 ;
}

message DescribeRuntimeEnvCredentialsRequset{
	repeated string runtime_env_credential_id = 1;
	repeated string status = 2;
	google.protobuf.StringValue search_word = 3;
	repeated string owner = 4;
	google.protobuf.UInt32Value limit = 5;
	google.protobuf.UInt32Value offset = 6;
	google.protobuf.UInt32Value verbose = 7;
}

message DescribeRuntimeEnvCredentialsResponse{
	google.protobuf.UInt32Value total_count = 1;
	repeated RuntimeEnvCredential runtime_env_credential_set = 2;
}

message ModifyRuntimeEnvCredentialRequest{
	google.protobuf.StringValue runtime_env_credential_id = 1;
	google.protobuf.StringValue name = 2;
	google.protobuf.StringValue description = 3;
	map <string, string> content = 4;
}

message ModifyRuntimeEnvCredentialResponse{
	RuntimeEnvCredential runtime_env_credential = 1 ;
}

{'fraction_non_alphanumeric': 0.08778291859447293, 'fraction_numerical': 0.021508065524571716, 'mean_word_length': 5.528979591836735, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3787589', 'n_tokens_mistral': 2610, 'n_tokens_neox': 2461, 'n_words': 592}