google-cloud-eventarc-v1 0.7.0 → 0.9.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.
@@ -35,6 +35,9 @@ module Google
35
35
  # Google Cloud services and forward them to supported destinations.
36
36
  #
37
37
  class Client
38
+ # @private
39
+ DEFAULT_ENDPOINT_TEMPLATE = "eventarc.$UNIVERSE_DOMAIN$"
40
+
38
41
  include Paths
39
42
 
40
43
  # @private
@@ -95,6 +98,15 @@ module Google
95
98
  @config
96
99
  end
97
100
 
101
+ ##
102
+ # The effective universe domain
103
+ #
104
+ # @return [String]
105
+ #
106
+ def universe_domain
107
+ @eventarc_stub.universe_domain
108
+ end
109
+
98
110
  ##
99
111
  # Create a new Eventarc REST client object.
100
112
  #
@@ -122,8 +134,9 @@ module Google
122
134
  credentials = @config.credentials
123
135
  # Use self-signed JWT if the endpoint is unchanged from default,
124
136
  # but only if the default endpoint does not have a region prefix.
125
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
126
- !@config.endpoint.split(".").first.include?("-")
137
+ enable_self_signed_jwt = @config.endpoint.nil? ||
138
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
139
+ !@config.endpoint.split(".").first.include?("-"))
127
140
  credentials ||= Credentials.default scope: @config.scope,
128
141
  enable_self_signed_jwt: enable_self_signed_jwt
129
142
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -137,12 +150,14 @@ module Google
137
150
  config.credentials = credentials
138
151
  config.quota_project = @quota_project_id
139
152
  config.endpoint = @config.endpoint
153
+ config.universe_domain = @config.universe_domain
140
154
  end
141
155
 
142
156
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
143
157
  config.credentials = credentials
144
158
  config.quota_project = @quota_project_id
145
159
  config.endpoint = @config.endpoint
160
+ config.universe_domain = @config.universe_domain
146
161
  config.bindings_override = @config.bindings_override
147
162
  end
148
163
 
@@ -150,10 +165,16 @@ module Google
150
165
  config.credentials = credentials
151
166
  config.quota_project = @quota_project_id
152
167
  config.endpoint = @config.endpoint
168
+ config.universe_domain = @config.universe_domain
153
169
  config.bindings_override = @config.bindings_override
154
170
  end
155
171
 
156
- @eventarc_stub = ::Google::Cloud::Eventarc::V1::Eventarc::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
172
+ @eventarc_stub = ::Google::Cloud::Eventarc::V1::Eventarc::Rest::ServiceStub.new(
173
+ endpoint: @config.endpoint,
174
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
175
+ universe_domain: @config.universe_domain,
176
+ credentials: credentials
177
+ )
157
178
  end
158
179
 
159
180
  ##
@@ -206,6 +227,22 @@ module Google
206
227
  # @return [::Google::Cloud::Eventarc::V1::Trigger]
207
228
  #
208
229
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
230
+ #
231
+ # @example Basic example
232
+ # require "google/cloud/eventarc/v1"
233
+ #
234
+ # # Create a client object. The client can be reused for multiple calls.
235
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
236
+ #
237
+ # # Create a request. To set request fields, pass in keyword arguments.
238
+ # request = Google::Cloud::Eventarc::V1::GetTriggerRequest.new
239
+ #
240
+ # # Call the get_trigger method.
241
+ # result = client.get_trigger request
242
+ #
243
+ # # The returned object is of type Google::Cloud::Eventarc::V1::Trigger.
244
+ # p result
245
+ #
209
246
  def get_trigger request, options = nil
210
247
  raise ::ArgumentError, "request must be provided" if request.nil?
211
248
 
@@ -287,6 +324,26 @@ module Google
287
324
  # @return [::Google::Cloud::Eventarc::V1::ListTriggersResponse]
288
325
  #
