Skip to content

Commit

Permalink
feat: Add machine_spec, data_persistent_disk_spec, network_spec, euc_…
Browse files Browse the repository at this point in the history
…config, shielded_vm_config to message `.google.cloud.aiplatform.v1.NotebookRuntime` (#8023)

* feat: Reasoning Engine v1 GAPIC release
PiperOrigin-RevId: 716685354
Source-Link: googleapis/googleapis@fcfee53
Source-Link: googleapis/googleapis-gen@51208a3
Copy-Tag: eyJwIjoiQWlQbGF0Zm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiNTEyMDhhMzFiMDRmODk2OWI3MjQ3MDNhOTUyMTI2NTM5MTkzYWFmZSJ9

* feat: Add machine_spec, data_persistent_disk_spec, network_spec, euc_config, shielded_vm_config to message `.google.cloud.aiplatform.v1.NotebookRuntime`
docs: Deprecate `is_default` in message `.google.cloud.aiplatform.v1.NotebookRuntimeTemplate`
docs: Deprecate `service_account` in message `.google.cloud.aiplatform.v1.NotebookRuntimeTemplate`
docs: Deprecate `service_account` in message `.google.cloud.aiplatform.v1.NotebookRuntime`
PiperOrigin-RevId: 718467020
Source-Link: googleapis/googleapis@7e9066b
Source-Link: googleapis/googleapis-gen@7f9a3e2
Copy-Tag: eyJwIjoiQWlQbGF0Zm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiN2Y5YTNlMjlmOGIyNDI4NWFjNmVlOWRkNDYyMjc1ZDRjMmNjMjI0ZSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Jan 22, 2025
1 parent 089b0b3 commit cb06b79
Show file tree
Hide file tree
Showing 78 changed files with 11,976 additions and 14 deletions.
Binary file modified AiPlatform/metadata/V1/NotebookRuntime.php
Binary file not shown.
48 changes: 48 additions & 0 deletions AiPlatform/metadata/V1/ReasoningEngine.php

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

48 changes: 48 additions & 0 deletions AiPlatform/metadata/V1/ReasoningEngineExecutionService.php

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

73 changes: 73 additions & 0 deletions AiPlatform/metadata/V1/ReasoningEngineService.php

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?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 aiplatform_v1_generated_ReasoningEngineExecutionService_GetIamPolicy_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\AIPlatform\V1\Client\ReasoningEngineExecutionServiceClient;
use Google\Cloud\Iam\V1\GetIamPolicyRequest;
use Google\Cloud\Iam\V1\Policy;

/**
* Gets the access control policy for a resource. Returns an empty policy
if the resource exists and does not have a policy set.
*
* @param string $resource REQUIRED: The resource for which the policy is being requested.
* See the operation documentation for the appropriate value for this field.
*/
function get_iam_policy_sample(string $resource): void
{
// Create a client.
$reasoningEngineExecutionServiceClient = new ReasoningEngineExecutionServiceClient();

// Prepare the request message.
$request = (new GetIamPolicyRequest())
->setResource($resource);

// Call the API and handle any network failures.
try {
/** @var Policy $response */
$response = $reasoningEngineExecutionServiceClient->getIamPolicy($request);
printf('Response data: %s' . PHP_EOL, $response->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
{
$resource = '[RESOURCE]';

get_iam_policy_sample($resource);
}
// [END aiplatform_v1_generated_ReasoningEngineExecutionService_GetIamPolicy_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?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 aiplatform_v1_generated_ReasoningEngineExecutionService_GetLocation_sync]
use Google\ApiCore\ApiException;
use Google\Cloud\AIPlatform\V1\Client\ReasoningEngineExecutionServiceClient;
use Google\Cloud\Location\GetLocationRequest;
use Google\Cloud\Location\Location;

/**
* Gets information about a location.
*
* 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 get_location_sample(): void
{
// Create a client.
$reasoningEngineExecutionServiceClient = new ReasoningEngineExecutionServiceClient();

// Prepare the request message.
$request = new GetLocationRequest();

// Call the API and handle any network failures.
try {
/** @var Location $response */
$response = $reasoningEngineExecutionServiceClient->getLocation($request);
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
}
}
// [END aiplatform_v1_generated_ReasoningEngineExecutionService_GetLocation_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?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 aiplatform_v1_generated_ReasoningEngineExecutionService_ListLocations_sync]
use Google\ApiCore\ApiException;
use Google\ApiCore\PagedListResponse;
use Google\Cloud\AIPlatform\V1\Client\ReasoningEngineExecutionServiceClient;
use Google\Cloud\Location\ListLocationsRequest;
use Google\Cloud\Location\Location;

/**
* Lists information about the supported locations for this service.
*
* 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 list_locations_sample(): void
{
// Create a client.
$reasoningEngineExecutionServiceClient = new ReasoningEngineExecutionServiceClient();

// Prepare the request message.
$request = new ListLocationsRequest();

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

/** @var Location $element */
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());
}
}
// [END aiplatform_v1_generated_ReasoningEngineExecutionService_ListLocations_sync]
Loading

0 comments on commit cb06b79

Please sign in to comment.