Skip to content

Commit 9583696

Browse files
1 parent 7dfea30 commit 9583696

9 files changed

Lines changed: 233 additions & 4 deletions

src/Aiplatform.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ class Aiplatform extends \Google\Service
165165
public $projects_locations_pipelineJobs;
166166
public $projects_locations_pipelineJobs_operations;
167167
public $projects_locations_publishers_models;
168+
public $projects_locations_publishers_models_invoke;
168169
public $projects_locations_ragCorpora;
169170
public $projects_locations_ragCorpora_operations;
170171
public $projects_locations_ragCorpora_ragFiles;
@@ -10504,6 +10505,31 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
1050410505
]
1050510506
]
1050610507
);
10508+
$this->projects_locations_publishers_models_invoke = new Aiplatform\Resource\ProjectsLocationsPublishersModelsInvoke(
10509+
$this,
10510+
$this->serviceName,
10511+
'invoke',
10512+
[
10513+
'methods' => [
10514+
'invoke' => [
10515+
'path' => 'v1/{+endpoint}/invoke/{+invokeId}',
10516+
'httpMethod' => 'POST',
10517+
'parameters' => [
10518+
'endpoint' => [
10519+
'location' => 'path',
10520+
'type' => 'string',
10521+
'required' => true,
10522+
],
10523+
'invokeId' => [
10524+
'location' => 'path',
10525+
'type' => 'string',
10526+
'required' => true,
10527+
],
10528+
],
10529+
],
10530+
]
10531+
]
10532+
);
1050710533
$this->projects_locations_ragCorpora = new Aiplatform\Resource\ProjectsLocationsRagCorpora(
1050810534
$this,
1050910535
$this->serviceName,

src/Aiplatform/GoogleCloudAiplatformV1FunctionResponse.php

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

2020
class GoogleCloudAiplatformV1FunctionResponse extends \Google\Collection
2121
{
22+
/**
23+
* This value is unused.
24+
*/
25+
public const SCHEDULING_SCHEDULING_UNSPECIFIED = 'SCHEDULING_UNSPECIFIED';
26+
/**
27+
* Only add the result to the conversation context, do not interrupt or
28+
* trigger generation.
29+
*/
30+
public const SCHEDULING_SILENT = 'SILENT';
31+
/**
32+
* Add the result to the conversation context, and prompt to generate output
33+
* without interrupting ongoing generation.
34+
*/
35+
public const SCHEDULING_WHEN_IDLE = 'WHEN_IDLE';
36+
/**
37+
* Add the result to the conversation context, interrupt ongoing generation
38+
* and prompt to generate output.
39+
*/
40+
public const SCHEDULING_INTERRUPT = 'INTERRUPT';
2241
protected $collection_key = 'parts';
2342
/**
2443
* Required. The name of the function to call. Matches
@@ -38,6 +57,14 @@ class GoogleCloudAiplatformV1FunctionResponse extends \Google\Collection
3857
* @var array[]
3958
*/
4059
public $response;
60+
/**
61+
* Optional. Specifies how the response should be scheduled in the
62+
* conversation. Only applicable to NON_BLOCKING function calls, is ignored
63+
* otherwise. Defaults to WHEN_IDLE.
64+
*
65+
* @var string
66+
*/
67+
public $scheduling;
4168

4269
/**
4370
* Required. The name of the function to call. Matches
@@ -92,6 +119,26 @@ public function getResponse()
92119
{
93120
return $this->response;
94121
}
122+
/**
123+
* Optional. Specifies how the response should be scheduled in the
124+
* conversation. Only applicable to NON_BLOCKING function calls, is ignored
125+
* otherwise. Defaults to WHEN_IDLE.
126+
*
127+
* Accepted values: SCHEDULING_UNSPECIFIED, SILENT, WHEN_IDLE, INTERRUPT
128+
*
129+
* @param self::SCHEDULING_* $scheduling
130+
*/
131+
public function setScheduling($scheduling)
132+
{
133+
$this->scheduling = $scheduling;
134+
}
135+
/**
136+
* @return self::SCHEDULING_*
137+
*/
138+
public function getScheduling()
139+
{
140+
return $this->scheduling;
141+
}
95142
}
96143

97144
// Adding a class alias for backwards compatibility with the previous class name.

src/Aiplatform/GoogleCloudAiplatformV1MigrateResourceRequest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,18 @@ public function getMigrateAutomlModelConfig()
6262
return $this->migrateAutomlModelConfig;
6363
}
6464
/**
65-
* Config for migrating Dataset in datalabeling.googleapis.com to Vertex AI's
66-
* Dataset.
65+
* Deprecated: Data labeling service is shut down. Config for migrating
66+
* Dataset in datalabeling.googleapis.com to Vertex AI's Dataset.
6767
*
68+
* @deprecated
6869
* @param GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig $migrateDataLabelingDatasetConfig
6970
*/
7071
public function setMigrateDataLabelingDatasetConfig(GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig $migrateDataLabelingDatasetConfig)
7172
{
7273
$this->migrateDataLabelingDatasetConfig = $migrateDataLabelingDatasetConfig;
7374
}
7475
/**
76+
* @deprecated
7577
* @return GoogleCloudAiplatformV1MigrateResourceRequestMigrateDataLabelingDatasetConfig
7678
*/
7779
public function getMigrateDataLabelingDatasetConfig()

