google-cloud-run-v2 0.7.0 → 0.9.0
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/README.md +1 -1
- data/lib/google/cloud/run/v2/condition_pb.rb +25 -64
- data/lib/google/cloud/run/v2/execution_pb.rb +27 -47
- data/lib/google/cloud/run/v2/execution_template_pb.rb +25 -8
- data/lib/google/cloud/run/v2/executions/client.rb +2 -2
- data/lib/google/cloud/run/v2/executions/operations.rb +2 -2
- data/lib/google/cloud/run/v2/executions/rest/client.rb +2 -2
- data/lib/google/cloud/run/v2/executions/rest/operations.rb +2 -2
- data/lib/google/cloud/run/v2/job_pb.rb +29 -66
- data/lib/google/cloud/run/v2/jobs/client.rb +2 -2
- data/lib/google/cloud/run/v2/jobs/operations.rb +2 -2
- data/lib/google/cloud/run/v2/jobs/rest/client.rb +2 -2
- data/lib/google/cloud/run/v2/jobs/rest/operations.rb +2 -2
- data/lib/google/cloud/run/v2/k8s.min_pb.rb +24 -86
- data/lib/google/cloud/run/v2/revision_pb.rb +29 -48
- data/lib/google/cloud/run/v2/revision_template_pb.rb +27 -15
- data/lib/google/cloud/run/v2/revisions/client.rb +2 -2
- data/lib/google/cloud/run/v2/revisions/operations.rb +2 -2
- data/lib/google/cloud/run/v2/revisions/rest/client.rb +2 -2
- data/lib/google/cloud/run/v2/revisions/rest/operations.rb +2 -2
- data/lib/google/cloud/run/v2/service_pb.rb +29 -60
- data/lib/google/cloud/run/v2/services/client.rb +4 -4
- data/lib/google/cloud/run/v2/services/operations.rb +2 -2
- data/lib/google/cloud/run/v2/services/rest/client.rb +4 -4
- data/lib/google/cloud/run/v2/services/rest/operations.rb +2 -2
- data/lib/google/cloud/run/v2/task_pb.rb +30 -49
- data/lib/google/cloud/run/v2/task_template_pb.rb +27 -13
- data/lib/google/cloud/run/v2/tasks/client.rb +2 -2
- data/lib/google/cloud/run/v2/tasks/rest/client.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/api/client.rb +67 -4
- data/proto_docs/google/cloud/run/v2/condition.rb +3 -0
- data/proto_docs/google/cloud/run/v2/execution.rb +22 -15
- data/proto_docs/google/cloud/run/v2/execution_template.rb +14 -5
- data/proto_docs/google/cloud/run/v2/job.rb +16 -6
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +23 -34
- data/proto_docs/google/cloud/run/v2/revision.rb +25 -12
- data/proto_docs/google/cloud/run/v2/revision_template.rb +16 -2
- data/proto_docs/google/cloud/run/v2/service.rb +16 -8
- data/proto_docs/google/cloud/run/v2/task.rb +13 -7
- data/proto_docs/google/cloud/run/v2/task_template.rb +2 -0
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- 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: dd05cb8aff4111d2f48d5d9a0a7c849d47f65ccc6fbd47546e0f2f7231da9ac3
|
4
|
+
data.tar.gz: 1e5185d69515970a5fb1725e692d44e044171475b3633e8509cb457541a9deb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66a9f39c796d4aec913761f7389fcb0c00753427e3d31f8b37f8756b93e6319b99503fd141617719ea4c6549843a42635212c8ca41c924faf6c64f9b760d289b
|
7
|
+
data.tar.gz: 98352c703678e35c31bc4aab3df9d152bb0b1713891859dc2d47e79060d1a01403bc3dfe16524a8ce0dd54bb09d633563782691ca09599677d718d960205aad0
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -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,72 +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
|
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}"
|
72
31
|
end
|
73
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."
|
74
35
|
end
|
75
36
|
|
76
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,55 +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 :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}"
|
63
41
|
end
|
64
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."
|
65
45
|
end
|
66
46
|
|
67
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
|
@@ -499,9 +499,9 @@ module Google
|
|
499
499
|
# * (`String`) The path to a service account key file in JSON format
|
500
500
|
# * (`Hash`) A service account key as a Hash
|
501
501
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
502
|
-
# (see the [googleauth docs](https://
|
502
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
503
503
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
504
|
-
# (see the [signet docs](https://
|
504
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
505
505
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
506
506
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
507
507
|
# * (`nil`) indicating no credentials
|
@@ -628,9 +628,9 @@ module Google
|
|
628
628
|
# * (`String`) The path to a service account key file in JSON format
|
629
629
|
# * (`Hash`) A service account key as a Hash
|
630
630
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
631
|
-
# (see the [googleauth docs](https://
|
631
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
632
632
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
633
|
-
# (see the [signet docs](https://
|
633
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
634
634
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
635
635
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
636
636
|
# * (`nil`) indicating no credentials
|
@@ -410,9 +410,9 @@ module Google
|
|
410
410
|
# * (`String`) The path to a service account key file in JSON format
|
411
411
|
# * (`Hash`) A service account key as a Hash
|
412
412
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
413
|
-
# (see the [googleauth docs](https://
|
413
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
414
414
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
415
|
-
# (see the [signet docs](https://
|
415
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
416
416
|
# * (`nil`) indicating no credentials
|
417
417
|
# @return [::Object]
|
418
418
|
# @!attribute [rw] scope
|
@@ -486,9 +486,9 @@ module Google
|
|
486
486
|
# * (`String`) The path to a service account key file in JSON format
|
487
487
|
# * (`Hash`) A service account key as a Hash
|
488
488
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
489
|
-
# (see the [googleauth docs](https://
|
489
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
490
490
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
491
|
-
# (see the [signet docs](https://
|
491
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
492
492
|
# * (`nil`) indicating no credentials
|
493
493
|
# @return [::Object]
|
494
494
|
# @!attribute [rw] scope
|
@@ -1,15 +1,16 @@
|
|
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
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/cloud/run/v2/execution_pb'
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
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
12
|
require 'google/cloud/run/v2/condition_pb'
|
13
|
+
require 'google/cloud/run/v2/execution_pb'
|
13
14
|
require 'google/cloud/run/v2/execution_template_pb'
|
14
15
|
require 'google/cloud/run/v2/vendor_settings_pb'
|
15
16
|
require 'google/iam/v1/iam_policy_pb'
|
@@ -17,73 +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 :etag, :string, 99
|
80
|
-
end
|
81
|
-
add_message "google.cloud.run.v2.ExecutionReference" do
|
82
|
-
optional :name, :string, 1
|
83
|
-
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
84
|
-
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}"
|
85
46
|
end
|
86
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."
|
87
50
|
end
|
88
51
|
|
89
52
|
module Google
|
@@ -1081,9 +1081,9 @@ module Google
|
|
1081
1081
|
# * (`String`) The path to a service account key file in JSON format
|
1082
1082
|
# * (`Hash`) A service account key as a Hash
|
1083
1083
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1084
|
-
# (see the [googleauth docs](https://
|
1084
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1085
1085
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1086
|
-
# (see the [signet docs](https://
|
1086
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1087
1087
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1088
1088
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1089
1089
|
# * (`nil`) indicating no credentials
|
@@ -628,9 +628,9 @@ module Google
|
|
628
628
|
# * (`String`) The path to a service account key file in JSON format
|
629
629
|
# * (`Hash`) A service account key as a Hash
|
630
630
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
631
|
-
# (see the [googleauth docs](https://
|
631
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
632
632
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
633
|
-
# (see the [signet docs](https://
|
633
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
634
634
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
635
635
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
636
636
|
# * (`nil`) indicating no credentials
|
@@ -833,9 +833,9 @@ module Google
|
|
833
833
|
# * (`String`) The path to a service account key file in JSON format
|
834
834
|
# * (`Hash`) A service account key as a Hash
|
835
835
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
836
|
-
# (see the [googleauth docs](https://
|
836
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
837
837
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
838
|
-
# (see the [signet docs](https://
|
838
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
839
839
|
# * (`nil`) indicating no credentials
|
840
840
|
# @return [::Object]
|
841
841
|
# @!attribute [rw] scope
|
@@ -486,9 +486,9 @@ module Google
|
|
486
486
|
# * (`String`) The path to a service account key file in JSON format
|
487
487
|
# * (`Hash`) A service account key as a Hash
|
488
488
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
489
|
-
# (see the [googleauth docs](https://
|
489
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
490
490
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
491
|
-
# (see the [signet docs](https://
|
491
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
492
492
|
# * (`nil`) indicating no credentials
|
493
493
|
# @return [::Object]
|
494
494
|
# @!attribute [rw] scope
|