Skip to content

Commit 9e625aa

Browse files
Regenerate aiplatform client
1 parent c9fa9d7 commit 9e625aa

29 files changed

+1249
-19
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/GoogleCloudAiplatformV1CachedContent.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ class GoogleCloudAiplatformV1CachedContent extends \Google\Collection
3030
* @var string
3131
*/
3232
public $displayName;
33+
protected $encryptionSpecType = GoogleCloudAiplatformV1EncryptionSpec::class;
34+
protected $encryptionSpecDataType = '';
3335
/**
3436
* @var string
3537
*/
@@ -101,6 +103,20 @@ public function getDisplayName()
101103
{
102104
return $this->displayName;
103105
}
106+
/**
107+
* @param GoogleCloudAiplatformV1EncryptionSpec
108+
*/
109+
public function setEncryptionSpec(GoogleCloudAiplatformV1EncryptionSpec $encryptionSpec)
110+
{
111+
$this->encryptionSpec = $encryptionSpec;
112+
}
113+
/**
114+
* @return GoogleCloudAiplatformV1EncryptionSpec
115+
*/
116+
public function getEncryptionSpec()
117+
{
118+
return $this->encryptionSpec;
119+
}
104120
/**
105121
* @param string
106122
*/
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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 GoogleCloudAiplatformV1Checkpoint extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $checkpointId;
26+
/**
27+
* @var string
28+
*/
29+
public $epoch;
30+
/**
31+
* @var string
32+
*/
33+
public $step;
34+
35+
/**
36+
* @param string
37+
*/
38+
public function setCheckpointId($checkpointId)
39+
{
40+
$this->checkpointId = $checkpointId;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getCheckpointId()
46+
{
47+
return $this->checkpointId;
48+
}
49+
/**
50+
* @param string
51+
*/
52+
public function setEpoch($epoch)
53+
{
54+
$this->epoch = $epoch;
55+
}
56+
/**
57+
* @return string
58+
*/
59+
public function getEpoch()
60+
{
61+
return $this->epoch;
62+
}
63+
/**
64+
* @param string
65+
*/
66+
public function setStep($step)
67+
{
68+
$this->step = $step;
69+
}
70+
/**
71+
* @return string
72+
*/
73+
public function getStep()
74+
{
75+
return $this->step;
76+
}
77+
}
78+
79+
// Adding a class alias for backwards compatibility with the previous class name.
80+
class_alias(GoogleCloudAiplatformV1Checkpoint::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1Checkpoint');

src/Aiplatform/GoogleCloudAiplatformV1DeployedModel.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ class GoogleCloudAiplatformV1DeployedModel extends \Google\Model
2121
{
2222
protected $automaticResourcesType = GoogleCloudAiplatformV1AutomaticResources::class;
2323
protected $automaticResourcesDataType = '';
24+
/**
25+
* @var string
26+
*/
27+
public $checkpointId;
2428
/**
2529
* @var string
2630
*/
@@ -92,6 +96,20 @@ public function getAutomaticResources()
9296
{
9397
return $this->automaticResources;
9498
}
99+
/**
100+
* @param string
101+
*/
102+
public function setCheckpointId($checkpointId)
103+
{
104+
$this->checkpointId = $checkpointId;
105+
}
106+
/**
107+
* @return string
108+
*/
109+
public function getCheckpointId()
110+
{
111+
return $this->checkpointId;
112+
}
95113
/**
96114
* @param string
97115
*/

src/Aiplatform/GoogleCloudAiplatformV1DeployedModelRef.php

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

2020
class GoogleCloudAiplatformV1DeployedModelRef extends \Google\Model
2121
{
22+
/**
23+
* @var string
24+
*/
25+
public $checkpointId;
2226
/**
2327
* @var string
2428
*/
@@ -28,6 +32,20 @@ class GoogleCloudAiplatformV1DeployedModelRef extends \Google\Model
2832
*/
2933
public $endpoint;
3034

35+
/**
36+
* @param string
37+
*/
38+
public function setCheckpointId($checkpointId)
39+
{
40+
$this->checkpointId = $checkpointId;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getCheckpointId()
46+
{
47+
return $this->checkpointId;
48+
}
3149
/**
3250
* @param string
3351
*/

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
*/

0 commit comments

Comments
 (0)