google-cloud-eventarc-v1 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0523aebe37bde23d9c8ecd482b0017abb98f21aa25a0545b26c2bc039e1c8181
4
- data.tar.gz: 42486d51632ab993ed9a6e6e4ecfbd1ae6aa009065520c34d06261bb8780f3cd
3
+ metadata.gz: 556d3e357f532c9b1c050c56cfcb5372b7617ab33cff2f461d42460bd29d5336
4
+ data.tar.gz: 4b553179acf44e29090053556ec4dc66f44b6c4cfbc50190ef7d651365049779
5
5
  SHA512:
6
- metadata.gz: 2225480db54ad3d7541fc4bec5cd4ad8a5fab7f95436f73cdc1bf1d796fa3e7dc93c6fda796e020a8e793d3bcf489ae89d42acc1b414e188667f6af2b9a891b3
7
- data.tar.gz: fbb7965bf0728e45b2ccc44aa34cdcc1c0c725fe489544f11e190040fb125ab513d8c75eed6628bc74e2bfcb9d9c01b88cc86d1b853940e968138a667755a219
6
+ metadata.gz: 5ef960277d76680015f30fb4135f7144e9ee901ed22d3e4efef459192e01d9adfef9a29b61b0c1980bd7f797f099f0a6f774061168321bec6c58abe8475bc473
7
+ data.tar.gz: 9f673eb30fa66259a9c9f10bcbad08a694741e505475191ded9b6e2bd754f919857899925ba24829fe71326f908d9fac55bdccd7e3b93d6f1441e1f33fb0ca35
data/README.md CHANGED
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/eventarc/v1/channel_connection.proto
3
3
 
4
- require 'google/api/annotations_pb'
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/channel_connection.proto", :syntax => :proto3) do
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/eventarc/v1/channel.proto
3
3
 
4
- require 'google/api/annotations_pb'
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/channel.proto", :syntax => :proto3) do
@@ -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
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -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
  #
@@ -1,17 +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'
8
10
  require 'google/cloud/eventarc/v1/channel_pb'
9
11
  require 'google/cloud/eventarc/v1/channel_connection_pb'
12
+ require 'google/cloud/eventarc/v1/discovery_pb'
10
13
  require 'google/cloud/eventarc/v1/trigger_pb'
11
14
  require 'google/longrunning/operations_pb'
12
15
  require 'google/protobuf/field_mask_pb'
13
16
  require 'google/protobuf/timestamp_pb'
14
- require 'google/protobuf'
15
17
 
16
18
  Google::Protobuf::DescriptorPool.generated_pool.build do
17
19
  add_file("google/cloud/eventarc/v1/eventarc.proto", :syntax => :proto3) do
@@ -76,6 +78,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
76
78
  optional :name, :string, 1
77
79
  optional :validate_only, :bool, 2
78
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
79
96
  add_message "google.cloud.eventarc.v1.GetChannelConnectionRequest" do
80
97
  optional :name, :string, 1
81
98
  end
@@ -125,6 +142,9 @@ module Google
125
142
  CreateChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CreateChannelRequest").msgclass
126
143
  UpdateChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.UpdateChannelRequest").msgclass
127
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
128
148
  GetChannelConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.GetChannelConnectionRequest").msgclass
129
149
  ListChannelConnectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelConnectionsRequest").msgclass
130
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.
@@ -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/api/annotations_pb'
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Eventarc
23
23
  module V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/eventarc/v1"
29
31
  # client = ::Google::Cloud::Eventarc::V1::Eventarc::Client.new
30
32
  #
@@ -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]
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example:
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.2.0
4
+ version: 0.4.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-02-10 00:00:00.000000000 Z
11
+ date: 2022-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: '0.10'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.25.1
53
+ version: 1.26.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.25.1
60
+ version: 1.26.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.14'
67
+ version: '5.16'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '5.14'
74
+ version: '5.16'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest-focus
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '12.0'
109
+ version: '13.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -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
@@ -210,14 +212,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
210
212
  requirements:
211
213
  - - ">="
212
214
  - !ruby/object:Gem::Version
213
- version: '2.5'
215
+ version: '2.6'
214
216
  required_rubygems_version: !ruby/object:Gem::Requirement
215
217
  requirements:
216
218
  - - ">="
217
219
  - !ruby/object:Gem::Version
218
220
  version: '0'
219
221
  requirements: []
220
- rubygems_version: 3.3.5
222
+ rubygems_version: 3.3.14
221
223
  signing_key:
222
224
  specification_version: 4
223
225
  summary: API Client library for the Eventarc V1 API