google-cloud-run-v2 0.8.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/run/v2/condition_pb.rb +25 -65
- data/lib/google/cloud/run/v2/execution_pb.rb +27 -48
- data/lib/google/cloud/run/v2/execution_template_pb.rb +25 -8
- data/lib/google/cloud/run/v2/executions/client.rb +4 -2
- data/lib/google/cloud/run/v2/executions/operations.rb +3 -1
- data/lib/google/cloud/run/v2/executions/rest/client.rb +4 -2
- data/lib/google/cloud/run/v2/executions/rest/operations.rb +8 -6
- data/lib/google/cloud/run/v2/executions/rest/service_stub.rb +3 -3
- data/lib/google/cloud/run/v2/job_pb.rb +28 -66
- data/lib/google/cloud/run/v2/jobs/client.rb +4 -2
- data/lib/google/cloud/run/v2/jobs/operations.rb +3 -1
- data/lib/google/cloud/run/v2/jobs/rest/client.rb +4 -2
- data/lib/google/cloud/run/v2/jobs/rest/operations.rb +8 -6
- data/lib/google/cloud/run/v2/jobs/rest/service_stub.rb +9 -9
- data/lib/google/cloud/run/v2/k8s.min_pb.rb +24 -88
- data/lib/google/cloud/run/v2/revision_pb.rb +29 -50
- data/lib/google/cloud/run/v2/revision_template_pb.rb +27 -16
- data/lib/google/cloud/run/v2/revisions/client.rb +4 -2
- data/lib/google/cloud/run/v2/revisions/operations.rb +3 -1
- data/lib/google/cloud/run/v2/revisions/rest/client.rb +4 -2
- data/lib/google/cloud/run/v2/revisions/rest/operations.rb +8 -6
- data/lib/google/cloud/run/v2/revisions/rest/service_stub.rb +3 -3
- data/lib/google/cloud/run/v2/service_pb.rb +29 -61
- data/lib/google/cloud/run/v2/services/client.rb +4 -2
- data/lib/google/cloud/run/v2/services/operations.rb +3 -1
- data/lib/google/cloud/run/v2/services/rest/client.rb +4 -2
- data/lib/google/cloud/run/v2/services/rest/operations.rb +8 -6
- data/lib/google/cloud/run/v2/services/rest/service_stub.rb +8 -8
- data/lib/google/cloud/run/v2/task_pb.rb +30 -50
- data/lib/google/cloud/run/v2/task_template_pb.rb +27 -13
- data/lib/google/cloud/run/v2/tasks/client.rb +4 -2
- data/lib/google/cloud/run/v2/tasks/rest/client.rb +4 -2
- data/lib/google/cloud/run/v2/tasks/rest/service_stub.rb +2 -2
- data/lib/google/cloud/run/v2/traffic_target_pb.rb +24 -19
- data/lib/google/cloud/run/v2/vendor_settings_pb.rb +24 -36
- data/lib/google/cloud/run/v2/version.rb +1 -1
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01a731c6870148aebc38e963aadf7d7a4ce8a8443dbc7fff301d9c7b744737b7
|
4
|
+
data.tar.gz: 22f72e27426657902a9782a72c9eb3d1f9ef7e6b44ff508c0599831bfc998f57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e55020293a92f520a60b4fed3a991d9aec401f6339bdab446899351c217ea9cfe29658fb009b286db24f218f2fda99acabbd3812f5fe2418f5682f58db0e995
|
7
|
+
data.tar.gz: 4e9963849ff1c58f75799f2c09cdb99cd947e5d7bfab7fc3b27798318d5b046832f7c2f73a7fe07cc2ba5c123b839a6893fb389403341d70ec8cda5fd62f9df8
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/run/v2/condition.proto
|
3
4
|
|
@@ -5,73 +6,32 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/protobuf/timestamp_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
value :SEVERITY_UNSPECIFIED, 0
|
31
|
-
value :ERROR, 1
|
32
|
-
value :WARNING, 2
|
33
|
-
value :INFO, 3
|
34
|
-
end
|
35
|
-
add_enum "google.cloud.run.v2.Condition.CommonReason" do
|
36
|
-
value :COMMON_REASON_UNDEFINED, 0
|
37
|
-
value :UNKNOWN, 1
|
38
|
-
value :REVISION_FAILED, 3
|
39
|
-
value :PROGRESS_DEADLINE_EXCEEDED, 4
|
40
|
-
value :CONTAINER_MISSING, 6
|
41
|
-
value :CONTAINER_PERMISSION_DENIED, 7
|
42
|
-
value :CONTAINER_IMAGE_UNAUTHORIZED, 8
|
43
|
-
value :CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED, 9
|
44
|
-
value :ENCRYPTION_KEY_PERMISSION_DENIED, 10
|
45
|
-
value :ENCRYPTION_KEY_CHECK_FAILED, 11
|
46
|
-
value :SECRETS_ACCESS_CHECK_FAILED, 12
|
47
|
-
value :WAITING_FOR_OPERATION, 13
|
48
|
-
value :IMMEDIATE_RETRY, 14
|
49
|
-
value :POSTPONED_RETRY, 15
|
50
|
-
value :INTERNAL, 16
|
51
|
-
end
|
52
|
-
add_enum "google.cloud.run.v2.Condition.RevisionReason" do
|
53
|
-
value :REVISION_REASON_UNDEFINED, 0
|
54
|
-
value :PENDING, 1
|
55
|
-
value :RESERVE, 2
|
56
|
-
value :RETIRED, 3
|
57
|
-
value :RETIRING, 4
|
58
|
-
value :RECREATING, 5
|
59
|
-
value :HEALTH_CHECK_CONTAINER_ERROR, 6
|
60
|
-
value :CUSTOMIZED_PATH_RESPONSE_PENDING, 7
|
61
|
-
value :MIN_INSTANCES_NOT_PROVISIONED, 8
|
62
|
-
value :ACTIVE_REVISION_LIMIT_REACHED, 9
|
63
|
-
value :NO_DEPLOYMENT, 10
|
64
|
-
value :HEALTH_CHECK_SKIPPED, 11
|
65
|
-
value :MIN_INSTANCES_WARMING, 12
|
66
|
-
end
|
67
|
-
add_enum "google.cloud.run.v2.Condition.ExecutionReason" do
|
68
|
-
value :EXECUTION_REASON_UNDEFINED, 0
|
69
|
-
value :JOB_STATUS_SERVICE_POLLING_ERROR, 1
|
70
|
-
value :NON_ZERO_EXIT_CODE, 2
|
71
|
-
value :CANCELLED, 3
|
72
|
-
value :CANCELLING, 4
|
9
|
+
|
10
|
+
descriptor_data = "\n#google/cloud/run/v2/condition.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/protobuf/timestamp.proto\"\x90\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\"\x8e\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\x42\t\n\x07reasonsBV\n\x17\x63om.google.cloud.run.v2B\x0e\x43onditionProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
73
31
|
end
|
74
32
|
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
75
35
|
end
|
76
36
|
|
77
37
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/run/v2/execution.proto
|
3
4
|
|
@@ -13,56 +14,34 @@ require 'google/cloud/run/v2/task_template_pb'
|
|
13
14
|
require 'google/longrunning/operations_pb'
|
14
15
|
require 'google/protobuf/timestamp_pb'
|
15
16
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
map :labels, :string, :string, 4
|
41
|
-
map :annotations, :string, :string, 5
|
42
|
-
optional :create_time, :message, 6, "google.protobuf.Timestamp"
|
43
|
-
optional :start_time, :message, 22, "google.protobuf.Timestamp"
|
44
|
-
optional :completion_time, :message, 7, "google.protobuf.Timestamp"
|
45
|
-
optional :update_time, :message, 8, "google.protobuf.Timestamp"
|
46
|
-
optional :delete_time, :message, 9, "google.protobuf.Timestamp"
|
47
|
-
optional :expire_time, :message, 10, "google.protobuf.Timestamp"
|
48
|
-
optional :launch_stage, :enum, 11, "google.api.LaunchStage"
|
49
|
-
optional :job, :string, 12
|
50
|
-
optional :parallelism, :int32, 13
|
51
|
-
optional :task_count, :int32, 14
|
52
|
-
optional :template, :message, 15, "google.cloud.run.v2.TaskTemplate"
|
53
|
-
optional :reconciling, :bool, 16
|
54
|
-
repeated :conditions, :message, 17, "google.cloud.run.v2.Condition"
|
55
|
-
optional :observed_generation, :int64, 18
|
56
|
-
optional :running_count, :int32, 19
|
57
|
-
optional :succeeded_count, :int32, 20
|
58
|
-
optional :failed_count, :int32, 21
|
59
|
-
optional :cancelled_count, :int32, 24
|
60
|
-
optional :retried_count, :int32, 25
|
61
|
-
optional :log_uri, :string, 26
|
62
|
-
optional :satisfies_pzs, :bool, 27
|
63
|
-
optional :etag, :string, 99
|
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\xe8\x04\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\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
|
+
|
20
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
|
+
|
22
|
+
begin
|
23
|
+
pool.add_serialized_file(descriptor_data)
|
24
|
+
rescue TypeError => e
|
25
|
+
# Compatibility code: will be removed in the next major version.
|
26
|
+
require 'google/protobuf/descriptor_pb'
|
27
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
28
|
+
parsed.clear_dependency
|
29
|
+
serialized = parsed.class.encode(parsed)
|
30
|
+
file = pool.add_serialized_file(serialized)
|
31
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
32
|
+
imports = [
|
33
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
34
|
+
["google.cloud.run.v2.TaskTemplate", "google/cloud/run/v2/task_template.proto"],
|
35
|
+
["google.cloud.run.v2.Condition", "google/cloud/run/v2/condition.proto"],
|
36
|
+
]
|
37
|
+
imports.each do |type_name, expected_filename|
|
38
|
+
import_file = pool.lookup(type_name).file_descriptor
|
39
|
+
if import_file.name != expected_filename
|
40
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
64
41
|
end
|
65
42
|
end
|
43
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
44
|
+
warn "This will become an error in the next major version."
|
66
45
|
end
|
67
46
|
|
68
47
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/run/v2/execution_template.proto
|
3
4
|
|
@@ -6,16 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/cloud/run/v2/task_template_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
10
|
+
|
11
|
+
descriptor_data = "\n,google/cloud/run/v2/execution_template.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\'google/cloud/run/v2/task_template.proto\"\xeb\x02\n\x11\x45xecutionTemplate\x12\x42\n\x06labels\x18\x01 \x03(\x0b\x32\x32.google.cloud.run.v2.ExecutionTemplate.LabelsEntry\x12L\n\x0b\x61nnotations\x18\x02 \x03(\x0b\x32\x37.google.cloud.run.v2.ExecutionTemplate.AnnotationsEntry\x12\x13\n\x0bparallelism\x18\x03 \x01(\x05\x12\x12\n\ntask_count\x18\x04 \x01(\x05\x12\x38\n\x08template\x18\x05 \x01(\x0b\x32!.google.cloud.run.v2.TaskTemplateB\x03\xe0\x41\x02\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\x42^\n\x17\x63om.google.cloud.run.v2B\x16\x45xecutionTemplateProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.cloud.run.v2.TaskTemplate", "google/cloud/run/v2/task_template.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
17
32
|
end
|
18
33
|
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
19
36
|
end
|
20
37
|
|
21
38
|
module Google
|
@@ -124,7 +124,7 @@ module Google
|
|
124
124
|
credentials = @config.credentials
|
125
125
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
126
126
|
# but only if the default endpoint does not have a region prefix.
|
127
|
-
enable_self_signed_jwt = @config.endpoint ==
|
127
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
128
128
|
!@config.endpoint.split(".").first.include?("-")
|
129
129
|
credentials ||= Credentials.default scope: @config.scope,
|
130
130
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -543,7 +543,9 @@ module Google
|
|
543
543
|
class Configuration
|
544
544
|
extend ::Gapic::Config
|
545
545
|
|
546
|
-
|
546
|
+
DEFAULT_ENDPOINT = "run.googleapis.com"
|
547
|
+
|
548
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
547
549
|
config_attr :credentials, nil do |value|
|
548
550
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
549
551
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -672,7 +672,9 @@ module Google
|
|
672
672
|
class Configuration
|
673
673
|
extend ::Gapic::Config
|
674
674
|
|
675
|
-
|
675
|
+
DEFAULT_ENDPOINT = "run.googleapis.com"
|
676
|
+
|
677
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
676
678
|
config_attr :credentials, nil do |value|
|
677
679
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
678
680
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -120,7 +120,7 @@ module Google
|
|
120
120
|
credentials = @config.credentials
|
121
121
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
122
122
|
# but only if the default endpoint does not have a region prefix.
|
123
|
-
enable_self_signed_jwt = @config.endpoint ==
|
123
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
124
124
|
!@config.endpoint.split(".").first.include?("-")
|
125
125
|
credentials ||= Credentials.default scope: @config.scope,
|
126
126
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -445,7 +445,9 @@ module Google
|
|
445
445
|
class Configuration
|
446
446
|
extend ::Gapic::Config
|
447
447
|
|
448
|
-
|
448
|
+
DEFAULT_ENDPOINT = "run.googleapis.com"
|
449
|
+
|
450
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
449
451
|
config_attr :credentials, nil do |value|
|
450
452
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
451
453
|
allowed.any? { |klass| klass === value }
|
@@ -521,7 +521,9 @@ module Google
|
|
521
521
|
class Configuration
|
522
522
|
extend ::Gapic::Config
|
523
523
|
|
524
|
-
|
524
|
+
DEFAULT_ENDPOINT = "run.googleapis.com"
|
525
|
+
|
526
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
525
527
|
config_attr :credentials, nil do |value|
|
526
528
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
527
529
|
allowed.any? { |klass| klass === value }
|
@@ -649,7 +651,7 @@ module Google
|
|
649
651
|
|
650
652
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
651
653
|
query_string_params = if query_string_params.any?
|
652
|
-
query_string_params.to_h { |p| p.split
|
654
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
653
655
|
else
|
654
656
|
{}
|
655
657
|
end
|
@@ -687,7 +689,7 @@ module Google
|
|
687
689
|
|
688
690
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
689
691
|
query_string_params = if query_string_params.any?
|
690
|
-
query_string_params.to_h { |p| p.split
|
692
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
691
693
|
else
|
692
694
|
{}
|
693
695
|
end
|
@@ -725,7 +727,7 @@ module Google
|
|
725
727
|
|
726
728
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
727
729
|
query_string_params = if query_string_params.any?
|
728
|
-
query_string_params.to_h { |p| p.split
|
730
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
729
731
|
else
|
730
732
|
{}
|
731
733
|
end
|
@@ -763,7 +765,7 @@ module Google
|
|
763
765
|
|
764
766
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
765
767
|
query_string_params = if query_string_params.any?
|
766
|
-
query_string_params.to_h { |p| p.split
|
768
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
767
769
|
else
|
768
770
|
{}
|
769
771
|
end
|
@@ -801,7 +803,7 @@ module Google
|
|
801
803
|
|
802
804
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_wait_operation_request request_pb
|
803
805
|
query_string_params = if query_string_params.any?
|
804
|
-
query_string_params.to_h { |p| p.split
|
806
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
805
807
|
else
|
806
808
|
{}
|
807
809
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_execution_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_executions_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_execution_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/run/v2/job.proto
|
3
4
|
|
@@ -17,74 +18,35 @@ require 'google/iam/v1/policy_pb'
|
|
17
18
|
require 'google/longrunning/operations_pb'
|
18
19
|
require 'google/protobuf/timestamp_pb'
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
end
|
46
|
-
add_message "google.cloud.run.v2.DeleteJobRequest" do
|
47
|
-
optional :name, :string, 1
|
48
|
-
optional :validate_only, :bool, 3
|
49
|
-
optional :etag, :string, 4
|
50
|
-
end
|
51
|
-
add_message "google.cloud.run.v2.RunJobRequest" do
|
52
|
-
optional :name, :string, 1
|
53
|
-
optional :validate_only, :bool, 2
|
54
|
-
optional :etag, :string, 3
|
55
|
-
end
|
56
|
-
add_message "google.cloud.run.v2.Job" do
|
57
|
-
optional :name, :string, 1
|
58
|
-
optional :uid, :string, 2
|
59
|
-
optional :generation, :int64, 3
|
60
|
-
map :labels, :string, :string, 4
|
61
|
-
map :annotations, :string, :string, 5
|
62
|
-
optional :create_time, :message, 6, "google.protobuf.Timestamp"
|
63
|
-
optional :update_time, :message, 7, "google.protobuf.Timestamp"
|
64
|
-
optional :delete_time, :message, 8, "google.protobuf.Timestamp"
|
65
|
-
optional :expire_time, :message, 9, "google.protobuf.Timestamp"
|
66
|
-
optional :creator, :string, 10
|
67
|
-
optional :last_modifier, :string, 11
|
68
|
-
optional :client, :string, 12
|
69
|
-
optional :client_version, :string, 13
|
70
|
-
optional :launch_stage, :enum, 14, "google.api.LaunchStage"
|
71
|
-
optional :binary_authorization, :message, 15, "google.cloud.run.v2.BinaryAuthorization"
|
72
|
-
optional :template, :message, 16, "google.cloud.run.v2.ExecutionTemplate"
|
73
|
-
optional :observed_generation, :int64, 17
|
74
|
-
optional :terminal_condition, :message, 18, "google.cloud.run.v2.Condition"
|
75
|
-
repeated :conditions, :message, 19, "google.cloud.run.v2.Condition"
|
76
|
-
optional :execution_count, :int32, 20
|
77
|
-
optional :latest_created_execution, :message, 22, "google.cloud.run.v2.ExecutionReference"
|
78
|
-
optional :reconciling, :bool, 23
|
79
|
-
optional :satisfies_pzs, :bool, 25
|
80
|
-
optional :etag, :string, 99
|
81
|
-
end
|
82
|
-
add_message "google.cloud.run.v2.ExecutionReference" do
|
83
|
-
optional :name, :string, 1
|
84
|
-
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
85
|
-
optional :completion_time, :message, 3, "google.protobuf.Timestamp"
|
21
|
+
|
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\"b\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\"\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\xcc\x0b\n\x04Jobs\x12\xa9\x01\n\tCreateJob\x12%.google.cloud.run.v2.CreateJobRequest\x1a\x1d.google.longrunning.Operation\"V\x82\xd3\xe4\x93\x02/\"(/v2/{parent=projects/*/locations/*}/jobs:\x03job\xda\x41\x11parent,job,job_id\xca\x41\n\n\x03Job\x12\x03Job\x12\x7f\n\x06GetJob\x12\".google.cloud.run.v2.GetJobRequest\x1a\x18.google.cloud.run.v2.Job\"7\x82\xd3\xe4\x93\x02*\x12(/v2/{name=projects/*/locations/*/jobs/*}\xda\x41\x04name\x12\x92\x01\n\x08ListJobs\x12$.google.cloud.run.v2.ListJobsRequest\x1a%.google.cloud.run.v2.ListJobsResponse\"9\x82\xd3\xe4\x93\x02*\x12(/v2/{parent=projects/*/locations/*}/jobs\xda\x41\x06parent\x12\x9f\x01\n\tUpdateJob\x12%.google.cloud.run.v2.UpdateJobRequest\x1a\x1d.google.longrunning.Operation\"L\x82\xd3\xe4\x93\x02\x33\x32,/v2/{job.name=projects/*/locations/*/jobs/*}:\x03job\xda\x41\x03job\xca\x41\n\n\x03Job\x12\x03Job\x12\x97\x01\n\tDeleteJob\x12%.google.cloud.run.v2.DeleteJobRequest\x1a\x1d.google.longrunning.Operation\"D\x82\xd3\xe4\x93\x02**(/v2/{name=projects/*/locations/*/jobs/*}\xda\x41\x04name\xca\x41\n\n\x03Job\x12\x03Job\x12\xa4\x01\n\x06RunJob\x12\".google.cloud.run.v2.RunJobRequest\x1a\x1d.google.longrunning.Operation\"W\x82\xd3\xe4\x93\x02\x31\",/v2/{name=projects/*/locations/*/jobs/*}:run:\x01*\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
|
+
|
24
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
25
|
+
|
26
|
+
begin
|
27
|
+
pool.add_serialized_file(descriptor_data)
|
28
|
+
rescue TypeError => e
|
29
|
+
# Compatibility code: will be removed in the next major version.
|
30
|
+
require 'google/protobuf/descriptor_pb'
|
31
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
32
|
+
parsed.clear_dependency
|
33
|
+
serialized = parsed.class.encode(parsed)
|
34
|
+
file = pool.add_serialized_file(serialized)
|
35
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
36
|
+
imports = [
|
37
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
38
|
+
["google.cloud.run.v2.BinaryAuthorization", "google/cloud/run/v2/vendor_settings.proto"],
|
39
|
+
["google.cloud.run.v2.ExecutionTemplate", "google/cloud/run/v2/execution_template.proto"],
|
40
|
+
["google.cloud.run.v2.Condition", "google/cloud/run/v2/condition.proto"],
|
41
|
+
]
|
42
|
+
imports.each do |type_name, expected_filename|
|
43
|
+
import_file = pool.lookup(type_name).file_descriptor
|
44
|
+
if import_file.name != expected_filename
|
45
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
86
46
|
end
|
87
47
|
end
|
48
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
49
|
+
warn "This will become an error in the next major version."
|
88
50
|
end
|
89
51
|
|
90
52
|
module Google
|
@@ -124,7 +124,7 @@ module Google
|
|
124
124
|
credentials = @config.credentials
|
125
125
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
126
126
|
# but only if the default endpoint does not have a region prefix.
|
127
|
-
enable_self_signed_jwt = @config.endpoint ==
|
127
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
128
128
|
!@config.endpoint.split(".").first.include?("-")
|
129
129
|
credentials ||= Credentials.default scope: @config.scope,
|
130
130
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -1125,7 +1125,9 @@ module Google
|
|
1125
1125
|
class Configuration
|
1126
1126
|
extend ::Gapic::Config
|
1127
1127
|
|
1128
|
-
|
1128
|
+
DEFAULT_ENDPOINT = "run.googleapis.com"
|
1129
|
+
|
1130
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1129
1131
|
config_attr :credentials, nil do |value|
|
1130
1132
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1131
1133
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -672,7 +672,9 @@ module Google
|
|
672
672
|
class Configuration
|
673
673
|
extend ::Gapic::Config
|
674
674
|
|
675
|
-
|
675
|
+
DEFAULT_ENDPOINT = "run.googleapis.com"
|
676
|
+
|
677
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
676
678
|
config_attr :credentials, nil do |value|
|
677
679
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
678
680
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -120,7 +120,7 @@ module Google
|
|
120
120
|
credentials = @config.credentials
|
121
121
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
122
122
|
# but only if the default endpoint does not have a region prefix.
|
123
|
-
enable_self_signed_jwt = @config.endpoint ==
|
123
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
124
124
|
!@config.endpoint.split(".").first.include?("-")
|
125
125
|
credentials ||= Credentials.default scope: @config.scope,
|
126
126
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -868,7 +868,9 @@ module Google
|
|
868
868
|
class Configuration
|
869
869
|
extend ::Gapic::Config
|
870
870
|
|
871
|
-
|
871
|
+
DEFAULT_ENDPOINT = "run.googleapis.com"
|
872
|
+
|
873
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
872
874
|
config_attr :credentials, nil do |value|
|
873
875
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
874
876
|
allowed.any? { |klass| klass === value }
|
@@ -521,7 +521,9 @@ module Google
|
|
521
521
|
class Configuration
|
522
522
|
extend ::Gapic::Config
|
523
523
|
|
524
|
-
|
524
|
+
DEFAULT_ENDPOINT = "run.googleapis.com"
|
525
|
+
|
526
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
525
527
|
config_attr :credentials, nil do |value|
|
526
528
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
527
529
|
allowed.any? { |klass| klass === value }
|
@@ -649,7 +651,7 @@ module Google
|
|
649
651
|
|
650
652
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
651
653
|
query_string_params = if query_string_params.any?
|
652
|
-
query_string_params.to_h { |p| p.split
|
654
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
653
655
|
else
|
654
656
|
{}
|
655
657
|
end
|
@@ -687,7 +689,7 @@ module Google
|
|
687
689
|
|
688
690
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
689
691
|
query_string_params = if query_string_params.any?
|
690
|
-
query_string_params.to_h { |p| p.split
|
692
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
691
693
|
else
|
692
694
|
{}
|
693
695
|
end
|
@@ -725,7 +727,7 @@ module Google
|
|
725
727
|
|
726
728
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
727
729
|
query_string_params = if query_string_params.any?
|
728
|
-
query_string_params.to_h { |p| p.split
|
730
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
729
731
|
else
|
730
732
|
{}
|
731
733
|
end
|
@@ -763,7 +765,7 @@ module Google
|
|
763
765
|
|
764
766
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
765
767
|
query_string_params = if query_string_params.any?
|
766
|
-
query_string_params.to_h { |p| p.split
|
768
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
767
769
|
else
|
768
770
|
{}
|
769
771
|
end
|
@@ -801,7 +803,7 @@ module Google
|
|
801
803
|
|
802
804
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_wait_operation_request request_pb
|
803
805
|
query_string_params = if query_string_params.any?
|
804
|
-
query_string_params.to_h { |p| p.split
|
806
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
805
807
|
else
|
806
808
|
{}
|
807
809
|
end
|