google-cloud-eventarc-v1 0.1.4 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/lib/google/cloud/eventarc/v1/channel_connection_pb.rb +31 -0
- data/lib/google/cloud/eventarc/v1/channel_pb.rb +42 -0
- data/lib/google/cloud/eventarc/v1/discovery_pb.rb +41 -0
- data/lib/google/cloud/eventarc/v1/eventarc/client.rb +1140 -8
- data/lib/google/cloud/eventarc/v1/eventarc/paths.rb +76 -0
- data/lib/google/cloud/eventarc/v1/eventarc_pb.rb +84 -1
- data/lib/google/cloud/eventarc/v1/eventarc_services_pb.rb +22 -0
- data/lib/google/cloud/eventarc/v1/trigger_pb.rb +14 -2
- data/lib/google/cloud/eventarc/v1/version.rb +1 -1
- data/lib/google/cloud/eventarc/v1.rb +2 -0
- data/proto_docs/google/cloud/eventarc/v1/channel.rb +94 -0
- data/proto_docs/google/cloud/eventarc/v1/channel_connection.rb +59 -0
- data/proto_docs/google/cloud/eventarc/v1/discovery.rb +89 -0
- data/proto_docs/google/cloud/eventarc/v1/eventarc.rb +234 -9
- data/proto_docs/google/cloud/eventarc/v1/trigger.rb +78 -35
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +9 -3
@@ -24,6 +24,63 @@ module Google
|
|
24
24
|
module Eventarc
|
25
25
|
# Path helper methods for the Eventarc API.
|
26
26
|
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Channel resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/channels/{channel}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param channel [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def channel_path project:, location:, channel:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/channels/#{channel}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified ChannelConnection resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}/channelConnections/{channel_connection}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
# @param channel_connection [String]
|
56
|
+
#
|
57
|
+
# @return [::String]
|
58
|
+
def channel_connection_path project:, location:, channel_connection:
|
59
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
60
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
61
|
+
|
62
|
+
"projects/#{project}/locations/#{location}/channelConnections/#{channel_connection}"
|
63
|
+
end
|
64
|
+
|
65
|
+
##
|
66
|
+
# Create a fully-qualified CloudFunction resource string.
|
67
|
+
#
|
68
|
+
# The resource will be in the following format:
|
69
|
+
#
|
70
|
+
# `projects/{project}/locations/{location}/functions/{function}`
|
71
|
+
#
|
72
|
+
# @param project [String]
|
73
|
+
# @param location [String]
|
74
|
+
# @param function [String]
|
75
|
+
#
|
76
|
+
# @return [::String]
|
77
|
+
def cloud_function_path project:, location:, function:
|
78
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
79
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
80
|
+
|
81
|
+
"projects/#{project}/locations/#{location}/functions/#{function}"
|
82
|
+
end
|
83
|
+
|
27
84
|
##
|
28
85
|
# Create a fully-qualified Location resource string.
|
29
86
|
#
|
@@ -41,6 +98,25 @@ module Google
|
|
41
98
|
"projects/#{project}/locations/#{location}"
|
42
99
|
end
|
43
100
|
|
101
|
+
##
|
102
|
+
# Create a fully-qualified Provider resource string.
|
103
|
+
#
|
104
|
+
# The resource will be in the following format:
|
105
|
+
#
|
106
|
+
# `projects/{project}/locations/{location}/providers/{provider}`
|
107
|
+
#
|
108
|
+
# @param project [String]
|
109
|
+
# @param location [String]
|
110
|
+
# @param provider [String]
|
111
|
+
#
|
112
|
+
# @return [::String]
|
113
|
+
def provider_path project:, location:, provider:
|
114
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
115
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
116
|
+
|
117
|
+
"projects/#{project}/locations/#{location}/providers/#{provider}"
|
118
|
+
end
|
119
|
+
|
44
120
|
##
|
45
121
|
# Create a fully-qualified ServiceAccount resource string.
|
46
122
|
#
|
@@ -1,15 +1,19 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/eventarc/v1/eventarc.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
7
9
|
require 'google/api/resource_pb'
|
10
|
+
require 'google/cloud/eventarc/v1/channel_pb'
|
11
|
+
require 'google/cloud/eventarc/v1/channel_connection_pb'
|
12
|
+
require 'google/cloud/eventarc/v1/discovery_pb'
|
8
13
|
require 'google/cloud/eventarc/v1/trigger_pb'
|
9
14
|
require 'google/longrunning/operations_pb'
|
10
15
|
require 'google/protobuf/field_mask_pb'
|
11
16
|
require 'google/protobuf/timestamp_pb'
|
12
|
-
require 'google/protobuf'
|
13
17
|
|
14
18
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
19
|
add_file("google/cloud/eventarc/v1/eventarc.proto", :syntax => :proto3) do
|
@@ -45,6 +49,71 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
45
49
|
optional :allow_missing, :bool, 3
|
46
50
|
optional :validate_only, :bool, 4
|
47
51
|
end
|
52
|
+
add_message "google.cloud.eventarc.v1.GetChannelRequest" do
|
53
|
+
optional :name, :string, 1
|
54
|
+
end
|
55
|
+
add_message "google.cloud.eventarc.v1.ListChannelsRequest" do
|
56
|
+
optional :parent, :string, 1
|
57
|
+
optional :page_size, :int32, 2
|
58
|
+
optional :page_token, :string, 3
|
59
|
+
optional :order_by, :string, 4
|
60
|
+
end
|
61
|
+
add_message "google.cloud.eventarc.v1.ListChannelsResponse" do
|
62
|
+
repeated :channels, :message, 1, "google.cloud.eventarc.v1.Channel"
|
63
|
+
optional :next_page_token, :string, 2
|
64
|
+
repeated :unreachable, :string, 3
|
65
|
+
end
|
66
|
+
add_message "google.cloud.eventarc.v1.CreateChannelRequest" do
|
67
|
+
optional :parent, :string, 1
|
68
|
+
optional :channel, :message, 2, "google.cloud.eventarc.v1.Channel"
|
69
|
+
optional :channel_id, :string, 3
|
70
|
+
optional :validate_only, :bool, 4
|
71
|
+
end
|
72
|
+
add_message "google.cloud.eventarc.v1.UpdateChannelRequest" do
|
73
|
+
optional :channel, :message, 1, "google.cloud.eventarc.v1.Channel"
|
74
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
75
|
+
optional :validate_only, :bool, 3
|
76
|
+
end
|
77
|
+
add_message "google.cloud.eventarc.v1.DeleteChannelRequest" do
|
78
|
+
optional :name, :string, 1
|
79
|
+
optional :validate_only, :bool, 2
|
80
|
+
end
|
81
|
+
add_message "google.cloud.eventarc.v1.GetProviderRequest" do
|
82
|
+
optional :name, :string, 1
|
83
|
+
end
|
84
|
+
add_message "google.cloud.eventarc.v1.ListProvidersRequest" do
|
85
|
+
optional :parent, :string, 1
|
86
|
+
optional :page_size, :int32, 2
|
87
|
+
optional :page_token, :string, 3
|
88
|
+
optional :order_by, :string, 4
|
89
|
+
optional :filter, :string, 5
|
90
|
+
end
|
91
|
+
add_message "google.cloud.eventarc.v1.ListProvidersResponse" do
|
92
|
+
repeated :providers, :message, 1, "google.cloud.eventarc.v1.Provider"
|
93
|
+
optional :next_page_token, :string, 2
|
94
|
+
repeated :unreachable, :string, 3
|
95
|
+
end
|
96
|
+
add_message "google.cloud.eventarc.v1.GetChannelConnectionRequest" do
|
97
|
+
optional :name, :string, 1
|
98
|
+
end
|
99
|
+
add_message "google.cloud.eventarc.v1.ListChannelConnectionsRequest" do
|
100
|
+
optional :parent, :string, 1
|
101
|
+
optional :page_size, :int32, 2
|
102
|
+
optional :page_token, :string, 3
|
103
|
+
end
|
104
|
+
add_message "google.cloud.eventarc.v1.ListChannelConnectionsResponse" do
|
105
|
+
repeated :channel_connections, :message, 1, "google.cloud.eventarc.v1.ChannelConnection"
|
106
|
+
optional :next_page_token, :string, 2
|
107
|
+
repeated :unreachable, :string, 3
|
108
|
+
end
|
109
|
+
add_message "google.cloud.eventarc.v1.CreateChannelConnectionRequest" do
|
110
|
+
optional :parent, :string, 1
|
111
|
+
optional :channel_connection, :message, 2, "google.cloud.eventarc.v1.ChannelConnection"
|
112
|
+
optional :channel_connection_id, :string, 3
|
113
|
+
end
|
114
|
+
add_message "google.cloud.eventarc.v1.DeleteChannelConnectionRequest" do
|
115
|
+
optional :name, :string, 1
|
116
|
+
end
|
48
117
|
add_message "google.cloud.eventarc.v1.OperationMetadata" do
|
49
118
|
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
50
119
|
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
@@ -67,6 +136,20 @@ module Google
|
|
67
136
|
CreateTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CreateTriggerRequest").msgclass
|
68
137
|
UpdateTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.UpdateTriggerRequest").msgclass
|
69
138
|
DeleteTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.DeleteTriggerRequest").msgclass
|
139
|
+
GetChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.GetChannelRequest").msgclass
|
140
|
+
ListChannelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelsRequest").msgclass
|
141
|
+
ListChannelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelsResponse").msgclass
|
142
|
+
CreateChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CreateChannelRequest").msgclass
|
143
|
+
UpdateChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.UpdateChannelRequest").msgclass
|
144
|
+
DeleteChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.DeleteChannelRequest").msgclass
|
145
|
+
GetProviderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.GetProviderRequest").msgclass
|
146
|
+
ListProvidersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListProvidersRequest").msgclass
|
147
|
+
ListProvidersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListProvidersResponse").msgclass
|
148
|
+
GetChannelConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.GetChannelConnectionRequest").msgclass
|
149
|
+
ListChannelConnectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelConnectionsRequest").msgclass
|
150
|
+
ListChannelConnectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelConnectionsResponse").msgclass
|
151
|
+
CreateChannelConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CreateChannelConnectionRequest").msgclass
|
152
|
+
DeleteChannelConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.DeleteChannelConnectionRequest").msgclass
|
70
153
|
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.OperationMetadata").msgclass
|
71
154
|
end
|
72
155
|
end
|
@@ -44,6 +44,28 @@ module Google
|
|
44
44
|
rpc :UpdateTrigger, ::Google::Cloud::Eventarc::V1::UpdateTriggerRequest, ::Google::Longrunning::Operation
|
45
45
|
# Delete a single trigger.
|
46
46
|
rpc :DeleteTrigger, ::Google::Cloud::Eventarc::V1::DeleteTriggerRequest, ::Google::Longrunning::Operation
|
47
|
+
# Get a single Channel.
|
48
|
+
rpc :GetChannel, ::Google::Cloud::Eventarc::V1::GetChannelRequest, ::Google::Cloud::Eventarc::V1::Channel
|
49
|
+
# List channels.
|
50
|
+
rpc :ListChannels, ::Google::Cloud::Eventarc::V1::ListChannelsRequest, ::Google::Cloud::Eventarc::V1::ListChannelsResponse
|
51
|
+
# Create a new channel in a particular project and location.
|
52
|
+
rpc :CreateChannel, ::Google::Cloud::Eventarc::V1::CreateChannelRequest, ::Google::Longrunning::Operation
|
53
|
+
# Update a single channel.
|
54
|
+
rpc :UpdateChannel, ::Google::Cloud::Eventarc::V1::UpdateChannelRequest, ::Google::Longrunning::Operation
|
55
|
+
# Delete a single channel.
|
56
|
+
rpc :DeleteChannel, ::Google::Cloud::Eventarc::V1::DeleteChannelRequest, ::Google::Longrunning::Operation
|
57
|
+
# Get a single Provider.
|
58
|
+
rpc :GetProvider, ::Google::Cloud::Eventarc::V1::GetProviderRequest, ::Google::Cloud::Eventarc::V1::Provider
|
59
|
+
# List providers.
|
60
|
+
rpc :ListProviders, ::Google::Cloud::Eventarc::V1::ListProvidersRequest, ::Google::Cloud::Eventarc::V1::ListProvidersResponse
|
61
|
+
# Get a single ChannelConnection.
|
62
|
+
rpc :GetChannelConnection, ::Google::Cloud::Eventarc::V1::GetChannelConnectionRequest, ::Google::Cloud::Eventarc::V1::ChannelConnection
|
63
|
+
# List channel connections.
|
64
|
+
rpc :ListChannelConnections, ::Google::Cloud::Eventarc::V1::ListChannelConnectionsRequest, ::Google::Cloud::Eventarc::V1::ListChannelConnectionsResponse
|
65
|
+
# Create a new ChannelConnection in a particular project and location.
|
66
|
+
rpc :CreateChannelConnection, ::Google::Cloud::Eventarc::V1::CreateChannelConnectionRequest, ::Google::Longrunning::Operation
|
67
|
+
# Delete a single ChannelConnection.
|
68
|
+
rpc :DeleteChannelConnection, ::Google::Cloud::Eventarc::V1::DeleteChannelConnectionRequest, ::Google::Longrunning::Operation
|
47
69
|
end
|
48
70
|
|
49
71
|
Stub = Service.rpc_stub_class
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/eventarc/v1/trigger.proto
|
3
3
|
|
4
|
-
require 'google/
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
5
6
|
require 'google/api/field_behavior_pb'
|
6
7
|
require 'google/api/resource_pb'
|
7
8
|
require 'google/protobuf/timestamp_pb'
|
8
|
-
require 'google/protobuf'
|
9
9
|
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/eventarc/v1/trigger.proto", :syntax => :proto3) do
|
@@ -19,15 +19,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
19
19
|
optional :destination, :message, 10, "google.cloud.eventarc.v1.Destination"
|
20
20
|
optional :transport, :message, 11, "google.cloud.eventarc.v1.Transport"
|
21
21
|
map :labels, :string, :string, 12
|
22
|
+
optional :channel, :string, 13
|
22
23
|
optional :etag, :string, 99
|
23
24
|
end
|
24
25
|
add_message "google.cloud.eventarc.v1.EventFilter" do
|
25
26
|
optional :attribute, :string, 1
|
26
27
|
optional :value, :string, 2
|
28
|
+
optional :operator, :string, 3
|
27
29
|
end
|
28
30
|
add_message "google.cloud.eventarc.v1.Destination" do
|
29
31
|
oneof :descriptor do
|
30
32
|
optional :cloud_run, :message, 1, "google.cloud.eventarc.v1.CloudRun"
|
33
|
+
optional :cloud_function, :string, 2
|
34
|
+
optional :gke, :message, 3, "google.cloud.eventarc.v1.GKE"
|
31
35
|
end
|
32
36
|
end
|
33
37
|
add_message "google.cloud.eventarc.v1.Transport" do
|
@@ -40,6 +44,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
40
44
|
optional :path, :string, 2
|
41
45
|
optional :region, :string, 3
|
42
46
|
end
|
47
|
+
add_message "google.cloud.eventarc.v1.GKE" do
|
48
|
+
optional :cluster, :string, 1
|
49
|
+
optional :location, :string, 2
|
50
|
+
optional :namespace, :string, 3
|
51
|
+
optional :service, :string, 4
|
52
|
+
optional :path, :string, 5
|
53
|
+
end
|
43
54
|
add_message "google.cloud.eventarc.v1.Pubsub" do
|
44
55
|
optional :topic, :string, 1
|
45
56
|
optional :subscription, :string, 2
|
@@ -56,6 +67,7 @@ module Google
|
|
56
67
|
Destination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.Destination").msgclass
|
57
68
|
Transport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.Transport").msgclass
|
58
69
|
CloudRun = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CloudRun").msgclass
|
70
|
+
GKE = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.GKE").msgclass
|
59
71
|
Pubsub = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.Pubsub").msgclass
|
60
72
|
end
|
61
73
|
end
|
@@ -0,0 +1,94 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Eventarc
|
23
|
+
module V1
|
24
|
+
# A representation of the Channel resource.
|
25
|
+
# A Channel is a resource on which event providers publish their events.
|
26
|
+
# The published events are delivered through the transport associated with the
|
27
|
+
# channel. Note that a channel is associated with exactly one event provider.
|
28
|
+
# @!attribute [rw] name
|
29
|
+
# @return [::String]
|
30
|
+
# Required. The resource name of the channel. Must be unique within the location
|
31
|
+
# on the project and must be in
|
32
|
+
# `projects/{project}/locations/{location}/channels/{channel_id}` format.
|
33
|
+
# @!attribute [r] uid
|
34
|
+
# @return [::String]
|
35
|
+
# Output only. Server assigned unique identifier for the channel. The value is a UUID4
|
36
|
+
# string and guaranteed to remain unchanged until the resource is deleted.
|
37
|
+
# @!attribute [r] create_time
|
38
|
+
# @return [::Google::Protobuf::Timestamp]
|
39
|
+
# Output only. The creation time.
|
40
|
+
# @!attribute [r] update_time
|
41
|
+
# @return [::Google::Protobuf::Timestamp]
|
42
|
+
# Output only. The last-modified time.
|
43
|
+
# @!attribute [rw] provider
|
44
|
+
# @return [::String]
|
45
|
+
# Required. The name of the event provider (e.g. Eventarc SaaS partner) associated
|
46
|
+
# with the channel. This provider will be granted permissions to publish
|
47
|
+
# events to the channel. Format:
|
48
|
+
# `projects/{project}/locations/{location}/providers/{provider_id}`.
|
49
|
+
# @!attribute [r] pubsub_topic
|
50
|
+
# @return [::String]
|
51
|
+
# Output only. The name of the Pub/Sub topic created and managed by Eventarc system as
|
52
|
+
# a transport for the event delivery. Format:
|
53
|
+
# `projects/{project}/topics/{topic_id}`.
|
54
|
+
# @!attribute [r] state
|
55
|
+
# @return [::Google::Cloud::Eventarc::V1::Channel::State]
|
56
|
+
# Output only. The state of a Channel.
|
57
|
+
# @!attribute [r] activation_token
|
58
|
+
# @return [::String]
|
59
|
+
# Output only. The activation token for the channel. The token must be used by the
|
60
|
+
# provider to register the channel for publishing.
|
61
|
+
class Channel
|
62
|
+
include ::Google::Protobuf::MessageExts
|
63
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
64
|
+
|
65
|
+
# State lists all the possible states of a Channel
|
66
|
+
module State
|
67
|
+
# Default value. This value is unused.
|
68
|
+
STATE_UNSPECIFIED = 0
|
69
|
+
|
70
|
+
# The PENDING state indicates that a Channel has been created successfully
|
71
|
+
# and there is a new activation token available for the subscriber to use
|
72
|
+
# to convey the Channel to the provider in order to create a Connection.
|
73
|
+
PENDING = 1
|
74
|
+
|
75
|
+
# The ACTIVE state indicates that a Channel has been successfully
|
76
|
+
# connected with the event provider.
|
77
|
+
# An ACTIVE Channel is ready to receive and route events from the
|
78
|
+
# event provider.
|
79
|
+
ACTIVE = 2
|
80
|
+
|
81
|
+
# The INACTIVE state means that the Channel cannot receive events
|
82
|
+
# permanently. There are two possible cases this state can happen:
|
83
|
+
# 1. The SaaS provider disconnected from this Channel.
|
84
|
+
# 2. The Channel activation token has expired but the SaaS provider
|
85
|
+
# wasn't connected.
|
86
|
+
# To re-establish a Connection with a provider, the subscriber
|
87
|
+
# should create a new Channel and give it to the provider.
|
88
|
+
INACTIVE = 3
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Eventarc
|
23
|
+
module V1
|
24
|
+
# A representation of the ChannelConnection resource.
|
25
|
+
# A ChannelConnection is a resource which event providers create during the
|
26
|
+
# activation process to establish a connection between the provider and the
|
27
|
+
# subscriber channel.
|
28
|
+
# @!attribute [rw] name
|
29
|
+
# @return [::String]
|
30
|
+
# Required. The name of the connection.
|
31
|
+
# @!attribute [r] uid
|
32
|
+
# @return [::String]
|
33
|
+
# Output only. Server assigned ID of the resource.
|
34
|
+
# The server guarantees uniqueness and immutability until deleted.
|
35
|
+
# @!attribute [rw] channel
|
36
|
+
# @return [::String]
|
37
|
+
# Required. The name of the connected subscriber Channel.
|
38
|
+
# This is a weak reference to avoid cross project and cross accounts
|
39
|
+
# references. This must be in
|
40
|
+
# `projects/{project}/location/{location}/channels/{channel_id}` format.
|
41
|
+
# @!attribute [r] create_time
|
42
|
+
# @return [::Google::Protobuf::Timestamp]
|
43
|
+
# Output only. The creation time.
|
44
|
+
# @!attribute [r] update_time
|
45
|
+
# @return [::Google::Protobuf::Timestamp]
|
46
|
+
# Output only. The last-modified time.
|
47
|
+
# @!attribute [rw] activation_token
|
48
|
+
# @return [::String]
|
49
|
+
# Input only. Activation token for the channel. The token will be used
|
50
|
+
# during the creation of ChannelConnection to bind the channel with the
|
51
|
+
# provider project. This field will not be stored in the provider resource.
|
52
|
+
class ChannelConnection
|
53
|
+
include ::Google::Protobuf::MessageExts
|
54
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Eventarc
|
23
|
+
module V1
|
24
|
+
# A representation of the Provider resource.
|
25
|
+
# @!attribute [r] name
|
26
|
+
# @return [::String]
|
27
|
+
# Output only. In `projects/{project}/locations/{location}/providers/{provider_id}`
|
28
|
+
# format.
|
29
|
+
# @!attribute [r] display_name
|
30
|
+
# @return [::String]
|
31
|
+
# Output only. Human friendly name for the Provider. For example "Cloud Storage".
|
32
|
+
# @!attribute [r] event_types
|
33
|
+
# @return [::Array<::Google::Cloud::Eventarc::V1::EventType>]
|
34
|
+
# Output only. Event types for this provider.
|
35
|
+
class Provider
|
36
|
+
include ::Google::Protobuf::MessageExts
|
37
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
38
|
+
end
|
39
|
+
|
40
|
+
# A representation of the event type resource.
|
41
|
+
# @!attribute [r] type
|
42
|
+
# @return [::String]
|
43
|
+
# Output only. The full name of the event type (for example,
|
44
|
+
# "google.cloud.storage.object.v1.finalized"). In the form of
|
45
|
+
# \\{provider-specific-prefix}.\\{resource}.\\{version}.\\{verb}. Types MUST be
|
46
|
+
# versioned and event schemas are guaranteed to remain backward compatible
|
47
|
+
# within one version. Note that event type versions and API versions do not
|
48
|
+
# need to match.
|
49
|
+
# @!attribute [r] description
|
50
|
+
# @return [::String]
|
51
|
+
# Output only. Human friendly description of what the event type is about.
|
52
|
+
# For example "Bucket created in Cloud Storage".
|
53
|
+
# @!attribute [r] filtering_attributes
|
54
|
+
# @return [::Array<::Google::Cloud::Eventarc::V1::FilteringAttribute>]
|
55
|
+
# Output only. Filtering attributes for the event type.
|
56
|
+
# @!attribute [r] event_schema_uri
|
57
|
+
# @return [::String]
|
58
|
+
# Output only. URI for the event schema.
|
59
|
+
# For example
|
60
|
+
# "https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto"
|
61
|
+
class EventType
|
62
|
+
include ::Google::Protobuf::MessageExts
|
63
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
64
|
+
end
|
65
|
+
|
66
|
+
# A representation of the FilteringAttribute resource.
|
67
|
+
# Filtering attributes are per event type.
|
68
|
+
# @!attribute [r] attribute
|
69
|
+
# @return [::String]
|
70
|
+
# Output only. Attribute used for filtering the event type.
|
71
|
+
# @!attribute [r] description
|
72
|
+
# @return [::String]
|
73
|
+
# Output only. Description of the purpose of the attribute.
|
74
|
+
# @!attribute [r] required
|
75
|
+
# @return [::Boolean]
|
76
|
+
# Output only. If true, the triggers for this provider should always specify a filter
|
77
|
+
# on these attributes. Trigger creation will fail otherwise.
|
78
|
+
# @!attribute [r] path_pattern_supported
|
79
|
+
# @return [::Boolean]
|
80
|
+
# Output only. If true, the attribute accepts matching expressions in the Eventarc
|
81
|
+
# PathPattern format.
|
82
|
+
class FilteringAttribute
|
83
|
+
include ::Google::Protobuf::MessageExts
|
84
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|