src/Aiplatform/GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec extends \Google\M
2121
{
2222
protected $developerConnectSourceType = GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecDeveloperConnectSource::class;
2323
protected $developerConnectSourceDataType = '';
24+
protected $imageSpecType = GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecImageSpec::class;
25+
protected $imageSpecDataType = '';
2426
protected $inlineSourceType = GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecInlineSource::class;
2527
protected $inlineSourceDataType = '';
2628
protected $pythonSpecType = GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecPythonSpec::class;
@@ -42,6 +44,22 @@ public function getDeveloperConnectSource()
4244
{
4345
return $this->developerConnectSource;
4446
}
47+
/**
48+
* Optional. Configuration for building an image with custom config file.
49+
*
50+
* @param GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecImageSpec $imageSpec
51+
*/
52+
public function setImageSpec(GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecImageSpec $imageSpec)
53+
{
54+
$this->imageSpec = $imageSpec;
55+
}
56+
/**
57+
* @return GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecImageSpec
58+
*/
59+
public function getImageSpec()
60+
{
61+
return $this->imageSpec;
62+
}
4563
/**
4664
* Source code is provided directly in the request.
4765
*
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecImageSpec extends \Google\Model
21+
{
22+
/**
23+
* Optional. Build arguments to be used. They will be passed through --build-
24+
* arg flags.
25+
*
26+
* @var string[]
27+
*/
28+
public $buildArgs;
29+
30+
/**
31+
* Optional. Build arguments to be used. They will be passed through --build-
32+
* arg flags.
33+
*
34+
* @param string[] $buildArgs
35+
*/
36+
public function setBuildArgs($buildArgs)
37+
{
38+
$this->buildArgs = $buildArgs;
39+
}
40+
/**
41+
* @return string[]
42+
*/
43+
public function getBuildArgs()
44+
{
45+
return $this->buildArgs;
46+
}
47+
}
48+
49+
// Adding a class alias for backwards compatibility with the previous class name.
50+
class_alias(GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecImageSpec::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecImageSpec');

src/Aiplatform/GoogleCloudAiplatformV1Schedule.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,15 @@ class GoogleCloudAiplatformV1Schedule extends \Google\Model
109109
public $lastResumeTime;
110110
protected $lastScheduledRunResponseType = GoogleCloudAiplatformV1ScheduleRunResponse::class;
111111
protected $lastScheduledRunResponseDataType = '';
112+
/**
113+
* Optional. Specifies the maximum number of active runs that can be executed
114+
* concurrently for this Schedule. This limits the number of runs that can be
115+
* in a non-terminal state at the same time. Currently, this field is only
116+
* supported for requests of type CreatePipelineJobRequest.
117+
*
118+
* @var string
119+
*/
120+
public $maxConcurrentActiveRunCount;
112121
/**
113122
* Required. Maximum number of runs that can be started concurrently for this
114123
* Schedule. This is the limit for starting the scheduled requests and not the
@@ -364,6 +373,25 @@ public function getLastScheduledRunResponse()
364373
{
365374
return $this->lastScheduledRunResponse;
366375
}
376+
/**
377+
* Optional. Specifies the maximum number of active runs that can be executed
378+
* concurrently for this Schedule. This limits the number of runs that can be
379+
* in a non-terminal state at the same time. Currently, this field is only
380+
* supported for requests of type CreatePipelineJobRequest.
381+
*
382+
* @param string $maxConcurrentActiveRunCount
383+
*/
384+
public function setMaxConcurrentActiveRunCount($maxConcurrentActiveRunCount)
385+
{
386+
$this->maxConcurrentActiveRunCount = $maxConcurrentActiveRunCount;
387+
}
388+
/**
389+
* @return string
390+
*/
391+
public function getMaxConcurrentActiveRunCount()
392+
{
393+
return $this->maxConcurrentActiveRunCount;
394+
}
367395
/**
368396
* Required. Maximum number of runs that can be started concurrently for this
369397
* Schedule. This is the limit for starting the scheduled requests and not the
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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\Resource;
19+
20+
use Google\Service\Aiplatform\GoogleApiHttpBody;
21+
use Google\Service\Aiplatform\GoogleCloudAiplatformV1InvokeRequest;
22+
23+
/**
24+
* The "invoke" collection of methods.
25+
* Typical usage is:
26+
* <code>
27+
* $aiplatformService = new Google\Service\Aiplatform(...);
28+
* $invoke = $aiplatformService->projects_locations_publishers_models_invoke;
29+
* </code>
30+
*/
31+
class ProjectsLocationsPublishersModelsInvoke extends \Google\Service\Resource
32+
{
33+
/**
34+
* Forwards arbitrary HTTP requests for both streaming and non-streaming cases.
35+
* To use this method, invoke_route_prefix must be set to allow the paths that
36+
* will be specified in the request. (invoke.invoke)
37+
*
38+
* @param string $endpoint Required. The name of the Endpoint requested to serve
39+
* the prediction. Format:
40+
* `projects/{project}/locations/{location}/endpoints/{endpoint}`
41+
* @param string $invokeId
42+
* @param GoogleCloudAiplatformV1InvokeRequest $postBody
43+
* @param array $optParams Optional parameters.
44+
* @return GoogleApiHttpBody
45+
* @throws \Google\Service\Exception
46+
*/
47+
public function invoke($endpoint, $invokeId, GoogleCloudAiplatformV1InvokeRequest $postBody, $optParams = [])
48+
{
49+
$params = ['endpoint' => $endpoint, 'invokeId' => $invokeId, 'postBody' => $postBody];
50+
$params = array_merge($params, $optParams);
51+
return $this->call('invoke', [$params], GoogleApiHttpBody::class);
52+
}
53+
}
54+
55+
// Adding a class alias for backwards compatibility with the previous class name.
56+
class_alias(ProjectsLocationsPublishersModelsInvoke::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsPublishersModelsInvoke');

src/Aiplatform/Resource/ProjectsLocationsRagCorpora.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ public function get($name, $optParams = [])
8989
* to list the RagCorpora. Format: `projects/{project}/locations/{location}`
9090
* @param array $optParams Optional parameters.
9191
*
92-
* @opt_param int pageSize Optional. The standard list page size.
92+
* @opt_param int pageSize Optional. The standard list page size. The maximum
93+
* value is 100. If not specified, a default value of 100 will be used.
9394
* @opt_param string pageToken Optional. The standard list page token. Typically
9495
* obtained via ListRagCorporaResponse.next_page_token of the previous
9596
* VertexRagDataService.ListRagCorpora call.

src/Aiplatform/Resource/ProjectsLocationsRagCorporaRagFiles.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ public function import($parent, GoogleCloudAiplatformV1ImportRagFilesRequest $po
9595
* `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
9696
* @param array $optParams Optional parameters.
9797
*
98-
* @opt_param int pageSize Optional. The standard list page size.
98+
* @opt_param int pageSize Optional. The standard list page size. The maximum
99+
* value is 100. If not specified, a default value of 100 will be used.
99100
* @opt_param string pageToken Optional. The standard list page token. Typically
100101
* obtained via ListRagFilesResponse.next_page_token of the previous
101102
* VertexRagDataService.ListRagFiles call.

0 commit comments

Comments
 (0)