google-events 0.2.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 +7 -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 +26 -603
- data/lib/google/events/cloud/dataplex/v1/events_pb.rb +25 -82
- 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 +25 -189
- data/lib/google/events/cloud/gkebackup/v1/events_pb.rb +25 -37
- 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 +4 -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/gkebackup/v1/data.proto
|
3
4
|
|
@@ -5,197 +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
|
-
optional :delete_lock_days, :int32, 7
|
31
|
-
optional :delete_lock_expire_time, :message, 8, "google.protobuf.Timestamp"
|
32
|
-
optional :retain_days, :int32, 9
|
33
|
-
optional :retain_expire_time, :message, 10, "google.protobuf.Timestamp"
|
34
|
-
optional :encryption_key, :message, 11, "google.events.cloud.gkebackup.v1.EncryptionKey"
|
35
|
-
optional :contains_volume_data, :bool, 15
|
36
|
-
optional :contains_secrets, :bool, 16
|
37
|
-
optional :cluster_metadata, :message, 17, "google.events.cloud.gkebackup.v1.Backup.ClusterMetadata"
|
38
|
-
optional :state, :enum, 18, "google.events.cloud.gkebackup.v1.Backup.State"
|
39
|
-
optional :state_reason, :string, 19
|
40
|
-
optional :complete_time, :message, 20, "google.protobuf.Timestamp"
|
41
|
-
optional :resource_count, :int32, 21
|
42
|
-
optional :volume_count, :int32, 22
|
43
|
-
optional :size_bytes, :int64, 23
|
44
|
-
optional :etag, :string, 24
|
45
|
-
optional :description, :string, 25
|
46
|
-
optional :pod_count, :int32, 26
|
47
|
-
optional :config_backup_size_bytes, :int64, 27
|
48
|
-
oneof :backup_scope do
|
49
|
-
optional :all_namespaces, :bool, 12
|
50
|
-
optional :selected_namespaces, :message, 13, "google.events.cloud.gkebackup.v1.Namespaces"
|
51
|
-
optional :selected_applications, :message, 14, "google.events.cloud.gkebackup.v1.NamespacedNames"
|
52
|
-
end
|
53
|
-
end
|
54
|
-
add_message "google.events.cloud.gkebackup.v1.Backup.ClusterMetadata" do
|
55
|
-
optional :cluster, :string, 1
|
56
|
-
optional :k8s_version, :string, 2
|
57
|
-
map :backup_crd_versions, :string, :string, 3
|
58
|
-
oneof :platform_version do
|
59
|
-
optional :gke_version, :string, 4
|
60
|
-
optional :anthos_version, :string, 5
|
61
|
-
end
|
62
|
-
end
|
63
|
-
add_enum "google.events.cloud.gkebackup.v1.Backup.State" do
|
64
|
-
value :STATE_UNSPECIFIED, 0
|
65
|
-
value :CREATING, 1
|
66
|
-
value :IN_PROGRESS, 2
|
67
|
-
value :SUCCEEDED, 3
|
68
|
-
value :FAILED, 4
|
69
|
-
value :DELETING, 5
|
70
|
-
end
|
71
|
-
add_message "google.events.cloud.gkebackup.v1.BackupPlan" do
|
72
|
-
optional :name, :string, 1
|
73
|
-
optional :uid, :string, 2
|
74
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
75
|
-
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
76
|
-
optional :description, :string, 5
|
77
|
-
optional :cluster, :string, 6
|
78
|
-
optional :retention_policy, :message, 7, "google.events.cloud.gkebackup.v1.BackupPlan.RetentionPolicy"
|
79
|
-
map :labels, :string, :string, 8
|
80
|
-
optional :backup_schedule, :message, 9, "google.events.cloud.gkebackup.v1.BackupPlan.Schedule"
|
81
|
-
optional :etag, :string, 10
|
82
|
-
optional :deactivated, :bool, 11
|
83
|
-
optional :backup_config, :message, 12, "google.events.cloud.gkebackup.v1.BackupPlan.BackupConfig"
|
84
|
-
optional :protected_pod_count, :int32, 13
|
85
|
-
end
|
86
|
-
add_message "google.events.cloud.gkebackup.v1.BackupPlan.RetentionPolicy" do
|
87
|
-
optional :backup_delete_lock_days, :int32, 1
|
88
|
-
optional :backup_retain_days, :int32, 2
|
89
|
-
optional :locked, :bool, 3
|
90
|
-
end
|
91
|
-
add_message "google.events.cloud.gkebackup.v1.BackupPlan.Schedule" do
|
92
|
-
optional :cron_schedule, :string, 1
|
93
|
-
optional :paused, :bool, 2
|
94
|
-
end
|
95
|
-
add_message "google.events.cloud.gkebackup.v1.BackupPlan.BackupConfig" do
|
96
|
-
optional :include_volume_data, :bool, 4
|
97
|
-
optional :include_secrets, :bool, 5
|
98
|
-
optional :encryption_key, :message, 6, "google.events.cloud.gkebackup.v1.EncryptionKey"
|
99
|
-
oneof :backup_scope do
|
100
|
-
optional :all_namespaces, :bool, 1
|
101
|
-
optional :selected_namespaces, :message, 2, "google.events.cloud.gkebackup.v1.Namespaces"
|
102
|
-
optional :selected_applications, :message, 3, "google.events.cloud.gkebackup.v1.NamespacedNames"
|
103
|
-
end
|
104
|
-
end
|
105
|
-
add_message "google.events.cloud.gkebackup.v1.Restore" do
|
106
|
-
optional :name, :string, 1
|
107
|
-
optional :uid, :string, 2
|
108
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
109
|
-
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
110
|
-
optional :description, :string, 5
|
111
|
-
optional :backup, :string, 6
|
112
|
-
optional :cluster, :string, 7
|
113
|
-
optional :restore_config, :message, 8, "google.events.cloud.gkebackup.v1.RestoreConfig"
|
114
|
-
map :labels, :string, :string, 9
|
115
|
-
optional :state, :enum, 10, "google.events.cloud.gkebackup.v1.Restore.State"
|
116
|
-
optional :state_reason, :string, 11
|
117
|
-
optional :complete_time, :message, 12, "google.protobuf.Timestamp"
|
118
|
-
optional :resources_restored_count, :int32, 13
|
119
|
-
optional :resources_excluded_count, :int32, 14
|
120
|
-
optional :resources_failed_count, :int32, 15
|
121
|
-
optional :volumes_restored_count, :int32, 16
|
122
|
-
optional :etag, :string, 17
|
123
|
-
end
|
124
|
-
add_enum "google.events.cloud.gkebackup.v1.Restore.State" do
|
125
|
-
value :STATE_UNSPECIFIED, 0
|
126
|
-
value :CREATING, 1
|
127
|
-
value :IN_PROGRESS, 2
|
128
|
-
value :SUCCEEDED, 3
|
129
|
-
value :FAILED, 4
|
130
|
-
value :DELETING, 5
|
131
|
-
end
|
132
|
-
add_message "google.events.cloud.gkebackup.v1.RestoreConfig" do
|
133
|
-
optional :volume_data_restore_policy, :enum, 1, "google.events.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy"
|
134
|
-
optional :cluster_resource_conflict_policy, :enum, 2, "google.events.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy"
|
135
|
-
optional :namespaced_resource_restore_mode, :enum, 3, "google.events.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode"
|
136
|
-
optional :cluster_resource_restore_scope, :message, 4, "google.events.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope"
|
137
|
-
repeated :substitution_rules, :message, 8, "google.events.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule"
|
138
|
-
oneof :namespaced_resource_restore_scope do
|
139
|
-
optional :all_namespaces, :bool, 5
|
140
|
-
optional :selected_namespaces, :message, 6, "google.events.cloud.gkebackup.v1.Namespaces"
|
141
|
-
optional :selected_applications, :message, 7, "google.events.cloud.gkebackup.v1.NamespacedNames"
|
142
|
-
end
|
143
|
-
end
|
144
|
-
add_message "google.events.cloud.gkebackup.v1.RestoreConfig.GroupKind" do
|
145
|
-
optional :resource_group, :string, 1
|
146
|
-
optional :resource_kind, :string, 2
|
147
|
-
end
|
148
|
-
add_message "google.events.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope" do
|
149
|
-
repeated :selected_group_kinds, :message, 1, "google.events.cloud.gkebackup.v1.RestoreConfig.GroupKind"
|
150
|
-
end
|
151
|
-
add_message "google.events.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule" do
|
152
|
-
repeated :target_namespaces, :string, 1
|
153
|
-
repeated :target_group_kinds, :message, 2, "google.events.cloud.gkebackup.v1.RestoreConfig.GroupKind"
|
154
|
-
optional :target_json_path, :string, 3
|
155
|
-
optional :original_value_pattern, :string, 4
|
156
|
-
optional :new_value, :string, 5
|
157
|
-
end
|
158
|
-
add_enum "google.events.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy" do
|
159
|
-
value :VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED, 0
|
160
|
-
value :RESTORE_VOLUME_DATA_FROM_BACKUP, 1
|
161
|
-
value :REUSE_VOLUME_HANDLE_FROM_BACKUP, 2
|
162
|
-
value :NO_VOLUME_DATA_RESTORATION, 3
|
163
|
-
end
|
164
|
-
add_enum "google.events.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy" do
|
165
|
-
value :CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED, 0
|
166
|
-
value :USE_EXISTING_VERSION, 1
|
167
|
-
value :USE_BACKUP_VERSION, 2
|
168
|
-
end
|
169
|
-
add_enum "google.events.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode" do
|
170
|
-
value :NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED, 0
|
171
|
-
value :DELETE_AND_RESTORE, 1
|
172
|
-
value :FAIL_ON_CONFLICT, 2
|
173
|
-
end
|
174
|
-
add_message "google.events.cloud.gkebackup.v1.RestorePlan" do
|
175
|
-
optional :name, :string, 1
|
176
|
-
optional :uid, :string, 2
|
177
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
178
|
-
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
179
|
-
optional :description, :string, 5
|
180
|
-
optional :backup_plan, :string, 6
|
181
|
-
optional :cluster, :string, 7
|
182
|
-
optional :restore_config, :message, 8, "google.events.cloud.gkebackup.v1.RestoreConfig"
|
183
|
-
map :labels, :string, :string, 9
|
184
|
-
optional :etag, :string, 10
|
185
|
-
end
|
186
|
-
add_message "google.events.cloud.gkebackup.v1.RestorePlanEventData" do
|
187
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.gkebackup.v1.RestorePlan"
|
188
|
-
end
|
189
|
-
add_message "google.events.cloud.gkebackup.v1.BackupEventData" do
|
190
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.gkebackup.v1.Backup"
|
191
|
-
end
|
192
|
-
add_message "google.events.cloud.gkebackup.v1.BackupPlanEventData" do
|
193
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.gkebackup.v1.BackupPlan"
|
194
|
-
end
|
195
|
-
add_message "google.events.cloud.gkebackup.v1.RestoreEventData" do
|
196
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.gkebackup.v1.Restore"
|
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}"
|
197
31
|
end
|
198
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."
|
199
35
|
end
|
200
36
|
|
201
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/gkebackup/v1/events.proto
|
3
4
|
|
@@ -6,45 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/events/cloud/gkebackup/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
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
end
|
32
|
-
add_message "google.events.cloud.gkebackup.v1.RestorePlanUpdatedEvent" do
|
33
|
-
optional :data, :message, 1, "google.events.cloud.gkebackup.v1.RestorePlanEventData"
|
34
|
-
end
|
35
|
-
add_message "google.events.cloud.gkebackup.v1.RestorePlanDeletedEvent" do
|
36
|
-
optional :data, :message, 1, "google.events.cloud.gkebackup.v1.RestorePlanEventData"
|
37
|
-
end
|
38
|
-
add_message "google.events.cloud.gkebackup.v1.RestoreCreatedEvent" do
|
39
|
-
optional :data, :message, 1, "google.events.cloud.gkebackup.v1.RestoreEventData"
|
40
|
-
end
|
41
|
-
add_message "google.events.cloud.gkebackup.v1.RestoreUpdatedEvent" do
|
42
|
-
optional :data, :message, 1, "google.events.cloud.gkebackup.v1.RestoreEventData"
|
43
|
-
end
|
44
|
-
add_message "google.events.cloud.gkebackup.v1.RestoreDeletedEvent" do
|
45
|
-
optional :data, :message, 1, "google.events.cloud.gkebackup.v1.RestoreEventData"
|
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}"
|
46
32
|
end
|
47
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."
|
48
36
|
end
|
49
37
|
|
50
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/iot/v1/data.proto
|
3
4
|
|
@@ -6,140 +7,33 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/protobuf/timestamp_pb'
|
7
8
|
require 'google/rpc/status_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
optional :gateway_auth_method, :enum, 2, "google.events.cloud.iot.v1.GatewayAuthMethod"
|
33
|
-
optional :last_accessed_gateway_id, :string, 3
|
34
|
-
optional :last_accessed_gateway_time, :message, 4, "google.protobuf.Timestamp"
|
35
|
-
end
|
36
|
-
add_message "google.events.cloud.iot.v1.DeviceRegistry" do
|
37
|
-
optional :id, :string, 1
|
38
|
-
optional :name, :string, 2
|
39
|
-
repeated :event_notification_configs, :message, 10, "google.events.cloud.iot.v1.EventNotificationConfig"
|
40
|
-
optional :state_notification_config, :message, 7, "google.events.cloud.iot.v1.StateNotificationConfig"
|
41
|
-
optional :mqtt_config, :message, 4, "google.events.cloud.iot.v1.MqttConfig"
|
42
|
-
optional :http_config, :message, 9, "google.events.cloud.iot.v1.HttpConfig"
|
43
|
-
optional :log_level, :enum, 11, "google.events.cloud.iot.v1.LogLevel"
|
44
|
-
repeated :credentials, :message, 8, "google.events.cloud.iot.v1.RegistryCredential"
|
45
|
-
end
|
46
|
-
add_message "google.events.cloud.iot.v1.MqttConfig" do
|
47
|
-
optional :mqtt_enabled_state, :enum, 1, "google.events.cloud.iot.v1.MqttState"
|
48
|
-
end
|
49
|
-
add_message "google.events.cloud.iot.v1.HttpConfig" do
|
50
|
-
optional :http_enabled_state, :enum, 1, "google.events.cloud.iot.v1.HttpState"
|
51
|
-
end
|
52
|
-
add_message "google.events.cloud.iot.v1.EventNotificationConfig" do
|
53
|
-
optional :subfolder_matches, :string, 2
|
54
|
-
optional :pubsub_topic_name, :string, 1
|
55
|
-
end
|
56
|
-
add_message "google.events.cloud.iot.v1.StateNotificationConfig" do
|
57
|
-
optional :pubsub_topic_name, :string, 1
|
58
|
-
end
|
59
|
-
add_message "google.events.cloud.iot.v1.RegistryCredential" do
|
60
|
-
oneof :credential do
|
61
|
-
optional :public_key_certificate, :message, 1, "google.events.cloud.iot.v1.PublicKeyCertificate"
|
62
|
-
end
|
63
|
-
end
|
64
|
-
add_message "google.events.cloud.iot.v1.X509CertificateDetails" do
|
65
|
-
optional :issuer, :string, 1
|
66
|
-
optional :subject, :string, 2
|
67
|
-
optional :start_time, :message, 3, "google.protobuf.Timestamp"
|
68
|
-
optional :expiry_time, :message, 4, "google.protobuf.Timestamp"
|
69
|
-
optional :signature_algorithm, :string, 5
|
70
|
-
optional :public_key_type, :string, 6
|
71
|
-
end
|
72
|
-
add_message "google.events.cloud.iot.v1.PublicKeyCertificate" do
|
73
|
-
optional :format, :enum, 1, "google.events.cloud.iot.v1.PublicKeyCertificateFormat"
|
74
|
-
optional :certificate, :string, 2
|
75
|
-
optional :x509_details, :message, 3, "google.events.cloud.iot.v1.X509CertificateDetails"
|
76
|
-
end
|
77
|
-
add_message "google.events.cloud.iot.v1.DeviceCredential" do
|
78
|
-
optional :expiration_time, :message, 6, "google.protobuf.Timestamp"
|
79
|
-
oneof :credential do
|
80
|
-
optional :public_key, :message, 2, "google.events.cloud.iot.v1.PublicKeyCredential"
|
81
|
-
end
|
82
|
-
end
|
83
|
-
add_message "google.events.cloud.iot.v1.PublicKeyCredential" do
|
84
|
-
optional :format, :enum, 1, "google.events.cloud.iot.v1.PublicKeyFormat"
|
85
|
-
optional :key, :string, 2
|
86
|
-
end
|
87
|
-
add_message "google.events.cloud.iot.v1.DeviceConfig" do
|
88
|
-
optional :version, :int64, 1
|
89
|
-
optional :cloud_update_time, :message, 2, "google.protobuf.Timestamp"
|
90
|
-
optional :device_ack_time, :message, 3, "google.protobuf.Timestamp"
|
91
|
-
optional :binary_data, :bytes, 4
|
92
|
-
end
|
93
|
-
add_message "google.events.cloud.iot.v1.DeviceState" do
|
94
|
-
optional :update_time, :message, 1, "google.protobuf.Timestamp"
|
95
|
-
optional :binary_data, :bytes, 2
|
96
|
-
end
|
97
|
-
add_message "google.events.cloud.iot.v1.DeviceEventData" do
|
98
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.iot.v1.Device"
|
99
|
-
end
|
100
|
-
add_message "google.events.cloud.iot.v1.RegistryEventData" do
|
101
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.iot.v1.DeviceRegistry"
|
102
|
-
end
|
103
|
-
add_enum "google.events.cloud.iot.v1.MqttState" do
|
104
|
-
value :MQTT_STATE_UNSPECIFIED, 0
|
105
|
-
value :MQTT_ENABLED, 1
|
106
|
-
value :MQTT_DISABLED, 2
|
107
|
-
end
|
108
|
-
add_enum "google.events.cloud.iot.v1.HttpState" do
|
109
|
-
value :HTTP_STATE_UNSPECIFIED, 0
|
110
|
-
value :HTTP_ENABLED, 1
|
111
|
-
value :HTTP_DISABLED, 2
|
112
|
-
end
|
113
|
-
add_enum "google.events.cloud.iot.v1.LogLevel" do
|
114
|
-
value :LOG_LEVEL_UNSPECIFIED, 0
|
115
|
-
value :NONE, 10
|
116
|
-
value :ERROR, 20
|
117
|
-
value :INFO, 30
|
118
|
-
value :DEBUG, 40
|
119
|
-
end
|
120
|
-
add_enum "google.events.cloud.iot.v1.GatewayType" do
|
121
|
-
value :GATEWAY_TYPE_UNSPECIFIED, 0
|
122
|
-
value :GATEWAY, 1
|
123
|
-
value :NON_GATEWAY, 2
|
124
|
-
end
|
125
|
-
add_enum "google.events.cloud.iot.v1.GatewayAuthMethod" do
|
126
|
-
value :GATEWAY_AUTH_METHOD_UNSPECIFIED, 0
|
127
|
-
value :ASSOCIATION_ONLY, 1
|
128
|
-
value :DEVICE_AUTH_TOKEN_ONLY, 2
|
129
|
-
value :ASSOCIATION_AND_DEVICE_AUTH_TOKEN, 3
|
130
|
-
end
|
131
|
-
add_enum "google.events.cloud.iot.v1.PublicKeyCertificateFormat" do
|
132
|
-
value :UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT, 0
|
133
|
-
value :X509_CERTIFICATE_PEM, 1
|
134
|
-
end
|
135
|
-
add_enum "google.events.cloud.iot.v1.PublicKeyFormat" do
|
136
|
-
value :UNSPECIFIED_PUBLIC_KEY_FORMAT, 0
|
137
|
-
value :RSA_PEM, 3
|
138
|
-
value :RSA_X509_PEM, 1
|
139
|
-
value :ES256_PEM, 2
|
140
|
-
value :ES256_X509_PEM, 4
|
10
|
+
|
11
|
+
descriptor_data = "\n%google/events/cloud/iot/v1/data.proto\x12\x1agoogle.events.cloud.iot.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xe5\x06\n\x06\x44\x65vice\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06num_id\x18\x03 \x01(\x04\x12\x41\n\x0b\x63redentials\x18\x0c \x03(\x0b\x32,.google.events.cloud.iot.v1.DeviceCredential\x12\x37\n\x13last_heartbeat_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0flast_event_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0flast_state_time\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14last_config_ack_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x15last_config_send_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x62locked\x18\x13 \x01(\x08\x12\x33\n\x0flast_error_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x11last_error_status\x18\x0b \x01(\x0b\x32\x12.google.rpc.Status\x12\x38\n\x06\x63onfig\x18\r \x01(\x0b\x32(.google.events.cloud.iot.v1.DeviceConfig\x12\x36\n\x05state\x18\x10 \x01(\x0b\x32\'.google.events.cloud.iot.v1.DeviceState\x12\x37\n\tlog_level\x18\x15 \x01(\x0e\x32$.google.events.cloud.iot.v1.LogLevel\x12\x42\n\x08metadata\x18\x11 \x03(\x0b\x32\x30.google.events.cloud.iot.v1.Device.MetadataEntry\x12\x41\n\x0egateway_config\x18\x18 \x01(\x0b\x32).google.events.cloud.iot.v1.GatewayConfig\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xfc\x01\n\rGatewayConfig\x12=\n\x0cgateway_type\x18\x01 \x01(\x0e\x32\'.google.events.cloud.iot.v1.GatewayType\x12J\n\x13gateway_auth_method\x18\x02 \x01(\x0e\x32-.google.events.cloud.iot.v1.GatewayAuthMethod\x12 \n\x18last_accessed_gateway_id\x18\x03 \x01(\t\x12>\n\x1alast_accessed_gateway_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd3\x03\n\x0e\x44\x65viceRegistry\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12W\n\x1a\x65vent_notification_configs\x18\n \x03(\x0b\x32\x33.google.events.cloud.iot.v1.EventNotificationConfig\x12V\n\x19state_notification_config\x18\x07 \x01(\x0b\x32\x33.google.events.cloud.iot.v1.StateNotificationConfig\x12;\n\x0bmqtt_config\x18\x04 \x01(\x0b\x32&.google.events.cloud.iot.v1.MqttConfig\x12;\n\x0bhttp_config\x18\t \x01(\x0b\x32&.google.events.cloud.iot.v1.HttpConfig\x12\x37\n\tlog_level\x18\x0b \x01(\x0e\x32$.google.events.cloud.iot.v1.LogLevel\x12\x43\n\x0b\x63redentials\x18\x08 \x03(\x0b\x32..google.events.cloud.iot.v1.RegistryCredential\"O\n\nMqttConfig\x12\x41\n\x12mqtt_enabled_state\x18\x01 \x01(\x0e\x32%.google.events.cloud.iot.v1.MqttState\"O\n\nHttpConfig\x12\x41\n\x12http_enabled_state\x18\x01 \x01(\x0e\x32%.google.events.cloud.iot.v1.HttpState\"O\n\x17\x45ventNotificationConfig\x12\x19\n\x11subfolder_matches\x18\x02 \x01(\t\x12\x19\n\x11pubsub_topic_name\x18\x01 \x01(\t\"4\n\x17StateNotificationConfig\x12\x19\n\x11pubsub_topic_name\x18\x01 \x01(\t\"v\n\x12RegistryCredential\x12R\n\x16public_key_certificate\x18\x01 \x01(\x0b\x32\x30.google.events.cloud.iot.v1.PublicKeyCertificateH\x00\x42\x0c\n\ncredential\"\xd0\x01\n\x16X509CertificateDetails\x12\x0e\n\x06issuer\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x65xpiry_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1b\n\x13signature_algorithm\x18\x05 \x01(\t\x12\x17\n\x0fpublic_key_type\x18\x06 \x01(\t\"\xbd\x01\n\x14PublicKeyCertificate\x12\x46\n\x06\x66ormat\x18\x01 \x01(\x0e\x32\x36.google.events.cloud.iot.v1.PublicKeyCertificateFormat\x12\x13\n\x0b\x63\x65rtificate\x18\x02 \x01(\t\x12H\n\x0cx509_details\x18\x03 \x01(\x0b\x32\x32.google.events.cloud.iot.v1.X509CertificateDetails\"\x9c\x01\n\x10\x44\x65viceCredential\x12\x45\n\npublic_key\x18\x02 \x01(\x0b\x32/.google.events.cloud.iot.v1.PublicKeyCredentialH\x00\x12\x33\n\x0f\x65xpiration_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x0c\n\ncredential\"_\n\x13PublicKeyCredential\x12;\n\x06\x66ormat\x18\x01 \x01(\x0e\x32+.google.events.cloud.iot.v1.PublicKeyFormat\x12\x0b\n\x03key\x18\x02 \x01(\t\"\xa0\x01\n\x0c\x44\x65viceConfig\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12\x35\n\x11\x63loud_update_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x64\x65vice_ack_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x62inary_data\x18\x04 \x01(\x0c\"S\n\x0b\x44\x65viceState\x12/\n\x0bupdate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0b\x62inary_data\x18\x02 \x01(\x0c\"W\n\x0f\x44\x65viceEventData\x12\x38\n\x07payload\x18\x01 \x01(\x0b\x32\".google.events.cloud.iot.v1.DeviceH\x00\x88\x01\x01\x42\n\n\x08_payload\"a\n\x11RegistryEventData\x12@\n\x07payload\x18\x01 \x01(\x0b\x32*.google.events.cloud.iot.v1.DeviceRegistryH\x00\x88\x01\x01\x42\n\n\x08_payload*L\n\tMqttState\x12\x1a\n\x16MQTT_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cMQTT_ENABLED\x10\x01\x12\x11\n\rMQTT_DISABLED\x10\x02*L\n\tHttpState\x12\x1a\n\x16HTTP_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cHTTP_ENABLED\x10\x01\x12\x11\n\rHTTP_DISABLED\x10\x02*O\n\x08LogLevel\x12\x19\n\x15LOG_LEVEL_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\n\x12\t\n\x05\x45RROR\x10\x14\x12\x08\n\x04INFO\x10\x1e\x12\t\n\x05\x44\x45\x42UG\x10(*I\n\x0bGatewayType\x12\x1c\n\x18GATEWAY_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07GATEWAY\x10\x01\x12\x0f\n\x0bNON_GATEWAY\x10\x02*\x91\x01\n\x11GatewayAuthMethod\x12#\n\x1fGATEWAY_AUTH_METHOD_UNSPECIFIED\x10\x00\x12\x14\n\x10\x41SSOCIATION_ONLY\x10\x01\x12\x1a\n\x16\x44\x45VICE_AUTH_TOKEN_ONLY\x10\x02\x12%\n!ASSOCIATION_AND_DEVICE_AUTH_TOKEN\x10\x03*e\n\x1aPublicKeyCertificateFormat\x12-\n)UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT\x10\x00\x12\x18\n\x14X509_CERTIFICATE_PEM\x10\x01*v\n\x0fPublicKeyFormat\x12!\n\x1dUNSPECIFIED_PUBLIC_KEY_FORMAT\x10\x00\x12\x0b\n\x07RSA_PEM\x10\x03\x12\x10\n\x0cRSA_X509_PEM\x10\x01\x12\r\n\tES256_PEM\x10\x02\x12\x12\n\x0e\x45S256_X509_PEM\x10\x04\x42\x64\xaa\x02#Google.Events.Protobuf.Cloud.Iot.V1\xca\x02\x1aGoogle\\Events\\Cloud\\Iot\\V1\xea\x02\x1eGoogle::Events::Cloud::Iot::V1b\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.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
27
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
141
33
|
end
|
142
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
143
37
|
end
|
144
38
|
|
145
39
|
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/iot/v1/events.proto
|
3
4
|
|
@@ -6,27 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/events/cloud/iot/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
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
10
|
+
|
11
|
+
descriptor_data = "\n\'google/events/cloud/iot/v1/events.proto\x12\x1agoogle.events.cloud.iot.v1\x1a%google/events/cloud/iot/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x9b\x01\n\x11\x43reateDeviceEvent\x12\x39\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32+.google.events.cloud.iot.v1.DeviceEventData:K\xb2\xf8\xd8,.google.cloud.iot.v1.DeviceManager.CreateDevice\xca\xf8\xd8,\x06\x64\x65vice\xca\xf8\xd8,\x08registry\"\x9b\x01\n\x11UpdateDeviceEvent\x12\x39\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32+.google.events.cloud.iot.v1.DeviceEventData:K\xb2\xf8\xd8,.google.cloud.iot.v1.DeviceManager.UpdateDevice\xca\xf8\xd8,\x06\x64\x65vice\xca\xf8\xd8,\x08registry\"\x9b\x01\n\x11\x44\x65leteDeviceEvent\x12\x39\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32+.google.events.cloud.iot.v1.DeviceEventData:K\xb2\xf8\xd8,.google.cloud.iot.v1.DeviceManager.DeleteDevice\xca\xf8\xd8,\x06\x64\x65vice\xca\xf8\xd8,\x08registry\"\xa2\x01\n\x19\x43reateDeviceRegistryEvent\x12;\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32-.google.events.cloud.iot.v1.RegistryEventData:H\xb2\xf8\xd8,6google.cloud.iot.v1.DeviceManager.CreateDeviceRegistry\xca\xf8\xd8,\x08registry\"\xa2\x01\n\x19UpdateDeviceRegistryEvent\x12;\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32-.google.events.cloud.iot.v1.RegistryEventData:H\xb2\xf8\xd8,6google.cloud.iot.v1.DeviceManager.UpdateDeviceRegistry\xca\xf8\xd8,\x08registry\"\xa2\x01\n\x19\x44\x65leteDeviceRegistryEvent\x12;\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32-.google.events.cloud.iot.v1.RegistryEventData:H\xb2\xf8\xd8,6google.cloud.iot.v1.DeviceManager.DeleteDeviceRegistry\xca\xf8\xd8,\x08registryB\x8c\x02\xaa\x02#Google.Events.Protobuf.Cloud.Iot.V1\xca\x02\x1aGoogle\\Events\\Cloud\\Iot\\V1\xea\x02\x1eGoogle::Events::Cloud::Iot::V1\xba\xf8\xd8,\tCloud IoT\xc2\xf8\xd8,E\n\x06\x64\x65vice\x12\x33The resource ID of the Device triggering the event.\x1a\x06\x64\x65vice\xc2\xf8\xd8,K\n\x08registry\x12\x35The resource ID of the Registry triggering the event.\x1a\x08registryb\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.iot.v1.DeviceEventData", "google/events/cloud/iot/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}"
|
28
32
|
end
|
29
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."
|
30
36
|
end
|
31
37
|
|
32
38
|
module Google
|