@google-cloud/run
Version:
1,227 lines (1,226 loc) • 277 kB
JSON
{
"nested": {
"google": {
"nested": {
"cloud": {
"nested": {
"run": {
"nested": {
"v2": {
"options": {
"go_package": "cloud.google.com/go/run/apiv2/runpb;runpb",
"java_multiple_files": true,
"java_outer_classname": "WorkerPoolRevisionTemplateProto",
"java_package": "com.google.cloud.run.v2",
"(google.api.resource_definition).type": "cloudbuild.googleapis.com/Build",
"(google.api.resource_definition).pattern": "projects/{project}/locations/{location}/builds/{build}"
},
"nested": {
"Builds": {
"options": {
"(google.api.default_host)": "run.googleapis.com",
"(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform"
},
"methods": {
"SubmitBuild": {
"requestType": "SubmitBuildRequest",
"responseType": "SubmitBuildResponse",
"options": {
"(google.api.http).post": "/v2/{parent=projects/*/locations/*}/builds:submit",
"(google.api.http).body": "*"
},
"parsedOptions": [
{
"(google.api.http)": {
"post": "/v2/{parent=projects/*/locations/*}/builds:submit",
"body": "*"
}
}
]
}
}
},
"SubmitBuildRequest": {
"oneofs": {
"source": {
"oneof": [
"storageSource"
]
},
"buildType": {
"oneof": [
"buildpackBuild",
"dockerBuild"
]
}
},
"fields": {
"parent": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"storageSource": {
"type": "StorageSource",
"id": 2,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"imageUri": {
"type": "string",
"id": 3,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"buildpackBuild": {
"type": "BuildpacksBuild",
"id": 4
},
"dockerBuild": {
"type": "DockerBuild",
"id": 5
},
"serviceAccount": {
"type": "string",
"id": 6,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"workerPool": {
"type": "string",
"id": 7,
"options": {
"(google.api.field_behavior)": "OPTIONAL",
"(google.api.resource_reference).type": "cloudbuild.googleapis.com/BuildWorkerPool"
}
},
"tags": {
"rule": "repeated",
"type": "string",
"id": 8,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
}
},
"nested": {
"DockerBuild": {
"fields": {}
},
"BuildpacksBuild": {
"fields": {
"runtime": {
"type": "string",
"id": 1,
"options": {
"deprecated": true
}
},
"functionTarget": {
"type": "string",
"id": 2,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"cacheImageUri": {
"type": "string",
"id": 3,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"baseImage": {
"type": "string",
"id": 4,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"environmentVariables": {
"keyType": "string",
"type": "string",
"id": 5,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"enableAutomaticUpdates": {
"type": "bool",
"id": 6,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"projectDescriptor": {
"type": "string",
"id": 7,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
}
}
}
}
},
"SubmitBuildResponse": {
"fields": {
"buildOperation": {
"type": "google.longrunning.Operation",
"id": 1
},
"baseImageUri": {
"type": "string",
"id": 2
},
"baseImageWarning": {
"type": "string",
"id": 3
}
}
},
"StorageSource": {
"fields": {
"bucket": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"object": {
"type": "string",
"id": 2,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"generation": {
"type": "int64",
"id": 3,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
}
}
},
"Condition": {
"oneofs": {
"reasons": {
"oneof": [
"reason",
"revisionReason",
"executionReason"
]
}
},
"fields": {
"type": {
"type": "string",
"id": 1
},
"state": {
"type": "State",
"id": 2
},
"message": {
"type": "string",
"id": 3
},
"lastTransitionTime": {
"type": "google.protobuf.Timestamp",
"id": 4
},
"severity": {
"type": "Severity",
"id": 5
},
"reason": {
"type": "CommonReason",
"id": 6,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"revisionReason": {
"type": "RevisionReason",
"id": 9,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"executionReason": {
"type": "ExecutionReason",
"id": 11,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
}
},
"nested": {
"State": {
"values": {
"STATE_UNSPECIFIED": 0,
"CONDITION_PENDING": 1,
"CONDITION_RECONCILING": 2,
"CONDITION_FAILED": 3,
"CONDITION_SUCCEEDED": 4
}
},
"Severity": {
"values": {
"SEVERITY_UNSPECIFIED": 0,
"ERROR": 1,
"WARNING": 2,
"INFO": 3
}
},
"CommonReason": {
"values": {
"COMMON_REASON_UNDEFINED": 0,
"UNKNOWN": 1,
"REVISION_FAILED": 3,
"PROGRESS_DEADLINE_EXCEEDED": 4,
"CONTAINER_MISSING": 6,
"CONTAINER_PERMISSION_DENIED": 7,
"CONTAINER_IMAGE_UNAUTHORIZED": 8,
"CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED": 9,
"ENCRYPTION_KEY_PERMISSION_DENIED": 10,
"ENCRYPTION_KEY_CHECK_FAILED": 11,
"SECRETS_ACCESS_CHECK_FAILED": 12,
"WAITING_FOR_OPERATION": 13,
"IMMEDIATE_RETRY": 14,
"POSTPONED_RETRY": 15,
"INTERNAL": 16,
"VPC_NETWORK_NOT_FOUND": 17
}
},
"RevisionReason": {
"values": {
"REVISION_REASON_UNDEFINED": 0,
"PENDING": 1,
"RESERVE": 2,
"RETIRED": 3,
"RETIRING": 4,
"RECREATING": 5,
"HEALTH_CHECK_CONTAINER_ERROR": 6,
"CUSTOMIZED_PATH_RESPONSE_PENDING": 7,
"MIN_INSTANCES_NOT_PROVISIONED": 8,
"ACTIVE_REVISION_LIMIT_REACHED": 9,
"NO_DEPLOYMENT": 10,
"HEALTH_CHECK_SKIPPED": 11,
"MIN_INSTANCES_WARMING": 12
}
},
"ExecutionReason": {
"values": {
"EXECUTION_REASON_UNDEFINED": 0,
"JOB_STATUS_SERVICE_POLLING_ERROR": 1,
"NON_ZERO_EXIT_CODE": 2,
"CANCELLED": 3,
"CANCELLING": 4,
"DELETED": 5
}
}
}
},
"Executions": {
"options": {
"(google.api.default_host)": "run.googleapis.com",
"(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform"
},
"methods": {
"GetExecution": {
"requestType": "GetExecutionRequest",
"responseType": "Execution",
"options": {
"(google.api.http).get": "/v2/{name=projects/*/locations/*/jobs/*/executions/*}",
"(google.api.method_signature)": "name"
},
"parsedOptions": [
{
"(google.api.http)": {
"get": "/v2/{name=projects/*/locations/*/jobs/*/executions/*}"
}
},
{
"(google.api.method_signature)": "name"
}
]
},
"ListExecutions": {
"requestType": "ListExecutionsRequest",
"responseType": "ListExecutionsResponse",
"options": {
"(google.api.http).get": "/v2/{parent=projects/*/locations/*/jobs/*}/executions",
"(google.api.method_signature)": "parent"
},
"parsedOptions": [
{
"(google.api.http)": {
"get": "/v2/{parent=projects/*/locations/*/jobs/*}/executions"
}
},
{
"(google.api.method_signature)": "parent"
}
]
},
"DeleteExecution": {
"requestType": "DeleteExecutionRequest",
"responseType": "google.longrunning.Operation",
"options": {
"(google.api.http).delete": "/v2/{name=projects/*/locations/*/jobs/*/executions/*}",
"(google.api.method_signature)": "name",
"(google.longrunning.operation_info).response_type": "Execution",
"(google.longrunning.operation_info).metadata_type": "Execution"
},
"parsedOptions": [
{
"(google.api.http)": {
"delete": "/v2/{name=projects/*/locations/*/jobs/*/executions/*}"
}
},
{
"(google.api.method_signature)": "name"
},
{
"(google.longrunning.operation_info)": {
"response_type": "Execution",
"metadata_type": "Execution"
}
}
]
},
"CancelExecution": {
"requestType": "CancelExecutionRequest",
"responseType": "google.longrunning.Operation",
"options": {
"(google.api.http).post": "/v2/{name=projects/*/locations/*/jobs/*/executions/*}:cancel",
"(google.api.http).body": "*",
"(google.api.method_signature)": "name",
"(google.longrunning.operation_info).response_type": "Execution",
"(google.longrunning.operation_info).metadata_type": "Execution"
},
"parsedOptions": [
{
"(google.api.http)": {
"post": "/v2/{name=projects/*/locations/*/jobs/*/executions/*}:cancel",
"body": "*"
}
},
{
"(google.api.method_signature)": "name"
},
{
"(google.longrunning.operation_info)": {
"response_type": "Execution",
"metadata_type": "Execution"
}
}
]
}
}
},
"GetExecutionRequest": {
"fields": {
"name": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED",
"(google.api.resource_reference).type": "run.googleapis.com/Execution"
}
}
}
},
"ListExecutionsRequest": {
"fields": {
"parent": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED",
"(google.api.resource_reference).child_type": "run.googleapis.com/Execution"
}
},
"pageSize": {
"type": "int32",
"id": 2
},
"pageToken": {
"type": "string",
"id": 3
},
"showDeleted": {
"type": "bool",
"id": 4
}
}
},
"ListExecutionsResponse": {
"fields": {
"executions": {
"rule": "repeated",
"type": "Execution",
"id": 1
},
"nextPageToken": {
"type": "string",
"id": 2
}
}
},
"DeleteExecutionRequest": {
"fields": {
"name": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED",
"(google.api.resource_reference).type": "run.googleapis.com/Execution"
}
},
"validateOnly": {
"type": "bool",
"id": 2
},
"etag": {
"type": "string",
"id": 3
}
}
},
"CancelExecutionRequest": {
"fields": {
"name": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED",
"(google.api.resource_reference).type": "run.googleapis.com/Execution"
}
},
"validateOnly": {
"type": "bool",
"id": 2
},
"etag": {
"type": "string",
"id": 3
}
}
},
"Execution": {
"options": {
"(google.api.resource).type": "run.googleapis.com/Execution",
"(google.api.resource).pattern": "projects/{project}/locations/{location}/jobs/{job}/executions/{execution}",
"(google.api.resource).style": "DECLARATIVE_FRIENDLY"
},
"fields": {
"name": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"uid": {
"type": "string",
"id": 2,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"creator": {
"type": "string",
"id": 32,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"generation": {
"type": "int64",
"id": 3,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"labels": {
"keyType": "string",
"type": "string",
"id": 4,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"annotations": {
"keyType": "string",
"type": "string",
"id": 5,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"createTime": {
"type": "google.protobuf.Timestamp",
"id": 6,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"startTime": {
"type": "google.protobuf.Timestamp",
"id": 22,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"completionTime": {
"type": "google.protobuf.Timestamp",
"id": 7,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"updateTime": {
"type": "google.protobuf.Timestamp",
"id": 8,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"deleteTime": {
"type": "google.protobuf.Timestamp",
"id": 9,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"expireTime": {
"type": "google.protobuf.Timestamp",
"id": 10,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"launchStage": {
"type": "google.api.LaunchStage",
"id": 11
},
"job": {
"type": "string",
"id": 12,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY",
"(google.api.resource_reference).type": "run.googleapis.com/Job"
}
},
"parallelism": {
"type": "int32",
"id": 13,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"taskCount": {
"type": "int32",
"id": 14,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"template": {
"type": "TaskTemplate",
"id": 15,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"reconciling": {
"type": "bool",
"id": 16,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"conditions": {
"rule": "repeated",
"type": "Condition",
"id": 17,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"observedGeneration": {
"type": "int64",
"id": 18,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"runningCount": {
"type": "int32",
"id": 19,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"succeededCount": {
"type": "int32",
"id": 20,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"failedCount": {
"type": "int32",
"id": 21,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"cancelledCount": {
"type": "int32",
"id": 24,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"retriedCount": {
"type": "int32",
"id": 25,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"logUri": {
"type": "string",
"id": 26,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"satisfiesPzs": {
"type": "bool",
"id": 27,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"etag": {
"type": "string",
"id": 99,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
}
}
},
"TaskTemplate": {
"oneofs": {
"retries": {
"oneof": [
"maxRetries"
]
},
"_gpuZonalRedundancyDisabled": {
"oneof": [
"gpuZonalRedundancyDisabled"
]
}
},
"fields": {
"containers": {
"rule": "repeated",
"type": "Container",
"id": 1
},
"volumes": {
"rule": "repeated",
"type": "Volume",
"id": 2,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"maxRetries": {
"type": "int32",
"id": 3
},
"timeout": {
"type": "google.protobuf.Duration",
"id": 4,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"serviceAccount": {
"type": "string",
"id": 5,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"executionEnvironment": {
"type": "ExecutionEnvironment",
"id": 6,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"encryptionKey": {
"type": "string",
"id": 7,
"options": {
"(google.api.resource_reference).type": "cloudkms.googleapis.com/CryptoKey"
}
},
"vpcAccess": {
"type": "VpcAccess",
"id": 8,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"nodeSelector": {
"type": "NodeSelector",
"id": 11,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"gpuZonalRedundancyDisabled": {
"type": "bool",
"id": 12,
"options": {
"(google.api.field_behavior)": "OPTIONAL",
"proto3_optional": true
}
}
}
},
"Container": {
"fields": {
"name": {
"type": "string",
"id": 1
},
"image": {
"type": "string",
"id": 2,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"command": {
"rule": "repeated",
"type": "string",
"id": 3
},
"args": {
"rule": "repeated",
"type": "string",
"id": 4
},
"env": {
"rule": "repeated",
"type": "EnvVar",
"id": 5
},
"resources": {
"type": "ResourceRequirements",
"id": 6
},
"ports": {
"rule": "repeated",
"type": "ContainerPort",
"id": 7
},
"volumeMounts": {
"rule": "repeated",
"type": "VolumeMount",
"id": 8
},
"workingDir": {
"type": "string",
"id": 9
},
"livenessProbe": {
"type": "Probe",
"id": 10
},
"startupProbe": {
"type": "Probe",
"id": 11
},
"dependsOn": {
"rule": "repeated",
"type": "string",
"id": 12
},
"baseImageUri": {
"type": "string",
"id": 13
},
"buildInfo": {
"type": "BuildInfo",
"id": 15,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
}
}
},
"ResourceRequirements": {
"fields": {
"limits": {
"keyType": "string",
"type": "string",
"id": 1
},
"cpuIdle": {
"type": "bool",
"id": 2
},
"startupCpuBoost": {
"type": "bool",
"id": 3
}
}
},
"EnvVar": {
"oneofs": {
"values": {
"oneof": [
"value",
"valueSource"
]
}
},
"fields": {
"name": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"value": {
"type": "string",
"id": 2
},
"valueSource": {
"type": "EnvVarSource",
"id": 3
}
}
},
"EnvVarSource": {
"fields": {
"secretKeyRef": {
"type": "SecretKeySelector",
"id": 1
}
}
},
"SecretKeySelector": {
"fields": {
"secret": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED",
"(google.api.resource_reference).type": "secretmanager.googleapis.com/Secret"
}
},
"version": {
"type": "string",
"id": 2,
"options": {
"(google.api.resource_reference).type": "secretmanager.googleapis.com/SecretVersion"
}
}
}
},
"ContainerPort": {
"fields": {
"name": {
"type": "string",
"id": 1
},
"containerPort": {
"type": "int32",
"id": 3
}
}
},
"VolumeMount": {
"fields": {
"name": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"mountPath": {
"type": "string",
"id": 3,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
}
}
},
"Volume": {
"oneofs": {
"volumeType": {
"oneof": [
"secret",
"cloudSqlInstance",
"emptyDir",
"nfs",
"gcs"
]
}
},
"fields": {
"name": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"secret": {
"type": "SecretVolumeSource",
"id": 2
},
"cloudSqlInstance": {
"type": "CloudSqlInstance",
"id": 3
},
"emptyDir": {
"type": "EmptyDirVolumeSource",
"id": 4
},
"nfs": {
"type": "NFSVolumeSource",
"id": 5
},
"gcs": {
"type": "GCSVolumeSource",
"id": 6
}
}
},
"SecretVolumeSource": {
"fields": {
"secret": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"items": {
"rule": "repeated",
"type": "VersionToPath",
"id": 2
},
"defaultMode": {
"type": "int32",
"id": 3
}
}
},
"VersionToPath": {
"fields": {
"path": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"version": {
"type": "string",
"id": 2
},
"mode": {
"type": "int32",
"id": 3
}
}
},
"CloudSqlInstance": {
"fields": {
"instances": {
"rule": "repeated",
"type": "string",
"id": 1
}
}
},
"EmptyDirVolumeSource": {
"fields": {
"medium": {
"type": "Medium",
"id": 1
},
"sizeLimit": {
"type": "string",
"id": 2
}
},
"nested": {
"Medium": {
"values": {
"MEDIUM_UNSPECIFIED": 0,
"MEMORY": 1
}
}
}
},
"NFSVolumeSource": {
"fields": {
"server": {
"type": "string",
"id": 1
},
"path": {
"type": "string",
"id": 2
},
"readOnly": {
"type": "bool",
"id": 3
}
}
},
"GCSVolumeSource": {
"fields": {
"bucket": {
"type": "string",
"id": 1
},
"readOnly": {
"type": "bool",
"id": 2
},
"mountOptions": {
"rule": "repeated",
"type": "string",
"id": 3
}
}
},
"Probe": {
"oneofs": {
"probeType": {
"oneof": [
"httpGet",
"tcpSocket",
"grpc"
]
}
},
"fields": {
"initialDelaySeconds": {
"type": "int32",
"id": 1,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"timeoutSeconds": {
"type": "int32",
"id": 2,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"periodSeconds": {
"type": "int32",
"id": 3,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"failureThreshold": {
"type": "int32",
"id": 4,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"httpGet": {
"type": "HTTPGetAction",
"id": 5,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"tcpSocket": {
"type": "TCPSocketAction",
"id": 6,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"grpc": {
"type": "GRPCAction",
"id": 7,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
}
}
},
"HTTPGetAction": {
"fields": {
"path": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"httpHeaders": {
"rule": "repeated",
"type": "HTTPHeader",
"id": 4,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"port": {
"type": "int32",
"id": 5,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
}
}
},
"HTTPHeader": {
"fields": {
"name": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"value": {
"type": "string",
"id": 2,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}