google-events 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/google/events/cloud/apigateway/v1/data_pb.rb +25 -77
- data/lib/google/events/cloud/apigateway/v1/events_pb.rb +25 -28
- data/lib/google/events/cloud/apigeeregistry/v1/data_pb.rb +25 -90
- data/lib/google/events/cloud/apigeeregistry/v1/events_pb.rb +25 -43
- data/lib/google/events/cloud/audit/v1/data_pb.rb +29 -91
- data/lib/google/events/cloud/audit/v1/events_pb.rb +25 -4
- data/lib/google/events/cloud/beyondcorp/appconnections/v1/data_pb.rb +25 -44
- data/lib/google/events/cloud/beyondcorp/appconnections/v1/events_pb.rb +25 -10
- data/lib/google/events/cloud/beyondcorp/appconnectors/v1/data_pb.rb +25 -44
- data/lib/google/events/cloud/beyondcorp/appconnectors/v1/events_pb.rb +25 -10
- data/lib/google/events/cloud/beyondcorp/appgateways/v1/data_pb.rb +25 -37
- data/lib/google/events/cloud/beyondcorp/appgateways/v1/events_pb.rb +25 -7
- data/lib/google/events/cloud/beyondcorp/clientconnectorservices/v1/data_pb.rb +25 -47
- data/lib/google/events/cloud/beyondcorp/clientconnectorservices/v1/events_pb.rb +25 -10
- data/lib/google/events/cloud/beyondcorp/clientgateways/v1/data_pb.rb +25 -21
- data/lib/google/events/cloud/beyondcorp/clientgateways/v1/events_pb.rb +25 -7
- data/lib/google/events/cloud/certificatemanager/v1/data_pb.rb +26 -157
- data/lib/google/events/cloud/certificatemanager/v1/events_pb.rb +25 -43
- data/lib/google/events/cloud/cloudbuild/v1/data_pb.rb +26 -162
- data/lib/google/events/cloud/cloudbuild/v1/events_pb.rb +25 -4
- data/lib/google/events/cloud/clouddms/v1/data_pb.rb +28 -241
- data/lib/google/events/cloud/clouddms/v1/events_pb.rb +25 -19
- data/lib/google/events/cloud/dataflow/v1beta3/data_pb.rb +26 -195
- data/lib/google/events/cloud/dataflow/v1beta3/events_pb.rb +25 -4
- data/lib/google/events/cloud/datafusion/v1/data_pb.rb +25 -107
- data/lib/google/events/cloud/datafusion/v1/events_pb.rb +25 -16
- data/lib/google/events/cloud/dataplex/v1/data_pb.rb +144 -0
- data/lib/google/events/cloud/dataplex/v1/events_pb.rb +74 -0
- data/lib/google/events/cloud/datastream/v1/data_pb.rb +26 -291
- data/lib/google/events/cloud/datastream/v1/events_pb.rb +25 -31
- data/lib/google/events/cloud/eventarc/v1/data_pb.rb +25 -89
- data/lib/google/events/cloud/eventarc/v1/events_pb.rb +25 -25
- data/lib/google/events/cloud/firestore/v1/data_pb.rb +26 -36
- data/lib/google/events/cloud/firestore/v1/events_pb.rb +25 -13
- data/lib/google/events/cloud/functions/v2/data_pb.rb +25 -155
- data/lib/google/events/cloud/functions/v2/events_pb.rb +25 -10
- data/lib/google/events/cloud/gkebackup/v1/data_pb.rb +71 -0
- data/lib/google/events/cloud/gkebackup/v1/events_pb.rb +59 -0
- data/lib/google/events/cloud/iot/v1/data_pb.rb +26 -132
- data/lib/google/events/cloud/iot/v1/events_pb.rb +25 -19
- data/lib/google/events/cloud/memcache/v1/data_pb.rb +27 -83
- data/lib/google/events/cloud/memcache/v1/events_pb.rb +25 -10
- data/lib/google/events/cloud/pubsub/v1/data_pb.rb +25 -12
- data/lib/google/events/cloud/pubsub/v1/events_pb.rb +25 -4
- data/lib/google/events/cloud/scheduler/v1/data_pb.rb +24 -4
- data/lib/google/events/cloud/scheduler/v1/events_pb.rb +25 -4
- data/lib/google/events/cloud/storage/v1/data_pb.rb +25 -36
- data/lib/google/events/cloud/storage/v1/events_pb.rb +25 -13
- data/lib/google/events/cloud/video/transcoder/v1/data_pb.rb +96 -0
- data/lib/google/events/cloud/video/transcoder/v1/events_pb.rb +53 -0
- data/lib/google/events/cloud/workflows/v1/data_pb.rb +25 -22
- data/lib/google/events/cloud/workflows/v1/events_pb.rb +25 -10
- data/lib/google/events/cloudevent_pb.rb +24 -6
- data/lib/google/events/firebase/analytics/v1/data_pb.rb +24 -76
- data/lib/google/events/firebase/analytics/v1/events_pb.rb +25 -4
- data/lib/google/events/firebase/auth/v1/data_pb.rb +26 -24
- data/lib/google/events/firebase/auth/v1/events_pb.rb +25 -7
- data/lib/google/events/firebase/database/v1/data_pb.rb +25 -5
- data/lib/google/events/firebase/database/v1/events_pb.rb +25 -13
- data/lib/google/events/firebase/firebasealerts/v1/cloud_event_payload_pb.rb +26 -79
- data/lib/google/events/firebase/firebasealerts/v1/data_pb.rb +26 -6
- data/lib/google/events/firebase/firebasealerts/v1/events_pb.rb +25 -4
- data/lib/google/events/firebase/remoteconfig/v1/data_pb.rb +25 -27
- data/lib/google/events/firebase/remoteconfig/v1/events_pb.rb +25 -4
- data/lib/google/events/firebase/testlab/v1/data_pb.rb +25 -35
- data/lib/google/events/firebase/testlab/v1/events_pb.rb +25 -4
- data/lib/google/events/version.rb +1 -1
- metadata +8 -2
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/events/cloud/firestore/v1/data.proto
|
3
4
|
|
@@ -7,44 +8,33 @@ require 'google/protobuf/struct_pb'
|
|
7
8
|
require 'google/protobuf/timestamp_pb'
|
8
9
|
require 'google/type/latlng_pb'
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
optional :string_value, :string, 17
|
34
|
-
optional :bytes_value, :bytes, 18
|
35
|
-
optional :reference_value, :string, 5
|
36
|
-
optional :geo_point_value, :message, 8, "google.type.LatLng"
|
37
|
-
optional :array_value, :message, 9, "google.events.cloud.firestore.v1.ArrayValue"
|
38
|
-
optional :map_value, :message, 6, "google.events.cloud.firestore.v1.MapValue"
|
39
|
-
end
|
40
|
-
end
|
41
|
-
add_message "google.events.cloud.firestore.v1.ArrayValue" do
|
42
|
-
repeated :values, :message, 1, "google.events.cloud.firestore.v1.Value"
|
43
|
-
end
|
44
|
-
add_message "google.events.cloud.firestore.v1.MapValue" do
|
45
|
-
map :fields, :string, :message, 1, "google.events.cloud.firestore.v1.Value"
|
11
|
+
|
12
|
+
descriptor_data = "\n+google/events/cloud/firestore/v1/data.proto\x12 google.events.cloud.firestore.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x18google/type/latlng.proto\"\xd2\x01\n\x11\x44ocumentEventData\x12\x39\n\x05value\x18\x01 \x01(\x0b\x32*.google.events.cloud.firestore.v1.Document\x12=\n\told_value\x18\x02 \x01(\x0b\x32*.google.events.cloud.firestore.v1.Document\x12\x43\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32..google.events.cloud.firestore.v1.DocumentMask\"#\n\x0c\x44ocumentMask\x12\x13\n\x0b\x66ield_paths\x18\x01 \x03(\t\"\x9a\x02\n\x08\x44ocument\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x46\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x36.google.events.cloud.firestore.v1.Document.FieldsEntry\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1aV\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.events.cloud.firestore.v1.Value:\x02\x38\x01\"\xc8\x03\n\x05Value\x12\x30\n\nnull_value\x18\x0b \x01(\x0e\x32\x1a.google.protobuf.NullValueH\x00\x12\x17\n\rboolean_value\x18\x01 \x01(\x08H\x00\x12\x17\n\rinteger_value\x18\x02 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12\x35\n\x0ftimestamp_value\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x16\n\x0cstring_value\x18\x11 \x01(\tH\x00\x12\x15\n\x0b\x62ytes_value\x18\x12 \x01(\x0cH\x00\x12\x19\n\x0freference_value\x18\x05 \x01(\tH\x00\x12.\n\x0fgeo_point_value\x18\x08 \x01(\x0b\x32\x13.google.type.LatLngH\x00\x12\x43\n\x0b\x61rray_value\x18\t \x01(\x0b\x32,.google.events.cloud.firestore.v1.ArrayValueH\x00\x12?\n\tmap_value\x18\x06 \x01(\x0b\x32*.google.events.cloud.firestore.v1.MapValueH\x00\x42\x0c\n\nvalue_type\"E\n\nArrayValue\x12\x37\n\x06values\x18\x01 \x03(\x0b\x32\'.google.events.cloud.firestore.v1.Value\"\xaa\x01\n\x08MapValue\x12\x46\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x36.google.events.cloud.firestore.v1.MapValue.FieldsEntry\x1aV\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.events.cloud.firestore.v1.Value:\x02\x38\x01\x42v\xaa\x02)Google.Events.Protobuf.Cloud.Firestore.V1\xca\x02 Google\\Events\\Cloud\\Firestore\\V1\xea\x02$Google::Events::Cloud::Firestore::V1b\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
28
|
+
["google.type.LatLng", "google/type/latlng.proto"],
|
29
|
+
]
|
30
|
+
imports.each do |type_name, expected_filename|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
32
|
+
if import_file.name != expected_filename
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
46
34
|
end
|
47
35
|
end
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
37
|
+
warn "This will become an error in the next major version."
|
48
38
|
end
|
49
39
|
|
50
40
|
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/events/cloud/firestore/v1/events.proto
|
3
4
|
|
@@ -6,21 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/events/cloud/firestore/v1/data_pb'
|
7
8
|
require 'google/events/cloudevent_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
10
|
+
|
11
|
+
descriptor_data = "\n-google/events/cloud/firestore/v1/events.proto\x12 google.events.cloud.firestore.v1\x1a+google/events/cloud/firestore/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\xb2\x01\n\x14\x44ocumentCreatedEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.firestore.v1.DocumentEventData:W\xb2\xf8\xd8,*google.cloud.firestore.document.v1.created\xca\xf8\xd8,\x08\x64\x61tabase\xca\xf8\xd8,\tnamespace\xca\xf8\xd8,\x08\x64ocument\"\xb2\x01\n\x14\x44ocumentUpdatedEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.firestore.v1.DocumentEventData:W\xb2\xf8\xd8,*google.cloud.firestore.document.v1.updated\xca\xf8\xd8,\x08\x64\x61tabase\xca\xf8\xd8,\tnamespace\xca\xf8\xd8,\x08\x64ocument\"\xb2\x01\n\x14\x44ocumentDeletedEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.firestore.v1.DocumentEventData:W\xb2\xf8\xd8,*google.cloud.firestore.document.v1.deleted\xca\xf8\xd8,\x08\x64\x61tabase\xca\xf8\xd8,\tnamespace\xca\xf8\xd8,\x08\x64ocument\"\xb2\x01\n\x14\x44ocumentWrittenEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.firestore.v1.DocumentEventData:W\xb2\xf8\xd8,*google.cloud.firestore.document.v1.written\xca\xf8\xd8,\x08\x64\x61tabase\xca\xf8\xd8,\tnamespace\xca\xf8\xd8,\x08\x64ocumentB\xb0\x03\xaa\x02)Google.Events.Protobuf.Cloud.Firestore.V1\xca\x02 Google\\Events\\Cloud\\Firestore\\V1\xea\x02$Google::Events::Cloud::Firestore::V1\xba\xf8\xd8,\x0f\x43loud Firestore\xc2\xf8\xd8,R\n\x08\x64\x61tabase\x12\x46The Firestore database name. The default database name is \"(default)\".\xc2\xf8\xd8,\x96\x01\n\tnamespace\x12\x88\x01The Firestore database namespace. Applicable to database instances running in Datastore mode only. The default namespace is \"(default)\".\xc2\xf8\xd8,.\n\x08\x64ocument\x12\"Pattern to match for the resource.b\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.events.cloud.firestore.v1.DocumentEventData", "google/events/cloud/firestore/v1/data.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}"
|
22
32
|
end
|
23
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."
|
24
36
|
end
|
25
37
|
|
26
38
|
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/events/cloud/functions/v2/data.proto
|
3
4
|
|
@@ -5,163 +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
|
-
add_message "google.events.cloud.functions.v2.StateMessage" do
|
31
|
-
optional :severity, :enum, 1, "google.events.cloud.functions.v2.StateMessage.Severity"
|
32
|
-
optional :type, :string, 2
|
33
|
-
optional :message, :string, 3
|
34
|
-
end
|
35
|
-
add_enum "google.events.cloud.functions.v2.StateMessage.Severity" do
|
36
|
-
value :SEVERITY_UNSPECIFIED, 0
|
37
|
-
value :ERROR, 1
|
38
|
-
value :WARNING, 2
|
39
|
-
value :INFO, 3
|
40
|
-
end
|
41
|
-
add_message "google.events.cloud.functions.v2.StorageSource" do
|
42
|
-
optional :bucket, :string, 1
|
43
|
-
optional :object, :string, 2
|
44
|
-
optional :generation, :int64, 3
|
45
|
-
end
|
46
|
-
add_message "google.events.cloud.functions.v2.RepoSource" do
|
47
|
-
optional :project_id, :string, 1
|
48
|
-
optional :repo_name, :string, 2
|
49
|
-
optional :dir, :string, 6
|
50
|
-
optional :invert_regex, :bool, 7
|
51
|
-
oneof :revision do
|
52
|
-
optional :branch_name, :string, 3
|
53
|
-
optional :tag_name, :string, 4
|
54
|
-
optional :commit_sha, :string, 5
|
55
|
-
end
|
56
|
-
end
|
57
|
-
add_message "google.events.cloud.functions.v2.Source" do
|
58
|
-
oneof :source do
|
59
|
-
optional :storage_source, :message, 1, "google.events.cloud.functions.v2.StorageSource"
|
60
|
-
optional :repo_source, :message, 2, "google.events.cloud.functions.v2.RepoSource"
|
61
|
-
end
|
62
|
-
end
|
63
|
-
add_message "google.events.cloud.functions.v2.SourceProvenance" do
|
64
|
-
optional :resolved_storage_source, :message, 1, "google.events.cloud.functions.v2.StorageSource"
|
65
|
-
optional :resolved_repo_source, :message, 2, "google.events.cloud.functions.v2.RepoSource"
|
66
|
-
end
|
67
|
-
add_message "google.events.cloud.functions.v2.BuildConfig" do
|
68
|
-
optional :build, :string, 1
|
69
|
-
optional :runtime, :string, 2
|
70
|
-
optional :entry_point, :string, 3
|
71
|
-
optional :source, :message, 4, "google.events.cloud.functions.v2.Source"
|
72
|
-
optional :source_provenance, :message, 8, "google.events.cloud.functions.v2.SourceProvenance"
|
73
|
-
optional :worker_pool, :string, 5
|
74
|
-
map :environment_variables, :string, :string, 6
|
75
|
-
optional :docker_registry, :enum, 10, "google.events.cloud.functions.v2.BuildConfig.DockerRegistry"
|
76
|
-
optional :docker_repository, :string, 7
|
77
|
-
optional :buildpack_stack, :string, 9
|
78
|
-
end
|
79
|
-
add_enum "google.events.cloud.functions.v2.BuildConfig.DockerRegistry" do
|
80
|
-
value :DOCKER_REGISTRY_UNSPECIFIED, 0
|
81
|
-
value :CONTAINER_REGISTRY, 1
|
82
|
-
value :ARTIFACT_REGISTRY, 2
|
83
|
-
end
|
84
|
-
add_message "google.events.cloud.functions.v2.ServiceConfig" do
|
85
|
-
optional :service, :string, 1
|
86
|
-
optional :timeout_seconds, :int32, 2
|
87
|
-
optional :available_memory, :string, 13
|
88
|
-
optional :available_cpu, :string, 22
|
89
|
-
map :environment_variables, :string, :string, 4
|
90
|
-
optional :max_instance_count, :int32, 5
|
91
|
-
optional :min_instance_count, :int32, 12
|
92
|
-
optional :vpc_connector, :string, 6
|
93
|
-
optional :vpc_connector_egress_settings, :enum, 7, "google.events.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings"
|
94
|
-
optional :ingress_settings, :enum, 8, "google.events.cloud.functions.v2.ServiceConfig.IngressSettings"
|
95
|
-
optional :uri, :string, 9
|
96
|
-
optional :service_account_email, :string, 10
|
97
|
-
optional :all_traffic_on_latest_revision, :bool, 16
|
98
|
-
repeated :secret_environment_variables, :message, 17, "google.events.cloud.functions.v2.SecretEnvVar"
|
99
|
-
repeated :secret_volumes, :message, 19, "google.events.cloud.functions.v2.SecretVolume"
|
100
|
-
optional :revision, :string, 18
|
101
|
-
optional :max_instance_request_concurrency, :int32, 20
|
102
|
-
optional :security_level, :enum, 21, "google.events.cloud.functions.v2.ServiceConfig.SecurityLevel"
|
103
|
-
end
|
104
|
-
add_enum "google.events.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings" do
|
105
|
-
value :VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED, 0
|
106
|
-
value :PRIVATE_RANGES_ONLY, 1
|
107
|
-
value :ALL_TRAFFIC, 2
|
108
|
-
end
|
109
|
-
add_enum "google.events.cloud.functions.v2.ServiceConfig.IngressSettings" do
|
110
|
-
value :INGRESS_SETTINGS_UNSPECIFIED, 0
|
111
|
-
value :ALLOW_ALL, 1
|
112
|
-
value :ALLOW_INTERNAL_ONLY, 2
|
113
|
-
value :ALLOW_INTERNAL_AND_GCLB, 3
|
114
|
-
end
|
115
|
-
add_enum "google.events.cloud.functions.v2.ServiceConfig.SecurityLevel" do
|
116
|
-
value :SECURITY_LEVEL_UNSPECIFIED, 0
|
117
|
-
value :SECURE_ALWAYS, 1
|
118
|
-
value :SECURE_OPTIONAL, 2
|
119
|
-
end
|
120
|
-
add_message "google.events.cloud.functions.v2.SecretEnvVar" do
|
121
|
-
optional :key, :string, 1
|
122
|
-
optional :project_id, :string, 2
|
123
|
-
optional :secret, :string, 3
|
124
|
-
optional :version, :string, 4
|
125
|
-
end
|
126
|
-
add_message "google.events.cloud.functions.v2.SecretVolume" do
|
127
|
-
optional :mount_path, :string, 1
|
128
|
-
optional :project_id, :string, 2
|
129
|
-
optional :secret, :string, 3
|
130
|
-
repeated :versions, :message, 4, "google.events.cloud.functions.v2.SecretVolume.SecretVersion"
|
131
|
-
end
|
132
|
-
add_message "google.events.cloud.functions.v2.SecretVolume.SecretVersion" do
|
133
|
-
optional :version, :string, 1
|
134
|
-
optional :path, :string, 2
|
135
|
-
end
|
136
|
-
add_message "google.events.cloud.functions.v2.EventTrigger" do
|
137
|
-
optional :trigger, :string, 1
|
138
|
-
optional :trigger_region, :string, 2
|
139
|
-
optional :event_type, :string, 3
|
140
|
-
repeated :event_filters, :message, 4, "google.events.cloud.functions.v2.EventFilter"
|
141
|
-
optional :pubsub_topic, :string, 5
|
142
|
-
optional :service_account_email, :string, 6
|
143
|
-
optional :retry_policy, :enum, 7, "google.events.cloud.functions.v2.EventTrigger.RetryPolicy"
|
144
|
-
optional :channel, :string, 8
|
145
|
-
end
|
146
|
-
add_enum "google.events.cloud.functions.v2.EventTrigger.RetryPolicy" do
|
147
|
-
value :RETRY_POLICY_UNSPECIFIED, 0
|
148
|
-
value :RETRY_POLICY_DO_NOT_RETRY, 1
|
149
|
-
value :RETRY_POLICY_RETRY, 2
|
150
|
-
end
|
151
|
-
add_message "google.events.cloud.functions.v2.EventFilter" do
|
152
|
-
optional :attribute, :string, 1
|
153
|
-
optional :value, :string, 2
|
154
|
-
optional :operator, :string, 3
|
155
|
-
end
|
156
|
-
add_message "google.events.cloud.functions.v2.FunctionEventData" do
|
157
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.functions.v2.Function"
|
158
|
-
end
|
159
|
-
add_enum "google.events.cloud.functions.v2.Environment" do
|
160
|
-
value :ENVIRONMENT_UNSPECIFIED, 0
|
161
|
-
value :GEN_1, 1
|
162
|
-
value :GEN_2, 2
|
9
|
+
|
10
|
+
descriptor_data = "\n+google/events/cloud/functions/v2/data.proto\x12 google.events.cloud.functions.v2\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd9\x05\n\x08\x46unction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x42\n\x0b\x65nvironment\x18\n \x01(\x0e\x32-.google.events.cloud.functions.v2.Environment\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x43\n\x0c\x62uild_config\x18\x03 \x01(\x0b\x32-.google.events.cloud.functions.v2.BuildConfig\x12G\n\x0eservice_config\x18\x04 \x01(\x0b\x32/.google.events.cloud.functions.v2.ServiceConfig\x12\x45\n\revent_trigger\x18\x05 \x01(\x0b\x32..google.events.cloud.functions.v2.EventTrigger\x12?\n\x05state\x18\x06 \x01(\x0e\x32\x30.google.events.cloud.functions.v2.Function.State\x12/\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x46\n\x06labels\x18\x08 \x03(\x0b\x32\x36.google.events.cloud.functions.v2.Function.LabelsEntry\x12\x46\n\x0estate_messages\x18\t \x03(\x0b\x32..google.events.cloud.functions.v2.StateMessage\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\r\n\tDEPLOYING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0b\n\x07UNKNOWN\x10\x05\"\xc0\x01\n\x0cStateMessage\x12I\n\x08severity\x18\x01 \x01(\x0e\x32\x37.google.events.cloud.functions.v2.StateMessage.Severity\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0f\n\x07message\x18\x03 \x01(\t\"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\"C\n\rStorageSource\x12\x0e\n\x06\x62ucket\x18\x01 \x01(\t\x12\x0e\n\x06object\x18\x02 \x01(\t\x12\x12\n\ngeneration\x18\x03 \x01(\x03\"\xa3\x01\n\nRepoSource\x12\x15\n\x0b\x62ranch_name\x18\x03 \x01(\tH\x00\x12\x12\n\x08tag_name\x18\x04 \x01(\tH\x00\x12\x14\n\ncommit_sha\x18\x05 \x01(\tH\x00\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x11\n\trepo_name\x18\x02 \x01(\t\x12\x0b\n\x03\x64ir\x18\x06 \x01(\t\x12\x14\n\x0cinvert_regex\x18\x07 \x01(\x08\x42\n\n\x08revision\"\xa2\x01\n\x06Source\x12I\n\x0estorage_source\x18\x01 \x01(\x0b\x32/.google.events.cloud.functions.v2.StorageSourceH\x00\x12\x43\n\x0brepo_source\x18\x02 \x01(\x0b\x32,.google.events.cloud.functions.v2.RepoSourceH\x00\x42\x08\n\x06source\"\xb0\x01\n\x10SourceProvenance\x12P\n\x17resolved_storage_source\x18\x01 \x01(\x0b\x32/.google.events.cloud.functions.v2.StorageSource\x12J\n\x14resolved_repo_source\x18\x02 \x01(\x0b\x32,.google.events.cloud.functions.v2.RepoSource\"\xf2\x04\n\x0b\x42uildConfig\x12\r\n\x05\x62uild\x18\x01 \x01(\t\x12\x0f\n\x07runtime\x18\x02 \x01(\t\x12\x13\n\x0b\x65ntry_point\x18\x03 \x01(\t\x12\x38\n\x06source\x18\x04 \x01(\x0b\x32(.google.events.cloud.functions.v2.Source\x12M\n\x11source_provenance\x18\x08 \x01(\x0b\x32\x32.google.events.cloud.functions.v2.SourceProvenance\x12\x13\n\x0bworker_pool\x18\x05 \x01(\t\x12\x66\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32G.google.events.cloud.functions.v2.BuildConfig.EnvironmentVariablesEntry\x12U\n\x0f\x64ocker_registry\x18\n \x01(\x0e\x32<.google.events.cloud.functions.v2.BuildConfig.DockerRegistry\x12\x19\n\x11\x64ocker_repository\x18\x07 \x01(\t\x12\x17\n\x0f\x62uildpack_stack\x18\t \x01(\t\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x0e\x44ockerRegistry\x12\x1f\n\x1b\x44OCKER_REGISTRY_UNSPECIFIED\x10\x00\x12\x16\n\x12\x43ONTAINER_REGISTRY\x10\x01\x12\x15\n\x11\x41RTIFACT_REGISTRY\x10\x02\"\xfd\t\n\rServiceConfig\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x17\n\x0ftimeout_seconds\x18\x02 \x01(\x05\x12\x18\n\x10\x61vailable_memory\x18\r \x01(\t\x12\x15\n\ravailable_cpu\x18\x16 \x01(\t\x12h\n\x15\x65nvironment_variables\x18\x04 \x03(\x0b\x32I.google.events.cloud.functions.v2.ServiceConfig.EnvironmentVariablesEntry\x12\x1a\n\x12max_instance_count\x18\x05 \x01(\x05\x12\x1a\n\x12min_instance_count\x18\x0c \x01(\x05\x12\x15\n\rvpc_connector\x18\x06 \x01(\t\x12q\n\x1dvpc_connector_egress_settings\x18\x07 \x01(\x0e\x32J.google.events.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings\x12Y\n\x10ingress_settings\x18\x08 \x01(\x0e\x32?.google.events.cloud.functions.v2.ServiceConfig.IngressSettings\x12\x0b\n\x03uri\x18\t \x01(\t\x12\x1d\n\x15service_account_email\x18\n \x01(\t\x12&\n\x1e\x61ll_traffic_on_latest_revision\x18\x10 \x01(\x08\x12T\n\x1csecret_environment_variables\x18\x11 \x03(\x0b\x32..google.events.cloud.functions.v2.SecretEnvVar\x12\x46\n\x0esecret_volumes\x18\x13 \x03(\x0b\x32..google.events.cloud.functions.v2.SecretVolume\x12\x10\n\x08revision\x18\x12 \x01(\t\x12(\n max_instance_request_concurrency\x18\x14 \x01(\x05\x12U\n\x0esecurity_level\x18\x15 \x01(\x0e\x32=.google.events.cloud.functions.v2.ServiceConfig.SecurityLevel\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"u\n\x1aVpcConnectorEgressSettings\x12-\n)VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\x17\n\x13PRIVATE_RANGES_ONLY\x10\x01\x12\x0f\n\x0b\x41LL_TRAFFIC\x10\x02\"x\n\x0fIngressSettings\x12 \n\x1cINGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\r\n\tALLOW_ALL\x10\x01\x12\x17\n\x13\x41LLOW_INTERNAL_ONLY\x10\x02\x12\x1b\n\x17\x41LLOW_INTERNAL_AND_GCLB\x10\x03\"W\n\rSecurityLevel\x12\x1e\n\x1aSECURITY_LEVEL_UNSPECIFIED\x10\x00\x12\x11\n\rSECURE_ALWAYS\x10\x01\x12\x13\n\x0fSECURE_OPTIONAL\x10\x02\"P\n\x0cSecretEnvVar\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x0e\n\x06secret\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\"\xc6\x01\n\x0cSecretVolume\x12\x12\n\nmount_path\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x0e\n\x06secret\x18\x03 \x01(\t\x12N\n\x08versions\x18\x04 \x03(\x0b\x32<.google.events.cloud.functions.v2.SecretVolume.SecretVersion\x1a.\n\rSecretVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\"\x8d\x03\n\x0c\x45ventTrigger\x12\x0f\n\x07trigger\x18\x01 \x01(\t\x12\x16\n\x0etrigger_region\x18\x02 \x01(\t\x12\x12\n\nevent_type\x18\x03 \x01(\t\x12\x44\n\revent_filters\x18\x04 \x03(\x0b\x32-.google.events.cloud.functions.v2.EventFilter\x12\x14\n\x0cpubsub_topic\x18\x05 \x01(\t\x12\x1d\n\x15service_account_email\x18\x06 \x01(\t\x12P\n\x0cretry_policy\x18\x07 \x01(\x0e\x32:.google.events.cloud.functions.v2.EventTrigger.RetryPolicy\x12\x0f\n\x07\x63hannel\x18\x08 \x01(\t\"b\n\x0bRetryPolicy\x12\x1c\n\x18RETRY_POLICY_UNSPECIFIED\x10\x00\x12\x1d\n\x19RETRY_POLICY_DO_NOT_RETRY\x10\x01\x12\x16\n\x12RETRY_POLICY_RETRY\x10\x02\"A\n\x0b\x45ventFilter\x12\x11\n\tattribute\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x10\n\x08operator\x18\x03 \x01(\t\"a\n\x11\x46unctionEventData\x12@\n\x07payload\x18\x01 \x01(\x0b\x32*.google.events.cloud.functions.v2.FunctionH\x00\x88\x01\x01\x42\n\n\x08_payload*@\n\x0b\x45nvironment\x12\x1b\n\x17\x45NVIRONMENT_UNSPECIFIED\x10\x00\x12\t\n\x05GEN_1\x10\x01\x12\t\n\x05GEN_2\x10\x02\x42v\xaa\x02)Google.Events.Protobuf.Cloud.Functions.V2\xca\x02 Google\\Events\\Cloud\\Functions\\V2\xea\x02$Google::Events::Cloud::Functions::V2b\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}"
|
163
31
|
end
|
164
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."
|
165
35
|
end
|
166
36
|
|
167
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/events/cloud/functions/v2/events.proto
|
3
4
|
|
@@ -6,18 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/events/cloud/functions/v2/data_pb'
|
7
8
|
require 'google/events/cloudevent_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
10
|
+
|
11
|
+
descriptor_data = "\n-google/events/cloud/functions/v2/events.proto\x12 google.events.cloud.functions.v2\x1a+google/events/cloud/functions/v2/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x97\x01\n\x14\x46unctionCreatedEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.functions.v2.FunctionEventData:<\xb2\xf8\xd8,*google.cloud.functions.function.v2.created\xca\xf8\xd8,\x08\x66unction\"\x97\x01\n\x14\x46unctionUpdatedEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.functions.v2.FunctionEventData:<\xb2\xf8\xd8,*google.cloud.functions.function.v2.updated\xca\xf8\xd8,\x08\x66unction\"\x97\x01\n\x14\x46unctionDeletedEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.functions.v2.FunctionEventData:<\xb2\xf8\xd8,*google.cloud.functions.function.v2.deleted\xca\xf8\xd8,\x08\x66unctionB\xd0\x01\xaa\x02)Google.Events.Protobuf.Cloud.Functions.V2\xca\x02 Google\\Events\\Cloud\\Functions\\V2\xea\x02$Google::Events::Cloud::Functions::V2\xba\xf8\xd8,\x0f\x43loud Functions\xc2\xf8\xd8,A\n\x08\x66unction\x12\x35The resource ID of the Function triggering the event.b\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.events.cloud.functions.v2.FunctionEventData", "google/events/cloud/functions/v2/data.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}"
|
19
32
|
end
|
20
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."
|
21
36
|
end
|
22
37
|
|
23
38
|
module Google
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/events/cloud/gkebackup/v1/data.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n+google/events/cloud/gkebackup/v1/data.proto\x12 google.events.cloud.gkebackup.v1\x1a\x1fgoogle/protobuf/timestamp.proto\" \n\nNamespaces\x12\x12\n\nnamespaces\x18\x01 \x03(\t\"1\n\x0eNamespacedName\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"]\n\x0fNamespacedNames\x12J\n\x10namespaced_names\x18\x01 \x03(\x0b\x32\x30.google.events.cloud.gkebackup.v1.NamespacedName\"/\n\rEncryptionKey\x12\x1e\n\x16gcp_kms_encryption_key\x18\x01 \x01(\t\"\xff\x0b\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03uid\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06manual\x18\x05 \x01(\x08\x12\x44\n\x06labels\x18\x06 \x03(\x0b\x32\x34.google.events.cloud.gkebackup.v1.Backup.LabelsEntry\x12\x18\n\x10\x64\x65lete_lock_days\x18\x07 \x01(\x05\x12;\n\x17\x64\x65lete_lock_expire_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bretain_days\x18\t \x01(\x05\x12\x36\n\x12retain_expire_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12G\n\x0e\x65ncryption_key\x18\x0b \x01(\x0b\x32/.google.events.cloud.gkebackup.v1.EncryptionKey\x12\x18\n\x0e\x61ll_namespaces\x18\x0c \x01(\x08H\x00\x12K\n\x13selected_namespaces\x18\r \x01(\x0b\x32,.google.events.cloud.gkebackup.v1.NamespacesH\x00\x12R\n\x15selected_applications\x18\x0e \x01(\x0b\x32\x31.google.events.cloud.gkebackup.v1.NamespacedNamesH\x00\x12\x1c\n\x14\x63ontains_volume_data\x18\x0f \x01(\x08\x12\x18\n\x10\x63ontains_secrets\x18\x10 \x01(\x08\x12R\n\x10\x63luster_metadata\x18\x11 \x01(\x0b\x32\x38.google.events.cloud.gkebackup.v1.Backup.ClusterMetadata\x12=\n\x05state\x18\x12 \x01(\x0e\x32..google.events.cloud.gkebackup.v1.Backup.State\x12\x14\n\x0cstate_reason\x18\x13 \x01(\t\x12\x31\n\rcomplete_time\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0eresource_count\x18\x15 \x01(\x05\x12\x14\n\x0cvolume_count\x18\x16 \x01(\x05\x12\x12\n\nsize_bytes\x18\x17 \x01(\x03\x12\x0c\n\x04\x65tag\x18\x18 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x19 \x01(\t\x12\x11\n\tpod_count\x18\x1a \x01(\x05\x12 \n\x18\x63onfig_backup_size_bytes\x18\x1b \x01(\x03\x1a\xa4\x02\n\x0f\x43lusterMetadata\x12\x0f\n\x07\x63luster\x18\x01 \x01(\t\x12\x13\n\x0bk8s_version\x18\x02 \x01(\t\x12l\n\x13\x62\x61\x63kup_crd_versions\x18\x03 \x03(\x0b\x32O.google.events.cloud.gkebackup.v1.Backup.ClusterMetadata.BackupCrdVersionsEntry\x12\x15\n\x0bgke_version\x18\x04 \x01(\tH\x00\x12\x18\n\x0e\x61nthos_version\x18\x05 \x01(\tH\x00\x1a\x38\n\x16\x42\x61\x63kupCrdVersionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x12\n\x10platform_version\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"f\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05\x42\x0e\n\x0c\x62\x61\x63kup_scope\"\xd0\x08\n\nBackupPlan\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03uid\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x0f\n\x07\x63luster\x18\x06 \x01(\t\x12V\n\x10retention_policy\x18\x07 \x01(\x0b\x32<.google.events.cloud.gkebackup.v1.BackupPlan.RetentionPolicy\x12H\n\x06labels\x18\x08 \x03(\x0b\x32\x38.google.events.cloud.gkebackup.v1.BackupPlan.LabelsEntry\x12N\n\x0f\x62\x61\x63kup_schedule\x18\t \x01(\x0b\x32\x35.google.events.cloud.gkebackup.v1.BackupPlan.Schedule\x12\x0c\n\x04\x65tag\x18\n \x01(\t\x12\x13\n\x0b\x64\x65\x61\x63tivated\x18\x0b \x01(\x08\x12P\n\rbackup_config\x18\x0c \x01(\x0b\x32\x39.google.events.cloud.gkebackup.v1.BackupPlan.BackupConfig\x12\x1b\n\x13protected_pod_count\x18\r \x01(\x05\x1a^\n\x0fRetentionPolicy\x12\x1f\n\x17\x62\x61\x63kup_delete_lock_days\x18\x01 \x01(\x05\x12\x1a\n\x12\x62\x61\x63kup_retain_days\x18\x02 \x01(\x05\x12\x0e\n\x06locked\x18\x03 \x01(\x08\x1a\x31\n\x08Schedule\x12\x15\n\rcron_schedule\x18\x01 \x01(\t\x12\x0e\n\x06paused\x18\x02 \x01(\x08\x1a\xd8\x02\n\x0c\x42\x61\x63kupConfig\x12\x18\n\x0e\x61ll_namespaces\x18\x01 \x01(\x08H\x00\x12K\n\x13selected_namespaces\x18\x02 \x01(\x0b\x32,.google.events.cloud.gkebackup.v1.NamespacesH\x00\x12R\n\x15selected_applications\x18\x03 \x01(\x0b\x32\x31.google.events.cloud.gkebackup.v1.NamespacedNamesH\x00\x12\x1b\n\x13include_volume_data\x18\x04 \x01(\x08\x12\x17\n\x0finclude_secrets\x18\x05 \x01(\x08\x12G\n\x0e\x65ncryption_key\x18\x06 \x01(\x0b\x32/.google.events.cloud.gkebackup.v1.EncryptionKeyB\x0e\n\x0c\x62\x61\x63kup_scope\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xfe\x05\n\x07Restore\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03uid\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x0e\n\x06\x62\x61\x63kup\x18\x06 \x01(\t\x12\x0f\n\x07\x63luster\x18\x07 \x01(\t\x12G\n\x0erestore_config\x18\x08 \x01(\x0b\x32/.google.events.cloud.gkebackup.v1.RestoreConfig\x12\x45\n\x06labels\x18\t \x03(\x0b\x32\x35.google.events.cloud.gkebackup.v1.Restore.LabelsEntry\x12>\n\x05state\x18\n \x01(\x0e\x32/.google.events.cloud.gkebackup.v1.Restore.State\x12\x14\n\x0cstate_reason\x18\x0b \x01(\t\x12\x31\n\rcomplete_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12 \n\x18resources_restored_count\x18\r \x01(\x05\x12 \n\x18resources_excluded_count\x18\x0e \x01(\x05\x12\x1e\n\x16resources_failed_count\x18\x0f \x01(\x05\x12\x1e\n\x16volumes_restored_count\x18\x10 \x01(\x05\x12\x0c\n\x04\x65tag\x18\x11 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"f\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05\"\xe2\x0c\n\rRestoreConfig\x12k\n\x1avolume_data_restore_policy\x18\x01 \x01(\x0e\x32G.google.events.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy\x12w\n cluster_resource_conflict_policy\x18\x02 \x01(\x0e\x32M.google.events.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy\x12w\n namespaced_resource_restore_mode\x18\x03 \x01(\x0e\x32M.google.events.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode\x12s\n\x1e\x63luster_resource_restore_scope\x18\x04 \x01(\x0b\x32K.google.events.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope\x12\x18\n\x0e\x61ll_namespaces\x18\x05 \x01(\x08H\x00\x12K\n\x13selected_namespaces\x18\x06 \x01(\x0b\x32,.google.events.cloud.gkebackup.v1.NamespacesH\x00\x12R\n\x15selected_applications\x18\x07 \x01(\x0b\x32\x31.google.events.cloud.gkebackup.v1.NamespacedNamesH\x00\x12\\\n\x12substitution_rules\x18\x08 \x03(\x0b\x32@.google.events.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule\x1a:\n\tGroupKind\x12\x16\n\x0eresource_group\x18\x01 \x01(\t\x12\x15\n\rresource_kind\x18\x02 \x01(\t\x1av\n\x1b\x43lusterResourceRestoreScope\x12W\n\x14selected_group_kinds\x18\x01 \x03(\x0b\x32\x39.google.events.cloud.gkebackup.v1.RestoreConfig.GroupKind\x1a\xd1\x01\n\x10SubstitutionRule\x12\x19\n\x11target_namespaces\x18\x01 \x03(\t\x12U\n\x12target_group_kinds\x18\x02 \x03(\x0b\x32\x39.google.events.cloud.gkebackup.v1.RestoreConfig.GroupKind\x12\x18\n\x10target_json_path\x18\x03 \x01(\t\x12\x1e\n\x16original_value_pattern\x18\x04 \x01(\t\x12\x11\n\tnew_value\x18\x05 \x01(\t\"\xaf\x01\n\x17VolumeDataRestorePolicy\x12*\n&VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED\x10\x00\x12#\n\x1fRESTORE_VOLUME_DATA_FROM_BACKUP\x10\x01\x12#\n\x1fREUSE_VOLUME_HANDLE_FROM_BACKUP\x10\x02\x12\x1e\n\x1aNO_VOLUME_DATA_RESTORATION\x10\x03\"\x83\x01\n\x1d\x43lusterResourceConflictPolicy\x12\x30\n,CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED\x10\x00\x12\x18\n\x14USE_EXISTING_VERSION\x10\x01\x12\x16\n\x12USE_BACKUP_VERSION\x10\x02\"\x7f\n\x1dNamespacedResourceRestoreMode\x12\x30\n,NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x44\x45LETE_AND_RESTORE\x10\x01\x12\x14\n\x10\x46\x41IL_ON_CONFLICT\x10\x02\x42#\n!namespaced_resource_restore_scope\"\x96\x03\n\x0bRestorePlan\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03uid\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x13\n\x0b\x62\x61\x63kup_plan\x18\x06 \x01(\t\x12\x0f\n\x07\x63luster\x18\x07 \x01(\t\x12G\n\x0erestore_config\x18\x08 \x01(\x0b\x32/.google.events.cloud.gkebackup.v1.RestoreConfig\x12I\n\x06labels\x18\t \x03(\x0b\x32\x39.google.events.cloud.gkebackup.v1.RestorePlan.LabelsEntry\x12\x0c\n\x04\x65tag\x18\n \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"g\n\x14RestorePlanEventData\x12\x43\n\x07payload\x18\x01 \x01(\x0b\x32-.google.events.cloud.gkebackup.v1.RestorePlanH\x00\x88\x01\x01\x42\n\n\x08_payload\"]\n\x0f\x42\x61\x63kupEventData\x12>\n\x07payload\x18\x01 \x01(\x0b\x32(.google.events.cloud.gkebackup.v1.BackupH\x00\x88\x01\x01\x42\n\n\x08_payload\"e\n\x13\x42\x61\x63kupPlanEventData\x12\x42\n\x07payload\x18\x01 \x01(\x0b\x32,.google.events.cloud.gkebackup.v1.BackupPlanH\x00\x88\x01\x01\x42\n\n\x08_payload\"_\n\x10RestoreEventData\x12?\n\x07payload\x18\x01 \x01(\x0b\x32).google.events.cloud.gkebackup.v1.RestoreH\x00\x88\x01\x01\x42\n\n\x08_payloadB,\xaa\x02)Google.Events.Protobuf.Cloud.GkeBackup.V1b\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}"
|
31
|
+
end
|
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."
|
35
|
+
end
|
36
|
+
|
37
|
+
module Google
|
38
|
+
module Events
|
39
|
+
module Cloud
|
40
|
+
module Gkebackup
|
41
|
+
module V1
|
42
|
+
Namespaces = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.Namespaces").msgclass
|
43
|
+
NamespacedName = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.NamespacedName").msgclass
|
44
|
+
NamespacedNames = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.NamespacedNames").msgclass
|
45
|
+
EncryptionKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.EncryptionKey").msgclass
|
46
|
+
Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.Backup").msgclass
|
47
|
+
Backup::ClusterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.Backup.ClusterMetadata").msgclass
|
48
|
+
Backup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.Backup.State").enummodule
|
49
|
+
BackupPlan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.BackupPlan").msgclass
|
50
|
+
BackupPlan::RetentionPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.BackupPlan.RetentionPolicy").msgclass
|
51
|
+
BackupPlan::Schedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.BackupPlan.Schedule").msgclass
|
52
|
+
BackupPlan::BackupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.BackupPlan.BackupConfig").msgclass
|
53
|
+
Restore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.Restore").msgclass
|
54
|
+
Restore::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.Restore.State").enummodule
|
55
|
+
RestoreConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestoreConfig").msgclass
|
56
|
+
RestoreConfig::GroupKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestoreConfig.GroupKind").msgclass
|
57
|
+
RestoreConfig::ClusterResourceRestoreScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope").msgclass
|
58
|
+
RestoreConfig::SubstitutionRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule").msgclass
|
59
|
+
RestoreConfig::VolumeDataRestorePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy").enummodule
|
60
|
+
RestoreConfig::ClusterResourceConflictPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy").enummodule
|
61
|
+
RestoreConfig::NamespacedResourceRestoreMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode").enummodule
|
62
|
+
RestorePlan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestorePlan").msgclass
|
63
|
+
RestorePlanEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestorePlanEventData").msgclass
|
64
|
+
BackupEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.BackupEventData").msgclass
|
65
|
+
BackupPlanEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.BackupPlanEventData").msgclass
|
66
|
+
RestoreEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestoreEventData").msgclass
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/events/cloud/gkebackup/v1/events.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/events/cloud/gkebackup/v1/data_pb'
|
8
|
+
require 'google/events/cloudevent_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n-google/events/cloud/gkebackup/v1/events.proto\x12 google.events.cloud.gkebackup.v1\x1a+google/events/cloud/gkebackup/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x9f\x01\n\x16\x42\x61\x63kupPlanCreatedEvent\x12\x43\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x35.google.events.cloud.gkebackup.v1.BackupPlanEventData:@\xb2\xf8\xd8,,google.cloud.gkebackup.backupPlan.v1.created\xca\xf8\xd8,\nbackupplan\"\x9f\x01\n\x16\x42\x61\x63kupPlanUpdatedEvent\x12\x43\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x35.google.events.cloud.gkebackup.v1.BackupPlanEventData:@\xb2\xf8\xd8,,google.cloud.gkebackup.backupPlan.v1.updated\xca\xf8\xd8,\nbackupplan\"\x9f\x01\n\x16\x42\x61\x63kupPlanDeletedEvent\x12\x43\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x35.google.events.cloud.gkebackup.v1.BackupPlanEventData:@\xb2\xf8\xd8,,google.cloud.gkebackup.backupPlan.v1.deleted\xca\xf8\xd8,\nbackupplan\"\x9e\x01\n\x12\x42\x61\x63kupCreatedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.gkebackup.v1.BackupEventData:G\xb2\xf8\xd8,(google.cloud.gkebackup.backup.v1.created\xca\xf8\xd8,\nbackupplan\xca\xf8\xd8,\x06\x62\x61\x63kup\"\x9e\x01\n\x12\x42\x61\x63kupUpdatedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.gkebackup.v1.BackupEventData:G\xb2\xf8\xd8,(google.cloud.gkebackup.backup.v1.updated\xca\xf8\xd8,\nbackupplan\xca\xf8\xd8,\x06\x62\x61\x63kup\"\x9e\x01\n\x12\x42\x61\x63kupDeletedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.gkebackup.v1.BackupEventData:G\xb2\xf8\xd8,(google.cloud.gkebackup.backup.v1.deleted\xca\xf8\xd8,\nbackupplan\xca\xf8\xd8,\x06\x62\x61\x63kup\"\xa3\x01\n\x17RestorePlanCreatedEvent\x12\x44\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x36.google.events.cloud.gkebackup.v1.RestorePlanEventData:B\xb2\xf8\xd8,-google.cloud.gkebackup.restorePlan.v1.created\xca\xf8\xd8,\x0brestoreplan\"\xa3\x01\n\x17RestorePlanUpdatedEvent\x12\x44\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x36.google.events.cloud.gkebackup.v1.RestorePlanEventData:B\xb2\xf8\xd8,-google.cloud.gkebackup.restorePlan.v1.updated\xca\xf8\xd8,\x0brestoreplan\"\xa3\x01\n\x17RestorePlanDeletedEvent\x12\x44\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x36.google.events.cloud.gkebackup.v1.RestorePlanEventData:B\xb2\xf8\xd8,-google.cloud.gkebackup.restorePlan.v1.deleted\xca\xf8\xd8,\x0brestoreplan\"\xa3\x01\n\x13RestoreCreatedEvent\x12@\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x32.google.events.cloud.gkebackup.v1.RestoreEventData:J\xb2\xf8\xd8,)google.cloud.gkebackup.restore.v1.created\xca\xf8\xd8,\x0brestoreplan\xca\xf8\xd8,\x07restore\"\xa3\x01\n\x13RestoreUpdatedEvent\x12@\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x32.google.events.cloud.gkebackup.v1.RestoreEventData:J\xb2\xf8\xd8,)google.cloud.gkebackup.restore.v1.updated\xca\xf8\xd8,\x0brestoreplan\xca\xf8\xd8,\x07restore\"\xa3\x01\n\x13RestoreDeletedEvent\x12@\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x32.google.events.cloud.gkebackup.v1.RestoreEventData:J\xb2\xf8\xd8,)google.cloud.gkebackup.restore.v1.deleted\xca\xf8\xd8,\x0brestoreplan\xca\xf8\xd8,\x07restoreB\xf4\x02\xaa\x02)Google.Events.Protobuf.Cloud.GkeBackup.V1\xba\xf8\xd8,\x0e\x42\x61\x63kup for GKE\xc2\xf8\xd8,Q\n\nbackupplan\x12\x37The resource ID of the BackupPlan triggering the event.\x1a\nbackupPlan\xc2\xf8\xd8,=\n\x06\x62\x61\x63kup\x12\x33The resource ID of the Backup triggering the event.\xc2\xf8\xd8,T\n\x0brestoreplan\x12\x38The resource ID of the RestorePlan triggering the event.\x1a\x0brestorePlan\xc2\xf8\xd8,?\n\x07restore\x12\x34The resource ID of the Restore triggering the event.b\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.events.cloud.gkebackup.v1.BackupPlanEventData", "google/events/cloud/gkebackup/v1/data.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}"
|
32
|
+
end
|
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."
|
36
|
+
end
|
37
|
+
|
38
|
+
module Google
|
39
|
+
module Events
|
40
|
+
module Cloud
|
41
|
+
module Gkebackup
|
42
|
+
module V1
|
43
|
+
BackupPlanCreatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.BackupPlanCreatedEvent").msgclass
|
44
|
+
BackupPlanUpdatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.BackupPlanUpdatedEvent").msgclass
|
45
|
+
BackupPlanDeletedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.BackupPlanDeletedEvent").msgclass
|
46
|
+
BackupCreatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.BackupCreatedEvent").msgclass
|
47
|
+
BackupUpdatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.BackupUpdatedEvent").msgclass
|
48
|
+
BackupDeletedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.BackupDeletedEvent").msgclass
|
49
|
+
RestorePlanCreatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestorePlanCreatedEvent").msgclass
|
50
|
+
RestorePlanUpdatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestorePlanUpdatedEvent").msgclass
|
51
|
+
RestorePlanDeletedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestorePlanDeletedEvent").msgclass
|
52
|
+
RestoreCreatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestoreCreatedEvent").msgclass
|
53
|
+
RestoreUpdatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestoreUpdatedEvent").msgclass
|
54
|
+
RestoreDeletedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.gkebackup.v1.RestoreDeletedEvent").msgclass
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|