From bfcb8c9f1a7a3852117d467dc8de1f3cd4ee8d9a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 21 Dec 2025 10:02:46 +0000 Subject: [PATCH] feat: Automated regeneration of aiplatform v1 client --- api_names_out.yaml | 119 ++ .../google-apis-aiplatform_v1/CHANGELOG.md | 4 + .../lib/google/apis/aiplatform_v1/classes.rb | 744 ++++++++-- .../google/apis/aiplatform_v1/gem_version.rb | 4 +- .../apis/aiplatform_v1/representations.rb | 237 ++++ .../lib/google/apis/aiplatform_v1/service.rb | 1253 +++++++++++++---- 6 files changed, 1986 insertions(+), 375 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index a0423db1883..4edf427f88f 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -7189,6 +7189,10 @@ "/aiplatform:v1/GoogleCloudAiplatformV1Checkpoint/checkpointId": checkpoint_id "/aiplatform:v1/GoogleCloudAiplatformV1Checkpoint/epoch": epoch "/aiplatform:v1/GoogleCloudAiplatformV1Checkpoint/step": step +"/aiplatform:v1/GoogleCloudAiplatformV1Chunk": google_cloud_aiplatform_v1_chunk +"/aiplatform:v1/GoogleCloudAiplatformV1Chunk/data": data +"/aiplatform:v1/GoogleCloudAiplatformV1Chunk/metadata": metadata +"/aiplatform:v1/GoogleCloudAiplatformV1Chunk/mimeType": mime_type "/aiplatform:v1/GoogleCloudAiplatformV1Citation": google_cloud_aiplatform_v1_citation "/aiplatform:v1/GoogleCloudAiplatformV1Citation/endIndex": end_index "/aiplatform:v1/GoogleCloudAiplatformV1Citation/license": license @@ -8117,6 +8121,18 @@ "/aiplatform:v1/GoogleCloudAiplatformV1ExecutableCode": google_cloud_aiplatform_v1_executable_code "/aiplatform:v1/GoogleCloudAiplatformV1ExecutableCode/code": code "/aiplatform:v1/GoogleCloudAiplatformV1ExecutableCode/language": language +"/aiplatform:v1/GoogleCloudAiplatformV1ExecuteCodeRequest": google_cloud_aiplatform_v1_execute_code_request +"/aiplatform:v1/GoogleCloudAiplatformV1ExecuteCodeRequest/inputs": inputs +"/aiplatform:v1/GoogleCloudAiplatformV1ExecuteCodeRequest/inputs/input": input +"/aiplatform:v1/GoogleCloudAiplatformV1ExecuteCodeResponse": google_cloud_aiplatform_v1_execute_code_response +"/aiplatform:v1/GoogleCloudAiplatformV1ExecuteCodeResponse/outputs": outputs +"/aiplatform:v1/GoogleCloudAiplatformV1ExecuteCodeResponse/outputs/output": output +"/aiplatform:v1/GoogleCloudAiplatformV1ExecuteSandboxEnvironmentRequest": google_cloud_aiplatform_v1_execute_sandbox_environment_request +"/aiplatform:v1/GoogleCloudAiplatformV1ExecuteSandboxEnvironmentRequest/inputs": inputs +"/aiplatform:v1/GoogleCloudAiplatformV1ExecuteSandboxEnvironmentRequest/inputs/input": input +"/aiplatform:v1/GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse": google_cloud_aiplatform_v1_execute_sandbox_environment_response +"/aiplatform:v1/GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse/outputs": outputs +"/aiplatform:v1/GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse/outputs/output": output "/aiplatform:v1/GoogleCloudAiplatformV1Execution": google_cloud_aiplatform_v1_execution "/aiplatform:v1/GoogleCloudAiplatformV1Execution/createTime": create_time "/aiplatform:v1/GoogleCloudAiplatformV1Execution/description": description @@ -8720,6 +8736,9 @@ "/aiplatform:v1/GoogleCloudAiplatformV1GenerateMemoriesRequest/directMemoriesSource": direct_memories_source "/aiplatform:v1/GoogleCloudAiplatformV1GenerateMemoriesRequest/disableConsolidation": disable_consolidation "/aiplatform:v1/GoogleCloudAiplatformV1GenerateMemoriesRequest/disableMemoryRevisions": disable_memory_revisions +"/aiplatform:v1/GoogleCloudAiplatformV1GenerateMemoriesRequest/metadata": metadata +"/aiplatform:v1/GoogleCloudAiplatformV1GenerateMemoriesRequest/metadata/metadatum": metadatum +"/aiplatform:v1/GoogleCloudAiplatformV1GenerateMemoriesRequest/metadataMergeStrategy": metadata_merge_strategy "/aiplatform:v1/GoogleCloudAiplatformV1GenerateMemoriesRequest/revisionExpireTime": revision_expire_time "/aiplatform:v1/GoogleCloudAiplatformV1GenerateMemoriesRequest/revisionLabels": revision_labels "/aiplatform:v1/GoogleCloudAiplatformV1GenerateMemoriesRequest/revisionLabels/revision_label": revision_label @@ -9312,6 +9331,10 @@ "/aiplatform:v1/GoogleCloudAiplatformV1ListReasoningEnginesResponse/nextPageToken": next_page_token "/aiplatform:v1/GoogleCloudAiplatformV1ListReasoningEnginesResponse/reasoningEngines": reasoning_engines "/aiplatform:v1/GoogleCloudAiplatformV1ListReasoningEnginesResponse/reasoningEngines/reasoning_engine": reasoning_engine +"/aiplatform:v1/GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse": google_cloud_aiplatform_v1_list_sandbox_environments_response +"/aiplatform:v1/GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse/nextPageToken": next_page_token +"/aiplatform:v1/GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse/sandboxEnvironments": sandbox_environments +"/aiplatform:v1/GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse/sandboxEnvironments/sandbox_environment": sandbox_environment "/aiplatform:v1/GoogleCloudAiplatformV1ListSavedQueriesResponse": google_cloud_aiplatform_v1_list_saved_queries_response "/aiplatform:v1/GoogleCloudAiplatformV1ListSavedQueriesResponse/nextPageToken": next_page_token "/aiplatform:v1/GoogleCloudAiplatformV1ListSavedQueriesResponse/savedQueries": saved_queries @@ -9404,6 +9427,8 @@ "/aiplatform:v1/GoogleCloudAiplatformV1Memory/displayName": display_name "/aiplatform:v1/GoogleCloudAiplatformV1Memory/expireTime": expire_time "/aiplatform:v1/GoogleCloudAiplatformV1Memory/fact": fact +"/aiplatform:v1/GoogleCloudAiplatformV1Memory/metadata": metadata +"/aiplatform:v1/GoogleCloudAiplatformV1Memory/metadata/metadatum": metadatum "/aiplatform:v1/GoogleCloudAiplatformV1Memory/name": name "/aiplatform:v1/GoogleCloudAiplatformV1Memory/revisionExpireTime": revision_expire_time "/aiplatform:v1/GoogleCloudAiplatformV1Memory/revisionLabels": revision_labels @@ -9444,6 +9469,19 @@ "/aiplatform:v1/GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicCustomMemoryTopic/label": label "/aiplatform:v1/GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicManagedMemoryTopic": google_cloud_aiplatform_v1_memory_bank_customization_config_memory_topic_managed_memory_topic "/aiplatform:v1/GoogleCloudAiplatformV1MemoryBankCustomizationConfigMemoryTopicManagedMemoryTopic/managedTopicEnum": managed_topic_enum +"/aiplatform:v1/GoogleCloudAiplatformV1MemoryConjunctionFilter": google_cloud_aiplatform_v1_memory_conjunction_filter +"/aiplatform:v1/GoogleCloudAiplatformV1MemoryConjunctionFilter/filters": filters +"/aiplatform:v1/GoogleCloudAiplatformV1MemoryConjunctionFilter/filters/filter": filter +"/aiplatform:v1/GoogleCloudAiplatformV1MemoryFilter": google_cloud_aiplatform_v1_memory_filter +"/aiplatform:v1/GoogleCloudAiplatformV1MemoryFilter/key": key +"/aiplatform:v1/GoogleCloudAiplatformV1MemoryFilter/negate": negate +"/aiplatform:v1/GoogleCloudAiplatformV1MemoryFilter/op": op +"/aiplatform:v1/GoogleCloudAiplatformV1MemoryFilter/value": value +"/aiplatform:v1/GoogleCloudAiplatformV1MemoryMetadataValue": google_cloud_aiplatform_v1_memory_metadata_value +"/aiplatform:v1/GoogleCloudAiplatformV1MemoryMetadataValue/boolValue": bool_value +"/aiplatform:v1/GoogleCloudAiplatformV1MemoryMetadataValue/doubleValue": double_value +"/aiplatform:v1/GoogleCloudAiplatformV1MemoryMetadataValue/stringValue": string_value +"/aiplatform:v1/GoogleCloudAiplatformV1MemoryMetadataValue/timestampValue": timestamp_value "/aiplatform:v1/GoogleCloudAiplatformV1MemoryRevision": google_cloud_aiplatform_v1_memory_revision "/aiplatform:v1/GoogleCloudAiplatformV1MemoryRevision/createTime": create_time "/aiplatform:v1/GoogleCloudAiplatformV1MemoryRevision/expireTime": expire_time @@ -9459,6 +9497,9 @@ "/aiplatform:v1/GoogleCloudAiplatformV1MergeVersionAliasesRequest": google_cloud_aiplatform_v1_merge_version_aliases_request "/aiplatform:v1/GoogleCloudAiplatformV1MergeVersionAliasesRequest/versionAliases": version_aliases "/aiplatform:v1/GoogleCloudAiplatformV1MergeVersionAliasesRequest/versionAliases/version_alias": version_alias +"/aiplatform:v1/GoogleCloudAiplatformV1Metadata": google_cloud_aiplatform_v1_metadata +"/aiplatform:v1/GoogleCloudAiplatformV1Metadata/attributes": attributes +"/aiplatform:v1/GoogleCloudAiplatformV1Metadata/attributes/attribute": attribute "/aiplatform:v1/GoogleCloudAiplatformV1MetadataSchema": google_cloud_aiplatform_v1_metadata_schema "/aiplatform:v1/GoogleCloudAiplatformV1MetadataSchema/createTime": create_time "/aiplatform:v1/GoogleCloudAiplatformV1MetadataSchema/description": description @@ -10886,6 +10927,8 @@ "/aiplatform:v1/GoogleCloudAiplatformV1RetrieveContextsResponse/contexts": contexts "/aiplatform:v1/GoogleCloudAiplatformV1RetrieveMemoriesRequest": google_cloud_aiplatform_v1_retrieve_memories_request "/aiplatform:v1/GoogleCloudAiplatformV1RetrieveMemoriesRequest/filter": filter +"/aiplatform:v1/GoogleCloudAiplatformV1RetrieveMemoriesRequest/filterGroups": filter_groups +"/aiplatform:v1/GoogleCloudAiplatformV1RetrieveMemoriesRequest/filterGroups/filter_group": filter_group "/aiplatform:v1/GoogleCloudAiplatformV1RetrieveMemoriesRequest/scope": scope "/aiplatform:v1/GoogleCloudAiplatformV1RetrieveMemoriesRequest/scope/scope": scope "/aiplatform:v1/GoogleCloudAiplatformV1RetrieveMemoriesRequest/similaritySearchParams": similarity_search_params @@ -10991,6 +11034,25 @@ "/aiplatform:v1/GoogleCloudAiplatformV1SamplingStrategy/randomSampleConfig": random_sample_config "/aiplatform:v1/GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig": google_cloud_aiplatform_v1_sampling_strategy_random_sample_config "/aiplatform:v1/GoogleCloudAiplatformV1SamplingStrategyRandomSampleConfig/sampleRate": sample_rate +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironment": google_cloud_aiplatform_v1_sandbox_environment +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironment/connectionInfo": connection_info +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironment/createTime": create_time +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironment/displayName": display_name +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironment/expireTime": expire_time +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironment/name": name +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironment/spec": spec +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironment/state": state +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironment/ttl": ttl +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironment/updateTime": update_time +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo": google_cloud_aiplatform_v1_sandbox_environment_connection_info +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo/loadBalancerHostname": load_balancer_hostname +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo/loadBalancerIp": load_balancer_ip +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo/sandboxInternalIp": sandbox_internal_ip +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironmentSpec": google_cloud_aiplatform_v1_sandbox_environment_spec +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironmentSpec/codeExecutionEnvironment": code_execution_environment +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironmentSpecCodeExecutionEnvironment": google_cloud_aiplatform_v1_sandbox_environment_spec_code_execution_environment +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironmentSpecCodeExecutionEnvironment/codeLanguage": code_language +"/aiplatform:v1/GoogleCloudAiplatformV1SandboxEnvironmentSpecCodeExecutionEnvironment/machineConfig": machine_config "/aiplatform:v1/GoogleCloudAiplatformV1SavedQuery": google_cloud_aiplatform_v1_saved_query "/aiplatform:v1/GoogleCloudAiplatformV1SavedQuery/annotationFilter": annotation_filter "/aiplatform:v1/GoogleCloudAiplatformV1SavedQuery/annotationSpecCount": annotation_spec_count @@ -11472,6 +11534,7 @@ "/aiplatform:v1/GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue/partList": part_list "/aiplatform:v1/GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData": google_cloud_aiplatform_v1_schema_prompt_spec_app_builder_data "/aiplatform:v1/GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData/codeRepositoryState": code_repository_state +"/aiplatform:v1/GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData/framework": framework "/aiplatform:v1/GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData/linkedResources": linked_resources "/aiplatform:v1/GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData/linkedResources/linked_resource": linked_resource "/aiplatform:v1/GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderDataLinkedResource": google_cloud_aiplatform_v1_schema_prompt_spec_app_builder_data_linked_resource @@ -12477,6 +12540,7 @@ "/aiplatform:v1/GoogleCloudAiplatformV1Tool/googleMaps": google_maps "/aiplatform:v1/GoogleCloudAiplatformV1Tool/googleSearch": google_search "/aiplatform:v1/GoogleCloudAiplatformV1Tool/googleSearchRetrieval": google_search_retrieval +"/aiplatform:v1/GoogleCloudAiplatformV1Tool/parallelAiSearch": parallel_ai_search "/aiplatform:v1/GoogleCloudAiplatformV1Tool/retrieval": retrieval "/aiplatform:v1/GoogleCloudAiplatformV1Tool/urlContext": url_context "/aiplatform:v1/GoogleCloudAiplatformV1ToolCall": google_cloud_aiplatform_v1_tool_call @@ -12520,6 +12584,10 @@ "/aiplatform:v1/GoogleCloudAiplatformV1ToolNameMatchResults/toolNameMatchMetricValues": tool_name_match_metric_values "/aiplatform:v1/GoogleCloudAiplatformV1ToolNameMatchResults/toolNameMatchMetricValues/tool_name_match_metric_value": tool_name_match_metric_value "/aiplatform:v1/GoogleCloudAiplatformV1ToolNameMatchSpec": google_cloud_aiplatform_v1_tool_name_match_spec +"/aiplatform:v1/GoogleCloudAiplatformV1ToolParallelAiSearch": google_cloud_aiplatform_v1_tool_parallel_ai_search +"/aiplatform:v1/GoogleCloudAiplatformV1ToolParallelAiSearch/apiKey": api_key +"/aiplatform:v1/GoogleCloudAiplatformV1ToolParallelAiSearch/customConfigs": custom_configs +"/aiplatform:v1/GoogleCloudAiplatformV1ToolParallelAiSearch/customConfigs/custom_config": custom_config "/aiplatform:v1/GoogleCloudAiplatformV1ToolParameterKVMatchInput": google_cloud_aiplatform_v1_tool_parameter_kv_match_input "/aiplatform:v1/GoogleCloudAiplatformV1ToolParameterKVMatchInput/instances": instances "/aiplatform:v1/GoogleCloudAiplatformV1ToolParameterKVMatchInput/instances/instance": instance @@ -13859,6 +13927,9 @@ "/aiplatform:v1/aiplatform.projects.locations.endpoints.list/readMask": read_mask "/aiplatform:v1/aiplatform.projects.locations.endpoints.mutateDeployedModel": mutate_project_location_endpoint_deployed_model "/aiplatform:v1/aiplatform.projects.locations.endpoints.mutateDeployedModel/endpoint": endpoint +"/aiplatform:v1/aiplatform.projects.locations.endpoints.openapi.completions": completions_project_location_endpoint_openapi +"/aiplatform:v1/aiplatform.projects.locations.endpoints.openapi.completions/deployedModelId": deployed_model_id +"/aiplatform:v1/aiplatform.projects.locations.endpoints.openapi.completions/endpoint": endpoint "/aiplatform:v1/aiplatform.projects.locations.endpoints.openapi.embeddings": embeddings_project_location_endpoint_openapi "/aiplatform:v1/aiplatform.projects.locations.endpoints.openapi.embeddings/deployedModelId": deployed_model_id "/aiplatform:v1/aiplatform.projects.locations.endpoints.openapi.embeddings/endpoint": endpoint @@ -14971,6 +15042,8 @@ "/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.delete": delete_project_location_reasoning_engine "/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.delete/force": force "/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.delete/name": name +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.executeCode": execute_project_location_reasoning_engine_code +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.executeCode/name": name "/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.get": get_project_location_reasoning_engine "/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.get/name": name "/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.list": list_project_location_reasoning_engines @@ -15043,6 +15116,28 @@ "/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.patch/updateMask": update_mask "/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.query": query_project_location_reasoning_engine "/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.query/name": name +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.create": create_project_location_reasoning_engine_sandbox_environment +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.create/parent": parent +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.delete": delete_project_location_reasoning_engine_sandbox_environment +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.delete/name": name +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.execute": execute_project_location_reasoning_engine_sandbox_environment +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.execute/name": name +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.get": get_project_location_reasoning_engine_sandbox_environment +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.get/name": name +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.list": list_project_location_reasoning_engine_sandbox_environments +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.list/filter": filter +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.list/pageSize": page_size +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.list/pageToken": page_token +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.list/parent": parent +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.operations.cancel": cancel_project_location_reasoning_engine_sandbox_environment_operation +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.operations.cancel/name": name +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.operations.delete": delete_project_location_reasoning_engine_sandbox_environment_operation +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.operations.delete/name": name +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.operations.get": get_project_location_reasoning_engine_sandbox_environment_operation +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.operations.get/name": name +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.operations.wait": wait_project_location_reasoning_engine_sandbox_environment_operation +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.operations.wait/name": name +"/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sandboxEnvironments.operations.wait/timeout": timeout "/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sessions.appendEvent": append_project_location_reasoning_engine_session_event "/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sessions.appendEvent/name": name "/aiplatform:v1/aiplatform.projects.locations.reasoningEngines.sessions.create": create_project_location_reasoning_engine_session @@ -15501,6 +15596,8 @@ "/aiplatform:v1/aiplatform.reasoningEngines.delete": delete_reasoning_engine "/aiplatform:v1/aiplatform.reasoningEngines.delete/force": force "/aiplatform:v1/aiplatform.reasoningEngines.delete/name": name +"/aiplatform:v1/aiplatform.reasoningEngines.executeCode": execute_reasoning_engine_code +"/aiplatform:v1/aiplatform.reasoningEngines.executeCode/name": name "/aiplatform:v1/aiplatform.reasoningEngines.get": get_reasoning_engine "/aiplatform:v1/aiplatform.reasoningEngines.get/name": name "/aiplatform:v1/aiplatform.reasoningEngines.list": list_reasoning_engines @@ -15543,6 +15640,28 @@ "/aiplatform:v1/aiplatform.reasoningEngines.patch/updateMask": update_mask "/aiplatform:v1/aiplatform.reasoningEngines.query": query_reasoning_engine "/aiplatform:v1/aiplatform.reasoningEngines.query/name": name +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.create": create_reasoning_engine_sandbox_environment +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.create/parent": parent +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.delete": delete_reasoning_engine_sandbox_environment +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.delete/name": name +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.execute": execute_reasoning_engine_sandbox_environment +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.execute/name": name +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.get": get_reasoning_engine_sandbox_environment +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.get/name": name +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.list": list_reasoning_engine_sandbox_environments +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.list/filter": filter +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.list/pageSize": page_size +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.list/pageToken": page_token +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.list/parent": parent +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.operations.cancel": cancel_reasoning_engine_sandbox_environment_operation +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.operations.cancel/name": name +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.operations.delete": delete_reasoning_engine_sandbox_environment_operation +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.operations.delete/name": name +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.operations.get": get_reasoning_engine_sandbox_environment_operation +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.operations.get/name": name +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.operations.wait": wait_reasoning_engine_sandbox_environment_operation +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.operations.wait/name": name +"/aiplatform:v1/aiplatform.reasoningEngines.sandboxEnvironments.operations.wait/timeout": timeout "/aiplatform:v1/aiplatform.reasoningEngines.sessions.operations.cancel": cancel_reasoning_engine_session_operation "/aiplatform:v1/aiplatform.reasoningEngines.sessions.operations.cancel/name": name "/aiplatform:v1/aiplatform.reasoningEngines.sessions.operations.delete": delete_reasoning_engine_session_operation diff --git a/generated/google-apis-aiplatform_v1/CHANGELOG.md b/generated/google-apis-aiplatform_v1/CHANGELOG.md index 09010adcf91..9b9796cacf2 100644 --- a/generated/google-apis-aiplatform_v1/CHANGELOG.md +++ b/generated/google-apis-aiplatform_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-aiplatform_v1 +### v0.76.0 (2025-12-21) + +* Regenerated from discovery document revision 20251215 + ### v0.75.0 (2025-12-14) * Regenerated from discovery document revision 20251210 diff --git a/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/classes.rb b/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/classes.rb index 073a7e9ed31..0a886373fbf 100644 --- a/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/classes.rb +++ b/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/classes.rb @@ -2065,8 +2065,8 @@ class GoogleCloudAiplatformV1BatchPredictionJob # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -2966,8 +2966,8 @@ class GoogleCloudAiplatformV1CachedContent # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -3476,6 +3476,40 @@ def update!(**args) end end + # Container for bytes-encoded data such as video frame, audio sample, or a + # complete binary/text data. + class GoogleCloudAiplatformV1Chunk + include Google::Apis::Core::Hashable + + # Required. The data in the chunk. + # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :data + + # Metadata for a chunk. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Metadata] + attr_accessor :metadata + + # Required. Mime type of the chunk data. See https://www.iana.org/assignments/ + # media-types/media-types.xhtml for the full list. + # Corresponds to the JSON property `mimeType` + # @return [String] + attr_accessor :mime_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data = args[:data] if args.key?(:data) + @metadata = args[:metadata] if args.key?(:metadata) + @mime_type = args[:mime_type] if args.key?(:mime_type) + end + end + # A citation for a piece of generatedcontent. class GoogleCloudAiplatformV1Citation include Google::Apis::Core::Hashable @@ -4247,8 +4281,8 @@ def update!(**args) class GoogleCloudAiplatformV1CopyModelRequest include Google::Apis::Core::Hashable - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -5188,8 +5222,8 @@ class GoogleCloudAiplatformV1CustomJob # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -5636,8 +5670,8 @@ class GoogleCloudAiplatformV1DataLabelingJob # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -5768,8 +5802,8 @@ class GoogleCloudAiplatformV1Dataset # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -7300,8 +7334,8 @@ class GoogleCloudAiplatformV1DeploymentResourcePool attr_accessor :disable_container_logging alias_method :disable_container_logging?, :disable_container_logging - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -7699,15 +7733,15 @@ def update!(**args) end end - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. class GoogleCloudAiplatformV1EncryptionSpec include Google::Apis::Core::Hashable - # Required. The Cloud KMS resource identifier of the customer managed encryption - # key used to protect a resource. Has the form: `projects/my-project/locations/ - # my-region/keyRings/my-kr/cryptoKeys/my-key`. The key needs to be in the same - # region as where the compute resource is created. + # Required. Resource name of the Cloud KMS key used to protect the resource. The + # Cloud KMS key must be in the same region as the resource. It must have the + # format `projects/`project`/locations/`location`/keyRings/`key_ring`/cryptoKeys/ + # `crypto_key``. # Corresponds to the JSON property `kmsKeyName` # @return [String] attr_accessor :kms_key_name @@ -7782,8 +7816,8 @@ class GoogleCloudAiplatformV1Endpoint attr_accessor :enable_private_service_connect alias_method :enable_private_service_connect?, :enable_private_service_connect - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -10333,6 +10367,82 @@ def update!(**args) end end + # Request message for SandboxEnvironmentExecutionService.ExecuteCode. + class GoogleCloudAiplatformV1ExecuteCodeRequest + include Google::Apis::Core::Hashable + + # Required. The inputs used for the stateless code execution. + # Corresponds to the JSON property `inputs` + # @return [Array] + attr_accessor :inputs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @inputs = args[:inputs] if args.key?(:inputs) + end + end + + # Response message for SandboxEnvironmentExecutionService.ExecuteCode. + class GoogleCloudAiplatformV1ExecuteCodeResponse + include Google::Apis::Core::Hashable + + # The outputs from the sandbox environment. + # Corresponds to the JSON property `outputs` + # @return [Array] + attr_accessor :outputs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @outputs = args[:outputs] if args.key?(:outputs) + end + end + + # Request message for SandboxEnvironmentExecutionService.Execute. + class GoogleCloudAiplatformV1ExecuteSandboxEnvironmentRequest + include Google::Apis::Core::Hashable + + # Required. The inputs to the sandbox environment. + # Corresponds to the JSON property `inputs` + # @return [Array] + attr_accessor :inputs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @inputs = args[:inputs] if args.key?(:inputs) + end + end + + # Response message for SandboxEnvironmentExecutionService.Execute. + class GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse + include Google::Apis::Core::Hashable + + # The outputs from the sandbox environment. + # Corresponds to the JSON property `outputs` + # @return [Array] + attr_accessor :outputs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @outputs = args[:outputs] if args.key?(:outputs) + end + end + # Instance of a general execution. class GoogleCloudAiplatformV1Execution include Google::Apis::Core::Hashable @@ -12157,8 +12267,8 @@ class GoogleCloudAiplatformV1FeatureOnlineStore # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint] attr_accessor :dedicated_serving_endpoint - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -13340,8 +13450,8 @@ class GoogleCloudAiplatformV1Featurestore # @return [String] attr_accessor :create_time - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -14394,9 +14504,8 @@ class GoogleCloudAiplatformV1FunctionDeclaration # @return [String] attr_accessor :name - # Schema is used to define the format of input/output data. Represents a select - # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3# - # schema-object). More fields may be added in the future as needed. + # Defines the schema of input and output data. This is a subset of the [OpenAPI + # 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Corresponds to the JSON property `parameters` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schema] attr_accessor :parameters @@ -14411,9 +14520,8 @@ class GoogleCloudAiplatformV1FunctionDeclaration # @return [Object] attr_accessor :parameters_json_schema - # Schema is used to define the format of input/output data. Represents a select - # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3# - # schema-object). More fields may be added in the future as needed. + # Defines the schema of input and output data. This is a subset of the [OpenAPI + # 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Corresponds to the JSON property `response` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schema] attr_accessor :response @@ -15135,6 +15243,17 @@ class GoogleCloudAiplatformV1GenerateMemoriesRequest attr_accessor :disable_memory_revisions alias_method :disable_memory_revisions?, :disable_memory_revisions + # Optional. User-provided metadata for the generated memories. This is not + # generated by Memory Bank. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # Optional. The strategy to use when applying metadata to existing memories. + # Corresponds to the JSON property `metadataMergeStrategy` + # @return [String] + attr_accessor :metadata_merge_strategy + # Optional. Timestamp of when the revision is considered expired. If not set, # the memory revision will be kept until manually deleted. # Corresponds to the JSON property `revisionExpireTime` @@ -15178,6 +15297,8 @@ def update!(**args) @direct_memories_source = args[:direct_memories_source] if args.key?(:direct_memories_source) @disable_consolidation = args[:disable_consolidation] if args.key?(:disable_consolidation) @disable_memory_revisions = args[:disable_memory_revisions] if args.key?(:disable_memory_revisions) + @metadata = args[:metadata] if args.key?(:metadata) + @metadata_merge_strategy = args[:metadata_merge_strategy] if args.key?(:metadata_merge_strategy) @revision_expire_time = args[:revision_expire_time] if args.key?(:revision_expire_time) @revision_labels = args[:revision_labels] if args.key?(:revision_labels) @revision_ttl = args[:revision_ttl] if args.key?(:revision_ttl) @@ -15545,9 +15666,8 @@ class GoogleCloudAiplatformV1GenerationConfig # @return [Array] attr_accessor :response_modalities - # Schema is used to define the format of input/output data. Represents a select - # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3# - # schema-object). More fields may be added in the future as needed. + # Defines the schema of input and output data. This is a subset of the [OpenAPI + # 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Corresponds to the JSON property `responseSchema` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schema] attr_accessor :response_schema @@ -16374,8 +16494,8 @@ class GoogleCloudAiplatformV1HyperparameterTuningJob # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -17072,8 +17192,8 @@ class GoogleCloudAiplatformV1Index # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -17398,8 +17518,8 @@ class GoogleCloudAiplatformV1IndexEndpoint attr_accessor :enable_private_service_connect alias_method :enable_private_service_connect?, :enable_private_service_connect - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -19254,6 +19374,33 @@ def update!(**args) end end + # Response message for SandboxEnvironmentService.ListSandboxEnvironments. + class GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as ListSandboxEnvironmentsRequest.page_token to + # retrieve the next page. Absence of this field indicates there are no + # subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The SandboxEnvironments matching the request. + # Corresponds to the JSON property `sandboxEnvironments` + # @return [Array] + attr_accessor :sandbox_environments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @sandbox_environments = args[:sandbox_environments] if args.key?(:sandbox_environments) + end + end + # Response message for DatasetService.ListSavedQueries. class GoogleCloudAiplatformV1ListSavedQueriesResponse include Google::Apis::Core::Hashable @@ -19916,6 +20063,13 @@ class GoogleCloudAiplatformV1Memory # @return [String] attr_accessor :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. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + # Identifier. The resource name of the Memory. Format: `projects/`project`/ # locations/`location`/reasoningEngines/`reasoning_engine`/memories/`memory`` # Corresponds to the JSON property `name` @@ -19975,6 +20129,7 @@ def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @expire_time = args[:expire_time] if args.key?(:expire_time) @fact = args[:fact] if args.key?(:fact) + @metadata = args[:metadata] if args.key?(:metadata) @name = args[:name] if args.key?(:name) @revision_expire_time = args[:revision_expire_time] if args.key?(:revision_expire_time) @revision_labels = args[:revision_labels] if args.key?(:revision_labels) @@ -20200,6 +20355,103 @@ def update!(**args) end end + # A conjunction of filters that will be combined using AND logic. + class GoogleCloudAiplatformV1MemoryConjunctionFilter + include Google::Apis::Core::Hashable + + # Filters that will combined using AND logic. + # Corresponds to the JSON property `filters` + # @return [Array] + attr_accessor :filters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filters = args[:filters] if args.key?(:filters) + end + end + + # Filter to apply when retrieving memories. + class GoogleCloudAiplatformV1MemoryFilter + include Google::Apis::Core::Hashable + + # Key of the filter. For example, "author" would apply to `metadata` entries + # with the key "author". + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # If true, the filter will be negated. + # Corresponds to the JSON property `negate` + # @return [Boolean] + attr_accessor :negate + alias_method :negate?, :negate + + # Operator to apply to the filter. If not set, then EQUAL will be used. + # Corresponds to the JSON property `op` + # @return [String] + attr_accessor :op + + # Memory metadata. + # Corresponds to the JSON property `value` + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryMetadataValue] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @negate = args[:negate] if args.key?(:negate) + @op = args[:op] if args.key?(:op) + @value = args[:value] if args.key?(:value) + end + end + + # Memory metadata. + class GoogleCloudAiplatformV1MemoryMetadataValue + include Google::Apis::Core::Hashable + + # Boolean value. + # Corresponds to the JSON property `boolValue` + # @return [Boolean] + attr_accessor :bool_value + alias_method :bool_value?, :bool_value + + # Double value. + # Corresponds to the JSON property `doubleValue` + # @return [Float] + attr_accessor :double_value + + # String value. + # Corresponds to the JSON property `stringValue` + # @return [String] + attr_accessor :string_value + + # Timestamp value. When filtering on timestamp values, only the seconds field + # will be compared. + # Corresponds to the JSON property `timestampValue` + # @return [String] + attr_accessor :timestamp_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bool_value = args[:bool_value] if args.key?(:bool_value) + @double_value = args[:double_value] if args.key?(:double_value) + @string_value = args[:string_value] if args.key?(:string_value) + @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value) + end + end + # A revision of a Memory. class GoogleCloudAiplatformV1MemoryRevision include Google::Apis::Core::Hashable @@ -20308,6 +20560,27 @@ def update!(**args) end end + # Metadata for a chunk. + class GoogleCloudAiplatformV1Metadata + include Google::Apis::Core::Hashable + + # Optional. Attributes attached to the data. The keys have semantic conventions + # and the consumers of the attributes should know how to deserialize the value + # bytes based on the keys. + # Corresponds to the JSON property `attributes` + # @return [Hash] + attr_accessor :attributes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attributes = args[:attributes] if args.key?(:attributes) + end + end + # Instance of a general MetadataSchema. class GoogleCloudAiplatformV1MetadataSchema include Google::Apis::Core::Hashable @@ -20383,8 +20656,8 @@ class GoogleCloudAiplatformV1MetadataStore # @return [String] attr_accessor :description - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -21182,8 +21455,8 @@ class GoogleCloudAiplatformV1Model # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -21856,8 +22129,8 @@ class GoogleCloudAiplatformV1ModelDeploymentMonitoringJob attr_accessor :enable_monitoring_pipeline_logs alias_method :enable_monitoring_pipeline_logs?, :enable_monitoring_pipeline_logs - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -23131,8 +23404,8 @@ class GoogleCloudAiplatformV1NasJob attr_accessor :enable_restricted_image_training alias_method :enable_restricted_image_training?, :enable_restricted_image_training - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -24052,8 +24325,8 @@ class GoogleCloudAiplatformV1NotebookExecutionJob # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -24383,8 +24656,8 @@ class GoogleCloudAiplatformV1NotebookRuntime # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -24597,8 +24870,8 @@ class GoogleCloudAiplatformV1NotebookRuntimeTemplate # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -25510,8 +25783,8 @@ class GoogleCloudAiplatformV1PersistentResource # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -25653,8 +25926,8 @@ class GoogleCloudAiplatformV1PipelineJob # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -28794,8 +29067,8 @@ class GoogleCloudAiplatformV1RagCorpus # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -30079,8 +30352,8 @@ class GoogleCloudAiplatformV1ReasoningEngine # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -30611,13 +30884,15 @@ class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecPythonSpec # Optional. The Python module to load as the entrypoint, specified as a fully # qualified module name. For example: path.to.agent. If not specified, defaults # to "agent". The project root will be added to Python sys.path, allowing - # imports to be specified relative to the root. + # imports to be specified relative to the root. This field should not be set if + # the source is `agent_config_source`. # Corresponds to the JSON property `entrypointModule` # @return [String] attr_accessor :entrypoint_module # Optional. The name of the callable object within the `entrypoint_module` to - # use as the application If not specified, defaults to "root_agent". + # use as the application If not specified, defaults to "root_agent". This field + # should not be set if the source is `agent_config_source`. # Corresponds to the JSON property `entrypointObject` # @return [String] attr_accessor :entrypoint_object @@ -31269,6 +31544,18 @@ class GoogleCloudAiplatformV1RetrieveMemoriesRequest # @return [String] attr_accessor :filter + # Optional. Metadata filters that will be applied to the retrieved memories' ` + # metadata` using OR logic. Filters are defined using disjunctive normal form ( + # OR of ANDs). For example: `filter_groups: [`filters: [`key: "author", value: ` + # string_value: "agent 123"`, op: EQUAL`]`, `filters: [`key: "label", value: ` + # string_value: "travel"`, op: EQUAL`, `key: "author", value: `string_value: " + # agent 321"`, op: EQUAL`]`]` would be equivalent to the logical expression: `( + # metadata.author = "agent 123" OR (metadata.label = "travel" AND metadata. + # author = "agent 321"))`. + # Corresponds to the JSON property `filterGroups` + # @return [Array] + attr_accessor :filter_groups + # 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 ( # same keys and values). Order does not matter, but it is case-sensitive. @@ -31293,6 +31580,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @filter = args[:filter] if args.key?(:filter) + @filter_groups = args[:filter_groups] if args.key?(:filter_groups) @scope = args[:scope] if args.key?(:scope) @similarity_search_params = args[:similarity_search_params] if args.key?(:similarity_search_params) @simple_retrieval_params = args[:simple_retrieval_params] if args.key?(:simple_retrieval_params) @@ -32139,6 +32427,153 @@ def update!(**args) end end + # SandboxEnvironment is a containerized environment that provides a customizable + # secure execution runtime for AI agents. + class GoogleCloudAiplatformV1SandboxEnvironment + include Google::Apis::Core::Hashable + + # The connection information of the SandboxEnvironment. + # Corresponds to the JSON property `connectionInfo` + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo] + attr_accessor :connection_info + + # Output only. The timestamp when this SandboxEnvironment was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Required. The display name of the SandboxEnvironment. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. Timestamp in UTC of when this SandboxEnvironment is considered + # expired. This is *always* provided on output, regardless of what `expiration` + # was sent on input. + # Corresponds to the JSON property `expireTime` + # @return [String] + attr_accessor :expire_time + + # Identifier. The name of the SandboxEnvironment. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The specification of a SandboxEnvironment. + # Corresponds to the JSON property `spec` + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironmentSpec] + attr_accessor :spec + + # Output only. The runtime state of the SandboxEnvironment. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Optional. Input only. The TTL for the sandbox environment. The expiration time + # is computed: now + TTL. + # Corresponds to the JSON property `ttl` + # @return [String] + attr_accessor :ttl + + # Output only. The timestamp when this SandboxEnvironment was most recently + # updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @connection_info = args[:connection_info] if args.key?(:connection_info) + @create_time = args[:create_time] if args.key?(:create_time) + @display_name = args[:display_name] if args.key?(:display_name) + @expire_time = args[:expire_time] if args.key?(:expire_time) + @name = args[:name] if args.key?(:name) + @spec = args[:spec] if args.key?(:spec) + @state = args[:state] if args.key?(:state) + @ttl = args[:ttl] if args.key?(:ttl) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The connection information of the SandboxEnvironment. + class GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo + include Google::Apis::Core::Hashable + + # Output only. The hostname of the load balancer. + # Corresponds to the JSON property `loadBalancerHostname` + # @return [String] + attr_accessor :load_balancer_hostname + + # Output only. The IP address of the load balancer. + # Corresponds to the JSON property `loadBalancerIp` + # @return [String] + attr_accessor :load_balancer_ip + + # Output only. The internal IP address of the SandboxEnvironment. + # Corresponds to the JSON property `sandboxInternalIp` + # @return [String] + attr_accessor :sandbox_internal_ip + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @load_balancer_hostname = args[:load_balancer_hostname] if args.key?(:load_balancer_hostname) + @load_balancer_ip = args[:load_balancer_ip] if args.key?(:load_balancer_ip) + @sandbox_internal_ip = args[:sandbox_internal_ip] if args.key?(:sandbox_internal_ip) + end + end + + # The specification of a SandboxEnvironment. + class GoogleCloudAiplatformV1SandboxEnvironmentSpec + include Google::Apis::Core::Hashable + + # The code execution environment with customized settings. + # Corresponds to the JSON property `codeExecutionEnvironment` + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironmentSpecCodeExecutionEnvironment] + attr_accessor :code_execution_environment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code_execution_environment = args[:code_execution_environment] if args.key?(:code_execution_environment) + end + end + + # The code execution environment with customized settings. + class GoogleCloudAiplatformV1SandboxEnvironmentSpecCodeExecutionEnvironment + include Google::Apis::Core::Hashable + + # The coding language supported in this environment. + # Corresponds to the JSON property `codeLanguage` + # @return [String] + attr_accessor :code_language + + # The machine config of the code execution environment. + # Corresponds to the JSON property `machineConfig` + # @return [String] + attr_accessor :machine_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code_language = args[:code_language] if args.key?(:code_language) + @machine_config = args[:machine_config] if args.key?(:machine_config) + end + end + # A SavedQuery is a view of the dataset. It references a subset of annotations # by problem type and filters. class GoogleCloudAiplatformV1SavedQuery @@ -32470,154 +32905,166 @@ def update!(**args) end end - # Schema is used to define the format of input/output data. Represents a select - # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3# - # schema-object). More fields may be added in the future as needed. + # Defines the schema of input and output data. This is a subset of the [OpenAPI + # 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). class GoogleCloudAiplatformV1Schema include Google::Apis::Core::Hashable - # Optional. Can either be a boolean or an object; controls the presence of - # additional properties. + # Optional. If `type` is `OBJECT`, specifies how to handle properties not + # defined in `properties`. If it is a boolean `false`, no additional properties + # are allowed. If it is a schema, additional properties are allowed if they + # conform to the schema. # Corresponds to the JSON property `additionalProperties` # @return [Object] attr_accessor :additional_properties - # Optional. The value should be validated against any (one or more) of the - # subschemas in the list. + # Optional. The instance must be valid against any (one or more) of the + # subschemas listed in `any_of`. # Corresponds to the JSON property `anyOf` # @return [Array] attr_accessor :any_of - # Optional. Default value of the data. + # Optional. Default value to use if the field is not specified. # Corresponds to the JSON property `default` # @return [Object] attr_accessor :default - # Optional. A map of definitions for use by `ref` Only allowed at the root of - # the schema. + # Optional. `defs` provides a map of schema definitions that can be reused by ` + # ref` elsewhere in the schema. Only allowed at root level of the schema. # Corresponds to the JSON property `defs` # @return [Hash] attr_accessor :defs - # Optional. The description of the data. + # Optional. Description of the schema. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Optional. Possible values of the element of primitive type with enum format. - # Examples: 1. We can define direction as : `type:STRING, format:enum, enum:[" - # EAST", NORTH", "SOUTH", "WEST"]` 2. We can define apartment number as : `type: - # INTEGER, format:enum, enum:["101", "201", "301"]` + # Optional. Possible values of the field. This field can be used to restrict a + # value to a fixed set of values. To mark a field as an enum, set `format` to ` + # enum` and provide the list of possible values in `enum`. For example: 1. To + # define directions: ``type:STRING, format:enum, enum:["EAST", "NORTH", "SOUTH", + # "WEST"]`` 2. To define apartment numbers: ``type:INTEGER, format:enum, enum:[" + # 101", "201", "301"]`` # Corresponds to the JSON property `enum` # @return [Array] attr_accessor :enum - # Optional. Example of the object. Will only populated when the object is the - # root. + # Optional. Example of an instance of this schema. # Corresponds to the JSON property `example` # @return [Object] attr_accessor :example - # Optional. The format of the data. Supported formats: for NUMBER type: "float", - # "double" for INTEGER type: "int32", "int64" for STRING type: "email", "byte", - # etc + # Optional. The format of the data. For `NUMBER` type, format can be `float` or ` + # double`. For `INTEGER` type, format can be `int32` or `int64`. For `STRING` + # type, format can be `email`, `byte`, `date`, `date-time`, `password`, and + # other formats to further refine the data type. # Corresponds to the JSON property `format` # @return [String] attr_accessor :format - # Schema is used to define the format of input/output data. Represents a select - # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3# - # schema-object). More fields may be added in the future as needed. + # Defines the schema of input and output data. This is a subset of the [OpenAPI + # 3.0 Schema Object](https://spec.openapis.org/oas/v3.0.3#schema-object). # Corresponds to the JSON property `items` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schema] attr_accessor :items - # Optional. Maximum number of the elements for Type.ARRAY. + # Optional. If type is `ARRAY`, `max_items` specifies the maximum number of + # items in an array. # Corresponds to the JSON property `maxItems` # @return [Fixnum] attr_accessor :max_items - # Optional. Maximum length of the Type.STRING + # Optional. If type is `STRING`, `max_length` specifies the maximum length of + # the string. # Corresponds to the JSON property `maxLength` # @return [Fixnum] attr_accessor :max_length - # Optional. Maximum number of the properties for Type.OBJECT. + # Optional. If type is `OBJECT`, `max_properties` specifies the maximum number + # of properties that can be provided. # Corresponds to the JSON property `maxProperties` # @return [Fixnum] attr_accessor :max_properties - # Optional. Maximum value of the Type.INTEGER and Type.NUMBER + # Optional. If type is `INTEGER` or `NUMBER`, `maximum` specifies the maximum + # allowed value. # Corresponds to the JSON property `maximum` # @return [Float] attr_accessor :maximum - # Optional. Minimum number of the elements for Type.ARRAY. + # Optional. If type is `ARRAY`, `min_items` specifies the minimum number of + # items in an array. # Corresponds to the JSON property `minItems` # @return [Fixnum] attr_accessor :min_items - # Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING + # Optional. If type is `STRING`, `min_length` specifies the minimum length of + # the string. # Corresponds to the JSON property `minLength` # @return [Fixnum] attr_accessor :min_length - # Optional. Minimum number of the properties for Type.OBJECT. + # Optional. If type is `OBJECT`, `min_properties` specifies the minimum number + # of properties that can be provided. # Corresponds to the JSON property `minProperties` # @return [Fixnum] attr_accessor :min_properties - # Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type. - # INTEGER and Type.NUMBER + # Optional. If type is `INTEGER` or `NUMBER`, `minimum` specifies the minimum + # allowed value. # Corresponds to the JSON property `minimum` # @return [Float] attr_accessor :minimum - # Optional. Indicates if the value may be null. + # Optional. Indicates if the value of this field can be null. # Corresponds to the JSON property `nullable` # @return [Boolean] attr_accessor :nullable alias_method :nullable?, :nullable - # Optional. Pattern of the Type.STRING to restrict a string to a regular - # expression. + # Optional. If type is `STRING`, `pattern` specifies a regular expression that + # the string must match. # Corresponds to the JSON property `pattern` # @return [String] attr_accessor :pattern - # Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT. + # Optional. If type is `OBJECT`, `properties` is a map of property names to + # schema definitions for each property of the object. # Corresponds to the JSON property `properties` # @return [Hash] attr_accessor :properties - # Optional. The order of the properties. Not a standard field in open api spec. - # Only used to support the order of the properties. + # Optional. Order of properties displayed or used where order matters. This is + # not a standard field in OpenAPI specification, but can be used to control the + # order of properties. # Corresponds to the JSON property `propertyOrdering` # @return [Array] attr_accessor :property_ordering - # Optional. Allows indirect references between schema nodes. The value should be - # a valid reference to a child of the root `defs`. For example, the following - # schema defines a reference to a schema node named "Pet": type: object - # properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: - # type: string The value of the "pet" property is a reference to the schema node - # named "Pet". See details in https://json-schema.org/understanding-json-schema/ - # structuring + # Optional. Allows referencing another schema definition to use in place of this + # schema. The value must be a valid reference to a schema in `defs`. For example, + # the following schema defines a reference to a schema node named "Pet": type: + # object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: + # name: type: string The value of the "pet" property is a reference to the + # schema node named "Pet". See details in https://json-schema.org/understanding- + # json-schema/structuring # Corresponds to the JSON property `ref` # @return [String] attr_accessor :ref - # Optional. Required properties of Type.OBJECT. + # Optional. If type is `OBJECT`, `required` lists the names of properties that + # must be present. # Corresponds to the JSON property `required` # @return [Array] attr_accessor :required - # Optional. The title of the Schema. + # Optional. Title for the schema. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title - # Optional. The type of the data. + # Optional. Data type of the schema field. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -35400,6 +35847,11 @@ class GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData # @return [String] attr_accessor :code_repository_state + # Optional. Framework used to build the application. + # Corresponds to the JSON property `framework` + # @return [String] + attr_accessor :framework + # Linked resources attached to the application by the user. # Corresponds to the JSON property `linkedResources` # @return [Array] @@ -35412,6 +35864,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @code_repository_state = args[:code_repository_state] if args.key?(:code_repository_state) + @framework = args[:framework] if args.key?(:framework) @linked_resources = args[:linked_resources] if args.key?(:linked_resources) end end @@ -39120,17 +39573,19 @@ def update!(**args) end end - # A vertex represents a 2D point in the image. NOTE: the normalized vertex - # coordinates are relative to the original image and range from 0 to 1. + # Represents a 2D point in the image. Vertex coordinates are normalized to be + # relative to the original image dimensions and range from 0 to 1. The origin of + # the coordinate system (0,0) is the top-left corner of the image. x increases + # to the right, and y increases to the bottom. class GoogleCloudAiplatformV1SchemaVertex include Google::Apis::Core::Hashable - # X coordinate. + # X coordinate of the vertex, normalized to [0.0, 1.0]. # Corresponds to the JSON property `x` # @return [Float] attr_accessor :x - # Y coordinate. + # Y coordinate of the vertex, normalized to [0.0, 1.0]. # Corresponds to the JSON property `y` # @return [Float] attr_accessor :y @@ -42427,8 +42882,8 @@ class GoogleCloudAiplatformV1Tensorboard # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -43067,6 +43522,12 @@ class GoogleCloudAiplatformV1Tool # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GoogleSearchRetrieval] attr_accessor :google_search_retrieval + # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for + # grounding. + # Corresponds to the JSON property `parallelAiSearch` + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolParallelAiSearch] + attr_accessor :parallel_ai_search + # Defines a retrieval tool that model can call to access external knowledge. # Corresponds to the JSON property `retrieval` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Retrieval] @@ -43090,6 +43551,7 @@ def update!(**args) @google_maps = args[:google_maps] if args.key?(:google_maps) @google_search = args[:google_search] if args.key?(:google_search) @google_search_retrieval = args[:google_search_retrieval] if args.key?(:google_search_retrieval) + @parallel_ai_search = args[:parallel_ai_search] if args.key?(:parallel_ai_search) @retrieval = args[:retrieval] if args.key?(:retrieval) @url_context = args[:url_context] if args.key?(:url_context) end @@ -43420,6 +43882,42 @@ def update!(**args) end end + # ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for + # grounding. + class GoogleCloudAiplatformV1ToolParallelAiSearch + include Google::Apis::Core::Hashable + + # Optional. The API key for ParallelAiSearch. If an API key is not provided, the + # system will attempt to verify access by checking for an active Parallel.ai + # subscription through the Google Cloud Marketplace. See https://docs.parallel. + # ai/search/search-quickstart for more details. + # Corresponds to the JSON property `apiKey` + # @return [String] + attr_accessor :api_key + + # Optional. Custom configs for ParallelAiSearch. This field can be used to pass + # any parameter from the Parallel.ai Search API. See the Parallel.ai + # documentation for the full list of available parameters and their usage: https: + # //docs.parallel.ai/api-reference/search-beta/search Currently only ` + # source_policy`, `excerpts`, `max_results`, `mode`, `fetch_policy` can be set + # via this field. For example: ` "source_policy": ` "include_domains": ["google. + # com", "wikipedia.org"], "exclude_domains": ["example.com"] `, "fetch_policy": ` + # "max_age_seconds": 3600 ` ` + # Corresponds to the JSON property `customConfigs` + # @return [Hash] + attr_accessor :custom_configs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_key = args[:api_key] if args.key?(:api_key) + @custom_configs = args[:custom_configs] if args.key?(:custom_configs) + end + end + # Input for tool parameter key value match metric. class GoogleCloudAiplatformV1ToolParameterKvMatchInput include Google::Apis::Core::Hashable @@ -43668,8 +44166,8 @@ class GoogleCloudAiplatformV1TrainingPipeline # @return [String] attr_accessor :display_name - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec @@ -44761,8 +45259,8 @@ class GoogleCloudAiplatformV1TuningJob # @return [String] attr_accessor :description - # Represents a customer-managed encryption key spec that can be applied to a top- - # level resource. + # Represents a customer-managed encryption key specification that can be applied + # to a Vertex AI resource. # Corresponds to the JSON property `encryptionSpec` # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec] attr_accessor :encryption_spec diff --git a/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/gem_version.rb b/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/gem_version.rb index 65d7e0a8878..3913f6f9489 100644 --- a/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/gem_version.rb +++ b/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module AiplatformV1 # Version of the google-apis-aiplatform_v1 gem - GEM_VERSION = "0.75.0" + GEM_VERSION = "0.76.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20251210" + REVISION = "20251215" end end end diff --git a/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/representations.rb b/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/representations.rb index 989c957f9ea..3bf502ca095 100644 --- a/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/representations.rb +++ b/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/representations.rb @@ -652,6 +652,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudAiplatformV1Chunk + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudAiplatformV1Citation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1684,6 +1690,30 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudAiplatformV1ExecuteCodeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAiplatformV1ExecuteCodeResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAiplatformV1ExecuteSandboxEnvironmentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudAiplatformV1Execution class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3154,6 +3184,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudAiplatformV1ListSavedQueriesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3334,6 +3370,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudAiplatformV1MemoryConjunctionFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAiplatformV1MemoryFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAiplatformV1MemoryMetadataValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudAiplatformV1MemoryRevision class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3352,6 +3406,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudAiplatformV1Metadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudAiplatformV1MetadataSchema class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5302,6 +5362,30 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudAiplatformV1SandboxEnvironment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAiplatformV1SandboxEnvironmentSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAiplatformV1SandboxEnvironmentSpecCodeExecutionEnvironment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudAiplatformV1SavedQuery class Representation < Google::Apis::Core::JsonRepresentation; end @@ -7120,6 +7204,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudAiplatformV1ToolParallelAiSearch + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudAiplatformV1ToolParameterKvMatchInput class Representation < Google::Apis::Core::JsonRepresentation; end @@ -8852,6 +8942,16 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudAiplatformV1Chunk + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :data, :base64 => true, as: 'data' + property :metadata, as: 'metadata', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Metadata, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Metadata::Representation + + property :mime_type, as: 'mimeType' + end + end + class GoogleCloudAiplatformV1Citation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10800,6 +10900,38 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudAiplatformV1ExecuteCodeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :inputs, as: 'inputs', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Chunk, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Chunk::Representation + + end + end + + class GoogleCloudAiplatformV1ExecuteCodeResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :outputs, as: 'outputs', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Chunk, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Chunk::Representation + + end + end + + class GoogleCloudAiplatformV1ExecuteSandboxEnvironmentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :inputs, as: 'inputs', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Chunk, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Chunk::Representation + + end + end + + class GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :outputs, as: 'outputs', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Chunk, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Chunk::Representation + + end + end + class GoogleCloudAiplatformV1Execution # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -12122,6 +12254,9 @@ class Representation < Google::Apis::Core::JsonRepresentation property :disable_consolidation, as: 'disableConsolidation' property :disable_memory_revisions, as: 'disableMemoryRevisions' + hash :metadata, as: 'metadata', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryMetadataValue, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryMetadataValue::Representation + + property :metadata_merge_strategy, as: 'metadataMergeStrategy' property :revision_expire_time, as: 'revisionExpireTime' hash :revision_labels, as: 'revisionLabels' property :revision_ttl, as: 'revisionTtl' @@ -13317,6 +13452,15 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :sandbox_environments, as: 'sandboxEnvironments', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment::Representation + + end + end + class GoogleCloudAiplatformV1ListSavedQueriesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -13516,6 +13660,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' property :expire_time, as: 'expireTime' property :fact, as: 'fact' + hash :metadata, as: 'metadata', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryMetadataValue, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryMetadataValue::Representation + property :name, as: 'name' property :revision_expire_time, as: 'revisionExpireTime' hash :revision_labels, as: 'revisionLabels' @@ -13600,6 +13746,35 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudAiplatformV1MemoryConjunctionFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :filters, as: 'filters', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryFilter, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryFilter::Representation + + end + end + + class GoogleCloudAiplatformV1MemoryFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :negate, as: 'negate' + property :op, as: 'op' + property :value, as: 'value', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryMetadataValue, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryMetadataValue::Representation + + end + end + + class GoogleCloudAiplatformV1MemoryMetadataValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bool_value, as: 'boolValue' + property :double_value, as: 'doubleValue' + property :string_value, as: 'stringValue' + property :timestamp_value, as: 'timestampValue' + end + end + class GoogleCloudAiplatformV1MemoryRevision # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -13628,6 +13803,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudAiplatformV1Metadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :attributes, as: 'attributes' + end + end + class GoogleCloudAiplatformV1MetadataSchema # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -16719,6 +16901,8 @@ class GoogleCloudAiplatformV1RetrieveMemoriesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :filter, as: 'filter' + collection :filter_groups, as: 'filterGroups', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryConjunctionFilter, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryConjunctionFilter::Representation + hash :scope, as: 'scope' property :similarity_search_params, as: 'similaritySearchParams', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveMemoriesRequestSimilaritySearchParams, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveMemoriesRequestSimilaritySearchParams::Representation @@ -16993,6 +17177,48 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudAiplatformV1SandboxEnvironment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :connection_info, as: 'connectionInfo', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo::Representation + + property :create_time, as: 'createTime' + property :display_name, as: 'displayName' + property :expire_time, as: 'expireTime' + property :name, as: 'name' + property :spec, as: 'spec', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironmentSpec, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironmentSpec::Representation + + property :state, as: 'state' + property :ttl, as: 'ttl' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudAiplatformV1SandboxEnvironmentConnectionInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :load_balancer_hostname, as: 'loadBalancerHostname' + property :load_balancer_ip, as: 'loadBalancerIp' + property :sandbox_internal_ip, as: 'sandboxInternalIp' + end + end + + class GoogleCloudAiplatformV1SandboxEnvironmentSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code_execution_environment, as: 'codeExecutionEnvironment', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironmentSpecCodeExecutionEnvironment, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironmentSpecCodeExecutionEnvironment::Representation + + end + end + + class GoogleCloudAiplatformV1SandboxEnvironmentSpecCodeExecutionEnvironment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code_language, as: 'codeLanguage' + property :machine_config, as: 'machineConfig' + end + end + class GoogleCloudAiplatformV1SavedQuery # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -17815,6 +18041,7 @@ class GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderData # @private class Representation < Google::Apis::Core::JsonRepresentation property :code_repository_state, as: 'codeRepositoryState' + property :framework, as: 'framework' collection :linked_resources, as: 'linkedResources', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderDataLinkedResource, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecAppBuilderDataLinkedResource::Representation end @@ -19926,6 +20153,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :google_search_retrieval, as: 'googleSearchRetrieval', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GoogleSearchRetrieval, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GoogleSearchRetrieval::Representation + property :parallel_ai_search, as: 'parallelAiSearch', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolParallelAiSearch, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ToolParallelAiSearch::Representation + property :retrieval, as: 'retrieval', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Retrieval, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Retrieval::Representation property :url_context, as: 'urlContext', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1UrlContext, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1UrlContext::Representation @@ -20051,6 +20280,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudAiplatformV1ToolParallelAiSearch + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_key, as: 'apiKey' + hash :custom_configs, as: 'customConfigs' + end + end + class GoogleCloudAiplatformV1ToolParameterKvMatchInput # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/service.rb b/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/service.rb index 0fb35b0c6f4..1c0741bbf72 100644 --- a/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/service.rb +++ b/generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/service.rb @@ -11680,7 +11680,8 @@ def stream_project_location_endpoint_generate_content(model, google_cloud_aiplat # Perform a streaming online prediction with an arbitrary HTTP payload. # @param [String] endpoint # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` + # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` + # project`/locations/`location`/publishers/`publisher`/models/`model`` # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamRawPredictRequest] google_cloud_aiplatform_v1_stream_raw_predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -11931,6 +11932,45 @@ def invoke_project_location_endpoint_invoke(endpoint, invoke_id, google_cloud_ai execute_or_queue_command(command, &block) end + # Forwards arbitrary HTTP requests for both streaming and non-streaming cases. + # To use this method, invoke_route_prefix must be set to allow the paths that + # will be specified in the request. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1::GoogleApiHttpBody] google_api_http_body_object + # @param [String] deployed_model_id + # ID of the DeployedModel that serves the invoke request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleApiHttpBody] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def completions_project_location_endpoint_openapi(endpoint, google_api_http_body_object = nil, deployed_model_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+endpoint}/completions', options) + command.request_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation + command.request_object = google_api_http_body_object + command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody + command.params['endpoint'] = endpoint unless endpoint.nil? + command.query['deployedModelId'] = deployed_model_id unless deployed_model_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Forwards arbitrary HTTP requests for both streaming and non-streaming cases. # To use this method, invoke_route_prefix must be set to allow the paths that # will be specified in the request. @@ -25141,7 +25181,8 @@ def stream_project_location_publisher_model_generate_content(model, google_cloud # Perform a streaming online prediction with an arbitrary HTTP payload. # @param [String] endpoint # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` + # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` + # project`/locations/`location`/publishers/`publisher`/models/`model`` # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamRawPredictRequest] google_cloud_aiplatform_v1_stream_raw_predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -26129,6 +26170,40 @@ def delete_project_location_reasoning_engine(name, force: nil, fields: nil, quot execute_or_queue_command(command, &block) end + # Executes code statelessly. + # @param [String] name + # Required. The resource name of the sandbox environment to execute. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`` + # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeRequest] google_cloud_aiplatform_v1_execute_code_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def execute_project_location_reasoning_engine_code(name, google_cloud_aiplatform_v1_execute_code_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:executeCode', options) + command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeRequest::Representation + command.request_object = google_cloud_aiplatform_v1_execute_code_request_object + command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets a reasoning engine. # @param [String] name # Required. The name of the ReasoningEngine resource. Format: `projects/`project` @@ -27090,46 +27165,12 @@ def wait_project_location_reasoning_engine_operation(name, timeout: nil, fields: execute_or_queue_command(command, &block) end - # Appends an event to a given session. - # @param [String] name - # Required. The resource name of the session to append event to. Format: ` - # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ - # sessions/`session`` - # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SessionEvent] google_cloud_aiplatform_v1_session_event_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def append_project_location_reasoning_engine_session_event(name, google_cloud_aiplatform_v1_session_event_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+name}:appendEvent', options) - command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SessionEvent::Representation - command.request_object = google_cloud_aiplatform_v1_session_event_object - command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse::Representation - command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Creates a new Session. + # Creates a SandboxEnvironment in a given reasoning engine. # @param [String] parent - # Required. The resource name of the location to create the session in. Format: ` - # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`` - # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] google_cloud_aiplatform_v1_session_object + # Required. The resource name of the reasoning engine to create the + # SandboxEnvironment in. Format: `projects/`project`/locations/`location`/ + # reasoningEngines/`reasoning_engine``. + # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment] google_cloud_aiplatform_v1_sandbox_environment_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -27147,10 +27188,10 @@ def append_project_location_reasoning_engine_session_event(name, google_cloud_ai # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_location_reasoning_engine_session(parent, google_cloud_aiplatform_v1_session_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+parent}/sessions', options) - command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation - command.request_object = google_cloud_aiplatform_v1_session_object + def create_project_location_reasoning_engine_sandbox_environment(parent, google_cloud_aiplatform_v1_sandbox_environment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/sandboxEnvironments', options) + command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment::Representation + command.request_object = google_cloud_aiplatform_v1_sandbox_environment_object command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? @@ -27159,10 +27200,11 @@ def create_project_location_reasoning_engine_session(parent, google_cloud_aiplat execute_or_queue_command(command, &block) end - # Deletes details of the specific Session. + # Deletes the specific SandboxEnvironment. # @param [String] name - # Required. The resource name of the session. Format: `projects/`project`/ - # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`` + # Required. The resource name of the SandboxEnvironment to delete. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # sandboxEnvironments/`sandbox_environment`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -27180,7 +27222,7 @@ def create_project_location_reasoning_engine_session(parent, google_cloud_aiplat # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_reasoning_engine_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation @@ -27190,10 +27232,12 @@ def delete_project_location_reasoning_engine_session(name, fields: nil, quota_us execute_or_queue_command(command, &block) end - # Gets details of the specific Session. + # Executes using a sandbox environment. # @param [String] name - # Required. The resource name of the session. Format: `projects/`project`/ - # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`` + # Required. The resource name of the sandbox environment to execute. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # sandboxEnvironments/`sandbox_environment`` + # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentRequest] google_cloud_aiplatform_v1_execute_sandbox_environment_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -27203,81 +27247,31 @@ def delete_project_location_reasoning_engine_session(name, fields: nil, quota_us # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation - command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session + def execute_project_location_reasoning_engine_sandbox_environment(name, google_cloud_aiplatform_v1_execute_sandbox_environment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:execute', options) + command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentRequest::Representation + command.request_object = google_cloud_aiplatform_v1_execute_sandbox_environment_request_object + command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Lists Sessions in a given reasoning engine. - # @param [String] parent - # Required. The resource name of the location to list sessions from. Format: ` - # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`` - # @param [String] filter - # Optional. The standard list filter. Supported fields: * `display_name` * ` - # user_id` * `labels` Example: `display_name="abc"`, `user_id="123"`, `labels. - # key="value"`. - # @param [String] order_by - # Optional. A comma-separated list of fields to order by, sorted in ascending - # order. Use "desc" after a field name for descending. Supported fields: * ` - # create_time` * `update_time` Example: `create_time desc`. - # @param [Fixnum] page_size - # Optional. The maximum number of sessions to return. The service may return - # fewer than this value. If unspecified, at most 100 sessions will be returned. - # @param [String] page_token - # Optional. The next_page_token value returned from a previous list - # SessionService.ListSessions call. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_location_reasoning_engine_sessions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+parent}/sessions', options) - command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse - command.params['parent'] = parent unless parent.nil? - command.query['filter'] = filter unless filter.nil? - command.query['orderBy'] = order_by unless order_by.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Updates the specific Session. + # Gets details of the specific SandboxEnvironment. # @param [String] name - # Identifier. The resource name of the session. Format: 'projects/`project`/ - # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`'. - # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] google_cloud_aiplatform_v1_session_object - # @param [String] update_mask - # Optional. Field mask is used to control which fields get updated. If the mask - # is not present, all fields will be updated. + # Required. The resource name of the sandbox environment. Format: `projects/` + # project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # sandboxEnvironments/`sandbox_environment`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -27287,47 +27281,39 @@ def list_project_location_reasoning_engine_sessions(parent, filter: nil, order_b # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_project_location_reasoning_engine_session(name, google_cloud_aiplatform_v1_session_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation - command.request_object = google_cloud_aiplatform_v1_session_object - command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation - command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session + def get_project_location_reasoning_engine_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Lists Events in a given session. + # Lists SandboxEnvironments in a given reasoning engine. # @param [String] parent - # Required. The resource name of the session to list events from. Format: ` - # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ - # sessions/`session`` + # Required. The resource name of the reasoning engine to list sandbox + # environments from. Format: `projects/`project`/locations/`location`/ + # reasoningEngines/`reasoning_engine`` # @param [String] filter - # Optional. The standard list filter. Supported fields: * `timestamp` range (i.e. - # `timestamp>="2025-01-31T11:30:00-04:00"` where the timestamp is in RFC 3339 - # format) More detail in [AIP-160](https://google.aip.dev/160). - # @param [String] order_by - # Optional. A comma-separated list of fields to order by, sorted in ascending - # order. Use "desc" after a field name for descending. Supported fields: * ` - # timestamp` Example: `timestamp desc`. + # Optional. The standard list filter. More detail in [AIP-160](https://google. + # aip.dev/160). # @param [Fixnum] page_size - # Optional. The maximum number of events to return. The service may return fewer - # than this value. If unspecified, at most 100 events will be returned. These - # events are ordered by timestamp in ascending order. + # Optional. The maximum number of SandboxEnvironments to return. The service may + # return fewer than this value. If unspecified, at most 100 SandboxEnvironments + # will be returned. # @param [String] page_token - # Optional. The next_page_token value returned from a previous list - # SessionService.ListEvents call. + # Optional. The standard list page token, received from a previous ` + # ListSandboxEnvironments` call. Provide this to retrieve the subsequent page. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -27337,21 +27323,20 @@ def patch_project_location_reasoning_engine_session(name, google_cloud_aiplatfor # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse] + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_location_reasoning_engine_session_events(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+parent}/events', options) - command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse::Representation - command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse + def list_project_location_reasoning_engine_sandbox_environments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/sandboxEnvironments', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? - command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? @@ -27386,7 +27371,7 @@ def list_project_location_reasoning_engine_session_events(parent, filter: nil, o # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_reasoning_engine_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty @@ -27419,7 +27404,7 @@ def cancel_project_location_reasoning_engine_session_operation(name, fields: nil # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_reasoning_engine_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty @@ -27450,7 +27435,7 @@ def delete_project_location_reasoning_engine_session_operation(name, fields: nil # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_reasoning_engine_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation @@ -27460,24 +27445,20 @@ def get_project_location_reasoning_engine_session_operation(name, fields: nil, q execute_or_queue_command(command, &block) end - # Lists operations that match the specified filter in the request. If the server - # doesn't support this method, it returns `UNIMPLEMENTED`. + # 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. # @param [String] name - # The name of the operation's parent resource. - # @param [String] filter - # The standard list filter. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. - # @param [Boolean] return_partial_success - # When set to `true`, operations that are reachable are returned as normal, and - # those that are unreachable are returned in the ListOperationsResponse. - # unreachable field. This can only be `true` when reading across collections. - # For example, when `parent` is set to `"projects/example/locations/-"`. This - # field is not supported by default and will result in an `UNIMPLEMENTED` error - # if set unless explicitly documented otherwise in service or product specific - # documentation. + # The name of the operation resource to wait on. + # @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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -27487,18 +27468,434 @@ def get_project_location_reasoning_engine_session_operation(name, fields: nil, q # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] + # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_project_location_reasoning_engine_session_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse + def wait_project_location_reasoning_engine_sandbox_environment_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['timeout'] = timeout unless timeout.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Appends an event to a given session. + # @param [String] name + # Required. The resource name of the session to append event to. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # sessions/`session`` + # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SessionEvent] google_cloud_aiplatform_v1_session_event_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def append_project_location_reasoning_engine_session_event(name, google_cloud_aiplatform_v1_session_event_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:appendEvent', options) + command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SessionEvent::Representation + command.request_object = google_cloud_aiplatform_v1_session_event_object + command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new Session. + # @param [String] parent + # Required. The resource name of the location to create the session in. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`` + # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] google_cloud_aiplatform_v1_session_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_reasoning_engine_session(parent, google_cloud_aiplatform_v1_session_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/sessions', options) + command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation + command.request_object = google_cloud_aiplatform_v1_session_object + command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes details of the specific Session. + # @param [String] name + # Required. The resource name of the session. Format: `projects/`project`/ + # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets details of the specific Session. + # @param [String] name + # Required. The resource name of the session. Format: `projects/`project`/ + # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists Sessions in a given reasoning engine. + # @param [String] parent + # Required. The resource name of the location to list sessions from. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`` + # @param [String] filter + # Optional. The standard list filter. Supported fields: * `display_name` * ` + # user_id` * `labels` Example: `display_name="abc"`, `user_id="123"`, `labels. + # key="value"`. + # @param [String] order_by + # Optional. A comma-separated list of fields to order by, sorted in ascending + # order. Use "desc" after a field name for descending. Supported fields: * ` + # create_time` * `update_time` Example: `create_time desc`. + # @param [Fixnum] page_size + # Optional. The maximum number of sessions to return. The service may return + # fewer than this value. If unspecified, at most 100 sessions will be returned. + # @param [String] page_token + # Optional. The next_page_token value returned from a previous list + # SessionService.ListSessions call. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_reasoning_engine_sessions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/sessions', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates the specific Session. + # @param [String] name + # Identifier. The resource name of the session. Format: 'projects/`project`/ + # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`'. + # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] google_cloud_aiplatform_v1_session_object + # @param [String] update_mask + # Optional. Field mask is used to control which fields get updated. If the mask + # is not present, all fields will be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_project_location_reasoning_engine_session(name, google_cloud_aiplatform_v1_session_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation + command.request_object = google_cloud_aiplatform_v1_session_object + command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists Events in a given session. + # @param [String] parent + # Required. The resource name of the session to list events from. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # sessions/`session`` + # @param [String] filter + # Optional. The standard list filter. Supported fields: * `timestamp` range (i.e. + # `timestamp>="2025-01-31T11:30:00-04:00"` where the timestamp is in RFC 3339 + # format) More detail in [AIP-160](https://google.aip.dev/160). + # @param [String] order_by + # Optional. A comma-separated list of fields to order by, sorted in ascending + # order. Use "desc" after a field name for descending. Supported fields: * ` + # timestamp` Example: `timestamp desc`. + # @param [Fixnum] page_size + # Optional. The maximum number of events to return. The service may return fewer + # than this value. If unspecified, at most 100 events will be returned. These + # events are ordered by timestamp in ascending order. + # @param [String] page_token + # Optional. The next_page_token value returned from a previous list + # SessionService.ListEvents call. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_reasoning_engine_session_events(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/events', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # 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`. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def cancel_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # 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`. + # @param [String] name + # The name of the operation resource to be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # 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. + # @param [String] name + # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [Boolean] return_partial_success + # When set to `true`, operations that are reachable are returned as normal, and + # those that are unreachable are returned in the ListOperationsResponse. + # unreachable field. This can only be `true` when reading across collections. + # For example, when `parent` is set to `"projects/example/locations/-"`. This + # field is not supported by default and will result in an `UNIMPLEMENTED` error + # if set unless explicitly documented otherwise in service or product specific + # documentation. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_reasoning_engine_session_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? @@ -32853,6 +33250,40 @@ def delete_reasoning_engine(name, force: nil, fields: nil, quota_user: nil, opti execute_or_queue_command(command, &block) end + # Executes code statelessly. + # @param [String] name + # Required. The resource name of the sandbox environment to execute. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`` + # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeRequest] google_cloud_aiplatform_v1_execute_code_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def execute_reasoning_engine_code(name, google_cloud_aiplatform_v1_execute_code_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:executeCode', options) + command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeRequest::Representation + command.request_object = google_cloud_aiplatform_v1_execute_code_request_object + command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets a reasoning engine. # @param [String] name # Required. The name of the ReasoningEngine resource. Format: `projects/`project` @@ -32976,31 +33407,224 @@ def patch_reasoning_engine(name, google_cloud_aiplatform_v1_reasoning_engine_obj # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def query_reasoning_engine(name, google_cloud_aiplatform_v1_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:query', options) + command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineRequest::Representation + command.request_object = google_cloud_aiplatform_v1_query_reasoning_engine_request_object + command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Streams queries using a reasoning engine. + # @param [String] name + # Required. The name of the ReasoningEngine resource to use. Format: `projects/` + # project`/locations/`location`/reasoningEngines/`reasoning_engine`` + # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest] google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleApiHttpBody] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def stream_reasoning_engine_query(name, google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:streamQuery', options) + command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest::Representation + command.request_object = google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object + command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # 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`. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def cancel_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # 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`. + # @param [String] name + # The name of the operation resource to be deleted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # 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. + # @param [String] name + # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [Boolean] return_partial_success + # When set to `true`, operations that are reachable are returned as normal, and + # those that are unreachable are returned in the ListOperationsResponse. + # unreachable field. This can only be `true` when reading across collections. + # For example, when `parent` is set to `"projects/example/locations/-"`. This + # field is not supported by default and will result in an `UNIMPLEMENTED` error + # if set unless explicitly documented otherwise in service or product specific + # documentation. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse] + # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def query_reasoning_engine(name, google_cloud_aiplatform_v1_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+name}:query', options) - command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineRequest::Representation - command.request_object = google_cloud_aiplatform_v1_query_reasoning_engine_request_object - command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse::Representation - command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse + def list_reasoning_engine_memory_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Streams queries using a reasoning engine. + # 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. # @param [String] name - # Required. The name of the ReasoningEngine resource to use. Format: `projects/` - # project`/locations/`location`/reasoningEngines/`reasoning_engine`` - # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest] google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object + # The name of the operation resource to wait on. + # @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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -33010,21 +33634,20 @@ def query_reasoning_engine(name, google_cloud_aiplatform_v1_query_reasoning_engi # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1::GoogleApiHttpBody] + # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def stream_reasoning_engine_query(name, google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1/{+name}:streamQuery', options) - command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest::Representation - command.request_object = google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object - command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody + def wait_reasoning_engine_memory_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? + command.query['timeout'] = timeout unless timeout.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -33057,7 +33680,7 @@ def stream_reasoning_engine_query(name, google_cloud_aiplatform_v1_stream_query_ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty @@ -33090,7 +33713,7 @@ def cancel_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty @@ -33121,7 +33744,7 @@ def delete_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation @@ -33166,7 +33789,7 @@ def get_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, op # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_reasoning_engine_memory_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_reasoning_engine_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse @@ -33211,7 +33834,7 @@ def list_reasoning_engine_memory_operations(name, filter: nil, page_size: nil, p # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def wait_reasoning_engine_memory_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_reasoning_engine_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation @@ -33222,6 +33845,185 @@ def wait_reasoning_engine_memory_operation(name, timeout: nil, fields: nil, quot execute_or_queue_command(command, &block) end + # Creates a SandboxEnvironment in a given reasoning engine. + # @param [String] parent + # Required. The resource name of the reasoning engine to create the + # SandboxEnvironment in. Format: `projects/`project`/locations/`location`/ + # reasoningEngines/`reasoning_engine``. + # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment] google_cloud_aiplatform_v1_sandbox_environment_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_reasoning_engine_sandbox_environment(parent, google_cloud_aiplatform_v1_sandbox_environment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/sandboxEnvironments', options) + command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment::Representation + command.request_object = google_cloud_aiplatform_v1_sandbox_environment_object + command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes the specific SandboxEnvironment. + # @param [String] name + # Required. The resource name of the SandboxEnvironment to delete. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # sandboxEnvironments/`sandbox_environment`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_reasoning_engine_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Executes using a sandbox environment. + # @param [String] name + # Required. The resource name of the sandbox environment to execute. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # sandboxEnvironments/`sandbox_environment`` + # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentRequest] google_cloud_aiplatform_v1_execute_sandbox_environment_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def execute_reasoning_engine_sandbox_environment(name, google_cloud_aiplatform_v1_execute_sandbox_environment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:execute', options) + command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentRequest::Representation + command.request_object = google_cloud_aiplatform_v1_execute_sandbox_environment_request_object + command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets details of the specific SandboxEnvironment. + # @param [String] name + # Required. The resource name of the sandbox environment. Format: `projects/` + # project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # sandboxEnvironments/`sandbox_environment`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_reasoning_engine_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists SandboxEnvironments in a given reasoning engine. + # @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 [String] filter + # Optional. The standard list filter. More detail in [AIP-160](https://google. + # aip.dev/160). + # @param [Fixnum] page_size + # Optional. The maximum number of SandboxEnvironments to return. The service may + # return fewer than this value. If unspecified, at most 100 SandboxEnvironments + # will be returned. + # @param [String] page_token + # Optional. The standard list page token, received from a previous ` + # ListSandboxEnvironments` call. Provide this to retrieve the subsequent page. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_reasoning_engine_sandbox_environments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/sandboxEnvironments', options) + command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse::Representation + command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # 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`. @@ -33249,7 +34051,7 @@ def wait_reasoning_engine_memory_operation(name, timeout: nil, fields: nil, quot # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_reasoning_engine_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty @@ -33282,7 +34084,7 @@ def cancel_reasoning_engine_operation(name, fields: nil, quota_user: nil, option # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_reasoning_engine_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty @@ -33313,7 +34115,7 @@ def delete_reasoning_engine_operation(name, fields: nil, quota_user: nil, option # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_reasoning_engine_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation @@ -33323,55 +34125,6 @@ def get_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: execute_or_queue_command(command, &block) end - # Lists operations that match the specified filter in the request. If the server - # doesn't support this method, it returns `UNIMPLEMENTED`. - # @param [String] name - # The name of the operation's parent resource. - # @param [String] filter - # The standard list filter. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. - # @param [Boolean] return_partial_success - # When set to `true`, operations that are reachable are returned as normal, and - # those that are unreachable are returned in the ListOperationsResponse. - # unreachable field. This can only be `true` when reading across collections. - # For example, when `parent` is set to `"projects/example/locations/-"`. This - # field is not supported by default and will result in an `UNIMPLEMENTED` error - # if set unless explicitly documented otherwise in service or product specific - # documentation. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_reasoning_engine_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse - command.params['name'] = name unless name.nil? - command.query['filter'] = filter unless filter.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # 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 @@ -33403,7 +34156,7 @@ def list_reasoning_engine_operations(name, filter: nil, page_size: nil, page_tok # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def wait_reasoning_engine_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_reasoning_engine_sandbox_environment_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation