Skip to content

Commit

Permalink
feat: add round-trip mode (#7836)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 696396549
Source-Link: googleapis/googleapis@2d08f07
Source-Link: googleapis/googleapis-gen@4338cca
Copy-Tag: eyJwIjoiTmV0d29ya01hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6IjQzMzhjY2FkMDVjN2Y4N2I2NzQ3YTEyYjMyYTNhM2Y5NmI4MWI4MWUifQ==
  • Loading branch information
gcf-owl-bot[bot] authored Nov 14, 2024
1 parent dba6b32 commit f687f8a
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 0 deletions.
Binary file modified NetworkManagement/metadata/V1/ConnectivityTest.php
Binary file not shown.
94 changes: 94 additions & 0 deletions NetworkManagement/src/V1/ConnectivityTest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,14 @@ public function createConnectivityTestTest()
$description = 'description-1724546052';
$protocol = 'protocol-989163880';
$displayName = 'displayName1615086568';
$roundTrip = true;
$bypassFirewallChecks = false;
$expectedResponse = new ConnectivityTest();
$expectedResponse->setName($name);
$expectedResponse->setDescription($description);
$expectedResponse->setProtocol($protocol);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setRoundTrip($roundTrip);
$expectedResponse->setBypassFirewallChecks($bypassFirewallChecks);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
Expand Down Expand Up @@ -379,12 +381,14 @@ public function getConnectivityTestTest()
$description = 'description-1724546052';
$protocol = 'protocol-989163880';
$displayName = 'displayName1615086568';
$roundTrip = true;
$bypassFirewallChecks = false;
$expectedResponse = new ConnectivityTest();
$expectedResponse->setName($name2);
$expectedResponse->setDescription($description);
$expectedResponse->setProtocol($protocol);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setRoundTrip($roundTrip);
$expectedResponse->setBypassFirewallChecks($bypassFirewallChecks);
$transport->addResponse($expectedResponse);
// Mock request
Expand Down Expand Up @@ -541,12 +545,14 @@ public function rerunConnectivityTestTest()
$description = 'description-1724546052';
$protocol = 'protocol-989163880';
$displayName = 'displayName1615086568';
$roundTrip = true;
$bypassFirewallChecks = false;
$expectedResponse = new ConnectivityTest();
$expectedResponse->setName($name2);
$expectedResponse->setDescription($description);
$expectedResponse->setProtocol($protocol);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setRoundTrip($roundTrip);
$expectedResponse->setBypassFirewallChecks($bypassFirewallChecks);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
Expand Down Expand Up @@ -676,12 +682,14 @@ public function updateConnectivityTestTest()
$description = 'description-1724546052';
$protocol = 'protocol-989163880';
$displayName = 'displayName1615086568';
$roundTrip = true;
$bypassFirewallChecks = false;
$expectedResponse = new ConnectivityTest();
$expectedResponse->setName($name);
$expectedResponse->setDescription($description);
$expectedResponse->setProtocol($protocol);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setRoundTrip($roundTrip);
$expectedResponse->setBypassFirewallChecks($bypassFirewallChecks);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
Expand Down Expand Up @@ -1156,12 +1164,14 @@ public function createConnectivityTestAsyncTest()
$description = 'description-1724546052';
$protocol = 'protocol-989163880';
$displayName = 'displayName1615086568';
$roundTrip = true;
$bypassFirewallChecks = false;
$expectedResponse = new ConnectivityTest();
$expectedResponse->setName($name);
$expectedResponse->setDescription($description);
$expectedResponse->setProtocol($protocol);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setRoundTrip($roundTrip);
$expectedResponse->setBypassFirewallChecks($bypassFirewallChecks);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
Expand Down

0 comments on commit f687f8a

Please sign in to comment.