Skip to content

Commit 319f6ec

Browse files
feat: [Eventarc] add wide-scope Eventarc GoogleApiSource flags (#8761)
* feat: add wide-scope Eventarc GoogleApiSource flags feat: add Eventarc Trigger RetryPolicy PiperOrigin-RevId: 836781847 Source-Link: googleapis/googleapis@c9ff4f1 Source-Link: googleapis/googleapis-gen@c146ad3 Copy-Tag: eyJwIjoiRXZlbnRhcmMvLk93bEJvdC55YW1sIiwiaCI6ImMxNDZhZDNkYjkxMTIyNjAzZjE1MzBiNjllN2ZkOTczYzE4Nzc1MDkifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 40b8566 commit 319f6ec

8 files changed

Lines changed: 410 additions & 27 deletions

File tree

332 Bytes
Binary file not shown.

Eventarc/metadata/V1/Trigger.php

116 Bytes
Binary file not shown.

Eventarc/src/V1/Client/EventarcClient.php

Lines changed: 49 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,7 @@ final class EventarcClient
178178
private const CODEGEN_NAME = 'gapic';
179179

180180
/** The default scopes required by the service. */
181-
public static $serviceScopes = [
182-
'https://www.googleapis.com/auth/cloud-platform',
183-
];
181+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
184182

185183
private $operationsClient;
186184

@@ -721,8 +719,10 @@ public function createChannel(CreateChannelRequest $request, array $callOptions
721719
*
722720
* @throws ApiException Thrown if the API call fails.
723721
*/
724-
public function createChannelConnection(CreateChannelConnectionRequest $request, array $callOptions = []): OperationResponse
725-
{
722+
public function createChannelConnection(
723+
CreateChannelConnectionRequest $request,
724+
array $callOptions = []
725+
): OperationResponse {
726726
return $this->startApiCall('CreateChannelConnection', $request, $callOptions)->wait();
727727
}
728728

@@ -773,8 +773,10 @@ public function createEnrollment(CreateEnrollmentRequest $request, array $callOp
773773
*
774774
* @throws ApiException Thrown if the API call fails.
775775
*/
776-
public function createGoogleApiSource(CreateGoogleApiSourceRequest $request, array $callOptions = []): OperationResponse
777-
{
776+
public function createGoogleApiSource(
777+
CreateGoogleApiSourceRequest $request,
778+
array $callOptions = []
779+
): OperationResponse {
778780
return $this->startApiCall('CreateGoogleApiSource', $request, $callOptions)->wait();
779781
}
780782

@@ -903,8 +905,10 @@ public function deleteChannel(DeleteChannelRequest $request, array $callOptions
903905
*
904906
* @throws ApiException Thrown if the API call fails.
905907
*/
906-
public function deleteChannelConnection(DeleteChannelConnectionRequest $request, array $callOptions = []): OperationResponse
907-
{
908+
public function deleteChannelConnection(
909+
DeleteChannelConnectionRequest $request,
910+
array $callOptions = []
911+
): OperationResponse {
908912
return $this->startApiCall('DeleteChannelConnection', $request, $callOptions)->wait();
909913
}
910914

@@ -955,8 +959,10 @@ public function deleteEnrollment(DeleteEnrollmentRequest $request, array $callOp
955959
*
956960
* @throws ApiException Thrown if the API call fails.
957961
*/
958-
public function deleteGoogleApiSource(DeleteGoogleApiSourceRequest $request, array $callOptions = []): OperationResponse
959-
{
962+
public function deleteGoogleApiSource(
963+
DeleteGoogleApiSourceRequest $request,
964+
array $callOptions = []
965+
): OperationResponse {
960966
return $this->startApiCall('DeleteGoogleApiSource', $request, $callOptions)->wait();
961967
}
962968

@@ -1085,8 +1091,10 @@ public function getChannel(GetChannelRequest $request, array $callOptions = []):
10851091
*
10861092
* @throws ApiException Thrown if the API call fails.
10871093
*/
1088-
public function getChannelConnection(GetChannelConnectionRequest $request, array $callOptions = []): ChannelConnection
1089-
{
1094+
public function getChannelConnection(
1095+
GetChannelConnectionRequest $request,
1096+
array $callOptions = []
1097+
): ChannelConnection {
10901098
return $this->startApiCall('GetChannelConnection', $request, $callOptions)->wait();
10911099
}
10921100

@@ -1165,8 +1173,10 @@ public function getGoogleApiSource(GetGoogleApiSourceRequest $request, array $ca
11651173
*
11661174
* @throws ApiException Thrown if the API call fails.
11671175
*/
1168-
public function getGoogleChannelConfig(GetGoogleChannelConfigRequest $request, array $callOptions = []): GoogleChannelConfig
1169-
{
1176+
public function getGoogleChannelConfig(
1177+
GetGoogleChannelConfigRequest $request,
1178+
array $callOptions = []
1179+
): GoogleChannelConfig {
11701180
return $this->startApiCall('GetGoogleChannelConfig', $request, $callOptions)->wait();
11711181
}
11721182

@@ -1295,8 +1305,10 @@ public function getTrigger(GetTriggerRequest $request, array $callOptions = []):
12951305
*
12961306
* @throws ApiException Thrown if the API call fails.
12971307
*/
1298-
public function listChannelConnections(ListChannelConnectionsRequest $request, array $callOptions = []): PagedListResponse
1299-
{
1308+
public function listChannelConnections(
1309+
ListChannelConnectionsRequest $request,
1310+
array $callOptions = []
1311+
): PagedListResponse {
13001312
return $this->startApiCall('ListChannelConnections', $request, $callOptions);
13011313
}
13021314

@@ -1373,8 +1385,10 @@ public function listEnrollments(ListEnrollmentsRequest $request, array $callOpti
13731385
*
13741386
* @throws ApiException Thrown if the API call fails.
13751387
*/
1376-
public function listGoogleApiSources(ListGoogleApiSourcesRequest $request, array $callOptions = []): PagedListResponse
1377-
{
1388+
public function listGoogleApiSources(
1389+
ListGoogleApiSourcesRequest $request,
1390+
array $callOptions = []
1391+
): PagedListResponse {
13781392
return $this->startApiCall('ListGoogleApiSources', $request, $callOptions);
13791393
}
13801394

@@ -1399,8 +1413,10 @@ public function listGoogleApiSources(ListGoogleApiSourcesRequest $request, array
13991413
*
14001414
* @throws ApiException Thrown if the API call fails.
14011415
*/
1402-
public function listMessageBusEnrollments(ListMessageBusEnrollmentsRequest $request, array $callOptions = []): PagedListResponse
1403-
{
1416+
public function listMessageBusEnrollments(
1417+
ListMessageBusEnrollmentsRequest $request,
1418+
array $callOptions = []
1419+
): PagedListResponse {
14041420
return $this->startApiCall('ListMessageBusEnrollments', $request, $callOptions);
14051421
}
14061422

@@ -1581,8 +1597,10 @@ public function updateEnrollment(UpdateEnrollmentRequest $request, array $callOp
15811597
*
15821598
* @throws ApiException Thrown if the API call fails.
15831599
*/
1584-
public function updateGoogleApiSource(UpdateGoogleApiSourceRequest $request, array $callOptions = []): OperationResponse
1585-
{
1600+
public function updateGoogleApiSource(
1601+
UpdateGoogleApiSourceRequest $request,
1602+
array $callOptions = []
1603+
): OperationResponse {
15861604
return $this->startApiCall('UpdateGoogleApiSource', $request, $callOptions)->wait();
15871605
}
15881606

@@ -1607,8 +1625,10 @@ public function updateGoogleApiSource(UpdateGoogleApiSourceRequest $request, arr
16071625
*
16081626
* @throws ApiException Thrown if the API call fails.
16091627
*/
1610-
public function updateGoogleChannelConfig(UpdateGoogleChannelConfigRequest $request, array $callOptions = []): GoogleChannelConfig
1611-
{
1628+
public function updateGoogleChannelConfig(
1629+
UpdateGoogleChannelConfigRequest $request,
1630+
array $callOptions = []
1631+
): GoogleChannelConfig {
16121632
return $this->startApiCall('UpdateGoogleChannelConfig', $request, $callOptions)->wait();
16131633
}
16141634

@@ -1826,8 +1846,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
18261846
*
18271847
* @throws ApiException Thrown if the API call fails.
18281848
*/
1829-
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
1830-
{
1849+
public function testIamPermissions(
1850+
TestIamPermissionsRequest $request,
1851+
array $callOptions = []
1852+
): TestIamPermissionsResponse {
18311853
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
18321854
}
18331855
}

Eventarc/src/V1/GoogleApiSource.php

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Eventarc/src/V1/GoogleApiSource/OrganizationSubscription.php

Lines changed: 68 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)