From f24f75f0d7138c8541d03e32f410d61946b3f034 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sat, 27 Jun 2026 18:29:07 -0700 Subject: [PATCH] Regenerate aiplatform client --- src/Aiplatform.php | 375 ++++++++++++++++++ .../GoogleCloudAiplatformV1Agent.php | 288 ++++++++++++++ .../GoogleCloudAiplatformV1AgentTool.php | 122 ++++++ ...nSemanticGovernancePolicyEngineRequest.php | 25 ++ .../GoogleCloudAiplatformV1GatewayConfig.php | 223 +++++++++++ ...leCloudAiplatformV1IngestEventsRequest.php | 139 +++++++ ...latformV1IngestionDirectContentsSource.php | 45 +++ ...rmV1IngestionDirectContentsSourceEvent.php | 94 +++++ ...gleCloudAiplatformV1ListAgentsResponse.php | 69 ++++ ...ListSemanticGovernancePoliciesResponse.php | 69 ++++ ...udAiplatformV1SemanticGovernancePolicy.php | 261 ++++++++++++ ...atformV1SemanticGovernancePolicyEngine.php | 246 ++++++++++++ ...tformV1SemanticGovernancePolicyMcpTool.php | 79 ++++ ...eCloudAiplatformV1ToolParallelAiSearch.php | 30 ++ src/Aiplatform/Resource/ProjectsLocations.php | 46 +++ .../Resource/ProjectsLocationsAgents.php | 127 ++++++ ...jectsLocationsReasoningEnginesMemories.php | 18 + ...ctsLocationsSemanticGovernancePolicies.php | 142 +++++++ ...nsSemanticGovernancePoliciesOperations.php | 146 +++++++ ...ocationsSemanticGovernancePolicyEngine.php | 57 +++ .../Resource/SemanticGovernancePolicies.php | 33 ++ .../SemanticGovernancePoliciesOperations.php | 146 +++++++ 22 files changed, 2780 insertions(+) create mode 100644 src/Aiplatform/GoogleCloudAiplatformV1Agent.php create mode 100644 src/Aiplatform/GoogleCloudAiplatformV1AgentTool.php create mode 100644 src/Aiplatform/GoogleCloudAiplatformV1DeprovisionSemanticGovernancePolicyEngineRequest.php create mode 100644 src/Aiplatform/GoogleCloudAiplatformV1GatewayConfig.php create mode 100644 src/Aiplatform/GoogleCloudAiplatformV1IngestEventsRequest.php create mode 100644 src/Aiplatform/GoogleCloudAiplatformV1IngestionDirectContentsSource.php create mode 100644 src/Aiplatform/GoogleCloudAiplatformV1IngestionDirectContentsSourceEvent.php create mode 100644 src/Aiplatform/GoogleCloudAiplatformV1ListAgentsResponse.php create mode 100644 src/Aiplatform/GoogleCloudAiplatformV1ListSemanticGovernancePoliciesResponse.php create mode 100644 src/Aiplatform/GoogleCloudAiplatformV1SemanticGovernancePolicy.php create mode 100644 src/Aiplatform/GoogleCloudAiplatformV1SemanticGovernancePolicyEngine.php create mode 100644 src/Aiplatform/GoogleCloudAiplatformV1SemanticGovernancePolicyMcpTool.php create mode 100644 src/Aiplatform/Resource/ProjectsLocationsAgents.php create mode 100644 src/Aiplatform/Resource/ProjectsLocationsSemanticGovernancePolicies.php create mode 100644 src/Aiplatform/Resource/ProjectsLocationsSemanticGovernancePoliciesOperations.php create mode 100644 src/Aiplatform/Resource/ProjectsLocationsSemanticGovernancePolicyEngine.php create mode 100644 src/Aiplatform/Resource/SemanticGovernancePolicies.php create mode 100644 src/Aiplatform/Resource/SemanticGovernancePoliciesOperations.php diff --git a/src/Aiplatform.php b/src/Aiplatform.php index e9c707b5561..cd198018697 100644 --- a/src/Aiplatform.php +++ b/src/Aiplatform.php @@ -83,6 +83,7 @@ class Aiplatform extends \Google\Service public $pipelineJobs_operations; public $projects; public $projects_locations; + public $projects_locations_agents; public $projects_locations_batchPredictionJobs; public $projects_locations_cachedContents; public $projects_locations_customJobs; @@ -190,6 +191,9 @@ class Aiplatform extends \Google\Service public $projects_locations_reasoningEngines_sessions_operations; public $projects_locations_schedules; public $projects_locations_schedules_operations; + public $projects_locations_semanticGovernancePolicies; + public $projects_locations_semanticGovernancePolicies_operations; + public $projects_locations_semanticGovernancePolicyEngine; public $projects_locations_skills_operations; public $projects_locations_specialistPools; public $projects_locations_specialistPools_operations; @@ -225,6 +229,7 @@ class Aiplatform extends \Google\Service public $reasoningEngines_sandboxEnvironments_operations; public $reasoningEngines_sessions_operations; public $schedules_operations; + public $semanticGovernancePolicies_operations; public $skills_operations; public $specialistPools_operations; public $studies_operations; @@ -3458,6 +3463,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'required' => true, ], ], + ],'getSemanticGovernancePolicyEngine' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], ],'list' => [ 'path' => 'v1/{+name}/locations', 'httpMethod' => 'GET', @@ -3505,6 +3520,96 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'required' => true, ], ], + ],'updateSemanticGovernancePolicyEngine' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'updateMask' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); + $this->projects_locations_agents = new Aiplatform\Resource\ProjectsLocationsAgents( + $this, + $this->serviceName, + 'agents', + [ + 'methods' => [ + 'create' => [ + 'path' => 'v1/{+parent}/agents', + 'httpMethod' => 'POST', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'delete' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'get' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'list' => [ + 'path' => 'v1/{+parent}/agents', + 'httpMethod' => 'GET', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'orderBy' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageSize' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'patch' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'updateMask' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], ], ] ] @@ -11461,6 +11566,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'required' => true, ], ], + ],'ingestEvents' => [ + 'path' => 'v1/{+parent}/memories:ingestEvents', + 'httpMethod' => 'POST', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], ],'list' => [ 'path' => 'v1/{+parent}/memories', 'httpMethod' => 'GET', @@ -12535,6 +12650,186 @@ public function __construct($clientOrConfig = [], $rootUrl = null) ] ] ); + $this->projects_locations_semanticGovernancePolicies = new Aiplatform\Resource\ProjectsLocationsSemanticGovernancePolicies( + $this, + $this->serviceName, + 'semanticGovernancePolicies', + [ + 'methods' => [ + 'create' => [ + 'path' => 'v1/{+parent}/semanticGovernancePolicies', + 'httpMethod' => 'POST', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'semanticGovernancePolicyId' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'delete' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'etag' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'get' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'list' => [ + 'path' => 'v1/{+parent}/semanticGovernancePolicies', + 'httpMethod' => 'GET', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'pageSize' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'patch' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'updateMask' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); + $this->projects_locations_semanticGovernancePolicies_operations = new Aiplatform\Resource\ProjectsLocationsSemanticGovernancePoliciesOperations( + $this, + $this->serviceName, + 'operations', + [ + 'methods' => [ + 'cancel' => [ + 'path' => 'v1/{+name}:cancel', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'delete' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'get' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'list' => [ + 'path' => 'v1/{+name}/operations', + 'httpMethod' => 'GET', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageSize' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'returnPartialSuccess' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + ], + ],'wait' => [ + 'path' => 'v1/{+name}:wait', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'timeout' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); + $this->projects_locations_semanticGovernancePolicyEngine = new Aiplatform\Resource\ProjectsLocationsSemanticGovernancePolicyEngine( + $this, + $this->serviceName, + 'semanticGovernancePolicyEngine', + [ + 'methods' => [ + 'deprovision' => [ + 'path' => 'v1/{+name}:deprovision', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ], + ] + ] + ); $this->projects_locations_skills_operations = new Aiplatform\Resource\ProjectsLocationsSkillsOperations( $this, $this->serviceName, @@ -15403,6 +15698,86 @@ public function __construct($clientOrConfig = [], $rootUrl = null) ] ] ); + $this->semanticGovernancePolicies_operations = new Aiplatform\Resource\SemanticGovernancePoliciesOperations( + $this, + $this->serviceName, + 'operations', + [ + 'methods' => [ + 'cancel' => [ + 'path' => 'v1/{+name}:cancel', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'delete' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'DELETE', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'get' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'list' => [ + 'path' => 'v1/{+name}/operations', + 'httpMethod' => 'GET', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageSize' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'returnPartialSuccess' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + ], + ],'wait' => [ + 'path' => 'v1/{+name}:wait', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'timeout' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); $this->skills_operations = new Aiplatform\Resource\SkillsOperations( $this, $this->serviceName, diff --git a/src/Aiplatform/GoogleCloudAiplatformV1Agent.php b/src/Aiplatform/GoogleCloudAiplatformV1Agent.php new file mode 100644 index 00000000000..daf9bf80b2d --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1Agent.php @@ -0,0 +1,288 @@ + "base_agent", + "baseEnvironment" => "base_environment", + "systemInstruction" => "system_instruction", + ]; + /** + * Required. The base agent for the agent. Supported values: * `antigravity- + * preview-05-2026` + * + * @var string + */ + public $baseAgent; + /** + * Optional. The base environment configuration for the agent. Valid types: * + * A string value for the environment ID, or `remote` for the default. * A + * struct value for the `environment_config`. + * + * @var array + */ + public $baseEnvironment; + /** + * Output only. The time the agent was created. + * + * @var string + */ + public $created; + /** + * Optional. The description of the agent. + * + * @var string + */ + public $description; + /** + * Immutable. The user-specified ID for the agent. This ID becomes the final + * component of the agent resource name. If not provided, Vertex AI will + * generate a value for this ID. The ID can be up to 63 characters and must + * match the regular expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * @var string + */ + public $id; + /** + * Optional. The metadata for the agent. + * + * @var string[] + */ + public $metadata; + /** + * Identifier. The resource name of the agent. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + * + * @var string + */ + public $name; + /** + * Output only. The object type of the resource. For agents, the value is + * `agent`. + * + * @var string + */ + public $object; + /** + * Optional. The instructions for the agent to follow. These instructions are + * passed to the LLM as a system instruction. + * + * @var string + */ + public $systemInstruction; + protected $toolsType = GoogleCloudAiplatformV1AgentTool::class; + protected $toolsDataType = 'array'; + /** + * Output only. The time the agent was last updated. + * + * @var string + */ + public $updated; + + /** + * Required. The base agent for the agent. Supported values: * `antigravity- + * preview-05-2026` + * + * @param string $baseAgent + */ + public function setBaseAgent($baseAgent) + { + $this->baseAgent = $baseAgent; + } + /** + * @return string + */ + public function getBaseAgent() + { + return $this->baseAgent; + } + /** + * Optional. The base environment configuration for the agent. Valid types: * + * A string value for the environment ID, or `remote` for the default. * A + * struct value for the `environment_config`. + * + * @param array $baseEnvironment + */ + public function setBaseEnvironment($baseEnvironment) + { + $this->baseEnvironment = $baseEnvironment; + } + /** + * @return array + */ + public function getBaseEnvironment() + { + return $this->baseEnvironment; + } + /** + * Output only. The time the agent was created. + * + * @param string $created + */ + public function setCreated($created) + { + $this->created = $created; + } + /** + * @return string + */ + public function getCreated() + { + return $this->created; + } + /** + * Optional. The description of the agent. + * + * @param string $description + */ + public function setDescription($description) + { + $this->description = $description; + } + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + /** + * Immutable. The user-specified ID for the agent. This ID becomes the final + * component of the agent resource name. If not provided, Vertex AI will + * generate a value for this ID. The ID can be up to 63 characters and must + * match the regular expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * @param string $id + */ + public function setId($id) + { + $this->id = $id; + } + /** + * @return string + */ + public function getId() + { + return $this->id; + } + /** + * Optional. The metadata for the agent. + * + * @param string[] $metadata + */ + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + /** + * @return string[] + */ + public function getMetadata() + { + return $this->metadata; + } + /** + * Identifier. The resource name of the agent. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + * + * @param string $name + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * Output only. The object type of the resource. For agents, the value is + * `agent`. + * + * @param string $object + */ + public function setObject($object) + { + $this->object = $object; + } + /** + * @return string + */ + public function getObject() + { + return $this->object; + } + /** + * Optional. The instructions for the agent to follow. These instructions are + * passed to the LLM as a system instruction. + * + * @param string $systemInstruction + */ + public function setSystemInstruction($systemInstruction) + { + $this->systemInstruction = $systemInstruction; + } + /** + * @return string + */ + public function getSystemInstruction() + { + return $this->systemInstruction; + } + /** + * Optional. The tools available to the agent. + * + * @param GoogleCloudAiplatformV1AgentTool[] $tools + */ + public function setTools($tools) + { + $this->tools = $tools; + } + /** + * @return GoogleCloudAiplatformV1AgentTool[] + */ + public function getTools() + { + return $this->tools; + } + /** + * Output only. The time the agent was last updated. + * + * @param string $updated + */ + public function setUpdated($updated) + { + $this->updated = $updated; + } + /** + * @return string + */ + public function getUpdated() + { + return $this->updated; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1Agent::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1Agent'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1AgentTool.php b/src/Aiplatform/GoogleCloudAiplatformV1AgentTool.php new file mode 100644 index 00000000000..4e9678f195c --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1AgentTool.php @@ -0,0 +1,122 @@ +headers = $headers; + } + /** + * @return string[] + */ + public function getHeaders() + { + return $this->headers; + } + /** + * Optional. The name of the MCP server. Only applicable when `type` is + * `mcp_server`. + * + * @param string $name + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * Required. The type of the tool. Supported types: * `code_execution` * + * `filesystem` * `google_search` * `mcp_server` * `url_context` + * + * @param string $type + */ + public function setType($type) + { + $this->type = $type; + } + /** + * @return string + */ + public function getType() + { + return $this->type; + } + /** + * Optional. The URL for the MCP server endpoint. Only applicable when `type` + * is `mcp_server`. + * + * @param string $url + */ + public function setUrl($url) + { + $this->url = $url; + } + /** + * @return string + */ + public function getUrl() + { + return $this->url; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1AgentTool::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1AgentTool'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1DeprovisionSemanticGovernancePolicyEngineRequest.php b/src/Aiplatform/GoogleCloudAiplatformV1DeprovisionSemanticGovernancePolicyEngineRequest.php new file mode 100644 index 00000000000..cea35da24af --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1DeprovisionSemanticGovernancePolicyEngineRequest.php @@ -0,0 +1,25 @@ +dnsRecord = $dnsRecord; + } + /** + * @return string + */ + public function getDnsRecord() + { + return $this->dnsRecord; + } + /** + * Optional. FQDN of the private DNS zone to create DNS record set for PSC + * endpoint. + * + * @param string $dnsZoneName + */ + public function setDnsZoneName($dnsZoneName) + { + $this->dnsZoneName = $dnsZoneName; + } + /** + * @return string + */ + public function getDnsZoneName() + { + return $this->dnsZoneName; + } + /** + * Output only. The private IP address of the PSC endpoint. + * + * @param string $ipAddress + */ + public function setIpAddress($ipAddress) + { + $this->ipAddress = $ipAddress; + } + /** + * @return string + */ + public function getIpAddress() + { + return $this->ipAddress; + } + /** + * Optional. The URI of the network resource where PSC-E will be provisioned. + * if not provided `default` network will be used. Format: + * projects/{project}/global/networks/{network} + * + * @param string $network + */ + public function setNetwork($network) + { + $this->network = $network; + } + /** + * @return string + */ + public function getNetwork() + { + return $this->network; + } + /** + * Output only. The self-link or name of the Private Service Connect endpoint + * forwarding rule. + * + * @param string $pscEndpoint + */ + public function setPscEndpoint($pscEndpoint) + { + $this->pscEndpoint = $pscEndpoint; + } + /** + * @return string + */ + public function getPscEndpoint() + { + return $this->pscEndpoint; + } + /** + * Output only. The state of the Gateway configuration. + * + * Accepted values: STATE_UNSPECIFIED, PROVISIONING, ACTIVE, DEPROVISIONING, + * INACTIVE, FAILED + * + * @param self::STATE_* $state + */ + public function setState($state) + { + $this->state = $state; + } + /** + * @return self::STATE_* + */ + public function getState() + { + return $this->state; + } + /** + * Optional. The URI of the subnetwork resource where PSC-E will be + * provisioned. if not provided `default` subnet will be used from the same + * {location} Format: + * projects/{project}/regions/{region}/subnetworks/{subnetwork} + * + * @param string $subnetwork + */ + public function setSubnetwork($subnetwork) + { + $this->subnetwork = $subnetwork; + } + /** + * @return string + */ + public function getSubnetwork() + { + return $this->subnetwork; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1GatewayConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1GatewayConfig'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1IngestEventsRequest.php b/src/Aiplatform/GoogleCloudAiplatformV1IngestEventsRequest.php new file mode 100644 index 00000000000..eab9ec0c782 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1IngestEventsRequest.php @@ -0,0 +1,139 @@ +directContentsSource = $directContentsSource; + } + /** + * @return GoogleCloudAiplatformV1IngestionDirectContentsSource + */ + public function getDirectContentsSource() + { + return $this->directContentsSource; + } + /** + * Optional. Forces a flush of all pending events in the stream and triggers + * memory generation immediately bypassing any conditions configured in the + * `generation_trigger_config`. + * + * @param bool $forceFlush + */ + public function setForceFlush($forceFlush) + { + $this->forceFlush = $forceFlush; + } + /** + * @return bool + */ + public function getForceFlush() + { + return $this->forceFlush; + } + /** + * Optional. Configuration for triggering memory generation from this + * ingestion. If not set, then the stream will be force flushed immediately. + * + * @param GoogleCloudAiplatformV1MemoryGenerationTriggerConfig $generationTriggerConfig + */ + public function setGenerationTriggerConfig(GoogleCloudAiplatformV1MemoryGenerationTriggerConfig $generationTriggerConfig) + { + $this->generationTriggerConfig = $generationTriggerConfig; + } + /** + * @return GoogleCloudAiplatformV1MemoryGenerationTriggerConfig + */ + public function getGenerationTriggerConfig() + { + return $this->generationTriggerConfig; + } + /** + * Required. The scope of the memories that should be generated from the + * stream. Memories will be consolidated across memories with the same scope. + * Scope values cannot contain the wildcard character '*'. + * + * @param string[] $scope + */ + public function setScope($scope) + { + $this->scope = $scope; + } + /** + * @return string[] + */ + public function getScope() + { + return $this->scope; + } + /** + * Optional. The ID of the stream to ingest events into. If not provided, a + * new one will be created. + * + * @param string $streamId + */ + public function setStreamId($streamId) + { + $this->streamId = $streamId; + } + /** + * @return string + */ + public function getStreamId() + { + return $this->streamId; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1IngestEventsRequest::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1IngestEventsRequest'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1IngestionDirectContentsSource.php b/src/Aiplatform/GoogleCloudAiplatformV1IngestionDirectContentsSource.php new file mode 100644 index 00000000000..9ee58e50718 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1IngestionDirectContentsSource.php @@ -0,0 +1,45 @@ +events = $events; + } + /** + * @return GoogleCloudAiplatformV1IngestionDirectContentsSourceEvent[] + */ + public function getEvents() + { + return $this->events; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1IngestionDirectContentsSource::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1IngestionDirectContentsSource'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1IngestionDirectContentsSourceEvent.php b/src/Aiplatform/GoogleCloudAiplatformV1IngestionDirectContentsSourceEvent.php new file mode 100644 index 00000000000..baf0a035591 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1IngestionDirectContentsSourceEvent.php @@ -0,0 +1,94 @@ +content = $content; + } + /** + * @return GoogleCloudAiplatformV1Content + */ + public function getContent() + { + return $this->content; + } + /** + * Optional. A unique identifier for the event. If an event with the same + * event_id is ingested multiple times, it will be de-duplicated. + * + * @param string $eventId + */ + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + /** + * @return string + */ + public function getEventId() + { + return $this->eventId; + } + /** + * Optional. The time at which the event occurred. If provided, this timestamp + * will be used for ordering events within a stream. If not provided, the + * server-side ingestion time will be used. + * + * @param string $eventTime + */ + public function setEventTime($eventTime) + { + $this->eventTime = $eventTime; + } + /** + * @return string + */ + public function getEventTime() + { + return $this->eventTime; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1IngestionDirectContentsSourceEvent::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1IngestionDirectContentsSourceEvent'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1ListAgentsResponse.php b/src/Aiplatform/GoogleCloudAiplatformV1ListAgentsResponse.php new file mode 100644 index 00000000000..98db42fcc45 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1ListAgentsResponse.php @@ -0,0 +1,69 @@ +agents = $agents; + } + /** + * @return GoogleCloudAiplatformV1Agent[] + */ + public function getAgents() + { + return $this->agents; + } + /** + * A token to retrieve the next page of results. Pass this value as + * ListAgentsRequest.page_token in a subsequent call. + * + * @param string $nextPageToken + */ + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + /** + * @return string + */ + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1ListAgentsResponse::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ListAgentsResponse'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1ListSemanticGovernancePoliciesResponse.php b/src/Aiplatform/GoogleCloudAiplatformV1ListSemanticGovernancePoliciesResponse.php new file mode 100644 index 00000000000..3fea47ef3bf --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1ListSemanticGovernancePoliciesResponse.php @@ -0,0 +1,69 @@ +nextPageToken = $nextPageToken; + } + /** + * @return string + */ + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * The list of SemanticGovernancePolicies. + * + * @param GoogleCloudAiplatformV1SemanticGovernancePolicy[] $semanticGovernancePolicies + */ + public function setSemanticGovernancePolicies($semanticGovernancePolicies) + { + $this->semanticGovernancePolicies = $semanticGovernancePolicies; + } + /** + * @return GoogleCloudAiplatformV1SemanticGovernancePolicy[] + */ + public function getSemanticGovernancePolicies() + { + return $this->semanticGovernancePolicies; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1ListSemanticGovernancePoliciesResponse::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ListSemanticGovernancePoliciesResponse'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1SemanticGovernancePolicy.php b/src/Aiplatform/GoogleCloudAiplatformV1SemanticGovernancePolicy.php new file mode 100644 index 00000000000..d5bba6b0e70 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1SemanticGovernancePolicy.php @@ -0,0 +1,261 @@ +agent = $agent; + } + /** + * @return string + */ + public function getAgent() + { + return $this->agent; + } + /** + * Output only. Represents the principal of the agent, used by the Policy + * Decision Point (PDP) for governance checks. For more information, see + * https://docs.cloud.google.com/agent-builder/agent-engine/agent-identity + * Format: `principal://TRUST_DOMAIN/NAMESPACE/AGENT_NAME` Example: + * `principal://agents.global.org-ORGANIZATION_ID.system.id.goog/resources/aip + * latform/projects/PROJECT_NUMBER/locations/LOCATION/reasoningEngines/AGENT_E + * NGINE_ID` + * + * @param string $agentIdentity + */ + public function setAgentIdentity($agentIdentity) + { + $this->agentIdentity = $agentIdentity; + } + /** + * @return string + */ + public function getAgentIdentity() + { + return $this->agentIdentity; + } + /** + * Output only. Timestamp when this SemanticGovernancePolicy was created. + * + * @param string $createTime + */ + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + /** + * @return string + */ + public function getCreateTime() + { + return $this->createTime; + } + /** + * Optional. The description of the SemanticGovernancePolicy. + * + * @param string $description + */ + public function setDescription($description) + { + $this->description = $description; + } + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + /** + * Optional. The user-defined name of the SemanticGovernancePolicy. + * + * @param string $displayName + */ + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + /** + * @return string + */ + public function getDisplayName() + { + return $this->displayName; + } + /** + * Optional. Used to perform consistent read-modify-write transactions. If + * provided, the request will only succeed if the etag matches the current + * value. Otherwise, an ABORTED error will be returned. + * + * @param string $etag + */ + public function setEtag($etag) + { + $this->etag = $etag; + } + /** + * @return string + */ + public function getEtag() + { + return $this->etag; + } + /** + * Optional. The McpTools that are affected by this policy. + * + * @param GoogleCloudAiplatformV1SemanticGovernancePolicyMcpTool[] $mcpTools + */ + public function setMcpTools($mcpTools) + { + $this->mcpTools = $mcpTools; + } + /** + * @return GoogleCloudAiplatformV1SemanticGovernancePolicyMcpTool[] + */ + public function getMcpTools() + { + return $this->mcpTools; + } + /** + * Identifier. Resource name of the SemanticGovernancePolicy. + * + * @param string $name + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * Required. The natural language constraint of the SemanticGovernancePolicy. + * + * @param string $naturalLanguageConstraint + */ + public function setNaturalLanguageConstraint($naturalLanguageConstraint) + { + $this->naturalLanguageConstraint = $naturalLanguageConstraint; + } + /** + * @return string + */ + public function getNaturalLanguageConstraint() + { + return $this->naturalLanguageConstraint; + } + /** + * Output only. Timestamp when this SemanticGovernancePolicy was last updated. + * + * @param string $updateTime + */ + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + /** + * @return string + */ + public function getUpdateTime() + { + return $this->updateTime; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1SemanticGovernancePolicy::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SemanticGovernancePolicy'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1SemanticGovernancePolicyEngine.php b/src/Aiplatform/GoogleCloudAiplatformV1SemanticGovernancePolicyEngine.php new file mode 100644 index 00000000000..1d9fd5e4489 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1SemanticGovernancePolicyEngine.php @@ -0,0 +1,246 @@ +createTime = $createTime; + } + /** + * @return string + */ + public function getCreateTime() + { + return $this->createTime; + } + /** + * Optional. Configurations for gateways. The keys are user-defined names for + * each gateway. At most 5 gateway configurations are allowed. + * + * @param GoogleCloudAiplatformV1GatewayConfig[] $gatewayConfigs + */ + public function setGatewayConfigs($gatewayConfigs) + { + $this->gatewayConfigs = $gatewayConfigs; + } + /** + * @return GoogleCloudAiplatformV1GatewayConfig[] + */ + public function getGatewayConfigs() + { + return $this->gatewayConfigs; + } + /** + * Output only. The private IPv4 address of the PSC endpoint. + * + * @param string $ipAddress + */ + public function setIpAddress($ipAddress) + { + $this->ipAddress = $ipAddress; + } + /** + * @return string + */ + public function getIpAddress() + { + return $this->ipAddress; + } + /** + * Identifier. The resource name of the SemanticGovernancePolicyEngine. + * Format: + * projects/{project}/locations/{location}/semanticGovernancePolicyEngine + * + * @param string $name + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * Output only. The URI of the PSC endpoint resource created in customer + * project. Format: + * projects/{project}/regions/{region}/forwardingRules/{forwarding_rule} + * + * @param string $pscForwardingRule + */ + public function setPscForwardingRule($pscForwardingRule) + { + $this->pscForwardingRule = $pscForwardingRule; + } + /** + * @return string + */ + public function getPscForwardingRule() + { + return $this->pscForwardingRule; + } + /** + * Output only. URI of the PSC attachment resource provided by SGP. Format: + * projects/{project}/regions/{region}/serviceAttachments/{service_attachment} + * + * @param string $pscServiceAttachment + */ + public function setPscServiceAttachment($pscServiceAttachment) + { + $this->pscServiceAttachment = $pscServiceAttachment; + } + /** + * @return string + */ + public function getPscServiceAttachment() + { + return $this->pscServiceAttachment; + } + /** + * Output only. The state of the SemanticGovernancePolicyEngine. + * + * Accepted values: STATE_UNSPECIFIED, PROVISIONING, ACTIVE, DEPROVISIONING, + * INACTIVE, FAILED + * + * @param self::STATE_* $state + */ + public function setState($state) + { + $this->state = $state; + } + /** + * @return self::STATE_* + */ + public function getState() + { + return $this->state; + } + /** + * Output only. Timestamp when this SemanticGovernancePolicyEngine was last + * updated. + * + * @param string $updateTime + */ + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + /** + * @return string + */ + public function getUpdateTime() + { + return $this->updateTime; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1SemanticGovernancePolicyEngine::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SemanticGovernancePolicyEngine'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1SemanticGovernancePolicyMcpTool.php b/src/Aiplatform/GoogleCloudAiplatformV1SemanticGovernancePolicyMcpTool.php new file mode 100644 index 00000000000..3f0228baa16 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1SemanticGovernancePolicyMcpTool.php @@ -0,0 +1,79 @@ +mcpServer = $mcpServer; + } + /** + * @return string + */ + public function getMcpServer() + { + return $this->mcpServer; + } + /** + * Optional. The resource names of the McpTools used by the Agent that is + * affected by this policy. If not specified, the policy applies to all + * McpTools in the McpServer. + * + * @param string[] $tools + */ + public function setTools($tools) + { + $this->tools = $tools; + } + /** + * @return string[] + */ + public function getTools() + { + return $this->tools; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1SemanticGovernancePolicyMcpTool::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SemanticGovernancePolicyMcpTool'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1ToolParallelAiSearch.php b/src/Aiplatform/GoogleCloudAiplatformV1ToolParallelAiSearch.php index 718ed95b53d..3402a6e4e08 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1ToolParallelAiSearch.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1ToolParallelAiSearch.php @@ -41,6 +41,16 @@ class GoogleCloudAiplatformV1ToolParallelAiSearch extends \Google\Model * @var array[] */ public $customConfigs; + /** + * Optional. Instructs Vertex Grounding to use Parallel's Zero Data Retention + * Marketplace product. If this value is "false" or omitted, the Parallel Web + * Search for Grounding standard subscription will be used. If this value is + * "true", the Parallel Web Search for Grounding - ZDR subscription will be + * used. + * + * @var bool + */ + public $enableDataRetention; /** * Optional. The API key for ParallelAiSearch. If an API key is not provided, @@ -84,6 +94,26 @@ public function getCustomConfigs() { return $this->customConfigs; } + /** + * Optional. Instructs Vertex Grounding to use Parallel's Zero Data Retention + * Marketplace product. If this value is "false" or omitted, the Parallel Web + * Search for Grounding standard subscription will be used. If this value is + * "true", the Parallel Web Search for Grounding - ZDR subscription will be + * used. + * + * @param bool $enableDataRetention + */ + public function setEnableDataRetention($enableDataRetention) + { + $this->enableDataRetention = $enableDataRetention; + } + /** + * @return bool + */ + public function getEnableDataRetention() + { + return $this->enableDataRetention; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/Aiplatform/Resource/ProjectsLocations.php b/src/Aiplatform/Resource/ProjectsLocations.php index 9f14a1d4544..77fb118cf90 100644 --- a/src/Aiplatform/Resource/ProjectsLocations.php +++ b/src/Aiplatform/Resource/ProjectsLocations.php @@ -38,6 +38,7 @@ use Google\Service\Aiplatform\GoogleCloudAiplatformV1RagEngineConfig; use Google\Service\Aiplatform\GoogleCloudAiplatformV1RetrieveContextsRequest; use Google\Service\Aiplatform\GoogleCloudAiplatformV1RetrieveContextsResponse; +use Google\Service\Aiplatform\GoogleCloudAiplatformV1SemanticGovernancePolicyEngine; use Google\Service\Aiplatform\GoogleCloudLocationListLocationsResponse; use Google\Service\Aiplatform\GoogleCloudLocationLocation; use Google\Service\Aiplatform\GoogleLongrunningOperation; @@ -276,6 +277,26 @@ public function getRagEngineConfig($name, $optParams = []) $params = array_merge($params, $optParams); return $this->call('getRagEngineConfig', [$params], GoogleCloudAiplatformV1RagEngineConfig::class); } + /** + * Gets a SemanticGovernancePolicyEngine. A SemanticGovernancePolicyEngine is a + * singleton resource that is created when its parent is created, and deleted + * when its parent is deleted. This method retrieves the current state of the + * Semantic Governance Policy Engine. + * (locations.getSemanticGovernancePolicyEngine) + * + * @param string $name Required. The resource name of the + * SemanticGovernancePolicyEngine to retrieve. Format: + * projects/{project}/locations/{location}/semanticGovernancePolicyEngine + * @param array $optParams Optional parameters. + * @return GoogleCloudAiplatformV1SemanticGovernancePolicyEngine + * @throws \Google\Service\Exception + */ + public function getSemanticGovernancePolicyEngine($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('getSemanticGovernancePolicyEngine', [$params], GoogleCloudAiplatformV1SemanticGovernancePolicyEngine::class); + } /** * Lists information about the supported locations for this service. This method * lists locations based on the resource scope provided in the @@ -344,6 +365,31 @@ public function updateRagEngineConfig($name, GoogleCloudAiplatformV1RagEngineCon $params = array_merge($params, $optParams); return $this->call('updateRagEngineConfig', [$params], GoogleLongrunningOperation::class); } + /** + * Updates a SemanticGovernancePolicyEngine. This method performs an upsert + * operation. If the SemanticGovernancePolicyEngine resource does not exist, it + * will be created. Otherwise, it will be updated. + * (locations.updateSemanticGovernancePolicyEngine) + * + * @param string $name Identifier. The resource name of the + * SemanticGovernancePolicyEngine. Format: + * projects/{project}/locations/{location}/semanticGovernancePolicyEngine + * @param GoogleCloudAiplatformV1SemanticGovernancePolicyEngine $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask Optional. Specifies the fields to be overwritten + * in the SemanticGovernancePolicyEngine resource by the update. The fields + * specified in the update_mask are relative to the resource itself. If no + * update_mask is provided, all fields are overwritten. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function updateSemanticGovernancePolicyEngine($name, GoogleCloudAiplatformV1SemanticGovernancePolicyEngine $postBody, $optParams = []) + { + $params = ['name' => $name, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('updateSemanticGovernancePolicyEngine', [$params], GoogleLongrunningOperation::class); + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/Aiplatform/Resource/ProjectsLocationsAgents.php b/src/Aiplatform/Resource/ProjectsLocationsAgents.php new file mode 100644 index 00000000000..0674ec03526 --- /dev/null +++ b/src/Aiplatform/Resource/ProjectsLocationsAgents.php @@ -0,0 +1,127 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $agents = $aiplatformService->projects_locations_agents; + * + */ +class ProjectsLocationsAgents extends \Google\Service\Resource +{ + /** + * Creates an agent. (agents.create) + * + * @param string $parent Required. The resource name of the location to create + * the agent in. Format: `projects/{project}/locations/{location}`. + * @param GoogleCloudAiplatformV1Agent $postBody + * @param array $optParams Optional parameters. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function create($parent, GoogleCloudAiplatformV1Agent $postBody, $optParams = []) + { + $params = ['parent' => $parent, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('create', [$params], GoogleLongrunningOperation::class); + } + /** + * Deletes an agent. (agents.delete) + * + * @param string $name Required. The resource name of the agent to delete. + * Format: `projects/{project}/locations/{location}/agents/{agent}`. + * @param array $optParams Optional parameters. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function delete($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('delete', [$params], GoogleLongrunningOperation::class); + } + /** + * Retrieves an agent. (agents.get) + * + * @param string $name Required. The resource name of the agent to retrieve. + * Format: `projects/{project}/locations/{location}/agents/{agent}`. + * @param array $optParams Optional parameters. + * @return GoogleCloudAiplatformV1Agent + * @throws \Google\Service\Exception + */ + public function get($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], GoogleCloudAiplatformV1Agent::class); + } + /** + * Lists agents in a location. (agents.listProjectsLocationsAgents) + * + * @param string $parent Required. The resource name of the location to list + * agents from. Format: `projects/{project}/locations/{location}`. + * @param array $optParams Optional parameters. + * + * @opt_param string orderBy Optional. A comma-separated list of fields to order + * by. Supported fields: * `created` * `updated` Use `desc` after a field name + * for descending order. Example: `created desc`. + * @opt_param int pageSize Optional. The maximum number of agents to return. The + * service may return fewer than this value. The maximum page size is 100; + * values above 100 will be coerced to 100. If unspecified, the default page + * size is 10. + * @opt_param string pageToken Optional. A page token, received from a previous + * AgentService.ListAgents call. Provide this to retrieve the subsequent page. + * @return GoogleCloudAiplatformV1ListAgentsResponse + * @throws \Google\Service\Exception + */ + public function listProjectsLocationsAgents($parent, $optParams = []) + { + $params = ['parent' => $parent]; + $params = array_merge($params, $optParams); + return $this->call('list', [$params], GoogleCloudAiplatformV1ListAgentsResponse::class); + } + /** + * Updates an agent. (agents.patch) + * + * @param string $name Identifier. The resource name of the agent. Format: + * `projects/{project}/locations/{location}/agents/{agent}`. + * @param GoogleCloudAiplatformV1Agent $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask Optional. The list of fields to update. If not + * present, all fields are updated. + * @return GoogleCloudAiplatformV1Agent + * @throws \Google\Service\Exception + */ + public function patch($name, GoogleCloudAiplatformV1Agent $postBody, $optParams = []) + { + $params = ['name' => $name, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('patch', [$params], GoogleCloudAiplatformV1Agent::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsAgents::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsAgents'); diff --git a/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesMemories.php b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesMemories.php index ef02f863f7c..6050f5a15fc 100644 --- a/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesMemories.php +++ b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesMemories.php @@ -18,6 +18,7 @@ namespace Google\Service\Aiplatform\Resource; use Google\Service\Aiplatform\GoogleCloudAiplatformV1GenerateMemoriesRequest; +use Google\Service\Aiplatform\GoogleCloudAiplatformV1IngestEventsRequest; use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListMemoriesResponse; use Google\Service\Aiplatform\GoogleCloudAiplatformV1Memory; use Google\Service\Aiplatform\GoogleCloudAiplatformV1PurgeMemoriesRequest; @@ -108,6 +109,23 @@ public function get($name, $optParams = []) $params = array_merge($params, $optParams); return $this->call('get', [$params], GoogleCloudAiplatformV1Memory::class); } + /** + * Ingests events for a Memory Bank. (memories.ingestEvents) + * + * @param string $parent Required. The resource name of the ReasoningEngine to + * ingest events to. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param GoogleCloudAiplatformV1IngestEventsRequest $postBody + * @param array $optParams Optional parameters. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function ingestEvents($parent, GoogleCloudAiplatformV1IngestEventsRequest $postBody, $optParams = []) + { + $params = ['parent' => $parent, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('ingestEvents', [$params], GoogleLongrunningOperation::class); + } /** * List Memories. (memories.listProjectsLocationsReasoningEnginesMemories) * diff --git a/src/Aiplatform/Resource/ProjectsLocationsSemanticGovernancePolicies.php b/src/Aiplatform/Resource/ProjectsLocationsSemanticGovernancePolicies.php new file mode 100644 index 00000000000..e784243300a --- /dev/null +++ b/src/Aiplatform/Resource/ProjectsLocationsSemanticGovernancePolicies.php @@ -0,0 +1,142 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $semanticGovernancePolicies = $aiplatformService->projects_locations_semanticGovernancePolicies; + * + */ +class ProjectsLocationsSemanticGovernancePolicies extends \Google\Service\Resource +{ + /** + * Creates a SemanticGovernancePolicy. (semanticGovernancePolicies.create) + * + * @param string $parent Required. The resource name of the Location into which + * to create the SemanticGovernancePolicy. Format: + * `projects/{project}/locations/{location}` + * @param GoogleCloudAiplatformV1SemanticGovernancePolicy $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string semanticGovernancePolicyId Required. The ID to use for the + * SemanticGovernancePolicy, which will become the final component of the + * SemanticGovernancePolicy's resource name. This value may be up to 63 + * characters, and valid characters are `[a-z0-9-]`. The first character cannot + * be a number or hyphen. The last character must be a letter or a number. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function create($parent, GoogleCloudAiplatformV1SemanticGovernancePolicy $postBody, $optParams = []) + { + $params = ['parent' => $parent, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('create', [$params], GoogleLongrunningOperation::class); + } + /** + * Deletes a SemanticGovernancePolicy. (semanticGovernancePolicies.delete) + * + * @param string $name Required. The name of the SemanticGovernancePolicy + * resource to be deleted. Format: `projects/{project}/locations/{location}/sema + * nticGovernancePolicies/{semantic_governance_policy}` + * @param array $optParams Optional parameters. + * + * @opt_param string etag Optional. The etag of the SemanticGovernancePolicy. If + * an etag is provided and does not match the current etag of the + * SemanticGovernancePolicy, deletion will be blocked and an ABORTED error will + * be returned. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function delete($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('delete', [$params], GoogleLongrunningOperation::class); + } + /** + * Gets a SemanticGovernancePolicy. (semanticGovernancePolicies.get) + * + * @param string $name Required. The name of the SemanticGovernancePolicy + * resource. Format: `projects/{project}/locations/{location}/semanticGovernance + * Policies/{semantic_governance_policy}` + * @param array $optParams Optional parameters. + * @return GoogleCloudAiplatformV1SemanticGovernancePolicy + * @throws \Google\Service\Exception + */ + public function get($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], GoogleCloudAiplatformV1SemanticGovernancePolicy::class); + } + /** + * Lists SemanticGovernancePolicies in a given location. + * (semanticGovernancePolicies.listProjectsLocationsSemanticGovernancePolicies) + * + * @param string $parent Required. The resource name of the Location from which + * to list the SemanticGovernancePolicies. Format: + * `projects/{project}/locations/{location}` + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize Optional. The list page size. If zero, a default page + * size of 10 is used. + * @opt_param string pageToken Optional. The standard list page token. + * @return GoogleCloudAiplatformV1ListSemanticGovernancePoliciesResponse + * @throws \Google\Service\Exception + */ + public function listProjectsLocationsSemanticGovernancePolicies($parent, $optParams = []) + { + $params = ['parent' => $parent]; + $params = array_merge($params, $optParams); + return $this->call('list', [$params], GoogleCloudAiplatformV1ListSemanticGovernancePoliciesResponse::class); + } + /** + * Updates a SemanticGovernancePolicy. (semanticGovernancePolicies.patch) + * + * @param string $name Identifier. Resource name of the + * SemanticGovernancePolicy. + * @param GoogleCloudAiplatformV1SemanticGovernancePolicy $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string updateMask Optional. `update_mask` is used to specify the + * fields to be overwritten in the SemanticGovernancePolicy resource by the + * update. The fields specified in the `update_mask` are relative to the + * resource, not the full request. A field will be overwritten if it is in the + * mask. If the mask is not present, then all fields that are populated in the + * request message will be overwritten. Set the `update_mask` to `*` to override + * all fields. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function patch($name, GoogleCloudAiplatformV1SemanticGovernancePolicy $postBody, $optParams = []) + { + $params = ['name' => $name, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('patch', [$params], GoogleLongrunningOperation::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsSemanticGovernancePolicies::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsSemanticGovernancePolicies'); diff --git a/src/Aiplatform/Resource/ProjectsLocationsSemanticGovernancePoliciesOperations.php b/src/Aiplatform/Resource/ProjectsLocationsSemanticGovernancePoliciesOperations.php new file mode 100644 index 00000000000..f68ca39dc9b --- /dev/null +++ b/src/Aiplatform/Resource/ProjectsLocationsSemanticGovernancePoliciesOperations.php @@ -0,0 +1,146 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $operations = $aiplatformService->projects_locations_semanticGovernancePolicies_operations; + * + */ +class ProjectsLocationsSemanticGovernancePoliciesOperations extends \Google\Service\Resource +{ + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not guaranteed. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, the + * operation is not deleted; instead, it becomes an operation with an + * Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. (operations.cancel) + * + * @param string $name The name of the operation resource to be cancelled. + * @param array $optParams Optional parameters. + * @return GoogleProtobufEmpty + * @throws \Google\Service\Exception + */ + public function cancel($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('cancel', [$params], GoogleProtobufEmpty::class); + } + /** + * Deletes a long-running operation. This method indicates that the client is no + * longer interested in the operation result. It does not cancel the operation. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete) + * + * @param string $name The name of the operation resource to be deleted. + * @param array $optParams Optional parameters. + * @return GoogleProtobufEmpty + * @throws \Google\Service\Exception + */ + public function delete($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('delete', [$params], GoogleProtobufEmpty::class); + } + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function get($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], GoogleLongrunningOperation::class); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. + * (operations.listProjectsLocationsSemanticGovernancePoliciesOperations) + * + * @param string $name The name of the operation's parent resource. + * @param array $optParams Optional parameters. + * + * @opt_param string filter The standard list filter. + * @opt_param int pageSize The standard list page size. + * @opt_param string pageToken The standard list page token. + * @opt_param bool returnPartialSuccess When set to `true`, operations that are + * reachable are returned as normal, and those that are unreachable are returned + * in the ListOperationsResponse.unreachable field. This can only be `true` when + * reading across collections. For example, when `parent` is set to + * `"projects/example/locations/-"`. This field is not supported by default and + * will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + * @return GoogleLongrunningListOperationsResponse + * @throws \Google\Service\Exception + */ + public function listProjectsLocationsSemanticGovernancePoliciesOperations($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class); + } + /** + * Waits until the specified long-running operation is done or reaches at most a + * specified timeout, returning the latest state. If the operation is already + * done, the latest state is immediately returned. If the timeout specified is + * greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If + * the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort + * basis. It may return the latest state before the specified timeout (including + * immediately), meaning even an immediate response is no guarantee that the + * operation is done. (operations.wait) + * + * @param string $name The name of the operation resource to wait on. + * @param array $optParams Optional parameters. + * + * @opt_param string timeout The maximum duration to wait before timing out. If + * left blank, the wait will be at most the time permitted by the underlying + * HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one + * will be used. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function wait($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('wait', [$params], GoogleLongrunningOperation::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsSemanticGovernancePoliciesOperations::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsSemanticGovernancePoliciesOperations'); diff --git a/src/Aiplatform/Resource/ProjectsLocationsSemanticGovernancePolicyEngine.php b/src/Aiplatform/Resource/ProjectsLocationsSemanticGovernancePolicyEngine.php new file mode 100644 index 00000000000..39142a21e90 --- /dev/null +++ b/src/Aiplatform/Resource/ProjectsLocationsSemanticGovernancePolicyEngine.php @@ -0,0 +1,57 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $semanticGovernancePolicyEngine = $aiplatformService->projects_locations_semanticGovernancePolicyEngine; + * + */ +class ProjectsLocationsSemanticGovernancePolicyEngine extends \Google\Service\Resource +{ + /** + * Deprovisions the SemanticGovernancePolicyEngine, tearing down the associated + * tenant project, GKE cluster, and PSC service attachments. This operation is + * irreversible. Returns a long-running operation; poll for completion. The + * response contains the SemanticGovernancePolicyEngine in DEPROVISIONING state. + * (semanticGovernancePolicyEngine.deprovision) + * + * @param string $name Required. The resource name of the + * SemanticGovernancePolicyEngine to deprovision. Format: + * projects/{project}/locations/{location}/semanticGovernancePolicyEngine + * @param GoogleCloudAiplatformV1DeprovisionSemanticGovernancePolicyEngineRequest $postBody + * @param array $optParams Optional parameters. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function deprovision($name, GoogleCloudAiplatformV1DeprovisionSemanticGovernancePolicyEngineRequest $postBody, $optParams = []) + { + $params = ['name' => $name, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('deprovision', [$params], GoogleLongrunningOperation::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsSemanticGovernancePolicyEngine::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsSemanticGovernancePolicyEngine'); diff --git a/src/Aiplatform/Resource/SemanticGovernancePolicies.php b/src/Aiplatform/Resource/SemanticGovernancePolicies.php new file mode 100644 index 00000000000..e457c2e2aad --- /dev/null +++ b/src/Aiplatform/Resource/SemanticGovernancePolicies.php @@ -0,0 +1,33 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $semanticGovernancePolicies = $aiplatformService->semanticGovernancePolicies; + * + */ +class SemanticGovernancePolicies extends \Google\Service\Resource +{ +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SemanticGovernancePolicies::class, 'Google_Service_Aiplatform_Resource_SemanticGovernancePolicies'); diff --git a/src/Aiplatform/Resource/SemanticGovernancePoliciesOperations.php b/src/Aiplatform/Resource/SemanticGovernancePoliciesOperations.php new file mode 100644 index 00000000000..8a07ffefeb4 --- /dev/null +++ b/src/Aiplatform/Resource/SemanticGovernancePoliciesOperations.php @@ -0,0 +1,146 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $operations = $aiplatformService->semanticGovernancePolicies_operations; + * + */ +class SemanticGovernancePoliciesOperations extends \Google\Service\Resource +{ + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not guaranteed. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, the + * operation is not deleted; instead, it becomes an operation with an + * Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. (operations.cancel) + * + * @param string $name The name of the operation resource to be cancelled. + * @param array $optParams Optional parameters. + * @return GoogleProtobufEmpty + * @throws \Google\Service\Exception + */ + public function cancel($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('cancel', [$params], GoogleProtobufEmpty::class); + } + /** + * Deletes a long-running operation. This method indicates that the client is no + * longer interested in the operation result. It does not cancel the operation. + * If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete) + * + * @param string $name The name of the operation resource to be deleted. + * @param array $optParams Optional parameters. + * @return GoogleProtobufEmpty + * @throws \Google\Service\Exception + */ + public function delete($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('delete', [$params], GoogleProtobufEmpty::class); + } + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. (operations.get) + * + * @param string $name The name of the operation resource. + * @param array $optParams Optional parameters. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function get($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], GoogleLongrunningOperation::class); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. + * (operations.listSemanticGovernancePoliciesOperations) + * + * @param string $name The name of the operation's parent resource. + * @param array $optParams Optional parameters. + * + * @opt_param string filter The standard list filter. + * @opt_param int pageSize The standard list page size. + * @opt_param string pageToken The standard list page token. + * @opt_param bool returnPartialSuccess When set to `true`, operations that are + * reachable are returned as normal, and those that are unreachable are returned + * in the ListOperationsResponse.unreachable field. This can only be `true` when + * reading across collections. For example, when `parent` is set to + * `"projects/example/locations/-"`. This field is not supported by default and + * will result in an `UNIMPLEMENTED` error if set unless explicitly documented + * otherwise in service or product specific documentation. + * @return GoogleLongrunningListOperationsResponse + * @throws \Google\Service\Exception + */ + public function listSemanticGovernancePoliciesOperations($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class); + } + /** + * Waits until the specified long-running operation is done or reaches at most a + * specified timeout, returning the latest state. If the operation is already + * done, the latest state is immediately returned. If the timeout specified is + * greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If + * the server does not support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort + * basis. It may return the latest state before the specified timeout (including + * immediately), meaning even an immediate response is no guarantee that the + * operation is done. (operations.wait) + * + * @param string $name The name of the operation resource to wait on. + * @param array $optParams Optional parameters. + * + * @opt_param string timeout The maximum duration to wait before timing out. If + * left blank, the wait will be at most the time permitted by the underlying + * HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one + * will be used. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function wait($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('wait', [$params], GoogleLongrunningOperation::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SemanticGovernancePoliciesOperations::class, 'Google_Service_Aiplatform_Resource_SemanticGovernancePoliciesOperations');