289
326
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
327
+ #
328
+ # @example Basic example
329
+ # require "google/cloud/eventarc/v1"
330
+ #
331
+ # # Create a client object. The client can be reused for multiple calls.
332
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
333
+ #
334
+ # # Create a request. To set request fields, pass in keyword arguments.
335
+ # request = Google::Cloud::Eventarc::V1::ListTriggersRequest.new
336
+ #
337
+ # # Call the list_triggers method.
338
+ # result = client.list_triggers request
339
+ #
340
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
341
+ # # over elements, and API calls will be issued to fetch pages as needed.
342
+ # result.each do |item|
343
+ # # Each element is of type ::Google::Cloud::Eventarc::V1::Trigger.
344
+ # p item
345
+ # end
346
+ #
290
347
  def list_triggers request, options = nil
291
348
  raise ::ArgumentError, "request must be provided" if request.nil?
292
349
 
@@ -356,6 +413,29 @@ module Google
356
413
  # @return [::Gapic::Operation]
357
414
  #
358
415
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
416
+ #
417
+ # @example Basic example
418
+ # require "google/cloud/eventarc/v1"
419
+ #
420
+ # # Create a client object. The client can be reused for multiple calls.
421
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
422
+ #
423
+ # # Create a request. To set request fields, pass in keyword arguments.
424
+ # request = Google::Cloud::Eventarc::V1::CreateTriggerRequest.new
425
+ #
426
+ # # Call the create_trigger method.
427
+ # result = client.create_trigger request
428
+ #
429
+ # # The returned object is of type Gapic::Operation. You can use it to
430
+ # # check the status of an operation, cancel it, or wait for results.
431
+ # # Here is how to wait for a response.
432
+ # result.wait_until_done! timeout: 60
433
+ # if result.response?
434
+ # p result.response
435
+ # else
436
+ # puts "No response received."
437
+ # end
438
+ #
359
439
  def create_trigger request, options = nil
360
440
  raise ::ArgumentError, "request must be provided" if request.nil?
361
441
 
@@ -429,6 +509,29 @@ module Google
429
509
  # @return [::Gapic::Operation]
430
510
  #
431
511
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
512
+ #
513
+ # @example Basic example
514
+ # require "google/cloud/eventarc/v1"
515
+ #
516
+ # # Create a client object. The client can be reused for multiple calls.
517
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
518
+ #
519
+ # # Create a request. To set request fields, pass in keyword arguments.
520
+ # request = Google::Cloud::Eventarc::V1::UpdateTriggerRequest.new
521
+ #
522
+ # # Call the update_trigger method.
523
+ # result = client.update_trigger request
524
+ #
525
+ # # The returned object is of type Gapic::Operation. You can use it to
526
+ # # check the status of an operation, cancel it, or wait for results.
527
+ # # Here is how to wait for a response.
528
+ # result.wait_until_done! timeout: 60
529
+ # if result.response?
530
+ # p result.response
531
+ # else
532
+ # puts "No response received."
533
+ # end
534
+ #
432
535
  def update_trigger request, options = nil
433
536
  raise ::ArgumentError, "request must be provided" if request.nil?
434
537
 
@@ -501,6 +604,29 @@ module Google
501
604
  # @return [::Gapic::Operation]
502
605
  #
503
606
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
607
+ #
608
+ # @example Basic example
609
+ # require "google/cloud/eventarc/v1"
610
+ #
611
+ # # Create a client object. The client can be reused for multiple calls.
612
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
613
+ #
614
+ # # Create a request. To set request fields, pass in keyword arguments.
615
+ # request = Google::Cloud::Eventarc::V1::DeleteTriggerRequest.new
616
+ #
617
+ # # Call the delete_trigger method.
618
+ # result = client.delete_trigger request
619
+ #
620
+ # # The returned object is of type Gapic::Operation. You can use it to
621
+ # # check the status of an operation, cancel it, or wait for results.
622
+ # # Here is how to wait for a response.
623
+ # result.wait_until_done! timeout: 60
624
+ # if result.response?
625
+ # p result.response
626
+ # else
627
+ # puts "No response received."
628
+ # end
629
+ #
504
630
  def delete_trigger request, options = nil
505
631
  raise ::ArgumentError, "request must be provided" if request.nil?
