google-events 0.4.0 → 0.6.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 +17 -0
- data/lib/google/events/cloud/alloydb/v1/data_pb.rb +1 -25
- data/lib/google/events/cloud/alloydb/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/apigateway/v1/data_pb.rb +1 -23
- data/lib/google/events/cloud/apigateway/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/apigeeregistry/v1/data_pb.rb +1 -23
- data/lib/google/events/cloud/apigeeregistry/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/audit/v1/data_pb.rb +1 -27
- data/lib/google/events/cloud/audit/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/batch/v1/data_pb.rb +68 -0
- data/lib/google/events/cloud/batch/v1/events_pb.rb +27 -0
- data/lib/google/events/cloud/beyondcorp/appconnections/v1/data_pb.rb +1 -23
- data/lib/google/events/cloud/beyondcorp/appconnections/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/beyondcorp/appconnectors/v1/data_pb.rb +1 -23
- data/lib/google/events/cloud/beyondcorp/appconnectors/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/beyondcorp/appgateways/v1/data_pb.rb +1 -23
- data/lib/google/events/cloud/beyondcorp/appgateways/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/beyondcorp/clientconnectorservices/v1/data_pb.rb +1 -23
- data/lib/google/events/cloud/beyondcorp/clientconnectorservices/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/beyondcorp/clientgateways/v1/data_pb.rb +1 -23
- data/lib/google/events/cloud/beyondcorp/clientgateways/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/certificatemanager/v1/data_pb.rb +1 -24
- data/lib/google/events/cloud/certificatemanager/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/cloudbuild/v1/data_pb.rb +1 -24
- data/lib/google/events/cloud/cloudbuild/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/clouddms/v1/data_pb.rb +1 -26
- data/lib/google/events/cloud/clouddms/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/dataflow/v1beta3/data_pb.rb +1 -24
- data/lib/google/events/cloud/dataflow/v1beta3/events_pb.rb +1 -23
- data/lib/google/events/cloud/datafusion/v1/data_pb.rb +1 -23
- data/lib/google/events/cloud/datafusion/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/dataplex/v1/data_pb.rb +1 -24
- data/lib/google/events/cloud/dataplex/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/datastore/v1/data_pb.rb +1 -24
- data/lib/google/events/cloud/datastore/v1/events_pb.rb +6 -24
- data/lib/google/events/cloud/datastream/v1/data_pb.rb +1 -24
- data/lib/google/events/cloud/datastream/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/deploy/v1/data_pb.rb +113 -0
- data/lib/google/events/cloud/deploy/v1/events_pb.rb +39 -0
- data/lib/google/events/cloud/eventarc/v1/data_pb.rb +1 -23
- data/lib/google/events/cloud/eventarc/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/firestore/v1/data_pb.rb +1 -24
- data/lib/google/events/cloud/firestore/v1/events_pb.rb +6 -24
- data/lib/google/events/cloud/functions/v2/data_pb.rb +1 -23
- data/lib/google/events/cloud/functions/v2/events_pb.rb +1 -23
- data/lib/google/events/cloud/gkebackup/v1/data_pb.rb +3 -25
- data/lib/google/events/cloud/gkebackup/v1/events_pb.rb +3 -25
- data/lib/google/events/cloud/gkehub/v1/data_pb.rb +1 -23
- data/lib/google/events/cloud/gkehub/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/iot/v1/data_pb.rb +1 -24
- data/lib/google/events/cloud/iot/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/memcache/v1/data_pb.rb +1 -25
- data/lib/google/events/cloud/memcache/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/metastore/v1/data_pb.rb +1 -24
- data/lib/google/events/cloud/metastore/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/networkconnectivity/v1/data_pb.rb +1 -24
- data/lib/google/events/cloud/networkconnectivity/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/networkmanagement/v1/data_pb.rb +1 -24
- data/lib/google/events/cloud/networkmanagement/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/networkservices/v1/data_pb.rb +85 -0
- data/lib/google/events/cloud/networkservices/v1/events_pb.rb +48 -0
- data/lib/google/events/cloud/notebooks/v1/data_pb.rb +1 -23
- data/lib/google/events/cloud/notebooks/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/pubsub/v1/data_pb.rb +1 -23
- data/lib/google/events/cloud/pubsub/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/redis/v1/data_pb.rb +1 -25
- data/lib/google/events/cloud/redis/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/scheduler/v1/data_pb.rb +17 -23
- data/lib/google/events/cloud/scheduler/v1/events_pb.rb +5 -24
- data/lib/google/events/cloud/speech/v1/data_pb.rb +32 -0
- data/lib/google/events/cloud/speech/v1/events_pb.rb +31 -0
- data/lib/google/events/cloud/storage/v1/data_pb.rb +1 -23
- data/lib/google/events/cloud/storage/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/video/transcoder/v1/data_pb.rb +1 -25
- data/lib/google/events/cloud/video/transcoder/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/visionai/v1/data_pb.rb +1 -24
- data/lib/google/events/cloud/visionai/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/vmmigration/v1/data_pb.rb +1 -26
- data/lib/google/events/cloud/vmmigration/v1/events_pb.rb +1 -23
- data/lib/google/events/cloud/workflows/v1/data_pb.rb +1 -23
- data/lib/google/events/cloud/workflows/v1/events_pb.rb +1 -23
- data/lib/google/events/cloudevent_pb.rb +1 -22
- data/lib/google/events/firebase/analytics/v1/data_pb.rb +1 -22
- data/lib/google/events/firebase/analytics/v1/events_pb.rb +1 -23
- data/lib/google/events/firebase/auth/v1/data_pb.rb +1 -24
- data/lib/google/events/firebase/auth/v1/events_pb.rb +1 -23
- data/lib/google/events/firebase/database/v1/data_pb.rb +1 -23
- data/lib/google/events/firebase/database/v1/events_pb.rb +1 -23
- data/lib/google/events/firebase/firebasealerts/v1/cloud_event_payload_pb.rb +1 -24
- data/lib/google/events/firebase/firebasealerts/v1/data_pb.rb +1 -24
- data/lib/google/events/firebase/firebasealerts/v1/events_pb.rb +1 -23
- data/lib/google/events/firebase/remoteconfig/v1/data_pb.rb +1 -23
- data/lib/google/events/firebase/remoteconfig/v1/events_pb.rb +1 -23
- data/lib/google/events/firebase/testlab/v1/data_pb.rb +1 -23
- data/lib/google/events/firebase/testlab/v1/events_pb.rb +1 -23
- data/lib/google/events/version.rb +1 -1
- metadata +11 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53e04ac49ef555d51724e42210eb21286d99b821c65d0883eb9e4c4f11611795
|
4
|
+
data.tar.gz: 9d7af0913256fc73479ad66993fa7b94caf624c249162c2a92d4678206bb1edc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3570631e2082f39f9629bdc42f990634d44c282873082cd810a76023b3bca4d4eddf81c82120f9d2d1eefe1bece8f1936843308399e3687696c0f9926ba7377
|
7
|
+
data.tar.gz: 0fa878ef92944681c979cc8e875ae1ea02409d5e8c62b197abd30f1ca4179863f9aae5b7e1f5eff9d42e12636ab9136266fd1404d1a2a561c1d2ddf908770907
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 0.6.0 (2024-07-25)
|
4
|
+
|
5
|
+
#### Features
|
6
|
+
|
7
|
+
* Add events for batch v1
|
8
|
+
* Add events for deploy v1
|
9
|
+
* Add events for networkservices v1
|
10
|
+
* Add events for speech v1
|
11
|
+
* Add events with auth context for datastore v1 and firestore v1
|
12
|
+
* Add various new events for scheduler v1
|
13
|
+
|
14
|
+
### 0.5.0 (2023-12-04)
|
15
|
+
|
16
|
+
#### Features
|
17
|
+
|
18
|
+
* Automated update of event classes ([#50](https://github.com/googleapis/google-cloudevents-ruby/issues/50))
|
19
|
+
|
3
20
|
### 0.4.0 (2023-07-11)
|
4
21
|
|
5
22
|
#### Features
|
@@ -13,31 +13,7 @@ require 'google/type/timeofday_pb'
|
|
13
13
|
descriptor_data = "\n)google/events/cloud/alloydb/v1/data.proto\x12\x1egoogle.events.cloud.alloydb.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\".\n\x0cUserPassword\x12\x0c\n\x04user\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\"\xdb\x01\n\x0fMigrationSource\x12\x11\n\thost_port\x18\x01 \x01(\t\x12\x14\n\x0creference_id\x18\x02 \x01(\t\x12X\n\x0bsource_type\x18\x03 \x01(\x0e\x32\x43.google.events.cloud.alloydb.v1.MigrationSource.MigrationSourceType\"E\n\x13MigrationSourceType\x12%\n!MIGRATION_SOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x44MS\x10\x01\"(\n\x10\x45ncryptionConfig\x12\x14\n\x0ckms_key_name\x18\x01 \x01(\t\"\xd6\x01\n\x0e\x45ncryptionInfo\x12L\n\x0f\x65ncryption_type\x18\x01 \x01(\x0e\x32\x33.google.events.cloud.alloydb.v1.EncryptionInfo.Type\x12\x18\n\x10kms_key_versions\x18\x02 \x03(\t\"\\\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02\"\xbc\x02\n\tSslConfig\x12\x43\n\x08ssl_mode\x18\x01 \x01(\x0e\x32\x31.google.events.cloud.alloydb.v1.SslConfig.SslMode\x12\x45\n\tca_source\x18\x02 \x01(\x0e\x32\x32.google.events.cloud.alloydb.v1.SslConfig.CaSource\"e\n\x07SslMode\x12\x18\n\x14SSL_MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0eSSL_MODE_ALLOW\x10\x01\x12\x14\n\x10SSL_MODE_REQUIRE\x10\x02\x12\x16\n\x12SSL_MODE_VERIFY_CA\x10\x03\"<\n\x08\x43\x61Source\x12\x19\n\x15\x43\x41_SOURCE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43\x41_SOURCE_MANAGED\x10\x01\"\x83\x07\n\x15\x41utomatedBackupPolicy\x12_\n\x0fweekly_schedule\x18\x02 \x01(\x0b\x32\x44.google.events.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklyScheduleH\x00\x12h\n\x14time_based_retention\x18\x04 \x01(\x0b\x32H.google.events.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetentionH\x01\x12p\n\x18quantity_based_retention\x18\x05 \x01(\x0b\x32L.google.events.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetentionH\x01\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08H\x02\x88\x01\x01\x12\x30\n\rbackup_window\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12K\n\x11\x65ncryption_config\x18\x08 \x01(\x0b\x32\x30.google.events.cloud.alloydb.v1.EncryptionConfig\x12\x10\n\x08location\x18\x06 \x01(\t\x12Q\n\x06labels\x18\x07 \x03(\x0b\x32\x41.google.events.cloud.alloydb.v1.AutomatedBackupPolicy.LabelsEntry\x1ak\n\x0eWeeklySchedule\x12+\n\x0bstart_times\x18\x01 \x03(\x0b\x32\x16.google.type.TimeOfDay\x12,\n\x0c\x64\x61ys_of_week\x18\x02 \x03(\x0e\x32\x16.google.type.DayOfWeek\x1aI\n\x12TimeBasedRetention\x12\x33\n\x10retention_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\'\n\x16QuantityBasedRetention\x12\r\n\x05\x63ount\x18\x01 \x01(\x05\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08scheduleB\x0b\n\tretentionB\n\n\x08_enabled\"7\n\x0c\x42\x61\x63kupSource\x12\x12\n\nbackup_uid\x18\x02 \x01(\t\x12\x13\n\x0b\x62\x61\x63kup_name\x18\x01 \x01(\t\"\x84\r\n\x07\x43luster\x12\x45\n\rbackup_source\x18\x0f \x01(\x0b\x32,.google.events.cloud.alloydb.v1.BackupSourceH\x00\x12K\n\x10migration_source\x18\x10 \x01(\x0b\x32/.google.events.cloud.alloydb.v1.MigrationSourceH\x00\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0b\n\x03uid\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x06labels\x18\x07 \x03(\x0b\x32\x33.google.events.cloud.alloydb.v1.Cluster.LabelsEntry\x12<\n\x05state\x18\x08 \x01(\x0e\x32-.google.events.cloud.alloydb.v1.Cluster.State\x12I\n\x0c\x63luster_type\x18\x18 \x01(\x0e\x32\x33.google.events.cloud.alloydb.v1.Cluster.ClusterType\x12I\n\x10\x64\x61tabase_version\x18\t \x01(\x0e\x32/.google.events.cloud.alloydb.v1.DatabaseVersion\x12\x0f\n\x07network\x18\n \x01(\t\x12\x0c\n\x04\x65tag\x18\x0b \x01(\t\x12M\n\x0b\x61nnotations\x18\x0c \x03(\x0b\x32\x38.google.events.cloud.alloydb.v1.Cluster.AnnotationsEntry\x12\x13\n\x0breconciling\x18\r \x01(\x08\x12V\n\x17\x61utomated_backup_policy\x18\x11 \x01(\x0b\x32\x35.google.events.cloud.alloydb.v1.AutomatedBackupPolicy\x12=\n\nssl_config\x18\x12 \x01(\x0b\x32).google.events.cloud.alloydb.v1.SslConfig\x12K\n\x11\x65ncryption_config\x18\x13 \x01(\x0b\x32\x30.google.events.cloud.alloydb.v1.EncryptionConfig\x12G\n\x0f\x65ncryption_info\x18\x14 \x01(\x0b\x32..google.events.cloud.alloydb.v1.EncryptionInfo\x12Q\n\x10secondary_config\x18\x16 \x01(\x0b\x32\x37.google.events.cloud.alloydb.v1.Cluster.SecondaryConfig\x12M\n\x0eprimary_config\x18\x17 \x01(\x0b\x32\x35.google.events.cloud.alloydb.v1.Cluster.PrimaryConfig\x1a/\n\x0fSecondaryConfig\x12\x1c\n\x14primary_cluster_name\x18\x01 \x01(\t\x1a\x30\n\rPrimaryConfig\x12\x1f\n\x17secondary_cluster_names\x18\x01 \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9c\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0b\n\x07STOPPED\x10\x02\x12\t\n\x05\x45MPTY\x10\x03\x12\x0c\n\x08\x43REATING\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x11\n\rBOOTSTRAPPING\x10\x07\x12\x0f\n\x0bMAINTENANCE\x10\x08\x12\r\n\tPROMOTING\x10\t\"G\n\x0b\x43lusterType\x12\x1c\n\x18\x43LUSTER_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIMARY\x10\x01\x12\r\n\tSECONDARY\x10\x02\x42\x08\n\x06source\"\xcf\x0f\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0b\n\x03uid\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x44\n\x06labels\x18\x07 \x03(\x0b\x32\x34.google.events.cloud.alloydb.v1.Instance.LabelsEntry\x12=\n\x05state\x18\x08 \x01(\x0e\x32..google.events.cloud.alloydb.v1.Instance.State\x12L\n\rinstance_type\x18\t \x01(\x0e\x32\x35.google.events.cloud.alloydb.v1.Instance.InstanceType\x12N\n\x0emachine_config\x18\n \x01(\x0b\x32\x36.google.events.cloud.alloydb.v1.Instance.MachineConfig\x12T\n\x11\x61vailability_type\x18\x0b \x01(\x0e\x32\x39.google.events.cloud.alloydb.v1.Instance.AvailabilityType\x12\x10\n\x08gce_zone\x18\x0c \x01(\t\x12S\n\x0e\x64\x61tabase_flags\x18\r \x03(\x0b\x32;.google.events.cloud.alloydb.v1.Instance.DatabaseFlagsEntry\x12\x44\n\rwritable_node\x18\x13 \x01(\x0b\x32-.google.events.cloud.alloydb.v1.Instance.Node\x12<\n\x05nodes\x18\x14 \x03(\x0b\x32-.google.events.cloud.alloydb.v1.Instance.Node\x12\x63\n\x15query_insights_config\x18\x15 \x01(\x0b\x32\x44.google.events.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig\x12Q\n\x10read_pool_config\x18\x0e \x01(\x0b\x32\x37.google.events.cloud.alloydb.v1.Instance.ReadPoolConfig\x12\x12\n\nip_address\x18\x0f \x01(\t\x12\x13\n\x0breconciling\x18\x10 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x11 \x01(\t\x12N\n\x0b\x61nnotations\x18\x12 \x03(\x0b\x32\x39.google.events.cloud.alloydb.v1.Instance.AnnotationsEntry\x1a\"\n\rMachineConfig\x12\x11\n\tcpu_count\x18\x01 \x01(\x05\x1a>\n\x04Node\x12\x0f\n\x07zone_id\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\n\n\x02ip\x18\x03 \x01(\t\x12\r\n\x05state\x18\x04 \x01(\t\x1a\xfa\x01\n\x1bQueryInsightsInstanceConfig\x12$\n\x17record_application_tags\x18\x02 \x01(\x08H\x00\x88\x01\x01\x12\"\n\x15record_client_address\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12\x1b\n\x13query_string_length\x18\x04 \x01(\r\x12#\n\x16query_plans_per_minute\x18\x05 \x01(\rH\x02\x88\x01\x01\x42\x1a\n\x18_record_application_tagsB\x18\n\x16_record_client_addressB\x19\n\x17_query_plans_per_minute\x1a$\n\x0eReadPoolConfig\x12\x12\n\nnode_count\x18\x01 \x01(\x05\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x34\n\x12\x44\x61tabaseFlagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x91\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0b\n\x07STOPPED\x10\x02\x12\x0c\n\x08\x43REATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0f\n\x0bMAINTENANCE\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x11\n\rBOOTSTRAPPING\x10\x08\x12\r\n\tPROMOTING\x10\t\"X\n\x0cInstanceType\x12\x1d\n\x19INSTANCE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIMARY\x10\x01\x12\r\n\tREAD_POOL\x10\x02\x12\r\n\tSECONDARY\x10\x03\"N\n\x10\x41vailabilityType\x12!\n\x1d\x41VAILABILITY_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05ZONAL\x10\x01\x12\x0c\n\x08REGIONAL\x10\x02\"\x96\x08\n\x06\x42\x61\x63kup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x0b\n\x03uid\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x06labels\x18\x06 \x03(\x0b\x32\x32.google.events.cloud.alloydb.v1.Backup.LabelsEntry\x12;\n\x05state\x18\x07 \x01(\x0e\x32,.google.events.cloud.alloydb.v1.Backup.State\x12\x39\n\x04type\x18\x08 \x01(\x0e\x32+.google.events.cloud.alloydb.v1.Backup.Type\x12\x13\n\x0b\x64\x65scription\x18\t \x01(\t\x12\x13\n\x0b\x63luster_uid\x18\x12 \x01(\t\x12\x14\n\x0c\x63luster_name\x18\n \x01(\t\x12\x13\n\x0breconciling\x18\x0b \x01(\x08\x12K\n\x11\x65ncryption_config\x18\x0c \x01(\x0b\x32\x30.google.events.cloud.alloydb.v1.EncryptionConfig\x12G\n\x0f\x65ncryption_info\x18\r \x01(\x0b\x32..google.events.cloud.alloydb.v1.EncryptionInfo\x12\x0c\n\x04\x65tag\x18\x0e \x01(\t\x12L\n\x0b\x61nnotations\x18\x10 \x03(\x0b\x32\x37.google.events.cloud.alloydb.v1.Backup.AnnotationsEntry\x12\x12\n\nsize_bytes\x18\x11 \x01(\x03\x12/\n\x0b\x65xpiry_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\"J\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tON_DEMAND\x10\x01\x12\r\n\tAUTOMATED\x10\x02\x12\x0e\n\nCONTINUOUS\x10\x03\"_\n\x11InstanceEventData\x12>\n\x07payload\x18\x01 \x01(\x0b\x32(.google.events.cloud.alloydb.v1.InstanceH\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.alloydb.v1.BackupH\x00\x88\x01\x01\x42\n\n\x08_payload\"]\n\x10\x43lusterEventData\x12=\n\x07payload\x18\x01 \x01(\x0b\x32\'.google.events.cloud.alloydb.v1.ClusterH\x00\x88\x01\x01\x42\n\n\x08_payload*U\n\x0f\x44\x61tabaseVersion\x12 \n\x1c\x44\x41TABASE_VERSION_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPOSTGRES_13\x10\x01\x12\x0f\n\x0bPOSTGRES_14\x10\x02\x42p\xaa\x02\'Google.Events.Protobuf.Cloud.AlloyDb.V1\xca\x02\x1eGoogle\\Events\\Cloud\\AlloyDb\\V1\xea\x02\"Google::Events::Cloud::AlloyDB::V1b\x06proto3"
|
14
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
-
|
17
|
-
begin
|
18
|
-
pool.add_serialized_file(descriptor_data)
|
19
|
-
rescue TypeError => e
|
20
|
-
# Compatibility code: will be removed in the next major version.
|
21
|
-
require 'google/protobuf/descriptor_pb'
|
22
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
-
parsed.clear_dependency
|
24
|
-
serialized = parsed.class.encode(parsed)
|
25
|
-
file = pool.add_serialized_file(serialized)
|
26
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
-
imports = [
|
28
|
-
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
29
|
-
["google.type.TimeOfDay", "google/type/timeofday.proto"],
|
30
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
-
]
|
32
|
-
imports.each do |type_name, expected_filename|
|
33
|
-
import_file = pool.lookup(type_name).file_descriptor
|
34
|
-
if import_file.name != expected_filename
|
35
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
36
|
-
end
|
37
|
-
end
|
38
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
39
|
-
warn "This will become an error in the next major version."
|
40
|
-
end
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
41
17
|
|
42
18
|
module Google
|
43
19
|
module Events
|
@@ -11,29 +11,7 @@ require 'google/events/cloudevent_pb'
|
|
11
11
|
descriptor_data = "\n+google/events/cloud/alloydb/v1/events.proto\x12\x1egoogle.events.cloud.alloydb.v1\x1a)google/events/cloud/alloydb/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x8f\x01\n\x13\x43lusterCreatedEvent\x12>\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x30.google.events.cloud.alloydb.v1.ClusterEventData:8\xb2\xf8\xd8,\'google.cloud.alloydb.cluster.v1.created\xca\xf8\xd8,\x07\x63luster\"\x8f\x01\n\x13\x43lusterUpdatedEvent\x12>\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x30.google.events.cloud.alloydb.v1.ClusterEventData:8\xb2\xf8\xd8,\'google.cloud.alloydb.cluster.v1.updated\xca\xf8\xd8,\x07\x63luster\"\x8f\x01\n\x13\x43lusterDeletedEvent\x12>\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x30.google.events.cloud.alloydb.v1.ClusterEventData:8\xb2\xf8\xd8,\'google.cloud.alloydb.cluster.v1.deleted\xca\xf8\xd8,\x07\x63luster\"\x9f\x01\n\x14InstanceCreatedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.alloydb.v1.InstanceEventData:F\xb2\xf8\xd8,(google.cloud.alloydb.instance.v1.created\xca\xf8\xd8,\x07\x63luster\xca\xf8\xd8,\x08instance\"\x9f\x01\n\x14InstanceUpdatedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.alloydb.v1.InstanceEventData:F\xb2\xf8\xd8,(google.cloud.alloydb.instance.v1.updated\xca\xf8\xd8,\x07\x63luster\xca\xf8\xd8,\x08instance\"\x9f\x01\n\x14InstanceDeletedEvent\x12?\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.alloydb.v1.InstanceEventData:F\xb2\xf8\xd8,(google.cloud.alloydb.instance.v1.deleted\xca\xf8\xd8,\x07\x63luster\xca\xf8\xd8,\x08instance\"\x8b\x01\n\x12\x42\x61\x63kupCreatedEvent\x12=\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32/.google.events.cloud.alloydb.v1.BackupEventData:6\xb2\xf8\xd8,&google.cloud.alloydb.backup.v1.created\xca\xf8\xd8,\x06\x62\x61\x63kup\"\x8b\x01\n\x12\x42\x61\x63kupUpdatedEvent\x12=\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32/.google.events.cloud.alloydb.v1.BackupEventData:6\xb2\xf8\xd8,&google.cloud.alloydb.backup.v1.updated\xca\xf8\xd8,\x06\x62\x61\x63kup\"\x8b\x01\n\x12\x42\x61\x63kupDeletedEvent\x12=\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32/.google.events.cloud.alloydb.v1.BackupEventData:6\xb2\xf8\xd8,&google.cloud.alloydb.backup.v1.deleted\xca\xf8\xd8,\x06\x62\x61\x63kupB\xd7\x02\xaa\x02\'Google.Events.Protobuf.Cloud.AlloyDb.V1\xca\x02\x1eGoogle\\Events\\Cloud\\AlloyDb\\V1\xea\x02\"Google::Events::Cloud::AlloyDB::V1\xba\xf8\xd8,\x16\x41lloyDB for PostgreSQL\xc2\xf8\xd8,?\n\x07\x63luster\x12\x34The resource ID of the Cluster triggering the event.\xc2\xf8\xd8,A\n\x08instance\x12\x35The resource ID of the Instance triggering the event.\xc2\xf8\xd8,=\n\x06\x62\x61\x63kup\x12\x33The resource ID of the Backup triggering the event.b\x06proto3"
|
12
12
|
|
13
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.alloydb.v1.ClusterEventData", "google/events/cloud/alloydb/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
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
37
15
|
|
38
16
|
module Google
|
39
17
|
module Events
|
@@ -10,29 +10,7 @@ require 'google/protobuf/timestamp_pb'
|
|
10
10
|
descriptor_data = "\n,google/events/cloud/apigateway/v1/data.proto\x12!google.events.cloud.apigateway.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb6\x03\n\x03\x41pi\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x06labels\x18\x04 \x03(\x0b\x32\x32.google.events.cloud.apigateway.v1.Api.LabelsEntry\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\t\x12\x17\n\x0fmanaged_service\x18\x07 \x01(\t\x12;\n\x05state\x18\x0c \x01(\x0e\x32,.google.events.cloud.apigateway.v1.Api.State\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\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\"\xdf\x07\n\tApiConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12H\n\x06labels\x18\x04 \x03(\x0b\x32\x38.google.events.cloud.apigateway.v1.ApiConfig.LabelsEntry\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\t\x12\x1f\n\x17gateway_service_account\x18\x0e \x01(\t\x12\x19\n\x11service_config_id\x18\x0c \x01(\t\x12\x41\n\x05state\x18\x08 \x01(\x0e\x32\x32.google.events.cloud.apigateway.v1.ApiConfig.State\x12W\n\x11openapi_documents\x18\t \x03(\x0b\x32<.google.events.cloud.apigateway.v1.ApiConfig.OpenApiDocument\x12Y\n\rgrpc_services\x18\n \x03(\x0b\x32\x42.google.events.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition\x12R\n\x17managed_service_configs\x18\x0b \x03(\x0b\x32\x31.google.events.cloud.apigateway.v1.ApiConfig.File\x1a&\n\x04\x46ile\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x10\n\x08\x63ontents\x18\x02 \x01(\x0c\x1aV\n\x0fOpenApiDocument\x12\x43\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.apigateway.v1.ApiConfig.File\x1aZ\n\x15GrpcServiceDefinition\x12\x41\n\x06source\x18\x02 \x03(\x0b\x32\x31.google.events.cloud.apigateway.v1.ApiConfig.File\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"p\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\x12\x0e\n\nACTIVATING\x10\x06\"\xd7\x03\n\x07Gateway\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x46\n\x06labels\x18\x04 \x03(\x0b\x32\x36.google.events.cloud.apigateway.v1.Gateway.LabelsEntry\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\t\x12\x12\n\napi_config\x18\x06 \x01(\t\x12?\n\x05state\x18\x07 \x01(\x0e\x32\x30.google.events.cloud.apigateway.v1.Gateway.State\x12\x18\n\x10\x64\x65\x66\x61ult_hostname\x18\t \x01(\t\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\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\"`\n\x10GatewayEventData\x12@\n\x07payload\x18\x01 \x01(\x0b\x32*.google.events.cloud.apigateway.v1.GatewayH\x00\x88\x01\x01\x42\n\n\x08_payload\"d\n\x12\x41piConfigEventData\x12\x42\n\x07payload\x18\x01 \x01(\x0b\x32,.google.events.cloud.apigateway.v1.ApiConfigH\x00\x88\x01\x01\x42\n\n\x08_payload\"X\n\x0c\x41piEventData\x12<\n\x07payload\x18\x01 \x01(\x0b\x32&.google.events.cloud.apigateway.v1.ApiH\x00\x88\x01\x01\x42\n\n\x08_payloadBy\xaa\x02*Google.Events.Protobuf.Cloud.ApiGateway.V1\xca\x02!Google\\Events\\Cloud\\ApiGateway\\V1\xea\x02%Google::Events::Cloud::ApiGateway::V1b\x06proto3"
|
11
11
|
|
12
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
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
36
14
|
|
37
15
|
module Google
|
38
16
|
module Events
|
@@ -11,29 +11,7 @@ require 'google/events/cloudevent_pb'
|
|
11
11
|
descriptor_data = "\n.google/events/cloud/apigateway/v1/events.proto\x12!google.events.cloud.apigateway.v1\x1a,google/events/cloud/apigateway/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\x95\x01\n\x13GatewayCreatedEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.apigateway.v1.GatewayEventData:;\xb2\xf8\xd8,*google.cloud.apigateway.gateway.v1.created\xca\xf8\xd8,\x07gateway\"\x95\x01\n\x13GatewayUpdatedEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.apigateway.v1.GatewayEventData:;\xb2\xf8\xd8,*google.cloud.apigateway.gateway.v1.updated\xca\xf8\xd8,\x07gateway\"\x95\x01\n\x13GatewayDeletedEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.apigateway.v1.GatewayEventData:;\xb2\xf8\xd8,*google.cloud.apigateway.gateway.v1.deleted\xca\xf8\xd8,\x07gateway\"\x85\x01\n\x0f\x41piCreatedEvent\x12=\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32/.google.events.cloud.apigateway.v1.ApiEventData:3\xb2\xf8\xd8,&google.cloud.apigateway.api.v1.created\xca\xf8\xd8,\x03\x61pi\"\x85\x01\n\x0f\x41piUpdatedEvent\x12=\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32/.google.events.cloud.apigateway.v1.ApiEventData:3\xb2\xf8\xd8,&google.cloud.apigateway.api.v1.updated\xca\xf8\xd8,\x03\x61pi\"\x85\x01\n\x0f\x41piDeletedEvent\x12=\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32/.google.events.cloud.apigateway.v1.ApiEventData:3\xb2\xf8\xd8,&google.cloud.apigateway.api.v1.deleted\xca\xf8\xd8,\x03\x61pi\"\xa5\x01\n\x15\x41piConfigCreatedEvent\x12\x43\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x35.google.events.cloud.apigateway.v1.ApiConfigEventData:G\xb2\xf8\xd8,,google.cloud.apigateway.apiConfig.v1.created\xca\xf8\xd8,\x03\x61pi\xca\xf8\xd8,\tapiconfig\"\xa5\x01\n\x15\x41piConfigUpdatedEvent\x12\x43\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x35.google.events.cloud.apigateway.v1.ApiConfigEventData:G\xb2\xf8\xd8,,google.cloud.apigateway.apiConfig.v1.updated\xca\xf8\xd8,\x03\x61pi\xca\xf8\xd8,\tapiconfig\"\xa5\x01\n\x15\x41piConfigDeletedEvent\x12\x43\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x35.google.events.cloud.apigateway.v1.ApiConfigEventData:G\xb2\xf8\xd8,,google.cloud.apigateway.apiConfig.v1.deleted\xca\xf8\xd8,\x03\x61pi\xca\xf8\xd8,\tapiconfigB\xdc\x02\xaa\x02*Google.Events.Protobuf.Cloud.ApiGateway.V1\xca\x02!Google\\Events\\Cloud\\ApiGateway\\V1\xea\x02%Google::Events::Cloud::ApiGateway::V1\xba\xf8\xd8,\x0b\x41PI Gateway\xc2\xf8\xd8,?\n\x07gateway\x12\x34The resource ID of the Gateway triggering the event.\xc2\xf8\xd8,7\n\x03\x61pi\x12\x30The resource ID of the Api triggering the event.\xc2\xf8\xd8,N\n\tapiconfig\x12\x36The resource ID of the ApiConfig triggering the event.\x1a\tapiConfigb\x06proto3"
|
12
12
|
|
13
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.apigateway.v1.GatewayEventData", "google/events/cloud/apigateway/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
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
37
15
|
|
38
16
|
module Google
|
39
17
|
module Events
|
@@ -10,29 +10,7 @@ require 'google/protobuf/timestamp_pb'
|
|
10
10
|
descriptor_data = "\n0google/events/cloud/apigeeregistry/v1/data.proto\x12%google.events.cloud.apigeeregistry.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc2\x03\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x44\n\x05state\x18\x04 \x01(\x0e\x32\x35.google.events.cloud.apigeeregistry.v1.Instance.State\x12\x15\n\rstate_message\x18\x05 \x01(\t\x12\x46\n\x06\x63onfig\x18\x06 \x01(\x0b\x32\x36.google.events.cloud.apigeeregistry.v1.Instance.Config\x1a\x31\n\x06\x43onfig\x12\x10\n\x08location\x18\x01 \x01(\t\x12\x15\n\rcmek_key_name\x18\x02 \x01(\t\"n\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08INACTIVE\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"\xf0\x03\n\x03\x41pi\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0c\x61vailability\x18\x06 \x01(\t\x12\x1b\n\x13recommended_version\x18\x07 \x01(\t\x12\x1e\n\x16recommended_deployment\x18\x08 \x01(\t\x12\x46\n\x06labels\x18\t \x03(\x0b\x32\x36.google.events.cloud.apigeeregistry.v1.Api.LabelsEntry\x12P\n\x0b\x61nnotations\x18\n \x03(\x0b\x32;.google.events.cloud.apigeeregistry.v1.Api.AnnotationsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc1\x03\n\nApiVersion\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05state\x18\x06 \x01(\t\x12M\n\x06labels\x18\x07 \x03(\x0b\x32=.google.events.cloud.apigeeregistry.v1.ApiVersion.LabelsEntry\x12W\n\x0b\x61nnotations\x18\x08 \x03(\x0b\x32\x42.google.events.cloud.apigeeregistry.v1.ApiVersion.AnnotationsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc6\x04\n\x07\x41piSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08\x66ilename\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x13\n\x0brevision_id\x18\x04 \x01(\t\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14revision_create_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14revision_update_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tmime_type\x18\x08 \x01(\t\x12\x12\n\nsize_bytes\x18\t \x01(\x05\x12\x0c\n\x04hash\x18\n \x01(\t\x12\x12\n\nsource_uri\x18\x0b \x01(\t\x12J\n\x06labels\x18\x0e \x03(\x0b\x32:.google.events.cloud.apigeeregistry.v1.ApiSpec.LabelsEntry\x12T\n\x0b\x61nnotations\x18\x0f \x03(\x0b\x32?.google.events.cloud.apigeeregistry.v1.ApiSpec.AnnotationsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x96\x05\n\rApiDeployment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x13\n\x0brevision_id\x18\x04 \x01(\t\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14revision_create_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14revision_update_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11\x61pi_spec_revision\x18\x08 \x01(\t\x12\x14\n\x0c\x65ndpoint_uri\x18\t \x01(\t\x12\x1c\n\x14\x65xternal_channel_uri\x18\n \x01(\t\x12\x19\n\x11intended_audience\x18\x0b \x01(\t\x12\x17\n\x0f\x61\x63\x63\x65ss_guidance\x18\x0c \x01(\t\x12P\n\x06labels\x18\x0e \x03(\x0b\x32@.google.events.cloud.apigeeregistry.v1.ApiDeployment.LabelsEntry\x12Z\n\x0b\x61nnotations\x18\x0f \x03(\x0b\x32\x45.google.events.cloud.apigeeregistry.v1.ApiDeployment.AnnotationsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"j\n\x13\x41piVersionEventData\x12G\n\x07payload\x18\x01 \x01(\x0b\x32\x31.google.events.cloud.apigeeregistry.v1.ApiVersionH\x00\x88\x01\x01\x42\n\n\x08_payload\"f\n\x11InstanceEventData\x12\x45\n\x07payload\x18\x01 \x01(\x0b\x32/.google.events.cloud.apigeeregistry.v1.InstanceH\x00\x88\x01\x01\x42\n\n\x08_payload\"d\n\x10\x41piSpecEventData\x12\x44\n\x07payload\x18\x01 \x01(\x0b\x32..google.events.cloud.apigeeregistry.v1.ApiSpecH\x00\x88\x01\x01\x42\n\n\x08_payload\"p\n\x16\x41piDeploymentEventData\x12J\n\x07payload\x18\x01 \x01(\x0b\x32\x34.google.events.cloud.apigeeregistry.v1.ApiDeploymentH\x00\x88\x01\x01\x42\n\n\x08_payload\"\\\n\x0c\x41piEventData\x12@\n\x07payload\x18\x01 \x01(\x0b\x32*.google.events.cloud.apigeeregistry.v1.ApiH\x00\x88\x01\x01\x42\n\n\x08_payloadB\x85\x01\xaa\x02.Google.Events.Protobuf.Cloud.ApigeeRegistry.V1\xca\x02%Google\\Events\\Cloud\\ApigeeRegistry\\V1\xea\x02)Google::Events::Cloud::ApigeeRegistry::V1b\x06proto3"
|
11
11
|
|
12
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
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
36
14
|
|
37
15
|
module Google
|
38
16
|
module Events
|
@@ -11,29 +11,7 @@ require 'google/events/cloudevent_pb'
|
|
11
11
|
descriptor_data = "\n2google/events/cloud/apigeeregistry/v1/events.proto\x12%google.events.cloud.apigeeregistry.v1\x1a\x30google/events/cloud/apigeeregistry/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\xa1\x01\n\x14InstanceCreatedEvent\x12\x46\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x38.google.events.cloud.apigeeregistry.v1.InstanceEventData:A\xb2\xf8\xd8,/google.cloud.apigeeregistry.instance.v1.created\xca\xf8\xd8,\x08instance\"\xa1\x01\n\x14InstanceDeletedEvent\x12\x46\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x38.google.events.cloud.apigeeregistry.v1.InstanceEventData:A\xb2\xf8\xd8,/google.cloud.apigeeregistry.instance.v1.deleted\xca\xf8\xd8,\x08instance\"\x8d\x01\n\x0f\x41piCreatedEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.apigeeregistry.v1.ApiEventData:7\xb2\xf8\xd8,*google.cloud.apigeeregistry.api.v1.created\xca\xf8\xd8,\x03\x61pi\"\x8d\x01\n\x0f\x41piUpdatedEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.apigeeregistry.v1.ApiEventData:7\xb2\xf8\xd8,*google.cloud.apigeeregistry.api.v1.updated\xca\xf8\xd8,\x03\x61pi\"\x8d\x01\n\x0f\x41piDeletedEvent\x12\x41\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.apigeeregistry.v1.ApiEventData:7\xb2\xf8\xd8,*google.cloud.apigeeregistry.api.v1.deleted\xca\xf8\xd8,\x03\x61pi\"\xae\x01\n\x16\x41piVersionCreatedEvent\x12H\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32:.google.events.cloud.apigeeregistry.v1.ApiVersionEventData:J\xb2\xf8\xd8,1google.cloud.apigeeregistry.apiVersion.v1.created\xca\xf8\xd8,\x03\x61pi\xca\xf8\xd8,\x07version\"\xae\x01\n\x16\x41piVersionUpdatedEvent\x12H\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32:.google.events.cloud.apigeeregistry.v1.ApiVersionEventData:J\xb2\xf8\xd8,1google.cloud.apigeeregistry.apiVersion.v1.updated\xca\xf8\xd8,\x03\x61pi\xca\xf8\xd8,\x07version\"\xae\x01\n\x16\x41piVersionDeletedEvent\x12H\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32:.google.events.cloud.apigeeregistry.v1.ApiVersionEventData:J\xb2\xf8\xd8,1google.cloud.apigeeregistry.apiVersion.v1.deleted\xca\xf8\xd8,\x03\x61pi\xca\xf8\xd8,\x07version\"\xae\x01\n\x13\x41piSpecCreatedEvent\x12\x45\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x37.google.events.cloud.apigeeregistry.v1.ApiSpecEventData:P\xb2\xf8\xd8,.google.cloud.apigeeregistry.apiSpec.v1.created\xca\xf8\xd8,\x03\x61pi\xca\xf8\xd8,\x07version\xca\xf8\xd8,\x04spec\"\xae\x01\n\x13\x41piSpecUpdatedEvent\x12\x45\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x37.google.events.cloud.apigeeregistry.v1.ApiSpecEventData:P\xb2\xf8\xd8,.google.cloud.apigeeregistry.apiSpec.v1.updated\xca\xf8\xd8,\x03\x61pi\xca\xf8\xd8,\x07version\xca\xf8\xd8,\x04spec\"\xae\x01\n\x13\x41piSpecDeletedEvent\x12\x45\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x37.google.events.cloud.apigeeregistry.v1.ApiSpecEventData:P\xb2\xf8\xd8,.google.cloud.apigeeregistry.apiSpec.v1.deleted\xca\xf8\xd8,\x03\x61pi\xca\xf8\xd8,\x07version\xca\xf8\xd8,\x04spec\"\xba\x01\n\x19\x41piDeploymentCreatedEvent\x12K\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32=.google.events.cloud.apigeeregistry.v1.ApiDeploymentEventData:P\xb2\xf8\xd8,4google.cloud.apigeeregistry.apiDeployment.v1.created\xca\xf8\xd8,\x03\x61pi\xca\xf8\xd8,\ndeployment\"\xba\x01\n\x19\x41piDeploymentUpdatedEvent\x12K\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32=.google.events.cloud.apigeeregistry.v1.ApiDeploymentEventData:P\xb2\xf8\xd8,4google.cloud.apigeeregistry.apiDeployment.v1.updated\xca\xf8\xd8,\x03\x61pi\xca\xf8\xd8,\ndeployment\"\xba\x01\n\x19\x41piDeploymentDeletedEvent\x12K\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32=.google.events.cloud.apigeeregistry.v1.ApiDeploymentEventData:P\xb2\xf8\xd8,4google.cloud.apigeeregistry.apiDeployment.v1.deleted\xca\xf8\xd8,\x03\x61pi\xca\xf8\xd8,\ndeploymentB\xe7\x03\xaa\x02.Google.Events.Protobuf.Cloud.ApigeeRegistry.V1\xca\x02%Google\\Events\\Cloud\\ApigeeRegistry\\V1\xea\x02)Google::Events::Cloud::ApigeeRegistry::V1\xba\xf8\xd8,\x0f\x41pigee Registry\xc2\xf8\xd8,A\n\x08instance\x12\x35The resource ID of the Instance triggering the event.\xc2\xf8\xd8,7\n\x03\x61pi\x12\x30The resource ID of the Api triggering the event.\xc2\xf8\xd8,?\n\x07version\x12\x34The resource ID of the Version triggering the event.\xc2\xf8\xd8,9\n\x04spec\x12\x31The resource ID of the Spec triggering the event.\xc2\xf8\xd8,E\n\ndeployment\x12\x37The resource ID of the Deployment triggering the event.b\x06proto3"
|
12
12
|
|
13
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.apigeeregistry.v1.InstanceEventData", "google/events/cloud/apigeeregistry/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
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
37
15
|
|
38
16
|
module Google
|
39
17
|
module Events
|
@@ -14,33 +14,7 @@ require 'google/rpc/status_pb'
|
|
14
14
|
descriptor_data = "\n\'google/events/cloud/audit/v1/data.proto\x12\x1cgoogle.events.cloud.audit.v1\x1a#google/api/monitored_resource.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a*google/rpc/context/attribute_context.proto\x1a\x17google/rpc/status.proto\"\xd8\x04\n\x0cLogEntryData\x12\x10\n\x08log_name\x18\x0c \x01(\t\x12/\n\x08resource\x18\x08 \x01(\x0b\x32\x1d.google.api.MonitoredResource\x12=\n\rproto_payload\x18\x02 \x01(\x0b\x32&.google.events.cloud.audit.v1.AuditLog\x12\x11\n\tinsert_id\x18\x04 \x01(\t\x12\x46\n\x06labels\x18\x0b \x03(\x0b\x32\x36.google.events.cloud.audit.v1.LogEntryData.LabelsEntry\x12\x42\n\toperation\x18\x0f \x01(\x0b\x32/.google.events.cloud.audit.v1.LogEntryOperation\x12-\n\ttimestamp\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11receive_timestamp\x18\x18 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x08severity\x18\n \x01(\x0e\x32).google.events.cloud.audit.v1.LogSeverity\x12\r\n\x05trace\x18\x16 \x01(\t\x12\x0f\n\x07span_id\x18\x1b \x01(\t\x12\x35\n\x05split\x18# \x01(\x0b\x32&.google.events.cloud.audit.v1.LogSplit\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"N\n\x11LogEntryOperation\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08producer\x18\x02 \x01(\t\x12\r\n\x05\x66irst\x18\x03 \x01(\x08\x12\x0c\n\x04last\x18\x04 \x01(\x08\"\xa5\x05\n\x08\x41uditLog\x12\x14\n\x0cservice_name\x18\x07 \x01(\t\x12\x13\n\x0bmethod_name\x18\x08 \x01(\t\x12\x15\n\rresource_name\x18\x0b \x01(\t\x12I\n\x11resource_location\x18\x14 \x01(\x0b\x32..google.events.cloud.audit.v1.ResourceLocation\x12\x38\n\x17resource_original_state\x18\x13 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x1a\n\x12num_response_items\x18\x0c \x01(\x03\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12M\n\x13\x61uthentication_info\x18\x03 \x01(\x0b\x32\x30.google.events.cloud.audit.v1.AuthenticationInfo\x12K\n\x12\x61uthorization_info\x18\t \x03(\x0b\x32/.google.events.cloud.audit.v1.AuthorizationInfo\x12G\n\x10request_metadata\x18\x04 \x01(\x0b\x32-.google.events.cloud.audit.v1.RequestMetadata\x12(\n\x07request\x18\x10 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08response\x18\x11 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08metadata\x18\x12 \x01(\x0b\x32\x17.google.protobuf.Struct\x12-\n\x0cservice_data\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\"\xa3\x02\n\x12\x41uthenticationInfo\x12\x17\n\x0fprincipal_email\x18\x01 \x01(\t\x12\x1a\n\x12\x61uthority_selector\x18\x02 \x01(\t\x12\x36\n\x15third_party_principal\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12 \n\x18service_account_key_name\x18\x05 \x01(\t\x12\x63\n\x1fservice_account_delegation_info\x18\x06 \x03(\x0b\x32:.google.events.cloud.audit.v1.ServiceAccountDelegationInfo\x12\x19\n\x11principal_subject\x18\x08 \x01(\t\"\x96\x01\n\x11\x41uthorizationInfo\x12\x10\n\x08resource\x18\x01 \x01(\t\x12\x12\n\npermission\x18\x02 \x01(\t\x12\x0f\n\x07granted\x18\x03 \x01(\x08\x12J\n\x13resource_attributes\x18\x05 \x01(\x0b\x32-.google.rpc.context.AttributeContext.Resource\"\xf5\x01\n\x0fRequestMetadata\x12\x11\n\tcaller_ip\x18\x01 \x01(\t\x12\"\n\x1a\x63\x61ller_supplied_user_agent\x18\x02 \x01(\t\x12\x16\n\x0e\x63\x61ller_network\x18\x03 \x01(\t\x12H\n\x12request_attributes\x18\x07 \x01(\x0b\x32,.google.rpc.context.AttributeContext.Request\x12I\n\x16\x64\x65stination_attributes\x18\x08 \x01(\x0b\x32).google.rpc.context.AttributeContext.Peer\"I\n\x10ResourceLocation\x12\x19\n\x11\x63urrent_locations\x18\x01 \x03(\t\x12\x1a\n\x12original_locations\x18\x02 \x03(\t\"\xbc\x03\n\x1cServiceAccountDelegationInfo\x12o\n\x15\x66irst_party_principal\x18\x01 \x01(\x0b\x32N.google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipalH\x00\x12o\n\x15third_party_principal\x18\x02 \x01(\x0b\x32N.google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipalH\x00\x1a\x61\n\x13\x46irstPartyPrincipal\x12\x17\n\x0fprincipal_email\x18\x01 \x01(\t\x12\x31\n\x10service_metadata\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x1aJ\n\x13ThirdPartyPrincipal\x12\x33\n\x12third_party_claims\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructB\x0b\n\tAuthority\"<\n\x08LogSplit\x12\x0b\n\x03uid\x18\x01 \x01(\t\x12\r\n\x05index\x18\x02 \x01(\x05\x12\x14\n\x0ctotal_splits\x18\x03 \x01(\x05*\x82\x01\n\x0bLogSeverity\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\t\n\x05\x44\x45\x42UG\x10\x64\x12\t\n\x04INFO\x10\xc8\x01\x12\x0b\n\x06NOTICE\x10\xac\x02\x12\x0c\n\x07WARNING\x10\x90\x03\x12\n\n\x05\x45RROR\x10\xf4\x03\x12\r\n\x08\x43RITICAL\x10\xd8\x04\x12\n\n\x05\x41LERT\x10\xbc\x05\x12\x0e\n\tEMERGENCY\x10\xa0\x06\x42j\xaa\x02%Google.Events.Protobuf.Cloud.Audit.V1\xca\x02\x1cGoogle\\Events\\Cloud\\Audit\\V1\xea\x02 Google::Events::Cloud::Audit::V1b\x06proto3"
|
15
15
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
-
|
18
|
-
begin
|
19
|
-
pool.add_serialized_file(descriptor_data)
|
20
|
-
rescue TypeError => e
|
21
|
-
# Compatibility code: will be removed in the next major version.
|
22
|
-
require 'google/protobuf/descriptor_pb'
|
23
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
-
parsed.clear_dependency
|
25
|
-
serialized = parsed.class.encode(parsed)
|
26
|
-
file = pool.add_serialized_file(serialized)
|
27
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
-
imports = [
|
29
|
-
["google.api.MonitoredResource", "google/api/monitored_resource.proto"],
|
30
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
-
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
32
|
-
["google.rpc.Status", "google/rpc/status.proto"],
|
33
|
-
["google.rpc.context.AttributeContext.Resource", "google/rpc/context/attribute_context.proto"],
|
34
|
-
]
|
35
|
-
imports.each do |type_name, expected_filename|
|
36
|
-
import_file = pool.lookup(type_name).file_descriptor
|
37
|
-
if import_file.name != expected_filename
|
38
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
39
|
-
end
|
40
|
-
end
|
41
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
42
|
-
warn "This will become an error in the next major version."
|
43
|
-
end
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
44
18
|
|
45
19
|
module Google
|
46
20
|
module Events
|
@@ -11,29 +11,7 @@ require 'google/events/cloudevent_pb'
|
|
11
11
|
descriptor_data = "\n)google/events/cloud/audit/v1/events.proto\x12\x1cgoogle.events.cloud.audit.v1\x1a\'google/events/cloud/audit/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\xa8\x01\n\x14\x41uditLogWrittenEvent\x12\x38\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32*.google.events.cloud.audit.v1.LogEntryData:V\xb2\xf8\xd8,!google.cloud.audit.log.v1.written\xca\xf8\xd8,\x0bservicename\xca\xf8\xd8,\nmethodname\xca\xf8\xd8,\x0cresourcenameB\xb0\x03\xaa\x02%Google.Events.Protobuf.Cloud.Audit.V1\xca\x02\x1cGoogle\\Events\\Cloud\\Audit\\V1\xea\x02 Google::Events::Cloud::Audit::V1\xba\xf8\xd8,\x10\x43loud Audit Logs\xc2\xf8\xd8,^\n\x0bservicename\x12\x42The name of the service which triggered the Cloud Audit log entry.\x1a\x0bserviceName\xc2\xf8\xd8,\\\n\nmethodname\x12\x42The name of the method (RPC) triggering the Cloud Audit log entry.\x1a\nmethodName\xc2\xf8\xd8,h\n\x0cresourcename\x12JThe name of the resource that is the subject of the Cloud Audit log entry.\x1a\x0cresourceNameb\x06proto3"
|
12
12
|
|
13
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.audit.v1.LogEntryData", "google/events/cloud/audit/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
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
37
15
|
|
38
16
|
module Google
|
39
17
|
module Events
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/events/cloud/batch/v1/data.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/duration_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n\'google/events/cloud/batch/v1/data.proto\x12\x1cgoogle.events.cloud.batch.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb8\x01\n\x06Volume\x12\x30\n\x03nfs\x18\x01 \x01(\x0b\x32!.google.events.cloud.batch.v1.NFSH\x00\x12\x30\n\x03gcs\x18\x03 \x01(\x0b\x32!.google.events.cloud.batch.v1.GCSH\x00\x12\x15\n\x0b\x64\x65vice_name\x18\x06 \x01(\tH\x00\x12\x12\n\nmount_path\x18\x04 \x01(\t\x12\x15\n\rmount_options\x18\x05 \x03(\tB\x08\n\x06source\"*\n\x03NFS\x12\x0e\n\x06server\x18\x01 \x01(\t\x12\x13\n\x0bremote_path\x18\x02 \x01(\t\"\x1a\n\x03GCS\x12\x13\n\x0bremote_path\x18\x01 \x01(\t\"O\n\x0f\x43omputeResource\x12\x11\n\tcpu_milli\x18\x01 \x01(\x03\x12\x12\n\nmemory_mib\x18\x02 \x01(\x03\x12\x15\n\rboot_disk_mib\x18\x04 \x01(\x03\"\xe9\x01\n\x0bStatusEvent\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12.\n\nevent_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x0etask_execution\x18\x04 \x01(\x0b\x32+.google.events.cloud.batch.v1.TaskExecution\x12\x42\n\ntask_state\x18\x05 \x01(\x0e\x32..google.events.cloud.batch.v1.TaskStatus.State\"\"\n\rTaskExecution\x12\x11\n\texit_code\x18\x01 \x01(\x05\"\x7f\n\nTaskStatus\"q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0c\n\x08\x41SSIGNED\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tSUCCEEDED\x10\x05\x12\x0e\n\nUNEXECUTED\x10\x06\"\x81\x06\n\x08Runnable\x12\x45\n\tcontainer\x18\x01 \x01(\x0b\x32\x30.google.events.cloud.batch.v1.Runnable.ContainerH\x00\x12?\n\x06script\x18\x02 \x01(\x0b\x32-.google.events.cloud.batch.v1.Runnable.ScriptH\x00\x12\x41\n\x07\x62\x61rrier\x18\x06 \x01(\x0b\x32..google.events.cloud.batch.v1.Runnable.BarrierH\x00\x12\x1a\n\x12ignore_exit_status\x18\x03 \x01(\x08\x12\x12\n\nbackground\x18\x04 \x01(\x08\x12\x12\n\nalways_run\x18\x05 \x01(\x08\x12>\n\x0b\x65nvironment\x18\x07 \x01(\x0b\x32).google.events.cloud.batch.v1.Environment\x12*\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x42\n\x06labels\x18\t \x03(\x0b\x32\x32.google.events.cloud.batch.v1.Runnable.LabelsEntry\x1a\xaa\x01\n\tContainer\x12\x11\n\timage_uri\x18\x01 \x01(\t\x12\x10\n\x08\x63ommands\x18\x02 \x03(\t\x12\x12\n\nentrypoint\x18\x03 \x01(\t\x12\x0f\n\x07volumes\x18\x07 \x03(\t\x12\x0f\n\x07options\x18\x08 \x01(\t\x12\x1e\n\x16\x62lock_external_network\x18\t \x01(\x08\x12\x10\n\x08username\x18\n \x01(\t\x12\x10\n\x08password\x18\x0b \x01(\t\x1a\x33\n\x06Script\x12\x0e\n\x04path\x18\x01 \x01(\tH\x00\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x42\t\n\x07\x63ommand\x1a\x17\n\x07\x42\x61rrier\x12\x0c\n\x04name\x18\x01 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0c\n\nexecutable\"\xa3\x04\n\x08TaskSpec\x12\x39\n\trunnables\x18\x08 \x03(\x0b\x32&.google.events.cloud.batch.v1.Runnable\x12G\n\x10\x63ompute_resource\x18\x03 \x01(\x0b\x32-.google.events.cloud.batch.v1.ComputeResource\x12\x33\n\x10max_run_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0fmax_retry_count\x18\x05 \x01(\x05\x12I\n\x12lifecycle_policies\x18\t \x03(\x0b\x32-.google.events.cloud.batch.v1.LifecyclePolicy\x12N\n\x0c\x65nvironments\x18\x06 \x03(\x0b\x32\x38.google.events.cloud.batch.v1.TaskSpec.EnvironmentsEntry\x12\x35\n\x07volumes\x18\x07 \x03(\x0b\x32$.google.events.cloud.batch.v1.Volume\x12>\n\x0b\x65nvironment\x18\n \x01(\x0b\x32).google.events.cloud.batch.v1.Environment\x1a\x33\n\x11\x45nvironmentsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x98\x02\n\x0fLifecyclePolicy\x12\x44\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x34.google.events.cloud.batch.v1.LifecyclePolicy.Action\x12W\n\x10\x61\x63tion_condition\x18\x02 \x01(\x0b\x32=.google.events.cloud.batch.v1.LifecyclePolicy.ActionCondition\x1a%\n\x0f\x41\x63tionCondition\x12\x12\n\nexit_codes\x18\x01 \x03(\x05\"?\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\x0e\n\nRETRY_TASK\x10\x01\x12\r\n\tFAIL_TASK\x10\x02\"\xa4\x03\n\x0b\x45nvironment\x12K\n\tvariables\x18\x01 \x03(\x0b\x32\x38.google.events.cloud.batch.v1.Environment.VariablesEntry\x12X\n\x10secret_variables\x18\x02 \x03(\x0b\x32>.google.events.cloud.batch.v1.Environment.SecretVariablesEntry\x12P\n\x13\x65ncrypted_variables\x18\x03 \x01(\x0b\x32\x33.google.events.cloud.batch.v1.Environment.KMSEnvMap\x1a\x32\n\tKMSEnvMap\x12\x10\n\x08key_name\x18\x01 \x01(\t\x12\x13\n\x0b\x63ipher_text\x18\x02 \x01(\t\x1a\x30\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x36\n\x14SecretVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc9\x04\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03uid\x18\x02 \x01(\t\x12\x10\n\x08priority\x18\x03 \x01(\x03\x12<\n\x0btask_groups\x18\x04 \x03(\x0b\x32\'.google.events.cloud.batch.v1.TaskGroup\x12I\n\x11\x61llocation_policy\x18\x07 \x01(\x0b\x32..google.events.cloud.batch.v1.AllocationPolicy\x12=\n\x06labels\x18\x08 \x03(\x0b\x32-.google.events.cloud.batch.v1.Job.LabelsEntry\x12\x37\n\x06status\x18\t \x01(\x0b\x32\'.google.events.cloud.batch.v1.JobStatus\x12/\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x0blogs_policy\x18\r \x01(\x0b\x32(.google.events.cloud.batch.v1.LogsPolicy\x12\x44\n\rnotifications\x18\x0e \x03(\x0b\x32-.google.events.cloud.batch.v1.JobNotification\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb3\x01\n\nLogsPolicy\x12I\n\x0b\x64\x65stination\x18\x01 \x01(\x0e\x32\x34.google.events.cloud.batch.v1.LogsPolicy.Destination\x12\x11\n\tlogs_path\x18\x02 \x01(\t\"G\n\x0b\x44\x65stination\x12\x1b\n\x17\x44\x45STINATION_UNSPECIFIED\x10\x00\x12\x11\n\rCLOUD_LOGGING\x10\x01\x12\x08\n\x04PATH\x10\x02\"\xb8\x07\n\tJobStatus\x12<\n\x05state\x18\x01 \x01(\x0e\x32-.google.events.cloud.batch.v1.JobStatus.State\x12@\n\rstatus_events\x18\x02 \x03(\x0b\x32).google.events.cloud.batch.v1.StatusEvent\x12L\n\x0btask_groups\x18\x04 \x03(\x0b\x32\x37.google.events.cloud.batch.v1.JobStatus.TaskGroupsEntry\x12/\n\x0crun_duration\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\xdf\x01\n\x0eInstanceStatus\x12\x14\n\x0cmachine_type\x18\x01 \x01(\t\x12\\\n\x12provisioning_model\x18\x02 \x01(\x0e\x32@.google.events.cloud.batch.v1.AllocationPolicy.ProvisioningModel\x12\x11\n\ttask_pack\x18\x03 \x01(\x03\x12\x46\n\tboot_disk\x18\x04 \x01(\x0b\x32\x33.google.events.cloud.batch.v1.AllocationPolicy.Disk\x1a\xe0\x01\n\x0fTaskGroupStatus\x12S\n\x06\x63ounts\x18\x01 \x03(\x0b\x32\x43.google.events.cloud.batch.v1.JobStatus.TaskGroupStatus.CountsEntry\x12I\n\tinstances\x18\x02 \x03(\x0b\x32\x36.google.events.cloud.batch.v1.JobStatus.InstanceStatus\x1a-\n\x0b\x43ountsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1aj\n\x0fTaskGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x46\n\x05value\x18\x02 \x01(\x0b\x32\x37.google.events.cloud.batch.v1.JobStatus.TaskGroupStatus:\x02\x38\x01\"{\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\r\n\tSCHEDULED\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x18\n\x14\x44\x45LETION_IN_PROGRESS\x10\x06\"\x98\x03\n\x0fJobNotification\x12\x14\n\x0cpubsub_topic\x18\x01 \x01(\t\x12\x46\n\x07message\x18\x02 \x01(\x0b\x32\x35.google.events.cloud.batch.v1.JobNotification.Message\x1a\xd9\x01\n\x07Message\x12@\n\x04type\x18\x01 \x01(\x0e\x32\x32.google.events.cloud.batch.v1.JobNotification.Type\x12\x44\n\rnew_job_state\x18\x02 \x01(\x0e\x32-.google.events.cloud.batch.v1.JobStatus.State\x12\x46\n\x0enew_task_state\x18\x03 \x01(\x0e\x32..google.events.cloud.batch.v1.TaskStatus.State\"K\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11JOB_STATE_CHANGED\x10\x01\x12\x16\n\x12TASK_STATE_CHANGED\x10\x02\"\xc9\x0e\n\x10\x41llocationPolicy\x12O\n\x08location\x18\x01 \x01(\x0b\x32=.google.events.cloud.batch.v1.AllocationPolicy.LocationPolicy\x12Z\n\tinstances\x18\x08 \x03(\x0b\x32G.google.events.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate\x12\x45\n\x0fservice_account\x18\t \x01(\x0b\x32,.google.events.cloud.batch.v1.ServiceAccount\x12J\n\x06labels\x18\x06 \x03(\x0b\x32:.google.events.cloud.batch.v1.AllocationPolicy.LabelsEntry\x12M\n\x07network\x18\x07 \x01(\x0b\x32<.google.events.cloud.batch.v1.AllocationPolicy.NetworkPolicy\x12Q\n\tplacement\x18\n \x01(\x0b\x32>.google.events.cloud.batch.v1.AllocationPolicy.PlacementPolicy\x1a+\n\x0eLocationPolicy\x12\x19\n\x11\x61llowed_locations\x18\x01 \x03(\t\x1aq\n\x04\x44isk\x12\x0f\n\x05image\x18\x04 \x01(\tH\x00\x12\x12\n\x08snapshot\x18\x05 \x01(\tH\x00\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0f\n\x07size_gb\x18\x02 \x01(\x03\x12\x16\n\x0e\x64isk_interface\x18\x06 \x01(\tB\r\n\x0b\x64\x61ta_source\x1a\x91\x01\n\x0c\x41ttachedDisk\x12G\n\x08new_disk\x18\x01 \x01(\x0b\x32\x33.google.events.cloud.batch.v1.AllocationPolicy.DiskH\x00\x12\x17\n\rexisting_disk\x18\x02 \x01(\tH\x00\x12\x13\n\x0b\x64\x65vice_name\x18\x03 \x01(\tB\n\n\x08\x61ttached\x1aG\n\x0b\x41\x63\x63\x65lerator\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x12\x1b\n\x13install_gpu_drivers\x18\x03 \x01(\x08\x1a\x84\x03\n\x0eInstancePolicy\x12\x14\n\x0cmachine_type\x18\x02 \x01(\t\x12\x18\n\x10min_cpu_platform\x18\x03 \x01(\t\x12\\\n\x12provisioning_model\x18\x04 \x01(\x0e\x32@.google.events.cloud.batch.v1.AllocationPolicy.ProvisioningModel\x12P\n\x0c\x61\x63\x63\x65lerators\x18\x05 \x03(\x0b\x32:.google.events.cloud.batch.v1.AllocationPolicy.Accelerator\x12\x46\n\tboot_disk\x18\x08 \x01(\x0b\x32\x33.google.events.cloud.batch.v1.AllocationPolicy.Disk\x12J\n\x05\x64isks\x18\x06 \x03(\x0b\x32;.google.events.cloud.batch.v1.AllocationPolicy.AttachedDisk\x1a\xb8\x01\n\x18InstancePolicyOrTemplate\x12O\n\x06policy\x18\x01 \x01(\x0b\x32=.google.events.cloud.batch.v1.AllocationPolicy.InstancePolicyH\x00\x12\x1b\n\x11instance_template\x18\x02 \x01(\tH\x00\x12\x1b\n\x13install_gpu_drivers\x18\x03 \x01(\x08\x42\x11\n\x0fpolicy_template\x1aW\n\x10NetworkInterface\x12\x0f\n\x07network\x18\x01 \x01(\t\x12\x12\n\nsubnetwork\x18\x02 \x01(\t\x12\x1e\n\x16no_external_ip_address\x18\x03 \x01(\x08\x1al\n\rNetworkPolicy\x12[\n\x12network_interfaces\x18\x01 \x03(\x0b\x32?.google.events.cloud.batch.v1.AllocationPolicy.NetworkInterface\x1a<\n\x0fPlacementPolicy\x12\x13\n\x0b\x63ollocation\x18\x01 \x01(\t\x12\x14\n\x0cmax_distance\x18\x02 \x01(\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x11ProvisioningModel\x12\"\n\x1ePROVISIONING_MODEL_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x08\n\x04SPOT\x10\x02\x12\x0f\n\x0bPREEMPTIBLE\x10\x03\"\xc7\x03\n\tTaskGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x39\n\ttask_spec\x18\x03 \x01(\x0b\x32&.google.events.cloud.batch.v1.TaskSpec\x12\x12\n\ntask_count\x18\x04 \x01(\x03\x12\x13\n\x0bparallelism\x18\x05 \x01(\x03\x12S\n\x11scheduling_policy\x18\x06 \x01(\x0e\x32\x38.google.events.cloud.batch.v1.TaskGroup.SchedulingPolicy\x12\x44\n\x11task_environments\x18\t \x03(\x0b\x32).google.events.cloud.batch.v1.Environment\x12\x1b\n\x13task_count_per_node\x18\n \x01(\x03\x12\x1a\n\x12require_hosts_file\x18\x0b \x01(\x08\x12\x16\n\x0epermissive_ssh\x18\x0c \x01(\x08\"\\\n\x10SchedulingPolicy\x12!\n\x1dSCHEDULING_POLICY_UNSPECIFIED\x10\x00\x12\x17\n\x13\x41S_SOON_AS_POSSIBLE\x10\x01\x12\x0c\n\x08IN_ORDER\x10\x02\"/\n\x0eServiceAccount\x12\r\n\x05\x65mail\x18\x01 \x01(\t\x12\x0e\n\x06scopes\x18\x02 \x03(\t\"S\n\x0cJobEventData\x12\x37\n\x07payload\x18\x01 \x01(\x0b\x32!.google.events.cloud.batch.v1.JobH\x00\x88\x01\x01\x42\n\n\x08_payloadBj\xaa\x02%Google.Events.Protobuf.Cloud.Batch.V1\xca\x02\x1cGoogle\\Events\\Cloud\\Batch\\V1\xea\x02 Google::Events::Cloud::Batch::V1b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Events
|
18
|
+
module Cloud
|
19
|
+
module Batch
|
20
|
+
module V1
|
21
|
+
Volume = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.Volume").msgclass
|
22
|
+
NFS = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.NFS").msgclass
|
23
|
+
GCS = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.GCS").msgclass
|
24
|
+
ComputeResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.ComputeResource").msgclass
|
25
|
+
StatusEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.StatusEvent").msgclass
|
26
|
+
TaskExecution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.TaskExecution").msgclass
|
27
|
+
TaskStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.TaskStatus").msgclass
|
28
|
+
TaskStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.TaskStatus.State").enummodule
|
29
|
+
Runnable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.Runnable").msgclass
|
30
|
+
Runnable::Container = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.Runnable.Container").msgclass
|
31
|
+
Runnable::Script = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.Runnable.Script").msgclass
|
32
|
+
Runnable::Barrier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.Runnable.Barrier").msgclass
|
33
|
+
TaskSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.TaskSpec").msgclass
|
34
|
+
LifecyclePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.LifecyclePolicy").msgclass
|
35
|
+
LifecyclePolicy::ActionCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.LifecyclePolicy.ActionCondition").msgclass
|
36
|
+
LifecyclePolicy::Action = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.LifecyclePolicy.Action").enummodule
|
37
|
+
Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.Environment").msgclass
|
38
|
+
Environment::KMSEnvMap = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.Environment.KMSEnvMap").msgclass
|
39
|
+
Job = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.Job").msgclass
|
40
|
+
LogsPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.LogsPolicy").msgclass
|
41
|
+
LogsPolicy::Destination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.LogsPolicy.Destination").enummodule
|
42
|
+
JobStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.JobStatus").msgclass
|
43
|
+
JobStatus::InstanceStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.JobStatus.InstanceStatus").msgclass
|
44
|
+
JobStatus::TaskGroupStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.JobStatus.TaskGroupStatus").msgclass
|
45
|
+
JobStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.JobStatus.State").enummodule
|
46
|
+
JobNotification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.JobNotification").msgclass
|
47
|
+
JobNotification::Message = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.JobNotification.Message").msgclass
|
48
|
+
JobNotification::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.JobNotification.Type").enummodule
|
49
|
+
AllocationPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.AllocationPolicy").msgclass
|
50
|
+
AllocationPolicy::LocationPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.AllocationPolicy.LocationPolicy").msgclass
|
51
|
+
AllocationPolicy::Disk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.AllocationPolicy.Disk").msgclass
|
52
|
+
AllocationPolicy::AttachedDisk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.AllocationPolicy.AttachedDisk").msgclass
|
53
|
+
AllocationPolicy::Accelerator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.AllocationPolicy.Accelerator").msgclass
|
54
|
+
AllocationPolicy::InstancePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.AllocationPolicy.InstancePolicy").msgclass
|
55
|
+
AllocationPolicy::InstancePolicyOrTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate").msgclass
|
56
|
+
AllocationPolicy::NetworkInterface = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.AllocationPolicy.NetworkInterface").msgclass
|
57
|
+
AllocationPolicy::NetworkPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.AllocationPolicy.NetworkPolicy").msgclass
|
58
|
+
AllocationPolicy::PlacementPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.AllocationPolicy.PlacementPolicy").msgclass
|
59
|
+
AllocationPolicy::ProvisioningModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.AllocationPolicy.ProvisioningModel").enummodule
|
60
|
+
TaskGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.TaskGroup").msgclass
|
61
|
+
TaskGroup::SchedulingPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.TaskGroup.SchedulingPolicy").enummodule
|
62
|
+
ServiceAccount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.ServiceAccount").msgclass
|
63
|
+
JobEventData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.JobEventData").msgclass
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/events/cloud/batch/v1/events.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/events/cloud/batch/v1/data_pb'
|
8
|
+
require 'google/events/cloudevent_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n)google/events/cloud/batch/v1/events.proto\x12\x1cgoogle.events.cloud.batch.v1\x1a\'google/events/cloud/batch/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"{\n\x0fJobCreatedEvent\x12\x38\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32*.google.events.cloud.batch.v1.JobEventData:.\xb2\xf8\xd8,!google.cloud.batch.job.v1.created\xca\xf8\xd8,\x03job\"{\n\x0fJobDeletedEvent\x12\x38\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32*.google.events.cloud.batch.v1.JobEventData:.\xb2\xf8\xd8,!google.cloud.batch.job.v1.deleted\xca\xf8\xd8,\x03jobB\xb0\x01\xaa\x02%Google.Events.Protobuf.Cloud.Batch.V1\xca\x02\x1cGoogle\\Events\\Cloud\\Batch\\V1\xea\x02 Google::Events::Cloud::Batch::V1\xba\xf8\xd8,\x05\x42\x61tch\xc2\xf8\xd8,7\n\x03job\x12\x30The resource ID of the Job triggering the event.b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Events
|
18
|
+
module Cloud
|
19
|
+
module Batch
|
20
|
+
module V1
|
21
|
+
JobCreatedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.JobCreatedEvent").msgclass
|
22
|
+
JobDeletedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.events.cloud.batch.v1.JobDeletedEvent").msgclass
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -10,29 +10,7 @@ require 'google/protobuf/timestamp_pb'
|
|
10
10
|
descriptor_data = "\n;google/events/cloud/beyondcorp/appconnections/v1/data.proto\x12\x30google.events.cloud.beyondcorp.appconnections.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdd\x08\n\rAppConnection\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12[\n\x06labels\x18\x04 \x03(\x0b\x32K.google.events.cloud.beyondcorp.appconnections.v1.AppConnection.LabelsEntry\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\t\x12\x0b\n\x03uid\x18\x06 \x01(\t\x12R\n\x04type\x18\x07 \x01(\x0e\x32\x44.google.events.cloud.beyondcorp.appconnections.v1.AppConnection.Type\x12q\n\x14\x61pplication_endpoint\x18\x08 \x01(\x0b\x32S.google.events.cloud.beyondcorp.appconnections.v1.AppConnection.ApplicationEndpoint\x12\x12\n\nconnectors\x18\t \x03(\t\x12T\n\x05state\x18\n \x01(\x0e\x32\x45.google.events.cloud.beyondcorp.appconnections.v1.AppConnection.State\x12X\n\x07gateway\x18\x0b \x01(\x0b\x32G.google.events.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway\x1a\x31\n\x13\x41pplicationEndpoint\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\x1a\xe0\x01\n\x07Gateway\x12Z\n\x04type\x18\x02 \x01(\x0e\x32L.google.events.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway.Type\x12\x0b\n\x03uri\x18\x03 \x01(\t\x12\x14\n\x0cingress_port\x18\x04 \x01(\x05\x12\x13\n\x0b\x61pp_gateway\x18\x05 \x01(\t\x12\r\n\x05l7psc\x18\x06 \x01(\t\"2\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10GCP_REGIONAL_MIG\x10\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"+\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tTCP_PROXY\x10\x01\"_\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07\x43REATED\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x08\n\x04\x44OWN\x10\x05\"{\n\x16\x41ppConnectionEventData\x12U\n\x07payload\x18\x01 \x01(\x0b\x32?.google.events.cloud.beyondcorp.appconnections.v1.AppConnectionH\x00\x88\x01\x01\x42\n\n\x08_payloadB\xa7\x01\xaa\x02\x39Google.Events.Protobuf.Cloud.BeyondCorp.AppConnections.V1\xca\x02\x30Google\\Events\\Cloud\\BeyondCorp\\AppConnections\\V1\xea\x02\x35Google::Events::Cloud::BeyondCorp::AppConnections::V1b\x06proto3"
|
11
11
|
|
12
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
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
36
14
|
|
37
15
|
module Google
|
38
16
|
module Events
|
@@ -11,29 +11,7 @@ require 'google/events/cloudevent_pb'
|
|
11
11
|
descriptor_data = "\n=google/events/cloud/beyondcorp/appconnections/v1/events.proto\x12\x30google.events.cloud.beyondcorp.appconnections.v1\x1a;google/events/cloud/beyondcorp/appconnections/v1/data.proto\x1a\x1egoogle/events/cloudevent.proto\"\xcb\x01\n\x19\x41ppConnectionCreatedEvent\x12V\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32H.google.events.cloud.beyondcorp.appconnections.v1.AppConnectionEventData:V\xb2\xf8\xd8,?google.cloud.beyondcorp.appconnections.appConnection.v1.created\xca\xf8\xd8,\rappconnection\"\xcb\x01\n\x19\x41ppConnectionUpdatedEvent\x12V\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32H.google.events.cloud.beyondcorp.appconnections.v1.AppConnectionEventData:V\xb2\xf8\xd8,?google.cloud.beyondcorp.appconnections.appConnection.v1.updated\xca\xf8\xd8,\rappconnection\"\xcb\x01\n\x19\x41ppConnectionDeletedEvent\x12V\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32H.google.events.cloud.beyondcorp.appconnections.v1.AppConnectionEventData:V\xb2\xf8\xd8,?google.cloud.beyondcorp.appconnections.appConnection.v1.deleted\xca\xf8\xd8,\rappconnectionB\x95\x02\xaa\x02\x39Google.Events.Protobuf.Cloud.BeyondCorp.AppConnections.V1\xca\x02\x30Google\\Events\\Cloud\\BeyondCorp\\AppConnections\\V1\xea\x02\x35Google::Events::Cloud::BeyondCorp::AppConnections::V1\xba\xf8\xd8,\nBeyondCorp\xc2\xf8\xd8,Z\n\rappconnection\x12:The resource ID of the AppConnection triggering the event.\x1a\rappConnectionb\x06proto3"
|
12
12
|
|
13
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.beyondcorp.appconnections.v1.AppConnectionEventData", "google/events/cloud/beyondcorp/appconnections/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
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
37
15
|
|
38
16
|
module Google
|
39
17
|
module Events
|
@@ -10,29 +10,7 @@ require 'google/protobuf/timestamp_pb'
|
|
10
10
|
descriptor_data = "\n:google/events/cloud/beyondcorp/appconnectors/v1/data.proto\x12/google.events.cloud.beyondcorp.appconnectors.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdf\x01\n\x0cResourceInfo\x12\n\n\x02id\x18\x01 \x01(\t\x12M\n\x06status\x18\x02 \x01(\x0e\x32=.google.events.cloud.beyondcorp.appconnectors.v1.HealthStatus\x12(\n\x04time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12J\n\x03sub\x18\x05 \x03(\x0b\x32=.google.events.cloud.beyondcorp.appconnectors.v1.ResourceInfo\"\xcd\x06\n\x0c\x41ppConnector\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12Y\n\x06labels\x18\x04 \x03(\x0b\x32I.google.events.cloud.beyondcorp.appconnectors.v1.AppConnector.LabelsEntry\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\t\x12\x0b\n\x03uid\x18\x06 \x01(\t\x12R\n\x05state\x18\x07 \x01(\x0e\x32\x43.google.events.cloud.beyondcorp.appconnectors.v1.AppConnector.State\x12\x63\n\x0eprincipal_info\x18\x08 \x01(\x0b\x32K.google.events.cloud.beyondcorp.appconnectors.v1.AppConnector.PrincipalInfo\x12T\n\rresource_info\x18\x0b \x01(\x0b\x32=.google.events.cloud.beyondcorp.appconnectors.v1.ResourceInfo\x1a\xaf\x01\n\rPrincipalInfo\x12u\n\x0fservice_account\x18\x01 \x01(\x0b\x32Z.google.events.cloud.beyondcorp.appconnectors.v1.AppConnector.PrincipalInfo.ServiceAccountH\x00\x1a\x1f\n\x0eServiceAccount\x12\r\n\x05\x65mail\x18\x01 \x01(\tB\x06\n\x04type\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\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07\x43REATED\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x08\n\x04\x44OWN\x10\x05\"x\n\x15\x41ppConnectorEventData\x12S\n\x07payload\x18\x01 \x01(\x0b\x32=.google.events.cloud.beyondcorp.appconnectors.v1.AppConnectorH\x00\x88\x01\x01\x42\n\n\x08_payload*i\n\x0cHealthStatus\x12\x1d\n\x19HEALTH_STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07HEALTHY\x10\x01\x12\r\n\tUNHEALTHY\x10\x02\x12\x10\n\x0cUNRESPONSIVE\x10\x03\x12\x0c\n\x08\x44\x45GRADED\x10\x04\x42\xa4\x01\xaa\x02\x38Google.Events.Protobuf.Cloud.BeyondCorp.AppConnectors.V1\xca\x02/Google\\Events\\Cloud\\BeyondCorp\\AppConnectors\\V1\xea\x02\x34Google::Events::Cloud::BeyondCorp::AppConnectors::V1b\x06proto3"
|
11
11
|
|
12
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
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
36
14
|
|
37
15
|
module Google
|
38
16
|
module Events
|