Skip to content

Commit 93211a7

Browse files
feat: [AiPlatform] add private_model_server_enabled to in Endpoint.proto (#8589)
* feat: add private_model_server_enabled to in Endpoint.proto PiperOrigin-RevId: 806366860 Source-Link: googleapis/googleapis@69e69bf Source-Link: googleapis/googleapis-gen@c537c4e Copy-Tag: eyJwIjoiQWlQbGF0Zm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiYzUzN2M0ZTliNTc5MzBhNDIyNTU0MTZhODIyZWQzZGU5NDFiNDNkYyJ9 * 🦉 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 0fa7ebe commit 93211a7

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed
38 Bytes
Binary file not shown.

AiPlatform/src/V1/Endpoint.php

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

AiPlatform/tests/Unit/V1/Client/EndpointServiceClientTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ public function createEndpointTest()
122122
$dedicatedEndpointDns = 'dedicatedEndpointDns598984655';
123123
$satisfiesPzs = false;
124124
$satisfiesPzi = false;
125+
$privateModelServerEnabled = false;
125126
$expectedResponse = new Endpoint();
126127
$expectedResponse->setName($name);
127128
$expectedResponse->setDisplayName($displayName);
@@ -134,6 +135,7 @@ public function createEndpointTest()
134135
$expectedResponse->setDedicatedEndpointDns($dedicatedEndpointDns);
135136
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
136137
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
138+
$expectedResponse->setPrivateModelServerEnabled($privateModelServerEnabled);
137139
$anyResponse = new Any();
138140
$anyResponse->setValue($expectedResponse->serializeToString());
139141
$completeOperation = new Operation();
@@ -510,6 +512,7 @@ public function getEndpointTest()
510512
$dedicatedEndpointDns = 'dedicatedEndpointDns598984655';
511513
$satisfiesPzs = false;
512514
$satisfiesPzi = false;
515+
$privateModelServerEnabled = false;
513516
$expectedResponse = new Endpoint();
514517
$expectedResponse->setName($name2);
515518
$expectedResponse->setDisplayName($displayName);
@@ -522,6 +525,7 @@ public function getEndpointTest()
522525
$expectedResponse->setDedicatedEndpointDns($dedicatedEndpointDns);
523526
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
524527
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
528+
$expectedResponse->setPrivateModelServerEnabled($privateModelServerEnabled);
525529
$transport->addResponse($expectedResponse);
526530
// Mock request
527531
$formattedName = $gapicClient->endpointName('[PROJECT]', '[LOCATION]', '[ENDPOINT]');
@@ -928,6 +932,7 @@ public function updateEndpointTest()
928932
$dedicatedEndpointDns = 'dedicatedEndpointDns598984655';
929933
$satisfiesPzs = false;
930934
$satisfiesPzi = false;
935+
$privateModelServerEnabled = false;
931936
$expectedResponse = new Endpoint();
932937
$expectedResponse->setName($name);
933938
$expectedResponse->setDisplayName($displayName);
@@ -940,6 +945,7 @@ public function updateEndpointTest()
940945
$expectedResponse->setDedicatedEndpointDns($dedicatedEndpointDns);
941946
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
942947
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
948+
$expectedResponse->setPrivateModelServerEnabled($privateModelServerEnabled);
943949
$transport->addResponse($expectedResponse);
944950
// Mock request
945951
$endpoint = new Endpoint();
@@ -1033,6 +1039,7 @@ public function updateEndpointLongRunningTest()
10331039
$dedicatedEndpointDns = 'dedicatedEndpointDns598984655';
10341040
$satisfiesPzs = false;
10351041
$satisfiesPzi = false;
1042+
$privateModelServerEnabled = false;
10361043
$expectedResponse = new Endpoint();
10371044
$expectedResponse->setName($name);
10381045
$expectedResponse->setDisplayName($displayName);
@@ -1045,6 +1052,7 @@ public function updateEndpointLongRunningTest()
10451052
$expectedResponse->setDedicatedEndpointDns($dedicatedEndpointDns);
10461053
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
10471054
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
1055+
$expectedResponse->setPrivateModelServerEnabled($privateModelServerEnabled);
10481056
$anyResponse = new Any();
10491057
$anyResponse->setValue($expectedResponse->serializeToString());
10501058
$completeOperation = new Operation();
@@ -1514,6 +1522,7 @@ public function createEndpointAsyncTest()
15141522
$dedicatedEndpointDns = 'dedicatedEndpointDns598984655';
15151523
$satisfiesPzs = false;
15161524
$satisfiesPzi = false;
1525+
$privateModelServerEnabled = false;
15171526
$expectedResponse = new Endpoint();
15181527
$expectedResponse->setName($name);
15191528
$expectedResponse->setDisplayName($displayName);
@@ -1526,6 +1535,7 @@ public function createEndpointAsyncTest()
15261535
$expectedResponse->setDedicatedEndpointDns($dedicatedEndpointDns);
15271536
$expectedResponse->setSatisfiesPzs($satisfiesPzs);
15281537
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
1538+
$expectedResponse->setPrivateModelServerEnabled($privateModelServerEnabled);
15291539
$anyResponse = new Any();
15301540
$anyResponse->setValue($expectedResponse->serializeToString());
15311541
$completeOperation = new Operation();

0 commit comments

Comments
 (0)