506
632
 
@@ -564,6 +690,22 @@ module Google
564
690
  # @return [::Google::Cloud::Eventarc::V1::Channel]
565
691
  #
566
692
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
693
+ #
694
+ # @example Basic example
695
+ # require "google/cloud/eventarc/v1"
696
+ #
697
+ # # Create a client object. The client can be reused for multiple calls.
698
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
699
+ #
700
+ # # Create a request. To set request fields, pass in keyword arguments.
701
+ # request = Google::Cloud::Eventarc::V1::GetChannelRequest.new
702
+ #
703
+ # # Call the get_channel method.
704
+ # result = client.get_channel request
705
+ #
706
+ # # The returned object is of type Google::Cloud::Eventarc::V1::Channel.
707
+ # p result
708
+ #
567
709
  def get_channel request, options = nil
568
710
  raise ::ArgumentError, "request must be provided" if request.nil?
569
711
 
@@ -641,6 +783,26 @@ module Google
641
783
  # @return [::Google::Cloud::Eventarc::V1::ListChannelsResponse]
642
784
  #
643
785
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
786
+ #
787
+ # @example Basic example
788
+ # require "google/cloud/eventarc/v1"
789
+ #
790
+ # # Create a client object. The client can be reused for multiple calls.
791
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
792
+ #
793
+ # # Create a request. To set request fields, pass in keyword arguments.
794
+ # request = Google::Cloud::Eventarc::V1::ListChannelsRequest.new
795
+ #
796
+ # # Call the list_channels method.
797
+ # result = client.list_channels request
798
+ #
799
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
800
+ # # over elements, and API calls will be issued to fetch pages as needed.
801
+ # result.each do |item|
802
+ # # Each element is of type ::Google::Cloud::Eventarc::V1::Channel.
803
+ # p item
804
+ # end
805
+ #
644
806
  def list_channels request, options = nil
645
807
  raise ::ArgumentError, "request must be provided" if request.nil?
646
808
 
@@ -710,6 +872,29 @@ module Google
710
872
  # @return [::Gapic::Operation]
711
873
  #
712
874
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
875
+ #
876
+ # @example Basic example
877
+ # require "google/cloud/eventarc/v1"
878
+ #
879
+ # # Create a client object. The client can be reused for multiple calls.
880
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
881
+ #
882
+ # # Create a request. To set request fields, pass in keyword arguments.
883
+ # request = Google::Cloud::Eventarc::V1::CreateChannelRequest.new
884
+ #
885
+ # # Call the create_channel method.
886
+ # result = client.create_channel request
887
+ #
888
+ # # The returned object is of type Gapic::Operation. You can use it to
889
+ # # check the status of an operation, cancel it, or wait for results.
890
+ # # Here is how to wait for a response.
891
+ # result.wait_until_done! timeout: 60
892
+ # if result.response?
893
+ # p result.response
894
+ # else
895
+ # puts "No response received."
896
+ # end
897
+ #
713
898
  def create_channel request, options = nil
714
899
  raise ::ArgumentError, "request must be provided" if request.nil?
715
900
 
@@ -780,6 +965,29 @@ module Google
780
965
  # @return [::Gapic::Operation]
781
966
  #
782
967
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
968
+ #
969
+ # @example Basic example
970
+ # require "google/cloud/eventarc/v1"
971
+ #
972
+ # # Create a client object. The client can be reused for multiple calls.
973
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
974
+ #
975
+ # # Create a request. To set request fields, pass in keyword arguments.
976
+ # request = Google::Cloud::Eventarc::V1::UpdateChannelRequest.new
977
+ #
978
+ # # Call the update_channel method.
979
+ # result = client.update_channel request
980
+ #
981
+ # # The returned object is of type Gapic::Operation. You can use it to
982
+ # # check the status of an operation, cancel it, or wait for results.
983
+ # # Here is how to wait for a response.
984
+ # result.wait_until_done! timeout: 60
985
+ # if result.response?
986
+ # p result.response
987
+ # else
988
+ # puts "No response received."
989
+ # end
990
+ #
783
991
  def update_channel request, options = nil
