123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375 |
- syntax = "proto3";
- package google.cloud.run.v2;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run";
- option java_multiple_files = true;
- option java_outer_classname = "K8sMinProto";
- option java_package = "com.google.cloud.run.v2";
- option (google.api.resource_definition) = {
- type: "cloudkms.googleapis.com/CryptoKey"
- pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"
- };
- option (google.api.resource_definition) = {
- type: "secretmanager.googleapis.com/Secret"
- pattern: "projects/{project}/secrets/{secret}"
- };
- option (google.api.resource_definition) = {
- type: "secretmanager.googleapis.com/SecretVersion"
- pattern: "projects/{project}/secrets/{secret}/versions/{version}"
- };
- option (google.api.resource_definition) = {
- type: "vpcaccess.googleapis.com/Connector"
- pattern: "projects/{project}/locations/{location}/connectors/{connector}"
- };
- message Container {
-
- string name = 1;
-
-
- string image = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
-
-
- repeated string command = 3;
-
-
-
-
-
-
-
-
-
- repeated string args = 4;
-
- repeated EnvVar env = 5;
-
-
-
- ResourceRequirements resources = 6;
-
-
-
-
-
-
- repeated ContainerPort ports = 7;
-
- repeated VolumeMount volume_mounts = 8;
-
-
-
- string working_dir = 9;
-
-
-
-
- Probe liveness_probe = 10;
-
-
-
-
-
-
- Probe startup_probe = 11;
- }
- message ResourceRequirements {
-
-
-
-
-
- map<string, string> limits = 1;
-
- bool cpu_idle = 2;
- }
- message EnvVar {
-
-
- string name = 1 [(google.api.field_behavior) = REQUIRED];
- oneof values {
-
-
-
-
-
-
-
-
- string value = 2;
-
- EnvVarSource value_source = 3;
- }
- }
- message EnvVarSource {
-
- SecretKeySelector secret_key_ref = 1;
- }
- message SecretKeySelector {
-
-
-
-
- string secret = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "secretmanager.googleapis.com/Secret"
- }
- ];
-
-
-
- string version = 2 [(google.api.resource_reference) = {
- type: "secretmanager.googleapis.com/SecretVersion"
- }];
- }
- message ContainerPort {
-
-
- string name = 1;
-
-
- int32 container_port = 3;
- }
- message VolumeMount {
-
- string name = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
- string mount_path = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message Volume {
-
- string name = 1 [(google.api.field_behavior) = REQUIRED];
- oneof volume_type {
-
-
- SecretVolumeSource secret = 2;
-
-
-
- CloudSqlInstance cloud_sql_instance = 3;
- }
- }
- message SecretVolumeSource {
-
-
-
-
- string secret = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
- repeated VersionToPath items = 2;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- int32 default_mode = 3;
- }
- message VersionToPath {
-
- string path = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
- string version = 2;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- int32 mode = 3;
- }
- message CloudSqlInstance {
-
-
-
-
-
- repeated string instances = 1;
- }
- message Probe {
-
-
-
-
-
-
- int32 initial_delay_seconds = 1;
-
-
-
-
-
- int32 timeout_seconds = 2;
-
-
-
-
- int32 period_seconds = 3;
-
-
- int32 failure_threshold = 4;
- oneof probe_type {
-
-
- HTTPGetAction http_get = 5;
-
-
- TCPSocketAction tcp_socket = 6;
-
-
- GRPCAction grpc = 7;
- }
- }
- message HTTPGetAction {
-
- string path = 1;
-
- repeated HTTPHeader http_headers = 4;
- }
- message HTTPHeader {
-
- string name = 1 [(google.api.field_behavior) = REQUIRED];
-
- string value = 2;
- }
- message TCPSocketAction {
-
-
- int32 port = 1;
- }
- message GRPCAction {
-
-
- int32 port = 1;
-
-
-
- string service = 2;
- }
|