google-cloud-run-v2 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/run/v2/condition_pb.rb +1 -1
- data/lib/google/cloud/run/v2/execution_pb.rb +2 -1
- data/lib/google/cloud/run/v2/execution_services_pb.rb +2 -0
- data/lib/google/cloud/run/v2/executions/client.rb +115 -6
- data/lib/google/cloud/run/v2/executions/rest/client.rb +108 -6
- data/lib/google/cloud/run/v2/executions/rest/service_stub.rb +60 -0
- data/lib/google/cloud/run/v2/job_pb.rb +8 -1
- data/lib/google/cloud/run/v2/jobs/client.rb +34 -13
- data/lib/google/cloud/run/v2/jobs/rest/client.rb +4 -1
- data/lib/google/cloud/run/v2/k8s.min_pb.rb +3 -1
- data/lib/google/cloud/run/v2/task_pb.rb +1 -1
- data/lib/google/cloud/run/v2/vendor_settings_pb.rb +3 -1
- data/lib/google/cloud/run/v2/version.rb +1 -1
- data/proto_docs/google/cloud/run/v2/condition.rb +3 -0
- data/proto_docs/google/cloud/run/v2/execution.rb +26 -6
- data/proto_docs/google/cloud/run/v2/job.rb +42 -0
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +44 -4
- data/proto_docs/google/cloud/run/v2/task.rb +7 -2
- data/proto_docs/google/cloud/run/v2/vendor_settings.rb +33 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4185c709f3d4535c1d850f277b3247ce35bcf5b0e31261ea39e9a89aa042aae
|
4
|
+
data.tar.gz: 163386cf2caeac6d4ece1e8cbe361d32a1864e514d81c163adeb12d36af3e54c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dae0e72d463430f9250febd14c29c78cadb7053b15b6e35239a7a28bff34ffaa7615693a570505c6399d8ac53e1c0f5dc8b74a2e6d2be4778ded46884d8bc25d
|
7
|
+
data.tar.gz: c4b177b0566ddb605fa7b92273ac6be3fa4bfc6c69dc6a38e53a3f57a4efe0efc36aee83ad6b1caa6aeedf4f2d12d48bbf8bae5857a61115402764abf4097cff
|
@@ -7,7 +7,7 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/protobuf/timestamp_pb'
|
8
8
|
|
9
9
|
|
10
|
-
descriptor_data = "\n#google/cloud/run/v2/condition.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
10
|
+
descriptor_data = "\n#google/cloud/run/v2/condition.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9d\x0c\n\tCondition\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x33\n\x05state\x18\x02 \x01(\x0e\x32$.google.cloud.run.v2.Condition.State\x12\x0f\n\x07message\x18\x03 \x01(\t\x12\x38\n\x14last_transition_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x08severity\x18\x05 \x01(\x0e\x32\'.google.cloud.run.v2.Condition.Severity\x12=\n\x06reason\x18\x06 \x01(\x0e\x32+.google.cloud.run.v2.Condition.CommonReasonH\x00\x12H\n\x0frevision_reason\x18\t \x01(\x0e\x32-.google.cloud.run.v2.Condition.RevisionReasonH\x00\x12J\n\x10\x65xecution_reason\x18\x0b \x01(\x0e\x32..google.cloud.run.v2.Condition.ExecutionReasonH\x00\"\x7f\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43ONDITION_PENDING\x10\x01\x12\x19\n\x15\x43ONDITION_RECONCILING\x10\x02\x12\x14\n\x10\x43ONDITION_FAILED\x10\x03\x12\x17\n\x13\x43ONDITION_SUCCEEDED\x10\x04\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\x08\n\x04INFO\x10\x03\"\xb2\x03\n\x0c\x43ommonReason\x12\x1b\n\x17\x43OMMON_REASON_UNDEFINED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fREVISION_FAILED\x10\x03\x12\x1e\n\x1aPROGRESS_DEADLINE_EXCEEDED\x10\x04\x12\x15\n\x11\x43ONTAINER_MISSING\x10\x06\x12\x1f\n\x1b\x43ONTAINER_PERMISSION_DENIED\x10\x07\x12 \n\x1c\x43ONTAINER_IMAGE_UNAUTHORIZED\x10\x08\x12.\n*CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED\x10\t\x12$\n ENCRYPTION_KEY_PERMISSION_DENIED\x10\n\x12\x1f\n\x1b\x45NCRYPTION_KEY_CHECK_FAILED\x10\x0b\x12\x1f\n\x1bSECRETS_ACCESS_CHECK_FAILED\x10\x0c\x12\x19\n\x15WAITING_FOR_OPERATION\x10\r\x12\x13\n\x0fIMMEDIATE_RETRY\x10\x0e\x12\x13\n\x0fPOSTPONED_RETRY\x10\x0f\x12\x0c\n\x08INTERNAL\x10\x10\"\xca\x02\n\x0eRevisionReason\x12\x1d\n\x19REVISION_REASON_UNDEFINED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RESERVE\x10\x02\x12\x0b\n\x07RETIRED\x10\x03\x12\x0c\n\x08RETIRING\x10\x04\x12\x0e\n\nRECREATING\x10\x05\x12 \n\x1cHEALTH_CHECK_CONTAINER_ERROR\x10\x06\x12$\n CUSTOMIZED_PATH_RESPONSE_PENDING\x10\x07\x12!\n\x1dMIN_INSTANCES_NOT_PROVISIONED\x10\x08\x12!\n\x1d\x41\x43TIVE_REVISION_LIMIT_REACHED\x10\t\x12\x11\n\rNO_DEPLOYMENT\x10\n\x12\x18\n\x14HEALTH_CHECK_SKIPPED\x10\x0b\x12\x19\n\x15MIN_INSTANCES_WARMING\x10\x0c\"\x9b\x01\n\x0f\x45xecutionReason\x12\x1e\n\x1a\x45XECUTION_REASON_UNDEFINED\x10\x00\x12$\n JOB_STATUS_SERVICE_POLLING_ERROR\x10\x01\x12\x16\n\x12NON_ZERO_EXIT_CODE\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\x0e\n\nCANCELLING\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05\x42\t\n\x07reasonsBV\n\x17\x63om.google.cloud.run.v2B\x0e\x43onditionProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
11
11
|
|
12
12
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
13
|
|
@@ -15,7 +15,7 @@ require 'google/longrunning/operations_pb'
|
|
15
15
|
require 'google/protobuf/timestamp_pb'
|
16
16
|
|
17
17
|
|
18
|
-
descriptor_data = "\n#google/cloud/run/v2/execution.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/run/v2/condition.proto\x1a\'google/cloud/run/v2/task_template.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"I\n\x13GetExecutionRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1crun.googleapis.com/Execution\"\x8a\x01\n\x15ListExecutionsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1crun.googleapis.com/Execution\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"e\n\x16ListExecutionsResponse\x12\x32\n\nexecutions\x18\x01 \x03(\x0b\x32\x1e.google.cloud.run.v2.Execution\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"q\n\x16\x44\x65leteExecutionRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1crun.googleapis.com/Execution\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"\x82\n\n\tExecution\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\x06labels\x18\x04 \x03(\x0b\x32*.google.cloud.run.v2.Execution.LabelsEntryB\x03\xe0\x41\x03\x12I\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32/.google.cloud.run.v2.Execution.AnnotationsEntryB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x38\n\x0f\x63ompletion_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12-\n\x0claunch_stage\x18\x0b \x01(\x0e\x32\x17.google.api.LaunchStage\x12+\n\x03job\x18\x0c \x01(\tB\x1e\xe0\x41\x03\xfa\x41\x18\n\x16run.googleapis.com/Job\x12\x18\n\x0bparallelism\x18\r \x01(\x05\x42\x03\xe0\x41\x03\x12\x17\n\ntask_count\x18\x0e \x01(\x05\x42\x03\xe0\x41\x03\x12\x38\n\x08template\x18\x0f \x01(\x0b\x32!.google.cloud.run.v2.TaskTemplateB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x10 \x01(\x08\x42\x03\xe0\x41\x03\x12\x37\n\nconditions\x18\x11 \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12 \n\x13observed_generation\x18\x12 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1a\n\rrunning_count\x18\x13 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1c\n\x0fsucceeded_count\x18\x14 \x01(\x05\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x66\x61iled_count\x18\x15 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1c\n\x0f\x63\x61ncelled_count\x18\x18 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1a\n\rretried_count\x18\x19 \x01(\x05\x42\x03\xe0\x41\x03\x12\x14\n\x07log_uri\x18\x1a \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x63 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:o\xea\x41l\n\x1crun.googleapis.com/Execution\x12Iprojects/{project}/locations/{location}/jobs/{job}/executions/{execution}R\x01\x01\x32\
|
18
|
+
descriptor_data = "\n#google/cloud/run/v2/execution.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/run/v2/condition.proto\x1a\'google/cloud/run/v2/task_template.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"I\n\x13GetExecutionRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1crun.googleapis.com/Execution\"\x8a\x01\n\x15ListExecutionsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1crun.googleapis.com/Execution\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"e\n\x16ListExecutionsResponse\x12\x32\n\nexecutions\x18\x01 \x03(\x0b\x32\x1e.google.cloud.run.v2.Execution\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"q\n\x16\x44\x65leteExecutionRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1crun.googleapis.com/Execution\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"q\n\x16\x43\x61ncelExecutionRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1crun.googleapis.com/Execution\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"\x82\n\n\tExecution\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\x06labels\x18\x04 \x03(\x0b\x32*.google.cloud.run.v2.Execution.LabelsEntryB\x03\xe0\x41\x03\x12I\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32/.google.cloud.run.v2.Execution.AnnotationsEntryB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x38\n\x0f\x63ompletion_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12-\n\x0claunch_stage\x18\x0b \x01(\x0e\x32\x17.google.api.LaunchStage\x12+\n\x03job\x18\x0c \x01(\tB\x1e\xe0\x41\x03\xfa\x41\x18\n\x16run.googleapis.com/Job\x12\x18\n\x0bparallelism\x18\r \x01(\x05\x42\x03\xe0\x41\x03\x12\x17\n\ntask_count\x18\x0e \x01(\x05\x42\x03\xe0\x41\x03\x12\x38\n\x08template\x18\x0f \x01(\x0b\x32!.google.cloud.run.v2.TaskTemplateB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x10 \x01(\x08\x42\x03\xe0\x41\x03\x12\x37\n\nconditions\x18\x11 \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12 \n\x13observed_generation\x18\x12 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1a\n\rrunning_count\x18\x13 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1c\n\x0fsucceeded_count\x18\x14 \x01(\x05\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x66\x61iled_count\x18\x15 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1c\n\x0f\x63\x61ncelled_count\x18\x18 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1a\n\rretried_count\x18\x19 \x01(\x05\x42\x03\xe0\x41\x03\x12\x14\n\x07log_uri\x18\x1a \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x63 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:o\xea\x41l\n\x1crun.googleapis.com/Execution\x12Iprojects/{project}/locations/{location}/jobs/{job}/executions/{execution}R\x01\x01\x32\xb1\x06\n\nExecutions\x12\x9e\x01\n\x0cGetExecution\x12(.google.cloud.run.v2.GetExecutionRequest\x1a\x1e.google.cloud.run.v2.Execution\"D\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{name=projects/*/locations/*/jobs/*/executions/*}\xda\x41\x04name\x12\xb1\x01\n\x0eListExecutions\x12*.google.cloud.run.v2.ListExecutionsRequest\x1a+.google.cloud.run.v2.ListExecutionsResponse\"F\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{parent=projects/*/locations/*/jobs/*}/executions\xda\x41\x06parent\x12\xbc\x01\n\x0f\x44\x65leteExecution\x12+.google.cloud.run.v2.DeleteExecutionRequest\x1a\x1d.google.longrunning.Operation\"]\x82\xd3\xe4\x93\x02\x37*5/v2/{name=projects/*/locations/*/jobs/*/executions/*}\xda\x41\x04name\xca\x41\x16\n\tExecution\x12\tExecution\x12\xc6\x01\n\x0f\x43\x61ncelExecution\x12+.google.cloud.run.v2.CancelExecutionRequest\x1a\x1d.google.longrunning.Operation\"g\x82\xd3\xe4\x93\x02\x41\"</v2/{name=projects/*/locations/*/jobs/*/executions/*}:cancel:\x01*\xda\x41\x04name\xca\x41\x16\n\tExecution\x12\tExecution\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBV\n\x17\x63om.google.cloud.run.v2B\x0e\x45xecutionProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
19
19
|
|
20
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
21
|
|
@@ -52,6 +52,7 @@ module Google
|
|
52
52
|
ListExecutionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListExecutionsRequest").msgclass
|
53
53
|
ListExecutionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListExecutionsResponse").msgclass
|
54
54
|
DeleteExecutionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.DeleteExecutionRequest").msgclass
|
55
|
+
CancelExecutionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.CancelExecutionRequest").msgclass
|
55
56
|
Execution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Execution").msgclass
|
56
57
|
end
|
57
58
|
end
|
@@ -39,6 +39,8 @@ module Google
|
|
39
39
|
rpc :ListExecutions, ::Google::Cloud::Run::V2::ListExecutionsRequest, ::Google::Cloud::Run::V2::ListExecutionsResponse
|
40
40
|
# Deletes an Execution.
|
41
41
|
rpc :DeleteExecution, ::Google::Cloud::Run::V2::DeleteExecutionRequest, ::Google::Longrunning::Operation
|
42
|
+
# Cancels an Execution.
|
43
|
+
rpc :CancelExecution, ::Google::Cloud::Run::V2::CancelExecutionRequest, ::Google::Longrunning::Operation
|
42
44
|
end
|
43
45
|
|
44
46
|
Stub = Service.rpc_stub_class
|
@@ -193,8 +193,8 @@ module Google
|
|
193
193
|
# @param name [::String]
|
194
194
|
# Required. The full name of the Execution.
|
195
195
|
# Format:
|
196
|
-
# projects
|
197
|
-
# where
|
196
|
+
# `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`,
|
197
|
+
# where `{project}` can be project id or number.
|
198
198
|
#
|
199
199
|
# @yield [response, operation] Access the result along with the RPC operation
|
200
200
|
# @yieldparam response [::Google::Cloud::Run::V2::Execution]
|
@@ -281,8 +281,8 @@ module Google
|
|
281
281
|
# @param parent [::String]
|
282
282
|
# Required. The Execution from which the Executions should be listed.
|
283
283
|
# To list all Executions across Jobs, use "-" instead of Job name.
|
284
|
-
# Format: projects
|
285
|
-
# can be project id or number.
|
284
|
+
# Format: `projects/{project}/locations/{location}/jobs/{job}`, where
|
285
|
+
# `{project}` can be project id or number.
|
286
286
|
# @param page_size [::Integer]
|
287
287
|
# Maximum number of Executions to return in this call.
|
288
288
|
# @param page_token [::String]
|
@@ -381,8 +381,8 @@ module Google
|
|
381
381
|
# @param name [::String]
|
382
382
|
# Required. The name of the Execution to delete.
|
383
383
|
# Format:
|
384
|
-
# projects
|
385
|
-
# where
|
384
|
+
# `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`,
|
385
|
+
# where `{project}` can be project id or number.
|
386
386
|
# @param validate_only [::Boolean]
|
387
387
|
# Indicates that the request should be validated without actually
|
388
388
|
# deleting any resources.
|
@@ -462,6 +462,108 @@ module Google
|
|
462
462
|
raise ::Google::Cloud::Error.from_error(e)
|
463
463
|
end
|
464
464
|
|
465
|
+
##
|
466
|
+
# Cancels an Execution.
|
467
|
+
#
|
468
|
+
# @overload cancel_execution(request, options = nil)
|
469
|
+
# Pass arguments to `cancel_execution` via a request object, either of type
|
470
|
+
# {::Google::Cloud::Run::V2::CancelExecutionRequest} or an equivalent Hash.
|
471
|
+
#
|
472
|
+
# @param request [::Google::Cloud::Run::V2::CancelExecutionRequest, ::Hash]
|
473
|
+
# A request object representing the call parameters. Required. To specify no
|
474
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
475
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
476
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
477
|
+
#
|
478
|
+
# @overload cancel_execution(name: nil, validate_only: nil, etag: nil)
|
479
|
+
# Pass arguments to `cancel_execution` via keyword arguments. Note that at
|
480
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
481
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
482
|
+
#
|
483
|
+
# @param name [::String]
|
484
|
+
# Required. The name of the Execution to cancel.
|
485
|
+
# Format:
|
486
|
+
# `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`,
|
487
|
+
# where `{project}` can be project id or number.
|
488
|
+
# @param validate_only [::Boolean]
|
489
|
+
# Indicates that the request should be validated without actually
|
490
|
+
# cancelling any resources.
|
491
|
+
# @param etag [::String]
|
492
|
+
# A system-generated fingerprint for this version of the resource.
|
493
|
+
# This may be used to detect modification conflict during updates.
|
494
|
+
#
|
495
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
496
|
+
# @yieldparam response [::Gapic::Operation]
|
497
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
498
|
+
#
|
499
|
+
# @return [::Gapic::Operation]
|
500
|
+
#
|
501
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
502
|
+
#
|
503
|
+
# @example Basic example
|
504
|
+
# require "google/cloud/run/v2"
|
505
|
+
#
|
506
|
+
# # Create a client object. The client can be reused for multiple calls.
|
507
|
+
# client = Google::Cloud::Run::V2::Executions::Client.new
|
508
|
+
#
|
509
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
510
|
+
# request = Google::Cloud::Run::V2::CancelExecutionRequest.new
|
511
|
+
#
|
512
|
+
# # Call the cancel_execution method.
|
513
|
+
# result = client.cancel_execution request
|
514
|
+
#
|
515
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
516
|
+
# # check the status of an operation, cancel it, or wait for results.
|
517
|
+
# # Here is how to wait for a response.
|
518
|
+
# result.wait_until_done! timeout: 60
|
519
|
+
# if result.response?
|
520
|
+
# p result.response
|
521
|
+
# else
|
522
|
+
# puts "No response received."
|
523
|
+
# end
|
524
|
+
#
|
525
|
+
def cancel_execution request, options = nil
|
526
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
527
|
+
|
528
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Run::V2::CancelExecutionRequest
|
529
|
+
|
530
|
+
# Converts hash and nil to an options object
|
531
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
532
|
+
|
533
|
+
# Customize the options with defaults
|
534
|
+
metadata = @config.rpcs.cancel_execution.metadata.to_h
|
535
|
+
|
536
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
537
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
538
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
539
|
+
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
540
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
541
|
+
|
542
|
+
header_params = {}
|
543
|
+
if request.name
|
544
|
+
header_params["name"] = request.name
|
545
|
+
end
|
546
|
+
|
547
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
548
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
549
|
+
|
550
|
+
options.apply_defaults timeout: @config.rpcs.cancel_execution.timeout,
|
551
|
+
metadata: metadata,
|
552
|
+
retry_policy: @config.rpcs.cancel_execution.retry_policy
|
553
|
+
|
554
|
+
options.apply_defaults timeout: @config.timeout,
|
555
|
+
metadata: @config.metadata,
|
556
|
+
retry_policy: @config.retry_policy
|
557
|
+
|
558
|
+
@executions_stub.call_rpc :cancel_execution, request, options: options do |response, operation|
|
559
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
560
|
+
yield response, operation if block_given?
|
561
|
+
return response
|
562
|
+
end
|
563
|
+
rescue ::GRPC::BadStatus => e
|
564
|
+
raise ::Google::Cloud::Error.from_error(e)
|
565
|
+
end
|
566
|
+
|
465
567
|
##
|
466
568
|
# Configuration class for the Executions API.
|
467
569
|
#
|
@@ -622,6 +724,11 @@ module Google
|
|
622
724
|
# @return [::Gapic::Config::Method]
|
623
725
|
#
|
624
726
|
attr_reader :delete_execution
|
727
|
+
##
|
728
|
+
# RPC-specific configuration for `cancel_execution`
|
729
|
+
# @return [::Gapic::Config::Method]
|
730
|
+
#
|
731
|
+
attr_reader :cancel_execution
|
625
732
|
|
626
733
|
# @private
|
627
734
|
def initialize parent_rpcs = nil
|
@@ -631,6 +738,8 @@ module Google
|
|
631
738
|
@list_executions = ::Gapic::Config::Method.new list_executions_config
|
632
739
|
delete_execution_config = parent_rpcs.delete_execution if parent_rpcs.respond_to? :delete_execution
|
633
740
|
@delete_execution = ::Gapic::Config::Method.new delete_execution_config
|
741
|
+
cancel_execution_config = parent_rpcs.cancel_execution if parent_rpcs.respond_to? :cancel_execution
|
742
|
+
@cancel_execution = ::Gapic::Config::Method.new cancel_execution_config
|
634
743
|
|
635
744
|
yield self if block_given?
|
636
745
|
end
|
@@ -183,8 +183,8 @@ module Google
|
|
183
183
|
# @param name [::String]
|
184
184
|
# Required. The full name of the Execution.
|
185
185
|
# Format:
|
186
|
-
# projects
|
187
|
-
# where
|
186
|
+
# `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`,
|
187
|
+
# where `{project}` can be project id or number.
|
188
188
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
189
189
|
# @yieldparam result [::Google::Cloud::Run::V2::Execution]
|
190
190
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -264,8 +264,8 @@ module Google
|
|
264
264
|
# @param parent [::String]
|
265
265
|
# Required. The Execution from which the Executions should be listed.
|
266
266
|
# To list all Executions across Jobs, use "-" instead of Job name.
|
267
|
-
# Format: projects
|
268
|
-
# can be project id or number.
|
267
|
+
# Format: `projects/{project}/locations/{location}/jobs/{job}`, where
|
268
|
+
# `{project}` can be project id or number.
|
269
269
|
# @param page_size [::Integer]
|
270
270
|
# Maximum number of Executions to return in this call.
|
271
271
|
# @param page_token [::String]
|
@@ -357,8 +357,8 @@ module Google
|
|
357
357
|
# @param name [::String]
|
358
358
|
# Required. The name of the Execution to delete.
|
359
359
|
# Format:
|
360
|
-
# projects
|
361
|
-
# where
|
360
|
+
# `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`,
|
361
|
+
# where `{project}` can be project id or number.
|
362
362
|
# @param validate_only [::Boolean]
|
363
363
|
# Indicates that the request should be validated without actually
|
364
364
|
# deleting any resources.
|
@@ -431,6 +431,101 @@ module Google
|
|
431
431
|
raise ::Google::Cloud::Error.from_error(e)
|
432
432
|
end
|
433
433
|
|
434
|
+
##
|
435
|
+
# Cancels an Execution.
|
436
|
+
#
|
437
|
+
# @overload cancel_execution(request, options = nil)
|
438
|
+
# Pass arguments to `cancel_execution` via a request object, either of type
|
439
|
+
# {::Google::Cloud::Run::V2::CancelExecutionRequest} or an equivalent Hash.
|
440
|
+
#
|
441
|
+
# @param request [::Google::Cloud::Run::V2::CancelExecutionRequest, ::Hash]
|
442
|
+
# A request object representing the call parameters. Required. To specify no
|
443
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
444
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
445
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
446
|
+
#
|
447
|
+
# @overload cancel_execution(name: nil, validate_only: nil, etag: nil)
|
448
|
+
# Pass arguments to `cancel_execution` via keyword arguments. Note that at
|
449
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
450
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
451
|
+
#
|
452
|
+
# @param name [::String]
|
453
|
+
# Required. The name of the Execution to cancel.
|
454
|
+
# Format:
|
455
|
+
# `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`,
|
456
|
+
# where `{project}` can be project id or number.
|
457
|
+
# @param validate_only [::Boolean]
|
458
|
+
# Indicates that the request should be validated without actually
|
459
|
+
# cancelling any resources.
|
460
|
+
# @param etag [::String]
|
461
|
+
# A system-generated fingerprint for this version of the resource.
|
462
|
+
# This may be used to detect modification conflict during updates.
|
463
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
464
|
+
# @yieldparam result [::Gapic::Operation]
|
465
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
466
|
+
#
|
467
|
+
# @return [::Gapic::Operation]
|
468
|
+
#
|
469
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
470
|
+
#
|
471
|
+
# @example Basic example
|
472
|
+
# require "google/cloud/run/v2"
|
473
|
+
#
|
474
|
+
# # Create a client object. The client can be reused for multiple calls.
|
475
|
+
# client = Google::Cloud::Run::V2::Executions::Rest::Client.new
|
476
|
+
#
|
477
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
478
|
+
# request = Google::Cloud::Run::V2::CancelExecutionRequest.new
|
479
|
+
#
|
480
|
+
# # Call the cancel_execution method.
|
481
|
+
# result = client.cancel_execution request
|
482
|
+
#
|
483
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
484
|
+
# # check the status of an operation, cancel it, or wait for results.
|
485
|
+
# # Here is how to wait for a response.
|
486
|
+
# result.wait_until_done! timeout: 60
|
487
|
+
# if result.response?
|
488
|
+
# p result.response
|
489
|
+
# else
|
490
|
+
# puts "No response received."
|
491
|
+
# end
|
492
|
+
#
|
493
|
+
def cancel_execution request, options = nil
|
494
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
495
|
+
|
496
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Run::V2::CancelExecutionRequest
|
497
|
+
|
498
|
+
# Converts hash and nil to an options object
|
499
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
500
|
+
|
501
|
+
# Customize the options with defaults
|
502
|
+
call_metadata = @config.rpcs.cancel_execution.metadata.to_h
|
503
|
+
|
504
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
505
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
506
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
507
|
+
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
508
|
+
transports_version_send: [:rest]
|
509
|
+
|
510
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
511
|
+
|
512
|
+
options.apply_defaults timeout: @config.rpcs.cancel_execution.timeout,
|
513
|
+
metadata: call_metadata,
|
514
|
+
retry_policy: @config.rpcs.cancel_execution.retry_policy
|
515
|
+
|
516
|
+
options.apply_defaults timeout: @config.timeout,
|
517
|
+
metadata: @config.metadata,
|
518
|
+
retry_policy: @config.retry_policy
|
519
|
+
|
520
|
+
@executions_stub.cancel_execution request, options do |result, operation|
|
521
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
522
|
+
yield result, operation if block_given?
|
523
|
+
return result
|
524
|
+
end
|
525
|
+
rescue ::Gapic::Rest::Error => e
|
526
|
+
raise ::Google::Cloud::Error.from_error(e)
|
527
|
+
end
|
528
|
+
|
434
529
|
##
|
435
530
|
# Configuration class for the Executions REST API.
|
436
531
|
#
|
@@ -571,6 +666,11 @@ module Google
|
|
571
666
|
# @return [::Gapic::Config::Method]
|
572
667
|
#
|
573
668
|
attr_reader :delete_execution
|
669
|
+
##
|
670
|
+
# RPC-specific configuration for `cancel_execution`
|
671
|
+
# @return [::Gapic::Config::Method]
|
672
|
+
#
|
673
|
+
attr_reader :cancel_execution
|
574
674
|
|
575
675
|
# @private
|
576
676
|
def initialize parent_rpcs = nil
|
@@ -580,6 +680,8 @@ module Google
|
|
580
680
|
@list_executions = ::Gapic::Config::Method.new list_executions_config
|
581
681
|
delete_execution_config = parent_rpcs.delete_execution if parent_rpcs.respond_to? :delete_execution
|
582
682
|
@delete_execution = ::Gapic::Config::Method.new delete_execution_config
|
683
|
+
cancel_execution_config = parent_rpcs.cancel_execution if parent_rpcs.respond_to? :cancel_execution
|
684
|
+
@cancel_execution = ::Gapic::Config::Method.new cancel_execution_config
|
583
685
|
|
584
686
|
yield self if block_given?
|
585
687
|
end
|
@@ -154,6 +154,44 @@ module Google
|
|
154
154
|
result
|
155
155
|
end
|
156
156
|
|
157
|
+
##
|
158
|
+
# Baseline implementation for the cancel_execution REST call
|
159
|
+
#
|
160
|
+
# @param request_pb [::Google::Cloud::Run::V2::CancelExecutionRequest]
|
161
|
+
# A request object representing the call parameters. Required.
|
162
|
+
# @param options [::Gapic::CallOptions]
|
163
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
164
|
+
#
|
165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
166
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
168
|
+
#
|
169
|
+
# @return [::Google::Longrunning::Operation]
|
170
|
+
# A result object deserialized from the server's reply
|
171
|
+
def cancel_execution request_pb, options = nil
|
172
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
173
|
+
|
174
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_cancel_execution_request request_pb
|
175
|
+
query_string_params = if query_string_params.any?
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
|
+
else
|
178
|
+
{}
|
179
|
+
end
|
180
|
+
|
181
|
+
response = @client_stub.make_http_request(
|
182
|
+
verb,
|
183
|
+
uri: uri,
|
184
|
+
body: body || "",
|
185
|
+
params: query_string_params,
|
186
|
+
options: options
|
187
|
+
)
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
189
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
190
|
+
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
194
|
+
|
157
195
|
##
|
158
196
|
# @private
|
159
197
|
#
|
@@ -216,6 +254,28 @@ module Google
|
|
216
254
|
)
|
217
255
|
transcoder.transcode request_pb
|
218
256
|
end
|
257
|
+
|
258
|
+
##
|
259
|
+
# @private
|
260
|
+
#
|
261
|
+
# GRPC transcoding helper method for the cancel_execution REST call
|
262
|
+
#
|
263
|
+
# @param request_pb [::Google::Cloud::Run::V2::CancelExecutionRequest]
|
264
|
+
# A request object representing the call parameters. Required.
|
265
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
266
|
+
# Uri, Body, Query string parameters
|
267
|
+
def self.transcode_cancel_execution_request request_pb
|
268
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
269
|
+
.with_bindings(
|
270
|
+
uri_method: :post,
|
271
|
+
uri_template: "/v2/{name}:cancel",
|
272
|
+
body: "*",
|
273
|
+
matches: [
|
274
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/jobs/[^/]+/executions/[^/]+/?$}, false]
|
275
|
+
]
|
276
|
+
)
|
277
|
+
transcoder.transcode request_pb
|
278
|
+
end
|
219
279
|
end
|
220
280
|
end
|
221
281
|
end
|
@@ -9,17 +9,20 @@ require 'google/api/client_pb'
|
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
10
|
require 'google/api/launch_stage_pb'
|
11
11
|
require 'google/api/resource_pb'
|
12
|
+
require 'google/api/routing_pb'
|
12
13
|
require 'google/cloud/run/v2/condition_pb'
|
13
14
|
require 'google/cloud/run/v2/execution_pb'
|
14
15
|
require 'google/cloud/run/v2/execution_template_pb'
|
16
|
+
require 'google/cloud/run/v2/k8s.min_pb'
|
15
17
|
require 'google/cloud/run/v2/vendor_settings_pb'
|
16
18
|
require 'google/iam/v1/iam_policy_pb'
|
17
19
|
require 'google/iam/v1/policy_pb'
|
18
20
|
require 'google/longrunning/operations_pb'
|
21
|
+
require 'google/protobuf/duration_pb'
|
19
22
|
require 'google/protobuf/timestamp_pb'
|
20
23
|
|
21
24
|
|
22
|
-
descriptor_data = "\n\x1dgoogle/cloud/run/v2/job.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/run/v2/condition.proto\x1a#google/cloud/run/v2/execution.proto\x1a,google/cloud/run/v2/execution_template.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9a\x01\n\x10\x43reateJobRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\x12\x16run.googleapis.com/Job\x12*\n\x03job\x18\x02 \x01(\x0b\x32\x18.google.cloud.run.v2.JobB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"=\n\rGetJobRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16run.googleapis.com/Job\"l\n\x10UpdateJobRequest\x12*\n\x03job\x18\x01 \x01(\x0b\x32\x18.google.cloud.run.v2.JobB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x15\n\rallow_missing\x18\x04 \x01(\x08\"~\n\x0fListJobsRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\x12\x16run.googleapis.com/Job\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"S\n\x10ListJobsResponse\x12&\n\x04jobs\x18\x01 \x03(\x0b\x32\x18.google.cloud.run.v2.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"e\n\x10\x44\x65leteJobRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16run.googleapis.com/Job\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t\"
|
25
|
+
descriptor_data = "\n\x1dgoogle/cloud/run/v2/job.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a#google/cloud/run/v2/condition.proto\x1a#google/cloud/run/v2/execution.proto\x1a,google/cloud/run/v2/execution_template.proto\x1a!google/cloud/run/v2/k8s.min.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9a\x01\n\x10\x43reateJobRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\x12\x16run.googleapis.com/Job\x12*\n\x03job\x18\x02 \x01(\x0b\x32\x18.google.cloud.run.v2.JobB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"=\n\rGetJobRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16run.googleapis.com/Job\"l\n\x10UpdateJobRequest\x12*\n\x03job\x18\x01 \x01(\x0b\x32\x18.google.cloud.run.v2.JobB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x15\n\rallow_missing\x18\x04 \x01(\x08\"~\n\x0fListJobsRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\x12\x16run.googleapis.com/Job\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"S\n\x10ListJobsResponse\x12&\n\x04jobs\x18\x01 \x03(\x0b\x32\x18.google.cloud.run.v2.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"e\n\x10\x44\x65leteJobRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16run.googleapis.com/Job\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t\"\xcc\x03\n\rRunJobRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16run.googleapis.com/Job\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12?\n\toverrides\x18\x04 \x01(\x0b\x32,.google.cloud.run.v2.RunJobRequest.Overrides\x1a\xa6\x02\n\tOverrides\x12[\n\x13\x63ontainer_overrides\x18\x01 \x03(\x0b\x32>.google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride\x12\x17\n\ntask_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12*\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x1aw\n\x11\x43ontainerOverride\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\x04\x61rgs\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12(\n\x03\x65nv\x18\x03 \x03(\x0b\x32\x1b.google.cloud.run.v2.EnvVar\x12\x17\n\nclear_args\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xa6\t\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x06labels\x18\x04 \x03(\x0b\x32$.google.cloud.run.v2.Job.LabelsEntry\x12>\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32).google.cloud.run.v2.Job.AnnotationsEntry\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rlast_modifier\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x0e\n\x06\x63lient\x18\x0c \x01(\t\x12\x16\n\x0e\x63lient_version\x18\r \x01(\t\x12-\n\x0claunch_stage\x18\x0e \x01(\x0e\x32\x17.google.api.LaunchStage\x12\x46\n\x14\x62inary_authorization\x18\x0f \x01(\x0b\x32(.google.cloud.run.v2.BinaryAuthorization\x12=\n\x08template\x18\x10 \x01(\x0b\x32&.google.cloud.run.v2.ExecutionTemplateB\x03\xe0\x41\x02\x12 \n\x13observed_generation\x18\x11 \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\x12terminal_condition\x18\x12 \x01(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x37\n\nconditions\x18\x13 \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x1c\n\x0f\x65xecution_count\x18\x14 \x01(\x05\x42\x03\xe0\x41\x03\x12N\n\x18latest_created_execution\x18\x16 \x01(\x0b\x32\'.google.cloud.run.v2.ExecutionReferenceB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x17 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18\x19 \x01(\x08\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x63 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:R\xea\x41O\n\x16run.googleapis.com/Job\x12\x32projects/{project}/locations/{location}/jobs/{job}R\x01\x01\"\xab\x01\n\x12\x45xecutionReference\x12/\n\x04name\x18\x01 \x01(\tB!\xfa\x41\x1e\n\x1crun.googleapis.com/Execution\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x63ompletion_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\x8a\x0e\n\x04Jobs\x12\xdd\x01\n\tCreateJob\x12%.google.cloud.run.v2.CreateJobRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\x82\xd3\xe4\x93\x02/\"(/v2/{parent=projects/*/locations/*}/jobs:\x03job\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\xda\x41\x11parent,job,job_id\xca\x41\n\n\x03Job\x12\x03Job\x12\xb3\x01\n\x06GetJob\x12\".google.cloud.run.v2.GetJobRequest\x1a\x18.google.cloud.run.v2.Job\"k\x82\xd3\xe4\x93\x02*\x12(/v2/{name=projects/*/locations/*/jobs/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\xda\x41\x04name\x12\xc5\x01\n\x08ListJobs\x12$.google.cloud.run.v2.ListJobsRequest\x1a%.google.cloud.run.v2.ListJobsResponse\"l\x82\xd3\xe4\x93\x02*\x12(/v2/{parent=projects/*/locations/*}/jobs\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\xda\x41\x06parent\x12\xd8\x01\n\tUpdateJob\x12%.google.cloud.run.v2.UpdateJobRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\x82\xd3\xe4\x93\x02\x33\x32,/v2/{job.name=projects/*/locations/*/jobs/*}:\x03job\x8a\xd3\xe4\x93\x02\x32\x12\x30\n\x08job.name\x12$projects/*/locations/{location=*}/**\xda\x41\x03job\xca\x41\n\n\x03Job\x12\x03Job\x12\xcb\x01\n\tDeleteJob\x12%.google.cloud.run.v2.DeleteJobRequest\x1a\x1d.google.longrunning.Operation\"x\x82\xd3\xe4\x93\x02**(/v2/{name=projects/*/locations/*/jobs/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\xda\x41\x04name\xca\x41\n\n\x03Job\x12\x03Job\x12\xd9\x01\n\x06RunJob\x12\".google.cloud.run.v2.RunJobRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\x82\xd3\xe4\x93\x02\x31\",/v2/{name=projects/*/locations/*/jobs/*}:run:\x01*\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\xda\x41\x04name\xca\x41\x16\n\tExecution\x12\tExecution\x12\x8c\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"A\x82\xd3\xe4\x93\x02;\x12\x39/v2/{resource=projects/*/locations/*/jobs/*}:getIamPolicy\x12\x8f\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"D\x82\xd3\xe4\x93\x02>\"9/v2/{resource=projects/*/locations/*/jobs/*}:setIamPolicy:\x01*\x12\xb5\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v2/{resource=projects/*/locations/*/jobs/*}:testIamPermissions:\x01*\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBP\n\x17\x63om.google.cloud.run.v2B\x08JobProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
23
26
|
|
24
27
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
25
28
|
|
@@ -34,6 +37,8 @@ rescue TypeError => e
|
|
34
37
|
file = pool.add_serialized_file(serialized)
|
35
38
|
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
36
39
|
imports = [
|
40
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
41
|
+
["google.cloud.run.v2.EnvVar", "google/cloud/run/v2/k8s.min.proto"],
|
37
42
|
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
38
43
|
["google.cloud.run.v2.BinaryAuthorization", "google/cloud/run/v2/vendor_settings.proto"],
|
39
44
|
["google.cloud.run.v2.ExecutionTemplate", "google/cloud/run/v2/execution_template.proto"],
|
@@ -60,6 +65,8 @@ module Google
|
|
60
65
|
ListJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListJobsResponse").msgclass
|
61
66
|
DeleteJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.DeleteJobRequest").msgclass
|
62
67
|
RunJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.RunJobRequest").msgclass
|
68
|
+
RunJobRequest::Overrides = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.RunJobRequest.Overrides").msgclass
|
69
|
+
RunJobRequest::Overrides::ContainerOverride = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.RunJobRequest.Overrides.ContainerOverride").msgclass
|
63
70
|
Job = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Job").msgclass
|
64
71
|
ExecutionReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ExecutionReference").msgclass
|
65
72
|
end
|
@@ -252,10 +252,13 @@ module Google
|
|
252
252
|
|
253
253
|
header_params = {}
|
254
254
|
if request.parent
|
255
|
-
|
255
|
+
regex_match = %r{^projects/[^/]+/locations/(?<location>[^/]+)/?$}.match request.parent
|
256
|
+
if regex_match
|
257
|
+
header_params["location"] = regex_match["location".to_s]
|
258
|
+
end
|
256
259
|
end
|
257
260
|
|
258
|
-
request_params_header =
|
261
|
+
request_params_header = URI.encode_www_form header_params
|
259
262
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
260
263
|
|
261
264
|
options.apply_defaults timeout: @config.rpcs.create_job.timeout,
|
@@ -340,10 +343,13 @@ module Google
|
|
340
343
|
|
341
344
|
header_params = {}
|
342
345
|
if request.name
|
343
|
-
|
346
|
+
regex_match = %r{^projects/[^/]+/locations/(?<location>[^/]+)(?:/.*)?$}.match request.name
|
347
|
+
if regex_match
|
348
|
+
header_params["location"] = regex_match["location".to_s]
|
349
|
+
end
|
344
350
|
end
|
345
351
|
|
346
|
-
request_params_header =
|
352
|
+
request_params_header = URI.encode_www_form header_params
|
347
353
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
348
354
|
|
349
355
|
options.apply_defaults timeout: @config.rpcs.get_job.timeout,
|
@@ -438,10 +444,13 @@ module Google
|
|
438
444
|
|
439
445
|
header_params = {}
|
440
446
|
if request.parent
|
441
|
-
|
447
|
+
regex_match = %r{^projects/[^/]+/locations/(?<location>[^/]+)/?$}.match request.parent
|
448
|
+
if regex_match
|
449
|
+
header_params["location"] = regex_match["location".to_s]
|
450
|
+
end
|
442
451
|
end
|
443
452
|
|
444
|
-
request_params_header =
|
453
|
+
request_params_header = URI.encode_www_form header_params
|
445
454
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
446
455
|
|
447
456
|
options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
|
@@ -538,10 +547,13 @@ module Google
|
|
538
547
|
|
539
548
|
header_params = {}
|
540
549
|
if request.job&.name
|
541
|
-
|
550
|
+
regex_match = %r{^projects/[^/]+/locations/(?<location>[^/]+)(?:/.*)?$}.match request.job.name
|
551
|
+
if regex_match
|
552
|
+
header_params["location"] = regex_match["location".to_s]
|
553
|
+
end
|
542
554
|
end
|
543
555
|
|
544
|
-
request_params_header =
|
556
|
+
request_params_header = URI.encode_www_form header_params
|
545
557
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
546
558
|
|
547
559
|
options.apply_defaults timeout: @config.rpcs.update_job.timeout,
|
@@ -639,10 +651,13 @@ module Google
|
|
639
651
|
|
640
652
|
header_params = {}
|
641
653
|
if request.name
|
642
|
-
|
654
|
+
regex_match = %r{^projects/[^/]+/locations/(?<location>[^/]+)(?:/.*)?$}.match request.name
|
655
|
+
if regex_match
|
656
|
+
header_params["location"] = regex_match["location".to_s]
|
657
|
+
end
|
643
658
|
end
|
644
659
|
|
645
|
-
request_params_header =
|
660
|
+
request_params_header = URI.encode_www_form header_params
|
646
661
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
647
662
|
|
648
663
|
options.apply_defaults timeout: @config.rpcs.delete_job.timeout,
|
@@ -675,7 +690,7 @@ module Google
|
|
675
690
|
# @param options [::Gapic::CallOptions, ::Hash]
|
676
691
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
677
692
|
#
|
678
|
-
# @overload run_job(name: nil, validate_only: nil, etag: nil)
|
693
|
+
# @overload run_job(name: nil, validate_only: nil, etag: nil, overrides: nil)
|
679
694
|
# Pass arguments to `run_job` via keyword arguments. Note that at
|
680
695
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
681
696
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -690,6 +705,9 @@ module Google
|
|
690
705
|
# @param etag [::String]
|
691
706
|
# A system-generated fingerprint for this version of the
|
692
707
|
# resource. May be used to detect modification conflict during updates.
|
708
|
+
# @param overrides [::Google::Cloud::Run::V2::RunJobRequest::Overrides, ::Hash]
|
709
|
+
# Overrides specification for a given execution of a job. If provided,
|
710
|
+
# overrides will be applied to update the execution or task spec.
|
693
711
|
#
|
694
712
|
# @yield [response, operation] Access the result along with the RPC operation
|
695
713
|
# @yieldparam response [::Gapic::Operation]
|
@@ -740,10 +758,13 @@ module Google
|
|
740
758
|
|
741
759
|
header_params = {}
|
742
760
|
if request.name
|
743
|
-
|
761
|
+
regex_match = %r{^projects/[^/]+/locations/(?<location>[^/]+)(?:/.*)?$}.match request.name
|
762
|
+
if regex_match
|
763
|
+
header_params["location"] = regex_match["location".to_s]
|
764
|
+
end
|
744
765
|
end
|
745
766
|
|
746
|
-
request_params_header =
|
767
|
+
request_params_header = URI.encode_www_form header_params
|
747
768
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
748
769
|
|
749
770
|
options.apply_defaults timeout: @config.rpcs.run_job.timeout,
|
@@ -630,7 +630,7 @@ module Google
|
|
630
630
|
# @param options [::Gapic::CallOptions, ::Hash]
|
631
631
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
632
632
|
#
|
633
|
-
# @overload run_job(name: nil, validate_only: nil, etag: nil)
|
633
|
+
# @overload run_job(name: nil, validate_only: nil, etag: nil, overrides: nil)
|
634
634
|
# Pass arguments to `run_job` via keyword arguments. Note that at
|
635
635
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
636
636
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -645,6 +645,9 @@ module Google
|
|
645
645
|
# @param etag [::String]
|
646
646
|
# A system-generated fingerprint for this version of the
|
647
647
|
# resource. May be used to detect modification conflict during updates.
|
648
|
+
# @param overrides [::Google::Cloud::Run::V2::RunJobRequest::Overrides, ::Hash]
|
649
|
+
# Overrides specification for a given execution of a job. If provided,
|
650
|
+
# overrides will be applied to update the execution or task spec.
|
648
651
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
649
652
|
# @yieldparam result [::Gapic::Operation]
|
650
653
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/api/resource_pb'
|
9
9
|
|
10
10
|
|
11
|
-
descriptor_data = "\n!google/cloud/run/v2/k8s.min.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\
|
11
|
+
descriptor_data = "\n!google/cloud/run/v2/k8s.min.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb0\x03\n\tContainer\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\x05image\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07\x63ommand\x18\x03 \x03(\t\x12\x0c\n\x04\x61rgs\x18\x04 \x03(\t\x12(\n\x03\x65nv\x18\x05 \x03(\x0b\x32\x1b.google.cloud.run.v2.EnvVar\x12<\n\tresources\x18\x06 \x01(\x0b\x32).google.cloud.run.v2.ResourceRequirements\x12\x31\n\x05ports\x18\x07 \x03(\x0b\x32\".google.cloud.run.v2.ContainerPort\x12\x37\n\rvolume_mounts\x18\x08 \x03(\x0b\x32 .google.cloud.run.v2.VolumeMount\x12\x13\n\x0bworking_dir\x18\t \x01(\t\x12\x32\n\x0eliveness_probe\x18\n \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\x12\x31\n\rstartup_probe\x18\x0b \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\x12\x12\n\ndepends_on\x18\x0c \x03(\t\"\xb9\x01\n\x14ResourceRequirements\x12\x45\n\x06limits\x18\x01 \x03(\x0b\x32\x35.google.cloud.run.v2.ResourceRequirements.LimitsEntry\x12\x10\n\x08\x63pu_idle\x18\x02 \x01(\x08\x12\x19\n\x11startup_cpu_boost\x18\x03 \x01(\x08\x1a-\n\x0bLimitsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"q\n\x06\x45nvVar\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x05value\x18\x02 \x01(\tH\x00\x12\x39\n\x0cvalue_source\x18\x03 \x01(\x0b\x32!.google.cloud.run.v2.EnvVarSourceH\x00\x42\x08\n\x06values\"N\n\x0c\x45nvVarSource\x12>\n\x0esecret_key_ref\x18\x01 \x01(\x0b\x32&.google.cloud.run.v2.SecretKeySelector\"\x92\x01\n\x11SecretKeySelector\x12;\n\x06secret\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#secretmanager.googleapis.com/Secret\x12@\n\x07version\x18\x02 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\"5\n\rContainerPort\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\x0e\x63ontainer_port\x18\x03 \x01(\x05\"9\n\x0bVolumeMount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nmount_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xea\x01\n\x06Volume\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x06secret\x18\x02 \x01(\x0b\x32\'.google.cloud.run.v2.SecretVolumeSourceH\x00\x12\x43\n\x12\x63loud_sql_instance\x18\x03 \x01(\x0b\x32%.google.cloud.run.v2.CloudSqlInstanceH\x00\x12>\n\tempty_dir\x18\x04 \x01(\x0b\x32).google.cloud.run.v2.EmptyDirVolumeSourceH\x00\x42\r\n\x0bvolume_type\"r\n\x12SecretVolumeSource\x12\x13\n\x06secret\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x31\n\x05items\x18\x02 \x03(\x0b\x32\".google.cloud.run.v2.VersionToPath\x12\x14\n\x0c\x64\x65\x66\x61ult_mode\x18\x03 \x01(\x05\"A\n\rVersionToPath\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x0c\n\x04mode\x18\x03 \x01(\x05\"%\n\x10\x43loudSqlInstance\x12\x11\n\tinstances\x18\x01 \x03(\t\"\x9a\x01\n\x14\x45mptyDirVolumeSource\x12@\n\x06medium\x18\x01 \x01(\x0e\x32\x30.google.cloud.run.v2.EmptyDirVolumeSource.Medium\x12\x12\n\nsize_limit\x18\x02 \x01(\t\",\n\x06Medium\x12\x16\n\x12MEDIUM_UNSPECIFIED\x10\x00\x12\n\n\x06MEMORY\x10\x01\"\xa5\x02\n\x05Probe\x12\x1d\n\x15initial_delay_seconds\x18\x01 \x01(\x05\x12\x17\n\x0ftimeout_seconds\x18\x02 \x01(\x05\x12\x16\n\x0eperiod_seconds\x18\x03 \x01(\x05\x12\x19\n\x11\x66\x61ilure_threshold\x18\x04 \x01(\x05\x12\x36\n\x08http_get\x18\x05 \x01(\x0b\x32\".google.cloud.run.v2.HTTPGetActionH\x00\x12:\n\ntcp_socket\x18\x06 \x01(\x0b\x32$.google.cloud.run.v2.TCPSocketActionH\x00\x12/\n\x04grpc\x18\x07 \x01(\x0b\x32\x1f.google.cloud.run.v2.GRPCActionH\x00\x42\x0c\n\nprobe_type\"b\n\rHTTPGetAction\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x35\n\x0chttp_headers\x18\x04 \x03(\x0b\x32\x1f.google.cloud.run.v2.HTTPHeader\x12\x0c\n\x04port\x18\x05 \x01(\x05\".\n\nHTTPHeader\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05value\x18\x02 \x01(\t\"\x1f\n\x0fTCPSocketAction\x12\x0c\n\x04port\x18\x01 \x01(\x05\"+\n\nGRPCAction\x12\x0c\n\x04port\x18\x01 \x01(\x05\x12\x0f\n\x07service\x18\x02 \x01(\tB\xe9\x03\n\x17\x63om.google.cloud.run.v2B\x0bK8sMinProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpb\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41J\n#secretmanager.googleapis.com/Secret\x12#projects/{project}/secrets/{secret}\xea\x41\x64\n*secretmanager.googleapis.com/SecretVersion\x12\x36projects/{project}/secrets/{secret}/versions/{version}\xea\x41\x64\n\"vpcaccess.googleapis.com/Connector\x12>projects/{project}/locations/{location}/connectors/{connector}b\x06proto3"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
@@ -49,6 +49,8 @@ module Google
|
|
49
49
|
SecretVolumeSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.SecretVolumeSource").msgclass
|
50
50
|
VersionToPath = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.VersionToPath").msgclass
|
51
51
|
CloudSqlInstance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.CloudSqlInstance").msgclass
|
52
|
+
EmptyDirVolumeSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.EmptyDirVolumeSource").msgclass
|
53
|
+
EmptyDirVolumeSource::Medium = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.EmptyDirVolumeSource.Medium").enummodule
|
52
54
|
Probe = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Probe").msgclass
|
53
55
|
HTTPGetAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.HTTPGetAction").msgclass
|
54
56
|
HTTPHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.HTTPHeader").msgclass
|
@@ -16,7 +16,7 @@ require 'google/protobuf/timestamp_pb'
|
|
16
16
|
require 'google/rpc/status_pb'
|
17
17
|
|
18
18
|
|
19
|
-
descriptor_data = "\n\x1egoogle/cloud/run/v2/task.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/run/v2/condition.proto\x1a!google/cloud/run/v2/k8s.min.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"?\n\x0eGetTaskRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17run.googleapis.com/Task\"\x80\x01\n\x10ListTasksRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17run.googleapis.com/Task\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"V\n\x11ListTasksResponse\x12(\n\x05tasks\x18\x01 \x03(\x0b\x32\x19.google.cloud.run.v2.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\
|
19
|
+
descriptor_data = "\n\x1egoogle/cloud/run/v2/task.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/run/v2/condition.proto\x1a!google/cloud/run/v2/k8s.min.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"?\n\x0eGetTaskRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17run.googleapis.com/Task\"\x80\x01\n\x10ListTasksRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17run.googleapis.com/Task\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"V\n\x11ListTasksResponse\x12(\n\x05tasks\x18\x01 \x03(\x0b\x32\x19.google.cloud.run.v2.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb8\x0c\n\x04Task\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x06labels\x18\x04 \x03(\x0b\x32%.google.cloud.run.v2.Task.LabelsEntryB\x03\xe0\x41\x03\x12\x44\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32*.google.cloud.run.v2.Task.AnnotationsEntryB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x37\n\x0escheduled_time\x18\" \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x1b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x38\n\x0f\x63ompletion_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12+\n\x03job\x18\x0c \x01(\tB\x1e\xe0\x41\x03\xfa\x41\x18\n\x16run.googleapis.com/Job\x12\x37\n\texecution\x18\r \x01(\tB$\xe0\x41\x03\xfa\x41\x1e\n\x1crun.googleapis.com/Execution\x12\x32\n\ncontainers\x18\x0e \x03(\x0b\x32\x1e.google.cloud.run.v2.Container\x12,\n\x07volumes\x18\x0f \x03(\x0b\x32\x1b.google.cloud.run.v2.Volume\x12\x13\n\x0bmax_retries\x18\x10 \x01(\x05\x12*\n\x07timeout\x18\x11 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0fservice_account\x18\x12 \x01(\t\x12H\n\x15\x65xecution_environment\x18\x14 \x01(\x0e\x32).google.cloud.run.v2.ExecutionEnvironment\x12\x18\n\x0breconciling\x18\x15 \x01(\x08\x42\x03\xe0\x41\x03\x12\x37\n\nconditions\x18\x16 \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12 \n\x13observed_generation\x18\x17 \x01(\x03\x42\x03\xe0\x41\x03\x12\x12\n\x05index\x18\x18 \x01(\x05\x42\x03\xe0\x41\x03\x12\x14\n\x07retried\x18\x19 \x01(\x05\x42\x03\xe0\x41\x03\x12H\n\x13last_attempt_result\x18\x1a \x01(\x0b\x32&.google.cloud.run.v2.TaskAttemptResultB\x03\xe0\x41\x03\x12\x41\n\x0e\x65ncryption_key\x18\x1c \x01(\tB)\xe0\x41\x03\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\x37\n\nvpc_access\x18\x1d \x01(\x0b\x32\x1e.google.cloud.run.v2.VpcAccessB\x03\xe0\x41\x03\x12\x14\n\x07log_uri\x18 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18! \x01(\x08\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x63 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:w\xea\x41t\n\x17run.googleapis.com/Task\x12Vprojects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}R\x01\x01\"T\n\x11TaskAttemptResult\x12\'\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12\x16\n\texit_code\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x32\x96\x03\n\x05Tasks\x12\x97\x01\n\x07GetTask\x12#.google.cloud.run.v2.GetTaskRequest\x1a\x19.google.cloud.run.v2.Task\"L\x82\xd3\xe4\x93\x02?\x12=/v2/{name=projects/*/locations/*/jobs/*/executions/*/tasks/*}\xda\x41\x04name\x12\xaa\x01\n\tListTasks\x12%.google.cloud.run.v2.ListTasksRequest\x1a&.google.cloud.run.v2.ListTasksResponse\"N\x82\xd3\xe4\x93\x02?\x12=/v2/{parent=projects/*/locations/*/jobs/*/executions/*}/tasks\xda\x41\x06parent\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBQ\n\x17\x63om.google.cloud.run.v2B\tTaskProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
20
20
|
|
21
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
22
|
|
@@ -4,10 +4,11 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/api/resource_pb'
|
8
9
|
|
9
10
|
|
10
|
-
descriptor_data = "\n)google/cloud/run/v2/vendor_settings.proto\x12\x13google.cloud.run.v2\x1a\x19google/api/resource.proto\"\
|
11
|
+
descriptor_data = "\n)google/cloud/run/v2/vendor_settings.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe8\x02\n\tVpcAccess\x12:\n\tconnector\x18\x01 \x01(\tB\'\xfa\x41$\n\"vpcaccess.googleapis.com/Connector\x12\x38\n\x06\x65gress\x18\x02 \x01(\x0e\x32(.google.cloud.run.v2.VpcAccess.VpcEgress\x12K\n\x12network_interfaces\x18\x03 \x03(\x0b\x32/.google.cloud.run.v2.VpcAccess.NetworkInterface\x1a\x45\n\x10NetworkInterface\x12\x0f\n\x07network\x18\x01 \x01(\t\x12\x12\n\nsubnetwork\x18\x02 \x01(\t\x12\x0c\n\x04tags\x18\x03 \x03(\t\"Q\n\tVpcEgress\x12\x1a\n\x16VPC_EGRESS_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x41LL_TRAFFIC\x10\x01\x12\x17\n\x13PRIVATE_RANGES_ONLY\x10\x02\"a\n\x13\x42inaryAuthorization\x12\x15\n\x0buse_default\x18\x01 \x01(\x08H\x00\x12 \n\x18\x62reakglass_justification\x18\x02 \x01(\tB\x11\n\x0f\x62inauthz_method\"I\n\x0fRevisionScaling\x12\x1a\n\x12min_instance_count\x18\x01 \x01(\x05\x12\x1a\n\x12max_instance_count\x18\x02 \x01(\x05*\x99\x01\n\x0eIngressTraffic\x12\x1f\n\x1bINGRESS_TRAFFIC_UNSPECIFIED\x10\x00\x12\x17\n\x13INGRESS_TRAFFIC_ALL\x10\x01\x12!\n\x1dINGRESS_TRAFFIC_INTERNAL_ONLY\x10\x02\x12*\n&INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER\x10\x03*}\n\x14\x45xecutionEnvironment\x12%\n!EXECUTION_ENVIRONMENT_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x45XECUTION_ENVIRONMENT_GEN1\x10\x01\x12\x1e\n\x1a\x45XECUTION_ENVIRONMENT_GEN2\x10\x02*p\n\x1d\x45ncryptionKeyRevocationAction\x12\x30\n,ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPREVENT_NEW\x10\x01\x12\x0c\n\x08SHUTDOWN\x10\x02\x42[\n\x17\x63om.google.cloud.run.v2B\x13VendorSettingsProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
11
12
|
|
12
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
14
|
|
@@ -38,6 +39,7 @@ module Google
|
|
38
39
|
module Run
|
39
40
|
module V2
|
40
41
|
VpcAccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.VpcAccess").msgclass
|
42
|
+
VpcAccess::NetworkInterface = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.VpcAccess.NetworkInterface").msgclass
|
41
43
|
VpcAccess::VpcEgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.VpcAccess.VpcEgress").enummodule
|
42
44
|
BinaryAuthorization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.BinaryAuthorization").msgclass
|
43
45
|
RevisionScaling = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.RevisionScaling").msgclass
|
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
# @return [::String]
|
27
27
|
# Required. The full name of the Execution.
|
28
28
|
# Format:
|
29
|
-
# projects
|
30
|
-
# where
|
29
|
+
# `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`,
|
30
|
+
# where `{project}` can be project id or number.
|
31
31
|
class GetExecutionRequest
|
32
32
|
include ::Google::Protobuf::MessageExts
|
33
33
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -38,8 +38,8 @@ module Google
|
|
38
38
|
# @return [::String]
|
39
39
|
# Required. The Execution from which the Executions should be listed.
|
40
40
|
# To list all Executions across Jobs, use "-" instead of Job name.
|
41
|
-
# Format: projects
|
42
|
-
# can be project id or number.
|
41
|
+
# Format: `projects/{project}/locations/{location}/jobs/{job}`, where
|
42
|
+
# `{project}` can be project id or number.
|
43
43
|
# @!attribute [rw] page_size
|
44
44
|
# @return [::Integer]
|
45
45
|
# Maximum number of Executions to return in this call.
|
@@ -73,8 +73,8 @@ module Google
|
|
73
73
|
# @return [::String]
|
74
74
|
# Required. The name of the Execution to delete.
|
75
75
|
# Format:
|
76
|
-
# projects
|
77
|
-
# where
|
76
|
+
# `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`,
|
77
|
+
# where `{project}` can be project id or number.
|
78
78
|
# @!attribute [rw] validate_only
|
79
79
|
# @return [::Boolean]
|
80
80
|
# Indicates that the request should be validated without actually
|
@@ -88,6 +88,26 @@ module Google
|
|
88
88
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
89
89
|
end
|
90
90
|
|
91
|
+
# Request message for deleting an Execution.
|
92
|
+
# @!attribute [rw] name
|
93
|
+
# @return [::String]
|
94
|
+
# Required. The name of the Execution to cancel.
|
95
|
+
# Format:
|
96
|
+
# `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`,
|
97
|
+
# where `{project}` can be project id or number.
|
98
|
+
# @!attribute [rw] validate_only
|
99
|
+
# @return [::Boolean]
|
100
|
+
# Indicates that the request should be validated without actually
|
101
|
+
# cancelling any resources.
|
102
|
+
# @!attribute [rw] etag
|
103
|
+
# @return [::String]
|
104
|
+
# A system-generated fingerprint for this version of the resource.
|
105
|
+
# This may be used to detect modification conflict during updates.
|
106
|
+
class CancelExecutionRequest
|
107
|
+
include ::Google::Protobuf::MessageExts
|
108
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
109
|
+
end
|
110
|
+
|
91
111
|
# Execution represents the configuration of a single execution. A execution an
|
92
112
|
# immutable resource that references a container image which is run to
|
93
113
|
# completion.
|
@@ -139,9 +139,51 @@ module Google
|
|
139
139
|
# @return [::String]
|
140
140
|
# A system-generated fingerprint for this version of the
|
141
141
|
# resource. May be used to detect modification conflict during updates.
|
142
|
+
# @!attribute [rw] overrides
|
143
|
+
# @return [::Google::Cloud::Run::V2::RunJobRequest::Overrides]
|
144
|
+
# Overrides specification for a given execution of a job. If provided,
|
145
|
+
# overrides will be applied to update the execution or task spec.
|
142
146
|
class RunJobRequest
|
143
147
|
include ::Google::Protobuf::MessageExts
|
144
148
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
149
|
+
|
150
|
+
# RunJob Overrides that contains Execution fields to be overridden.
|
151
|
+
# @!attribute [rw] container_overrides
|
152
|
+
# @return [::Array<::Google::Cloud::Run::V2::RunJobRequest::Overrides::ContainerOverride>]
|
153
|
+
# Per container override specification.
|
154
|
+
# @!attribute [rw] task_count
|
155
|
+
# @return [::Integer]
|
156
|
+
# Optional. The desired number of tasks the execution should run. Will
|
157
|
+
# replace existing task_count value.
|
158
|
+
# @!attribute [rw] timeout
|
159
|
+
# @return [::Google::Protobuf::Duration]
|
160
|
+
# Duration in seconds the task may be active before the system will
|
161
|
+
# actively try to mark it failed and kill associated containers. Will
|
162
|
+
# replace existing timeout_seconds value.
|
163
|
+
class Overrides
|
164
|
+
include ::Google::Protobuf::MessageExts
|
165
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
166
|
+
|
167
|
+
# Per-container override specification.
|
168
|
+
# @!attribute [rw] name
|
169
|
+
# @return [::String]
|
170
|
+
# The name of the container specified as a DNS_LABEL.
|
171
|
+
# @!attribute [rw] args
|
172
|
+
# @return [::Array<::String>]
|
173
|
+
# Optional. Arguments to the entrypoint. Will replace existing args for
|
174
|
+
# override.
|
175
|
+
# @!attribute [rw] env
|
176
|
+
# @return [::Array<::Google::Cloud::Run::V2::EnvVar>]
|
177
|
+
# List of environment variables to set in the container. Will be merged
|
178
|
+
# with existing env for override.
|
179
|
+
# @!attribute [rw] clear_args
|
180
|
+
# @return [::Boolean]
|
181
|
+
# Optional. True if the intention is to clear out existing args list.
|
182
|
+
class ContainerOverride
|
183
|
+
include ::Google::Protobuf::MessageExts
|
184
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
185
|
+
end
|
186
|
+
end
|
145
187
|
end
|
146
188
|
|
147
189
|
# Job represents the configuration of a single job, which references a
|
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
# A single application container.
|
25
25
|
# This specifies both the container to run, the command to run in the container
|
26
26
|
# and the arguments to supply to it.
|
27
|
-
# Note that additional arguments
|
27
|
+
# Note that additional arguments can be supplied by the system to the container
|
28
28
|
# at runtime.
|
29
29
|
# @!attribute [rw] name
|
30
30
|
# @return [::String]
|
@@ -74,6 +74,9 @@ module Google
|
|
74
74
|
# All other probes are disabled if a startup probe is provided, until it
|
75
75
|
# succeeds. Container will not be added to service endpoints if the probe
|
76
76
|
# fails.
|
77
|
+
# @!attribute [rw] depends_on
|
78
|
+
# @return [::Array<::String>]
|
79
|
+
# Names of the containers that must start before this container.
|
77
80
|
class Container
|
78
81
|
include ::Google::Protobuf::MessageExts
|
79
82
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -115,8 +118,8 @@ module Google
|
|
115
118
|
# EnvVar represents an environment variable present in a Container.
|
116
119
|
# @!attribute [rw] name
|
117
120
|
# @return [::String]
|
118
|
-
# Required. Name of the environment variable. Must
|
119
|
-
#
|
121
|
+
# Required. Name of the environment variable. Must not exceed 32768
|
122
|
+
# characters.
|
120
123
|
# @!attribute [rw] value
|
121
124
|
# @return [::String]
|
122
125
|
# Variable references $(VAR_NAME) are expanded
|
@@ -203,6 +206,9 @@ module Google
|
|
203
206
|
# For Cloud SQL volumes, contains the specific instances that should be
|
204
207
|
# mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
|
205
208
|
# more information on how to connect Cloud SQL and Cloud Run.
|
209
|
+
# @!attribute [rw] empty_dir
|
210
|
+
# @return [::Google::Cloud::Run::V2::EmptyDirVolumeSource]
|
211
|
+
# Ephemeral storage used as a shared volume.
|
206
212
|
class Volume
|
207
213
|
include ::Google::Protobuf::MessageExts
|
208
214
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -297,6 +303,40 @@ module Google
|
|
297
303
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
298
304
|
end
|
299
305
|
|
306
|
+
# In memory (tmpfs) ephemeral storage.
|
307
|
+
# It is ephemeral in the sense that when the sandbox is taken down, the data is
|
308
|
+
# destroyed with it (it does not persist across sandbox runs).
|
309
|
+
# @!attribute [rw] medium
|
310
|
+
# @return [::Google::Cloud::Run::V2::EmptyDirVolumeSource::Medium]
|
311
|
+
# The medium on which the data is stored. Acceptable values today is only
|
312
|
+
# MEMORY or none. When none, the default will currently be backed by memory
|
313
|
+
# but could change over time. +optional
|
314
|
+
# @!attribute [rw] size_limit
|
315
|
+
# @return [::String]
|
316
|
+
# Limit on the storage usable by this EmptyDir volume.
|
317
|
+
# The size limit is also applicable for memory medium.
|
318
|
+
# The maximum usage on memory medium EmptyDir would be the minimum value
|
319
|
+
# between the SizeLimit specified here and the sum of memory limits of all
|
320
|
+
# containers. The default is nil which means that the limit is undefined.
|
321
|
+
# More info:
|
322
|
+
# https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume.
|
323
|
+
# Info in Kubernetes:
|
324
|
+
# https://kubernetes.io/docs/concepts/storage/volumes/#emptydir
|
325
|
+
class EmptyDirVolumeSource
|
326
|
+
include ::Google::Protobuf::MessageExts
|
327
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
328
|
+
|
329
|
+
# The different types of medium supported for EmptyDir.
|
330
|
+
module Medium
|
331
|
+
# When not specified, falls back to the default implementation which
|
332
|
+
# is currently in memory (this may change over time).
|
333
|
+
MEDIUM_UNSPECIFIED = 0
|
334
|
+
|
335
|
+
# Explicitly set the EmptyDir to be in memory. Uses tmpfs.
|
336
|
+
MEMORY = 1
|
337
|
+
end
|
338
|
+
end
|
339
|
+
|
300
340
|
# Probe describes a health check to be performed against a container to
|
301
341
|
# determine whether it is alive or ready to receive traffic.
|
302
342
|
# @!attribute [rw] initial_delay_seconds
|
@@ -386,7 +426,7 @@ module Google
|
|
386
426
|
# @!attribute [rw] service
|
387
427
|
# @return [::String]
|
388
428
|
# Service is the name of the service to place in the gRPC HealthCheckRequest
|
389
|
-
# (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If
|
429
|
+
# (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If
|
390
430
|
# this is not specified, the default behavior is defined by gRPC.
|
391
431
|
class GRPCAction
|
392
432
|
include ::Google::Protobuf::MessageExts
|
@@ -96,8 +96,13 @@ module Google
|
|
96
96
|
# when modifying objects.
|
97
97
|
# @!attribute [r] create_time
|
98
98
|
# @return [::Google::Protobuf::Timestamp]
|
99
|
-
# Output only. Represents time when the task was created by the
|
100
|
-
#
|
99
|
+
# Output only. Represents time when the task was created by the system.
|
100
|
+
# It is not guaranteed to be set in happens-before order across separate
|
101
|
+
# operations.
|
102
|
+
# @!attribute [r] scheduled_time
|
103
|
+
# @return [::Google::Protobuf::Timestamp]
|
104
|
+
# Output only. Represents time when the task was scheduled to run by the
|
105
|
+
# system. It is not guaranteed to be set in happens-before order across
|
101
106
|
# separate operations.
|
102
107
|
# @!attribute [r] start_time
|
103
108
|
# @return [::Google::Protobuf::Timestamp]
|
@@ -21,22 +21,50 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module Run
|
23
23
|
module V2
|
24
|
-
# VPC Access settings. For more information on
|
25
|
-
# https://cloud.google.com/
|
26
|
-
# information on how to configure Cloud Run with an existing VPC Connector,
|
27
|
-
# visit https://cloud.google.com/run/docs/configuring/connecting-vpc
|
24
|
+
# VPC Access settings. For more information on sending traffic to a VPC
|
25
|
+
# network, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
|
28
26
|
# @!attribute [rw] connector
|
29
27
|
# @return [::String]
|
30
28
|
# VPC Access connector name.
|
31
29
|
# Format: projects/\\{project}/locations/\\{location}/connectors/\\{connector},
|
32
30
|
# where \\{project} can be project id or number.
|
31
|
+
# For more information on sending traffic to a VPC network via a connector,
|
32
|
+
# visit https://cloud.google.com/run/docs/configuring/vpc-connectors.
|
33
33
|
# @!attribute [rw] egress
|
34
34
|
# @return [::Google::Cloud::Run::V2::VpcAccess::VpcEgress]
|
35
|
-
# Traffic VPC egress settings.
|
35
|
+
# Traffic VPC egress settings. If not provided, it defaults to
|
36
|
+
# PRIVATE_RANGES_ONLY.
|
37
|
+
# @!attribute [rw] network_interfaces
|
38
|
+
# @return [::Array<::Google::Cloud::Run::V2::VpcAccess::NetworkInterface>]
|
39
|
+
# Direct VPC egress settings. Currently only single network interface is
|
40
|
+
# supported.
|
36
41
|
class VpcAccess
|
37
42
|
include ::Google::Protobuf::MessageExts
|
38
43
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
39
44
|
|
45
|
+
# Direct VPC egress settings.
|
46
|
+
# @!attribute [rw] network
|
47
|
+
# @return [::String]
|
48
|
+
# The VPC network that the Cloud Run resource will be able to send traffic
|
49
|
+
# to. At least one of network or subnetwork must be specified. If both
|
50
|
+
# network and subnetwork are specified, the given VPC subnetwork must
|
51
|
+
# belong to the given VPC network. If network is not specified, it will be
|
52
|
+
# looked up from the subnetwork.
|
53
|
+
# @!attribute [rw] subnetwork
|
54
|
+
# @return [::String]
|
55
|
+
# The VPC subnetwork that the Cloud Run resource will get IPs from. At
|
56
|
+
# least one of network or subnetwork must be specified. If both
|
57
|
+
# network and subnetwork are specified, the given VPC subnetwork must
|
58
|
+
# belong to the given VPC network. If subnetwork is not specified, the
|
59
|
+
# subnetwork with the same name with the network will be used.
|
60
|
+
# @!attribute [rw] tags
|
61
|
+
# @return [::Array<::String>]
|
62
|
+
# Network tags applied to this Cloud Run resource.
|
63
|
+
class NetworkInterface
|
64
|
+
include ::Google::Protobuf::MessageExts
|
65
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
66
|
+
end
|
67
|
+
|
40
68
|
# Egress options for VPC access.
|
41
69
|
module VpcEgress
|
42
70
|
# Unspecified
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-run-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|