Skip to content

Commit

Permalink
build: Add wrappers.proto dependency (#7455)
Browse files Browse the repository at this point in the history
feat: A new field `satisfies_pzs` is added
feat: A new field `satisfies_pzi` is added
feat: Updated documentation URI
PiperOrigin-RevId: 644447538
Source-Link: googleapis/googleapis@55a81d9
Source-Link: googleapis/googleapis-gen@ff0fb6c
Copy-Tag: eyJwIjoiQmFja3VwRHIvLk93bEJvdC55YW1sIiwiaCI6ImZmMGZiNmMxODUzMDNhZDkwMTdhZDAxZjAwZGMzOWMzNzVlYTE0ZTIifQ==
  • Loading branch information
gcf-owl-bot[bot] committed Jun 21, 2024
1 parent 30aee12 commit 68c177c
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 7 deletions.
Binary file modified BackupDr/metadata/V1/Backupdr.php
Binary file not shown.
105 changes: 105 additions & 0 deletions BackupDr/src/V1/ManagementServer.php

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

7 changes: 0 additions & 7 deletions BackupDr/src/V1/resources/backup_dr_rest_client_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,6 @@
'method' => 'post',
'uriTemplate' => '/v1/{resource=projects/*/locations/*/managementServers/*}:testIamPermissions',
'body' => '*',
'additionalBindings' => [
[
'method' => 'post',
'uriTemplate' => '/v1/{resource=projects/*/locations/*/backupVaults/*}:testIamPermissions',
'body' => '*',
],
],
'placeholders' => [
'resource' => [
'getters' => [
Expand Down
6 changes: 6 additions & 0 deletions BackupDr/tests/Unit/V1/Client/BackupDRClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,13 @@ public function createManagementServerTest()
$description = 'description-1724546052';
$etag = 'etag3123477';
$oauth2ClientId = 'oauth2ClientId-1833466037';
$satisfiesPzi = false;
$expectedResponse = new ManagementServer();
$expectedResponse->setName($name);
$expectedResponse->setDescription($description);
$expectedResponse->setEtag($etag);
$expectedResponse->setOauth2ClientId($oauth2ClientId);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
Expand Down Expand Up @@ -363,11 +365,13 @@ public function getManagementServerTest()
$description = 'description-1724546052';
$etag = 'etag3123477';
$oauth2ClientId = 'oauth2ClientId-1833466037';
$satisfiesPzi = false;
$expectedResponse = new ManagementServer();
$expectedResponse->setName($name2);
$expectedResponse->setDescription($description);
$expectedResponse->setEtag($etag);
$expectedResponse->setOauth2ClientId($oauth2ClientId);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->managementServerName('[PROJECT]', '[LOCATION]', '[MANAGEMENTSERVER]');
Expand Down Expand Up @@ -850,11 +854,13 @@ public function createManagementServerAsyncTest()
$description = 'description-1724546052';
$etag = 'etag3123477';
$oauth2ClientId = 'oauth2ClientId-1833466037';
$satisfiesPzi = false;
$expectedResponse = new ManagementServer();
$expectedResponse->setName($name);
$expectedResponse->setDescription($description);
$expectedResponse->setEtag($etag);
$expectedResponse->setOauth2ClientId($oauth2ClientId);
$expectedResponse->setSatisfiesPzi($satisfiesPzi);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
Expand Down

0 comments on commit 68c177c

Please sign in to comment.