Skip to content

Commit ecdcc10

Browse files
feat: [AiPlatform] Add enable_widget option in Google Maps and additional grounding information (#8619)
docs: remove legacy internal lint directives PiperOrigin-RevId: 810503708 Source-Link: googleapis/googleapis@d4a9eb5 Source-Link: googleapis/googleapis-gen@6bf95cb Copy-Tag: eyJwIjoiQWlQbGF0Zm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiNmJmOTVjYjM3N2QyOWQ2ZGM5MjU4MWZlNzkzOTkyNWJlZjZmMjEwNyJ9 * feat: Add enable_widget option in Google Maps and additional grounding information PiperOrigin-RevId: 810967796 Source-Link: googleapis/googleapis@329ace5 Source-Link: googleapis/googleapis-gen@2fe3f41 Copy-Tag: eyJwIjoiQWlQbGF0Zm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiMmZlM2Y0MTZhNTEwZDljNTY0MzlkYjFiNTQ0YTAxNTBjNzQwNWM0MyJ9
1 parent 722181a commit ecdcc10

42 files changed

Lines changed: 1416 additions & 514 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AiPlatform/metadata/V1/Content.php

466 Bytes
Binary file not shown.

AiPlatform/metadata/V1/Tool.php

28 Bytes
Binary file not shown.

AiPlatform/src/V1/AcceleratorType.php

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

AiPlatform/src/V1/Client/DataFoundryServiceClient.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ final class DataFoundryServiceClient
9090
private const CODEGEN_NAME = 'gapic';
9191

9292
/** The default scopes required by the service. */
93-
public static $serviceScopes = [
94-
'https://www.googleapis.com/auth/cloud-platform',
95-
];
93+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
9694

9795
private static function getClientDefaults()
9896
{
@@ -261,8 +259,10 @@ public function __call($method, $args)
261259
*
262260
* @throws ApiException Thrown if the API call fails.
263261
*/
264-
public function generateSyntheticData(GenerateSyntheticDataRequest $request, array $callOptions = []): GenerateSyntheticDataResponse
265-
{
262+
public function generateSyntheticData(
263+
GenerateSyntheticDataRequest $request,
264+
array $callOptions = []
265+
): GenerateSyntheticDataResponse {
266266
return $this->startApiCall('GenerateSyntheticData', $request, $callOptions)->wait();
267267
}
268268

@@ -403,8 +403,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
403403
*
404404
* @throws ApiException Thrown if the API call fails.
405405
*/
406-
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
407-
{
406+
public function testIamPermissions(
407+
TestIamPermissionsRequest $request,
408+
array $callOptions = []
409+
): TestIamPermissionsResponse {
408410
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
409411
}
410412
}

AiPlatform/src/V1/Client/DatasetServiceClient.php

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ final class DatasetServiceClient
133133
private const CODEGEN_NAME = 'gapic';
134134

135135
/** The default scopes required by the service. */
136-
public static $serviceScopes = [
137-
'https://www.googleapis.com/auth/cloud-platform',
138-
];
136+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
139137

140138
private $operationsClient;
141139

@@ -217,8 +215,12 @@ private function createOperationsClient(array $options)
217215
*
218216
* @return string The formatted annotation_spec resource.
219217
*/
220-
public static function annotationSpecName(string $project, string $location, string $dataset, string $annotationSpec): string
221-
{
218+
public static function annotationSpecName(
219+
string $project,
220+
string $location,
221+
string $dataset,
222+
string $annotationSpec
223+
): string {
222224
return self::getPathTemplate('annotationSpec')->render([
223225
'project' => $project,
224226
'location' => $location,
@@ -278,8 +280,12 @@ public static function datasetName(string $project, string $location, string $da
278280
*
279281
* @return string The formatted dataset_version resource.
280282
*/
281-
public static function datasetVersionName(string $project, string $location, string $dataset, string $datasetVersion): string
282-
{
283+
public static function datasetVersionName(
284+
string $project,
285+
string $location,
286+
string $dataset,
287+
string $datasetVersion
288+
): string {
283289
return self::getPathTemplate('datasetVersion')->render([
284290
'project' => $project,
285291
'location' => $location,
@@ -316,8 +322,12 @@ public static function locationName(string $project, string $location): string
316322
*
317323
* @return string The formatted saved_query resource.
318324
*/
319-
public static function savedQueryName(string $project, string $location, string $dataset, string $savedQuery): string
320-
{
325+
public static function savedQueryName(
326+
string $project,
327+
string $location,
328+
string $dataset,
329+
string $savedQuery
330+
): string {
321331
return self::getPathTemplate('savedQuery')->render([
322332
'project' => $project,
323333
'location' => $location,
@@ -488,8 +498,10 @@ public function createDataset(CreateDatasetRequest $request, array $callOptions
488498
*
489499
* @throws ApiException Thrown if the API call fails.
490500
*/
491-
public function createDatasetVersion(CreateDatasetVersionRequest $request, array $callOptions = []): OperationResponse
492-
{
501+
public function createDatasetVersion(
502+
CreateDatasetVersionRequest $request,
503+
array $callOptions = []
504+
): OperationResponse {
493505
return $this->startApiCall('CreateDatasetVersion', $request, $callOptions)->wait();
494506
}
495507

@@ -540,8 +552,10 @@ public function deleteDataset(DeleteDatasetRequest $request, array $callOptions
540552
*
541553
* @throws ApiException Thrown if the API call fails.
542554
*/
543-
public function deleteDatasetVersion(DeleteDatasetVersionRequest $request, array $callOptions = []): OperationResponse
544-
{
555+
public function deleteDatasetVersion(
556+
DeleteDatasetVersionRequest $request,
557+
array $callOptions = []
558+
): OperationResponse {
545559
return $this->startApiCall('DeleteDatasetVersion', $request, $callOptions)->wait();
546560
}
547561

@@ -854,8 +868,10 @@ public function listSavedQueries(ListSavedQueriesRequest $request, array $callOp
854868
*
855869
* @throws ApiException Thrown if the API call fails.
856870
*/
857-
public function restoreDatasetVersion(RestoreDatasetVersionRequest $request, array $callOptions = []): OperationResponse
858-
{
871+
public function restoreDatasetVersion(
872+
RestoreDatasetVersionRequest $request,
873+
array $callOptions = []
874+
): OperationResponse {
859875
return $this->startApiCall('RestoreDatasetVersion', $request, $callOptions)->wait();
860876
}
861877

@@ -1073,8 +1089,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
10731089
*
10741090
* @throws ApiException Thrown if the API call fails.
10751091
*/
1076-
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
1077-
{
1092+
public function testIamPermissions(
1093+
TestIamPermissionsRequest $request,
1094+
array $callOptions = []
1095+
): TestIamPermissionsResponse {
10781096
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
10791097
}
10801098
}

AiPlatform/src/V1/Client/DeploymentResourcePoolServiceClient.php

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ final class DeploymentResourcePoolServiceClient
103103
private const CODEGEN_NAME = 'gapic';
104104

105105
/** The default scopes required by the service. */
106-
public static $serviceScopes = [
107-
'https://www.googleapis.com/auth/cloud-platform',
108-
];
106+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
109107

110108
private $operationsClient;
111109

@@ -122,7 +120,8 @@ private static function getClientDefaults()
122120
],
123121
'transportConfig' => [
124122
'rest' => [
125-
'restClientConfigPath' => __DIR__ . '/../resources/deployment_resource_pool_service_rest_client_config.php',
123+
'restClientConfigPath' =>
124+
__DIR__ . '/../resources/deployment_resource_pool_service_rest_client_config.php',
126125
],
127126
],
128127
];
@@ -186,8 +185,11 @@ private function createOperationsClient(array $options)
186185
*
187186
* @return string The formatted deployment_resource_pool resource.
188187
*/
189-
public static function deploymentResourcePoolName(string $project, string $location, string $deploymentResourcePool): string
190-
{
188+
public static function deploymentResourcePoolName(
189+
string $project,
190+
string $location,
191+
string $deploymentResourcePool
192+
): string {
191193
return self::getPathTemplate('deploymentResourcePool')->render([
192194
'project' => $project,
193195
'location' => $location,
@@ -382,8 +384,10 @@ public function __call($method, $args)
382384
*
383385
* @throws ApiException Thrown if the API call fails.
384386
*/
385-
public function createDeploymentResourcePool(CreateDeploymentResourcePoolRequest $request, array $callOptions = []): OperationResponse
386-
{
387+
public function createDeploymentResourcePool(
388+
CreateDeploymentResourcePoolRequest $request,
389+
array $callOptions = []
390+
): OperationResponse {
387391
return $this->startApiCall('CreateDeploymentResourcePool', $request, $callOptions)->wait();
388392
}
389393

@@ -410,8 +414,10 @@ public function createDeploymentResourcePool(CreateDeploymentResourcePoolRequest
410414
*
411415
* @throws ApiException Thrown if the API call fails.
412416
*/
413-
public function deleteDeploymentResourcePool(DeleteDeploymentResourcePoolRequest $request, array $callOptions = []): OperationResponse
414-
{
417+
public function deleteDeploymentResourcePool(
418+
DeleteDeploymentResourcePoolRequest $request,
419+
array $callOptions = []
420+
): OperationResponse {
415421
return $this->startApiCall('DeleteDeploymentResourcePool', $request, $callOptions)->wait();
416422
}
417423

@@ -437,8 +443,10 @@ public function deleteDeploymentResourcePool(DeleteDeploymentResourcePoolRequest
437443
*
438444
* @throws ApiException Thrown if the API call fails.
439445
*/
440-
public function getDeploymentResourcePool(GetDeploymentResourcePoolRequest $request, array $callOptions = []): DeploymentResourcePool
441-
{
446+
public function getDeploymentResourcePool(
447+
GetDeploymentResourcePoolRequest $request,
448+
array $callOptions = []
449+
): DeploymentResourcePool {
442450
return $this->startApiCall('GetDeploymentResourcePool', $request, $callOptions)->wait();
443451
}
444452

@@ -464,8 +472,10 @@ public function getDeploymentResourcePool(GetDeploymentResourcePoolRequest $requ
464472
*
465473
* @throws ApiException Thrown if the API call fails.
466474
*/
467-
public function listDeploymentResourcePools(ListDeploymentResourcePoolsRequest $request, array $callOptions = []): PagedListResponse
468-
{
475+
public function listDeploymentResourcePools(
476+
ListDeploymentResourcePoolsRequest $request,
477+
array $callOptions = []
478+
): PagedListResponse {
469479
return $this->startApiCall('ListDeploymentResourcePools', $request, $callOptions);
470480
}
471481

@@ -519,8 +529,10 @@ public function queryDeployedModels(QueryDeployedModelsRequest $request, array $
519529
*
520530
* @throws ApiException Thrown if the API call fails.
521531
*/
522-
public function updateDeploymentResourcePool(UpdateDeploymentResourcePoolRequest $request, array $callOptions = []): OperationResponse
523-
{
532+
public function updateDeploymentResourcePool(
533+
UpdateDeploymentResourcePoolRequest $request,
534+
array $callOptions = []
535+
): OperationResponse {
524536
return $this->startApiCall('UpdateDeploymentResourcePool', $request, $callOptions)->wait();
525537
}
526538

@@ -665,8 +677,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
665677
*
666678
* @throws ApiException Thrown if the API call fails.
667679
*/
668-
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
669-
{
680+
public function testIamPermissions(
681+
TestIamPermissionsRequest $request,
682+
array $callOptions = []
683+
): TestIamPermissionsResponse {
670684
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
671685
}
672686
}

AiPlatform/src/V1/Client/EndpointServiceClient.php

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ final class EndpointServiceClient
112112
private const CODEGEN_NAME = 'gapic';
113113

114114
/** The default scopes required by the service. */
115-
public static $serviceScopes = [
116-
'https://www.googleapis.com/auth/cloud-platform',
117-
];
115+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
118116

119117
private $operationsClient;
120118

@@ -195,8 +193,11 @@ private function createOperationsClient(array $options)
195193
*
196194
* @return string The formatted deployment_resource_pool resource.
197195
*/
198-
public static function deploymentResourcePoolName(string $project, string $location, string $deploymentResourcePool): string
199-
{
196+
public static function deploymentResourcePoolName(
197+
string $project,
198+
string $location,
199+
string $deploymentResourcePool
200+
): string {
200201
return self::getPathTemplate('deploymentResourcePool')->render([
201202
'project' => $project,
202203
'location' => $location,
@@ -269,8 +270,11 @@ public static function modelName(string $project, string $location, string $mode
269270
*
270271
* @return string The formatted model_deployment_monitoring_job resource.
271272
*/
272-
public static function modelDeploymentMonitoringJobName(string $project, string $location, string $modelDeploymentMonitoringJob): string
273-
{
273+
public static function modelDeploymentMonitoringJobName(
274+
string $project,
275+
string $location,
276+
string $modelDeploymentMonitoringJob
277+
): string {
274278
return self::getPathTemplate('modelDeploymentMonitoringJob')->render([
275279
'project' => $project,
276280
'location' => $location,
@@ -325,8 +329,12 @@ public static function projectLocationEndpointName(string $project, string $loca
325329
*
326330
* @return string The formatted project_location_publisher_model resource.
327331
*/
328-
public static function projectLocationPublisherModelName(string $project, string $location, string $publisher, string $model): string
329-
{
332+
public static function projectLocationPublisherModelName(
333+
string $project,
334+
string $location,
335+
string $publisher,
336+
string $model
337+
): string {
330338
return self::getPathTemplate('projectLocationPublisherModel')->render([
331339
'project' => $project,
332340
'location' => $location,
@@ -706,8 +714,10 @@ public function updateEndpoint(UpdateEndpointRequest $request, array $callOption
706714
*
707715
* @throws ApiException Thrown if the API call fails.
708716
*/
709-
public function updateEndpointLongRunning(UpdateEndpointLongRunningRequest $request, array $callOptions = []): OperationResponse
710-
{
717+
public function updateEndpointLongRunning(
718+
UpdateEndpointLongRunningRequest $request,
719+
array $callOptions = []
720+
): OperationResponse {
711721
return $this->startApiCall('UpdateEndpointLongRunning', $request, $callOptions)->wait();
712722
}
713723

@@ -847,8 +857,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
847857
*
848858
* @throws ApiException Thrown if the API call fails.
849859
*/
850-
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
851-
{
860+
public function testIamPermissions(
861+
TestIamPermissionsRequest $request,
862+
array $callOptions = []
863+
): TestIamPermissionsResponse {
852864
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
853865
}
854866
}

AiPlatform/src/V1/Client/EvaluationServiceClient.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ final class EvaluationServiceClient
9090
private const CODEGEN_NAME = 'gapic';
9191

9292
/** The default scopes required by the service. */
93-
public static $serviceScopes = [
94-
'https://www.googleapis.com/auth/cloud-platform',
95-
];
93+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
9694

9795
private static function getClientDefaults()
9896
{
@@ -260,8 +258,10 @@ public function __call($method, $args)
260258
*
261259
* @throws ApiException Thrown if the API call fails.
262260
*/
263-
public function evaluateInstances(EvaluateInstancesRequest $request, array $callOptions = []): EvaluateInstancesResponse
264-
{
261+
public function evaluateInstances(
262+
EvaluateInstancesRequest $request,
263+
array $callOptions = []
264+
): EvaluateInstancesResponse {
265265
return $this->startApiCall('EvaluateInstances', $request, $callOptions)->wait();
266266
}
267267

@@ -401,8 +401,10 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions =
401401
*
402402
* @throws ApiException Thrown if the API call fails.
403403
*/
404-
public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
405-
{
404+
public function testIamPermissions(
405+
TestIamPermissionsRequest $request,
406+
array $callOptions = []
407+
): TestIamPermissionsResponse {
406408
return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
407409
}
408410
}

0 commit comments

Comments
 (0)