google-cloud-eventarc-v1 0.1.4 → 0.2.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 +1 -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/eventarc/client.rb +934 -8
- data/lib/google/cloud/eventarc/v1/eventarc/paths.rb +57 -0
- data/lib/google/cloud/eventarc/v1/eventarc_pb.rb +63 -0
- data/lib/google/cloud/eventarc/v1/eventarc_services_pb.rb +18 -0
- data/lib/google/cloud/eventarc/v1/trigger_pb.rb +12 -0
- data/lib/google/cloud/eventarc/v1/version.rb +1 -1
- 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/eventarc.rb +181 -9
- data/proto_docs/google/cloud/eventarc/v1/trigger.rb +78 -35
- metadata +7 -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
|
#
|
@@ -5,6 +5,8 @@ require 'google/api/annotations_pb'
|
|
5
5
|
require 'google/api/client_pb'
|
6
6
|
require 'google/api/field_behavior_pb'
|
7
7
|
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/eventarc/v1/channel_pb'
|
9
|
+
require 'google/cloud/eventarc/v1/channel_connection_pb'
|
8
10
|
require 'google/cloud/eventarc/v1/trigger_pb'
|
9
11
|
require 'google/longrunning/operations_pb'
|
10
12
|
require 'google/protobuf/field_mask_pb'
|
@@ -45,6 +47,56 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
45
47
|
optional :allow_missing, :bool, 3
|
46
48
|
optional :validate_only, :bool, 4
|
47
49
|
end
|
50
|
+
add_message "google.cloud.eventarc.v1.GetChannelRequest" do
|
51
|
+
optional :name, :string, 1
|
52
|
+
end
|
53
|
+
add_message "google.cloud.eventarc.v1.ListChannelsRequest" do
|
54
|
+
optional :parent, :string, 1
|
55
|
+
optional :page_size, :int32, 2
|
56
|
+
optional :page_token, :string, 3
|
57
|
+
optional :order_by, :string, 4
|
58
|
+
end
|
59
|
+
add_message "google.cloud.eventarc.v1.ListChannelsResponse" do
|
60
|
+
repeated :channels, :message, 1, "google.cloud.eventarc.v1.Channel"
|
61
|
+
optional :next_page_token, :string, 2
|
62
|
+
repeated :unreachable, :string, 3
|
63
|
+
end
|
64
|
+
add_message "google.cloud.eventarc.v1.CreateChannelRequest" do
|
65
|
+
optional :parent, :string, 1
|
66
|
+
optional :channel, :message, 2, "google.cloud.eventarc.v1.Channel"
|
67
|
+
optional :channel_id, :string, 3
|
68
|
+
optional :validate_only, :bool, 4
|
69
|
+
end
|
70
|
+
add_message "google.cloud.eventarc.v1.UpdateChannelRequest" do
|
71
|
+
optional :channel, :message, 1, "google.cloud.eventarc.v1.Channel"
|
72
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
73
|
+
optional :validate_only, :bool, 3
|
74
|
+
end
|
75
|
+
add_message "google.cloud.eventarc.v1.DeleteChannelRequest" do
|
76
|
+
optional :name, :string, 1
|
77
|
+
optional :validate_only, :bool, 2
|
78
|
+
end
|
79
|
+
add_message "google.cloud.eventarc.v1.GetChannelConnectionRequest" do
|
80
|
+
optional :name, :string, 1
|
81
|
+
end
|
82
|
+
add_message "google.cloud.eventarc.v1.ListChannelConnectionsRequest" do
|
83
|
+
optional :parent, :string, 1
|
84
|
+
optional :page_size, :int32, 2
|
85
|
+
optional :page_token, :string, 3
|
86
|
+
end
|
87
|
+
add_message "google.cloud.eventarc.v1.ListChannelConnectionsResponse" do
|
88
|
+
repeated :channel_connections, :message, 1, "google.cloud.eventarc.v1.ChannelConnection"
|
89
|
+
optional :next_page_token, :string, 2
|
90
|
+
repeated :unreachable, :string, 3
|
91
|
+
end
|
92
|
+
add_message "google.cloud.eventarc.v1.CreateChannelConnectionRequest" do
|
93
|
+
optional :parent, :string, 1
|
94
|
+
optional :channel_connection, :message, 2, "google.cloud.eventarc.v1.ChannelConnection"
|
95
|
+
optional :channel_connection_id, :string, 3
|
96
|
+
end
|
97
|
+
add_message "google.cloud.eventarc.v1.DeleteChannelConnectionRequest" do
|
98
|
+
optional :name, :string, 1
|
99
|
+
end
|
48
100
|
add_message "google.cloud.eventarc.v1.OperationMetadata" do
|
49
101
|
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
50
102
|
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
@@ -67,6 +119,17 @@ module Google
|
|
67
119
|
CreateTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CreateTriggerRequest").msgclass
|
68
120
|
UpdateTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.UpdateTriggerRequest").msgclass
|
69
121
|
DeleteTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.DeleteTriggerRequest").msgclass
|
122
|
+
GetChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.GetChannelRequest").msgclass
|
123
|
+
ListChannelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelsRequest").msgclass
|
124
|
+
ListChannelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelsResponse").msgclass
|
125
|
+
CreateChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CreateChannelRequest").msgclass
|
126
|
+
UpdateChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.UpdateChannelRequest").msgclass
|
127
|
+
DeleteChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.DeleteChannelRequest").msgclass
|
128
|
+
GetChannelConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.GetChannelConnectionRequest").msgclass
|
129
|
+
ListChannelConnectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelConnectionsRequest").msgclass
|
130
|
+
ListChannelConnectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelConnectionsResponse").msgclass
|
131
|
+
CreateChannelConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CreateChannelConnectionRequest").msgclass
|
132
|
+
DeleteChannelConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.DeleteChannelConnectionRequest").msgclass
|
70
133
|
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.OperationMetadata").msgclass
|
71
134
|
end
|
72
135
|
end
|
@@ -44,6 +44,24 @@ 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 ChannelConnection.
|
58
|
+
rpc :GetChannelConnection, ::Google::Cloud::Eventarc::V1::GetChannelConnectionRequest, ::Google::Cloud::Eventarc::V1::ChannelConnection
|
59
|
+
# List channel connections.
|
60
|
+
rpc :ListChannelConnections, ::Google::Cloud::Eventarc::V1::ListChannelConnectionsRequest, ::Google::Cloud::Eventarc::V1::ListChannelConnectionsResponse
|
61
|
+
# Create a new ChannelConnection in a particular project and location.
|
62
|
+
rpc :CreateChannelConnection, ::Google::Cloud::Eventarc::V1::CreateChannelConnectionRequest, ::Google::Longrunning::Operation
|
63
|
+
# Delete a single ChannelConnection.
|
64
|
+
rpc :DeleteChannelConnection, ::Google::Cloud::Eventarc::V1::DeleteChannelConnectionRequest, ::Google::Longrunning::Operation
|
47
65
|
end
|
48
66
|
|
49
67
|
Stub = Service.rpc_stub_class
|
@@ -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
|
@@ -47,16 +47,16 @@ module Google
|
|
47
47
|
# the call that provided the page token.
|
48
48
|
# @!attribute [rw] order_by
|
49
49
|
# @return [::String]
|
50
|
-
# The sorting order of the resources returned. Value should be a
|
51
|
-
# separated list of fields. The default sorting
|
52
|
-
# descending order for a field, append a `
|
50
|
+
# The sorting order of the resources returned. Value should be a
|
51
|
+
# comma-separated list of fields. The default sorting order is ascending. To
|
52
|
+
# specify descending order for a field, append a `desc` suffix; for example:
|
53
53
|
# `name desc, trigger_id`.
|
54
54
|
class ListTriggersRequest
|
55
55
|
include ::Google::Protobuf::MessageExts
|
56
56
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
57
57
|
end
|
58
58
|
|
59
|
-
# The response message for the ListTriggers method.
|
59
|
+
# The response message for the `ListTriggers` method.
|
60
60
|
# @!attribute [rw] triggers
|
61
61
|
# @return [::Array<::Google::Cloud::Eventarc::V1::Trigger>]
|
62
62
|
# The requested triggers, up to the number specified in `page_size`.
|
@@ -84,7 +84,7 @@ module Google
|
|
84
84
|
# Required. The user-provided ID to be assigned to the trigger.
|
85
85
|
# @!attribute [rw] validate_only
|
86
86
|
# @return [::Boolean]
|
87
|
-
# Required. If set, validate the request and preview the review, but do not
|
87
|
+
# Required. If set, validate the request and preview the review, but do not
|
88
88
|
# post it.
|
89
89
|
class CreateTriggerRequest
|
90
90
|
include ::Google::Protobuf::MessageExts
|
@@ -97,8 +97,8 @@ module Google
|
|
97
97
|
# The trigger to be updated.
|
98
98
|
# @!attribute [rw] update_mask
|
99
99
|
# @return [::Google::Protobuf::FieldMask]
|
100
|
-
# The fields to be updated; only fields explicitly provided
|
101
|
-
# If no field mask is provided, all provided fields in the request
|
100
|
+
# The fields to be updated; only fields explicitly provided are updated.
|
101
|
+
# If no field mask is provided, all provided fields in the request are
|
102
102
|
# updated. To update all fields, provide a field mask of "*".
|
103
103
|
# @!attribute [rw] allow_missing
|
104
104
|
# @return [::Boolean]
|
@@ -106,7 +106,7 @@ module Google
|
|
106
106
|
# created. In this situation, `update_mask` is ignored.
|
107
107
|
# @!attribute [rw] validate_only
|
108
108
|
# @return [::Boolean]
|
109
|
-
# Required. If set, validate the request and preview the review, but do not
|
109
|
+
# Required. If set, validate the request and preview the review, but do not
|
110
110
|
# post it.
|
111
111
|
class UpdateTriggerRequest
|
112
112
|
include ::Google::Protobuf::MessageExts
|
@@ -127,13 +127,185 @@ module Google
|
|
127
127
|
# but no action will be taken on the server.
|
128
128
|
# @!attribute [rw] validate_only
|
129
129
|
# @return [::Boolean]
|
130
|
-
# Required. If set, validate the request and preview the review, but do not
|
130
|
+
# Required. If set, validate the request and preview the review, but do not
|
131
131
|
# post it.
|
132
132
|
class DeleteTriggerRequest
|
133
133
|
include ::Google::Protobuf::MessageExts
|
134
134
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
135
135
|
end
|
136
136
|
|
137
|
+
# The request message for the GetChannel method.
|
138
|
+
# @!attribute [rw] name
|
139
|
+
# @return [::String]
|
140
|
+
# Required. The name of the channel to get.
|
141
|
+
class GetChannelRequest
|
142
|
+
include ::Google::Protobuf::MessageExts
|
143
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
144
|
+
end
|
145
|
+
|
146
|
+
# The request message for the ListChannels method.
|
147
|
+
# @!attribute [rw] parent
|
148
|
+
# @return [::String]
|
149
|
+
# Required. The parent collection to list channels on.
|
150
|
+
# @!attribute [rw] page_size
|
151
|
+
# @return [::Integer]
|
152
|
+
# The maximum number of channels to return on each page.
|
153
|
+
# Note: The service may send fewer.
|
154
|
+
# @!attribute [rw] page_token
|
155
|
+
# @return [::String]
|
156
|
+
# The page token; provide the value from the `next_page_token` field in a
|
157
|
+
# previous `ListChannels` call to retrieve the subsequent page.
|
158
|
+
#
|
159
|
+
# When paginating, all other parameters provided to `ListChannels` must
|
160
|
+
# match the call that provided the page token.
|
161
|
+
# @!attribute [rw] order_by
|
162
|
+
# @return [::String]
|
163
|
+
# The sorting order of the resources returned. Value should be a
|
164
|
+
# comma-separated list of fields. The default sorting order is ascending. To
|
165
|
+
# specify descending order for a field, append a `desc` suffix; for example:
|
166
|
+
# `name desc, channel_id`.
|
167
|
+
class ListChannelsRequest
|
168
|
+
include ::Google::Protobuf::MessageExts
|
169
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
170
|
+
end
|
171
|
+
|
172
|
+
# The response message for the `ListChannels` method.
|
173
|
+
# @!attribute [rw] channels
|
174
|
+
# @return [::Array<::Google::Cloud::Eventarc::V1::Channel>]
|
175
|
+
# The requested channels, up to the number specified in `page_size`.
|
176
|
+
# @!attribute [rw] next_page_token
|
177
|
+
# @return [::String]
|
178
|
+
# A page token that can be sent to ListChannels to request the next page.
|
179
|
+
# If this is empty, then there are no more pages.
|
180
|
+
# @!attribute [rw] unreachable
|
181
|
+
# @return [::Array<::String>]
|
182
|
+
# Unreachable resources, if any.
|
183
|
+
class ListChannelsResponse
|
184
|
+
include ::Google::Protobuf::MessageExts
|
185
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
186
|
+
end
|
187
|
+
|
188
|
+
# The request message for the CreateChannel method.
|
189
|
+
# @!attribute [rw] parent
|
190
|
+
# @return [::String]
|
191
|
+
# Required. The parent collection in which to add this channel.
|
192
|
+
# @!attribute [rw] channel
|
193
|
+
# @return [::Google::Cloud::Eventarc::V1::Channel]
|
194
|
+
# Required. The channel to create.
|
195
|
+
# @!attribute [rw] channel_id
|
196
|
+
# @return [::String]
|
197
|
+
# Required. The user-provided ID to be assigned to the channel.
|
198
|
+
# @!attribute [rw] validate_only
|
199
|
+
# @return [::Boolean]
|
200
|
+
# Required. If set, validate the request and preview the review, but do not
|
201
|
+
# post it.
|
202
|
+
class CreateChannelRequest
|
203
|
+
include ::Google::Protobuf::MessageExts
|
204
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
205
|
+
end
|
206
|
+
|
207
|
+
# The request message for the UpdateChannel method.
|
208
|
+
# @!attribute [rw] channel
|
209
|
+
# @return [::Google::Cloud::Eventarc::V1::Channel]
|
210
|
+
# The channel to be updated.
|
211
|
+
# @!attribute [rw] update_mask
|
212
|
+
# @return [::Google::Protobuf::FieldMask]
|
213
|
+
# The fields to be updated; only fields explicitly provided are updated.
|
214
|
+
# If no field mask is provided, all provided fields in the request are
|
215
|
+
# updated. To update all fields, provide a field mask of "*".
|
216
|
+
# @!attribute [rw] validate_only
|
217
|
+
# @return [::Boolean]
|
218
|
+
# Required. If set, validate the request and preview the review, but do not
|
219
|
+
# post it.
|
220
|
+
class UpdateChannelRequest
|
221
|
+
include ::Google::Protobuf::MessageExts
|
222
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
223
|
+
end
|
224
|
+
|
225
|
+
# The request message for the DeleteChannel method.
|
226
|
+
# @!attribute [rw] name
|
227
|
+
# @return [::String]
|
228
|
+
# Required. The name of the channel to be deleted.
|
229
|
+
# @!attribute [rw] validate_only
|
230
|
+
# @return [::Boolean]
|
231
|
+
# Required. If set, validate the request and preview the review, but do not
|
232
|
+
# post it.
|
233
|
+
class DeleteChannelRequest
|
234
|
+
include ::Google::Protobuf::MessageExts
|
235
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
236
|
+
end
|
237
|
+
|
238
|
+
# The request message for the GetChannelConnection method.
|
239
|
+
# @!attribute [rw] name
|
240
|
+
# @return [::String]
|
241
|
+
# Required. The name of the channel connection to get.
|
242
|
+
class GetChannelConnectionRequest
|
243
|
+
include ::Google::Protobuf::MessageExts
|
244
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
end
|
246
|
+
|
247
|
+
# The request message for the ListChannelConnections method.
|
248
|
+
# @!attribute [rw] parent
|
249
|
+
# @return [::String]
|
250
|
+
# Required. The parent collection from which to list channel connections.
|
251
|
+
# @!attribute [rw] page_size
|
252
|
+
# @return [::Integer]
|
253
|
+
# The maximum number of channel connections to return on each page.
|
254
|
+
# Note: The service may send fewer responses.
|
255
|
+
# @!attribute [rw] page_token
|
256
|
+
# @return [::String]
|
257
|
+
# The page token; provide the value from the `next_page_token` field in a
|
258
|
+
# previous `ListChannelConnections` call to retrieve the subsequent page.
|
259
|
+
#
|
260
|
+
# When paginating, all other parameters provided to `ListChannelConnetions`
|
261
|
+
# match the call that provided the page token.
|
262
|
+
class ListChannelConnectionsRequest
|
263
|
+
include ::Google::Protobuf::MessageExts
|
264
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
265
|
+
end
|
266
|
+
|
267
|
+
# The response message for the `ListChannelConnections` method.
|
268
|
+
# @!attribute [rw] channel_connections
|
269
|
+
# @return [::Array<::Google::Cloud::Eventarc::V1::ChannelConnection>]
|
270
|
+
# The requested channel connections, up to the number specified in
|
271
|
+
# `page_size`.
|
272
|
+
# @!attribute [rw] next_page_token
|
273
|
+
# @return [::String]
|
274
|
+
# A page token that can be sent to ListChannelConnections to request the
|
275
|
+
# next page.
|
276
|
+
# If this is empty, then there are no more pages.
|
277
|
+
# @!attribute [rw] unreachable
|
278
|
+
# @return [::Array<::String>]
|
279
|
+
# Unreachable resources, if any.
|
280
|
+
class ListChannelConnectionsResponse
|
281
|
+
include ::Google::Protobuf::MessageExts
|
282
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
283
|
+
end
|
284
|
+
|
285
|
+
# The request message for the CreateChannelConnection method.
|
286
|
+
# @!attribute [rw] parent
|
287
|
+
# @return [::String]
|
288
|
+
# Required. The parent collection in which to add this channel connection.
|
289
|
+
# @!attribute [rw] channel_connection
|
290
|
+
# @return [::Google::Cloud::Eventarc::V1::ChannelConnection]
|
291
|
+
# Required. Channel connection to create.
|
292
|
+
# @!attribute [rw] channel_connection_id
|
293
|
+
# @return [::String]
|
294
|
+
# Required. The user-provided ID to be assigned to the channel connection.
|
295
|
+
class CreateChannelConnectionRequest
|
296
|
+
include ::Google::Protobuf::MessageExts
|
297
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
298
|
+
end
|
299
|
+
|
300
|
+
# The request message for the DeleteChannelConnection method.
|
301
|
+
# @!attribute [rw] name
|
302
|
+
# @return [::String]
|
303
|
+
# Required. The name of the channel connection to delete.
|
304
|
+
class DeleteChannelConnectionRequest
|
305
|
+
include ::Google::Protobuf::MessageExts
|
306
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
307
|
+
end
|
308
|
+
|
137
309
|
# Represents the metadata of the long-running operation.
|
138
310
|
# @!attribute [r] create_time
|
139
311
|
# @return [::Google::Protobuf::Timestamp]
|