Skip to content

Commit 40358b2

Browse files
AUTO GENERATED ELIXIR GOOGLEAPIS PROTOBUF (#730)
Co-authored-by: Hany Rock <rudebono@gmail.com>
1 parent 61e6bd1 commit 40358b2

File tree

5 files changed

+696
-0
lines changed

5 files changed

+696
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
defmodule Google.Apps.Events.Subscriptions.V1.Subscription.State do
2+
@moduledoc false
3+
4+
use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
5+
6+
field :STATE_UNSPECIFIED, 0
7+
field :ACTIVE, 1
8+
field :SUSPENDED, 2
9+
field :DELETED, 3
10+
end
11+
12+
defmodule Google.Apps.Events.Subscriptions.V1.Subscription.ErrorType do
13+
@moduledoc false
14+
15+
use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
16+
17+
field :ERROR_TYPE_UNSPECIFIED, 0
18+
field :USER_SCOPE_REVOKED, 1
19+
field :RESOURCE_DELETED, 2
20+
field :USER_AUTHORIZATION_FAILURE, 3
21+
field :ENDPOINT_PERMISSION_DENIED, 4
22+
field :ENDPOINT_NOT_FOUND, 6
23+
field :ENDPOINT_RESOURCE_EXHAUSTED, 7
24+
field :OTHER, 5
25+
end
26+
27+
defmodule Google.Apps.Events.Subscriptions.V1.Subscription do
28+
@moduledoc false
29+
30+
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
31+
32+
oneof :expiration, 0
33+
34+
field :expire_time, 13,
35+
type: Google.Protobuf.Timestamp,
36+
json_name: "expireTime",
37+
oneof: 0,
38+
deprecated: false
39+
40+
field :ttl, 14, type: Google.Protobuf.Duration, oneof: 0, deprecated: false
41+
field :name, 1, type: :string, deprecated: false
42+
field :uid, 2, type: :string, deprecated: false
43+
field :target_resource, 4, type: :string, json_name: "targetResource", deprecated: false
44+
field :event_types, 5, repeated: true, type: :string, json_name: "eventTypes", deprecated: false
45+
46+
field :payload_options, 6,
47+
type: Google.Apps.Events.Subscriptions.V1.PayloadOptions,
48+
json_name: "payloadOptions",
49+
deprecated: false
50+
51+
field :notification_endpoint, 7,
52+
type: Google.Apps.Events.Subscriptions.V1.NotificationEndpoint,
53+
json_name: "notificationEndpoint",
54+
deprecated: false
55+
56+
field :state, 8,
57+
type: Google.Apps.Events.Subscriptions.V1.Subscription.State,
58+
enum: true,
59+
deprecated: false
60+
61+
field :suspension_reason, 18,
62+
type: Google.Apps.Events.Subscriptions.V1.Subscription.ErrorType,
63+
json_name: "suspensionReason",
64+
enum: true,
65+
deprecated: false
66+
67+
field :authority, 10, type: :string, deprecated: false
68+
69+
field :create_time, 11,
70+
type: Google.Protobuf.Timestamp,
71+
json_name: "createTime",
72+
deprecated: false
73+
74+
field :update_time, 12,
75+
type: Google.Protobuf.Timestamp,
76+
json_name: "updateTime",
77+
deprecated: false
78+
79+
field :reconciling, 15, type: :bool, deprecated: false
80+
field :etag, 17, type: :string, deprecated: false
81+
end
82+
83+
defmodule Google.Apps.Events.Subscriptions.V1.PayloadOptions do
84+
@moduledoc false
85+
86+
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
87+
88+
field :include_resource, 1, type: :bool, json_name: "includeResource", deprecated: false
89+
field :field_mask, 2, type: Google.Protobuf.FieldMask, json_name: "fieldMask", deprecated: false
90+
end
91+
92+
defmodule Google.Apps.Events.Subscriptions.V1.NotificationEndpoint do
93+
@moduledoc false
94+
95+
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
96+
97+
oneof :endpoint, 0
98+
99+
field :pubsub_topic, 1, type: :string, json_name: "pubsubTopic", oneof: 0, deprecated: false
100+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
defmodule Google.Apps.Events.Subscriptions.V1.CreateSubscriptionRequest do
2+
@moduledoc false
3+
4+
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
5+
6+
field :subscription, 1,
7+
type: Google.Apps.Events.Subscriptions.V1.Subscription,
8+
deprecated: false
9+
10+
field :validate_only, 2, type: :bool, json_name: "validateOnly", deprecated: false
11+
end
12+
13+
defmodule Google.Apps.Events.Subscriptions.V1.DeleteSubscriptionRequest do
14+
@moduledoc false
15+
16+
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
17+
18+
field :name, 1, type: :string, deprecated: false
19+
field :validate_only, 2, type: :bool, json_name: "validateOnly", deprecated: false
20+
field :allow_missing, 3, type: :bool, json_name: "allowMissing", deprecated: false
21+
field :etag, 4, type: :string, deprecated: false
22+
end
23+
24+
defmodule Google.Apps.Events.Subscriptions.V1.GetSubscriptionRequest do
25+
@moduledoc false
26+
27+
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
28+
29+
field :name, 1, type: :string, deprecated: false
30+
end
31+
32+
defmodule Google.Apps.Events.Subscriptions.V1.UpdateSubscriptionRequest do
33+
@moduledoc false
34+
35+
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
36+
37+
field :subscription, 1,
38+
type: Google.Apps.Events.Subscriptions.V1.Subscription,
39+
deprecated: false
40+
41+
field :update_mask, 2,
42+
type: Google.Protobuf.FieldMask,
43+
json_name: "updateMask",
44+
deprecated: false
45+
46+
field :validate_only, 3, type: :bool, json_name: "validateOnly", deprecated: false
47+
end
48+
49+
defmodule Google.Apps.Events.Subscriptions.V1.ReactivateSubscriptionRequest do
50+
@moduledoc false
51+
52+
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
53+
54+
field :name, 1, type: :string, deprecated: false
55+
end
56+
57+
defmodule Google.Apps.Events.Subscriptions.V1.ListSubscriptionsRequest do
58+
@moduledoc false
59+
60+
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
61+
62+
field :page_size, 1, type: :int32, json_name: "pageSize", deprecated: false
63+
field :page_token, 2, type: :string, json_name: "pageToken", deprecated: false
64+
field :filter, 3, type: :string, deprecated: false
65+
end
66+
67+
defmodule Google.Apps.Events.Subscriptions.V1.ListSubscriptionsResponse do
68+
@moduledoc false
69+
70+
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
71+
72+
field :subscriptions, 1, repeated: true, type: Google.Apps.Events.Subscriptions.V1.Subscription
73+
field :next_page_token, 2, type: :string, json_name: "nextPageToken"
74+
end
75+
76+
defmodule Google.Apps.Events.Subscriptions.V1.UpdateSubscriptionMetadata do
77+
@moduledoc false
78+
79+
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
80+
end
81+
82+
defmodule Google.Apps.Events.Subscriptions.V1.CreateSubscriptionMetadata do
83+
@moduledoc false
84+
85+
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
86+
end
87+
88+
defmodule Google.Apps.Events.Subscriptions.V1.DeleteSubscriptionMetadata do
89+
@moduledoc false
90+
91+
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
92+
end
93+
94+
defmodule Google.Apps.Events.Subscriptions.V1.ReactivateSubscriptionMetadata do
95+
@moduledoc false
96+
97+
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
98+
end
99+
100+
defmodule Google.Apps.Events.Subscriptions.V1.SubscriptionsService.Service do
101+
@moduledoc false
102+
103+
use GRPC.Service,
104+
name: "google.apps.events.subscriptions.v1.SubscriptionsService",
105+
protoc_gen_elixir_version: "0.12.0"
106+
107+
rpc :CreateSubscription,
108+
Google.Apps.Events.Subscriptions.V1.CreateSubscriptionRequest,
109+
Google.Longrunning.Operation
110+
111+
rpc :DeleteSubscription,
112+
Google.Apps.Events.Subscriptions.V1.DeleteSubscriptionRequest,
113+
Google.Longrunning.Operation
114+
115+
rpc :GetSubscription,
116+
Google.Apps.Events.Subscriptions.V1.GetSubscriptionRequest,
117+
Google.Apps.Events.Subscriptions.V1.Subscription
118+
119+
rpc :ListSubscriptions,
120+
Google.Apps.Events.Subscriptions.V1.ListSubscriptionsRequest,
121+
Google.Apps.Events.Subscriptions.V1.ListSubscriptionsResponse
122+
123+
rpc :UpdateSubscription,
124+
Google.Apps.Events.Subscriptions.V1.UpdateSubscriptionRequest,
125+
Google.Longrunning.Operation
126+
127+
rpc :ReactivateSubscription,
128+
Google.Apps.Events.Subscriptions.V1.ReactivateSubscriptionRequest,
129+
Google.Longrunning.Operation
130+
end
131+
132+
defmodule Google.Apps.Events.Subscriptions.V1.SubscriptionsService.Stub do
133+
@moduledoc false
134+
135+
use GRPC.Stub, service: Google.Apps.Events.Subscriptions.V1.SubscriptionsService.Service
136+
end

0 commit comments

Comments
 (0)