Skip to content

Commit 3811555

Browse files
1 parent 6a23870 commit 3811555

48 files changed

Lines changed: 1629 additions & 40 deletions

File tree

Some content is hidden

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

src/DiscoveryEngine.php

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,16 @@ class DiscoveryEngine extends \Google\Service
4646
/** View, edit, create, and delete all your data associated with any Discovery Engine API product, such as Agentspace, Vertex AI Search, or NotebookLM Enterprise, including both end user data and administration or configuration data.. */
4747
const DISCOVERYENGINE_READWRITE =
4848
"https://www.googleapis.com/auth/discoveryengine.readwrite";
49+
/** Interact with Discovery Engine API products, such as Agentspace, Vertex AI Search, or NotebookLM Enterprise, on your behalf. It will also allow the app to view all data that you have access to when you use or interact with a Discovery Engine API product.. */
50+
const DISCOVERYENGINE_SERVING_READWRITE =
51+
"https://www.googleapis.com/auth/discoveryengine.serving.readwrite";
4952

53+
public $billingAccounts_billingAccountLicenseConfigs;
5054
public $projects;
5155
public $projects_locations;
5256
public $projects_locations_cmekConfigs;
5357
public $projects_locations_collections;
58+
public $projects_locations_collections_dataConnector;
5459
public $projects_locations_collections_dataConnector_operations;
5560
public $projects_locations_collections_dataStores;
5661
public $projects_locations_collections_dataStores_branches;
@@ -143,6 +148,36 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
143148
$this->version = 'v1';
144149
$this->serviceName = 'discoveryengine';
145150