784
992
  raise ::ArgumentError, "request must be provided" if request.nil?
785
993
 
@@ -846,6 +1054,29 @@ module Google
846
1054
  # @return [::Gapic::Operation]
847
1055
  #
848
1056
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1057
+ #
1058
+ # @example Basic example
1059
+ # require "google/cloud/eventarc/v1"
1060
+ #
1061
+ # # Create a client object. The client can be reused for multiple calls.
1062
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
1063
+ #
1064
+ # # Create a request. To set request fields, pass in keyword arguments.
1065
+ # request = Google::Cloud::Eventarc::V1::DeleteChannelRequest.new
1066
+ #
1067
+ # # Call the delete_channel method.
1068
+ # result = client.delete_channel request
1069
+ #
1070
+ # # The returned object is of type Gapic::Operation. You can use it to
1071
+ # # check the status of an operation, cancel it, or wait for results.
1072
+ # # Here is how to wait for a response.
1073
+ # result.wait_until_done! timeout: 60
1074
+ # if result.response?
1075
+ # p result.response
1076
+ # else
1077
+ # puts "No response received."
1078
+ # end
1079
+ #
849
1080
  def delete_channel request, options = nil
850
1081
  raise ::ArgumentError, "request must be provided" if request.nil?
851
1082
 
@@ -909,6 +1140,22 @@ module Google
909
1140
  # @return [::Google::Cloud::Eventarc::V1::Provider]
910
1141
  #
911
1142
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1143
+ #
1144
+ # @example Basic example
1145
+ # require "google/cloud/eventarc/v1"
1146
+ #
1147
+ # # Create a client object. The client can be reused for multiple calls.
1148
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
1149
+ #
1150
+ # # Create a request. To set request fields, pass in keyword arguments.
1151
+ # request = Google::Cloud::Eventarc::V1::GetProviderRequest.new
1152
+ #
1153
+ # # Call the get_provider method.
1154
+ # result = client.get_provider request
1155
+ #
1156
+ # # The returned object is of type Google::Cloud::Eventarc::V1::Provider.
1157
+ # p result
1158
+ #
912
1159
  def get_provider request, options = nil
913
1160
  raise ::ArgumentError, "request must be provided" if request.nil?
914
1161
 
@@ -986,6 +1233,26 @@ module Google
986
1233
  # @return [::Google::Cloud::Eventarc::V1::ListProvidersResponse]
987
1234
  #
988
1235
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1236
+ #
1237
+ # @example Basic example
1238
+ # require "google/cloud/eventarc/v1"
1239
+ #
1240
+ # # Create a client object. The client can be reused for multiple calls.
1241
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
1242
+ #
1243
+ # # Create a request. To set request fields, pass in keyword arguments.
1244
+ # request = Google::Cloud::Eventarc::V1::ListProvidersRequest.new
1245
+ #
1246
+ # # Call the list_providers method.
1247
+ # result = client.list_providers request
1248
+ #
1249
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1250
+ # # over elements, and API calls will be issued to fetch pages as needed.
1251
+ # result.each do |item|
1252
+ # # Each element is of type ::Google::Cloud::Eventarc::V1::Provider.
1253
+ # p item
1254
+ # end
1255
+ #
989
1256
  def list_providers request, options = nil
990
1257
  raise ::ArgumentError, "request must be provided" if request.nil?
991
1258
 
@@ -1048,6 +1315,22 @@ module Google
1048
1315
  # @return [::Google::Cloud::Eventarc::V1::ChannelConnection]
1049
1316
  #
1050
1317
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1318
+ #
1319
+ # @example Basic example
1320
+ # require "google/cloud/eventarc/v1"
1321
+ #
1322
+ # # Create a client object. The client can be reused for multiple calls.
1323
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
1324
+ #
1325
+ # # Create a request. To set request fields, pass in keyword arguments.
1326
+ # request = Google::Cloud::Eventarc::V1::GetChannelConnectionRequest.new
1327
+ #
1328
+ # # Call the get_channel_connection method.
1329
+ # result = client.get_channel_connection request
1330
+ #
1331
+ # # The returned object is of type Google::Cloud::Eventarc::V1::ChannelConnection.
1332
+ # p result
1333
+ #
1051
1334
  def get_channel_connection request, options = nil
