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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32c9fe87b54867dbbc74c9d7ddd5f7dda8b3182a3e42dbb6bea92aeb609a924f
|
4
|
+
data.tar.gz: 2eed18d2cacbd62ff4073594c1ba1bcb443acbf219ff8326bfaf95d4a5537e31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc9c1b7d89de76178bd78fd400b092df8540c54a4663d1de4aad387f4806701b2ce385e3143b017dbce6a6e850941a7e4e577ffe0fdcc737e20332558a64e0a7
|
7
|
+
data.tar.gz: 53ae240405b3010aa9f63d87c151690e44a33f3bd5d1dd34101e424540bcd4ee293a8ff81d0a94f1222a93c97488ca07b92e9f2698bb5d14c9ae97efc68bfc4c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 0.3.0 (2023-06-13)
|
4
|
+
|
5
|
+
#### Features
|
6
|
+
|
7
|
+
* Added events for video/transcoder/v1 ([#32](https://github.com/googleapis/google-cloudevents-ruby/issues/32))
|
8
|
+
* Uses binary protobuf definitions for better forward compatibility
|
9
|
+
|
3
10
|
### 0.2.0 (2023-05-22)
|
4
11
|
|
5
12
|
#### Features
|
@@ -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/apigateway/v1/data.proto
|
3
4
|
|
@@ -5,85 +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 :update_time, :message, 3, "google.protobuf.Timestamp"
|
31
|
-
map :labels, :string, :string, 4
|
32
|
-
optional :display_name, :string, 5
|
33
|
-
optional :gateway_service_account, :string, 14
|
34
|
-
optional :service_config_id, :string, 12
|
35
|
-
optional :state, :enum, 8, "google.events.cloud.apigateway.v1.ApiConfig.State"
|
36
|
-
repeated :openapi_documents, :message, 9, "google.events.cloud.apigateway.v1.ApiConfig.OpenApiDocument"
|
37
|
-
repeated :grpc_services, :message, 10, "google.events.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition"
|
38
|
-
repeated :managed_service_configs, :message, 11, "google.events.cloud.apigateway.v1.ApiConfig.File"
|
39
|
-
end
|
40
|
-
add_message "google.events.cloud.apigateway.v1.ApiConfig.File" do
|
41
|
-
optional :path, :string, 1
|
42
|
-
optional :contents, :bytes, 2
|
43
|
-
end
|
44
|
-
add_message "google.events.cloud.apigateway.v1.ApiConfig.OpenApiDocument" do
|
45
|
-
optional :document, :message, 1, "google.events.cloud.apigateway.v1.ApiConfig.File"
|
46
|
-
end
|
47
|
-
add_message "google.events.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition" do
|
48
|
-
repeated :source, :message, 2, "google.events.cloud.apigateway.v1.ApiConfig.File"
|
49
|
-
end
|
50
|
-
add_enum "google.events.cloud.apigateway.v1.ApiConfig.State" do
|
51
|
-
value :STATE_UNSPECIFIED, 0
|
52
|
-
value :CREATING, 1
|
53
|
-
value :ACTIVE, 2
|
54
|
-
value :FAILED, 3
|
55
|
-
value :DELETING, 4
|
56
|
-
value :UPDATING, 5
|
57
|
-
value :ACTIVATING, 6
|
58
|
-
end
|
59
|
-
add_message "google.events.cloud.apigateway.v1.Gateway" do
|
60
|
-
optional :name, :string, 1
|
61
|
-
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
62
|
-
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
63
|
-
map :labels, :string, :string, 4
|
64
|
-
optional :display_name, :string, 5
|
65
|
-
optional :api_config, :string, 6
|
66
|
-
optional :state, :enum, 7, "google.events.cloud.apigateway.v1.Gateway.State"
|
67
|
-
optional :default_hostname, :string, 9
|
68
|
-
end
|
69
|
-
add_enum "google.events.cloud.apigateway.v1.Gateway.State" do
|
70
|
-
value :STATE_UNSPECIFIED, 0
|
71
|
-
value :CREATING, 1
|
72
|
-
value :ACTIVE, 2
|
73
|
-
value :FAILED, 3
|
74
|
-
value :DELETING, 4
|
75
|
-
value :UPDATING, 5
|
76
|
-
end
|
77
|
-
add_message "google.events.cloud.apigateway.v1.GatewayEventData" do
|
78
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.apigateway.v1.Gateway"
|
79
|
-
end
|
80
|
-
add_message "google.events.cloud.apigateway.v1.ApiConfigEventData" do
|
81
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.apigateway.v1.ApiConfig"
|
82
|
-
end
|
83
|
-
add_message "google.events.cloud.apigateway.v1.ApiEventData" do
|
84
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.apigateway.v1.Api"
|
9
|
+
|
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
|
+
|
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}"
|
85
31
|
end
|
86
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."
|
87
35
|
end
|
88
36
|
|
89
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/apigateway/v1/events.proto
|
3
4
|
|
@@ -6,36 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/events/cloud/apigateway/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.apigateway.v1.ApiConfigUpdatedEvent" do
|
33
|
-
optional :data, :message, 1, "google.events.cloud.apigateway.v1.ApiConfigEventData"
|
34
|
-
end
|
35
|
-
add_message "google.events.cloud.apigateway.v1.ApiConfigDeletedEvent" do
|
36
|
-
optional :data, :message, 1, "google.events.cloud.apigateway.v1.ApiConfigEventData"
|
10
|
+
|
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
|
+
|
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}"
|
37
32
|
end
|
38
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."
|
39
36
|
end
|
40
37
|
|
41
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/apigeeregistry/v1/data.proto
|
3
4
|
|
@@ -5,98 +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
|
-
end
|
31
|
-
add_message "google.events.cloud.apigeeregistry.v1.Api" do
|
32
|
-
optional :name, :string, 1
|
33
|
-
optional :display_name, :string, 2
|
34
|
-
optional :description, :string, 3
|
35
|
-
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
36
|
-
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
37
|
-
optional :availability, :string, 6
|
38
|
-
optional :recommended_version, :string, 7
|
39
|
-
optional :recommended_deployment, :string, 8
|
40
|
-
map :labels, :string, :string, 9
|
41
|
-
map :annotations, :string, :string, 10
|
42
|
-
end
|
43
|
-
add_message "google.events.cloud.apigeeregistry.v1.ApiVersion" do
|
44
|
-
optional :name, :string, 1
|
45
|
-
optional :display_name, :string, 2
|
46
|
-
optional :description, :string, 3
|
47
|
-
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
48
|
-
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
49
|
-
optional :state, :string, 6
|
50
|
-
map :labels, :string, :string, 7
|
51
|
-
map :annotations, :string, :string, 8
|
52
|
-
end
|
53
|
-
add_message "google.events.cloud.apigeeregistry.v1.ApiSpec" do
|
54
|
-
optional :name, :string, 1
|
55
|
-
optional :filename, :string, 2
|
56
|
-
optional :description, :string, 3
|
57
|
-
optional :revision_id, :string, 4
|
58
|
-
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
59
|
-
optional :revision_create_time, :message, 6, "google.protobuf.Timestamp"
|
60
|
-
optional :revision_update_time, :message, 7, "google.protobuf.Timestamp"
|
61
|
-
optional :mime_type, :string, 8
|
62
|
-
optional :size_bytes, :int32, 9
|
63
|
-
optional :hash, :string, 10
|
64
|
-
optional :source_uri, :string, 11
|
65
|
-
map :labels, :string, :string, 14
|
66
|
-
map :annotations, :string, :string, 15
|
67
|
-
end
|
68
|
-
add_message "google.events.cloud.apigeeregistry.v1.ApiDeployment" do
|
69
|
-
optional :name, :string, 1
|
70
|
-
optional :display_name, :string, 2
|
71
|
-
optional :description, :string, 3
|
72
|
-
optional :revision_id, :string, 4
|
73
|
-
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
74
|
-
optional :revision_create_time, :message, 6, "google.protobuf.Timestamp"
|
75
|
-
optional :revision_update_time, :message, 7, "google.protobuf.Timestamp"
|
76
|
-
optional :api_spec_revision, :string, 8
|
77
|
-
optional :endpoint_uri, :string, 9
|
78
|
-
optional :external_channel_uri, :string, 10
|
79
|
-
optional :intended_audience, :string, 11
|
80
|
-
optional :access_guidance, :string, 12
|
81
|
-
map :labels, :string, :string, 14
|
82
|
-
map :annotations, :string, :string, 15
|
83
|
-
end
|
84
|
-
add_message "google.events.cloud.apigeeregistry.v1.ApiVersionEventData" do
|
85
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.apigeeregistry.v1.ApiVersion"
|
86
|
-
end
|
87
|
-
add_message "google.events.cloud.apigeeregistry.v1.InstanceEventData" do
|
88
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.apigeeregistry.v1.Instance"
|
89
|
-
end
|
90
|
-
add_message "google.events.cloud.apigeeregistry.v1.ApiSpecEventData" do
|
91
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.apigeeregistry.v1.ApiSpec"
|
92
|
-
end
|
93
|
-
add_message "google.events.cloud.apigeeregistry.v1.ApiDeploymentEventData" do
|
94
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.apigeeregistry.v1.ApiDeployment"
|
95
|
-
end
|
96
|
-
add_message "google.events.cloud.apigeeregistry.v1.ApiEventData" do
|
97
|
-
proto3_optional :payload, :message, 1, "google.events.cloud.apigeeregistry.v1.Api"
|
9
|
+
|
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
|
+
|
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}"
|
98
31
|
end
|
99
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."
|
100
35
|
end
|
101
36
|
|
102
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/apigeeregistry/v1/events.proto
|
3
4
|
|
@@ -6,51 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/events/cloud/apigeeregistry/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.apigeeregistry.v1.ApiVersionDeletedEvent" do
|
33
|
-
optional :data, :message, 1, "google.events.cloud.apigeeregistry.v1.ApiVersionEventData"
|
34
|
-
end
|
35
|
-
add_message "google.events.cloud.apigeeregistry.v1.ApiSpecCreatedEvent" do
|
36
|
-
optional :data, :message, 1, "google.events.cloud.apigeeregistry.v1.ApiSpecEventData"
|
37
|
-
end
|
38
|
-
add_message "google.events.cloud.apigeeregistry.v1.ApiSpecUpdatedEvent" do
|
39
|
-
optional :data, :message, 1, "google.events.cloud.apigeeregistry.v1.ApiSpecEventData"
|
40
|
-
end
|
41
|
-
add_message "google.events.cloud.apigeeregistry.v1.ApiSpecDeletedEvent" do
|
42
|
-
optional :data, :message, 1, "google.events.cloud.apigeeregistry.v1.ApiSpecEventData"
|
43
|
-
end
|
44
|
-
add_message "google.events.cloud.apigeeregistry.v1.ApiDeploymentCreatedEvent" do
|
45
|
-
optional :data, :message, 1, "google.events.cloud.apigeeregistry.v1.ApiDeploymentEventData"
|
46
|
-
end
|
47
|
-
add_message "google.events.cloud.apigeeregistry.v1.ApiDeploymentUpdatedEvent" do
|
48
|
-
optional :data, :message, 1, "google.events.cloud.apigeeregistry.v1.ApiDeploymentEventData"
|
49
|
-
end
|
50
|
-
add_message "google.events.cloud.apigeeregistry.v1.ApiDeploymentDeletedEvent" do
|
51
|
-
optional :data, :message, 1, "google.events.cloud.apigeeregistry.v1.ApiDeploymentEventData"
|
10
|
+
|
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
|
+
|
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}"
|
52
32
|
end
|
53
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."
|
54
36
|
end
|
55
37
|
|
56
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/audit/v1/data.proto
|
3
4
|
|
@@ -9,99 +10,36 @@ require 'google/protobuf/timestamp_pb'
|
|
9
10
|
require 'google/rpc/context/attribute_context_pb'
|
10
11
|
require 'google/rpc/status_pb'
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
optional :resource_location, :message, 20, "google.events.cloud.audit.v1.ResourceLocation"
|
39
|
-
optional :resource_original_state, :message, 19, "google.protobuf.Struct"
|
40
|
-
optional :num_response_items, :int64, 12
|
41
|
-
optional :status, :message, 2, "google.rpc.Status"
|
42
|
-
optional :authentication_info, :message, 3, "google.events.cloud.audit.v1.AuthenticationInfo"
|
43
|
-
repeated :authorization_info, :message, 9, "google.events.cloud.audit.v1.AuthorizationInfo"
|
44
|
-
optional :request_metadata, :message, 4, "google.events.cloud.audit.v1.RequestMetadata"
|
45
|
-
optional :request, :message, 16, "google.protobuf.Struct"
|
46
|
-
optional :response, :message, 17, "google.protobuf.Struct"
|
47
|
-
optional :metadata, :message, 18, "google.protobuf.Struct"
|
48
|
-
optional :service_data, :message, 15, "google.protobuf.Struct"
|
49
|
-
end
|
50
|
-
add_message "google.events.cloud.audit.v1.AuthenticationInfo" do
|
51
|
-
optional :principal_email, :string, 1
|
52
|
-
optional :authority_selector, :string, 2
|
53
|
-
optional :third_party_principal, :message, 4, "google.protobuf.Struct"
|
54
|
-
optional :service_account_key_name, :string, 5
|
55
|
-
repeated :service_account_delegation_info, :message, 6, "google.events.cloud.audit.v1.ServiceAccountDelegationInfo"
|
56
|
-
optional :principal_subject, :string, 8
|
57
|
-
end
|
58
|
-
add_message "google.events.cloud.audit.v1.AuthorizationInfo" do
|
59
|
-
optional :resource, :string, 1
|
60
|
-
optional :permission, :string, 2
|
61
|
-
optional :granted, :bool, 3
|
62
|
-
optional :resource_attributes, :message, 5, "google.rpc.context.AttributeContext.Resource"
|
63
|
-
end
|
64
|
-
add_message "google.events.cloud.audit.v1.RequestMetadata" do
|
65
|
-
optional :caller_ip, :string, 1
|
66
|
-
optional :caller_supplied_user_agent, :string, 2
|
67
|
-
optional :caller_network, :string, 3
|
68
|
-
optional :request_attributes, :message, 7, "google.rpc.context.AttributeContext.Request"
|
69
|
-
optional :destination_attributes, :message, 8, "google.rpc.context.AttributeContext.Peer"
|
70
|
-
end
|
71
|
-
add_message "google.events.cloud.audit.v1.ResourceLocation" do
|
72
|
-
repeated :current_locations, :string, 1
|
73
|
-
repeated :original_locations, :string, 2
|
74
|
-
end
|
75
|
-
add_message "google.events.cloud.audit.v1.ServiceAccountDelegationInfo" do
|
76
|
-
oneof :Authority do
|
77
|
-
optional :first_party_principal, :message, 1, "google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal"
|
78
|
-
optional :third_party_principal, :message, 2, "google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal"
|
79
|
-
end
|
80
|
-
end
|
81
|
-
add_message "google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal" do
|
82
|
-
optional :principal_email, :string, 1
|
83
|
-
optional :service_metadata, :message, 2, "google.protobuf.Struct"
|
84
|
-
end
|
85
|
-
add_message "google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal" do
|
86
|
-
optional :third_party_claims, :message, 1, "google.protobuf.Struct"
|
87
|
-
end
|
88
|
-
add_message "google.events.cloud.audit.v1.LogSplit" do
|
89
|
-
optional :uid, :string, 1
|
90
|
-
optional :index, :int32, 2
|
91
|
-
optional :total_splits, :int32, 3
|
92
|
-
end
|
93
|
-
add_enum "google.events.cloud.audit.v1.LogSeverity" do
|
94
|
-
value :DEFAULT, 0
|
95
|
-
value :DEBUG, 100
|
96
|
-
value :INFO, 200
|
97
|
-
value :NOTICE, 300
|
98
|
-
value :WARNING, 400
|
99
|
-
value :ERROR, 500
|
100
|
-
value :CRITICAL, 600
|
101
|
-
value :ALERT, 700
|
102
|
-
value :EMERGENCY, 800
|
13
|
+
|
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
|
+
|
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}"
|
103
39
|
end
|
104
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."
|
105
43
|
end
|
106
44
|
|
107
45
|
module Google
|