Skip to content

Commit

Permalink
feat: A new field satisfies_pzi is added to message `.google.cloud.…
Browse files Browse the repository at this point in the history
…managedkafka.v1.Cluster` (#7875)

feat: A new field `satisfies_pzs` is added to message `.google.cloud.managedkafka.v1.Cluster`
PiperOrigin-RevId: 702413947
Source-Link: googleapis/googleapis@b56dbf5
Source-Link: googleapis/googleapis-gen@52ade12
Copy-Tag: eyJwIjoiTWFuYWdlZEthZmthLy5Pd2xCb3QueWFtbCIsImgiOiI1MmFkZTEyNzRiOTBhNGRlZDllYWJhNGRlNDMxYTBhMDY5NjVkOTlmIn0=
  • Loading branch information
gcf-owl-bot[bot] authored Dec 6, 2024
1 parent e492a6c commit 8e47a90
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 0 deletions.
Binary file modified ManagedKafka/metadata/V1/Resources.php
Binary file not shown.
88 changes: 88 additions & 0 deletions ManagedKafka/src/V1/Cluster.php

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

16 changes: 16 additions & 0 deletions ManagedKafka/tests/Unit/V1/Client/ManagedKafkaClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,12 @@ public function createClusterTest()
$incompleteOperation->setDone(false);
$transport->addResponse($incompleteOperation);
$name = 'name3373707';
$satisfiesPzi = false;
$satisfiesPzs = false;
$expectedResponse = new Cluster();
$expectedResponse->setName($name);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
Expand Down Expand Up @@ -602,8 +606,12 @@ public function getClusterTest()
$this->assertTrue($transport->isExhausted());
// Mock response
$name2 = 'name2-1052831874';
$satisfiesPzi = false;
$satisfiesPzs = false;
$expectedResponse = new Cluster();
$expectedResponse->setName($name2);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]');
Expand Down Expand Up @@ -1026,8 +1034,12 @@ public function updateClusterTest()
$incompleteOperation->setDone(false);
$transport->addResponse($incompleteOperation);
$name = 'name3373707';
$satisfiesPzi = false;
$satisfiesPzs = false;
$expectedResponse = new Cluster();
$expectedResponse->setName($name);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
Expand Down Expand Up @@ -1456,8 +1468,12 @@ public function createClusterAsyncTest()
$incompleteOperation->setDone(false);
$transport->addResponse($incompleteOperation);
$name = 'name3373707';
$satisfiesPzi = false;
$satisfiesPzs = false;
$expectedResponse = new Cluster();
$expectedResponse->setName($name);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
Expand Down

0 comments on commit 8e47a90

Please sign in to comment.