1052
1335
  raise ::ArgumentError, "request must be provided" if request.nil?
1053
1336
 
@@ -1120,6 +1403,26 @@ module Google
1120
1403
  # @return [::Google::Cloud::Eventarc::V1::ListChannelConnectionsResponse]
1121
1404
  #
1122
1405
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1406
+ #
1407
+ # @example Basic example
1408
+ # require "google/cloud/eventarc/v1"
1409
+ #
1410
+ # # Create a client object. The client can be reused for multiple calls.
1411
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
1412
+ #
1413
+ # # Create a request. To set request fields, pass in keyword arguments.
1414
+ # request = Google::Cloud::Eventarc::V1::ListChannelConnectionsRequest.new
1415
+ #
1416
+ # # Call the list_channel_connections method.
1417
+ # result = client.list_channel_connections request
1418
+ #
1419
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1420
+ # # over elements, and API calls will be issued to fetch pages as needed.
1421
+ # result.each do |item|
1422
+ # # Each element is of type ::Google::Cloud::Eventarc::V1::ChannelConnection.
1423
+ # p item
1424
+ # end
1425
+ #
1123
1426
  def list_channel_connections request, options = nil
1124
1427
  raise ::ArgumentError, "request must be provided" if request.nil?
1125
1428
 
@@ -1186,6 +1489,29 @@ module Google
1186
1489
  # @return [::Gapic::Operation]
1187
1490
  #
1188
1491
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1492
+ #
1493
+ # @example Basic example
1494
+ # require "google/cloud/eventarc/v1"
1495
+ #
1496
+ # # Create a client object. The client can be reused for multiple calls.
1497
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
1498
+ #
1499
+ # # Create a request. To set request fields, pass in keyword arguments.
1500
+ # request = Google::Cloud::Eventarc::V1::CreateChannelConnectionRequest.new
1501
+ #
1502
+ # # Call the create_channel_connection method.
1503
+ # result = client.create_channel_connection request
1504
+ #
1505
+ # # The returned object is of type Gapic::Operation. You can use it to
1506
+ # # check the status of an operation, cancel it, or wait for results.
1507
+ # # Here is how to wait for a response.
1508
+ # result.wait_until_done! timeout: 60
1509
+ # if result.response?
1510
+ # p result.response
1511
+ # else
1512
+ # puts "No response received."
1513
+ # end
1514
+ #
1189
1515
  def create_channel_connection request, options = nil
1190
1516
  raise ::ArgumentError, "request must be provided" if request.nil?
1191
1517
 
@@ -1249,6 +1575,29 @@ module Google
1249
1575
  # @return [::Gapic::Operation]
1250
1576
  #
1251
1577
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1578
+ #
1579
+ # @example Basic example
1580
+ # require "google/cloud/eventarc/v1"
1581
+ #
1582
+ # # Create a client object. The client can be reused for multiple calls.
1583
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
1584
+ #
1585
+ # # Create a request. To set request fields, pass in keyword arguments.
1586
+ # request = Google::Cloud::Eventarc::V1::DeleteChannelConnectionRequest.new
1587
+ #
1588
+ # # Call the delete_channel_connection method.
1589
+ # result = client.delete_channel_connection request
1590
+ #
1591
+ # # The returned object is of type Gapic::Operation. You can use it to
1592
+ # # check the status of an operation, cancel it, or wait for results.
1593
+ # # Here is how to wait for a response.
1594
+ # result.wait_until_done! timeout: 60
1595
+ # if result.response?
1596
+ # p result.response
1597
+ # else
1598
+ # puts "No response received."
1599
+ # end
1600
+ #
1252
1601
  def delete_channel_connection request, options = nil
1253
1602
  raise ::ArgumentError, "request must be provided" if request.nil?
1254
1603
 
