Skip to content

Commit db2aa43

Browse files
Regenerate aiplatform client
1 parent c9fa9d7 commit db2aa43

16 files changed

+763
-18
lines changed

src/Aiplatform.php

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ class Aiplatform extends \Google\Service
4242
const CLOUD_PLATFORM_READ_ONLY =
4343
"https://www.googleapis.com/auth/cloud-platform.read-only";
4444

45+
public $batchPredictionJobs;
4546
public $datasets;
4647
public $datasets_datasetVersions;
4748
public $endpoints;
49+
public $endpoints_chat;
4850
public $media;
4951
public $projects;
5052
public $projects_locations;
@@ -127,6 +129,7 @@ class Aiplatform extends \Google\Service
127129
public $projects_locations_ragCorpora_operations;
128130
public $projects_locations_ragCorpora_ragFiles;
129131
public $projects_locations_ragCorpora_ragFiles_operations;
132+
public $projects_locations_ragEngineConfig_operations;
130133
public $projects_locations_reasoningEngines;
131134
public $projects_locations_reasoningEngines_operations;
132135
public $projects_locations_schedules;
@@ -169,6 +172,60 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
169172
$this->version = 'v1';
170173
$this->serviceName = 'aiplatform';
171174

175+
$this->batchPredictionJobs = new Aiplatform\Resource\BatchPredictionJobs(
176+
$this,
177+
$this->serviceName,
178+
'batchPredictionJobs',
179+
[
180+
'methods' => [
181+
'create' => [
182+
'path' => 'v1/batchPredictionJobs',
183+
'httpMethod' => 'POST',
184+
'parameters' => [
185+
'parent' => [
186+
'location' => 'query',
187+
'type' => 'string',
188+
],
189+
],
190+
],'get' => [
191+
'path' => 'v1/{+name}',
192+
'httpMethod' => 'GET',
193+
'parameters' => [
194+
'name' => [
195+
'location' => 'path',
196+
'type' => 'string',
197+
'required' => true,
198+
],
199+
],
200+
],'list' => [
201+
'path' => 'v1/batchPredictionJobs',
202+
'httpMethod' => 'GET',
203+
'parameters' => [
204+
'filter' => [
205+
'location' => 'query',
206+
'type' => 'string',
207+
],
208+
'pageSize' => [
209+
'location' => 'query',
210+
'type' => 'integer',
211+
],
212+
'pageToken' => [
213+
'location' => 'query',
214+
'type' => 'string',
215+
],
216+
'parent' => [
217+
'location' => 'query',
218+
'type' => 'string',
219+
],
220+
'readMask' => [
221+
'location' => 'query',
222+
'type' => 'string',
223+
],
224+
],
225+
],
226+
]
227+
]
228+
);
172229
$this->datasets = new Aiplatform\Resource\Datasets(
173230
$this,
174231
$this->serviceName,
@@ -413,6 +470,26 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
413470
]
414471
]
415472
);
473+
$this->endpoints_chat = new Aiplatform\Resource\EndpointsChat(
474+
$this,
475+
$this->serviceName,
476+
'chat',
477+
[
478+
'methods' => [
479+
'completions' => [
480+
'path' => 'v1/{+endpoint}/chat/completions',
481+
'httpMethod' => 'POST',
482+
'parameters' => [
483+
'endpoint' => [
484+
'location' => 'path',
485+
'type' => 'string',
486+
'required' => true,
487+
],
488+
],
489+
],
490+
]
491+
]
492+
);
416493
$this->media = new Aiplatform\Resource\Media(
417494
$this,
418495
$this->serviceName,
@@ -7428,6 +7505,82 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
74287505
]
74297506
]
74307507
);
7508+
$this->projects_locations_ragEngineConfig_operations = new Aiplatform\Resource\ProjectsLocationsRagEngineConfigOperations(
7509+
$this,
7510+
$this->serviceName,
7511+
'operations',
7512+
[
7513+
'methods' => [
7514+
'cancel' => [
7515+
'path' => 'v1/{+name}:cancel',
7516+
'httpMethod' => 'POST',
7517+
'parameters' => [
7518+
'name' => [
7519+
'location' => 'path',
7520+
'type' => 'string',
7521+
'required' => true,
7522+
],
7523+
],
7524+
],'delete' => [
7525+
'path' => 'v1/{+name}',
7526+
'httpMethod' => 'DELETE',
7527+
'parameters' => [
7528+
'name' => [
7529+
'location' => 'path',
7530+
'type' => 'string',
7531+
'required' => true,
7532+
],
7533+
],
7534+
],'get' => [
7535+
'path' => 'v1/{+name}',
7536+
'httpMethod' => 'GET',
7537+
'parameters' => [
7538+
'name' => [
7539+
'location' => 'path',
7540+
'type' => 'string',
7541+
'required' => true,
7542+
],
7543+
],
7544+
],'list' => [
7545+
'path' => 'v1/{+name}/operations',
7546+
'httpMethod' => 'GET',
7547+
'parameters' => [
7548+
'name' => [
7549+
'location' => 'path',
7550+
'type' => 'string',
7551+
'required' => true,
7552+
],
7553+
'filter' => [
7554+
'location' => 'query',
7555+
'type' => 'string',
7556+
],
7557+
'pageSize' => [
7558+
'location' => 'query',
7559+
'type' => 'integer',
7560+
],
7561+
'pageToken' => [
7562+
'location' => 'query',
7563+
'type' => 'string',
7564+
],
7565+
],
7566+
],'wait' => [
7567+
'path' => 'v1/{+name}:wait',
7568+
'httpMethod' => 'POST',
7569+
'parameters' => [
7570+
'name' => [
7571+
'location' => 'path',
7572+
'type' => 'string',
7573+
'required' => true,
7574+
],
7575+
'timeout' => [
7576+
'location' => 'query',
7577+
'type' => 'string',
7578+
],
7579+
],
7580+
],
7581+
]
7582+
]
7583+
);
74317584
$this->projects_locations_reasoningEngines = new Aiplatform\Resource\ProjectsLocationsReasoningEngines(
74327585
$this,
74337586
$this->serviceName,

src/Aiplatform/GoogleCloudAiplatformV1Fact.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
class GoogleCloudAiplatformV1Fact extends \Google\Model
2121
{
22+
protected $chunkType = GoogleCloudAiplatformV1RagChunk::class;
23+
protected $chunkDataType = '';
2224
/**
2325
* @var string
2426
*/
@@ -38,6 +40,20 @@ class GoogleCloudAiplatformV1Fact extends \Google\Model
3840
public $uri;
3941
public $vectorDistance;
4042

43+
/**
44+
* @param GoogleCloudAiplatformV1RagChunk
45+
*/
46+
public function setChunk(GoogleCloudAiplatformV1RagChunk $chunk)
47+
{
48+
$this->chunk = $chunk;
49+
}
50+
/**
51+
* @return GoogleCloudAiplatformV1RagChunk
52+
*/
53+
public function getChunk()
54+
{
55+
return $this->chunk;
56+
}
4157
/**
4258
* @param string
4359
*/

src/Aiplatform/GoogleCloudAiplatformV1GenerationConfig.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ class GoogleCloudAiplatformV1GenerationConfig extends \Google\Collection
7878
* @var float
7979
*/
8080
public $temperature;
81+
protected $thinkingConfigType = GoogleCloudAiplatformV1GenerationConfigThinkingConfig::class;
82+
protected $thinkingConfigDataType = '';
8183
/**
8284
* @var float
8385
*/
@@ -311,6 +313,20 @@ public function getTemperature()
311313
{
312314
return $this->temperature;
313315
}
316+
/**
317+
* @param GoogleCloudAiplatformV1GenerationConfigThinkingConfig
318+
*/
319+
public function setThinkingConfig(GoogleCloudAiplatformV1GenerationConfigThinkingConfig $thinkingConfig)
320+
{
321+
$this->thinkingConfig = $thinkingConfig;
322+
}
323+
/**
324+
* @return GoogleCloudAiplatformV1GenerationConfigThinkingConfig
325+
*/
326+
public function getThinkingConfig()
327+
{
328+
return $this->thinkingConfig;
329+
}
314330
/**
315331
* @param float
316332
*/
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Aiplatform;
19+
20+
class GoogleCloudAiplatformV1GenerationConfigThinkingConfig extends \Google\Model
21+
{
22+
/**
23+
* @var int
24+
*/
25+
public $thinkingBudget;
26+
27+
/**
28+
* @param int
29+
*/
30+
public function setThinkingBudget($thinkingBudget)
31+
{
32+
$this->thinkingBudget = $thinkingBudget;
33+
}
34+
/**
35+
* @return int
36+
*/
37+
public function getThinkingBudget()
38+
{
39+
return $this->thinkingBudget;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(GoogleCloudAiplatformV1GenerationConfigThinkingConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1GenerationConfigThinkingConfig');

src/Aiplatform/GoogleCloudAiplatformV1GroundingChunkRetrievedContext.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
class GoogleCloudAiplatformV1GroundingChunkRetrievedContext extends \Google\Model
2121
{
22+
protected $ragChunkType = GoogleCloudAiplatformV1RagChunk::class;
23+
protected $ragChunkDataType = '';
2224
/**
2325
* @var string
2426
*/
@@ -32,6 +34,20 @@ class GoogleCloudAiplatformV1GroundingChunkRetrievedContext extends \Google\Mode
3234
*/
3335
public $uri;
3436

37+
/**
38+
* @param GoogleCloudAiplatformV1RagChunk
39+
*/
40+
public function setRagChunk(GoogleCloudAiplatformV1RagChunk $ragChunk)
41+
{
42+
$this->ragChunk = $ragChunk;
43+
}
44+
/**
45+
* @return GoogleCloudAiplatformV1RagChunk
46+
*/
47+
public function getRagChunk()
48+
{
49+
return $this->ragChunk;
50+
}
3551
/**
3652
* @param string
3753
*/

src/Aiplatform/GoogleCloudAiplatformV1ModelVersionCheckpoint.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ class GoogleCloudAiplatformV1ModelVersionCheckpoint extends \Google\Model
2727
* @var string
2828
*/
2929
public $epoch;
30-
/**
31-
* @var string
32-
*/
33-
public $name;
3430
/**
3531
* @var string
3632
*/
@@ -64,20 +60,6 @@ public function getEpoch()
6460
{
6561
return $this->epoch;
6662
}
67-
/**
68-
* @param string
69-
*/
70-
public function setName($name)
71-
{
72-
$this->name = $name;
73-
}
74-
/**
75-
* @return string
76-
*/
77-
public function getName()
78-
{
79-
return $this->name;
80-
}
8163
/**
8264
* @param string
8365
*/

src/Aiplatform/GoogleCloudAiplatformV1NotebookRuntime.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ class GoogleCloudAiplatformV1NotebookRuntime extends \Google\Collection
7878
* @var string
7979
*/
8080
public $proxyUri;
81+
protected $reservationAffinityType = GoogleCloudAiplatformV1NotebookReservationAffinity::class;
82+
protected $reservationAffinityDataType = '';
8183
/**
8284
* @var string
8385
*/
@@ -363,6 +365,20 @@ public function getProxyUri()
363365
{
364366
return $this->proxyUri;
365367
}
368+
/**
369+
* @param GoogleCloudAiplatformV1NotebookReservationAffinity
370+
*/
371+
public function setReservationAffinity(GoogleCloudAiplatformV1NotebookReservationAffinity $reservationAffinity)
372+
{
373+
$this->reservationAffinity = $reservationAffinity;
374+
}
375+
/**
376+
* @return GoogleCloudAiplatformV1NotebookReservationAffinity
377+
*/
378+
public function getReservationAffinity()
379+
{
380+
return $this->reservationAffinity;
381+
}
366382
/**
367383
* @param string
368384
*/

0 commit comments

Comments
 (0)