Skip to content

Commit

Permalink
chore: migrate samples to new surface (googleapis#6932)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 595432418
Source-Link: googleapis/googleapis@4795a45
Source-Link: https://github.com/googleapis/googleapis-gen/commit/743615e580bab1815edba43a02c561face631c5f
Copy-Tag: eyJwIjoiT3NDb25maWcvLk93bEJvdC55YW1sIiwiaCI6Ijc0MzYxNWU1ODBiYWIxODE1ZWRiYTQzYTAyYzU2MWZhY2U2MzFjNWYifQ==
Copy-Tag: eyJwIjoiT3NMb2dpbi8uT3dsQm90LnlhbWwiLCJoIjoiNzQzNjE1ZTU4MGJhYjE4MTVlZGJhNDNhMDJjNTYxZmFjZTYzMWM1ZiJ9
Copy-Tag: eyJwIjoiUG9saWN5VHJvdWJsZXNob290ZXIvLk93bEJvdC55YW1sIiwiaCI6Ijc0MzYxNWU1ODBiYWIxODE1ZWRiYTQzYTAyYzU2MWZhY2U2MzFjNWYifQ==
Copy-Tag: eyJwIjoiUHJvZmlsZXIvLk93bEJvdC55YW1sIiwiaCI6Ijc0MzYxNWU1ODBiYWIxODE1ZWRiYTQzYTAyYzU2MWZhY2U2MzFjNWYifQ==
Copy-Tag: eyJwIjoiUHViU3ViLy5Pd2xCb3QueWFtbCIsImgiOiI3NDM2MTVlNTgwYmFiMTgxNWVkYmE0M2EwMmM1NjFmYWNlNjMxYzVmIn0=
Copy-Tag: eyJwIjoiUmVjYXB0Y2hhRW50ZXJwcmlzZS8uT3dsQm90LnlhbWwiLCJoIjoiNzQzNjE1ZTU4MGJhYjE4MTVlZGJhNDNhMDJjNTYxZmFjZTYzMWM1ZiJ9
Copy-Tag: eyJwIjoiUmVjb21tZW5kZXIvLk93bEJvdC55YW1sIiwiaCI6Ijc0MzYxNWU1ODBiYWIxODE1ZWRiYTQzYTAyYzU2MWZhY2U2MzFjNWYifQ==
Copy-Tag: eyJwIjoiUmVkaXMvLk93bEJvdC55YW1sIiwiaCI6Ijc0MzYxNWU1ODBiYWIxODE1ZWRiYTQzYTAyYzU2MWZhY2U2MzFjNWYifQ==
Copy-Tag: eyJwIjoiUmVzb3VyY2VTZXR0aW5ncy8uT3dsQm90LnlhbWwiLCJoIjoiNzQzNjE1ZTU4MGJhYjE4MTVlZGJhNDNhMDJjNTYxZmFjZTYzMWM1ZiJ9
Copy-Tag: eyJwIjoiUmV0YWlsLy5Pd2xCb3QueWFtbCIsImgiOiI3NDM2MTVlNTgwYmFiMTgxNWVkYmE0M2EwMmM1NjFmYWNlNjMxYzVmIn0=
Copy-Tag: eyJwIjoiU2NoZWR1bGVyLy5Pd2xCb3QueWFtbCIsImgiOiI3NDM2MTVlNTgwYmFiMTgxNWVkYmE0M2EwMmM1NjFmYWNlNjMxYzVmIn0=
Copy-Tag: eyJwIjoiU2VjcmV0TWFuYWdlci8uT3dsQm90LnlhbWwiLCJoIjoiNzQzNjE1ZTU4MGJhYjE4MTVlZGJhNDNhMDJjNTYxZmFjZTYzMWM1ZiJ9
Copy-Tag: eyJwIjoiU2VjdXJpdHlDZW50ZXIvLk93bEJvdC55YW1sIiwiaCI6Ijc0MzYxNWU1ODBiYWIxODE1ZWRiYTQzYTAyYzU2MWZhY2U2MzFjNWYifQ==
Copy-Tag: eyJwIjoiU2VjdXJpdHlQcml2YXRlQ2EvLk93bEJvdC55YW1sIiwiaCI6Ijc0MzYxNWU1ODBiYWIxODE1ZWRiYTQzYTAyYzU2MWZhY2U2MzFjNWYifQ==
Copy-Tag: eyJwIjoiU2VydmljZUNvbnRyb2wvLk93bEJvdC55YW1sIiwiaCI6Ijc0MzYxNWU1ODBiYWIxODE1ZWRiYTQzYTAyYzU2MWZhY2U2MzFjNWYifQ==
Copy-Tag: eyJwIjoiU2VydmljZURpcmVjdG9yeS8uT3dsQm90LnlhbWwiLCJoIjoiNzQzNjE1ZTU4MGJhYjE4MTVlZGJhNDNhMDJjNTYxZmFjZTYzMWM1ZiJ9
Copy-Tag: eyJwIjoiU2VydmljZU1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6Ijc0MzYxNWU1ODBiYWIxODE1ZWRiYTQzYTAyYzU2MWZhY2U2MzFjNWYifQ==
Copy-Tag: eyJwIjoiU2VydmljZVVzYWdlLy5Pd2xCb3QueWFtbCIsImgiOiI3NDM2MTVlNTgwYmFiMTgxNWVkYmE0M2EwMmM1NjFmYWNlNjMxYzVmIn0=
Copy-Tag: eyJwIjoiU2hlbGwvLk93bEJvdC55YW1sIiwiaCI6Ijc0MzYxNWU1ODBiYWIxODE1ZWRiYTQzYTAyYzU2MWZhY2U2MzFjNWYifQ==
Copy-Tag: eyJwIjoiU3Bhbm5lci8uT3dsQm90LnlhbWwiLCJoIjoiNzQzNjE1ZTU4MGJhYjE4MTVlZGJhNDNhMDJjNTYxZmFjZTYzMWM1ZiJ9
  • Loading branch information
gcf-owl-bot[bot] authored Jan 4, 2024
1 parent fad56bd commit 98de4cb
Show file tree
Hide file tree
Showing 387 changed files with 3,225 additions and 885 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

// [START osconfig_v1_generated_OsConfigService_CancelPatchJob_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\OsConfig\V1\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\CancelPatchJobRequest;
use Google\Cloud\OsConfig\V1\Client\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\PatchJob;

/**
Expand All @@ -39,10 +40,14 @@ function cancel_patch_job_sample(string $formattedName): void
// Create a client.
$osConfigServiceClient = new OsConfigServiceClient();

// Prepare the request message.
$request = (new CancelPatchJobRequest())
->setName($formattedName);

// Call the API and handle any network failures.
try {
/** @var PatchJob $response */
$response = $osConfigServiceClient->cancelPatchJob($formattedName);
$response = $osConfigServiceClient->cancelPatchJob($request);
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

// [START osconfig_v1_generated_OsConfigService_CreatePatchDeployment_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\OsConfig\V1\Client\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\CreatePatchDeploymentRequest;
use Google\Cloud\OsConfig\V1\OneTimeSchedule;
use Google\Cloud\OsConfig\V1\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\PatchDeployment;
use Google\Cloud\OsConfig\V1\PatchInstanceFilter;
use Google\Protobuf\Timestamp;
Expand All @@ -49,23 +50,23 @@ function create_patch_deployment_sample(string $formattedParent, string $patchDe
// Create a client.
$osConfigServiceClient = new OsConfigServiceClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$patchDeploymentInstanceFilter = new PatchInstanceFilter();
$patchDeploymentOneTimeScheduleExecuteTime = new Timestamp();
$patchDeploymentOneTimeSchedule = (new OneTimeSchedule())
->setExecuteTime($patchDeploymentOneTimeScheduleExecuteTime);
$patchDeployment = (new PatchDeployment())
->setInstanceFilter($patchDeploymentInstanceFilter)
->setOneTimeSchedule($patchDeploymentOneTimeSchedule);
$request = (new CreatePatchDeploymentRequest())
->setParent($formattedParent)
->setPatchDeploymentId($patchDeploymentId)
->setPatchDeployment($patchDeployment);

// Call the API and handle any network failures.
try {
/** @var PatchDeployment $response */
$response = $osConfigServiceClient->createPatchDeployment(
$formattedParent,
$patchDeploymentId,
$patchDeployment
);
$response = $osConfigServiceClient->createPatchDeployment($request);
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

// [START osconfig_v1_generated_OsConfigService_DeletePatchDeployment_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\OsConfig\V1\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\Client\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\DeletePatchDeploymentRequest;

/**
* Delete an OS Config patch deployment.
Expand All @@ -38,9 +39,13 @@ function delete_patch_deployment_sample(string $formattedName): void
// Create a client.
$osConfigServiceClient = new OsConfigServiceClient();

// Prepare the request message.
$request = (new DeletePatchDeploymentRequest())
->setName($formattedName);

// Call the API and handle any network failures.
try {
$osConfigServiceClient->deletePatchDeployment($formattedName);
$osConfigServiceClient->deletePatchDeployment($request);
printf('Call completed successfully.' . PHP_EOL);
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
Expand Down
10 changes: 7 additions & 3 deletions OsConfig/samples/V1/OsConfigServiceClient/execute_patch_job.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

// [START osconfig_v1_generated_OsConfigService_ExecutePatchJob_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\OsConfig\V1\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\Client\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\ExecutePatchJobRequest;
use Google\Cloud\OsConfig\V1\PatchInstanceFilter;
use Google\Cloud\OsConfig\V1\PatchJob;

Expand All @@ -39,13 +40,16 @@ function execute_patch_job_sample(string $formattedParent): void
// Create a client.
$osConfigServiceClient = new OsConfigServiceClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$instanceFilter = new PatchInstanceFilter();
$request = (new ExecutePatchJobRequest())
->setParent($formattedParent)
->setInstanceFilter($instanceFilter);

// Call the API and handle any network failures.
try {
/** @var PatchJob $response */
$response = $osConfigServiceClient->executePatchJob($formattedParent, $instanceFilter);
$response = $osConfigServiceClient->executePatchJob($request);
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

// [START osconfig_v1_generated_OsConfigService_GetPatchDeployment_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\OsConfig\V1\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\Client\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\GetPatchDeploymentRequest;
use Google\Cloud\OsConfig\V1\PatchDeployment;

/**
Expand All @@ -39,10 +40,14 @@ function get_patch_deployment_sample(string $formattedName): void
// Create a client.
$osConfigServiceClient = new OsConfigServiceClient();

// Prepare the request message.
$request = (new GetPatchDeploymentRequest())
->setName($formattedName);

// Call the API and handle any network failures.
try {
/** @var PatchDeployment $response */
$response = $osConfigServiceClient->getPatchDeployment($formattedName);
$response = $osConfigServiceClient->getPatchDeployment($request);
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
Expand Down
9 changes: 7 additions & 2 deletions OsConfig/samples/V1/OsConfigServiceClient/get_patch_job.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

// [START osconfig_v1_generated_OsConfigService_GetPatchJob_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\OsConfig\V1\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\Client\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\GetPatchJobRequest;
use Google\Cloud\OsConfig\V1\PatchJob;

/**
Expand All @@ -39,10 +40,14 @@ function get_patch_job_sample(string $formattedName): void
// Create a client.
$osConfigServiceClient = new OsConfigServiceClient();

// Prepare the request message.
$request = (new GetPatchJobRequest())
->setName($formattedName);

// Call the API and handle any network failures.
try {
/** @var PatchJob $response */
$response = $osConfigServiceClient->getPatchJob($formattedName);
$response = $osConfigServiceClient->getPatchJob($request);
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
// [START osconfig_v1_generated_OsConfigService_ListPatchDeployments_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\OsConfig\V1\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\Client\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\ListPatchDeploymentsRequest;
use Google\Cloud\OsConfig\V1\PatchDeployment;

/**
Expand All @@ -39,10 +40,14 @@ function list_patch_deployments_sample(string $formattedParent): void
// Create a client.
$osConfigServiceClient = new OsConfigServiceClient();

// Prepare the request message.
$request = (new ListPatchDeploymentsRequest())
->setParent($formattedParent);

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $osConfigServiceClient->listPatchDeployments($formattedParent);
$response = $osConfigServiceClient->listPatchDeployments($request);

/** @var PatchDeployment $element */
foreach ($response as $element) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
// [START osconfig_v1_generated_OsConfigService_ListPatchJobInstanceDetails_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\OsConfig\V1\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\Client\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\ListPatchJobInstanceDetailsRequest;
use Google\Cloud\OsConfig\V1\PatchJobInstanceDetails;

/**
Expand All @@ -40,10 +41,14 @@ function list_patch_job_instance_details_sample(string $formattedParent): void
// Create a client.
$osConfigServiceClient = new OsConfigServiceClient();

// Prepare the request message.
$request = (new ListPatchJobInstanceDetailsRequest())
->setParent($formattedParent);

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $osConfigServiceClient->listPatchJobInstanceDetails($formattedParent);
$response = $osConfigServiceClient->listPatchJobInstanceDetails($request);

/** @var PatchJobInstanceDetails $element */
foreach ($response as $element) {
Expand Down
9 changes: 7 additions & 2 deletions OsConfig/samples/V1/OsConfigServiceClient/list_patch_jobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
// [START osconfig_v1_generated_OsConfigService_ListPatchJobs_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\OsConfig\V1\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\Client\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\ListPatchJobsRequest;
use Google\Cloud\OsConfig\V1\PatchJob;

/**
Expand All @@ -39,10 +40,14 @@ function list_patch_jobs_sample(string $formattedParent): void
// Create a client.
$osConfigServiceClient = new OsConfigServiceClient();

// Prepare the request message.
$request = (new ListPatchJobsRequest())
->setParent($formattedParent);

// Call the API and handle any network failures.
try {
/** @var PagedListResponse $response */
$response = $osConfigServiceClient->listPatchJobs($formattedParent);
$response = $osConfigServiceClient->listPatchJobs($request);

/** @var PatchJob $element */
foreach ($response as $element) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

// [START osconfig_v1_generated_OsConfigService_PausePatchDeployment_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\OsConfig\V1\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\Client\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\PatchDeployment;
use Google\Cloud\OsConfig\V1\PausePatchDeploymentRequest;

/**
* Change state of patch deployment to "PAUSED".
Expand All @@ -40,10 +41,14 @@ function pause_patch_deployment_sample(string $formattedName): void
// Create a client.
$osConfigServiceClient = new OsConfigServiceClient();

// Prepare the request message.
$request = (new PausePatchDeploymentRequest())
->setName($formattedName);

// Call the API and handle any network failures.
try {
/** @var PatchDeployment $response */
$response = $osConfigServiceClient->pausePatchDeployment($formattedName);
$response = $osConfigServiceClient->pausePatchDeployment($request);
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

// [START osconfig_v1_generated_OsConfigService_ResumePatchDeployment_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\OsConfig\V1\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\Client\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\PatchDeployment;
use Google\Cloud\OsConfig\V1\ResumePatchDeploymentRequest;

/**
* Change state of patch deployment back to "ACTIVE".
Expand All @@ -40,10 +41,14 @@ function resume_patch_deployment_sample(string $formattedName): void
// Create a client.
$osConfigServiceClient = new OsConfigServiceClient();

// Prepare the request message.
$request = (new ResumePatchDeploymentRequest())
->setName($formattedName);

// Call the API and handle any network failures.
try {
/** @var PatchDeployment $response */
$response = $osConfigServiceClient->resumePatchDeployment($formattedName);
$response = $osConfigServiceClient->resumePatchDeployment($request);
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@

// [START osconfig_v1_generated_OsConfigService_UpdatePatchDeployment_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\OsConfig\V1\Client\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\OneTimeSchedule;
use Google\Cloud\OsConfig\V1\OsConfigServiceClient;
use Google\Cloud\OsConfig\V1\PatchDeployment;
use Google\Cloud\OsConfig\V1\PatchInstanceFilter;
use Google\Cloud\OsConfig\V1\UpdatePatchDeploymentRequest;
use Google\Protobuf\Timestamp;

/**
Expand All @@ -44,19 +45,21 @@ function update_patch_deployment_sample(): void
// Create a client.
$osConfigServiceClient = new OsConfigServiceClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$patchDeploymentInstanceFilter = new PatchInstanceFilter();
$patchDeploymentOneTimeScheduleExecuteTime = new Timestamp();
$patchDeploymentOneTimeSchedule = (new OneTimeSchedule())
->setExecuteTime($patchDeploymentOneTimeScheduleExecuteTime);
$patchDeployment = (new PatchDeployment())
->setInstanceFilter($patchDeploymentInstanceFilter)
->setOneTimeSchedule($patchDeploymentOneTimeSchedule);
$request = (new UpdatePatchDeploymentRequest())
->setPatchDeployment($patchDeployment);

// Call the API and handle any network failures.
try {
/** @var PatchDeployment $response */
$response = $osConfigServiceClient->updatePatchDeployment($patchDeployment);
$response = $osConfigServiceClient->updatePatchDeployment($request);
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
// [START osconfig_v1_generated_OsConfigZonalService_CreateOSPolicyAssignment_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\OperationResponse;
use Google\Cloud\OsConfig\V1\Client\OsConfigZonalServiceClient;
use Google\Cloud\OsConfig\V1\CreateOSPolicyAssignmentRequest;
use Google\Cloud\OsConfig\V1\FixedOrPercent;
use Google\Cloud\OsConfig\V1\OSPolicy;
use Google\Cloud\OsConfig\V1\OSPolicyAssignment;
Expand All @@ -33,7 +35,6 @@
use Google\Cloud\OsConfig\V1\OSPolicy\Mode;
use Google\Cloud\OsConfig\V1\OSPolicy\Resource;
use Google\Cloud\OsConfig\V1\OSPolicy\ResourceGroup;
use Google\Cloud\OsConfig\V1\OsConfigZonalServiceClient;
use Google\Protobuf\Duration;
use Google\Rpc\Status;

Expand Down Expand Up @@ -85,7 +86,7 @@ function create_os_policy_assignment_sample(
// Create a client.
$osConfigZonalServiceClient = new OsConfigZonalServiceClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$resource = (new Resource())
->setId($osPolicyAssignmentOsPoliciesResourceGroupsResourcesId);
$osPolicyAssignmentOsPoliciesResourceGroupsResources = [$resource,];
Expand All @@ -107,15 +108,15 @@ function create_os_policy_assignment_sample(
->setOsPolicies($osPolicyAssignmentOsPolicies)
->setInstanceFilter($osPolicyAssignmentInstanceFilter)
->setRollout($osPolicyAssignmentRollout);
$request = (new CreateOSPolicyAssignmentRequest())
->setParent($formattedParent)
->setOsPolicyAssignment($osPolicyAssignment)
->setOsPolicyAssignmentId($osPolicyAssignmentId);

// Call the API and handle any network failures.
try {
/** @var OperationResponse $response */
$response = $osConfigZonalServiceClient->createOSPolicyAssignment(
$formattedParent,
$osPolicyAssignment,
$osPolicyAssignmentId
);
$response = $osConfigZonalServiceClient->createOSPolicyAssignment($request);
$response->pollUntilComplete();

if ($response->operationSucceeded()) {
Expand Down
Loading

0 comments on commit 98de4cb

Please sign in to comment.