google-cloud-eventarc-v1 0.2.1 → 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/README.md +5 -0
- data/lib/google/cloud/eventarc/v1/discovery_pb.rb +41 -0
- data/lib/google/cloud/eventarc/v1/eventarc/client.rb +206 -0
- data/lib/google/cloud/eventarc/v1/eventarc/paths.rb +19 -0
- data/lib/google/cloud/eventarc/v1/eventarc_pb.rb +19 -0
- data/lib/google/cloud/eventarc/v1/eventarc_services_pb.rb +4 -0
- data/lib/google/cloud/eventarc/v1/version.rb +1 -1
- data/proto_docs/google/cloud/eventarc/v1/discovery.rb +89 -0
- data/proto_docs/google/cloud/eventarc/v1/eventarc.rb +53 -0
- 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: 174823041dfb1522bf6208bd502faf24036c8a46a5e42a18c73285bc5ecaaa0e
|
4
|
+
data.tar.gz: a4edea07b4df9247bee37f1df42f1b9a1b9f278304e224aa96ab79ca3ca93487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed1332136194d8752dc090ab4590a8cec6a2cf016b74660c91fe736ec84e7d5a317383c4520957dbc3cb6f7b288ad58a47c0704fd20a27b30a0ce59c66ad92d0
|
7
|
+
data.tar.gz: bfd3f0fc230f85ac58c0e4dae90683d9c9cdf436990da5d4025f730f01b3204b482dc5e844c25459f8185190d0616cb0da6914cb6b3e470f0dab199783e1fa01
|
data/README.md
CHANGED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/eventarc/v1/discovery.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/eventarc/v1/discovery.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.eventarc.v1.Provider" do
|
12
|
+
optional :name, :string, 1
|
13
|
+
optional :display_name, :string, 2
|
14
|
+
repeated :event_types, :message, 3, "google.cloud.eventarc.v1.EventType"
|
15
|
+
end
|
16
|
+
add_message "google.cloud.eventarc.v1.EventType" do
|
17
|
+
optional :type, :string, 1
|
18
|
+
optional :description, :string, 2
|
19
|
+
repeated :filtering_attributes, :message, 3, "google.cloud.eventarc.v1.FilteringAttribute"
|
20
|
+
optional :event_schema_uri, :string, 4
|
21
|
+
end
|
22
|
+
add_message "google.cloud.eventarc.v1.FilteringAttribute" do
|
23
|
+
optional :attribute, :string, 1
|
24
|
+
optional :description, :string, 2
|
25
|
+
optional :required, :bool, 3
|
26
|
+
optional :path_pattern_supported, :bool, 4
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module Eventarc
|
34
|
+
module V1
|
35
|
+
Provider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.Provider").msgclass
|
36
|
+
EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.EventType").msgclass
|
37
|
+
FilteringAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.FilteringAttribute").msgclass
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -1141,6 +1141,198 @@ module Google
|
|
1141
1141
|
raise ::Google::Cloud::Error.from_error(e)
|
1142
1142
|
end
|
1143
1143
|
|
1144
|
+
##
|
1145
|
+
# Get a single Provider.
|
1146
|
+
#
|
1147
|
+
# @overload get_provider(request, options = nil)
|
1148
|
+
# Pass arguments to `get_provider` via a request object, either of type
|
1149
|
+
# {::Google::Cloud::Eventarc::V1::GetProviderRequest} or an equivalent Hash.
|
1150
|
+
#
|
1151
|
+
# @param request [::Google::Cloud::Eventarc::V1::GetProviderRequest, ::Hash]
|
1152
|
+
# A request object representing the call parameters. Required. To specify no
|
1153
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1154
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1155
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1156
|
+
#
|
1157
|
+
# @overload get_provider(name: nil)
|
1158
|
+
# Pass arguments to `get_provider` via keyword arguments. Note that at
|
1159
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1160
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1161
|
+
#
|
1162
|
+
# @param name [::String]
|
1163
|
+
# Required. The name of the provider to get.
|
1164
|
+
#
|
1165
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1166
|
+
# @yieldparam response [::Google::Cloud::Eventarc::V1::Provider]
|
1167
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1168
|
+
#
|
1169
|
+
# @return [::Google::Cloud::Eventarc::V1::Provider]
|
1170
|
+
#
|
1171
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1172
|
+
#
|
1173
|
+
# @example Basic example
|
1174
|
+
# require "google/cloud/eventarc/v1"
|
1175
|
+
#
|
1176
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1177
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
|
1178
|
+
#
|
1179
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1180
|
+
# request = Google::Cloud::Eventarc::V1::GetProviderRequest.new
|
1181
|
+
#
|
1182
|
+
# # Call the get_provider method.
|
1183
|
+
# result = client.get_provider request
|
1184
|
+
#
|
1185
|
+
# # The returned object is of type Google::Cloud::Eventarc::V1::Provider.
|
1186
|
+
# p result
|
1187
|
+
#
|
1188
|
+
def get_provider request, options = nil
|
1189
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1190
|
+
|
1191
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::GetProviderRequest
|
1192
|
+
|
1193
|
+
# Converts hash and nil to an options object
|
1194
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1195
|
+
|
1196
|
+
# Customize the options with defaults
|
1197
|
+
metadata = @config.rpcs.get_provider.metadata.to_h
|
1198
|
+
|
1199
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1200
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1201
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1202
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
|
1203
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1204
|
+
|
1205
|
+
header_params = {}
|
1206
|
+
if request.name
|
1207
|
+
header_params["name"] = request.name
|
1208
|
+
end
|
1209
|
+
|
1210
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1211
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1212
|
+
|
1213
|
+
options.apply_defaults timeout: @config.rpcs.get_provider.timeout,
|
1214
|
+
metadata: metadata,
|
1215
|
+
retry_policy: @config.rpcs.get_provider.retry_policy
|
1216
|
+
|
1217
|
+
options.apply_defaults timeout: @config.timeout,
|
1218
|
+
metadata: @config.metadata,
|
1219
|
+
retry_policy: @config.retry_policy
|
1220
|
+
|
1221
|
+
@eventarc_stub.call_rpc :get_provider, request, options: options do |response, operation|
|
1222
|
+
yield response, operation if block_given?
|
1223
|
+
return response
|
1224
|
+
end
|
1225
|
+
rescue ::GRPC::BadStatus => e
|
1226
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1227
|
+
end
|
1228
|
+
|
1229
|
+
##
|
1230
|
+
# List providers.
|
1231
|
+
#
|
1232
|
+
# @overload list_providers(request, options = nil)
|
1233
|
+
# Pass arguments to `list_providers` via a request object, either of type
|
1234
|
+
# {::Google::Cloud::Eventarc::V1::ListProvidersRequest} or an equivalent Hash.
|
1235
|
+
#
|
1236
|
+
# @param request [::Google::Cloud::Eventarc::V1::ListProvidersRequest, ::Hash]
|
1237
|
+
# A request object representing the call parameters. Required. To specify no
|
1238
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1239
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1240
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1241
|
+
#
|
1242
|
+
# @overload list_providers(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
1243
|
+
# Pass arguments to `list_providers` via keyword arguments. Note that at
|
1244
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1245
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1246
|
+
#
|
1247
|
+
# @param parent [::String]
|
1248
|
+
# Required. The parent of the provider to get.
|
1249
|
+
# @param page_size [::Integer]
|
1250
|
+
# The maximum number of providers to return on each page.
|
1251
|
+
# @param page_token [::String]
|
1252
|
+
# The page token; provide the value from the `next_page_token` field in a
|
1253
|
+
# previous `ListProviders` call to retrieve the subsequent page.
|
1254
|
+
#
|
1255
|
+
# When paginating, all other parameters provided to `ListProviders` must
|
1256
|
+
# match the call that provided the page token.
|
1257
|
+
# @param order_by [::String]
|
1258
|
+
# The sorting order of the resources returned. Value should be a
|
1259
|
+
# comma-separated list of fields. The default sorting oder is ascending. To
|
1260
|
+
# specify descending order for a field, append a `desc` suffix; for example:
|
1261
|
+
# `name desc, _id`.
|
1262
|
+
# @param filter [::String]
|
1263
|
+
# The filter field that the list request will filter on.
|
1264
|
+
#
|
1265
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1266
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::Provider>]
|
1267
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1268
|
+
#
|
1269
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::Provider>]
|
1270
|
+
#
|
1271
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1272
|
+
#
|
1273
|
+
# @example Basic example
|
1274
|
+
# require "google/cloud/eventarc/v1"
|
1275
|
+
#
|
1276
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1277
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
|
1278
|
+
#
|
1279
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1280
|
+
# request = Google::Cloud::Eventarc::V1::ListProvidersRequest.new
|
1281
|
+
#
|
1282
|
+
# # Call the list_providers method.
|
1283
|
+
# result = client.list_providers request
|
1284
|
+
#
|
1285
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1286
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1287
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1288
|
+
# # methods are also available for managing paging directly.
|
1289
|
+
# result.each do |response|
|
1290
|
+
# # Each element is of type ::Google::Cloud::Eventarc::V1::Provider.
|
1291
|
+
# p response
|
1292
|
+
# end
|
1293
|
+
#
|
1294
|
+
def list_providers request, options = nil
|
1295
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1296
|
+
|
1297
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::ListProvidersRequest
|
1298
|
+
|
1299
|
+
# Converts hash and nil to an options object
|
1300
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1301
|
+
|
1302
|
+
# Customize the options with defaults
|
1303
|
+
metadata = @config.rpcs.list_providers.metadata.to_h
|
1304
|
+
|
1305
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1306
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1307
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1308
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
|
1309
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1310
|
+
|
1311
|
+
header_params = {}
|
1312
|
+
if request.parent
|
1313
|
+
header_params["parent"] = request.parent
|
1314
|
+
end
|
1315
|
+
|
1316
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1317
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1318
|
+
|
1319
|
+
options.apply_defaults timeout: @config.rpcs.list_providers.timeout,
|
1320
|
+
metadata: metadata,
|
1321
|
+
retry_policy: @config.rpcs.list_providers.retry_policy
|
1322
|
+
|
1323
|
+
options.apply_defaults timeout: @config.timeout,
|
1324
|
+
metadata: @config.metadata,
|
1325
|
+
retry_policy: @config.retry_policy
|
1326
|
+
|
1327
|
+
@eventarc_stub.call_rpc :list_providers, request, options: options do |response, operation|
|
1328
|
+
response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_providers, request, response, operation, options
|
1329
|
+
yield response, operation if block_given?
|
1330
|
+
return response
|
1331
|
+
end
|
1332
|
+
rescue ::GRPC::BadStatus => e
|
1333
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1334
|
+
end
|
1335
|
+
|
1144
1336
|
##
|
1145
1337
|
# Get a single ChannelConnection.
|
1146
1338
|
#
|
@@ -1703,6 +1895,16 @@ module Google
|
|
1703
1895
|
#
|
1704
1896
|
attr_reader :delete_channel
|
1705
1897
|
##
|
1898
|
+
# RPC-specific configuration for `get_provider`
|
1899
|
+
# @return [::Gapic::Config::Method]
|
1900
|
+
#
|
1901
|
+
attr_reader :get_provider
|
1902
|
+
##
|
1903
|
+
# RPC-specific configuration for `list_providers`
|
1904
|
+
# @return [::Gapic::Config::Method]
|
1905
|
+
#
|
1906
|
+
attr_reader :list_providers
|
1907
|
+
##
|
1706
1908
|
# RPC-specific configuration for `get_channel_connection`
|
1707
1909
|
# @return [::Gapic::Config::Method]
|
1708
1910
|
#
|
@@ -1745,6 +1947,10 @@ module Google
|
|
1745
1947
|
@update_channel = ::Gapic::Config::Method.new update_channel_config
|
1746
1948
|
delete_channel_config = parent_rpcs.delete_channel if parent_rpcs.respond_to? :delete_channel
|
1747
1949
|
@delete_channel = ::Gapic::Config::Method.new delete_channel_config
|
1950
|
+
get_provider_config = parent_rpcs.get_provider if parent_rpcs.respond_to? :get_provider
|
1951
|
+
@get_provider = ::Gapic::Config::Method.new get_provider_config
|
1952
|
+
list_providers_config = parent_rpcs.list_providers if parent_rpcs.respond_to? :list_providers
|
1953
|
+
@list_providers = ::Gapic::Config::Method.new list_providers_config
|
1748
1954
|
get_channel_connection_config = parent_rpcs.get_channel_connection if parent_rpcs.respond_to? :get_channel_connection
|
1749
1955
|
@get_channel_connection = ::Gapic::Config::Method.new get_channel_connection_config
|
1750
1956
|
list_channel_connections_config = parent_rpcs.list_channel_connections if parent_rpcs.respond_to? :list_channel_connections
|
@@ -98,6 +98,25 @@ module Google
|
|
98
98
|
"projects/#{project}/locations/#{location}"
|
99
99
|
end
|
100
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
|
+
|
101
120
|
##
|
102
121
|
# Create a fully-qualified ServiceAccount resource string.
|
103
122
|
#
|
@@ -9,6 +9,7 @@ require 'google/api/field_behavior_pb'
|
|
9
9
|
require 'google/api/resource_pb'
|
10
10
|
require 'google/cloud/eventarc/v1/channel_pb'
|
11
11
|
require 'google/cloud/eventarc/v1/channel_connection_pb'
|
12
|
+
require 'google/cloud/eventarc/v1/discovery_pb'
|
12
13
|
require 'google/cloud/eventarc/v1/trigger_pb'
|
13
14
|
require 'google/longrunning/operations_pb'
|
14
15
|
require 'google/protobuf/field_mask_pb'
|
@@ -77,6 +78,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
77
78
|
optional :name, :string, 1
|
78
79
|
optional :validate_only, :bool, 2
|
79
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
|
80
96
|
add_message "google.cloud.eventarc.v1.GetChannelConnectionRequest" do
|
81
97
|
optional :name, :string, 1
|
82
98
|
end
|
@@ -126,6 +142,9 @@ module Google
|
|
126
142
|
CreateChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CreateChannelRequest").msgclass
|
127
143
|
UpdateChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.UpdateChannelRequest").msgclass
|
128
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
|
129
148
|
GetChannelConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.GetChannelConnectionRequest").msgclass
|
130
149
|
ListChannelConnectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelConnectionsRequest").msgclass
|
131
150
|
ListChannelConnectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelConnectionsResponse").msgclass
|
@@ -54,6 +54,10 @@ module Google
|
|
54
54
|
rpc :UpdateChannel, ::Google::Cloud::Eventarc::V1::UpdateChannelRequest, ::Google::Longrunning::Operation
|
55
55
|
# Delete a single channel.
|
56
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
|
57
61
|
# Get a single ChannelConnection.
|
58
62
|
rpc :GetChannelConnection, ::Google::Cloud::Eventarc::V1::GetChannelConnectionRequest, ::Google::Cloud::Eventarc::V1::ChannelConnection
|
59
63
|
# List channel connections.
|
@@ -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
|
@@ -235,6 +235,59 @@ module Google
|
|
235
235
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
236
236
|
end
|
237
237
|
|
238
|
+
# The request message for the GetProvider method.
|
239
|
+
# @!attribute [rw] name
|
240
|
+
# @return [::String]
|
241
|
+
# Required. The name of the provider to get.
|
242
|
+
class GetProviderRequest
|
243
|
+
include ::Google::Protobuf::MessageExts
|
244
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
end
|
246
|
+
|
247
|
+
# The request message for the ListProviders method.
|
248
|
+
# @!attribute [rw] parent
|
249
|
+
# @return [::String]
|
250
|
+
# Required. The parent of the provider to get.
|
251
|
+
# @!attribute [rw] page_size
|
252
|
+
# @return [::Integer]
|
253
|
+
# The maximum number of providers to return on each page.
|
254
|
+
# @!attribute [rw] page_token
|
255
|
+
# @return [::String]
|
256
|
+
# The page token; provide the value from the `next_page_token` field in a
|
257
|
+
# previous `ListProviders` call to retrieve the subsequent page.
|
258
|
+
#
|
259
|
+
# When paginating, all other parameters provided to `ListProviders` must
|
260
|
+
# match the call that provided the page token.
|
261
|
+
# @!attribute [rw] order_by
|
262
|
+
# @return [::String]
|
263
|
+
# The sorting order of the resources returned. Value should be a
|
264
|
+
# comma-separated list of fields. The default sorting oder is ascending. To
|
265
|
+
# specify descending order for a field, append a `desc` suffix; for example:
|
266
|
+
# `name desc, _id`.
|
267
|
+
# @!attribute [rw] filter
|
268
|
+
# @return [::String]
|
269
|
+
# The filter field that the list request will filter on.
|
270
|
+
class ListProvidersRequest
|
271
|
+
include ::Google::Protobuf::MessageExts
|
272
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
273
|
+
end
|
274
|
+
|
275
|
+
# The response message for the `ListProviders` method.
|
276
|
+
# @!attribute [rw] providers
|
277
|
+
# @return [::Array<::Google::Cloud::Eventarc::V1::Provider>]
|
278
|
+
# The requested providers, up to the number specified in `page_size`.
|
279
|
+
# @!attribute [rw] next_page_token
|
280
|
+
# @return [::String]
|
281
|
+
# A page token that can be sent to ListProviders to request the next page.
|
282
|
+
# If this is empty, then there are no more pages.
|
283
|
+
# @!attribute [rw] unreachable
|
284
|
+
# @return [::Array<::String>]
|
285
|
+
# Unreachable resources, if any.
|
286
|
+
class ListProvidersResponse
|
287
|
+
include ::Google::Protobuf::MessageExts
|
288
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
289
|
+
end
|
290
|
+
|
238
291
|
# The request message for the GetChannelConnection method.
|
239
292
|
# @!attribute [rw] name
|
240
293
|
# @return [::String]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-eventarc-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -175,6 +175,7 @@ files:
|
|
175
175
|
- lib/google/cloud/eventarc/v1.rb
|
176
176
|
- lib/google/cloud/eventarc/v1/channel_connection_pb.rb
|
177
177
|
- lib/google/cloud/eventarc/v1/channel_pb.rb
|
178
|
+
- lib/google/cloud/eventarc/v1/discovery_pb.rb
|
178
179
|
- lib/google/cloud/eventarc/v1/eventarc.rb
|
179
180
|
- lib/google/cloud/eventarc/v1/eventarc/client.rb
|
180
181
|
- lib/google/cloud/eventarc/v1/eventarc/credentials.rb
|
@@ -189,6 +190,7 @@ files:
|
|
189
190
|
- proto_docs/google/api/resource.rb
|
190
191
|
- proto_docs/google/cloud/eventarc/v1/channel.rb
|
191
192
|
- proto_docs/google/cloud/eventarc/v1/channel_connection.rb
|
193
|
+
- proto_docs/google/cloud/eventarc/v1/discovery.rb
|
192
194
|
- proto_docs/google/cloud/eventarc/v1/eventarc.rb
|
193
195
|
- proto_docs/google/cloud/eventarc/v1/trigger.rb
|
194
196
|
- proto_docs/google/longrunning/operations.rb
|