diff --git a/src/Aiplatform.php b/src/Aiplatform.php index be65829176..13657d12bf 100644 --- a/src/Aiplatform.php +++ b/src/Aiplatform.php @@ -176,6 +176,11 @@ class Aiplatform extends \Google\Service public $projects_locations_reasoningEngines_memories_operations; public $projects_locations_reasoningEngines_memories_revisions; public $projects_locations_reasoningEngines_operations; + public $projects_locations_reasoningEngines_runtimeRevisions; + public $projects_locations_reasoningEngines_sandboxEnvironmentSnapshots; + public $projects_locations_reasoningEngines_sandboxEnvironmentSnapshots_operations; + public $projects_locations_reasoningEngines_sandboxEnvironmentTemplates; + public $projects_locations_reasoningEngines_sandboxEnvironmentTemplates_operations; public $projects_locations_reasoningEngines_sandboxEnvironments; public $projects_locations_reasoningEngines_sandboxEnvironments_operations; public $projects_locations_reasoningEngines_sessions; @@ -208,6 +213,11 @@ class Aiplatform extends \Google\Service public $reasoningEngines; public $reasoningEngines_memories_operations; public $reasoningEngines_operations; + public $reasoningEngines_runtimeRevisions; + public $reasoningEngines_sandboxEnvironmentSnapshots; + public $reasoningEngines_sandboxEnvironmentSnapshots_operations; + public $reasoningEngines_sandboxEnvironmentTemplates; + public $reasoningEngines_sandboxEnvironmentTemplates_operations; public $reasoningEngines_sandboxEnvironments; public $reasoningEngines_sandboxEnvironments_operations; public $reasoningEngines_sessions_operations; @@ -11413,6 +11423,258 @@ public function __construct($clientOrConfig = [], $rootUrl = null) ] ] ); + $this->projects_locations_reasoningEngines_runtimeRevisions = new Aiplatform\Resource\ProjectsLocationsReasoningEnginesRuntimeRevisions( + $this, + $this->serviceName, + 'runtimeRevisions', + [ + 'methods' => [ + 'query' => [ + 'path' => 'v1/{+name}:query', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'streamQuery' => [ + 'path' => 'v1/{+name}:streamQuery', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ], + ] + ] + ); + $this->projects_locations_reasoningEngines_sandboxEnvironmentSnapshots = new Aiplatform\Resource\ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshots( + $this, + $this->serviceName, + 'sandboxEnvironmentSnapshots', + [ + 'methods' => [ + '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}/sandboxEnvironmentSnapshots', + 'httpMethod' => 'GET', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageSize' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); + $this->projects_locations_reasoningEngines_sandboxEnvironmentSnapshots_operations = new Aiplatform\Resource\ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshotsOperations( + $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, + ], + ], + ],'wait' => [ + 'path' => 'v1/{+name}:wait', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'timeout' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); + $this->projects_locations_reasoningEngines_sandboxEnvironmentTemplates = new Aiplatform\Resource\ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplates( + $this, + $this->serviceName, + 'sandboxEnvironmentTemplates', + [ + 'methods' => [ + 'create' => [ + 'path' => 'v1/{+parent}/sandboxEnvironmentTemplates', + '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}/sandboxEnvironmentTemplates', + 'httpMethod' => 'GET', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageSize' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); + $this->projects_locations_reasoningEngines_sandboxEnvironmentTemplates_operations = new Aiplatform\Resource\ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplatesOperations( + $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, + ], + ], + ],'wait' => [ + 'path' => 'v1/{+name}:wait', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'timeout' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); $this->projects_locations_reasoningEngines_sandboxEnvironments = new Aiplatform\Resource\ProjectsLocationsReasoningEnginesSandboxEnvironments( $this, $this->serviceName, @@ -11481,6 +11743,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'type' => 'string', ], ], + ],'snapshot' => [ + 'path' => 'v1/{+name}:snapshot', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], ], ] ] @@ -14129,6 +14401,258 @@ public function __construct($clientOrConfig = [], $rootUrl = null) ] ] ); + $this->reasoningEngines_runtimeRevisions = new Aiplatform\Resource\ReasoningEnginesRuntimeRevisions( + $this, + $this->serviceName, + 'runtimeRevisions', + [ + 'methods' => [ + 'query' => [ + 'path' => 'v1/{+name}:query', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'streamQuery' => [ + 'path' => 'v1/{+name}:streamQuery', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ], + ] + ] + ); + $this->reasoningEngines_sandboxEnvironmentSnapshots = new Aiplatform\Resource\ReasoningEnginesSandboxEnvironmentSnapshots( + $this, + $this->serviceName, + 'sandboxEnvironmentSnapshots', + [ + 'methods' => [ + '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}/sandboxEnvironmentSnapshots', + 'httpMethod' => 'GET', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageSize' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); + $this->reasoningEngines_sandboxEnvironmentSnapshots_operations = new Aiplatform\Resource\ReasoningEnginesSandboxEnvironmentSnapshotsOperations( + $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, + ], + ], + ],'wait' => [ + 'path' => 'v1/{+name}:wait', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'timeout' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); + $this->reasoningEngines_sandboxEnvironmentTemplates = new Aiplatform\Resource\ReasoningEnginesSandboxEnvironmentTemplates( + $this, + $this->serviceName, + 'sandboxEnvironmentTemplates', + [ + 'methods' => [ + 'create' => [ + 'path' => 'v1/{+parent}/sandboxEnvironmentTemplates', + '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}/sandboxEnvironmentTemplates', + 'httpMethod' => 'GET', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageSize' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); + $this->reasoningEngines_sandboxEnvironmentTemplates_operations = new Aiplatform\Resource\ReasoningEnginesSandboxEnvironmentTemplatesOperations( + $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, + ], + ], + ],'wait' => [ + 'path' => 'v1/{+name}:wait', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'timeout' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); $this->reasoningEngines_sandboxEnvironments = new Aiplatform\Resource\ReasoningEnginesSandboxEnvironments( $this, $this->serviceName, @@ -14197,6 +14721,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'type' => 'string', ], ], + ],'snapshot' => [ + 'path' => 'v1/{+name}:snapshot', + 'httpMethod' => 'POST', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], ], ] ] diff --git a/src/Aiplatform/GoogleCloudAiplatformV1EvaluationParserConfig.php b/src/Aiplatform/GoogleCloudAiplatformV1EvaluationParserConfig.php new file mode 100644 index 0000000000..3151c12e7d --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1EvaluationParserConfig.php @@ -0,0 +1,44 @@ +customCodeParserConfig = $customCodeParserConfig; + } + /** + * @return GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig + */ + public function getCustomCodeParserConfig() + { + return $this->customCodeParserConfig; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1EvaluationParserConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1EvaluationParserConfig'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig.php b/src/Aiplatform/GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig.php new file mode 100644 index 0000000000..bd8393c507 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig.php @@ -0,0 +1,74 @@ + list[dict[str, Any]] | dict[str, Any]: When + * parsing rubrics, return a list of dictionaries, where each dictionary + * represents a Rubric. Example for rubrics: [ { "content": {"property": + * {"description": "The response is factual."}}, "type": "FACTUALITY", + * "importance": "HIGH" }, { "content": {"property": {"description": "The + * response is fluent."}}, "type": "FLUENCY", "importance": "MEDIUM" } ] When + * parsing critique results, return a dictionary representing a MetricResult. + * Example for a metric result: { "score": 0.8, "explanation": "The model + * followed most instructions.", "rubric_verdicts": [...] } ... code for + * result extraction and aggregation + * + * @var string + */ + public $parsingFunction; + + /** + * Required. Python function for parsing results. The function should be + * defined within this string. The function takes a list of strings (LLM + * responses) and should return either a list of dictionaries (for rubrics) or + * a single dictionary (for a metric result). Example function signature: def + * parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]: When + * parsing rubrics, return a list of dictionaries, where each dictionary + * represents a Rubric. Example for rubrics: [ { "content": {"property": + * {"description": "The response is factual."}}, "type": "FACTUALITY", + * "importance": "HIGH" }, { "content": {"property": {"description": "The + * response is fluent."}}, "type": "FLUENCY", "importance": "MEDIUM" } ] When + * parsing critique results, return a dictionary representing a MetricResult. + * Example for a metric result: { "score": 0.8, "explanation": "The model + * followed most instructions.", "rubric_verdicts": [...] } ... code for + * result extraction and aggregation + * + * @param string $parsingFunction + */ + public function setParsingFunction($parsingFunction) + { + $this->parsingFunction = $parsingFunction; + } + /** + * @return string + */ + public function getParsingFunction() + { + return $this->parsingFunction; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1EvaluationParserConfigCustomCodeParserConfig'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1EvaluationRunInferenceConfig.php b/src/Aiplatform/GoogleCloudAiplatformV1EvaluationRunInferenceConfig.php index 36320904e2..299bca0a54 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1EvaluationRunInferenceConfig.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1EvaluationRunInferenceConfig.php @@ -37,6 +37,13 @@ class GoogleCloudAiplatformV1EvaluationRunInferenceConfig extends \Google\Model * @var string */ public $model; + /** + * Optional. The parallelism of the evaluation run for the inference step. If + * not specified, the default parallelism will be used. + * + * @var int + */ + public $parallelism; /** * Optional. Agent run config. @@ -94,6 +101,23 @@ public function getModel() { return $this->model; } + /** + * Optional. The parallelism of the evaluation run for the inference step. If + * not specified, the default parallelism will be used. + * + * @param int $parallelism + */ + public function setParallelism($parallelism) + { + $this->parallelism = $parallelism; + } + /** + * @return int + */ + public function getParallelism() + { + return $this->parallelism; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/Aiplatform/GoogleCloudAiplatformV1GenerateMemoriesRequest.php b/src/Aiplatform/GoogleCloudAiplatformV1GenerateMemoriesRequest.php index ff5f39408c..cec59b0a7f 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1GenerateMemoriesRequest.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1GenerateMemoriesRequest.php @@ -17,7 +17,7 @@ namespace Google\Service\Aiplatform; -class GoogleCloudAiplatformV1GenerateMemoriesRequest extends \Google\Model +class GoogleCloudAiplatformV1GenerateMemoriesRequest extends \Google\Collection { /** * Unspecified metadata merge strategy. If unspecified, the default behavior @@ -39,6 +39,9 @@ class GoogleCloudAiplatformV1GenerateMemoriesRequest extends \Google\Model * for consolidation. */ public const METADATA_MERGE_STRATEGY_REQUIRE_EXACT_MATCH = 'REQUIRE_EXACT_MATCH'; + protected $collection_key = 'allowedTopics'; + protected $allowedTopicsType = GoogleCloudAiplatformV1MemoryTopicId::class; + protected $allowedTopicsDataType = 'array'; protected $directContentsSourceType = GoogleCloudAiplatformV1GenerateMemoriesRequestDirectContentsSource::class; protected $directContentsSourceDataType = ''; protected $directMemoriesSourceType = GoogleCloudAiplatformV1GenerateMemoriesRequestDirectMemoriesSource::class; @@ -100,6 +103,22 @@ class GoogleCloudAiplatformV1GenerateMemoriesRequest extends \Google\Model protected $vertexSessionSourceType = GoogleCloudAiplatformV1GenerateMemoriesRequestVertexSessionSource::class; protected $vertexSessionSourceDataType = ''; + /** + * Optional. Restricts memory generation to a subset of memory topics. + * + * @param GoogleCloudAiplatformV1MemoryTopicId[] $allowedTopics + */ + public function setAllowedTopics($allowedTopics) + { + $this->allowedTopics = $allowedTopics; + } + /** + * @return GoogleCloudAiplatformV1MemoryTopicId[] + */ + public function getAllowedTopics() + { + return $this->allowedTopics; + } /** * Defines a direct source of content as the source content from which to * generate memories. diff --git a/src/Aiplatform/GoogleCloudAiplatformV1IntermediateExtractedMemory.php b/src/Aiplatform/GoogleCloudAiplatformV1IntermediateExtractedMemory.php index 0167dd8ac0..7ebcb1969e 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1IntermediateExtractedMemory.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1IntermediateExtractedMemory.php @@ -20,14 +20,44 @@ class GoogleCloudAiplatformV1IntermediateExtractedMemory extends \Google\Model { /** - * Output only. The fact of the extracted memory. + * Output only. Represents the explanation of why the information was + * extracted from the source content. + * + * @var string + */ + public $context; + /** + * Output only. Represents the fact of the extracted memory. * * @var string */ public $fact; + /** + * Output only. Represents the structured value of the extracted memory. + * + * @var array[] + */ + public $structuredData; /** - * Output only. The fact of the extracted memory. + * Output only. Represents the explanation of why the information was + * extracted from the source content. + * + * @param string $context + */ + public function setContext($context) + { + $this->context = $context; + } + /** + * @return string + */ + public function getContext() + { + return $this->context; + } + /** + * Output only. Represents the fact of the extracted memory. * * @param string $fact */ @@ -42,6 +72,22 @@ public function getFact() { return $this->fact; } + /** + * Output only. Represents the structured value of the extracted memory. + * + * @param array[] $structuredData + */ + public function setStructuredData($structuredData) + { + $this->structuredData = $structuredData; + } + /** + * @return array[] + */ + public function getStructuredData() + { + return $this->structuredData; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/Aiplatform/GoogleCloudAiplatformV1LLMBasedMetricSpec.php b/src/Aiplatform/GoogleCloudAiplatformV1LLMBasedMetricSpec.php index 06a9309b4d..d5b4b6b04b 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1LLMBasedMetricSpec.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1LLMBasedMetricSpec.php @@ -35,6 +35,8 @@ class GoogleCloudAiplatformV1LLMBasedMetricSpec extends \Google\Model public $metricPromptTemplate; protected $predefinedRubricGenerationSpecType = GoogleCloudAiplatformV1PredefinedMetricSpec::class; protected $predefinedRubricGenerationSpecDataType = ''; + protected $resultParserConfigType = GoogleCloudAiplatformV1EvaluationParserConfig::class; + protected $resultParserConfigDataType = ''; protected $rubricGenerationSpecType = GoogleCloudAiplatformV1RubricGenerationSpec::class; protected $rubricGenerationSpecDataType = ''; /** @@ -115,6 +117,22 @@ public function getPredefinedRubricGenerationSpec() { return $this->predefinedRubricGenerationSpec; } + /** + * Optional. The parser config for the metric result. + * + * @param GoogleCloudAiplatformV1EvaluationParserConfig $resultParserConfig + */ + public function setResultParserConfig(GoogleCloudAiplatformV1EvaluationParserConfig $resultParserConfig) + { + $this->resultParserConfig = $resultParserConfig; + } + /** + * @return GoogleCloudAiplatformV1EvaluationParserConfig + */ + public function getResultParserConfig() + { + return $this->resultParserConfig; + } /** * Dynamically generate rubrics using this specification. * diff --git a/src/Aiplatform/GoogleCloudAiplatformV1ListSandboxEnvironmentSnapshotsResponse.php b/src/Aiplatform/GoogleCloudAiplatformV1ListSandboxEnvironmentSnapshotsResponse.php new file mode 100644 index 0000000000..60482ce5e4 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1ListSandboxEnvironmentSnapshotsResponse.php @@ -0,0 +1,71 @@ +nextPageToken = $nextPageToken; + } + /** + * @return string + */ + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * The SandboxEnvironmentSnapshots matching the request. + * + * @param GoogleCloudAiplatformV1SandboxEnvironmentSnapshot[] $sandboxEnvironmentSnapshots + */ + public function setSandboxEnvironmentSnapshots($sandboxEnvironmentSnapshots) + { + $this->sandboxEnvironmentSnapshots = $sandboxEnvironmentSnapshots; + } + /** + * @return GoogleCloudAiplatformV1SandboxEnvironmentSnapshot[] + */ + public function getSandboxEnvironmentSnapshots() + { + return $this->sandboxEnvironmentSnapshots; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1ListSandboxEnvironmentSnapshotsResponse::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ListSandboxEnvironmentSnapshotsResponse'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1ListSandboxEnvironmentTemplatesResponse.php b/src/Aiplatform/GoogleCloudAiplatformV1ListSandboxEnvironmentTemplatesResponse.php new file mode 100644 index 0000000000..5d43bdd0f7 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1ListSandboxEnvironmentTemplatesResponse.php @@ -0,0 +1,71 @@ +nextPageToken = $nextPageToken; + } + /** + * @return string + */ + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * The SandboxEnvironmentTemplates matching the request. + * + * @param GoogleCloudAiplatformV1SandboxEnvironmentTemplate[] $sandboxEnvironmentTemplates + */ + public function setSandboxEnvironmentTemplates($sandboxEnvironmentTemplates) + { + $this->sandboxEnvironmentTemplates = $sandboxEnvironmentTemplates; + } + /** + * @return GoogleCloudAiplatformV1SandboxEnvironmentTemplate[] + */ + public function getSandboxEnvironmentTemplates() + { + return $this->sandboxEnvironmentTemplates; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1ListSandboxEnvironmentTemplatesResponse::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ListSandboxEnvironmentTemplatesResponse'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1Memory.php b/src/Aiplatform/GoogleCloudAiplatformV1Memory.php index f4fa12b6be..28f8ab147d 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1Memory.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1Memory.php @@ -21,40 +21,40 @@ class GoogleCloudAiplatformV1Memory extends \Google\Collection { protected $collection_key = 'topics'; /** - * Output only. Timestamp when this Memory was created. + * Output only. Represents the timestamp when this Memory was created. * * @var string */ public $createTime; /** - * Optional. Description of the Memory. + * Optional. Represents the description of the Memory. * * @var string */ public $description; /** - * Optional. Input only. If true, no revision will be created for this - * request. + * Optional. Input only. Indicates whether no revision will be created for + * this request. * * @var bool */ public $disableMemoryRevisions; /** - * Optional. Display name of the Memory. + * Optional. Represents the display name of the Memory. * * @var string */ public $displayName; /** - * Optional. Timestamp of when this resource is considered expired. This is - * *always* provided on output when `expiration` is set on input, regardless - * of whether `expire_time` or `ttl` was provided. + * Optional. Represents the timestamp of when this resource is considered + * expired. This is *always* provided on output when `expiration` is set on + * input, regardless of whether `expire_time` or `ttl` was provided. * * @var string */ public $expireTime; /** - * Optional. Semantic knowledge extracted from the source content. + * Optional. Represents semantic knowledge extracted from the source content. * * @var string */ @@ -62,37 +62,40 @@ class GoogleCloudAiplatformV1Memory extends \Google\Collection protected $metadataType = GoogleCloudAiplatformV1MemoryMetadataValue::class; protected $metadataDataType = 'map'; /** - * Identifier. The resource name of the Memory. Format: `projects/{project}/lo - * cations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + * Identifier. Represents the resource name of the Memory. Format: `projects/{ + * project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/ + * {memory}` * * @var string */ public $name; /** - * Optional. Input only. Timestamp of when the revision is considered expired. - * If not set, the memory revision will be kept until manually deleted. + * Optional. Input only. Represents the timestamp of when the revision is + * considered expired. If not set, the memory revision will be kept until + * manually deleted. * * @var string */ public $revisionExpireTime; /** - * Optional. Input only. The labels to apply to the Memory Revision created as - * a result of this request. + * Optional. Input only. Represents the labels to apply to the Memory Revision + * created as a result of this request. * * @var string[] */ public $revisionLabels; /** - * Optional. Input only. The TTL for the revision. The expiration time is - * computed: now + TTL. + * Optional. Input only. Represents the TTL for the revision. The expiration + * time is computed: now + TTL. * * @var string */ public $revisionTtl; /** - * Required. Immutable. The scope of the Memory. Memories are isolated within - * their scope. The scope is defined when creating or generating memories. - * Scope values cannot contain the wildcard character '*'. + * Required. Immutable. Represents the scope of the Memory. Memories are + * isolated within their scope. The scope is defined when creating or + * generating memories. Scope values cannot contain the wildcard character + * '*'. * * @var string[] */ @@ -100,21 +103,22 @@ class GoogleCloudAiplatformV1Memory extends \Google\Collection protected $topicsType = GoogleCloudAiplatformV1MemoryTopicId::class; protected $topicsDataType = 'array'; /** - * Optional. Input only. The TTL for this resource. The expiration time is - * computed: now + TTL. + * Optional. Input only. Represents the TTL for this resource. The expiration + * time is computed: now + TTL. * * @var string */ public $ttl; /** - * Output only. Timestamp when this Memory was most recently updated. + * Output only. Represents the timestamp when this Memory was most recently + * updated. * * @var string */ public $updateTime; /** - * Output only. Timestamp when this Memory was created. + * Output only. Represents the timestamp when this Memory was created. * * @param string $createTime */ @@ -130,7 +134,7 @@ public function getCreateTime() return $this->createTime; } /** - * Optional. Description of the Memory. + * Optional. Represents the description of the Memory. * * @param string $description */ @@ -146,8 +150,8 @@ public function getDescription() return $this->description; } /** - * Optional. Input only. If true, no revision will be created for this - * request. + * Optional. Input only. Indicates whether no revision will be created for + * this request. * * @param bool $disableMemoryRevisions */ @@ -163,7 +167,7 @@ public function getDisableMemoryRevisions() return $this->disableMemoryRevisions; } /** - * Optional. Display name of the Memory. + * Optional. Represents the display name of the Memory. * * @param string $displayName */ @@ -179,9 +183,9 @@ public function getDisplayName() return $this->displayName; } /** - * Optional. Timestamp of when this resource is considered expired. This is - * *always* provided on output when `expiration` is set on input, regardless - * of whether `expire_time` or `ttl` was provided. + * Optional. Represents the timestamp of when this resource is considered + * expired. This is *always* provided on output when `expiration` is set on + * input, regardless of whether `expire_time` or `ttl` was provided. * * @param string $expireTime */ @@ -197,7 +201,7 @@ public function getExpireTime() return $this->expireTime; } /** - * Optional. Semantic knowledge extracted from the source content. + * Optional. Represents semantic knowledge extracted from the source content. * * @param string $fact */ @@ -213,9 +217,9 @@ public function getFact() return $this->fact; } /** - * Optional. User-provided metadata for the Memory. This information was - * provided when creating, updating, or generating the Memory. It was not - * generated by Memory Bank. + * Optional. Represents user-provided metadata for the Memory. This + * information was provided when creating, updating, or generating the Memory. + * It was not generated by Memory Bank. * * @param GoogleCloudAiplatformV1MemoryMetadataValue[] $metadata */ @@ -231,8 +235,9 @@ public function getMetadata() return $this->metadata; } /** - * Identifier. The resource name of the Memory. Format: `projects/{project}/lo - * cations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` + * Identifier. Represents the resource name of the Memory. Format: `projects/{ + * project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/ + * {memory}` * * @param string $name */ @@ -248,8 +253,9 @@ public function getName() return $this->name; } /** - * Optional. Input only. Timestamp of when the revision is considered expired. - * If not set, the memory revision will be kept until manually deleted. + * Optional. Input only. Represents the timestamp of when the revision is + * considered expired. If not set, the memory revision will be kept until + * manually deleted. * * @param string $revisionExpireTime */ @@ -265,8 +271,8 @@ public function getRevisionExpireTime() return $this->revisionExpireTime; } /** - * Optional. Input only. The labels to apply to the Memory Revision created as - * a result of this request. + * Optional. Input only. Represents the labels to apply to the Memory Revision + * created as a result of this request. * * @param string[] $revisionLabels */ @@ -282,8 +288,8 @@ public function getRevisionLabels() return $this->revisionLabels; } /** - * Optional. Input only. The TTL for the revision. The expiration time is - * computed: now + TTL. + * Optional. Input only. Represents the TTL for the revision. The expiration + * time is computed: now + TTL. * * @param string $revisionTtl */ @@ -299,9 +305,10 @@ public function getRevisionTtl() return $this->revisionTtl; } /** - * Required. Immutable. The scope of the Memory. Memories are isolated within - * their scope. The scope is defined when creating or generating memories. - * Scope values cannot contain the wildcard character '*'. + * Required. Immutable. Represents the scope of the Memory. Memories are + * isolated within their scope. The scope is defined when creating or + * generating memories. Scope values cannot contain the wildcard character + * '*'. * * @param string[] $scope */ @@ -317,7 +324,7 @@ public function getScope() return $this->scope; } /** - * Optional. The Topics of the Memory. + * Optional. Represents the Topics of the Memory. * * @param GoogleCloudAiplatformV1MemoryTopicId[] $topics */ @@ -333,8 +340,8 @@ public function getTopics() return $this->topics; } /** - * Optional. Input only. The TTL for this resource. The expiration time is - * computed: now + TTL. + * Optional. Input only. Represents the TTL for this resource. The expiration + * time is computed: now + TTL. * * @param string $ttl */ @@ -350,7 +357,8 @@ public function getTtl() return $this->ttl; } /** - * Output only. Timestamp when this Memory was most recently updated. + * Output only. Represents the timestamp when this Memory was most recently + * updated. * * @param string $updateTime */ diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfig.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfig.php index d04d8ffdfc..eaffb50629 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfig.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfig.php @@ -23,10 +23,19 @@ class GoogleCloudAiplatformV1MemoryBankCustomizationConfig extends \Google\Colle protected $consolidationConfigType = GoogleCloudAiplatformV1MemoryBankCustomizationConfigConsolidationConfig::class; protected $consolidationConfigDataType = ''; /** - * Optional. If true, then the memories will be generated in the third person - * (i.e. "The user generates memories with Memory Bank."). By default, the - * memories will be generated in the first person (i.e. "I generate memories - * with Memory Bank.") + * Optional. Indicates whether natural language memory generation should be + * disabled for all requests. By default, natural language memory generation + * is enabled. Set this to `true` when you only want to generate structured + * memories. + * + * @var bool + */ + public $disableNaturalLanguageMemories; + /** + * Optional. Indicates whether the memories will be generated in the third + * person (i.e. "The user generates memories with Memory Bank."). By default, + * the memories will be generated in the first person (i.e. "I generate + * memories with Memory Bank.") * * @var bool */ @@ -36,11 +45,11 @@ class GoogleCloudAiplatformV1MemoryBankCustomizationConfig extends \Google\Colle protected $memoryTopicsType = GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopic::class; protected $memoryTopicsDataType = 'array'; /** - * Optional. The scope keys (i.e. 'user_id') for which to use this config. A - * request's scope must include all of the provided keys for the config to be - * used (order does not matter). If empty, then the config will be used for - * all requests that do not have a more specific config. Only one default - * config is allowed per Memory Bank. + * Optional. Represents the scope keys (i.e. 'user_id') for which to use this + * config. A request's scope must include all of the provided keys for the + * config to be used (order does not matter). If empty, then the config will + * be used for all requests that do not have a more specific config. Only one + * default config is allowed per Memory Bank. * * @var string[] */ @@ -64,10 +73,29 @@ public function getConsolidationConfig() return $this->consolidationConfig; } /** - * Optional. If true, then the memories will be generated in the third person - * (i.e. "The user generates memories with Memory Bank."). By default, the - * memories will be generated in the first person (i.e. "I generate memories - * with Memory Bank.") + * Optional. Indicates whether natural language memory generation should be + * disabled for all requests. By default, natural language memory generation + * is enabled. Set this to `true` when you only want to generate structured + * memories. + * + * @param bool $disableNaturalLanguageMemories + */ + public function setDisableNaturalLanguageMemories($disableNaturalLanguageMemories) + { + $this->disableNaturalLanguageMemories = $disableNaturalLanguageMemories; + } + /** + * @return bool + */ + public function getDisableNaturalLanguageMemories() + { + return $this->disableNaturalLanguageMemories; + } + /** + * Optional. Indicates whether the memories will be generated in the third + * person (i.e. "The user generates memories with Memory Bank."). By default, + * the memories will be generated in the first person (i.e. "I generate + * memories with Memory Bank.") * * @param bool $enableThirdPersonMemories */ @@ -83,7 +111,8 @@ public function getEnableThirdPersonMemories() return $this->enableThirdPersonMemories; } /** - * Optional. Examples of how to generate memories for a particular scope. + * Optional. Provides examples of how to generate memories for a particular + * scope. * * @param GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExample[] $generateMemoriesExamples */ @@ -99,9 +128,9 @@ public function getGenerateMemoriesExamples() return $this->generateMemoriesExamples; } /** - * Optional. Topics of information that should be extracted from conversations - * and stored as memories. If not set, then Memory Bank's default topics will - * be used. + * Optional. Represents topics of information that should be extracted from + * conversations and stored as memories. If not set, then Memory Bank's + * default topics will be used. * * @param GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopic[] $memoryTopics */ @@ -117,11 +146,11 @@ public function getMemoryTopics() return $this->memoryTopics; } /** - * Optional. The scope keys (i.e. 'user_id') for which to use this config. A - * request's scope must include all of the provided keys for the config to be - * used (order does not matter). If empty, then the config will be used for - * all requests that do not have a more specific config. Only one default - * config is allowed per Memory Bank. + * Optional. Represents the scope keys (i.e. 'user_id') for which to use this + * config. A request's scope must include all of the provided keys for the + * config to be used (order does not matter). If empty, then the config will + * be used for all requests that do not have a more specific config. Only one + * default config is allowed per Memory Bank. * * @param string[] $scopeKeys */ diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigConsolidationConfig.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigConsolidationConfig.php index 2c53693253..1b3a66c43b 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigConsolidationConfig.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigConsolidationConfig.php @@ -20,18 +20,18 @@ class GoogleCloudAiplatformV1MemoryBankCustomizationConfigConsolidationConfig extends \Google\Model { /** - * Optional. The maximum number of revisions to consider for each candidate - * memory. If not set, then the default value (1) will be used, which means - * that only the latest revision will be considered. + * Optional. Represents the maximum number of revisions to consider for each + * candidate memory. If not set, then the default value (1) will be used, + * which means that only the latest revision will be considered. * * @var int */ public $revisionsPerCandidateCount; /** - * Optional. The maximum number of revisions to consider for each candidate - * memory. If not set, then the default value (1) will be used, which means - * that only the latest revision will be considered. + * Optional. Represents the maximum number of revisions to consider for each + * candidate memory. If not set, then the default value (1) will be used, + * which means that only the latest revision will be considered. * * @param int $revisionsPerCandidateCount */ diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExample.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExample.php index c422df486a..f939d80905 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExample.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExample.php @@ -42,9 +42,9 @@ public function getConversationSource() return $this->conversationSource; } /** - * Optional. The memories that are expected to be generated from the input - * conversation. An empty list indicates that no memories are expected to be - * generated for the input conversation. + * Optional. Represents the memories that are expected to be generated from + * the input conversation. An empty list indicates that no memories are + * expected to be generated for the input conversation. * * @param GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleGeneratedMemory[] $generatedMemories */ diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleConversationSource.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleConversationSource.php index 5f006c73c3..5489652826 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleConversationSource.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleConversationSource.php @@ -24,7 +24,7 @@ class GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampl protected $eventsDataType = 'array'; /** - * Optional. The input conversation events for the example. + * Optional. Represents the input conversation events for the example. * * @param GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleConversationSourceEvent[] $events */ diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleConversationSourceEvent.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleConversationSourceEvent.php index 9a9a86e359..09a1cf6ef8 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleConversationSourceEvent.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleConversationSourceEvent.php @@ -23,7 +23,7 @@ class GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampl protected $contentDataType = ''; /** - * Required. The content of the event. + * Required. Represents the content of the event. * * @param GoogleCloudAiplatformV1Content $content */ diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleGeneratedMemory.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleGeneratedMemory.php index f7f57ed731..4bd4254722 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleGeneratedMemory.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampleGeneratedMemory.php @@ -21,7 +21,7 @@ class GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampl { protected $collection_key = 'topics'; /** - * Required. The fact to generate a memory from. + * Required. Represents the fact to generate a memory from. * * @var string */ @@ -30,7 +30,7 @@ class GoogleCloudAiplatformV1MemoryBankCustomizationConfigGenerateMemoriesExampl protected $topicsDataType = 'array'; /** - * Required. The fact to generate a memory from. + * Required. Represents the fact to generate a memory from. * * @param string $fact */ @@ -46,9 +46,10 @@ public function getFact() return $this->fact; } /** - * Optional. The list of topics that the memory should be associated with. For - * example, use `custom_memory_topic_label = "jargon"` if the extracted memory - * is an example of memory extraction for the custom topic `jargon`. + * Optional. Represents the list of topics that the memory should be + * associated with. For example, use `custom_memory_topic_label = "jargon"` if + * the extracted memory is an example of memory extraction for the custom + * topic `jargon`. * * @param GoogleCloudAiplatformV1MemoryTopicId[] $topics */ diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicCustomMemoryTopic.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicCustomMemoryTopic.php index 8025df457d..1d251c3d1e 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicCustomMemoryTopic.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicCustomMemoryTopic.php @@ -20,22 +20,22 @@ class GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicCustomMemoryTopic extends \Google\Model { /** - * Required. Description of the memory topic. This should explain what - * information should be extracted for this topic. + * Required. Represents the description of the memory topic. This should + * explain what information should be extracted for this topic. * * @var string */ public $description; /** - * Required. The label of the topic. + * Required. Represents the label of the topic. * * @var string */ public $label; /** - * Required. Description of the memory topic. This should explain what - * information should be extracted for this topic. + * Required. Represents the description of the memory topic. This should + * explain what information should be extracted for this topic. * * @param string $description */ @@ -51,7 +51,7 @@ public function getDescription() return $this->description; } /** - * Required. The label of the topic. + * Required. Represents the label of the topic. * * @param string $label */ diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicManagedMemoryTopic.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicManagedMemoryTopic.php index bff503be35..e27e168e1f 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicManagedMemoryTopic.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicManagedMemoryTopic.php @@ -20,35 +20,37 @@ class GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicManagedMemoryTopic extends \Google\Model { /** - * Unspecified topic. This value should not be used. + * Represents an unspecified topic. This value should not be used. */ public const MANAGED_TOPIC_ENUM_MANAGED_TOPIC_ENUM_UNSPECIFIED = 'MANAGED_TOPIC_ENUM_UNSPECIFIED'; /** - * Significant personal information about the User like first names, - * relationships, hobbies, important dates. + * Represents significant personal information about the User like first + * names, relationships, hobbies, important dates. */ public const MANAGED_TOPIC_ENUM_USER_PERSONAL_INFO = 'USER_PERSONAL_INFO'; /** - * Stated or implied likes, dislikes, preferred styles, or patterns. + * Represents stated or implied likes, dislikes, preferred styles, or + * patterns. */ public const MANAGED_TOPIC_ENUM_USER_PREFERENCES = 'USER_PREFERENCES'; /** - * Important milestones or conclusions within the dialogue. + * Represents important milestones or conclusions within the dialogue. */ public const MANAGED_TOPIC_ENUM_KEY_CONVERSATION_DETAILS = 'KEY_CONVERSATION_DETAILS'; /** - * Information that the user explicitly requested to remember or forget. + * Represents information that the user explicitly requested to remember or + * forget. */ public const MANAGED_TOPIC_ENUM_EXPLICIT_INSTRUCTIONS = 'EXPLICIT_INSTRUCTIONS'; /** - * Required. The managed topic. + * Required. Represents the managed topic. * * @var string */ public $managedTopicEnum; /** - * Required. The managed topic. + * Required. Represents the managed topic. * * Accepted values: MANAGED_TOPIC_ENUM_UNSPECIFIED, USER_PERSONAL_INFO, * USER_PREFERENCES, KEY_CONVERSATION_DETAILS, EXPLICIT_INSTRUCTIONS diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryConjunctionFilter.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryConjunctionFilter.php index a8ed77365b..a29dd7084b 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1MemoryConjunctionFilter.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryConjunctionFilter.php @@ -24,7 +24,7 @@ class GoogleCloudAiplatformV1MemoryConjunctionFilter extends \Google\Collection protected $filtersDataType = 'array'; /** - * Filters that will combined using AND logic. + * Represents filters that will be combined using AND logic. * * @param GoogleCloudAiplatformV1MemoryFilter[] $filters */ diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryFilter.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryFilter.php index e097148b5b..dbd86a2af7 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1MemoryFilter.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryFilter.php @@ -20,7 +20,7 @@ class GoogleCloudAiplatformV1MemoryFilter extends \Google\Model { /** - * Unspecified operator. Defaults to EQUAL. + * Represents an unspecified operator. Defaults to EQUAL. */ public const OP_OPERATOR_UNSPECIFIED = 'OPERATOR_UNSPECIFIED'; /** @@ -36,20 +36,21 @@ class GoogleCloudAiplatformV1MemoryFilter extends \Google\Model */ public const OP_LESS_THAN = 'LESS_THAN'; /** - * Key of the filter. For example, "author" would apply to `metadata` entries - * with the key "author". + * Represents the key of the filter. For example, "author" would apply to + * `metadata` entries with the key "author". * * @var string */ public $key; /** - * If true, the filter will be negated. + * Indicates whether the filter will be negated. * * @var bool */ public $negate; /** - * Operator to apply to the filter. If not set, then EQUAL will be used. + * Represents the operator to apply to the filter. If not set, then EQUAL will + * be used. * * @var string */ @@ -58,8 +59,8 @@ class GoogleCloudAiplatformV1MemoryFilter extends \Google\Model protected $valueDataType = ''; /** - * Key of the filter. For example, "author" would apply to `metadata` entries - * with the key "author". + * Represents the key of the filter. For example, "author" would apply to + * `metadata` entries with the key "author". * * @param string $key */ @@ -75,7 +76,7 @@ public function getKey() return $this->key; } /** - * If true, the filter will be negated. + * Indicates whether the filter will be negated. * * @param bool $negate */ @@ -91,7 +92,8 @@ public function getNegate() return $this->negate; } /** - * Operator to apply to the filter. If not set, then EQUAL will be used. + * Represents the operator to apply to the filter. If not set, then EQUAL will + * be used. * * Accepted values: OPERATOR_UNSPECIFIED, EQUAL, GREATER_THAN, LESS_THAN * @@ -109,7 +111,7 @@ public function getOp() return $this->op; } /** - * Value to compare to. + * Represents the value to compare to. * * @param GoogleCloudAiplatformV1MemoryMetadataValue $value */ diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryGenerationTriggerConfig.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryGenerationTriggerConfig.php new file mode 100644 index 0000000000..2e241ac968 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryGenerationTriggerConfig.php @@ -0,0 +1,45 @@ +generationRule = $generationRule; + } + /** + * @return GoogleCloudAiplatformV1MemoryGenerationTriggerConfigGenerationTriggerRule + */ + public function getGenerationRule() + { + return $this->generationRule; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1MemoryGenerationTriggerConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1MemoryGenerationTriggerConfig'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryGenerationTriggerConfigGenerationTriggerRule.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryGenerationTriggerConfigGenerationTriggerRule.php new file mode 100644 index 0000000000..6615235430 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryGenerationTriggerConfigGenerationTriggerRule.php @@ -0,0 +1,100 @@ +eventCount = $eventCount; + } + /** + * @return int + */ + public function getEventCount() + { + return $this->eventCount; + } + /** + * Optional. Specifies to trigger generation at a fixed interval. The duration + * must have a minute-level granularity. + * + * @param string $fixedInterval + */ + public function setFixedInterval($fixedInterval) + { + $this->fixedInterval = $fixedInterval; + } + /** + * @return string + */ + public function getFixedInterval() + { + return $this->fixedInterval; + } + /** + * Optional. Specifies to trigger generation if the stream is inactive for the + * specified duration after the most recent event. The duration must have a + * minute-level granularity. + * + * @param string $idleDuration + */ + public function setIdleDuration($idleDuration) + { + $this->idleDuration = $idleDuration; + } + /** + * @return string + */ + public function getIdleDuration() + { + return $this->idleDuration; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1MemoryGenerationTriggerConfigGenerationTriggerRule::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1MemoryGenerationTriggerConfigGenerationTriggerRule'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryMetadataValue.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryMetadataValue.php index 405f9964b4..f29ce844fe 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1MemoryMetadataValue.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryMetadataValue.php @@ -20,33 +20,33 @@ class GoogleCloudAiplatformV1MemoryMetadataValue extends \Google\Model { /** - * Boolean value. + * Represents a boolean value. * * @var bool */ public $boolValue; /** - * Double value. + * Represents a double value. * * @var */ public $doubleValue; /** - * String value. + * Represents a string value. * * @var string */ public $stringValue; /** - * Timestamp value. When filtering on timestamp values, only the seconds field - * will be compared. + * Represents a timestamp value. When filtering on timestamp values, only the + * seconds field will be compared. * * @var string */ public $timestampValue; /** - * Boolean value. + * Represents a boolean value. * * @param bool $boolValue */ @@ -70,7 +70,7 @@ public function getDoubleValue() return $this->doubleValue; } /** - * String value. + * Represents a string value. * * @param string $stringValue */ @@ -86,8 +86,8 @@ public function getStringValue() return $this->stringValue; } /** - * Timestamp value. When filtering on timestamp values, only the seconds field - * will be compared. + * Represents a timestamp value. When filtering on timestamp values, only the + * seconds field will be compared. * * @param string $timestampValue */ diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryRevision.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryRevision.php index 9c4f169218..b573dd6d25 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1MemoryRevision.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryRevision.php @@ -21,13 +21,15 @@ class GoogleCloudAiplatformV1MemoryRevision extends \Google\Collection { protected $collection_key = 'extractedMemories'; /** - * Output only. Timestamp when this Memory Revision was created. + * Output only. Represents the timestamp when this Memory Revision was + * created. * * @var string */ public $createTime; /** - * Output only. Timestamp of when this resource is considered expired. + * Output only. Represents the timestamp of when this resource is considered + * expired. * * @var string */ @@ -35,31 +37,39 @@ class GoogleCloudAiplatformV1MemoryRevision extends \Google\Collection protected $extractedMemoriesType = GoogleCloudAiplatformV1IntermediateExtractedMemory::class; protected $extractedMemoriesDataType = 'array'; /** - * Output only. The fact of the Memory Revision. This corresponds to the - * `fact` field of the parent Memory at the time of revision creation. + * Output only. Represents the fact of the Memory Revision. This corresponds + * to the `fact` field of the parent Memory at the time of revision creation. * * @var string */ public $fact; /** - * Output only. The labels of the Memory Revision. These labels are applied to - * the MemoryRevision when it is created based on + * Output only. Represents the labels of the Memory Revision. These labels are + * applied to the MemoryRevision when it is created based on * `GenerateMemoriesRequest.revision_labels`. * * @var string[] */ public $labels; /** - * Identifier. The resource name of the Memory Revision. Format: `projects/{pr - * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{m - * emory}/revisions/{memory_revision}` + * Identifier. Represents the resource name of the Memory Revision. Format: `p + * rojects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/ + * memories/{memory}/revisions/{memory_revision}` * * @var string */ public $name; + /** + * Output only. Represents the structured value of the memory at the time of + * revision creation. + * + * @var array[] + */ + public $structuredData; /** - * Output only. Timestamp when this Memory Revision was created. + * Output only. Represents the timestamp when this Memory Revision was + * created. * * @param string $createTime */ @@ -75,7 +85,8 @@ public function getCreateTime() return $this->createTime; } /** - * Output only. Timestamp of when this resource is considered expired. + * Output only. Represents the timestamp of when this resource is considered + * expired. * * @param string $expireTime */ @@ -91,8 +102,8 @@ public function getExpireTime() return $this->expireTime; } /** - * Output only. The extracted memories from the source content before - * consolidation when the memory was updated via GenerateMemories. This + * Output only. Represents the extracted memories from the source content + * before consolidation when the memory was updated via GenerateMemories. This * information was used to modify an existing Memory via Consolidation. * * @param GoogleCloudAiplatformV1IntermediateExtractedMemory[] $extractedMemories @@ -109,8 +120,8 @@ public function getExtractedMemories() return $this->extractedMemories; } /** - * Output only. The fact of the Memory Revision. This corresponds to the - * `fact` field of the parent Memory at the time of revision creation. + * Output only. Represents the fact of the Memory Revision. This corresponds + * to the `fact` field of the parent Memory at the time of revision creation. * * @param string $fact */ @@ -126,8 +137,8 @@ public function getFact() return $this->fact; } /** - * Output only. The labels of the Memory Revision. These labels are applied to - * the MemoryRevision when it is created based on + * Output only. Represents the labels of the Memory Revision. These labels are + * applied to the MemoryRevision when it is created based on * `GenerateMemoriesRequest.revision_labels`. * * @param string[] $labels @@ -144,9 +155,9 @@ public function getLabels() return $this->labels; } /** - * Identifier. The resource name of the Memory Revision. Format: `projects/{pr - * oject}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{m - * emory}/revisions/{memory_revision}` + * Identifier. Represents the resource name of the Memory Revision. Format: `p + * rojects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/ + * memories/{memory}/revisions/{memory_revision}` * * @param string $name */ @@ -161,6 +172,23 @@ public function getName() { return $this->name; } + /** + * Output only. Represents the structured value of the memory at the time of + * revision creation. + * + * @param array[] $structuredData + */ + public function setStructuredData($structuredData) + { + $this->structuredData = $structuredData; + } + /** + * @return array[] + */ + public function getStructuredData() + { + return $this->structuredData; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/Aiplatform/GoogleCloudAiplatformV1MemoryTopicId.php b/src/Aiplatform/GoogleCloudAiplatformV1MemoryTopicId.php index de385a0cdf..39ebb0e00d 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1MemoryTopicId.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1MemoryTopicId.php @@ -20,41 +20,43 @@ class GoogleCloudAiplatformV1MemoryTopicId extends \Google\Model { /** - * Unspecified topic. This value should not be used. + * Represents an unspecified topic. This value should not be used. */ public const MANAGED_MEMORY_TOPIC_MANAGED_TOPIC_ENUM_UNSPECIFIED = 'MANAGED_TOPIC_ENUM_UNSPECIFIED'; /** - * Significant personal information about the User like first names, - * relationships, hobbies, important dates. + * Represents significant personal information about the User like first + * names, relationships, hobbies, important dates. */ public const MANAGED_MEMORY_TOPIC_USER_PERSONAL_INFO = 'USER_PERSONAL_INFO'; /** - * Stated or implied likes, dislikes, preferred styles, or patterns. + * Represents stated or implied likes, dislikes, preferred styles, or + * patterns. */ public const MANAGED_MEMORY_TOPIC_USER_PREFERENCES = 'USER_PREFERENCES'; /** - * Important milestones or conclusions within the dialogue. + * Represents important milestones or conclusions within the dialogue. */ public const MANAGED_MEMORY_TOPIC_KEY_CONVERSATION_DETAILS = 'KEY_CONVERSATION_DETAILS'; /** - * Information that the user explicitly requested to remember or forget. + * Represents information that the user explicitly requested to remember or + * forget. */ public const MANAGED_MEMORY_TOPIC_EXPLICIT_INSTRUCTIONS = 'EXPLICIT_INSTRUCTIONS'; /** - * Optional. The custom memory topic label. + * Optional. Represents the custom memory topic label. * * @var string */ public $customMemoryTopicLabel; /** - * Optional. The managed memory topic. + * Optional. Represents the managed memory topic. * * @var string */ public $managedMemoryTopic; /** - * Optional. The custom memory topic label. + * Optional. Represents the custom memory topic label. * * @param string $customMemoryTopicLabel */ @@ -70,7 +72,7 @@ public function getCustomMemoryTopicLabel() return $this->customMemoryTopicLabel; } /** - * Optional. The managed memory topic. + * Optional. Represents the managed memory topic. * * Accepted values: MANAGED_TOPIC_ENUM_UNSPECIFIED, USER_PERSONAL_INFO, * USER_PREFERENCES, KEY_CONVERSATION_DETAILS, EXPLICIT_INSTRUCTIONS diff --git a/src/Aiplatform/GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfigGenerationConfig.php b/src/Aiplatform/GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfigGenerationConfig.php index 37f1e9a96c..da66a2f151 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfigGenerationConfig.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfigGenerationConfig.php @@ -19,8 +19,10 @@ class GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfigGenerationConfig extends \Google\Model { + protected $generationTriggerConfigType = GoogleCloudAiplatformV1MemoryGenerationTriggerConfig::class; + protected $generationTriggerConfigDataType = ''; /** - * Required. The model used to generate memories. Format: + * Optional. The model used to generate memories. Format: * `projects/{project}/locations/{location}/publishers/google/models/{model}`. * * @var string @@ -28,7 +30,24 @@ class GoogleCloudAiplatformV1ReasoningEngineContextSpecMemoryBankConfigGeneratio public $model; /** - * Required. The model used to generate memories. Format: + * Optional. Specifies the default trigger configuration for generating + * memories using `IngestEvents`. + * + * @param GoogleCloudAiplatformV1MemoryGenerationTriggerConfig $generationTriggerConfig + */ + public function setGenerationTriggerConfig(GoogleCloudAiplatformV1MemoryGenerationTriggerConfig $generationTriggerConfig) + { + $this->generationTriggerConfig = $generationTriggerConfig; + } + /** + * @return GoogleCloudAiplatformV1MemoryGenerationTriggerConfig + */ + public function getGenerationTriggerConfig() + { + return $this->generationTriggerConfig; + } + /** + * Optional. The model used to generate memories. Format: * `projects/{project}/locations/{location}/publishers/google/models/{model}`. * * @param string $model diff --git a/src/Aiplatform/GoogleCloudAiplatformV1RetrieveMemoriesRequest.php b/src/Aiplatform/GoogleCloudAiplatformV1RetrieveMemoriesRequest.php index cb0cb193c3..b3e9ea6668 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1RetrieveMemoriesRequest.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1RetrieveMemoriesRequest.php @@ -19,7 +19,7 @@ class GoogleCloudAiplatformV1RetrieveMemoriesRequest extends \Google\Collection { - protected $collection_key = 'filterGroups'; + protected $collection_key = 'memoryTypes'; /** * Optional. The standard list filter that will be applied to the retrieved * memories. More detail in [AIP-160](https://google.aip.dev/160). Supported @@ -32,6 +32,15 @@ class GoogleCloudAiplatformV1RetrieveMemoriesRequest extends \Google\Collection public $filter; protected $filterGroupsType = GoogleCloudAiplatformV1MemoryConjunctionFilter::class; protected $filterGroupsDataType = 'array'; + /** + * Optional. Specifies the types of memories to retrieve. If this field is + * empty or not provided, the request will default to retrieving only memories + * of type `NATURAL_LANGUAGE_COLLECTION`. If populated, the request will + * retrieve memories matching any of the specified `MemoryType` values. + * + * @var string[] + */ + public $memoryTypes; /** * Required. The scope of the memories to retrieve. A memory must have exactly * the same scope (`Memory.scope`) as the scope provided here to be retrieved @@ -88,6 +97,25 @@ public function getFilterGroups() { return $this->filterGroups; } + /** + * Optional. Specifies the types of memories to retrieve. If this field is + * empty or not provided, the request will default to retrieving only memories + * of type `NATURAL_LANGUAGE_COLLECTION`. If populated, the request will + * retrieve memories matching any of the specified `MemoryType` values. + * + * @param string[] $memoryTypes + */ + public function setMemoryTypes($memoryTypes) + { + $this->memoryTypes = $memoryTypes; + } + /** + * @return string[] + */ + public function getMemoryTypes() + { + return $this->memoryTypes; + } /** * Required. The scope of the memories to retrieve. A memory must have exactly * the same scope (`Memory.scope`) as the scope provided here to be retrieved diff --git a/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo.php b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo.php index a5fa168b5a..8f860cf215 100644 --- a/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo.php +++ b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo.php @@ -31,6 +31,12 @@ class GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo extends \Google\Mo * @var string */ public $loadBalancerIp; + /** + * Output only. The hostname of the SandboxEnvironment. + * + * @var string + */ + public $sandboxHostname; /** * Output only. The internal IP address of the SandboxEnvironment. * @@ -70,6 +76,22 @@ public function getLoadBalancerIp() { return $this->loadBalancerIp; } + /** + * Output only. The hostname of the SandboxEnvironment. + * + * @param string $sandboxHostname + */ + public function setSandboxHostname($sandboxHostname) + { + $this->sandboxHostname = $sandboxHostname; + } + /** + * @return string + */ + public function getSandboxHostname() + { + return $this->sandboxHostname; + } /** * Output only. The internal IP address of the SandboxEnvironment. * diff --git a/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentSnapshot.php b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentSnapshot.php new file mode 100644 index 0000000000..79ecfeab1d --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentSnapshot.php @@ -0,0 +1,312 @@ +createTime = $createTime; + } + /** + * @return string + */ + public function getCreateTime() + { + return $this->createTime; + } + /** + * Required. The display name of the SandboxEnvironmentSnapshot. + * + * @param string $displayName + */ + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + /** + * @return string + */ + public function getDisplayName() + { + return $this->displayName; + } + /** + * Optional. Timestamp in UTC of when this SandboxEnvironmentSnapshot is + * considered expired. This is *always* provided on output, regardless of what + * `expiration` was sent on input. + * + * @param string $expireTime + */ + public function setExpireTime($expireTime) + { + $this->expireTime = $expireTime; + } + /** + * @return string + */ + public function getExpireTime() + { + return $this->expireTime; + } + /** + * Identifier. The resource name of the SandboxEnvironmentSnapshot. Format: `p + * rojects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/ + * sandboxEnvironmentSnapshots/{sandbox_environment_snapshot}` + * + * @param string $name + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * Optional. Owner information for this sandbox snapshot. Different owners + * will have isolations on snapshot storage and identity. If not set, snapshot + * will be created as the default owner. + * + * @param string $owner + */ + public function setOwner($owner) + { + $this->owner = $owner; + } + /** + * @return string + */ + public function getOwner() + { + return $this->owner; + } + /** + * Output only. The resource name of the parent SandboxEnvironmentSnapshot. + * Empty if this is a root Snapshot (the first snapshot from a newly created + * sandbox). Can be used to reconstruct the whole ancestry tree of snapshots. + * + * @param string $parentSnapshot + */ + public function setParentSnapshot($parentSnapshot) + { + $this->parentSnapshot = $parentSnapshot; + } + /** + * @return string + */ + public function getParentSnapshot() + { + return $this->parentSnapshot; + } + /** + * Optional. Input only. Action to take on the source SandboxEnvironment after + * the snapshot is taken. This field is only used in + * CreateSandboxEnvironmentSnapshotRequest and it is not stored in the + * resource. + * + * Accepted values: POST_SNAPSHOT_ACTION_UNSPECIFIED, RUNNING, PAUSE + * + * @param self::POST_SNAPSHOT_ACTION_* $postSnapshotAction + */ + public function setPostSnapshotAction($postSnapshotAction) + { + $this->postSnapshotAction = $postSnapshotAction; + } + /** + * @return self::POST_SNAPSHOT_ACTION_* + */ + public function getPostSnapshotAction() + { + return $this->postSnapshotAction; + } + /** + * Optional. Output only. Size of the snapshot data in bytes. + * + * @param string $sizeBytes + */ + public function setSizeBytes($sizeBytes) + { + $this->sizeBytes = $sizeBytes; + } + /** + * @return string + */ + public function getSizeBytes() + { + return $this->sizeBytes; + } + /** + * Required. The resource name of the source SandboxEnvironment this snapshot + * was taken from. + * + * @param string $sourceSandboxEnvironment + */ + public function setSourceSandboxEnvironment($sourceSandboxEnvironment) + { + $this->sourceSandboxEnvironment = $sourceSandboxEnvironment; + } + /** + * @return string + */ + public function getSourceSandboxEnvironment() + { + return $this->sourceSandboxEnvironment; + } + /** + * Optional. Input only. The TTL for the sandbox environment snapshot. The + * expiration time is computed: now + TTL. + * + * @param string $ttl + */ + public function setTtl($ttl) + { + $this->ttl = $ttl; + } + /** + * @return string + */ + public function getTtl() + { + return $this->ttl; + } + /** + * Output only. The timestamp when this SandboxEnvironment was most recently + * 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(GoogleCloudAiplatformV1SandboxEnvironmentSnapshot::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SandboxEnvironmentSnapshot'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplate.php b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplate.php new file mode 100644 index 0000000000..426c310942 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplate.php @@ -0,0 +1,225 @@ +createTime = $createTime; + } + /** + * @return string + */ + public function getCreateTime() + { + return $this->createTime; + } + /** + * The sandbox environment for custom container workloads. + * + * @param GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerEnvironment $customContainerEnvironment + */ + public function setCustomContainerEnvironment(GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerEnvironment $customContainerEnvironment) + { + $this->customContainerEnvironment = $customContainerEnvironment; + } + /** + * @return GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerEnvironment + */ + public function getCustomContainerEnvironment() + { + return $this->customContainerEnvironment; + } + /** + * The sandbox environment for default container workloads. + * + * @param GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment $defaultContainerEnvironment + */ + public function setDefaultContainerEnvironment(GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment $defaultContainerEnvironment) + { + $this->defaultContainerEnvironment = $defaultContainerEnvironment; + } + /** + * @return GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment + */ + public function getDefaultContainerEnvironment() + { + return $this->defaultContainerEnvironment; + } + /** + * Required. The display name of the SandboxEnvironmentTemplate. + * + * @param string $displayName + */ + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + /** + * @return string + */ + public function getDisplayName() + { + return $this->displayName; + } + /** + * Identifier. The resource name of the SandboxEnvironmentTemplate. Format: `p + * rojects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/ + * sandboxEnvironmentTemplates/{sandbox_environment_template}` + * + * @param string $name + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * Output only. The state of the sandbox environment template. + * + * Accepted values: UNSPECIFIED, PROVISIONING, ACTIVE, DEPROVISIONING, + * DELETED, FAILED + * + * @param self::STATE_* $state + */ + public function setState($state) + { + $this->state = $state; + } + /** + * @return self::STATE_* + */ + public function getState() + { + return $this->state; + } + /** + * Output only. The timestamp when this SandboxEnvironmentTemplate was most + * recently updated. + * + * @param string $updateTime + */ + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + /** + * @return string + */ + public function getUpdateTime() + { + return $this->updateTime; + } + /** + * Optional. The configuration for the warm pool of this template. + * + * @param GoogleCloudAiplatformV1SandboxEnvironmentTemplateWarmPoolConfig $warmPoolConfig + */ + public function setWarmPoolConfig(GoogleCloudAiplatformV1SandboxEnvironmentTemplateWarmPoolConfig $warmPoolConfig) + { + $this->warmPoolConfig = $warmPoolConfig; + } + /** + * @return GoogleCloudAiplatformV1SandboxEnvironmentTemplateWarmPoolConfig + */ + public function getWarmPoolConfig() + { + return $this->warmPoolConfig; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1SandboxEnvironmentTemplate::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SandboxEnvironmentTemplate'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerEnvironment.php b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerEnvironment.php new file mode 100644 index 0000000000..3890408c5d --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerEnvironment.php @@ -0,0 +1,81 @@ +customContainerSpec = $customContainerSpec; + } + /** + * @return GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerSpec + */ + public function getCustomContainerSpec() + { + return $this->customContainerSpec; + } + /** + * Ports to expose from the container. + * + * @param GoogleCloudAiplatformV1SandboxEnvironmentTemplateNetworkPort[] $ports + */ + public function setPorts($ports) + { + $this->ports = $ports; + } + /** + * @return GoogleCloudAiplatformV1SandboxEnvironmentTemplateNetworkPort[] + */ + public function getPorts() + { + return $this->ports; + } + /** + * Resource requests and limits for the container. + * + * @param GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements $resources + */ + public function setResources(GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements $resources) + { + $this->resources = $resources; + } + /** + * @return GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements + */ + public function getResources() + { + return $this->resources; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerEnvironment::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerEnvironment'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerSpec.php b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerSpec.php new file mode 100644 index 0000000000..ed8cb9c56c --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerSpec.php @@ -0,0 +1,52 @@ +imageUri = $imageUri; + } + /** + * @return string + */ + public function getImageUri() + { + return $this->imageUri; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerSpec::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerSpec'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment.php b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment.php new file mode 100644 index 0000000000..f32a6525f6 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment.php @@ -0,0 +1,59 @@ +defaultContainerCategory = $defaultContainerCategory; + } + /** + * @return self::DEFAULT_CONTAINER_CATEGORY_* + */ + public function getDefaultContainerCategory() + { + return $this->defaultContainerCategory; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SandboxEnvironmentTemplateDefaultContainerEnvironment'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateNetworkPort.php b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateNetworkPort.php new file mode 100644 index 0000000000..a79915523a --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateNetworkPort.php @@ -0,0 +1,86 @@ +port = $port; + } + /** + * @return int + */ + public function getPort() + { + return $this->port; + } + /** + * Optional. Protocol for port. Defaults to TCP if not specified. + * + * Accepted values: PROTOCOL_UNSPECIFIED, TCP, UDP + * + * @param self::PROTOCOL_* $protocol + */ + public function setProtocol($protocol) + { + $this->protocol = $protocol; + } + /** + * @return self::PROTOCOL_* + */ + public function getProtocol() + { + return $this->protocol; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1SandboxEnvironmentTemplateNetworkPort::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SandboxEnvironmentTemplateNetworkPort'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements.php b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements.php new file mode 100644 index 0000000000..ce11e94ff5 --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements.php @@ -0,0 +1,78 @@ +limits = $limits; + } + /** + * @return string[] + */ + public function getLimits() + { + return $this->limits; + } + /** + * Optional. The requested amounts of compute resources. Keys are resource + * names (e.g., "cpu", "memory"). Values are quantities (e.g., "250m", + * "512Mi"). + * + * @param string[] $requests + */ + public function setRequests($requests) + { + $this->requests = $requests; + } + /** + * @return string[] + */ + public function getRequests() + { + return $this->requests; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements'); diff --git a/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateWarmPoolConfig.php b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateWarmPoolConfig.php new file mode 100644 index 0000000000..e57cf6b84a --- /dev/null +++ b/src/Aiplatform/GoogleCloudAiplatformV1SandboxEnvironmentTemplateWarmPoolConfig.php @@ -0,0 +1,48 @@ +targetInstanceCount = $targetInstanceCount; + } + /** + * @return int + */ + public function getTargetInstanceCount() + { + return $this->targetInstanceCount; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GoogleCloudAiplatformV1SandboxEnvironmentTemplateWarmPoolConfig::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1SandboxEnvironmentTemplateWarmPoolConfig'); diff --git a/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesMemories.php b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesMemories.php index 7f426739af..782a377e30 100644 --- a/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesMemories.php +++ b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesMemories.php @@ -140,9 +140,9 @@ public function listProjectsLocationsReasoningEnginesMemories($parent, $optParam /** * Update a Memory. (memories.patch) * - * @param string $name Identifier. The resource name of the Memory. Format: `pro - * jects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memo - * ries/{memory}` + * @param string $name Identifier. Represents the resource name of the Memory. + * Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_ + * engine}/memories/{memory}` * @param GoogleCloudAiplatformV1Memory $postBody * @param array $optParams Optional parameters. * diff --git a/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesRuntimeRevisions.php b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesRuntimeRevisions.php new file mode 100644 index 0000000000..fb41858bde --- /dev/null +++ b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesRuntimeRevisions.php @@ -0,0 +1,72 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $runtimeRevisions = $aiplatformService->projects_locations_reasoningEngines_runtimeRevisions; + * + */ +class ProjectsLocationsReasoningEnginesRuntimeRevisions extends \Google\Service\Resource +{ + /** + * Queries using a reasoning engine. (runtimeRevisions.query) + * + * @param string $name Required. The name of the ReasoningEngine resource to + * use. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param GoogleCloudAiplatformV1QueryReasoningEngineRequest $postBody + * @param array $optParams Optional parameters. + * @return GoogleCloudAiplatformV1QueryReasoningEngineResponse + * @throws \Google\Service\Exception + */ + public function query($name, GoogleCloudAiplatformV1QueryReasoningEngineRequest $postBody, $optParams = []) + { + $params = ['name' => $name, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('query', [$params], GoogleCloudAiplatformV1QueryReasoningEngineResponse::class); + } + /** + * Streams queries using a reasoning engine. (runtimeRevisions.streamQuery) + * + * @param string $name Required. The name of the ReasoningEngine resource to + * use. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest $postBody + * @param array $optParams Optional parameters. + * @return GoogleApiHttpBody + * @throws \Google\Service\Exception + */ + public function streamQuery($name, GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest $postBody, $optParams = []) + { + $params = ['name' => $name, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('streamQuery', [$params], GoogleApiHttpBody::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsReasoningEnginesRuntimeRevisions::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsReasoningEnginesRuntimeRevisions'); diff --git a/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshots.php b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshots.php new file mode 100644 index 0000000000..02ad632280 --- /dev/null +++ b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshots.php @@ -0,0 +1,100 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $sandboxEnvironmentSnapshots = $aiplatformService->projects_locations_reasoningEngines_sandboxEnvironmentSnapshots; + * + */ +class ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshots extends \Google\Service\Resource +{ + /** + * Deletes the specific SandboxEnvironmentSnapshot. + * (sandboxEnvironmentSnapshots.delete) + * + * @param string $name Required. The resource name of the + * SandboxEnvironmentSnapshot to delete. Format: `projects/{project}/locations/{ + * location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentSnapshots/{sa + * ndbox_environment_snapshot}` + * @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); + } + /** + * Gets details of the specific SandboxEnvironmentSnapshot. + * (sandboxEnvironmentSnapshots.get) + * + * @param string $name Required. The resource name of the sandbox environment + * snapshot. Format: `projects/{project}/locations/{location}/reasoningEngines/{ + * reasoning_engine}/sandboxEnvironmentSnapshots/{sandbox_environment_snapshot}` + * @param array $optParams Optional parameters. + * @return GoogleCloudAiplatformV1SandboxEnvironmentSnapshot + * @throws \Google\Service\Exception + */ + public function get($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], GoogleCloudAiplatformV1SandboxEnvironmentSnapshot::class); + } + /** + * Lists SandboxEnvironmentSnapshots in a given reasoning engine. (sandboxEnviro + * nmentSnapshots.listProjectsLocationsReasoningEnginesSandboxEnvironmentSnapsho + * ts) + * + * @param string $parent Required. The resource name of the reasoning engine to + * list sandbox environments from. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. The standard list filter. More detail in + * [AIP-160](https://google.aip.dev/160). + * @opt_param int pageSize Optional. The maximum number of + * SandboxEnvironmentSnapshots to return. The service may return fewer than this + * value. If unspecified, at most 100 SandboxEnvironmentSnapshots will be + * returned. Values above 100 will be coerced to 100. + * @opt_param string pageToken Optional. The standard list page token, received + * from a previous `ListSandboxEnvironmentSnapshots` call. Provide this to + * retrieve the subsequent page. + * @return GoogleCloudAiplatformV1ListSandboxEnvironmentSnapshotsResponse + * @throws \Google\Service\Exception + */ + public function listProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshots($parent, $optParams = []) + { + $params = ['parent' => $parent]; + $params = array_merge($params, $optParams); + return $this->call('list', [$params], GoogleCloudAiplatformV1ListSandboxEnvironmentSnapshotsResponse::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshots::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshots'); diff --git a/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshotsOperations.php b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshotsOperations.php new file mode 100644 index 0000000000..8dea779021 --- /dev/null +++ b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshotsOperations.php @@ -0,0 +1,118 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $operations = $aiplatformService->projects_locations_reasoningEngines_sandboxEnvironmentSnapshots_operations; + * + */ +class ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshotsOperations 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); + } + /** + * 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(ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshotsOperations::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsReasoningEnginesSandboxEnvironmentSnapshotsOperations'); diff --git a/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplates.php b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplates.php new file mode 100644 index 0000000000..728dd78abf --- /dev/null +++ b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplates.php @@ -0,0 +1,118 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $sandboxEnvironmentTemplates = $aiplatformService->projects_locations_reasoningEngines_sandboxEnvironmentTemplates; + * + */ +class ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplates extends \Google\Service\Resource +{ + /** + * Creates a SandboxEnvironmentTemplate in a given reasoning engine. + * (sandboxEnvironmentTemplates.create) + * + * @param string $parent Required. The resource name of the reasoning engine to + * create the SandboxEnvironmentTemplate in. Format: `projects/{project}/locatio + * ns/{location}/reasoningEngines/{reasoning_engine}`. + * @param GoogleCloudAiplatformV1SandboxEnvironmentTemplate $postBody + * @param array $optParams Optional parameters. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function create($parent, GoogleCloudAiplatformV1SandboxEnvironmentTemplate $postBody, $optParams = []) + { + $params = ['parent' => $parent, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('create', [$params], GoogleLongrunningOperation::class); + } + /** + * Deletes the specific SandboxEnvironmentTemplate. + * (sandboxEnvironmentTemplates.delete) + * + * @param string $name Required. The resource name of the + * SandboxEnvironmentTemplate to delete. Format: `projects/{project}/locations/{ + * location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sa + * ndbox_environment_template}` + * @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); + } + /** + * Gets details of the specific SandboxEnvironmentTemplate. + * (sandboxEnvironmentTemplates.get) + * + * @param string $name Required. The resource name of the sandbox environment + * template. Format: `projects/{project}/locations/{location}/reasoningEngines/{ + * reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_environment_template}` + * @param array $optParams Optional parameters. + * @return GoogleCloudAiplatformV1SandboxEnvironmentTemplate + * @throws \Google\Service\Exception + */ + public function get($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], GoogleCloudAiplatformV1SandboxEnvironmentTemplate::class); + } + /** + * Lists SandboxEnvironmentTemplates in a given reasoning engine. (sandboxEnviro + * nmentTemplates.listProjectsLocationsReasoningEnginesSandboxEnvironmentTemplat + * es) + * + * @param string $parent Required. The resource name of the reasoning engine to + * list sandbox environment templates from. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. The standard list filter. More detail in + * [AIP-160](https://google.aip.dev/160). + * @opt_param int pageSize Optional. The maximum number of + * SandboxEnvironmentTemplates to return. The service may return fewer than this + * value. If unspecified, at most 100 SandboxEnvironmentTemplates will be + * returned. + * @opt_param string pageToken Optional. The standard list page token, received + * from a previous `ListSandboxEnvironmentTemplates` call. Provide this to + * retrieve the subsequent page. + * @return GoogleCloudAiplatformV1ListSandboxEnvironmentTemplatesResponse + * @throws \Google\Service\Exception + */ + public function listProjectsLocationsReasoningEnginesSandboxEnvironmentTemplates($parent, $optParams = []) + { + $params = ['parent' => $parent]; + $params = array_merge($params, $optParams); + return $this->call('list', [$params], GoogleCloudAiplatformV1ListSandboxEnvironmentTemplatesResponse::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplates::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplates'); diff --git a/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplatesOperations.php b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplatesOperations.php new file mode 100644 index 0000000000..fc93dfc878 --- /dev/null +++ b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplatesOperations.php @@ -0,0 +1,118 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $operations = $aiplatformService->projects_locations_reasoningEngines_sandboxEnvironmentTemplates_operations; + * + */ +class ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplatesOperations 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); + } + /** + * 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(ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplatesOperations::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsReasoningEnginesSandboxEnvironmentTemplatesOperations'); diff --git a/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironments.php b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironments.php index 242a6ab835..8c336de4d9 100644 --- a/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironments.php +++ b/src/Aiplatform/Resource/ProjectsLocationsReasoningEnginesSandboxEnvironments.php @@ -21,6 +21,7 @@ use Google\Service\Aiplatform\GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse; use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse; use Google\Service\Aiplatform\GoogleCloudAiplatformV1SandboxEnvironment; +use Google\Service\Aiplatform\GoogleCloudAiplatformV1SandboxEnvironmentSnapshot; use Google\Service\Aiplatform\GoogleLongrunningOperation; /** @@ -126,6 +127,24 @@ public function listProjectsLocationsReasoningEnginesSandboxEnvironments($parent $params = array_merge($params, $optParams); return $this->call('list', [$params], GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse::class); } + /** + * Snapshots the specific SandboxEnvironment resource and creates a + * SandboxEnvironmentSnapshot resource. (sandboxEnvironments.snapshot) + * + * @param string $name Required. The resource name of the sandbox environment to + * snapshot. Format: `projects/{project}/locations/{location}/reasoningEngines/{ + * reasoning_engine}/sandboxEnvironments/{sandbox_environment}`. + * @param GoogleCloudAiplatformV1SandboxEnvironmentSnapshot $postBody + * @param array $optParams Optional parameters. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function snapshot($name, GoogleCloudAiplatformV1SandboxEnvironmentSnapshot $postBody, $optParams = []) + { + $params = ['name' => $name, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('snapshot', [$params], GoogleLongrunningOperation::class); + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/Aiplatform/Resource/ReasoningEnginesRuntimeRevisions.php b/src/Aiplatform/Resource/ReasoningEnginesRuntimeRevisions.php new file mode 100644 index 0000000000..2d2e1ec2ad --- /dev/null +++ b/src/Aiplatform/Resource/ReasoningEnginesRuntimeRevisions.php @@ -0,0 +1,72 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $runtimeRevisions = $aiplatformService->reasoningEngines_runtimeRevisions; + * + */ +class ReasoningEnginesRuntimeRevisions extends \Google\Service\Resource +{ + /** + * Queries using a reasoning engine. (runtimeRevisions.query) + * + * @param string $name Required. The name of the ReasoningEngine resource to + * use. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param GoogleCloudAiplatformV1QueryReasoningEngineRequest $postBody + * @param array $optParams Optional parameters. + * @return GoogleCloudAiplatformV1QueryReasoningEngineResponse + * @throws \Google\Service\Exception + */ + public function query($name, GoogleCloudAiplatformV1QueryReasoningEngineRequest $postBody, $optParams = []) + { + $params = ['name' => $name, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('query', [$params], GoogleCloudAiplatformV1QueryReasoningEngineResponse::class); + } + /** + * Streams queries using a reasoning engine. (runtimeRevisions.streamQuery) + * + * @param string $name Required. The name of the ReasoningEngine resource to + * use. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest $postBody + * @param array $optParams Optional parameters. + * @return GoogleApiHttpBody + * @throws \Google\Service\Exception + */ + public function streamQuery($name, GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest $postBody, $optParams = []) + { + $params = ['name' => $name, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('streamQuery', [$params], GoogleApiHttpBody::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ReasoningEnginesRuntimeRevisions::class, 'Google_Service_Aiplatform_Resource_ReasoningEnginesRuntimeRevisions'); diff --git a/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironmentSnapshots.php b/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironmentSnapshots.php new file mode 100644 index 0000000000..39c890d66b --- /dev/null +++ b/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironmentSnapshots.php @@ -0,0 +1,99 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $sandboxEnvironmentSnapshots = $aiplatformService->reasoningEngines_sandboxEnvironmentSnapshots; + * + */ +class ReasoningEnginesSandboxEnvironmentSnapshots extends \Google\Service\Resource +{ + /** + * Deletes the specific SandboxEnvironmentSnapshot. + * (sandboxEnvironmentSnapshots.delete) + * + * @param string $name Required. The resource name of the + * SandboxEnvironmentSnapshot to delete. Format: `projects/{project}/locations/{ + * location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentSnapshots/{sa + * ndbox_environment_snapshot}` + * @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); + } + /** + * Gets details of the specific SandboxEnvironmentSnapshot. + * (sandboxEnvironmentSnapshots.get) + * + * @param string $name Required. The resource name of the sandbox environment + * snapshot. Format: `projects/{project}/locations/{location}/reasoningEngines/{ + * reasoning_engine}/sandboxEnvironmentSnapshots/{sandbox_environment_snapshot}` + * @param array $optParams Optional parameters. + * @return GoogleCloudAiplatformV1SandboxEnvironmentSnapshot + * @throws \Google\Service\Exception + */ + public function get($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], GoogleCloudAiplatformV1SandboxEnvironmentSnapshot::class); + } + /** + * Lists SandboxEnvironmentSnapshots in a given reasoning engine. + * (sandboxEnvironmentSnapshots.listReasoningEnginesSandboxEnvironmentSnapshots) + * + * @param string $parent Required. The resource name of the reasoning engine to + * list sandbox environments from. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. The standard list filter. More detail in + * [AIP-160](https://google.aip.dev/160). + * @opt_param int pageSize Optional. The maximum number of + * SandboxEnvironmentSnapshots to return. The service may return fewer than this + * value. If unspecified, at most 100 SandboxEnvironmentSnapshots will be + * returned. Values above 100 will be coerced to 100. + * @opt_param string pageToken Optional. The standard list page token, received + * from a previous `ListSandboxEnvironmentSnapshots` call. Provide this to + * retrieve the subsequent page. + * @return GoogleCloudAiplatformV1ListSandboxEnvironmentSnapshotsResponse + * @throws \Google\Service\Exception + */ + public function listReasoningEnginesSandboxEnvironmentSnapshots($parent, $optParams = []) + { + $params = ['parent' => $parent]; + $params = array_merge($params, $optParams); + return $this->call('list', [$params], GoogleCloudAiplatformV1ListSandboxEnvironmentSnapshotsResponse::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ReasoningEnginesSandboxEnvironmentSnapshots::class, 'Google_Service_Aiplatform_Resource_ReasoningEnginesSandboxEnvironmentSnapshots'); diff --git a/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironmentSnapshotsOperations.php b/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironmentSnapshotsOperations.php new file mode 100644 index 0000000000..143f206658 --- /dev/null +++ b/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironmentSnapshotsOperations.php @@ -0,0 +1,118 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $operations = $aiplatformService->reasoningEngines_sandboxEnvironmentSnapshots_operations; + * + */ +class ReasoningEnginesSandboxEnvironmentSnapshotsOperations 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); + } + /** + * 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(ReasoningEnginesSandboxEnvironmentSnapshotsOperations::class, 'Google_Service_Aiplatform_Resource_ReasoningEnginesSandboxEnvironmentSnapshotsOperations'); diff --git a/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironmentTemplates.php b/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironmentTemplates.php new file mode 100644 index 0000000000..72829fb3db --- /dev/null +++ b/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironmentTemplates.php @@ -0,0 +1,117 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $sandboxEnvironmentTemplates = $aiplatformService->reasoningEngines_sandboxEnvironmentTemplates; + * + */ +class ReasoningEnginesSandboxEnvironmentTemplates extends \Google\Service\Resource +{ + /** + * Creates a SandboxEnvironmentTemplate in a given reasoning engine. + * (sandboxEnvironmentTemplates.create) + * + * @param string $parent Required. The resource name of the reasoning engine to + * create the SandboxEnvironmentTemplate in. Format: `projects/{project}/locatio + * ns/{location}/reasoningEngines/{reasoning_engine}`. + * @param GoogleCloudAiplatformV1SandboxEnvironmentTemplate $postBody + * @param array $optParams Optional parameters. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function create($parent, GoogleCloudAiplatformV1SandboxEnvironmentTemplate $postBody, $optParams = []) + { + $params = ['parent' => $parent, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('create', [$params], GoogleLongrunningOperation::class); + } + /** + * Deletes the specific SandboxEnvironmentTemplate. + * (sandboxEnvironmentTemplates.delete) + * + * @param string $name Required. The resource name of the + * SandboxEnvironmentTemplate to delete. Format: `projects/{project}/locations/{ + * location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sa + * ndbox_environment_template}` + * @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); + } + /** + * Gets details of the specific SandboxEnvironmentTemplate. + * (sandboxEnvironmentTemplates.get) + * + * @param string $name Required. The resource name of the sandbox environment + * template. Format: `projects/{project}/locations/{location}/reasoningEngines/{ + * reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_environment_template}` + * @param array $optParams Optional parameters. + * @return GoogleCloudAiplatformV1SandboxEnvironmentTemplate + * @throws \Google\Service\Exception + */ + public function get($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], GoogleCloudAiplatformV1SandboxEnvironmentTemplate::class); + } + /** + * Lists SandboxEnvironmentTemplates in a given reasoning engine. + * (sandboxEnvironmentTemplates.listReasoningEnginesSandboxEnvironmentTemplates) + * + * @param string $parent Required. The resource name of the reasoning engine to + * list sandbox environment templates from. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @param array $optParams Optional parameters. + * + * @opt_param string filter Optional. The standard list filter. More detail in + * [AIP-160](https://google.aip.dev/160). + * @opt_param int pageSize Optional. The maximum number of + * SandboxEnvironmentTemplates to return. The service may return fewer than this + * value. If unspecified, at most 100 SandboxEnvironmentTemplates will be + * returned. + * @opt_param string pageToken Optional. The standard list page token, received + * from a previous `ListSandboxEnvironmentTemplates` call. Provide this to + * retrieve the subsequent page. + * @return GoogleCloudAiplatformV1ListSandboxEnvironmentTemplatesResponse + * @throws \Google\Service\Exception + */ + public function listReasoningEnginesSandboxEnvironmentTemplates($parent, $optParams = []) + { + $params = ['parent' => $parent]; + $params = array_merge($params, $optParams); + return $this->call('list', [$params], GoogleCloudAiplatformV1ListSandboxEnvironmentTemplatesResponse::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ReasoningEnginesSandboxEnvironmentTemplates::class, 'Google_Service_Aiplatform_Resource_ReasoningEnginesSandboxEnvironmentTemplates'); diff --git a/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironmentTemplatesOperations.php b/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironmentTemplatesOperations.php new file mode 100644 index 0000000000..2452584d55 --- /dev/null +++ b/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironmentTemplatesOperations.php @@ -0,0 +1,118 @@ + + * $aiplatformService = new Google\Service\Aiplatform(...); + * $operations = $aiplatformService->reasoningEngines_sandboxEnvironmentTemplates_operations; + * + */ +class ReasoningEnginesSandboxEnvironmentTemplatesOperations 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); + } + /** + * 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(ReasoningEnginesSandboxEnvironmentTemplatesOperations::class, 'Google_Service_Aiplatform_Resource_ReasoningEnginesSandboxEnvironmentTemplatesOperations'); diff --git a/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironments.php b/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironments.php index ae3bb14f4d..de666312ac 100644 --- a/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironments.php +++ b/src/Aiplatform/Resource/ReasoningEnginesSandboxEnvironments.php @@ -21,6 +21,7 @@ use Google\Service\Aiplatform\GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse; use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse; use Google\Service\Aiplatform\GoogleCloudAiplatformV1SandboxEnvironment; +use Google\Service\Aiplatform\GoogleCloudAiplatformV1SandboxEnvironmentSnapshot; use Google\Service\Aiplatform\GoogleLongrunningOperation; /** @@ -126,6 +127,24 @@ public function listReasoningEnginesSandboxEnvironments($parent, $optParams = [] $params = array_merge($params, $optParams); return $this->call('list', [$params], GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse::class); } + /** + * Snapshots the specific SandboxEnvironment resource and creates a + * SandboxEnvironmentSnapshot resource. (sandboxEnvironments.snapshot) + * + * @param string $name Required. The resource name of the sandbox environment to + * snapshot. Format: `projects/{project}/locations/{location}/reasoningEngines/{ + * reasoning_engine}/sandboxEnvironments/{sandbox_environment}`. + * @param GoogleCloudAiplatformV1SandboxEnvironmentSnapshot $postBody + * @param array $optParams Optional parameters. + * @return GoogleLongrunningOperation + * @throws \Google\Service\Exception + */ + public function snapshot($name, GoogleCloudAiplatformV1SandboxEnvironmentSnapshot $postBody, $optParams = []) + { + $params = ['name' => $name, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('snapshot', [$params], GoogleLongrunningOperation::class); + } } // Adding a class alias for backwards compatibility with the previous class name.