151+
$this->billingAccounts_billingAccountLicenseConfigs = new DiscoveryEngine\Resource\BillingAccountsBillingAccountLicenseConfigs(
152+
$this,
153+
$this->serviceName,
154+
'billingAccountLicenseConfigs',
155+
[
156+
'methods' => [
157+
'distributeLicenseConfig' => [
158+
'path' => 'v1/{+billingAccountLicenseConfig}:distributeLicenseConfig',
159+
'httpMethod' => 'POST',
160+
'parameters' => [
161+
'billingAccountLicenseConfig' => [
162+
'location' => 'path',
163+
'type' => 'string',
164+
'required' => true,
165+
],
166+
],
167+
],'retractLicenseConfig' => [
168+
'path' => 'v1/{+billingAccountLicenseConfig}:retractLicenseConfig',
169+
'httpMethod' => 'POST',
170+
'parameters' => [
171+
'billingAccountLicenseConfig' => [
172+
'location' => 'path',
173+
'type' => 'string',
174+
'required' => true,
175+
],
176+
],
177+
],
178+
]
179+
]
180+
);
146181
$this->projects = new DiscoveryEngine\Resource\Projects(
147182
$this,
148183
$this->serviceName,
@@ -343,6 +378,49 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
343378
]
344379
]
345380
);
381+
$this->projects_locations_collections_dataConnector = new DiscoveryEngine\Resource\ProjectsLocationsCollectionsDataConnector(
382+
$this,
383+
$this->serviceName,
384+
'dataConnector',
385+
[
386+
'methods' => [
387+
'mcp' => [
388+
'path' => 'v1/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataConnector/mcp',
389+
'httpMethod' => 'DELETE',
390+
'parameters' => [
391+
'projectsId' => [
392+
'location' => 'path',
393+
'type' => 'string',
394+
'required' => true,
395+
],
396+
'locationsId' => [
397+
'location' => 'path',
398+
'type' => 'string',
399+
'required' => true,
400+
],
401+
'collectionsId' => [
402+
'location' => 'path',
403+
'type' => 'string',
404+
'required' => true,
405+
],
406+
'contentType' => [
407+
'location' => 'query',
408+
'type' => 'string',
409+
],
410+
'data' => [
411+
'location' => 'query',
412+
'type' => 'string',
413+
],
414+
'extensions' => [
415+
'location' => 'query',
416+
'type' => 'object',
417+
'repeated' => true,
418+
],
419+
],
420+
],
421+
]
422+
]
423+
);
346424
$this->projects_locations_collections_dataConnector_operations = new DiscoveryEngine\Resource\ProjectsLocationsCollectionsDataConnectorOperations(
347425
$this,
348426
$this->serviceName,
@@ -1312,6 +1390,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
13121390
'type' => 'string',
13131391
'required' => true,
13141392
],
1393+
'sessionId' => [
1394+
'location' => 'query',
1395+
'type' => 'string',
1396+
],
13151397
],
13161398
],'delete' => [
13171399
'path' => 'v1/{+name}',
@@ -2610,6 +2692,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
26102692
'type' => 'string',
26112693
'required' => true,
26122694
],
2695+
'sessionId' => [
2696+
'location' => 'query',
2697+
'type' => 'string',
2698+
],
26132699
],
26142700
],'delete' => [
26152701
'path' => 'v1/{+name}',
@@ -3634,6 +3720,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
36343720
'type' => 'string',
36353721
'required' => true,
36363722
],
3723+
'sessionId' => [
3724+
'location' => 'query',
3725+
'type' => 'string',
3726+
],
36373727
],
36383728
],'delete' => [
36393729
'path' => 'v1/{+name}',
@@ -4467,6 +4557,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
44674557
'type' => 'string',
44684558
'required' => true,
44694559
],
4560+
'filter' => [
4561+
'location' => 'query',
4562+
'type' => 'string',
4563+
],
44704564
'orderBy' => [
44714565
'location' => 'query',
44724566
'type' => 'string',

src/DiscoveryEngine/GoogleCloudDiscoveryengineV1ActionConfig.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ class GoogleCloudDiscoveryengineV1ActionConfig extends \Google\Model
2525
* @var array[]
2626
*/
2727
public $actionParams;
28+
/**
29+
* Optional. Whether to create a BAP connection for the connector.
30+
*
31+
* @var bool
32+
*/
33+
public $createBapConnection;
2834
/**
2935
* Output only. The connector contains the necessary parameters and is
3036
* configured to support actions.
@@ -73,6 +79,22 @@ public function getActionParams()
7379
{
7480
return $this->actionParams;
7581
}
82+
/**
83+
* Optional. Whether to create a BAP connection for the connector.
84+
*
85+
* @param bool $createBapConnection
86+
*/
87+
public function setCreateBapConnection($createBapConnection)
88+
{
89+
$this->createBapConnection = $createBapConnection;
90+
}
91+
/**
92+
* @return bool
93+
*/
94+
public function getCreateBapConnection()
95+
{
96+
return $this->createBapConnection;
97+
}
7698
/**
7799
* Output only. The connector contains the necessary parameters and is
78100
* configured to support actions.

src/DiscoveryEngine/GoogleCloudDiscoveryengineV1AssistAnswerReply.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,31 @@
1919

2020
class GoogleCloudDiscoveryengineV1AssistAnswerReply extends \Google\Model
2121
{
22+
/**
23+
* The time when the reply was created.
24+
*
25+
* @var string
26+
*/
27+
public $createTime;
2228
protected $groundedContentType = GoogleCloudDiscoveryengineV1AssistantGroundedContent::class;
2329
protected $groundedContentDataType = '';
2430

31+
/**
32+
* The time when the reply was created.
33+
*
34+
* @param string $createTime
35+
*/
36+
public function setCreateTime($createTime)
37+
{
38+
$this->createTime = $createTime;
39+
}
40+
/**
41+
* @return string
42+
*/
43+
public function getCreateTime()
44+
{
45+
return $this->createTime;
46+
}
2547
/**
2648
* Possibly grounded response text or media from the assistant.
2749
*
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
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\DiscoveryEngine;
19+
20+
class GoogleCloudDiscoveryengineV1DistributeLicenseConfigRequest extends \Google\Model
21+
{
22+
/**
23+
* Optional. Distribute seats to this license config instead of creating a new
24+
* one. If not specified, a new license config will be created from the
25+
* billing account license config.
26+
*
27+
* @var string
28+
*/
29+
public $licenseConfigId;
30+
/**
31+
* Required. The number of licenses to distribute.
32+
*
33+
* @var string
34+
*/
35+
public $licenseCount;
36+
/**
37+
* Required. The target GCP project region to distribute the license config
38+
* to.
39+
*
40+
* @var string
41+
*/
42+
public $location;
43+
/**
44+
* Required. The target GCP project number to distribute the license config
45+
* to.
46+
*
47+
* @var string
48+
*/
49+
public $projectNumber;
50+
51+
/**
52+
* Optional. Distribute seats to this license config instead of creating a new
53+
* one. If not specified, a new license config will be created from the
54+
* billing account license config.
55+
*
56+
* @param string $licenseConfigId
57+
*/
58+
public function setLicenseConfigId($licenseConfigId)
59+
{
60+
$this->licenseConfigId = $licenseConfigId;
61+
}
62+
/**
63+
* @return string
64+
*/
65+
public function getLicenseConfigId()
66+
{
67+
return $this->licenseConfigId;
68+
}
69+
/**
70+
* Required. The number of licenses to distribute.
71+
*
72+
* @param string $licenseCount
73+
*/
74+
public function setLicenseCount($licenseCount)
75+
{
76+
$this->licenseCount = $licenseCount;
77+
}
78+
/**
79+
* @return string
80+
*/
81+
public function getLicenseCount()
82+
{
83+
return $this->licenseCount;
84+
}
85+
/**
86+
* Required. The target GCP project region to distribute the license config
87+
* to.
88+
*
89+
* @param string $location
90+
*/
91+
public function setLocation($location)
92+
{
93+
$this->location = $location;
94+
}
95+
/**
96+
* @return string
97+
*/
98+
public function getLocation()
99+
{
100+
return $this->location;
101+
}
102+
/**
103+
* Required. The target GCP project number to distribute the license config
104+
* to.
105+
*
106+
* @param string $projectNumber
107+
*/
108+
public function setProjectNumber($projectNumber)
109+
{
110+
$this->projectNumber = $projectNumber;
111+
}
112+
/**
113+
* @return string
114+
*/
115+
public function getProjectNumber()
116+
{
117+
return $this->projectNumber;
118+
}
119+
}
120+
121+
// Adding a class alias for backwards compatibility with the previous class name.
122+
class_alias(GoogleCloudDiscoveryengineV1DistributeLicenseConfigRequest::class, 'Google_Service_DiscoveryEngine_GoogleCloudDiscoveryengineV1DistributeLicenseConfigRequest');
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\DiscoveryEngine;
19+
20+
class GoogleCloudDiscoveryengineV1DistributeLicenseConfigResponse extends \Google\Model
21+
{
22+
protected $licenseConfigType = GoogleCloudDiscoveryengineV1LicenseConfig::class;
23+
protected $licenseConfigDataType = '';
24+
25+
/**
26+
* The updated or created LicenseConfig.
27+
*
28+
* @param GoogleCloudDiscoveryengineV1LicenseConfig $licenseConfig
29+
*/
30+
public function setLicenseConfig(GoogleCloudDiscoveryengineV1LicenseConfig $licenseConfig)
31+
{
32+
$this->licenseConfig = $licenseConfig;
33+
}
34+
/**
35+
* @return GoogleCloudDiscoveryengineV1LicenseConfig
36+
*/
37+
public function getLicenseConfig()
38+
{
39+
return $this->licenseConfig;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(GoogleCloudDiscoveryengineV1DistributeLicenseConfigResponse::class, 'Google_Service_DiscoveryEngine_GoogleCloudDiscoveryengineV1DistributeLicenseConfigResponse');

0 commit comments

Comments
 (0)