-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: Update Compute Engine API to revision 20250107 (#975) Source-Link: googleapis/googleapis@256da8c Source-Link: googleapis/googleapis-gen@523a493 Copy-Tag: eyJwIjoiQ29tcHV0ZS8uT3dsQm90LnlhbWwiLCJoIjoiNTIzYTQ5MzI4N2E2ODUyZDg3MTlkNzU5NTI4OWY2MWVkZGZjYzAxMCJ9
- Loading branch information
1 parent
33d74cb
commit c9f0ba1
Showing
29 changed files
with
1,498 additions
and
82 deletions.
There are no files selected for viewing
Binary file not shown.
73 changes: 73 additions & 0 deletions
73
Compute/samples/V1/NetworkFirewallPoliciesClient/aggregated_list.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?php | ||
/* | ||
* Copyright 2025 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/* | ||
* GENERATED CODE WARNING | ||
* This file was automatically generated - do not edit! | ||
*/ | ||
|
||
require_once __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
// [START compute_v1_generated_NetworkFirewallPolicies_AggregatedList_sync] | ||
use Google\ApiCore\ApiException; | ||
use Google\ApiCore\PagedListResponse; | ||
use Google\Cloud\Compute\V1\AggregatedListNetworkFirewallPoliciesRequest; | ||
use Google\Cloud\Compute\V1\Client\NetworkFirewallPoliciesClient; | ||
|
||
/** | ||
* Retrieves an aggregated list of network firewall policies, listing network firewall policies from all applicable scopes (global and regional) and grouping the results per scope. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. | ||
* | ||
* @param string $project Project ID for this request. | ||
*/ | ||
function aggregated_list_sample(string $project): void | ||
{ | ||
// Create a client. | ||
$networkFirewallPoliciesClient = new NetworkFirewallPoliciesClient(); | ||
|
||
// Prepare the request message. | ||
$request = (new AggregatedListNetworkFirewallPoliciesRequest()) | ||
->setProject($project); | ||
|
||
// Call the API and handle any network failures. | ||
try { | ||
/** @var PagedListResponse $response */ | ||
$response = $networkFirewallPoliciesClient->aggregatedList($request); | ||
|
||
foreach ($response as $element) { | ||
printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); | ||
} | ||
} catch (ApiException $ex) { | ||
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); | ||
} | ||
} | ||
|
||
/** | ||
* Helper to execute the sample. | ||
* | ||
* This sample has been automatically generated and should be regarded as a code | ||
* template only. It will require modifications to work: | ||
* - It may require correct/in-range values for request initialization. | ||
* - It may require specifying regional endpoints when creating the service client, | ||
* please see the apiEndpoint client configuration option for more details. | ||
*/ | ||
function callSample(): void | ||
{ | ||
$project = '[PROJECT]'; | ||
|
||
aggregated_list_sample($project); | ||
} | ||
// [END compute_v1_generated_NetworkFirewallPolicies_AggregatedList_sync] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
388 changes: 388 additions & 0 deletions
388
Compute/src/V1/AggregatedListNetworkFirewallPoliciesRequest.php
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
Compute/src/V1/Enums/NetworkRoutingConfig/EffectiveBgpInterRegionCost.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
/* | ||
* Copyright 2025 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/* | ||
* GENERATED CODE WARNING | ||
* Generated by gapic-generator-php from the file | ||
* https://github.com/googleapis/googleapis/blob/master/google/cloud/compute/v1/compute.proto | ||
* Updates to the above are reflected here through a refresh process. | ||
*/ | ||
|
||
namespace Google\Cloud\Compute\V1\Enums\NetworkRoutingConfig; | ||
|
||
/** | ||
* EffectiveBgpInterRegionCost contains string constants that represent the names | ||
* of each value in the | ||
* google.cloud.compute.v1.NetworkRoutingConfig.EffectiveBgpInterRegionCost | ||
* descriptor. | ||
*/ | ||
class EffectiveBgpInterRegionCost | ||
{ | ||
const UNDEFINED_EFFECTIVE_BGP_INTER_REGION_COST = 'UNDEFINED_EFFECTIVE_BGP_INTER_REGION_COST'; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.