@@ -1312,6 +1661,22 @@ module Google
1312
1661
  # @return [::Google::Cloud::Eventarc::V1::GoogleChannelConfig]
1313
1662
  #
1314
1663
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1664
+ #
1665
+ # @example Basic example
1666
+ # require "google/cloud/eventarc/v1"
1667
+ #
1668
+ # # Create a client object. The client can be reused for multiple calls.
1669
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
1670
+ #
1671
+ # # Create a request. To set request fields, pass in keyword arguments.
1672
+ # request = Google::Cloud::Eventarc::V1::GetGoogleChannelConfigRequest.new
1673
+ #
1674
+ # # Call the get_google_channel_config method.
1675
+ # result = client.get_google_channel_config request
1676
+ #
1677
+ # # The returned object is of type Google::Cloud::Eventarc::V1::GoogleChannelConfig.
1678
+ # p result
1679
+ #
1315
1680
  def get_google_channel_config request, options = nil
1316
1681
  raise ::ArgumentError, "request must be provided" if request.nil?
1317
1682
 
@@ -1378,6 +1743,22 @@ module Google
1378
1743
  # @return [::Google::Cloud::Eventarc::V1::GoogleChannelConfig]
1379
1744
  #
1380
1745
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1746
+ #
1747
+ # @example Basic example
1748
+ # require "google/cloud/eventarc/v1"
1749
+ #
1750
+ # # Create a client object. The client can be reused for multiple calls.
1751
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
1752
+ #
1753
+ # # Create a request. To set request fields, pass in keyword arguments.
1754
+ # request = Google::Cloud::Eventarc::V1::UpdateGoogleChannelConfigRequest.new
1755
+ #
1756
+ # # Call the update_google_channel_config method.
1757
+ # result = client.update_google_channel_config request
1758
+ #
1759
+ # # The returned object is of type Google::Cloud::Eventarc::V1::GoogleChannelConfig.
1760
+ # p result
1761
+ #
1381
1762
  def update_google_channel_config request, options = nil
1382
1763
  raise ::ArgumentError, "request must be provided" if request.nil?
1383
1764
 
@@ -1443,9 +1824,9 @@ module Google
1443
1824
  # end
1444
1825
  #
1445
1826
  # @!attribute [rw] endpoint
1446
- # The hostname or hostname:port of the service endpoint.
1447
- # Defaults to `"eventarc.googleapis.com"`.
1448
- # @return [::String]
1827
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1828
+ # nil, indicating to use the default endpoint in the current universe domain.
1829
+ # @return [::String,nil]
1449
1830
  # @!attribute [rw] credentials
1450
1831
  # Credentials to send with calls. You may provide any of the following types:
1451
1832
  # * (`String`) The path to a service account key file in JSON format
@@ -1482,13 +1863,20 @@ module Google
1482
1863
  # @!attribute [rw] quota_project
1483
1864
  # A separate project against which to charge quota.
1484
1865
  # @return [::String]
1866
+ # @!attribute [rw] universe_domain
1867
+ # The universe domain within which to make requests. This determines the
1868
+ # default endpoint URL. The default value of nil uses the environment
1869
+ # universe (usually the default "googleapis.com" universe).
1870
+ # @return [::String,nil]
1485
1871
  #
1486
1872
  class Configuration
1487
1873
  extend ::Gapic::Config
1488
1874
 
1875
+ # @private
1876
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1489
1877
  DEFAULT_ENDPOINT = "eventarc.googleapis.com"
1490
1878
 
1491
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1879
+ config_attr :endpoint, nil, ::String, nil
1492
1880
  config_attr :credentials, nil do |value|
1493
1881
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1494
1882
  allowed.any? { |klass| klass === value }
@@ -1500,6 +1888,7 @@ module Google
1500
1888
  config_attr :metadata, nil, ::Hash, nil
1501
1889
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1502
1890
  config_attr :quota_project, nil, ::String, nil
1891
+ config_attr :universe_domain, nil, ::String, nil
1503
1892
 
1504
1893
  # @private
1505
1894
  # Overrides for http bindings for the RPCs of this service