diff --git a/api_names_out.yaml b/api_names_out.yaml index aaa6bc0c3d0..74ada1e86fb 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -15043,6 +15043,8 @@ "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1Candidate/urlContextMetadata": url_context_metadata "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1CandidateResponse": google_cloud_aiplatform_v1beta1_candidate_response "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1CandidateResponse/candidate": candidate +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1CandidateResponse/events": events +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1CandidateResponse/events/event": event "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1CandidateResponse/text": text "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1CandidateResponse/value": value "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1CandidateResult": google_cloud_aiplatform_v1beta1_candidate_result @@ -15834,12 +15836,33 @@ "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationDataset/bigquerySource": bigquery_source "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationDataset/gcsSource": gcs_source "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstance": google_cloud_aiplatform_v1beta1_evaluation_instance +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstance/agentData": agent_data "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstance/otherData": other_data "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstance/prompt": prompt "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstance/reference": reference "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstance/response": response "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstance/rubricGroups": rubric_groups "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstance/rubricGroups/rubric_group": rubric_group +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig": google_cloud_aiplatform_v1beta1_evaluation_instance_agent_config +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig/developerInstruction": developer_instruction +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig/tools": tools +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig/toolsText": tools_text +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfigTools": google_cloud_aiplatform_v1beta1_evaluation_instance_agent_config_tools +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfigTools/tool": tool +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfigTools/tool/tool": tool +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData": google_cloud_aiplatform_v1beta1_evaluation_instance_agent_data +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData/agentConfig": agent_config +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData/developerInstruction": developer_instruction +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData/events": events +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData/eventsText": events_text +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData/tools": tools +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData/toolsText": tools_text +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataEvents": google_cloud_aiplatform_v1beta1_evaluation_instance_agent_data_events +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataEvents/event": event +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataEvents/event/event": event +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataTools": google_cloud_aiplatform_v1beta1_evaluation_instance_agent_data_tools +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataTools/tool": tool +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataTools/tool/tool": tool "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData": google_cloud_aiplatform_v1beta1_evaluation_instance_instance_data "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData/contents": contents "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData/text": text @@ -15928,12 +15951,18 @@ "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigPromptTemplate/gcsUri": gcs_uri "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunEvaluationConfigPromptTemplate/promptTemplate": prompt_template "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig": google_cloud_aiplatform_v1beta1_evaluation_run_inference_config +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig/agentConfig": agent_config "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig/generationConfig": generation_config "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig/model": model +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentConfig": google_cloud_aiplatform_v1beta1_evaluation_run_inference_config_agent_config +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentConfig/developerInstruction": developer_instruction +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentConfig/tools": tools +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentConfig/tools/tool": tool "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunMetric": google_cloud_aiplatform_v1beta1_evaluation_run_metric "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunMetric/computationBasedMetricSpec": computation_based_metric_spec "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunMetric/llmBasedMetricSpec": llm_based_metric_spec "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunMetric/metric": metric +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunMetric/metricConfig": metric_config "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunMetric/predefinedMetricSpec": predefined_metric_spec "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunMetric/rubricBasedMetricSpec": rubric_based_metric_spec "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1EvaluationRunMetricComputationBasedMetricSpec": google_cloud_aiplatform_v1beta1_evaluation_run_metric_computation_based_metric_spec @@ -16818,6 +16847,7 @@ "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenResponse/accessToken": access_token "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenResponse/expireTime": expire_time "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest": google_cloud_aiplatform_v1beta1_generate_instance_rubrics_request +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest/agentConfig": agent_config "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest/contents": contents "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest/contents/content": content "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest/predefinedRubricGenerationSpec": predefined_rubric_generation_spec @@ -16847,6 +16877,8 @@ "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectMemoriesSource/directMemories/direct_memory": direct_memory "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectMemoriesSourceDirectMemory": google_cloud_aiplatform_v1beta1_generate_memories_request_direct_memories_source_direct_memory "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectMemoriesSourceDirectMemory/fact": fact +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectMemoriesSourceDirectMemory/topics": topics +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectMemoriesSourceDirectMemory/topics/topic": topic "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateMemoriesRequestVertexSessionSource": google_cloud_aiplatform_v1beta1_generate_memories_request_vertex_session_source "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateMemoriesRequestVertexSessionSource/endTime": end_time "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1GenerateMemoriesRequestVertexSessionSource/session": session @@ -17036,6 +17068,11 @@ "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1IdMatcher/ids/id": id "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ImageConfig": google_cloud_aiplatform_v1beta1_image_config "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ImageConfig/aspectRatio": aspect_ratio +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ImageConfig/imageOutputOptions": image_output_options +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ImageConfig/personGeneration": person_generation +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ImageConfigImageOutputOptions": google_cloud_aiplatform_v1beta1_image_config_image_output_options +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ImageConfigImageOutputOptions/compressionQuality": compression_quality +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ImageConfigImageOutputOptions/mimeType": mime_type "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ImportDataConfig": google_cloud_aiplatform_v1beta1_import_data_config "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ImportDataConfig/annotationLabels": annotation_labels "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ImportDataConfig/annotationLabels/annotation_label": annotation_label @@ -17231,6 +17268,8 @@ "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1IntegratedGradientsAttribution/blurBaselineConfig": blur_baseline_config "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1IntegratedGradientsAttribution/smoothGradConfig": smooth_grad_config "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1IntegratedGradientsAttribution/stepCount": step_count +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1IntermediateExtractedMemory": google_cloud_aiplatform_v1beta1_intermediate_extracted_memory +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1IntermediateExtractedMemory/fact": fact "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance": google_cloud_aiplatform_v1beta1_internal_os_service_state_instance "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance/serviceName": service_name "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance/serviceState": service_state @@ -17591,6 +17630,8 @@ "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1Memory/revisionTtl": revision_ttl "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1Memory/scope": scope "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1Memory/scope/scope": scope +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1Memory/topics": topics +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1Memory/topics/topic": topic "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1Memory/ttl": ttl "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1Memory/updateTime": update_time "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1MemoryBankCustomizationConfig": google_cloud_aiplatform_v1beta1_memory_bank_customization_config @@ -17627,6 +17668,8 @@ "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1MemoryRevision": google_cloud_aiplatform_v1beta1_memory_revision "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1MemoryRevision/createTime": create_time "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1MemoryRevision/expireTime": expire_time +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1MemoryRevision/extractedMemories": extracted_memories +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1MemoryRevision/extractedMemories/extracted_memory": extracted_memory "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1MemoryRevision/fact": fact "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1MemoryRevision/labels": labels "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1MemoryRevision/labels/label": label @@ -18411,6 +18454,7 @@ "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1NotebookSoftwareConfig/postStartupScriptConfig": post_startup_script_config "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1OptimizePromptRequest": google_cloud_aiplatform_v1beta1_optimize_prompt_request "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1OptimizePromptRequest/content": content +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1OptimizePromptRequest/optimizationTarget": optimization_target "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1OptimizePromptResponse": google_cloud_aiplatform_v1beta1_optimize_prompt_response "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1OptimizePromptResponse/content": content "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1OutputConfig": google_cloud_aiplatform_v1beta1_output_config @@ -19248,6 +19292,7 @@ "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpec/deploymentSpec": deployment_spec "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpec/packageSpec": package_spec "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpec/serviceAccount": service_account +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpec/sourceCodeSpec": source_code_spec "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec": google_cloud_aiplatform_v1beta1_reasoning_engine_spec_deployment_spec "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec/agentServerMode": agent_server_mode "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecDeploymentSpec/containerConcurrency": container_concurrency @@ -19265,6 +19310,16 @@ "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec/pickleObjectGcsUri": pickle_object_gcs_uri "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec/pythonVersion": python_version "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec/requirementsGcsUri": requirements_gcs_uri +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec": google_cloud_aiplatform_v1beta1_reasoning_engine_spec_source_code_spec +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec/inlineSource": inline_source +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec/pythonSpec": python_spec +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecInlineSource": google_cloud_aiplatform_v1beta1_reasoning_engine_spec_source_code_spec_inline_source +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecInlineSource/sourceArchive": source_archive +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec": google_cloud_aiplatform_v1beta1_reasoning_engine_spec_source_code_spec_python_spec +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec/entrypointModule": entrypoint_module +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec/entrypointObject": entrypoint_object +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec/requirementsFile": requirements_file +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec/version": version "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1RebaseTunedModelRequest": google_cloud_aiplatform_v1beta1_rebase_tuned_model_request "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1RebaseTunedModelRequest/artifactDestination": artifact_destination "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1RebaseTunedModelRequest/deployToSameEndpoint": deploy_to_same_endpoint @@ -19393,6 +19448,7 @@ "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1RetrieveContextsResponse": google_cloud_aiplatform_v1beta1_retrieve_contexts_response "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1RetrieveContextsResponse/contexts": contexts "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest": google_cloud_aiplatform_v1beta1_retrieve_memories_request +"/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest/filter": filter "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest/scope": scope "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest/scope/scope": scope "/aiplatform:v1beta1/GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest/similaritySearchParams": similarity_search_params @@ -21765,6 +21821,36 @@ "/aiplatform:v1beta1/IntelligenceCloudAutomlXpsReportingMetrics/effectiveTrainingDuration": effective_training_duration "/aiplatform:v1beta1/IntelligenceCloudAutomlXpsReportingMetrics/metricEntries": metric_entries "/aiplatform:v1beta1/IntelligenceCloudAutomlXpsReportingMetrics/metricEntries/metric_entry": metric_entry +"/aiplatform:v1beta1/aiplatform.agents.operations.cancel": cancel_agent_operation +"/aiplatform:v1beta1/aiplatform.agents.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.agents.operations.delete": delete_agent_operation +"/aiplatform:v1beta1/aiplatform.agents.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.agents.operations.get": get_agent_operation +"/aiplatform:v1beta1/aiplatform.agents.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.agents.operations.list": list_agent_operations +"/aiplatform:v1beta1/aiplatform.agents.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.agents.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.agents.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.agents.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.agents.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.agents.operations.wait": wait_agent_operation +"/aiplatform:v1beta1/aiplatform.agents.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.agents.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.apps.operations.cancel": cancel_app_operation +"/aiplatform:v1beta1/aiplatform.apps.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.apps.operations.delete": delete_app_operation +"/aiplatform:v1beta1/aiplatform.apps.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.apps.operations.get": get_app_operation +"/aiplatform:v1beta1/aiplatform.apps.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.apps.operations.list": list_app_operations +"/aiplatform:v1beta1/aiplatform.apps.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.apps.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.apps.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.apps.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.apps.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.apps.operations.wait": wait_app_operation +"/aiplatform:v1beta1/aiplatform.apps.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.apps.operations.wait/timeout": timeout "/aiplatform:v1beta1/aiplatform.batchPredictionJobs.create": create_batch_prediction_job "/aiplatform:v1beta1/aiplatform.batchPredictionJobs.create/parent": parent "/aiplatform:v1beta1/aiplatform.batchPredictionJobs.get": get_batch_prediction_job @@ -21775,8 +21861,83 @@ "/aiplatform:v1beta1/aiplatform.batchPredictionJobs.list/pageToken": page_token "/aiplatform:v1beta1/aiplatform.batchPredictionJobs.list/parent": parent "/aiplatform:v1beta1/aiplatform.batchPredictionJobs.list/readMask": read_mask +"/aiplatform:v1beta1/aiplatform.customJobs.operations.cancel": cancel_custom_job_operation +"/aiplatform:v1beta1/aiplatform.customJobs.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.customJobs.operations.delete": delete_custom_job_operation +"/aiplatform:v1beta1/aiplatform.customJobs.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.customJobs.operations.get": get_custom_job_operation +"/aiplatform:v1beta1/aiplatform.customJobs.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.customJobs.operations.list": list_custom_job_operations +"/aiplatform:v1beta1/aiplatform.customJobs.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.customJobs.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.customJobs.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.customJobs.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.customJobs.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.customJobs.operations.wait": wait_custom_job_operation +"/aiplatform:v1beta1/aiplatform.customJobs.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.customJobs.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.cancel": cancel_data_labeling_job_operation +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.delete": delete_data_labeling_job_operation +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.get": get_data_labeling_job_operation +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.list": list_data_labeling_job_operations +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.wait": wait_data_labeling_job_operation +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.dataLabelingJobs.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.cancel": cancel_dataset_annotation_spec_operation +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.delete": delete_dataset_annotation_spec_operation +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.get": get_dataset_annotation_spec_operation +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.list": list_dataset_annotation_spec_operations +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.wait": wait_dataset_annotation_spec_operation +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.datasets.annotationSpecs.operations.wait/timeout": timeout "/aiplatform:v1beta1/aiplatform.datasets.create": create_dataset "/aiplatform:v1beta1/aiplatform.datasets.create/parent": parent +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.cancel": cancel_dataset_data_item_annotation_operation +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.delete": delete_dataset_data_item_annotation_operation +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.get": get_dataset_data_item_annotation_operation +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.list": list_dataset_data_item_annotation_operations +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.wait": wait_dataset_data_item_annotation_operation +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.annotations.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.cancel": cancel_dataset_data_item_operation +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.delete": delete_dataset_data_item_operation +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.get": get_dataset_data_item_operation +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.list": list_dataset_data_item_operations +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.wait": wait_dataset_data_item_operation +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.datasets.dataItems.operations.wait/timeout": timeout "/aiplatform:v1beta1/aiplatform.datasets.datasetVersions.create": create_dataset_dataset_version "/aiplatform:v1beta1/aiplatform.datasets.datasetVersions.create/parent": parent "/aiplatform:v1beta1/aiplatform.datasets.datasetVersions.delete": delete_dataset_dataset_version @@ -21808,9 +21969,69 @@ "/aiplatform:v1beta1/aiplatform.datasets.list/pageToken": page_token "/aiplatform:v1beta1/aiplatform.datasets.list/parent": parent "/aiplatform:v1beta1/aiplatform.datasets.list/readMask": read_mask +"/aiplatform:v1beta1/aiplatform.datasets.operations.cancel": cancel_dataset_operation +"/aiplatform:v1beta1/aiplatform.datasets.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.datasets.operations.delete": delete_dataset_operation +"/aiplatform:v1beta1/aiplatform.datasets.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.datasets.operations.get": get_dataset_operation +"/aiplatform:v1beta1/aiplatform.datasets.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.datasets.operations.list": list_dataset_operations +"/aiplatform:v1beta1/aiplatform.datasets.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.datasets.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.datasets.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.datasets.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.datasets.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.datasets.operations.wait": wait_dataset_operation +"/aiplatform:v1beta1/aiplatform.datasets.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.datasets.operations.wait/timeout": timeout "/aiplatform:v1beta1/aiplatform.datasets.patch": patch_dataset "/aiplatform:v1beta1/aiplatform.datasets.patch/name": name "/aiplatform:v1beta1/aiplatform.datasets.patch/updateMask": update_mask +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.cancel": cancel_dataset_saved_query_operation +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.delete": delete_dataset_saved_query_operation +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.get": get_dataset_saved_query_operation +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.list": list_dataset_saved_query_operations +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.wait": wait_dataset_saved_query_operation +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.datasets.savedQueries.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.cancel": cancel_deployment_resource_pool_operation +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.delete": delete_deployment_resource_pool_operation +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.get": get_deployment_resource_pool_operation +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.list": list_deployment_resource_pool_operations +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.wait": wait_deployment_resource_pool_operation +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.deploymentResourcePools.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.cancel": cancel_edge_device_operation +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.delete": delete_edge_device_operation +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.get": get_edge_device_operation +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.list": list_edge_device_operations +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.wait": wait_edge_device_operation +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.edgeDevices.operations.wait/timeout": timeout "/aiplatform:v1beta1/aiplatform.endpoints.chat.completions": completions_endpoint_chat "/aiplatform:v1beta1/aiplatform.endpoints.chat.completions/endpoint": endpoint "/aiplatform:v1beta1/aiplatform.endpoints.computeTokens": compute_endpoint_tokens @@ -21821,14 +22042,506 @@ "/aiplatform:v1beta1/aiplatform.endpoints.fetchPredictOperation/endpoint": endpoint "/aiplatform:v1beta1/aiplatform.endpoints.generateContent": generate_endpoint_content "/aiplatform:v1beta1/aiplatform.endpoints.generateContent/model": model +"/aiplatform:v1beta1/aiplatform.endpoints.operations.cancel": cancel_endpoint_operation +"/aiplatform:v1beta1/aiplatform.endpoints.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.endpoints.operations.delete": delete_endpoint_operation +"/aiplatform:v1beta1/aiplatform.endpoints.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.endpoints.operations.get": get_endpoint_operation +"/aiplatform:v1beta1/aiplatform.endpoints.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.endpoints.operations.list": list_endpoint_operations +"/aiplatform:v1beta1/aiplatform.endpoints.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.endpoints.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.endpoints.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.endpoints.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.endpoints.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.endpoints.operations.wait": wait_endpoint_operation +"/aiplatform:v1beta1/aiplatform.endpoints.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.endpoints.operations.wait/timeout": timeout "/aiplatform:v1beta1/aiplatform.endpoints.predict": predict_endpoint "/aiplatform:v1beta1/aiplatform.endpoints.predict/endpoint": endpoint "/aiplatform:v1beta1/aiplatform.endpoints.predictLongRunning": predict_endpoint_long_running "/aiplatform:v1beta1/aiplatform.endpoints.predictLongRunning/endpoint": endpoint "/aiplatform:v1beta1/aiplatform.endpoints.streamGenerateContent": stream_endpoint_generate_content "/aiplatform:v1beta1/aiplatform.endpoints.streamGenerateContent/model": model +"/aiplatform:v1beta1/aiplatform.evaluationItems.operations.delete": delete_evaluation_item_operation +"/aiplatform:v1beta1/aiplatform.evaluationItems.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.evaluationItems.operations.get": get_evaluation_item_operation +"/aiplatform:v1beta1/aiplatform.evaluationItems.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.evaluationItems.operations.list": list_evaluation_item_operations +"/aiplatform:v1beta1/aiplatform.evaluationItems.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.evaluationItems.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.evaluationItems.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.evaluationItems.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.evaluationItems.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.evaluationItems.operations.wait": wait_evaluation_item_operation +"/aiplatform:v1beta1/aiplatform.evaluationItems.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.evaluationItems.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.evaluationRuns.operations.delete": delete_evaluation_run_operation +"/aiplatform:v1beta1/aiplatform.evaluationRuns.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.evaluationRuns.operations.get": get_evaluation_run_operation +"/aiplatform:v1beta1/aiplatform.evaluationRuns.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.evaluationRuns.operations.list": list_evaluation_run_operations +"/aiplatform:v1beta1/aiplatform.evaluationRuns.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.evaluationRuns.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.evaluationRuns.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.evaluationRuns.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.evaluationRuns.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.evaluationRuns.operations.wait": wait_evaluation_run_operation +"/aiplatform:v1beta1/aiplatform.evaluationRuns.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.evaluationRuns.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.evaluationSets.operations.delete": delete_evaluation_set_operation +"/aiplatform:v1beta1/aiplatform.evaluationSets.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.evaluationSets.operations.get": get_evaluation_set_operation +"/aiplatform:v1beta1/aiplatform.evaluationSets.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.evaluationSets.operations.list": list_evaluation_set_operations +"/aiplatform:v1beta1/aiplatform.evaluationSets.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.evaluationSets.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.evaluationSets.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.evaluationSets.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.evaluationSets.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.evaluationSets.operations.wait": wait_evaluation_set_operation +"/aiplatform:v1beta1/aiplatform.evaluationSets.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.evaluationSets.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.evaluationTasks.operations.delete": delete_evaluation_task_operation +"/aiplatform:v1beta1/aiplatform.evaluationTasks.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.evaluationTasks.operations.get": get_evaluation_task_operation +"/aiplatform:v1beta1/aiplatform.evaluationTasks.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.evaluationTasks.operations.list": list_evaluation_task_operations +"/aiplatform:v1beta1/aiplatform.evaluationTasks.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.evaluationTasks.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.evaluationTasks.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.evaluationTasks.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.evaluationTasks.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.evaluationTasks.operations.wait": wait_evaluation_task_operation +"/aiplatform:v1beta1/aiplatform.evaluationTasks.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.evaluationTasks.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.cancel": cancel_example_store_operation +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.delete": delete_example_store_operation +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.get": get_example_store_operation +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.list": list_example_store_operations +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.wait": wait_example_store_operation +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.exampleStores.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.cancel": cancel_extension_controller_operation +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.delete": delete_extension_controller_operation +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.get": get_extension_controller_operation +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.list": list_extension_controller_operations +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.wait": wait_extension_controller_operation +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.extensionControllers.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.extensions.operations.cancel": cancel_extension_operation +"/aiplatform:v1beta1/aiplatform.extensions.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.extensions.operations.delete": delete_extension_operation +"/aiplatform:v1beta1/aiplatform.extensions.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.extensions.operations.get": get_extension_operation +"/aiplatform:v1beta1/aiplatform.extensions.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.extensions.operations.list": list_extension_operations +"/aiplatform:v1beta1/aiplatform.extensions.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.extensions.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.extensions.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.extensions.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.extensions.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.extensions.operations.wait": wait_extension_operation +"/aiplatform:v1beta1/aiplatform.extensions.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.extensions.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.featureGroups.featureMonitors.operations.delete": delete_feature_group_feature_monitor_operation +"/aiplatform:v1beta1/aiplatform.featureGroups.featureMonitors.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.featureGroups.featureMonitors.operations.get": get_feature_group_feature_monitor_operation +"/aiplatform:v1beta1/aiplatform.featureGroups.featureMonitors.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.featureGroups.featureMonitors.operations.list": list_feature_group_feature_monitor_operations +"/aiplatform:v1beta1/aiplatform.featureGroups.featureMonitors.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.featureGroups.featureMonitors.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.featureGroups.featureMonitors.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.featureGroups.featureMonitors.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.featureGroups.featureMonitors.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.featureGroups.featureMonitors.operations.wait": wait_feature_group_feature_monitor_operation +"/aiplatform:v1beta1/aiplatform.featureGroups.featureMonitors.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.featureGroups.featureMonitors.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.featureGroups.features.operations.delete": delete_feature_group_feature_operation +"/aiplatform:v1beta1/aiplatform.featureGroups.features.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.featureGroups.features.operations.get": get_feature_group_feature_operation +"/aiplatform:v1beta1/aiplatform.featureGroups.features.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.featureGroups.features.operations.list": list_feature_group_feature_operations +"/aiplatform:v1beta1/aiplatform.featureGroups.features.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.featureGroups.features.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.featureGroups.features.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.featureGroups.features.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.featureGroups.features.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.featureGroups.features.operations.wait": wait_feature_group_feature_operation +"/aiplatform:v1beta1/aiplatform.featureGroups.features.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.featureGroups.features.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.featureGroups.operations.delete": delete_feature_group_operation +"/aiplatform:v1beta1/aiplatform.featureGroups.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.featureGroups.operations.get": get_feature_group_operation +"/aiplatform:v1beta1/aiplatform.featureGroups.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.featureGroups.operations.list": list_feature_group_operations +"/aiplatform:v1beta1/aiplatform.featureGroups.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.featureGroups.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.featureGroups.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.featureGroups.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.featureGroups.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.featureGroups.operations.wait": wait_feature_group_operation +"/aiplatform:v1beta1/aiplatform.featureGroups.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.featureGroups.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.featureViews.operations.delete": delete_feature_online_store_feature_view_operation +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.featureViews.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.featureViews.operations.get": get_feature_online_store_feature_view_operation +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.featureViews.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.featureViews.operations.list": list_feature_online_store_feature_view_operations +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.featureViews.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.featureViews.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.featureViews.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.featureViews.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.featureViews.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.featureViews.operations.wait": wait_feature_online_store_feature_view_operation +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.featureViews.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.featureViews.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.operations.delete": delete_feature_online_store_operation +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.operations.get": get_feature_online_store_operation +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.operations.list": list_feature_online_store_operations +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.operations.wait": wait_feature_online_store_operation +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.featureOnlineStores.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.cancel": cancel_featurestore_entity_type_feature_operation +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.delete": delete_featurestore_entity_type_feature_operation +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.get": get_featurestore_entity_type_feature_operation +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.list": list_featurestore_entity_type_feature_operations +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.wait": wait_featurestore_entity_type_feature_operation +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.features.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.cancel": cancel_featurestore_entity_type_operation +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.delete": delete_featurestore_entity_type_operation +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.get": get_featurestore_entity_type_operation +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.list": list_featurestore_entity_type_operations +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.wait": wait_featurestore_entity_type_operation +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.entityTypes.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.featurestores.operations.cancel": cancel_featurestore_operation +"/aiplatform:v1beta1/aiplatform.featurestores.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.operations.delete": delete_featurestore_operation +"/aiplatform:v1beta1/aiplatform.featurestores.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.operations.get": get_featurestore_operation +"/aiplatform:v1beta1/aiplatform.featurestores.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.operations.list": list_featurestore_operations +"/aiplatform:v1beta1/aiplatform.featurestores.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.featurestores.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.featurestores.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.featurestores.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.featurestores.operations.wait": wait_featurestore_operation +"/aiplatform:v1beta1/aiplatform.featurestores.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.featurestores.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.cancel": cancel_hyperparameter_tuning_job_operation +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.delete": delete_hyperparameter_tuning_job_operation +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.get": get_hyperparameter_tuning_job_operation +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.list": list_hyperparameter_tuning_job_operations +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.wait": wait_hyperparameter_tuning_job_operation +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.hyperparameterTuningJobs.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.cancel": cancel_index_endpoint_operation +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.delete": delete_index_endpoint_operation +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.get": get_index_endpoint_operation +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.list": list_index_endpoint_operations +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.wait": wait_index_endpoint_operation +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.indexEndpoints.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.indexes.operations.cancel": cancel_index_operation +"/aiplatform:v1beta1/aiplatform.indexes.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.indexes.operations.delete": delete_index_operation +"/aiplatform:v1beta1/aiplatform.indexes.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.indexes.operations.get": get_index_operation +"/aiplatform:v1beta1/aiplatform.indexes.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.indexes.operations.list": list_index_operations +"/aiplatform:v1beta1/aiplatform.indexes.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.indexes.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.indexes.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.indexes.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.indexes.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.indexes.operations.wait": wait_index_operation +"/aiplatform:v1beta1/aiplatform.indexes.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.indexes.operations.wait/timeout": timeout "/aiplatform:v1beta1/aiplatform.media.upload": upload_medium "/aiplatform:v1beta1/aiplatform.media.upload/parent": parent +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.cancel": cancel_metadata_store_artifact_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.delete": delete_metadata_store_artifact_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.get": get_metadata_store_artifact_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.list": list_metadata_store_artifact_operations +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.wait": wait_metadata_store_artifact_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.artifacts.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.cancel": cancel_metadata_store_context_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.delete": delete_metadata_store_context_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.get": get_metadata_store_context_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.list": list_metadata_store_context_operations +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.wait": wait_metadata_store_context_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.contexts.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.cancel": cancel_metadata_store_execution_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.delete": delete_metadata_store_execution_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.get": get_metadata_store_execution_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.list": list_metadata_store_execution_operations +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.wait": wait_metadata_store_execution_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.executions.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.cancel": cancel_metadata_store_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.delete": delete_metadata_store_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.get": get_metadata_store_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.list": list_metadata_store_operations +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.wait": wait_metadata_store_operation +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.metadataStores.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.cancel": cancel_migratable_resource_operation +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.delete": delete_migratable_resource_operation +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.get": get_migratable_resource_operation +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.list": list_migratable_resource_operations +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.wait": wait_migratable_resource_operation +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.migratableResources.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.cancel": cancel_model_deployment_monitoring_job_operation +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.delete": delete_model_deployment_monitoring_job_operation +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.get": get_model_deployment_monitoring_job_operation +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.list": list_model_deployment_monitoring_job_operations +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.wait": wait_model_deployment_monitoring_job_operation +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.modelDeploymentMonitoringJobs.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.cancel": cancel_model_monitor_operation +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.delete": delete_model_monitor_operation +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.get": get_model_monitor_operation +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.list": list_model_monitor_operations +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.wait": wait_model_monitor_operation +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.modelMonitors.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.cancel": cancel_model_evaluation_operation +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.delete": delete_model_evaluation_operation +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.get": get_model_evaluation_operation +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.list": list_model_evaluation_operations +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.wait": wait_model_evaluation_operation +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.models.evaluations.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.models.operations.cancel": cancel_model_operation +"/aiplatform:v1beta1/aiplatform.models.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.models.operations.delete": delete_model_operation +"/aiplatform:v1beta1/aiplatform.models.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.models.operations.get": get_model_operation +"/aiplatform:v1beta1/aiplatform.models.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.models.operations.list": list_model_operations +"/aiplatform:v1beta1/aiplatform.models.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.models.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.models.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.models.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.models.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.models.operations.wait": wait_model_operation +"/aiplatform:v1beta1/aiplatform.models.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.models.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.cancel": cancel_notebook_execution_job_operation +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.delete": delete_notebook_execution_job_operation +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.get": get_notebook_execution_job_operation +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.list": list_notebook_execution_job_operations +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.wait": wait_notebook_execution_job_operation +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.notebookExecutionJobs.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.cancel": cancel_notebook_runtime_template_operation +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.delete": delete_notebook_runtime_template_operation +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.get": get_notebook_runtime_template_operation +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.list": list_notebook_runtime_template_operations +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.wait": wait_notebook_runtime_template_operation +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.notebookRuntimeTemplates.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.cancel": cancel_notebook_runtime_operation +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.delete": delete_notebook_runtime_operation +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.get": get_notebook_runtime_operation +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.list": list_notebook_runtime_operations +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.wait": wait_notebook_runtime_operation +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.notebookRuntimes.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.operations.cancel": cancel_operation +"/aiplatform:v1beta1/aiplatform.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.operations.delete": delete_operation +"/aiplatform:v1beta1/aiplatform.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.operations.get": get_operation +"/aiplatform:v1beta1/aiplatform.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.operations.list": list_operations +"/aiplatform:v1beta1/aiplatform.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.operations.wait": wait_operation +"/aiplatform:v1beta1/aiplatform.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.cancel": cancel_persistent_resource_operation +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.delete": delete_persistent_resource_operation +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.get": get_persistent_resource_operation +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.list": list_persistent_resource_operations +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.wait": wait_persistent_resource_operation +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.persistentResources.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.cancel": cancel_pipeline_job_operation +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.delete": delete_pipeline_job_operation +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.get": get_pipeline_job_operation +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.list": list_pipeline_job_operations +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.wait": wait_pipeline_job_operation +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.pipelineJobs.operations.wait/timeout": timeout "/aiplatform:v1beta1/aiplatform.projects.fetchPublisherModelConfig": fetch_project_publisher_model_config "/aiplatform:v1beta1/aiplatform.projects.fetchPublisherModelConfig/name": name "/aiplatform:v1beta1/aiplatform.projects.getCacheConfig": get_project_cache_config @@ -24183,6 +24896,51 @@ "/aiplatform:v1beta1/aiplatform.publishers.models.predictLongRunning/endpoint": endpoint "/aiplatform:v1beta1/aiplatform.publishers.models.streamGenerateContent": stream_publisher_model_generate_content "/aiplatform:v1beta1/aiplatform.publishers.models.streamGenerateContent/model": model +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.cancel": cancel_rag_corpora_operation +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.delete": delete_rag_corpora_operation +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.get": get_rag_corpora_operation +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.list": list_rag_corpora_operations +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.wait": wait_rag_corpora_operation +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.ragCorpora.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.cancel": cancel_rag_corpora_rag_file_operation +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.delete": delete_rag_corpora_rag_file_operation +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.get": get_rag_corpora_rag_file_operation +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.list": list_rag_corpora_rag_file_operations +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.wait": wait_rag_corpora_rag_file_operation +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.ragCorpora.ragFiles.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.cancel": cancel_rag_engine_config_operation +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.delete": delete_rag_engine_config_operation +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.get": get_rag_engine_config_operation +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.list": list_rag_engine_config_operations +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.wait": wait_rag_engine_config_operation +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.ragEngineConfig.operations.wait/timeout": timeout "/aiplatform:v1beta1/aiplatform.reasoningEngines.a2a.v1.card": card_reasoning_engine_a2a_v1 "/aiplatform:v1beta1/aiplatform.reasoningEngines.a2a.v1.card/a2aEndpoint": a2a_endpoint "/aiplatform:v1beta1/aiplatform.reasoningEngines.a2a.v1.card/historyLength": history_length @@ -24216,6 +24974,15 @@ "/aiplatform:v1beta1/aiplatform.reasoningEngines.delete": delete_reasoning_engine "/aiplatform:v1beta1/aiplatform.reasoningEngines.delete/force": force "/aiplatform:v1beta1/aiplatform.reasoningEngines.delete/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.examples.operations.cancel": cancel_reasoning_engine_example_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.examples.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.examples.operations.delete": delete_reasoning_engine_example_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.examples.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.examples.operations.get": get_reasoning_engine_example_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.examples.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.examples.operations.wait": wait_reasoning_engine_example_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.examples.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.examples.operations.wait/timeout": timeout "/aiplatform:v1beta1/aiplatform.reasoningEngines.get": get_reasoning_engine "/aiplatform:v1beta1/aiplatform.reasoningEngines.get/name": name "/aiplatform:v1beta1/aiplatform.reasoningEngines.list": list_reasoning_engines @@ -24237,6 +25004,21 @@ "/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.list/pageSize": page_size "/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.list/pageToken": page_token "/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.list/parent": parent +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.cancel": cancel_reasoning_engine_memory_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.delete": delete_reasoning_engine_memory_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.get": get_reasoning_engine_memory_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.list": list_reasoning_engine_memory_operations +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.wait": wait_reasoning_engine_memory_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.operations.wait/timeout": timeout "/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.patch": patch_reasoning_engine_memory "/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.patch/name": name "/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.patch/updateMask": update_mask @@ -24251,11 +25033,41 @@ "/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.revisions.list/parent": parent "/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.rollback": rollback_reasoning_engine_memory "/aiplatform:v1beta1/aiplatform.reasoningEngines.memories.rollback/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.cancel": cancel_reasoning_engine_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.delete": delete_reasoning_engine_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.get": get_reasoning_engine_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.list": list_reasoning_engine_operations +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.wait": wait_reasoning_engine_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.operations.wait/timeout": timeout "/aiplatform:v1beta1/aiplatform.reasoningEngines.patch": patch_reasoning_engine "/aiplatform:v1beta1/aiplatform.reasoningEngines.patch/name": name "/aiplatform:v1beta1/aiplatform.reasoningEngines.patch/updateMask": update_mask "/aiplatform:v1beta1/aiplatform.reasoningEngines.query": query_reasoning_engine "/aiplatform:v1beta1/aiplatform.reasoningEngines.query/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.cancel": cancel_reasoning_engine_sandbox_environment_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.delete": delete_reasoning_engine_sandbox_environment_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.get": get_reasoning_engine_sandbox_environment_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.list": list_reasoning_engine_sandbox_environment_operations +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.wait": wait_reasoning_engine_sandbox_environment_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sandboxEnvironments.operations.wait/timeout": timeout "/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.appendEvent": append_reasoning_engine_session_event "/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.appendEvent/name": name "/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.create": create_reasoning_engine_session @@ -24275,11 +25087,173 @@ "/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.list/pageSize": page_size "/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.list/pageToken": page_token "/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.list/parent": parent +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.cancel": cancel_reasoning_engine_session_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.delete": delete_reasoning_engine_session_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.get": get_reasoning_engine_session_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.list": list_reasoning_engine_session_operations +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.wait": wait_reasoning_engine_session_operation +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.operations.wait/timeout": timeout "/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.patch": patch_reasoning_engine_session "/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.patch/name": name "/aiplatform:v1beta1/aiplatform.reasoningEngines.sessions.patch/updateMask": update_mask "/aiplatform:v1beta1/aiplatform.reasoningEngines.streamQuery": stream_reasoning_engine_query "/aiplatform:v1beta1/aiplatform.reasoningEngines.streamQuery/name": name +"/aiplatform:v1beta1/aiplatform.schedules.operations.cancel": cancel_schedule_operation +"/aiplatform:v1beta1/aiplatform.schedules.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.schedules.operations.delete": delete_schedule_operation +"/aiplatform:v1beta1/aiplatform.schedules.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.schedules.operations.get": get_schedule_operation +"/aiplatform:v1beta1/aiplatform.schedules.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.schedules.operations.list": list_schedule_operations +"/aiplatform:v1beta1/aiplatform.schedules.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.schedules.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.schedules.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.schedules.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.schedules.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.schedules.operations.wait": wait_schedule_operation +"/aiplatform:v1beta1/aiplatform.schedules.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.schedules.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.solvers.operations.delete": delete_solver_operation +"/aiplatform:v1beta1/aiplatform.solvers.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.solvers.operations.get": get_solver_operation +"/aiplatform:v1beta1/aiplatform.solvers.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.solvers.operations.list": list_solver_operations +"/aiplatform:v1beta1/aiplatform.solvers.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.solvers.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.solvers.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.solvers.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.solvers.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.cancel": cancel_specialist_pool_operation +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.delete": delete_specialist_pool_operation +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.get": get_specialist_pool_operation +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.list": list_specialist_pool_operations +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.wait": wait_specialist_pool_operation +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.specialistPools.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.studies.operations.cancel": cancel_study_operation +"/aiplatform:v1beta1/aiplatform.studies.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.studies.operations.delete": delete_study_operation +"/aiplatform:v1beta1/aiplatform.studies.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.studies.operations.get": get_study_operation +"/aiplatform:v1beta1/aiplatform.studies.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.studies.operations.list": list_study_operations +"/aiplatform:v1beta1/aiplatform.studies.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.studies.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.studies.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.studies.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.studies.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.studies.operations.wait": wait_study_operation +"/aiplatform:v1beta1/aiplatform.studies.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.studies.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.cancel": cancel_study_trial_operation +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.delete": delete_study_trial_operation +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.get": get_study_trial_operation +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.list": list_study_trial_operations +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.wait": wait_study_trial_operation +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.studies.trials.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.cancel": cancel_tensorboard_experiment_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.delete": delete_tensorboard_experiment_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.get": get_tensorboard_experiment_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.list": list_tensorboard_experiment_operations +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.wait": wait_tensorboard_experiment_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.cancel": cancel_tensorboard_experiment_run_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.delete": delete_tensorboard_experiment_run_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.get": get_tensorboard_experiment_run_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.list": list_tensorboard_experiment_run_operations +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.wait": wait_tensorboard_experiment_run_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.cancel": cancel_tensorboard_experiment_run_time_series_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.delete": delete_tensorboard_experiment_run_time_series_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.get": get_tensorboard_experiment_run_time_series_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.list": list_tensorboard_experiment_run_time_series_operations +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.wait": wait_tensorboard_experiment_run_time_series_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.experiments.runs.timeSeries.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.cancel": cancel_tensorboard_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.delete": delete_tensorboard_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.get": get_tensorboard_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.list": list_tensorboard_operations +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.wait": wait_tensorboard_operation +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.tensorboards.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.cancel": cancel_training_pipeline_operation +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.cancel/name": name +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.delete": delete_training_pipeline_operation +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.delete/name": name +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.get": get_training_pipeline_operation +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.get/name": name +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.list": list_training_pipeline_operations +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.list/filter": filter +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.list/name": name +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.list/pageSize": page_size +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.list/pageToken": page_token +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.list/returnPartialSuccess": return_partial_success +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.wait": wait_training_pipeline_operation +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.wait/name": name +"/aiplatform:v1beta1/aiplatform.trainingPipelines.operations.wait/timeout": timeout +"/aiplatform:v1beta1/aiplatform.tuningJobs.operations.delete": delete_tuning_job_operation +"/aiplatform:v1beta1/aiplatform.tuningJobs.operations.delete/name": name "/aiplatform:v1beta1/fields": fields "/aiplatform:v1beta1/key": key "/aiplatform:v1beta1/quotaUser": quota_user diff --git a/generated/google-apis-aiplatform_v1beta1/CHANGELOG.md b/generated/google-apis-aiplatform_v1beta1/CHANGELOG.md index 353c8ee4ea4..815c7e140ac 100644 --- a/generated/google-apis-aiplatform_v1beta1/CHANGELOG.md +++ b/generated/google-apis-aiplatform_v1beta1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-aiplatform_v1beta1 +### v0.65.0 (2025-11-02) + +* Regenerated from discovery document revision 20251027 + ### v0.64.0 (2025-10-26) * Regenerated from discovery document revision 20251010 diff --git a/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/classes.rb b/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/classes.rb index 85c1e71ed07..d412793b0b6 100644 --- a/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/classes.rb +++ b/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/classes.rb @@ -3661,6 +3661,12 @@ class GoogleCloudAiplatformV1beta1CandidateResponse # @return [String] attr_accessor :candidate + # Optional. Intermediate events (such as tool calls and responses) that led to + # the final response. + # Corresponds to the JSON property `events` + # @return [Array] + attr_accessor :events + # Text response. # Corresponds to the JSON property `text` # @return [String] @@ -3678,6 +3684,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @candidate = args[:candidate] if args.key?(:candidate) + @events = args[:events] if args.key?(:events) @text = args[:text] if args.key?(:text) @value = args[:value] if args.key?(:value) end @@ -6756,7 +6763,7 @@ def update!(**args) class GoogleCloudAiplatformV1beta1DedicatedResourcesScaleToZeroSpec include Google::Apis::Core::Hashable - # Optional. Duration of no traffic before scaling to zero. [MinValue=3600] (5 + # Optional. Duration of no traffic before scaling to zero. [MinValue=300] (5 # minutes) [MaxValue=28800] (8 hours) # Corresponds to the JSON property `idleScaledownPeriod` # @return [String] @@ -9721,6 +9728,11 @@ def update!(**args) class GoogleCloudAiplatformV1beta1EvaluationInstance include Google::Apis::Core::Hashable + # Contains data specific to agent evaluations. + # Corresponds to the JSON property `agentData` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData] + attr_accessor :agent_data + # Instance data specified as a map. # Corresponds to the JSON property `otherData` # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceMapInstance] @@ -9754,6 +9766,7 @@ def initialize(**args) # Update properties of this object def update!(**args) + @agent_data = args[:agent_data] if args.key?(:agent_data) @other_data = args[:other_data] if args.key?(:other_data) @prompt = args[:prompt] if args.key?(:prompt) @reference = args[:reference] if args.key?(:reference) @@ -9762,6 +9775,150 @@ def update!(**args) end end + # Configuration for an Agent. + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig + include Google::Apis::Core::Hashable + + # Instance data used to populate placeholders in a metric prompt template. + # Corresponds to the JSON property `developerInstruction` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData] + attr_accessor :developer_instruction + + # Represents a list of tools for an agent. + # Corresponds to the JSON property `tools` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfigTools] + attr_accessor :tools + + # A JSON string containing a list of tools available to an agent with info such + # as name, description, parameters and required parameters. + # Corresponds to the JSON property `toolsText` + # @return [String] + attr_accessor :tools_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @developer_instruction = args[:developer_instruction] if args.key?(:developer_instruction) + @tools = args[:tools] if args.key?(:tools) + @tools_text = args[:tools_text] if args.key?(:tools_text) + end + end + + # Represents a list of tools for an agent. + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfigTools + include Google::Apis::Core::Hashable + + # Optional. List of tools: each tool can have multiple function declarations. + # Corresponds to the JSON property `tool` + # @return [Array] + attr_accessor :tool + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @tool = args[:tool] if args.key?(:tool) + end + end + + # Contains data specific to agent evaluations. + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData + include Google::Apis::Core::Hashable + + # Configuration for an Agent. + # Corresponds to the JSON property `agentConfig` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig] + attr_accessor :agent_config + + # Instance data used to populate placeholders in a metric prompt template. + # Corresponds to the JSON property `developerInstruction` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData] + attr_accessor :developer_instruction + + # Represents a list of events for an agent. + # Corresponds to the JSON property `events` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataEvents] + attr_accessor :events + + # A JSON string containing a sequence of events. + # Corresponds to the JSON property `eventsText` + # @return [String] + attr_accessor :events_text + + # Represents a list of tools for an agent. + # Corresponds to the JSON property `tools` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataTools] + attr_accessor :tools + + # A JSON string containing a list of tools available to an agent with info such + # as name, description, parameters and required parameters. Example: [ ` "name": + # "search_actors", "description": "Search for actors in a movie. Returns a list + # of actors, their roles, their birthdate, and their place of birth.", " + # parameters": [ ` "name": "movie_name", "description": "The name of the movie." + # `, ` "name": "character_name", "description": "The name of the character." ` ], + # "required": ["movie_name", "character_name"] ` ] + # Corresponds to the JSON property `toolsText` + # @return [String] + attr_accessor :tools_text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @agent_config = args[:agent_config] if args.key?(:agent_config) + @developer_instruction = args[:developer_instruction] if args.key?(:developer_instruction) + @events = args[:events] if args.key?(:events) + @events_text = args[:events_text] if args.key?(:events_text) + @tools = args[:tools] if args.key?(:tools) + @tools_text = args[:tools_text] if args.key?(:tools_text) + end + end + + # Represents a list of events for an agent. + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataEvents + include Google::Apis::Core::Hashable + + # Optional. A list of events. + # Corresponds to the JSON property `event` + # @return [Array] + attr_accessor :event + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @event = args[:event] if args.key?(:event) + end + end + + # Represents a list of tools for an agent. + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataTools + include Google::Apis::Core::Hashable + + # Optional. List of tools: each tool can have multiple function declarations. + # Corresponds to the JSON property `tool` + # @return [Array] + attr_accessor :tool + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @tool = args[:tool] if args.key?(:tool) + end + end + # Instance data used to populate placeholders in a metric prompt template. class GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData include Google::Apis::Core::Hashable @@ -10379,6 +10536,11 @@ def update!(**args) class GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig include Google::Apis::Core::Hashable + # Configuration that describes an agent. + # Corresponds to the JSON property `agentConfig` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentConfig] + attr_accessor :agent_config + # Generation config. # Corresponds to the JSON property `generationConfig` # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerationConfig] @@ -10398,11 +10560,40 @@ def initialize(**args) # Update properties of this object def update!(**args) + @agent_config = args[:agent_config] if args.key?(:agent_config) @generation_config = args[:generation_config] if args.key?(:generation_config) @model = args[:model] if args.key?(:model) end end + # Configuration that describes an agent. + class GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentConfig + include Google::Apis::Core::Hashable + + # The base structured datatype containing multi-part content of a message. A ` + # Content` includes a `role` field designating the producer of the `Content` and + # a `parts` field containing multi-part data that contains the content of the + # message turn. + # Corresponds to the JSON property `developerInstruction` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content] + attr_accessor :developer_instruction + + # Optional. The tools available to the agent. + # Corresponds to the JSON property `tools` + # @return [Array] + attr_accessor :tools + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @developer_instruction = args[:developer_instruction] if args.key?(:developer_instruction) + @tools = args[:tools] if args.key?(:tools) + end + end + # The metric used for evaluation runs. class GoogleCloudAiplatformV1beta1EvaluationRunMetric include Google::Apis::Core::Hashable @@ -10417,6 +10608,11 @@ class GoogleCloudAiplatformV1beta1EvaluationRunMetric # @return [String] attr_accessor :metric + # The metric used for running evaluations. + # Corresponds to the JSON property `metricConfig` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Metric] + attr_accessor :metric_config + # Specification for a pre-defined metric. # Corresponds to the JSON property `predefinedMetricSpec` # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricPredefinedMetricSpec] @@ -10435,6 +10631,7 @@ def initialize(**args) def update!(**args) @llm_based_metric_spec = args[:llm_based_metric_spec] if args.key?(:llm_based_metric_spec) @metric = args[:metric] if args.key?(:metric) + @metric_config = args[:metric_config] if args.key?(:metric_config) @predefined_metric_spec = args[:predefined_metric_spec] if args.key?(:predefined_metric_spec) @rubric_based_metric_spec = args[:rubric_based_metric_spec] if args.key?(:rubric_based_metric_spec) end @@ -17099,6 +17296,11 @@ def update!(**args) class GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest include Google::Apis::Core::Hashable + # Configuration for an Agent. + # Corresponds to the JSON property `agentConfig` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig] + attr_accessor :agent_config + # Required. The prompt to generate rubrics from. For single-turn queries, this # is a single instance. For multi-turn queries, this is a repeated field that # contains conversation history + latest request. @@ -17122,6 +17324,7 @@ def initialize(**args) # Update properties of this object def update!(**args) + @agent_config = args[:agent_config] if args.key?(:agent_config) @contents = args[:contents] if args.key?(:contents) @predefined_rubric_generation_spec = args[:predefined_rubric_generation_spec] if args.key?(:predefined_rubric_generation_spec) @rubric_generation_spec = args[:rubric_generation_spec] if args.key?(:rubric_generation_spec) @@ -17299,6 +17502,11 @@ class GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectMemoriesSourceDir # @return [String] attr_accessor :fact + # Optional. The topics that the consolidated memories should be associated with. + # Corresponds to the JSON property `topics` + # @return [Array] + attr_accessor :topics + def initialize(**args) update!(**args) end @@ -17306,6 +17514,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @fact = args[:fact] if args.key?(:fact) + @topics = args[:topics] if args.key?(:topics) end end @@ -18499,6 +18708,16 @@ class GoogleCloudAiplatformV1beta1ImageConfig # @return [String] attr_accessor :aspect_ratio + # The image output format for generated images. + # Corresponds to the JSON property `imageOutputOptions` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImageConfigImageOutputOptions] + attr_accessor :image_output_options + + # Optional. Controls whether the model can generate people. + # Corresponds to the JSON property `personGeneration` + # @return [String] + attr_accessor :person_generation + def initialize(**args) update!(**args) end @@ -18506,6 +18725,33 @@ def initialize(**args) # Update properties of this object def update!(**args) @aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio) + @image_output_options = args[:image_output_options] if args.key?(:image_output_options) + @person_generation = args[:person_generation] if args.key?(:person_generation) + end + end + + # The image output format for generated images. + class GoogleCloudAiplatformV1beta1ImageConfigImageOutputOptions + include Google::Apis::Core::Hashable + + # Optional. The compression quality of the output image. + # Corresponds to the JSON property `compressionQuality` + # @return [Fixnum] + attr_accessor :compression_quality + + # Optional. The image format that the output should be saved as. + # 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) + @compression_quality = args[:compression_quality] if args.key?(:compression_quality) + @mime_type = args[:mime_type] if args.key?(:mime_type) end end @@ -19907,6 +20153,25 @@ def update!(**args) end end + # An extracted memory that is the intermediate result before consolidation. + class GoogleCloudAiplatformV1beta1IntermediateExtractedMemory + include Google::Apis::Core::Hashable + + # Output only. The fact of the extracted memory. + # Corresponds to the JSON property `fact` + # @return [String] + attr_accessor :fact + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fact = args[:fact] if args.key?(:fact) + end + end + # Request message for [InternalOsServiceStateInstance]. class GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance include Google::Apis::Core::Hashable @@ -22278,6 +22543,11 @@ class GoogleCloudAiplatformV1beta1Memory # @return [Hash] attr_accessor :scope + # Optional. The Topics of the Memory. + # Corresponds to the JSON property `topics` + # @return [Array] + attr_accessor :topics + # Optional. Input only. The TTL for this resource. The expiration time is # computed: now + TTL. # Corresponds to the JSON property `ttl` @@ -22305,6 +22575,7 @@ def update!(**args) @revision_expire_time = args[:revision_expire_time] if args.key?(:revision_expire_time) @revision_ttl = args[:revision_ttl] if args.key?(:revision_ttl) @scope = args[:scope] if args.key?(:scope) + @topics = args[:topics] if args.key?(:topics) @ttl = args[:ttl] if args.key?(:ttl) @update_time = args[:update_time] if args.key?(:update_time) end @@ -22529,6 +22800,13 @@ class GoogleCloudAiplatformV1beta1MemoryRevision # @return [String] attr_accessor :expire_time + # Output only. The extracted memories from the source content before + # consolidation when the memory was updated via GenerateMemories. This + # information was used to modify an existing Memory via Consolidation. + # Corresponds to the JSON property `extractedMemories` + # @return [Array] + attr_accessor :extracted_memories + # Output only. The fact of the Memory Revision. This corresponds to the `fact` # field of the parent Memory at the time of revision creation. # Corresponds to the JSON property `fact` @@ -22557,6 +22835,7 @@ def initialize(**args) def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @expire_time = args[:expire_time] if args.key?(:expire_time) + @extracted_memories = args[:extracted_memories] if args.key?(:extracted_memories) @fact = args[:fact] if args.key?(:fact) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @@ -28287,6 +28566,11 @@ class GoogleCloudAiplatformV1beta1OptimizePromptRequest # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content] attr_accessor :content + # Optional. The target model to optimize the prompt for. + # Corresponds to the JSON property `optimizationTarget` + # @return [String] + attr_accessor :optimization_target + def initialize(**args) update!(**args) end @@ -28294,6 +28578,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @content = args[:content] if args.key?(:content) + @optimization_target = args[:optimization_target] if args.key?(:optimization_target) end end @@ -30558,11 +30843,6 @@ def update!(**args) class GoogleCloudAiplatformV1beta1PreferenceOptimizationSpec include Google::Apis::Core::Hashable - # Evaluation Config for Tuning Job. - # Corresponds to the JSON property `evaluationConfig` - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationConfig] - attr_accessor :evaluation_config - # Optional. If set to true, disable intermediate checkpoints for Preference # Optimization and only the last checkpoint will be exported. Otherwise, enable # intermediate checkpoints for Preference Optimization. Default is false. @@ -30594,7 +30874,6 @@ def initialize(**args) # Update properties of this object def update!(**args) - @evaluation_config = args[:evaluation_config] if args.key?(:evaluation_config) @export_last_checkpoint_only = args[:export_last_checkpoint_only] if args.key?(:export_last_checkpoint_only) @hyper_parameters = args[:hyper_parameters] if args.key?(:hyper_parameters) @training_dataset_uri = args[:training_dataset_uri] if args.key?(:training_dataset_uri) @@ -34655,6 +34934,11 @@ class GoogleCloudAiplatformV1beta1ReasoningEngineSpec # @return [String] attr_accessor :service_account + # Specification for deploying from source code. + # Corresponds to the JSON property `sourceCodeSpec` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec] + attr_accessor :source_code_spec + def initialize(**args) update!(**args) end @@ -34666,6 +34950,7 @@ def update!(**args) @deployment_spec = args[:deployment_spec] if args.key?(:deployment_spec) @package_spec = args[:package_spec] if args.key?(:package_spec) @service_account = args[:service_account] if args.key?(:service_account) + @source_code_spec = args[:source_code_spec] if args.key?(:source_code_spec) end end @@ -34783,6 +35068,95 @@ def update!(**args) end end + # Specification for deploying from source code. + class GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec + include Google::Apis::Core::Hashable + + # Specifies source code provided as a byte stream. + # Corresponds to the JSON property `inlineSource` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecInlineSource] + attr_accessor :inline_source + + # Specification for running a Python application from source. + # Corresponds to the JSON property `pythonSpec` + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec] + attr_accessor :python_spec + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @inline_source = args[:inline_source] if args.key?(:inline_source) + @python_spec = args[:python_spec] if args.key?(:python_spec) + end + end + + # Specifies source code provided as a byte stream. + class GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecInlineSource + include Google::Apis::Core::Hashable + + # Required. Input only. The application source code archive, provided as a + # compressed tarball (.tar.gz) file. + # Corresponds to the JSON property `sourceArchive` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :source_archive + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @source_archive = args[:source_archive] if args.key?(:source_archive) + end + end + + # Specification for running a Python application from source. + class GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec + include Google::Apis::Core::Hashable + + # 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. + # 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". + # Corresponds to the JSON property `entrypointObject` + # @return [String] + attr_accessor :entrypoint_object + + # Optional. The path to the requirements file, relative to the source root. If + # not specified, defaults to "requirements.txt". + # Corresponds to the JSON property `requirementsFile` + # @return [String] + attr_accessor :requirements_file + + # Optional. The version of Python to use. Support version includes 3.9, 3.10, 3. + # 11, 3.12, 3.13. If not specified, default value is 3.10. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entrypoint_module = args[:entrypoint_module] if args.key?(:entrypoint_module) + @entrypoint_object = args[:entrypoint_object] if args.key?(:entrypoint_object) + @requirements_file = args[:requirements_file] if args.key?(:requirements_file) + @version = args[:version] if args.key?(:version) + end + end + # Request message for GenAiTuningService.RebaseTunedModel. class GoogleCloudAiplatformV1beta1RebaseTunedModelRequest include Google::Apis::Core::Hashable @@ -35673,6 +36047,13 @@ def update!(**args) class GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest include Google::Apis::Core::Hashable + # Optional. The standard list filter that will be applied to the retrieved + # memories. More detail in [AIP-160](https://google.aip.dev/160). Supported + # fields: * `fact` * `create_time` * `update_time` + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + # 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. @@ -35696,6 +36077,7 @@ def initialize(**args) # Update properties of this object def update!(**args) + @filter = args[:filter] if args.key?(:filter) @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) @@ -48612,11 +48994,12 @@ class GoogleCloudAiplatformV1beta1ToolComputerUse # @return [String] attr_accessor :environment - # Optional. By default, predefined functions are included in the final model - # call. Some of them can be explicitly excluded from being automatically - # included. This can serve two purposes: 1. Using a more restricted / different - # action space. 2. Improving the definitions / instructions of predefined - # functions. + # Optional. By default, [predefined functions](https://cloud.google.com/vertex- + # ai/generative-ai/docs/computer-use#supported-actions) are included in the + # final model call. Some of them can be explicitly excluded from being + # automatically included. This can serve two purposes: 1. Using a more + # restricted / different action space. 2. Improving the definitions / + # instructions of predefined functions. # Corresponds to the JSON property `excludedPredefinedFunctions` # @return [Array] attr_accessor :excluded_predefined_functions diff --git a/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/gem_version.rb b/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/gem_version.rb index 5dba331085b..a75ac70624c 100644 --- a/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/gem_version.rb +++ b/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module AiplatformV1beta1 # Version of the google-apis-aiplatform_v1beta1 gem - GEM_VERSION = "0.64.0" + GEM_VERSION = "0.65.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 = "20251010" + REVISION = "20251027" end end end diff --git a/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/representations.rb b/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/representations.rb index a4512441831..42b5288a2c9 100644 --- a/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/representations.rb +++ b/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/representations.rb @@ -1612,6 +1612,36 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfigTools + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataEvents + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataTools + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1714,6 +1744,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudAiplatformV1beta1EvaluationRunMetric class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3046,6 +3082,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudAiplatformV1beta1ImageConfigImageOutputOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudAiplatformV1beta1ImportDataConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3226,6 +3268,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudAiplatformV1beta1IntermediateExtractedMemory + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5758,6 +5806,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecInlineSource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudAiplatformV1beta1RebaseTunedModelRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -10017,6 +10083,8 @@ class GoogleCloudAiplatformV1beta1CandidateResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :candidate, as: 'candidate' + collection :events, as: 'events', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content::Representation + property :text, as: 'text' property :value, as: 'value' end @@ -11730,6 +11798,8 @@ class Representation < Google::Apis::Core::JsonRepresentation class GoogleCloudAiplatformV1beta1EvaluationInstance # @private class Representation < Google::Apis::Core::JsonRepresentation + property :agent_data, as: 'agentData', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData::Representation + property :other_data, as: 'otherData', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceMapInstance, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceMapInstance::Representation property :prompt, as: 'prompt', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData::Representation @@ -11743,6 +11813,57 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :developer_instruction, as: 'developerInstruction', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData::Representation + + property :tools, as: 'tools', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfigTools, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfigTools::Representation + + property :tools_text, as: 'toolsText' + end + end + + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfigTools + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :tool, as: 'tool', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tool, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tool::Representation + + end + end + + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :agent_config, as: 'agentConfig', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig::Representation + + property :developer_instruction, as: 'developerInstruction', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData::Representation + + property :events, as: 'events', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataEvents, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataEvents::Representation + + property :events_text, as: 'eventsText' + property :tools, as: 'tools', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataTools, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataTools::Representation + + property :tools_text, as: 'toolsText' + end + end + + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataEvents + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :event, as: 'event', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content::Representation + + end + end + + class GoogleCloudAiplatformV1beta1EvaluationInstanceAgentDataTools + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :tool, as: 'tool', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tool, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tool::Representation + + end + end + class GoogleCloudAiplatformV1beta1EvaluationInstanceInstanceData # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -11933,18 +12054,32 @@ class Representation < Google::Apis::Core::JsonRepresentation class GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :agent_config, as: 'agentConfig', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentConfig, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentConfig::Representation + property :generation_config, as: 'generationConfig', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerationConfig, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerationConfig::Representation property :model, as: 'model' end end + class GoogleCloudAiplatformV1beta1EvaluationRunInferenceConfigAgentConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :developer_instruction, as: 'developerInstruction', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content::Representation + + collection :tools, as: 'tools', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tool, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tool::Representation + + end + end + class GoogleCloudAiplatformV1beta1EvaluationRunMetric # @private class Representation < Google::Apis::Core::JsonRepresentation property :llm_based_metric_spec, as: 'llmBasedMetricSpec', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricLlmBasedMetricSpec, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricLlmBasedMetricSpec::Representation property :metric, as: 'metric' + property :metric_config, as: 'metricConfig', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Metric, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Metric::Representation + property :predefined_metric_spec, as: 'predefinedMetricSpec', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricPredefinedMetricSpec, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricPredefinedMetricSpec::Representation property :rubric_based_metric_spec, as: 'rubricBasedMetricSpec', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricBasedMetricSpec, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRunMetricRubricBasedMetricSpec::Representation @@ -13817,6 +13952,8 @@ class Representation < Google::Apis::Core::JsonRepresentation class GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :agent_config, as: 'agentConfig', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationInstanceAgentConfig::Representation + collection :contents, as: 'contents', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content::Representation property :predefined_rubric_generation_spec, as: 'predefinedRubricGenerationSpec', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredefinedMetricSpec, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredefinedMetricSpec::Representation @@ -13880,6 +14017,8 @@ class GoogleCloudAiplatformV1beta1GenerateMemoriesRequestDirectMemoriesSourceDir # @private class Representation < Google::Apis::Core::JsonRepresentation property :fact, as: 'fact' + collection :topics, as: 'topics', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryTopicId, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryTopicId::Representation + end end @@ -14228,6 +14367,17 @@ class GoogleCloudAiplatformV1beta1ImageConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :aspect_ratio, as: 'aspectRatio' + property :image_output_options, as: 'imageOutputOptions', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImageConfigImageOutputOptions, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImageConfigImageOutputOptions::Representation + + property :person_generation, as: 'personGeneration' + end + end + + class GoogleCloudAiplatformV1beta1ImageConfigImageOutputOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :compression_quality, as: 'compressionQuality' + property :mime_type, as: 'mimeType' end end @@ -14595,6 +14745,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudAiplatformV1beta1IntermediateExtractedMemory + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :fact, as: 'fact' + end + end + class GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -15380,6 +15537,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :revision_expire_time, as: 'revisionExpireTime' property :revision_ttl, as: 'revisionTtl' hash :scope, as: 'scope' + collection :topics, as: 'topics', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryTopicId, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryTopicId::Representation + property :ttl, as: 'ttl' property :update_time, as: 'updateTime' end @@ -15461,6 +15620,8 @@ class GoogleCloudAiplatformV1beta1MemoryRevision class Representation < Google::Apis::Core::JsonRepresentation property :create_time, as: 'createTime' property :expire_time, as: 'expireTime' + collection :extracted_memories, as: 'extractedMemories', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IntermediateExtractedMemory, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IntermediateExtractedMemory::Representation + property :fact, as: 'fact' hash :labels, as: 'labels' property :name, as: 'name' @@ -17033,6 +17194,7 @@ class GoogleCloudAiplatformV1beta1OptimizePromptRequest class Representation < Google::Apis::Core::JsonRepresentation property :content, as: 'content', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content::Representation + property :optimization_target, as: 'optimizationTarget' end end @@ -17659,8 +17821,6 @@ class Representation < Google::Apis::Core::JsonRepresentation class GoogleCloudAiplatformV1beta1PreferenceOptimizationSpec # @private class Representation < Google::Apis::Core::JsonRepresentation - property :evaluation_config, as: 'evaluationConfig', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationConfig, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationConfig::Representation - property :export_last_checkpoint_only, as: 'exportLastCheckpointOnly' property :hyper_parameters, as: 'hyperParameters', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PreferenceOptimizationHyperParameters, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PreferenceOptimizationHyperParameters::Representation @@ -18920,6 +19080,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :package_spec, as: 'packageSpec', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec::Representation property :service_account, as: 'serviceAccount' + property :source_code_spec, as: 'sourceCodeSpec', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec::Representation + end end @@ -18950,6 +19112,33 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :inline_source, as: 'inlineSource', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecInlineSource, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecInlineSource::Representation + + property :python_spec, as: 'pythonSpec', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec::Representation + + end + end + + class GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecInlineSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :source_archive, :base64 => true, as: 'sourceArchive' + end + end + + class GoogleCloudAiplatformV1beta1ReasoningEngineSpecSourceCodeSpecPythonSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :entrypoint_module, as: 'entrypointModule' + property :entrypoint_object, as: 'entrypointObject' + property :requirements_file, as: 'requirementsFile' + property :version, as: 'version' + end + end + class GoogleCloudAiplatformV1beta1RebaseTunedModelRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -19242,6 +19431,7 @@ class Representation < Google::Apis::Core::JsonRepresentation class GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :filter, as: 'filter' hash :scope, as: 'scope' property :similarity_search_params, as: 'similaritySearchParams', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesRequestSimilaritySearchParams, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesRequestSimilaritySearchParams::Representation diff --git a/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/service.rb b/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/service.rb index 5533537dc44..99f7a5a929e 100644 --- a/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/service.rb +++ b/generated/google-apis-aiplatform_v1beta1/lib/google/apis/aiplatform_v1beta1/service.rb @@ -52,12 +52,16 @@ def initialize @batch_path = 'batch' end - # Creates a BatchPredictionJob. A BatchPredictionJob once created will right - # away be attempted to start. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] google_cloud_aiplatform_v1beta1_batch_prediction_job_object - # @param [String] parent - # Required. The resource name of the Location to create the BatchPredictionJob - # in. Format: `projects/`project`/locations/`location`` + # 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 @@ -67,30 +71,30 @@ def initialize # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] + # @return [Google::Apis::AiplatformV1beta1::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 create_batch_prediction_job(google_cloud_aiplatform_v1beta1_batch_prediction_job_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/batchPredictionJobs', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation - command.request_object = google_cloud_aiplatform_v1beta1_batch_prediction_job_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob - command.query['parent'] = parent unless parent.nil? + def cancel_agent_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a BatchPredictionJob + # 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 - # Required. The name of the BatchPredictionJob resource. Format: `projects/` - # project`/locations/`location`/batchPredictionJobs/`batch_prediction_job`` + # 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 @@ -100,47 +104,72 @@ def create_batch_prediction_job(google_cloud_aiplatform_v1beta1_batch_prediction # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] + # @return [Google::Apis::AiplatformV1beta1::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 get_batch_prediction_job(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_agent_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_agent_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 BatchPredictionJobs in a Location. + # 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. Supported fields: * `display_name` supports `=`, `!=` - # comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` - # comparisons. * `state` supports `=`, `!=` comparisons. * `create_time` - # supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be in - # RFC 3339 format. * `labels` supports general map functions that is: `labels. - # key=value` - key:value equality `labels.key:* - key existence Some examples of - # using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_* - # "` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name=" - # my_job"` * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * ` - # labels.keyB:*` + # The standard list filter. # @param [Fixnum] page_size # The standard list page size. # @param [String] page_token - # The standard list page token. Typically obtained via - # ListBatchPredictionJobsResponse.next_page_token of the previous JobService. - # ListBatchPredictionJobs call. - # @param [String] parent - # Required. The resource name of the Location to list the BatchPredictionJobs - # from. Format: `projects/`project`/locations/`location`` - # @param [String] read_mask - # Mask specifying which fields to read. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -150,33 +179,42 @@ def get_batch_prediction_job(name, fields: nil, quota_user: nil, options: nil, & # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_batch_prediction_jobs(filter: nil, page_size: nil, page_token: nil, parent: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/batchPredictionJobs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse + def list_agent_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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['parent'] = parent unless parent.nil? - command.query['readMask'] = read_mask unless read_mask.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 - # Creates a Dataset. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] google_cloud_aiplatform_v1beta1_dataset_object - # @param [String] parent - # Required. The resource name of the Location to create the Dataset in. Format: ` - # projects/`project`/locations/`location`` + # 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 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 @@ -194,22 +232,27 @@ def list_batch_prediction_jobs(filter: nil, page_size: nil, page_token: nil, par # @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_dataset(google_cloud_aiplatform_v1beta1_dataset_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/datasets', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation - command.request_object = google_cloud_aiplatform_v1beta1_dataset_object + def wait_agent_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.query['parent'] = parent unless parent.nil? + 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 - # Deletes a Dataset. + # 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 - # Required. The resource name of the Dataset to delete. Format: `projects/` - # project`/locations/`location`/datasets/`dataset`` + # 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 @@ -219,29 +262,30 @@ def create_dataset(google_cloud_aiplatform_v1beta1_dataset_object = nil, parent: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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_dataset(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def cancel_app_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a Dataset. + # 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 - # Required. The name of the Dataset resource. - # @param [String] read_mask - # Mask specifying which fields to read. + # 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 @@ -251,47 +295,28 @@ def delete_dataset(name, fields: nil, quota_user: nil, options: nil, &block) # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] + # @return [Google::Apis::AiplatformV1beta1::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 get_dataset(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset + def delete_app_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? - command.query['readMask'] = read_mask unless read_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 Datasets in a Location. - # @param [String] filter - # An expression for filtering the results of the request. For field names both - # snake_case and camelCase are supported. * `display_name`: supports = and != * ` - # metadata_schema_uri`: supports = and != * `labels` supports general map - # functions that is: * `labels.key=value` - key:value equality * `labels.key:* - # or labels:key - key existence * A key including a space must be quoted. ` - # labels."a key"`. Some examples: * `displayName="myDisplayName"` * `labels. - # myKey="myValue"` - # @param [String] order_by - # A comma-separated list of fields to order by, sorted in ascending order. Use " - # desc" after a field name for descending. Supported fields: * `display_name` * ` - # create_time` * `update_time` - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. - # @param [String] parent - # Required. The name of the Dataset's parent resource. Format: `projects/` - # project`/locations/`location`` - # @param [String] read_mask - # Mask specifying which fields to read. + # 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 @@ -301,38 +326,41 @@ def get_dataset(name, read_mask: nil, fields: nil, quota_user: nil, options: nil # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_datasets(filter: nil, order_by: nil, page_size: nil, page_token: nil, parent: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/datasets', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse - 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['parent'] = parent unless parent.nil? - command.query['readMask'] = read_mask unless read_mask.nil? + def get_app_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Updates a Dataset. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Output only. Identifier. The resource name of the Dataset. Format: `projects/` - # project`/locations/`location`/datasets/`dataset`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] google_cloud_aiplatform_v1beta1_dataset_object - # @param [String] update_mask - # Required. The update mask applies to the resource. For the `FieldMask` - # definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * - # `description` * `labels` + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -342,32 +370,42 @@ def list_datasets(filter: nil, order_by: nil, page_size: nil, page_token: nil, p # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] + # @return [Google::Apis::AiplatformV1beta1::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 patch_dataset(name, google_cloud_aiplatform_v1beta1_dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation - command.request_object = google_cloud_aiplatform_v1beta1_dataset_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset + def list_app_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.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 - # Create a version from a Dataset. - # @param [String] parent - # Required. The name of the Dataset resource. Format: `projects/`project`/ - # locations/`location`/datasets/`dataset`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] google_cloud_aiplatform_v1beta1_dataset_version_object + # 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 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 @@ -385,23 +423,23 @@ def patch_dataset(name, google_cloud_aiplatform_v1beta1_dataset_object = nil, up # @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_dataset_dataset_version(parent, google_cloud_aiplatform_v1beta1_dataset_version_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/datasetVersions', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation - command.request_object = google_cloud_aiplatform_v1beta1_dataset_version_object + def wait_app_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + 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 - # Deletes a Dataset version. - # @param [String] name - # Required. The resource name of the Dataset version to delete. Format: ` - # projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/` - # dataset_version`` + # Creates a BatchPredictionJob. A BatchPredictionJob once created will right + # away be attempted to start. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] google_cloud_aiplatform_v1beta1_batch_prediction_job_object + # @param [String] parent + # Required. The resource name of the Location to create the BatchPredictionJob + # in. Format: `projects/`project`/locations/`location`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -411,31 +449,30 @@ def create_dataset_dataset_version(parent, google_cloud_aiplatform_v1beta1_datas # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] # # @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_dataset_dataset_version(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + def create_batch_prediction_job(google_cloud_aiplatform_v1beta1_batch_prediction_job_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/batchPredictionJobs', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation + command.request_object = google_cloud_aiplatform_v1beta1_batch_prediction_job_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob + command.query['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 - # Gets a Dataset version. + # Gets a BatchPredictionJob # @param [String] name - # Required. The resource name of the Dataset version to delete. Format: ` - # projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/` - # dataset_version`` - # @param [String] read_mask - # Mask specifying which fields to read. + # Required. The name of the BatchPredictionJob resource. Format: `projects/` + # project`/locations/`location`/batchPredictionJobs/`batch_prediction_job`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -445,40 +482,47 @@ def delete_dataset_dataset_version(name, fields: nil, quota_user: nil, options: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] # # @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_dataset_dataset_version(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + def get_batch_prediction_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob command.params['name'] = name unless name.nil? - command.query['readMask'] = read_mask unless read_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 DatasetVersions in a Dataset. - # @param [String] parent - # Required. The resource name of the Dataset to list DatasetVersions from. - # Format: `projects/`project`/locations/`location`/datasets/`dataset`` + # Lists BatchPredictionJobs in a Location. # @param [String] filter - # Optional. The standard list filter. - # @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. + # The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + # comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` + # comparisons. * `state` supports `=`, `!=` comparisons. * `create_time` + # supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be in + # RFC 3339 format. * `labels` supports general map functions that is: `labels. + # key=value` - key:value equality `labels.key:* - key existence Some examples of + # using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_* + # "` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name=" + # my_job"` * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * ` + # labels.keyB:*` # @param [Fixnum] page_size - # Optional. The standard list page size. + # The standard list page size. # @param [String] page_token - # Optional. The standard list page token. + # The standard list page token. Typically obtained via + # ListBatchPredictionJobsResponse.next_page_token of the previous JobService. + # ListBatchPredictionJobs call. + # @param [String] parent + # Required. The resource name of the Location to list the BatchPredictionJobs + # from. Format: `projects/`project`/locations/`location`` # @param [String] read_mask - # Optional. Mask specifying which fields to read. + # Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -488,38 +532,38 @@ def get_dataset_dataset_version(name, read_mask: nil, fields: nil, quota_user: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse] # # @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_dataset_dataset_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/datasetVersions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse - command.params['parent'] = parent unless parent.nil? + def list_batch_prediction_jobs(filter: nil, page_size: nil, page_token: nil, parent: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/batchPredictionJobs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse 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['parent'] = parent unless parent.nil? command.query['readMask'] = read_mask unless read_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 - # Updates a DatasetVersion. + # 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 - # Output only. Identifier. The resource name of the DatasetVersion. Format: ` - # projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/` - # dataset_version`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] google_cloud_aiplatform_v1beta1_dataset_version_object - # @param [String] update_mask - # Required. The update mask applies to the resource. For the `FieldMask` - # definition, see google.protobuf.FieldMask. Updatable fields: * `display_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 @@ -529,31 +573,30 @@ def list_dataset_dataset_versions(parent, filter: nil, order_by: nil, page_size: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] + # @return [Google::Apis::AiplatformV1beta1::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 patch_dataset_dataset_version(name, google_cloud_aiplatform_v1beta1_dataset_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation - command.request_object = google_cloud_aiplatform_v1beta1_dataset_version_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion + def cancel_custom_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty 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 - # Restores a dataset version. + # 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 - # Required. The name of the DatasetVersion resource. Format: `projects/`project`/ - # locations/`location`/datasets/`dataset`/datasetVersions/`dataset_version`` + # 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 @@ -563,29 +606,28 @@ def patch_dataset_dataset_version(name, google_cloud_aiplatform_v1beta1_dataset_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 restore_dataset_dataset_version(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}:restore', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def delete_custom_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Return a list of tokens based on the input text. - # @param [String] endpoint - # Required. The name of the Endpoint requested to get lists of tokens and token - # ids. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest] google_cloud_aiplatform_v1beta1_compute_tokens_request_object + # 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 @@ -595,31 +637,41 @@ def restore_dataset_dataset_version(name, fields: nil, quota_user: nil, options: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] + # @return [Google::Apis::AiplatformV1beta1::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 compute_endpoint_tokens(endpoint, google_cloud_aiplatform_v1beta1_compute_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:computeTokens', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_compute_tokens_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + def get_custom_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Perform a token counting. - # @param [String] endpoint - # Required. The name of the Endpoint requested to perform token counting. Format: - # `projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest] google_cloud_aiplatform_v1beta1_count_tokens_request_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -629,32 +681,42 @@ def compute_endpoint_tokens(endpoint, google_cloud_aiplatform_v1beta1_compute_to # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] + # @return [Google::Apis::AiplatformV1beta1::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 count_endpoint_tokens(endpoint, google_cloud_aiplatform_v1beta1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:countTokens', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_count_tokens_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse - command.params['endpoint'] = endpoint unless endpoint.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end + def list_custom_job_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Fetch an asynchronous online prediction operation. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` - # project`/locations/`location`/publishers/`publisher`/models/`model`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest] google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object + # 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 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 @@ -672,25 +734,27 @@ def count_endpoint_tokens(endpoint, google_cloud_aiplatform_v1beta1_count_tokens # @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 fetch_endpoint_predict_operation(endpoint, google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:fetchPredictOperation', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object + def wait_custom_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['endpoint'] = endpoint unless endpoint.nil? + 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 - # Generate content with multimodal inputs. - # @param [String] model - # Required. The fully qualified name of the publisher model or tuned model - # endpoint to use. Publisher model format: `projects/`project`/locations/` - # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` - # project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object + # 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 @@ -700,31 +764,30 @@ def fetch_endpoint_predict_operation(endpoint, google_cloud_aiplatform_v1beta1_f # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] + # @return [Google::Apis::AiplatformV1beta1::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 generate_endpoint_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+model}:generateContent', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse - command.params['model'] = model unless model.nil? + def cancel_data_labeling_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Perform an online prediction. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest] google_cloud_aiplatform_v1beta1_predict_request_object + # 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 @@ -734,32 +797,28 @@ def generate_endpoint_content(model, google_cloud_aiplatform_v1beta1_generate_co # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] + # @return [Google::Apis::AiplatformV1beta1::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 predict_endpoint(endpoint, google_cloud_aiplatform_v1beta1_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:predict', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_predict_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + def delete_data_labeling_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` - # project`/locations/`location`/publishers/`publisher`/models/`model`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest] google_cloud_aiplatform_v1beta1_predict_long_running_request_object + # 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 @@ -777,25 +836,33 @@ def predict_endpoint(endpoint, google_cloud_aiplatform_v1beta1_predict_request_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 predict_endpoint_long_running(endpoint, google_cloud_aiplatform_v1beta1_predict_long_running_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:predictLongRunning', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_predict_long_running_request_object + def get_data_labeling_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['endpoint'] = endpoint unless endpoint.nil? + 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 - # Generate content with multimodal inputs with streaming support. - # @param [String] model - # Required. The fully qualified name of the publisher model or tuned model - # endpoint to use. Publisher model format: `projects/`project`/locations/` - # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` - # project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -805,31 +872,42 @@ def predict_endpoint_long_running(endpoint, google_cloud_aiplatform_v1beta1_pred # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] + # @return [Google::Apis::AiplatformV1beta1::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 stream_endpoint_generate_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+model}:streamGenerateContent', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse - command.params['model'] = model unless model.nil? + def list_data_labeling_job_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Exposes an OpenAI-compatible endpoint for chat completions. - # @param [String] endpoint - # Required. The name of the endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] google_api_http_body_object + # 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 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 @@ -839,74 +917,63 @@ def stream_endpoint_generate_content(model, google_cloud_aiplatform_v1beta1_gene # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] + # @return [Google::Apis::AiplatformV1beta1::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 completions_endpoint_chat(endpoint, google_api_http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}/chat/completions', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.request_object = google_api_http_body_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody - command.params['endpoint'] = endpoint unless endpoint.nil? + def wait_data_labeling_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Upload a file into a RagCorpus. + # Creates a Dataset. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] google_cloud_aiplatform_v1beta1_dataset_object # @param [String] parent - # Required. The name of the RagCorpus resource into which to upload the file. - # Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileRequest] google_cloud_aiplatform_v1beta1_upload_rag_file_request_object + # Required. The resource name of the Location to create the Dataset in. Format: ` + # projects/`project`/locations/`location`` # @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 [IO, String] upload_source - # IO stream or filename containing content to upload - # @param [String] content_type - # Content type of the uploaded content. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse] + # @return [Google::Apis::AiplatformV1beta1::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 upload_medium(parent, google_cloud_aiplatform_v1beta1_upload_rag_file_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) - if upload_source.nil? - command = make_simple_command(:post, 'v1beta1/{+parent}/ragFiles:upload', options) - else - command = make_upload_command(:post, 'v1beta1/{+parent}/ragFiles:upload', options) - command.upload_source = upload_source - command.upload_content_type = content_type - end - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_upload_rag_file_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse - command.params['parent'] = parent unless parent.nil? + def create_dataset(google_cloud_aiplatform_v1beta1_dataset_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/datasets', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation + command.request_object = google_cloud_aiplatform_v1beta1_dataset_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.query['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 - # Fetches the configs of publisher models. + # Deletes a Dataset. # @param [String] name - # Required. The name of the publisher model, in the format of `projects/`project` - # /locations/`location`/publishers/`publisher`/models/`model``. + # Required. The resource name of the Dataset to delete. Format: `projects/` + # project`/locations/`location`/datasets/`dataset`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -916,27 +983,29 @@ def upload_medium(parent, google_cloud_aiplatform_v1beta1_upload_rag_file_reques # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig] + # @return [Google::Apis::AiplatformV1beta1::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 fetch_project_publisher_model_config(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}:fetchPublisherModelConfig', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig + def delete_dataset(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a GenAI cache config. + # Gets a Dataset. # @param [String] name - # Required. Name of the cache config. Format: - `projects/`project`/cacheConfig`. + # Required. The name of the Dataset resource. + # @param [String] read_mask + # Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -946,30 +1015,47 @@ def fetch_project_publisher_model_config(name, fields: nil, quota_user: nil, opt # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] # # @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_cache_config(name, fields: nil, quota_user: nil, options: nil, &block) + def get_dataset(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset command.params['name'] = name unless name.nil? + command.query['readMask'] = read_mask unless read_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 - # Sets (creates or updates) configs of publisher models. For example, sets the - # request/response logging config. - # @param [String] name - # Required. The name of the publisher model, in the format of `projects/`project` - # /locations/`location`/publishers/`publisher`/models/`model``. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest] google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object + # Lists Datasets in a Location. + # @param [String] filter + # An expression for filtering the results of the request. For field names both + # snake_case and camelCase are supported. * `display_name`: supports = and != * ` + # metadata_schema_uri`: supports = and != * `labels` supports general map + # functions that is: * `labels.key=value` - key:value equality * `labels.key:* + # or labels:key - key existence * A key including a space must be quoted. ` + # labels."a key"`. Some examples: * `displayName="myDisplayName"` * `labels. + # myKey="myValue"` + # @param [String] order_by + # A comma-separated list of fields to order by, sorted in ascending order. Use " + # desc" after a field name for descending. Supported fields: * `display_name` * ` + # create_time` * `update_time` + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] parent + # Required. The name of the Dataset's parent resource. Format: `projects/` + # project`/locations/`location`` + # @param [String] read_mask + # Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -979,31 +1065,38 @@ def get_project_cache_config(name, fields: nil, quota_user: nil, options: nil, & # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse] # # @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 set_project_publisher_model_config(name, google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:setPublisherModelConfig', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + def list_datasets(filter: nil, order_by: nil, page_size: nil, page_token: nil, parent: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/datasets', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse + 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['parent'] = parent unless parent.nil? + command.query['readMask'] = read_mask unless read_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 - # Updates a cache config. + # Updates a Dataset. # @param [String] name - # Identifier. Name of the cache config. Format: - `projects/`project`/ - # cacheConfig`. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig] google_cloud_aiplatform_v1beta1_cache_config_object + # Output only. Identifier. The resource name of the Dataset. Format: `projects/` + # project`/locations/`location`/datasets/`dataset`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] google_cloud_aiplatform_v1beta1_dataset_object + # @param [String] update_mask + # Required. The update mask applies to the resource. For the `FieldMask` + # definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * + # `description` * `labels` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1013,33 +1106,37 @@ def set_project_publisher_model_config(name, google_cloud_aiplatform_v1beta1_set # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] # # @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 update_project_cache_config(name, google_cloud_aiplatform_v1beta1_cache_config_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_dataset(name, google_cloud_aiplatform_v1beta1_dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig::Representation - command.request_object = google_cloud_aiplatform_v1beta1_cache_config_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation + command.request_object = google_cloud_aiplatform_v1beta1_dataset_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset 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 - # Given an input prompt, it returns augmented prompt from vertex rag store to - # guide LLM towards generating grounded responses. - # @param [String] parent - # Required. The resource name of the Location from which to augment prompt. The - # users must have permission to make a call in the project. Format: `projects/` - # project`/locations/`location``. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AugmentPromptRequest] google_cloud_aiplatform_v1beta1_augment_prompt_request_object + # 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 @@ -1049,34 +1146,30 @@ def update_project_cache_config(name, google_cloud_aiplatform_v1beta1_cache_conf # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AugmentPromptResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AugmentPromptResponse] + # @return [Google::Apis::AiplatformV1beta1::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 augment_project_location_prompt(parent, google_cloud_aiplatform_v1beta1_augment_prompt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}:augmentPrompt', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AugmentPromptRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_augment_prompt_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AugmentPromptResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AugmentPromptResponse - command.params['parent'] = parent unless parent.nil? + def cancel_dataset_annotation_spec_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Given an input text, it returns a score that evaluates the factuality of the - # text. It also extracts and returns claims from the text and provides - # supporting facts. - # @param [String] parent - # Required. The resource name of the Location from which to corroborate text. - # The users must have permission to make a call in the project. Format: ` - # projects/`project`/locations/`location``. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CorroborateContentRequest] google_cloud_aiplatform_v1beta1_corroborate_content_request_object + # 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 @@ -1086,31 +1179,28 @@ def augment_project_location_prompt(parent, google_cloud_aiplatform_v1beta1_augm # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CorroborateContentResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CorroborateContentResponse] + # @return [Google::Apis::AiplatformV1beta1::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 corroborate_project_location_content(parent, google_cloud_aiplatform_v1beta1_corroborate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}:corroborateContent', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CorroborateContentRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_corroborate_content_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CorroborateContentResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CorroborateContentResponse - command.params['parent'] = parent unless parent.nil? + def delete_dataset_annotation_spec_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Deploys a model to a new endpoint. - # @param [String] destination - # Required. The resource name of the Location to deploy the model in. Format: ` - # projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployRequest] google_cloud_aiplatform_v1beta1_deploy_request_object + # 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 @@ -1128,23 +1218,33 @@ def corroborate_project_location_content(parent, google_cloud_aiplatform_v1beta1 # @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 deploy_project_location(destination, google_cloud_aiplatform_v1beta1_deploy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+destination}:deploy', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_deploy_request_object + def get_dataset_annotation_spec_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['destination'] = destination unless destination.nil? + 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 - # Deploys publisher models. - # @param [String] destination - # Required. The resource name of the Location to deploy the model in. Format: ` - # projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployPublisherModelRequest] google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -1154,31 +1254,42 @@ def deploy_project_location(destination, google_cloud_aiplatform_v1beta1_deploy_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 deploy_project_location_publisher_model(destination, google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+destination}:deployPublisherModel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployPublisherModelRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['destination'] = destination unless destination.nil? + def list_dataset_annotation_spec_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Evaluates a dataset based on a set of given metrics. - # @param [String] location - # Required. The resource name of the Location to evaluate the dataset. Format: ` - # projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateDatasetRequest] google_cloud_aiplatform_v1beta1_evaluate_dataset_request_object + # 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 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 @@ -1196,23 +1307,27 @@ def deploy_project_location_publisher_model(destination, google_cloud_aiplatform # @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 evaluate_project_location_dataset(location, google_cloud_aiplatform_v1beta1_evaluate_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+location}:evaluateDataset', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateDatasetRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_evaluate_dataset_request_object + def wait_dataset_annotation_spec_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['location'] = location unless location.nil? + 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 - # Evaluates instances based on a given metric. - # @param [String] location - # Required. The resource name of the Location to evaluate the instances. Format: - # `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesRequest] google_cloud_aiplatform_v1beta1_evaluate_instances_request_object + # 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 @@ -1222,34 +1337,30 @@ def evaluate_project_location_dataset(location, google_cloud_aiplatform_v1beta1_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesResponse] + # @return [Google::Apis::AiplatformV1beta1::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 evaluate_project_location_instances(location, google_cloud_aiplatform_v1beta1_evaluate_instances_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+location}:evaluateInstances', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_evaluate_instances_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesResponse - command.params['location'] = location unless location.nil? - command.query['fields'] = fields unless fields.nil? + def cancel_dataset_data_item_annotation_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Generates rubrics for a given prompt. A rubric represents a single testable - # criterion for evaluation. One input prompt could have multiple rubrics This - # RPC allows users to get suggested rubrics based on provided prompt, which can - # then be reviewed and used for subsequent evaluations. - # @param [String] location - # Required. The resource name of the Location to generate rubrics from. Format: ` - # projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest] google_cloud_aiplatform_v1beta1_generate_instance_rubrics_request_object + # 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 @@ -1259,31 +1370,28 @@ def evaluate_project_location_instances(location, google_cloud_aiplatform_v1beta # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 generate_project_location_instance_rubrics(location, google_cloud_aiplatform_v1beta1_generate_instance_rubrics_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+location}:generateInstanceRubrics', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_instance_rubrics_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse - command.params['location'] = location unless location.nil? + def delete_dataset_data_item_annotation_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Generates synthetic data based on the provided configuration. - # @param [String] location - # Required. The resource name of the Location to run the job. Format: `projects/` - # project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataRequest] google_cloud_aiplatform_v1beta1_generate_synthetic_data_request_object + # 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 @@ -1293,29 +1401,41 @@ def generate_project_location_instance_rubrics(location, google_cloud_aiplatform # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataResponse] + # @return [Google::Apis::AiplatformV1beta1::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 generate_project_location_synthetic_data(location, google_cloud_aiplatform_v1beta1_generate_synthetic_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+location}:generateSyntheticData', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_synthetic_data_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataResponse - command.params['location'] = location unless location.nil? + def get_dataset_data_item_annotation_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 information about a location. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Resource name for the location. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -1325,28 +1445,42 @@ def generate_project_location_synthetic_data(location, google_cloud_aiplatform_v # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudLocationLocation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudLocationLocation] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudLocationLocation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudLocationLocation + def list_dataset_data_item_annotation_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Gets a RagEngineConfig. + # 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 RagEngineConfig resource. Format: `projects/`project` - # /locations/`location`/ragEngineConfig` + # 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 @@ -1356,40 +1490,143 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig] + # @return [Google::Apis::AiplatformV1beta1::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_rag_engine_config(name, fields: nil, quota_user: nil, options: nil, &block) + def wait_dataset_data_item_annotation_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_dataset_data_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_dataset_data_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_dataset_data_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 information about the supported locations for this service. + # 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 resource that owns the locations collection, if applicable. - # @param [Array, String] extra_location_types - # Optional. Unless explicitly documented otherwise, don't use this unsupported - # field which is primarily intended for internal usage. + # The name of the operation's parent resource. # @param [String] filter - # A filter to narrow down results to a preferred subset. The filtering language - # accepts strings like `"displayName=tokyo"`, and is documented in more detail - # in [AIP-160](https://google.aip.dev/160). + # The standard list filter. # @param [Fixnum] page_size - # The maximum number of results to return. If not set, the service selects a - # default. + # The standard list page size. # @param [String] page_token - # A page token received from the `next_page_token` field in the response. Send - # that page token to receive the subsequent page. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -1399,35 +1636,75 @@ def get_project_location_rag_engine_config(name, fields: nil, quota_user: nil, o # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudLocationListLocationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudLocationListLocationsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}/locations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudLocationListLocationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudLocationListLocationsResponse + def list_dataset_data_item_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? - command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.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 - # Gets a Model's spec recommendations. This API is called by UI, SDK, and - # internal. + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_dataset_data_item_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Create a version from a Dataset. # @param [String] parent - # Required. The resource name of the Location from which to recommend specs. The - # users must have permission to make a call in the project. Format: `projects/` - # project`/locations/`location``. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecRequest] google_cloud_aiplatform_v1beta1_recommend_spec_request_object + # Required. The name of the Dataset resource. Format: `projects/`project`/ + # locations/`location`/datasets/`dataset`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] google_cloud_aiplatform_v1beta1_dataset_version_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1437,32 +1714,108 @@ def list_project_locations(name, extra_location_types: nil, filter: nil, page_si # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse] + # @return [Google::Apis::AiplatformV1beta1::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 recommend_project_location_spec(parent, google_cloud_aiplatform_v1beta1_recommend_spec_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}:recommendSpec', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_recommend_spec_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse + def create_dataset_dataset_version(parent, google_cloud_aiplatform_v1beta1_dataset_version_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/datasetVersions', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation + command.request_object = google_cloud_aiplatform_v1beta1_dataset_version_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Retrieves relevant contexts for a query. + # Deletes a Dataset version. + # @param [String] name + # Required. The resource name of the Dataset version to delete. Format: ` + # projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/` + # dataset_version`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_dataset_dataset_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a Dataset version. + # @param [String] name + # Required. The resource name of the Dataset version to delete. Format: ` + # projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/` + # dataset_version`` + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] + # + # @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_dataset_dataset_version(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion + command.params['name'] = name unless name.nil? + command.query['readMask'] = read_mask unless read_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 DatasetVersions in a Dataset. # @param [String] parent - # Required. The resource name of the Location from which to retrieve RagContexts. - # The users must have permission to make a call in the project. Format: ` - # projects/`project`/locations/`location``. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsRequest] google_cloud_aiplatform_v1beta1_retrieve_contexts_request_object + # Required. The resource name of the Dataset to list DatasetVersions from. + # Format: `projects/`project`/locations/`location`/datasets/`dataset`` + # @param [String] filter + # Optional. The standard list filter. + # @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. + # @param [Fixnum] page_size + # Optional. The standard list page size. + # @param [String] page_token + # Optional. The standard list page token. + # @param [String] read_mask + # Optional. Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1472,31 +1825,72 @@ def recommend_project_location_spec(parent, google_cloud_aiplatform_v1beta1_reco # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse] # # @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 retrieve_project_location_contexts(parent, google_cloud_aiplatform_v1beta1_retrieve_contexts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}:retrieveContexts', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_retrieve_contexts_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse + def list_dataset_dataset_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/datasetVersions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse 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['readMask'] = read_mask unless read_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 - # Updates a RagEngineConfig. + # Updates a DatasetVersion. # @param [String] name - # Identifier. The name of the RagEngineConfig. Format: `projects/`project`/ - # locations/`location`/ragEngineConfig` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig] google_cloud_aiplatform_v1beta1_rag_engine_config_object + # Output only. Identifier. The resource name of the DatasetVersion. Format: ` + # projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/` + # dataset_version`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] google_cloud_aiplatform_v1beta1_dataset_version_object + # @param [String] update_mask + # Required. The update mask applies to the resource. For the `FieldMask` + # definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] + # + # @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_dataset_dataset_version(name, google_cloud_aiplatform_v1beta1_dataset_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation + command.request_object = google_cloud_aiplatform_v1beta1_dataset_version_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion + 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 + + # Restores a dataset version. + # @param [String] name + # Required. The name of the DatasetVersion resource. Format: `projects/`project`/ + # locations/`location`/datasets/`dataset`/datasetVersions/`dataset_version`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1514,10 +1908,8 @@ def retrieve_project_location_contexts(parent, google_cloud_aiplatform_v1beta1_r # @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 update_project_location_rag_engine_config(name, google_cloud_aiplatform_v1beta1_rag_engine_config_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig::Representation - command.request_object = google_cloud_aiplatform_v1beta1_rag_engine_config_object + def restore_dataset_dataset_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}:restore', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -1553,7 +1945,7 @@ def update_project_location_rag_engine_config(name, google_cloud_aiplatform_v1be # @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_agent_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_dataset_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -1586,7 +1978,7 @@ def cancel_project_location_agent_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_project_location_agent_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_dataset_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -1617,7 +2009,7 @@ def delete_project_location_agent_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_project_location_agent_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_dataset_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -1661,7 +2053,7 @@ def get_project_location_agent_operation(name, fields: nil, quota_user: nil, opt # @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_agent_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_dataset_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -1706,7 +2098,7 @@ def list_project_location_agent_operations(name, filter: nil, page_size: nil, pa # @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_project_location_agent_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_dataset_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -1744,7 +2136,7 @@ def wait_project_location_agent_operation(name, timeout: nil, fields: nil, quota # @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_app_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_dataset_saved_query_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -1777,7 +2169,7 @@ def cancel_project_location_app_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 delete_project_location_app_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_dataset_saved_query_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -1808,7 +2200,7 @@ def delete_project_location_app_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 get_project_location_app_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_dataset_saved_query_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -1852,7 +2244,7 @@ def get_project_location_app_operation(name, fields: nil, quota_user: nil, optio # @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_app_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_dataset_saved_query_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -1897,7 +2289,7 @@ def list_project_location_app_operations(name, filter: nil, page_size: nil, page # @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_project_location_app_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_dataset_saved_query_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -1908,17 +2300,16 @@ def wait_project_location_app_operation(name, timeout: nil, fields: nil, quota_u execute_or_queue_command(command, &block) end - # Cancels a BatchPredictionJob. Starts asynchronous cancellation on the - # BatchPredictionJob. The server makes the best effort to cancel the job, but - # success is not guaranteed. Clients can use JobService.GetBatchPredictionJob or - # other methods to check whether the cancellation succeeded or whether the job - # completed despite cancellation. On a successful cancellation, the - # BatchPredictionJob is not deleted;instead its BatchPredictionJob.state is set - # to `CANCELLED`. Any files already outputted by the job are not deleted. + # 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 - # Required. The name of the BatchPredictionJob to cancel. Format: `projects/` - # project`/locations/`location`/batchPredictionJobs/`batch_prediction_job`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest] google_cloud_aiplatform_v1beta1_cancel_batch_prediction_job_request_object + # 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 @@ -1936,10 +2327,8 @@ def wait_project_location_app_operation(name, timeout: nil, fields: nil, quota_u # @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_batch_prediction_job(name, google_cloud_aiplatform_v1beta1_cancel_batch_prediction_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def cancel_deployment_resource_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_cancel_batch_prediction_job_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? @@ -1948,12 +2337,12 @@ def cancel_project_location_batch_prediction_job(name, google_cloud_aiplatform_v execute_or_queue_command(command, &block) end - # Creates a BatchPredictionJob. A BatchPredictionJob once created will right - # away be attempted to start. - # @param [String] parent - # Required. The resource name of the Location to create the BatchPredictionJob - # in. Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] google_cloud_aiplatform_v1beta1_batch_prediction_job_object + # 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 @@ -1963,31 +2352,28 @@ def cancel_project_location_batch_prediction_job(name, google_cloud_aiplatform_v # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_batch_prediction_job(parent, google_cloud_aiplatform_v1beta1_batch_prediction_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/batchPredictionJobs', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation - command.request_object = google_cloud_aiplatform_v1beta1_batch_prediction_job_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob - command.params['parent'] = parent unless parent.nil? + def delete_deployment_resource_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 BatchPredictionJob. Can only be called on jobs that already finished. + # 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 - # Required. The name of the BatchPredictionJob resource to be deleted. Format: ` - # projects/`project`/locations/`location`/batchPredictionJobs/` - # batch_prediction_job`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2005,8 +2391,8 @@ def create_project_location_batch_prediction_job(parent, google_cloud_aiplatform # @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_batch_prediction_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def get_deployment_resource_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -2015,10 +2401,23 @@ def delete_project_location_batch_prediction_job(name, fields: nil, quota_user: execute_or_queue_command(command, &block) end - # Gets a BatchPredictionJob + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Required. The name of the BatchPredictionJob resource. Format: `projects/` - # project`/locations/`location`/batchPredictionJobs/`batch_prediction_job`` + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -2028,47 +2427,42 @@ def delete_project_location_batch_prediction_job(name, fields: nil, quota_user: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_batch_prediction_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob + def list_deployment_resource_pool_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Lists BatchPredictionJobs in a Location. - # @param [String] parent - # Required. The resource name of the Location to list the BatchPredictionJobs - # from. Format: `projects/`project`/locations/`location`` - # @param [String] filter - # The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - # comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` - # comparisons. * `state` supports `=`, `!=` comparisons. * `create_time` - # supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be in - # RFC 3339 format. * `labels` supports general map functions that is: `labels. - # key=value` - key:value equality `labels.key:* - key existence Some examples of - # using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_* - # "` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name=" - # my_job"` * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * ` - # labels.keyB:*` - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. Typically obtained via - # ListBatchPredictionJobsResponse.next_page_token of the previous JobService. - # ListBatchPredictionJobs call. - # @param [String] read_mask - # Mask specifying which fields to read. + # 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 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 @@ -2078,33 +2472,35 @@ def get_project_location_batch_prediction_job(name, fields: nil, quota_user: nil # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_batch_prediction_jobs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/batchPredictionJobs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse - 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['readMask'] = read_mask unless read_mask.nil? + def wait_deployment_resource_pool_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Creates cached content, this call will initialize the cached content in the - # data storage, and users need to pay for the cache data storage. - # @param [String] parent - # Required. The parent resource where the cached content will be created - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] google_cloud_aiplatform_v1beta1_cached_content_object + # 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 @@ -2114,29 +2510,30 @@ def list_project_location_batch_prediction_jobs(parent, filter: nil, page_size: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_cached_content(parent, google_cloud_aiplatform_v1beta1_cached_content_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/cachedContents', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent::Representation - command.request_object = google_cloud_aiplatform_v1beta1_cached_content_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent - command.params['parent'] = parent unless parent.nil? + def cancel_edge_device_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 cached content + # 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 - # Required. The resource name referring to the cached content + # 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 @@ -2154,7 +2551,7 @@ def create_project_location_cached_content(parent, google_cloud_aiplatform_v1bet # @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_cached_content(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_edge_device_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -2164,9 +2561,10 @@ def delete_project_location_cached_content(name, fields: nil, quota_user: nil, o execute_or_queue_command(command, &block) end - # Gets cached content configurations + # 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 - # Required. The resource name referring to the cached content + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2176,37 +2574,41 @@ def delete_project_location_cached_content(name, fields: nil, quota_user: nil, o # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] + # @return [Google::Apis::AiplatformV1beta1::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_cached_content(name, fields: nil, quota_user: nil, options: nil, &block) + def get_edge_device_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 cached contents in a project - # @param [String] parent - # Required. The parent, which owns this collection of cached contents. + # 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 - # Optional. The maximum number of cached contents to return. The service may - # return fewer than this value. If unspecified, some default (under maximum) - # number of items will be returned. The maximum value is 1000; values above 1000 - # will be coerced to 1000. + # The standard list page size. # @param [String] page_token - # Optional. A page token, received from a previous `ListCachedContents` call. - # Provide this to retrieve the subsequent page. When paginating, all other - # parameters provided to `ListCachedContents` must match the call that provided - # the 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -2216,34 +2618,42 @@ def get_project_location_cached_content(name, fields: nil, quota_user: nil, opti # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCachedContentsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCachedContentsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_cached_contents(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/cachedContents', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCachedContentsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCachedContentsResponse - command.params['parent'] = parent unless parent.nil? + def list_edge_device_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Updates cached content configurations + # 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 - # Immutable. Identifier. The server-generated resource name of the cached - # content Format: projects/`project`/locations/`location`/cachedContents/` - # cached_content` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] google_cloud_aiplatform_v1beta1_cached_content_object - # @param [String] update_mask - # Required. The list of fields to update. + # 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 @@ -2253,38 +2663,30 @@ def list_project_location_cached_contents(parent, page_size: nil, page_token: ni # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_cached_content(name, google_cloud_aiplatform_v1beta1_cached_content_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent::Representation - command.request_object = google_cloud_aiplatform_v1beta1_cached_content_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent + def wait_edge_device_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.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 - # Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The - # server makes a best effort to cancel the job, but success is not guaranteed. - # Clients can use JobService.GetCustomJob or other methods to check whether the - # cancellation succeeded or whether the job completed despite cancellation. On - # successful cancellation, the CustomJob is not deleted; instead it becomes a - # job with a CustomJob.error value with a google.rpc.Status.code of 1, - # corresponding to `Code.CANCELLED`, and CustomJob.state is set to `CANCELLED`. - # @param [String] name - # Required. The name of the CustomJob to cancel. Format: `projects/`project`/ - # locations/`location`/customJobs/`custom_job`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelCustomJobRequest] google_cloud_aiplatform_v1beta1_cancel_custom_job_request_object + # Return a list of tokens based on the input text. + # @param [String] endpoint + # Required. The name of the Endpoint requested to get lists of tokens and token + # ids. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest] google_cloud_aiplatform_v1beta1_compute_tokens_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2294,32 +2696,31 @@ def patch_project_location_cached_content(name, google_cloud_aiplatform_v1beta1_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] # # @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_custom_job(name, google_cloud_aiplatform_v1beta1_cancel_custom_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelCustomJobRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_cancel_custom_job_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? + def compute_endpoint_tokens(endpoint, google_cloud_aiplatform_v1beta1_compute_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:computeTokens', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_compute_tokens_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse + command.params['endpoint'] = endpoint unless endpoint.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 CustomJob. A created CustomJob right away will be attempted to be - # run. - # @param [String] parent - # Required. The resource name of the Location to create the CustomJob in. Format: - # `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob] google_cloud_aiplatform_v1beta1_custom_job_object + # Perform a token counting. + # @param [String] endpoint + # Required. The name of the Endpoint requested to perform token counting. Format: + # `projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest] google_cloud_aiplatform_v1beta1_count_tokens_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2329,30 +2730,32 @@ def cancel_project_location_custom_job(name, google_cloud_aiplatform_v1beta1_can # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] # # @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_custom_job(parent, google_cloud_aiplatform_v1beta1_custom_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/customJobs', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob::Representation - command.request_object = google_cloud_aiplatform_v1beta1_custom_job_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob - command.params['parent'] = parent unless parent.nil? + def count_endpoint_tokens(endpoint, google_cloud_aiplatform_v1beta1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:countTokens', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_count_tokens_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse + command.params['endpoint'] = endpoint unless endpoint.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 CustomJob. - # @param [String] name - # Required. The name of the CustomJob resource to be deleted. Format: `projects/` - # project`/locations/`location`/customJobs/`custom_job`` + # Fetch an asynchronous online prediction operation. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` + # project`/locations/`location`/publishers/`publisher`/models/`model`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest] google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2370,20 +2773,25 @@ def create_project_location_custom_job(parent, google_cloud_aiplatform_v1beta1_c # @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_custom_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def fetch_endpoint_predict_operation(endpoint, google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:fetchPredictOperation', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + command.params['endpoint'] = endpoint unless endpoint.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 CustomJob. - # @param [String] name - # Required. The name of the CustomJob resource. Format: `projects/`project`/ - # locations/`location`/customJobs/`custom_job`` + # Generate content with multimodal inputs. + # @param [String] model + # Required. The fully qualified name of the publisher model or tuned model + # endpoint to use. Publisher model format: `projects/`project`/locations/` + # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` + # project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2393,45 +2801,31 @@ def delete_project_location_custom_job(name, fields: nil, quota_user: nil, optio # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] # # @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_custom_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob - command.params['name'] = name unless name.nil? + def generate_endpoint_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+model}:generateContent', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse + command.params['model'] = model unless model.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 CustomJobs in a Location. - # @param [String] parent - # Required. The resource name of the Location to list the CustomJobs from. - # Format: `projects/`project`/locations/`location`` - # @param [String] filter - # The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - # comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * ` - # create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` - # must be in RFC 3339 format. * `labels` supports general map functions that is: - # `labels.key=value` - key:value equality `labels.key:* - key existence Some - # examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND - # display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - # * `NOT display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` * ` - # labels.keyA=valueA` * `labels.keyB:*` - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. Typically obtained via ListCustomJobsResponse. - # next_page_token of the previous JobService.ListCustomJobs call. - # @param [String] read_mask - # Mask specifying which fields to read. + # Perform an online prediction. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest] google_cloud_aiplatform_v1beta1_predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2441,23 +2835,126 @@ def get_project_location_custom_job(name, fields: nil, quota_user: nil, options: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCustomJobsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCustomJobsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] # # @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_custom_jobs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/customJobs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCustomJobsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCustomJobsResponse - 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['readMask'] = read_mask unless read_mask.nil? + def predict_endpoint(endpoint, google_cloud_aiplatform_v1beta1_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:predict', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_predict_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse + command.params['endpoint'] = endpoint unless endpoint.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` + # project`/locations/`location`/publishers/`publisher`/models/`model`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest] google_cloud_aiplatform_v1beta1_predict_long_running_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 predict_endpoint_long_running(endpoint, google_cloud_aiplatform_v1beta1_predict_long_running_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:predictLongRunning', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_predict_long_running_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['endpoint'] = endpoint unless endpoint.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Generate content with multimodal inputs with streaming support. + # @param [String] model + # Required. The fully qualified name of the publisher model or tuned model + # endpoint to use. Publisher model format: `projects/`project`/locations/` + # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` + # project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] + # + # @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_endpoint_generate_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+model}:streamGenerateContent', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse + command.params['model'] = model unless model.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Exposes an OpenAI-compatible endpoint for chat completions. + # @param [String] endpoint + # Required. The name of the endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] google_api_http_body_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::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_endpoint_chat(endpoint, google_api_http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}/chat/completions', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.request_object = google_api_http_body_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + command.params['endpoint'] = endpoint unless endpoint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -2490,7 +2987,7 @@ def list_project_location_custom_jobs(parent, filter: nil, page_size: nil, page_ # @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_custom_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -2523,7 +3020,7 @@ def cancel_project_location_custom_job_operation(name, fields: nil, quota_user: # @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_custom_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -2554,7 +3051,7 @@ def delete_project_location_custom_job_operation(name, fields: nil, quota_user: # @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_custom_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -2598,7 +3095,7 @@ def get_project_location_custom_job_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 list_project_location_custom_job_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_endpoint_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -2643,7 +3140,7 @@ def list_project_location_custom_job_operations(name, filter: nil, page_size: ni # @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_project_location_custom_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_endpoint_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -2654,11 +3151,12 @@ def wait_project_location_custom_job_operation(name, timeout: nil, fields: nil, execute_or_queue_command(command, &block) end - # Cancels a DataLabelingJob. Success of cancellation is not guaranteed. + # 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 - # Required. The name of the DataLabelingJob. Format: `projects/`project`/ - # locations/`location`/dataLabelingJobs/`data_labeling_job`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest] google_cloud_aiplatform_v1beta1_cancel_data_labeling_job_request_object + # 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 @@ -2676,10 +3174,8 @@ def wait_project_location_custom_job_operation(name, timeout: nil, 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 cancel_project_location_data_labeling_job(name, google_cloud_aiplatform_v1beta1_cancel_data_labeling_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_cancel_data_labeling_job_request_object + def delete_evaluation_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? @@ -2688,11 +3184,10 @@ def cancel_project_location_data_labeling_job(name, google_cloud_aiplatform_v1be execute_or_queue_command(command, &block) end - # Creates a DataLabelingJob. - # @param [String] parent - # Required. The parent of the DataLabelingJob. Format: `projects/`project`/ - # locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob] google_cloud_aiplatform_v1beta1_data_labeling_job_object + # 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 @@ -2702,30 +3197,86 @@ def cancel_project_location_data_labeling_job(name, google_cloud_aiplatform_v1be # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob] + # @return [Google::Apis::AiplatformV1beta1::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_data_labeling_job(parent, google_cloud_aiplatform_v1beta1_data_labeling_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/dataLabelingJobs', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob::Representation - command.request_object = google_cloud_aiplatform_v1beta1_data_labeling_job_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob - command.params['parent'] = parent unless parent.nil? + def get_evaluation_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Deletes a DataLabelingJob. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Required. The name of the DataLabelingJob to be deleted. Format: `projects/` - # project`/locations/`location`/dataLabelingJobs/`data_labeling_job`` + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_evaluation_item_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 @@ -2743,20 +3294,23 @@ def create_project_location_data_labeling_job(parent, google_cloud_aiplatform_v1 # @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_data_labeling_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def wait_evaluation_item_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::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 - # Gets a DataLabelingJob. + # 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 - # Required. The name of the DataLabelingJob. Format: `projects/`project`/ - # locations/`location`/dataLabelingJobs/`data_labeling_job`` + # 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 @@ -2766,50 +3320,72 @@ def delete_project_location_data_labeling_job(name, fields: nil, quota_user: nil # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_data_labeling_job(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_evaluation_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_evaluation_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 DataLabelingJobs in a Location. - # @param [String] parent - # Required. The parent of the DataLabelingJob. Format: `projects/`project`/ - # locations/`location`` + # 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. Supported fields: * `display_name` supports `=`, `!=` - # comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * ` - # create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` - # must be in RFC 3339 format. * `labels` supports general map functions that is: - # `labels.key=value` - key:value equality `labels.key:* - key existence Some - # examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND - # display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - # * `NOT display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` * ` - # labels.keyA=valueA` * `labels.keyB:*` - # @param [String] order_by - # A comma-separated list of fields to order by, sorted in ascending order by - # default. Use `desc` after a field name for descending. + # The standard list filter. # @param [Fixnum] page_size # The standard list page size. # @param [String] page_token # The standard list page token. - # @param [String] read_mask - # Mask specifying which fields to read. FieldMask represents a set of symbolic - # field paths. For example, the mask can be `paths: "name"`. The "name" here is - # a field in DataLabelingJob. If this field is not set, all fields of the - # DataLabelingJob are returned. + # @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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -2819,39 +3395,42 @@ def get_project_location_data_labeling_job(name, fields: nil, quota_user: nil, o # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_data_labeling_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/dataLabelingJobs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse - command.params['parent'] = parent unless parent.nil? + def list_evaluation_run_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse + command.params['name'] = name unless name.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['readMask'] = read_mask unless read_mask.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 - # 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`. + # 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 resource to be cancelled. + # 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 @@ -2861,19 +3440,20 @@ def list_project_location_data_labeling_jobs(parent, filter: nil, order_by: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::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 cancel_project_location_data_labeling_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def wait_evaluation_run_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -2902,7 +3482,7 @@ def cancel_project_location_data_labeling_job_operation(name, fields: nil, quota # @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_data_labeling_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_evaluation_set_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -2933,7 +3513,7 @@ def delete_project_location_data_labeling_job_operation(name, fields: nil, quota # @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_data_labeling_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_evaluation_set_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -2977,7 +3557,7 @@ def get_project_location_data_labeling_job_operation(name, fields: nil, quota_us # @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_data_labeling_job_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_evaluation_set_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -3022,7 +3602,7 @@ def list_project_location_data_labeling_job_operations(name, filter: nil, page_s # @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_project_location_data_labeling_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_evaluation_set_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -3033,12 +3613,12 @@ def wait_project_location_data_labeling_job_operation(name, timeout: nil, fields execute_or_queue_command(command, &block) end - # Assembles each row of a multimodal dataset and writes the result into a - # BigQuery table. + # 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 - # Required. The name of the Dataset resource (used only for MULTIMODAL datasets). - # Format: `projects/`project`/locations/`location`/datasets/`dataset`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssembleDataRequest] google_cloud_aiplatform_v1beta1_assemble_data_request_object + # 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 @@ -3048,31 +3628,28 @@ def wait_project_location_data_labeling_job_operation(name, timeout: nil, fields # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 assemble_project_location_dataset(name, google_cloud_aiplatform_v1beta1_assemble_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:assemble', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssembleDataRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_assemble_data_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def delete_evaluation_task_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Assesses the state or validity of the dataset with respect to a given use case. + # 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 - # Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. - # Format: `projects/`project`/locations/`location`/datasets/`dataset`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssessDataRequest] google_cloud_aiplatform_v1beta1_assess_data_request_object + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3090,10 +3667,8 @@ def assemble_project_location_dataset(name, google_cloud_aiplatform_v1beta1_asse # @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 assess_project_location_dataset(name, google_cloud_aiplatform_v1beta1_assess_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:assess', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssessDataRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_assess_data_request_object + def get_evaluation_task_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -3102,11 +3677,23 @@ def assess_project_location_dataset(name, google_cloud_aiplatform_v1beta1_assess execute_or_queue_command(command, &block) end - # Creates a Dataset. - # @param [String] parent - # Required. The resource name of the Location to create the Dataset in. Format: ` - # projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] google_cloud_aiplatform_v1beta1_dataset_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -3116,30 +3703,42 @@ def assess_project_location_dataset(name, google_cloud_aiplatform_v1beta1_assess # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_dataset(parent, google_cloud_aiplatform_v1beta1_dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/datasets', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation - command.request_object = google_cloud_aiplatform_v1beta1_dataset_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def list_evaluation_task_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Deletes a Dataset. + # 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 resource name of the Dataset to delete. Format: `projects/` - # project`/locations/`location`/datasets/`dataset`` + # 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 @@ -3157,21 +3756,27 @@ def create_project_location_dataset(parent, google_cloud_aiplatform_v1beta1_data # @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_dataset(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def wait_evaluation_task_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::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 - # Exports data from a Dataset. + # 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 - # Required. The name of the Dataset resource. Format: `projects/`project`/ - # locations/`location`/datasets/`dataset`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportDataRequest] google_cloud_aiplatform_v1beta1_export_data_request_object + # 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 @@ -3181,31 +3786,30 @@ def delete_project_location_dataset(name, fields: nil, quota_user: nil, options: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 export_project_location_dataset(name, google_cloud_aiplatform_v1beta1_export_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:export', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportDataRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_export_data_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def cancel_example_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a Dataset. + # 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 - # Required. The name of the Dataset resource. - # @param [String] read_mask - # Mask specifying which fields to read. + # 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 @@ -3215,30 +3819,28 @@ def export_project_location_dataset(name, google_cloud_aiplatform_v1beta1_export # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_dataset(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset + def delete_example_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? - command.query['readMask'] = read_mask unless read_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 - # Imports data into a Dataset. + # 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 - # Required. The name of the Dataset resource. Format: `projects/`project`/ - # locations/`location`/datasets/`dataset`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportDataRequest] google_cloud_aiplatform_v1beta1_import_data_request_object + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3256,10 +3858,8 @@ def get_project_location_dataset(name, read_mask: nil, fields: nil, quota_user: # @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 import_project_location_dataset(name, google_cloud_aiplatform_v1beta1_import_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:import', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportDataRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_import_data_request_object + def get_example_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -3268,28 +3868,23 @@ def import_project_location_dataset(name, google_cloud_aiplatform_v1beta1_import execute_or_queue_command(command, &block) end - # Lists Datasets in a Location. - # @param [String] parent - # Required. The name of the Dataset's parent resource. Format: `projects/` - # project`/locations/`location`` + # 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 - # An expression for filtering the results of the request. For field names both - # snake_case and camelCase are supported. * `display_name`: supports = and != * ` - # metadata_schema_uri`: supports = and != * `labels` supports general map - # functions that is: * `labels.key=value` - key:value equality * `labels.key:* - # or labels:key - key existence * A key including a space must be quoted. ` - # labels."a key"`. Some examples: * `displayName="myDisplayName"` * `labels. - # myKey="myValue"` - # @param [String] order_by - # A comma-separated list of fields to order by, sorted in ascending order. Use " - # desc" after a field name for descending. Supported fields: * `display_name` * ` - # create_time` * `update_time` + # The standard list filter. # @param [Fixnum] page_size # The standard list page size. # @param [String] page_token # The standard list page token. - # @param [String] read_mask - # Mask specifying which fields to read. + # @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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -3299,38 +3894,42 @@ def import_project_location_dataset(name, google_cloud_aiplatform_v1beta1_import # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_datasets(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/datasets', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse - command.params['parent'] = parent unless parent.nil? + def list_example_store_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse + command.params['name'] = name unless name.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['readMask'] = read_mask unless read_mask.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 - # Updates a Dataset. + # 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 - # Output only. Identifier. The resource name of the Dataset. Format: `projects/` - # project`/locations/`location`/datasets/`dataset`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] google_cloud_aiplatform_v1beta1_dataset_object - # @param [String] update_mask - # Required. The update mask applies to the resource. For the `FieldMask` - # definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * - # `description` * `labels` + # 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 @@ -3340,148 +3939,20 @@ def list_project_location_datasets(parent, filter: nil, order_by: nil, page_size # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_dataset(name, google_cloud_aiplatform_v1beta1_dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation - command.request_object = google_cloud_aiplatform_v1beta1_dataset_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset + def wait_example_store_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation 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 - - # Searches DataItems in a Dataset. - # @param [String] dataset - # Required. The resource name of the Dataset from which to search DataItems. - # Format: `projects/`project`/locations/`location`/datasets/`dataset`` - # @param [Array, String] annotation_filters - # An expression that specifies what Annotations will be returned per DataItem. - # Annotations satisfied either of the conditions will be returned. * ` - # annotation_spec_id` - for = or !=. Must specify `saved_query_id=` - saved - # query id that annotations should belong to. - # @param [String] annotations_filter - # An expression for filtering the Annotations that will be returned per DataItem. - # * `annotation_spec_id` - for = or !=. - # @param [Fixnum] annotations_limit - # If set, only up to this many of Annotations will be returned per DataItemView. - # The maximum value is 1000. If not set, the maximum value will be used. - # @param [String] data_item_filter - # An expression for filtering the DataItem that will be returned. * ` - # data_item_id` - for = or !=. * `labeled` - for = or !=. * `has_annotation( - # ANNOTATION_SPEC_ID)` - true only for DataItem that have at least one - # annotation with annotation_spec_id = `ANNOTATION_SPEC_ID` in the context of - # SavedQuery or DataLabelingJob. For example: * `data_item=1` * `has_annotation( - # 5)` - # @param [String] data_labeling_job - # The resource name of a DataLabelingJob. Format: `projects/`project`/locations/` - # location`/dataLabelingJobs/`data_labeling_job`` If this field is set, all of - # the search will be done in the context of this DataLabelingJob. - # @param [String] field_mask - # Mask specifying which fields of DataItemView to read. - # @param [String] order_by - # A comma-separated list of fields to order by, sorted in ascending order. Use " - # desc" after a field name for descending. - # @param [String] order_by_annotation_order_by - # A comma-separated list of annotation fields to order by, sorted in ascending - # order. Use "desc" after a field name for descending. Must also specify - # saved_query. - # @param [String] order_by_annotation_saved_query - # Required. Saved query of the Annotation. Only Annotations belong to this saved - # query will be considered for ordering. - # @param [String] order_by_data_item - # A comma-separated list of data item fields to order by, sorted in ascending - # order. Use "desc" after a field name for descending. - # @param [Fixnum] page_size - # Requested page size. Server may return fewer results than requested. Default - # and maximum page size is 100. - # @param [String] page_token - # A token identifying a page of results for the server to return Typically - # obtained via SearchDataItemsResponse.next_page_token of the previous - # DatasetService.SearchDataItems call. - # @param [String] saved_query - # The resource name of a SavedQuery(annotation set in UI). Format: `projects/` - # project`/locations/`location`/datasets/`dataset`/savedQueries/`saved_query`` - # All of the search will be done in the context of this SavedQuery. - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchDataItemsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchDataItemsResponse] - # - # @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 search_project_location_dataset_data_items(dataset, annotation_filters: nil, annotations_filter: nil, annotations_limit: nil, data_item_filter: nil, data_labeling_job: nil, field_mask: nil, order_by: nil, order_by_annotation_order_by: nil, order_by_annotation_saved_query: nil, order_by_data_item: nil, page_size: nil, page_token: nil, saved_query: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+dataset}:searchDataItems', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchDataItemsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchDataItemsResponse - command.params['dataset'] = dataset unless dataset.nil? - command.query['annotationFilters'] = annotation_filters unless annotation_filters.nil? - command.query['annotationsFilter'] = annotations_filter unless annotations_filter.nil? - command.query['annotationsLimit'] = annotations_limit unless annotations_limit.nil? - command.query['dataItemFilter'] = data_item_filter unless data_item_filter.nil? - command.query['dataLabelingJob'] = data_labeling_job unless data_labeling_job.nil? - command.query['fieldMask'] = field_mask unless field_mask.nil? - command.query['orderBy'] = order_by unless order_by.nil? - command.query['orderByAnnotation.orderBy'] = order_by_annotation_order_by unless order_by_annotation_order_by.nil? - command.query['orderByAnnotation.savedQuery'] = order_by_annotation_saved_query unless order_by_annotation_saved_query.nil? - command.query['orderByDataItem'] = order_by_data_item unless order_by_data_item.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['savedQuery'] = saved_query unless saved_query.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 an AnnotationSpec. - # @param [String] name - # Required. The name of the AnnotationSpec resource. Format: `projects/`project`/ - # locations/`location`/datasets/`dataset`/annotationSpecs/`annotation_spec`` - # @param [String] read_mask - # Mask specifying which fields to read. - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AnnotationSpec] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AnnotationSpec] - # - # @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_dataset_annotation_spec(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AnnotationSpec::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AnnotationSpec - command.params['name'] = name unless name.nil? - command.query['readMask'] = read_mask unless read_mask.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) @@ -3514,7 +3985,7 @@ def get_project_location_dataset_annotation_spec(name, read_mask: nil, fields: n # @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_dataset_annotation_spec_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_extension_controller_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -3547,7 +4018,7 @@ def cancel_project_location_dataset_annotation_spec_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_dataset_annotation_spec_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_extension_controller_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -3578,7 +4049,7 @@ def delete_project_location_dataset_annotation_spec_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_dataset_annotation_spec_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_extension_controller_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -3622,7 +4093,7 @@ def get_project_location_dataset_annotation_spec_operation(name, fields: nil, qu # @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_dataset_annotation_spec_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_extension_controller_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -3667,7 +4138,7 @@ def list_project_location_dataset_annotation_spec_operations(name, filter: 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 wait_project_location_dataset_annotation_spec_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_extension_controller_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -3678,21 +4149,16 @@ def wait_project_location_dataset_annotation_spec_operation(name, timeout: nil, execute_or_queue_command(command, &block) end - # Lists DataItems in a Dataset. - # @param [String] parent - # Required. The resource name of the Dataset to list DataItems from. Format: ` - # projects/`project`/locations/`location`/datasets/`dataset`` - # @param [String] filter - # The standard list filter. - # @param [String] order_by - # A comma-separated list of fields to order by, sorted in ascending order. Use " - # desc" after a field name for descending. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. - # @param [String] read_mask - # Mask specifying which fields to read. + # 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 @@ -3702,45 +4168,105 @@ def wait_project_location_dataset_annotation_spec_operation(name, timeout: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataItemsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataItemsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 list_project_location_dataset_data_items(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/dataItems', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataItemsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataItemsResponse - 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['readMask'] = read_mask unless read_mask.nil? + def cancel_extension_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Lists Annotations belongs to a dataitem. - # @param [String] parent - # Required. The resource name of the DataItem to list Annotations from. Format: ` - # projects/`project`/locations/`location`/datasets/`dataset`/dataItems/` - # data_item`` + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_extension_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_extension_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 [String] order_by - # A comma-separated list of fields to order by, sorted in ascending order. Use " - # desc" after a field name for descending. # @param [Fixnum] page_size # The standard list page size. # @param [String] page_token # The standard list page token. - # @param [String] read_mask - # Mask specifying which fields to read. + # @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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -3750,39 +4276,42 @@ def list_project_location_dataset_data_items(parent, filter: nil, order_by: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListAnnotationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListAnnotationsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_dataset_data_item_annotations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/annotations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListAnnotationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListAnnotationsResponse - command.params['parent'] = parent unless parent.nil? + def list_extension_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse + command.params['name'] = name unless name.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['readMask'] = read_mask unless read_mask.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 - # 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`. + # 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 resource to be cancelled. + # 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 @@ -3792,19 +4321,20 @@ def list_project_location_dataset_data_item_annotations(parent, filter: nil, ord # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::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 cancel_project_location_dataset_data_item_annotation_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def wait_extension_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -3833,7 +4363,7 @@ def cancel_project_location_dataset_data_item_annotation_operation(name, fields: # @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_dataset_data_item_annotation_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_feature_group_feature_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -3864,7 +4394,7 @@ def delete_project_location_dataset_data_item_annotation_operation(name, fields: # @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_dataset_data_item_annotation_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_feature_group_feature_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -3908,7 +4438,7 @@ def get_project_location_dataset_data_item_annotation_operation(name, fields: ni # @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_dataset_data_item_annotation_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_feature_group_feature_monitor_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -3953,7 +4483,7 @@ def list_project_location_dataset_data_item_annotation_operations(name, filter: # @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_project_location_dataset_data_item_annotation_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_feature_group_feature_monitor_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -3964,43 +4494,6 @@ def wait_project_location_dataset_data_item_annotation_operation(name, timeout: 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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_dataset_data_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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. @@ -4024,7 +4517,7 @@ def cancel_project_location_dataset_data_item_operation(name, fields: nil, quota # @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_dataset_data_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_feature_group_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -4055,7 +4548,7 @@ def delete_project_location_dataset_data_item_operation(name, fields: nil, quota # @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_dataset_data_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_feature_group_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -4099,7 +4592,7 @@ def get_project_location_dataset_data_item_operation(name, fields: nil, quota_us # @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_dataset_data_item_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_feature_group_feature_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -4144,7 +4637,7 @@ def list_project_location_dataset_data_item_operations(name, filter: nil, page_s # @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_project_location_dataset_data_item_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_feature_group_feature_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -4155,11 +4648,12 @@ def wait_project_location_dataset_data_item_operation(name, timeout: nil, fields execute_or_queue_command(command, &block) end - # Create a version from a Dataset. - # @param [String] parent - # Required. The name of the Dataset resource. Format: `projects/`project`/ - # locations/`location`/datasets/`dataset`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] google_cloud_aiplatform_v1beta1_dataset_version_object + # 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 @@ -4169,31 +4663,28 @@ def wait_project_location_dataset_data_item_operation(name, timeout: nil, fields # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_dataset_dataset_version(parent, google_cloud_aiplatform_v1beta1_dataset_version_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/datasetVersions', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation - command.request_object = google_cloud_aiplatform_v1beta1_dataset_version_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def delete_feature_group_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 Dataset version. + # 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 - # Required. The resource name of the Dataset version to delete. Format: ` - # projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/` - # dataset_version`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4211,8 +4702,8 @@ def create_project_location_dataset_dataset_version(parent, google_cloud_aiplatf # @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_dataset_dataset_version(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def get_feature_group_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -4221,13 +4712,23 @@ def delete_project_location_dataset_dataset_version(name, fields: nil, quota_use execute_or_queue_command(command, &block) end - # Gets a Dataset version. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Required. The resource name of the Dataset version to delete. Format: ` - # projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/` - # dataset_version`` - # @param [String] read_mask - # Mask specifying which fields to read. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -4237,40 +4738,42 @@ def delete_project_location_dataset_dataset_version(name, fields: nil, quota_use # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_dataset_dataset_version(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion + def list_feature_group_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? - command.query['readMask'] = read_mask unless read_mask.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 - # Lists DatasetVersions in a Dataset. - # @param [String] parent - # Required. The resource name of the Dataset to list DatasetVersions from. - # Format: `projects/`project`/locations/`location`/datasets/`dataset`` - # @param [String] filter - # Optional. The standard list filter. - # @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. - # @param [Fixnum] page_size - # Optional. The standard list page size. - # @param [String] page_token - # Optional. The standard list page token. - # @param [String] read_mask - # Optional. Mask specifying which fields to read. + # 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 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 @@ -4280,38 +4783,31 @@ def get_project_location_dataset_dataset_version(name, read_mask: nil, fields: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_dataset_dataset_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/datasetVersions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse - 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['readMask'] = read_mask unless read_mask.nil? + def wait_feature_group_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Updates a DatasetVersion. + # 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 - # Output only. Identifier. The resource name of the DatasetVersion. Format: ` - # projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/` - # dataset_version`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] google_cloud_aiplatform_v1beta1_dataset_version_object - # @param [String] update_mask - # Required. The update mask applies to the resource. For the `FieldMask` - # definition, see google.protobuf.FieldMask. Updatable fields: * `display_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 @@ -4321,31 +4817,28 @@ def list_project_location_dataset_dataset_versions(parent, filter: nil, order_by # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_dataset_dataset_version(name, google_cloud_aiplatform_v1beta1_dataset_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation - command.request_object = google_cloud_aiplatform_v1beta1_dataset_version_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion + def delete_feature_online_store_feature_view_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty 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 - # Restores a dataset version. + # 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 - # Required. The name of the DatasetVersion resource. Format: `projects/`project`/ - # locations/`location`/datasets/`dataset`/datasetVersions/`dataset_version`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4363,8 +4856,8 @@ def patch_project_location_dataset_dataset_version(name, google_cloud_aiplatform # @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 restore_project_location_dataset_dataset_version(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}:restore', options) + def get_feature_online_store_feature_view_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -4373,16 +4866,23 @@ def restore_project_location_dataset_dataset_version(name, fields: nil, quota_us 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`. + # 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 resource to be cancelled. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -4392,19 +4892,65 @@ def restore_project_location_dataset_dataset_version(name, fields: nil, quota_us # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::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 cancel_project_location_dataset_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def list_feature_online_store_feature_view_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_feature_online_store_feature_view_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -4433,7 +4979,7 @@ def cancel_project_location_dataset_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_project_location_dataset_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_feature_online_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -4464,7 +5010,7 @@ def delete_project_location_dataset_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_project_location_dataset_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_feature_online_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -4508,7 +5054,7 @@ def get_project_location_dataset_operation(name, fields: nil, quota_user: 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 list_project_location_dataset_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_feature_online_store_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -4553,7 +5099,7 @@ def list_project_location_dataset_operations(name, filter: nil, page_size: 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 wait_project_location_dataset_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_feature_online_store_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -4564,84 +5110,6 @@ def wait_project_location_dataset_operation(name, timeout: nil, fields: nil, quo execute_or_queue_command(command, &block) end - # Deletes a SavedQuery. - # @param [String] name - # Required. The resource name of the SavedQuery to delete. Format: `projects/` - # project`/locations/`location`/datasets/`dataset`/savedQueries/`saved_query`` - # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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_dataset_saved_query(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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 SavedQueries in a Dataset. - # @param [String] parent - # Required. The resource name of the Dataset to list SavedQueries from. Format: ` - # projects/`project`/locations/`location`/datasets/`dataset`` - # @param [String] filter - # The standard list filter. - # @param [String] order_by - # A comma-separated list of fields to order by, sorted in ascending order. Use " - # desc" after a field name for descending. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. - # @param [String] read_mask - # Mask specifying which fields to read. - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSavedQueriesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSavedQueriesResponse] - # - # @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_dataset_saved_queries(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/savedQueries', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSavedQueriesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSavedQueriesResponse - 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['readMask'] = read_mask unless read_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 - # 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`. @@ -4669,7 +5137,7 @@ def list_project_location_dataset_saved_queries(parent, filter: nil, order_by: n # @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_dataset_saved_query_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_featurestore_entity_type_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -4702,7 +5170,7 @@ def cancel_project_location_dataset_saved_query_operation(name, fields: nil, quo # @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_dataset_saved_query_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_featurestore_entity_type_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -4733,7 +5201,7 @@ def delete_project_location_dataset_saved_query_operation(name, fields: nil, quo # @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_dataset_saved_query_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_featurestore_entity_type_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -4777,7 +5245,7 @@ def get_project_location_dataset_saved_query_operation(name, fields: nil, quota_ # @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_dataset_saved_query_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_featurestore_entity_type_feature_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -4822,7 +5290,7 @@ def list_project_location_dataset_saved_query_operations(name, filter: nil, page # @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_project_location_dataset_saved_query_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_featurestore_entity_type_feature_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -4833,11 +5301,16 @@ def wait_project_location_dataset_saved_query_operation(name, timeout: nil, fiel execute_or_queue_command(command, &block) end - # Create a DeploymentResourcePool. - # @param [String] parent - # Required. The parent location resource where this DeploymentResourcePool will - # be created. Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest] google_cloud_aiplatform_v1beta1_create_deployment_resource_pool_request_object + # 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 @@ -4847,31 +5320,30 @@ def wait_project_location_dataset_saved_query_operation(name, timeout: nil, fiel # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_deployment_resource_pool(parent, google_cloud_aiplatform_v1beta1_create_deployment_resource_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/deploymentResourcePools', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_create_deployment_resource_pool_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def cancel_featurestore_entity_type_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Delete a DeploymentResourcePool. + # 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 - # Required. The name of the DeploymentResourcePool to delete. Format: `projects/` - # project`/locations/`location`/deploymentResourcePools/` - # deployment_resource_pool`` + # 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 @@ -4881,29 +5353,28 @@ def create_project_location_deployment_resource_pool(parent, google_cloud_aiplat # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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_deployment_resource_pool(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_featurestore_entity_type_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Get a DeploymentResourcePool. + # 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 - # Required. The name of the DeploymentResourcePool to retrieve. Format: ` - # projects/`project`/locations/`location`/deploymentResourcePools/` - # deployment_resource_pool`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -4913,36 +5384,41 @@ def delete_project_location_deployment_resource_pool(name, fields: nil, quota_us # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeploymentResourcePool] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeploymentResourcePool] + # @return [Google::Apis::AiplatformV1beta1::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_deployment_resource_pool(name, fields: nil, quota_user: nil, options: nil, &block) + def get_featurestore_entity_type_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeploymentResourcePool::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeploymentResourcePool + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # List DeploymentResourcePools in a location. - # @param [String] parent - # Required. The parent Location which owns this collection of - # DeploymentResourcePools. Format: `projects/`project`/locations/`location`` + # 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 maximum number of DeploymentResourcePools to return. The service may - # return fewer than this value. + # The standard list page size. # @param [String] page_token - # A page token, received from a previous `ListDeploymentResourcePools` call. - # Provide this to retrieve the subsequent page. When paginating, all other - # parameters provided to `ListDeploymentResourcePools` must match the call that - # provided the 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -4952,34 +5428,42 @@ def get_project_location_deployment_resource_pool(name, fields: nil, quota_user: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_deployment_resource_pools(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/deploymentResourcePools', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse - command.params['parent'] = parent unless parent.nil? + def list_featurestore_entity_type_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Update a DeploymentResourcePool. + # 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 - # Immutable. The resource name of the DeploymentResourcePool. Format: `projects/` - # project`/locations/`location`/deploymentResourcePools/` - # deployment_resource_pool`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeploymentResourcePool] google_cloud_aiplatform_v1beta1_deployment_resource_pool_object - # @param [String] update_mask - # Required. The list of fields to update. + # 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 @@ -4997,56 +5481,12 @@ def list_project_location_deployment_resource_pools(parent, page_size: nil, page # @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_deployment_resource_pool(name, google_cloud_aiplatform_v1beta1_deployment_resource_pool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeploymentResourcePool::Representation - command.request_object = google_cloud_aiplatform_v1beta1_deployment_resource_pool_object + def wait_featurestore_entity_type_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation 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 - - # List DeployedModels that have been deployed on this DeploymentResourcePool. - # @param [String] deployment_resource_pool - # Required. The name of the target DeploymentResourcePool to query. Format: ` - # projects/`project`/locations/`location`/deploymentResourcePools/` - # deployment_resource_pool`` - # @param [Fixnum] page_size - # The maximum number of DeployedModels to return. The service may return fewer - # than this value. - # @param [String] page_token - # A page token, received from a previous `QueryDeployedModels` call. Provide - # this to retrieve the subsequent page. When paginating, all other parameters - # provided to `QueryDeployedModels` must match the call that provided the page - # token. - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse] - # - # @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_project_location_deployment_resource_pool_deployed_models(deployment_resource_pool, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+deploymentResourcePool}:queryDeployedModels', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse - command.params['deploymentResourcePool'] = deployment_resource_pool unless deployment_resource_pool.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.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) @@ -5079,7 +5519,7 @@ def query_project_location_deployment_resource_pool_deployed_models(deployment_r # @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_deployment_resource_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_featurestore_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -5112,7 +5552,7 @@ def cancel_project_location_deployment_resource_pool_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_deployment_resource_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_featurestore_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -5143,7 +5583,7 @@ def delete_project_location_deployment_resource_pool_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_deployment_resource_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_featurestore_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -5187,7 +5627,7 @@ def get_project_location_deployment_resource_pool_operation(name, fields: nil, q # @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_deployment_resource_pool_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_featurestore_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -5232,7 +5672,7 @@ def list_project_location_deployment_resource_pool_operations(name, filter: 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 wait_project_location_deployment_resource_pool_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_featurestore_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -5270,7 +5710,7 @@ def wait_project_location_deployment_resource_pool_operation(name, timeout: 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 cancel_project_location_edge_device_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_hyperparameter_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -5303,7 +5743,7 @@ def cancel_project_location_edge_device_operation(name, fields: nil, quota_user: # @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_edge_device_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_hyperparameter_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -5334,7 +5774,7 @@ def delete_project_location_edge_device_operation(name, fields: nil, quota_user: # @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_edge_device_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_hyperparameter_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -5378,7 +5818,7 @@ def get_project_location_edge_device_operation(name, fields: nil, quota_user: ni # @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_edge_device_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_hyperparameter_tuning_job_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -5423,7 +5863,7 @@ def list_project_location_edge_device_operations(name, filter: nil, page_size: n # @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_project_location_edge_device_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_hyperparameter_tuning_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -5434,11 +5874,16 @@ def wait_project_location_edge_device_operation(name, timeout: nil, fields: nil, execute_or_queue_command(command, &block) end - # Return a list of tokens based on the input text. - # @param [String] endpoint - # Required. The name of the Endpoint requested to get lists of tokens and token - # ids. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest] google_cloud_aiplatform_v1beta1_compute_tokens_request_object + # 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 @@ -5448,31 +5893,30 @@ def wait_project_location_edge_device_operation(name, timeout: nil, fields: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] + # @return [Google::Apis::AiplatformV1beta1::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 compute_project_location_endpoint_tokens(endpoint, google_cloud_aiplatform_v1beta1_compute_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:computeTokens', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_compute_tokens_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + def cancel_index_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Perform a token counting. - # @param [String] endpoint - # Required. The name of the Endpoint requested to perform token counting. Format: - # `projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest] google_cloud_aiplatform_v1beta1_count_tokens_request_object + # 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 @@ -5482,41 +5926,28 @@ def compute_project_location_endpoint_tokens(endpoint, google_cloud_aiplatform_v # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] + # @return [Google::Apis::AiplatformV1beta1::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 count_project_location_endpoint_tokens(endpoint, google_cloud_aiplatform_v1beta1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:countTokens', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_count_tokens_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + def delete_index_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Creates an Endpoint. - # @param [String] parent - # Required. The resource name of the Location to create the Endpoint in. Format: - # `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint] google_cloud_aiplatform_v1beta1_endpoint_object - # @param [String] endpoint_id - # Immutable. The ID to use for endpoint, which will become the final component - # of the endpoint resource name. If not provided, Vertex AI will generate a - # value for this ID. If the first character is a letter, this value may be up to - # 63 characters, and valid characters are `[a-z0-9-]`. The last character must - # be a letter or number. If the first character is a number, this value may be - # up to 9 characters, and valid characters are `[0-9]` with no leading zeros. - # When using HTTP/JSON, this field is populated based on a query string argument, - # such as `?endpoint_id=12345`. This is the fallback for fields that are not - # included in either the URI or the body. + # 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 @@ -5534,23 +5965,33 @@ def count_project_location_endpoint_tokens(endpoint, google_cloud_aiplatform_v1b # @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_endpoint(parent, google_cloud_aiplatform_v1beta1_endpoint_object = nil, endpoint_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/endpoints', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint::Representation - command.request_object = google_cloud_aiplatform_v1beta1_endpoint_object + def get_index_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? - command.query['endpointId'] = endpoint_id unless endpoint_id.nil? + 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 an Endpoint. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Required. The name of the Endpoint resource to be deleted. Format: `projects/` - # project`/locations/`location`/endpoints/`endpoint`` + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -5560,29 +6001,42 @@ def create_project_location_endpoint(parent, google_cloud_aiplatform_v1beta1_end # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 delete_project_location_endpoint(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def list_index_endpoint_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Deploys a Model into this Endpoint, creating a DeployedModel within it. - # @param [String] endpoint - # Required. The name of the Endpoint resource into which to deploy a Model. - # Format: `projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployModelRequest] google_cloud_aiplatform_v1beta1_deploy_model_request_object + # 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 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 @@ -5600,24 +6054,27 @@ def delete_project_location_endpoint(name, fields: nil, quota_user: nil, options # @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 deploy_project_location_endpoint_model(endpoint, google_cloud_aiplatform_v1beta1_deploy_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:deployModel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployModelRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_deploy_model_request_object + def wait_index_endpoint_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['endpoint'] = endpoint unless endpoint.nil? + 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 - # Perform an unary online prediction request to a gRPC model server for Vertex - # first-party products and frameworks. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectPredictRequest] google_cloud_aiplatform_v1beta1_direct_predict_request_object + # 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 @@ -5627,32 +6084,30 @@ def deploy_project_location_endpoint_model(endpoint, google_cloud_aiplatform_v1b # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectPredictResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectPredictResponse] + # @return [Google::Apis::AiplatformV1beta1::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 direct_project_location_endpoint_predict(endpoint, google_cloud_aiplatform_v1beta1_direct_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:directPredict', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectPredictRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_direct_predict_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectPredictResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectPredictResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + def cancel_index_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Perform an unary online prediction request to a gRPC model server for custom - # containers. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectRawPredictRequest] google_cloud_aiplatform_v1beta1_direct_raw_predict_request_object + # 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 @@ -5662,34 +6117,28 @@ def direct_project_location_endpoint_predict(endpoint, google_cloud_aiplatform_v # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectRawPredictResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectRawPredictResponse] + # @return [Google::Apis::AiplatformV1beta1::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 direct_project_location_endpoint_raw_predict(endpoint, google_cloud_aiplatform_v1beta1_direct_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:directRawPredict', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectRawPredictRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_direct_raw_predict_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectRawPredictResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectRawPredictResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + def delete_index_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Perform an online explanation. If deployed_model_id is specified, the - # corresponding DeployModel must have explanation_spec populated. If - # deployed_model_id is not specified, all DeployedModels must have - # explanation_spec populated. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the explanation. Format: - # `projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplainRequest] google_cloud_aiplatform_v1beta1_explain_request_object + # 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 @@ -5699,32 +6148,41 @@ def direct_project_location_endpoint_raw_predict(endpoint, google_cloud_aiplatfo # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplainResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplainResponse] + # @return [Google::Apis::AiplatformV1beta1::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 explain_project_location_endpoint(endpoint, google_cloud_aiplatform_v1beta1_explain_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:explain', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplainRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_explain_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplainResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplainResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + def get_index_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Fetch an asynchronous online prediction operation. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` - # project`/locations/`location`/publishers/`publisher`/models/`model`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest] google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -5734,33 +6192,42 @@ def explain_project_location_endpoint(endpoint, google_cloud_aiplatform_v1beta1_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 fetch_project_location_endpoint_predict_operation(endpoint, google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:fetchPredictOperation', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['endpoint'] = endpoint unless endpoint.nil? + def list_index_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Generate content with multimodal inputs. - # @param [String] model - # Required. The fully qualified name of the publisher model or tuned model - # endpoint to use. Publisher model format: `projects/`project`/locations/` - # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` - # project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object + # 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 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 @@ -5770,74 +6237,79 @@ def fetch_project_location_endpoint_predict_operation(endpoint, google_cloud_aip # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] + # @return [Google::Apis::AiplatformV1beta1::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 generate_project_location_endpoint_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+model}:generateContent', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse - command.params['model'] = model unless model.nil? + def wait_index_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Gets an Endpoint. - # @param [String] name - # Required. The name of the Endpoint resource. Format: `projects/`project`/ - # locations/`location`/endpoints/`endpoint`` + # Upload a file into a RagCorpus. + # @param [String] parent + # Required. The name of the RagCorpus resource into which to upload the file. + # Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileRequest] google_cloud_aiplatform_v1beta1_upload_rag_file_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 [IO, String] upload_source + # IO stream or filename containing content to upload + # @param [String] content_type + # Content type of the uploaded content. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse] # # @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_endpoint(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint - command.params['name'] = name unless name.nil? + def upload_medium(parent, google_cloud_aiplatform_v1beta1_upload_rag_file_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) + if upload_source.nil? + command = make_simple_command(:post, 'v1beta1/{+parent}/ragFiles:upload', options) + else + command = make_upload_command(:post, 'v1beta1/{+parent}/ragFiles:upload', options) + command.upload_source = upload_source + command.upload_content_type = content_type + end + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_upload_rag_file_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse + 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 - # Gets the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The maximum policy version that will be used to format the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. Requests for policies with any conditional role bindings must - # specify version 3. Policies with no conditional role bindings may specify any - # valid value or leave the field unset. The policy in the response might use the - # policy version that you specified, or it might use a lower policy version. For - # example, if you specify version 3, but the policy has no conditional role - # bindings, the response uses version 1. To learn which resources support - # conditions in their IAM policies, see the [IAM documentation](https://cloud. - # google.com/iam/help/conditions/resource-policies). + # 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 @@ -5847,51 +6319,30 @@ def get_project_location_endpoint(name, fields: nil, quota_user: nil, options: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_endpoint_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? + def cancel_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Lists Endpoints in a Location. - # @param [String] parent - # Required. The resource name of the Location from which to list the Endpoints. - # Format: `projects/`project`/locations/`location`` - # @param [String] filter - # Optional. An expression for filtering the results of the request. For field - # names both snake_case and camelCase are supported. * `endpoint` supports `=` - # and `!=`. `endpoint` represents the Endpoint ID, i.e. the last segment of the - # Endpoint's resource name. * `display_name` supports `=` and `!=`. * `labels` - # supports general map functions that is: * `labels.key=value` - key:value - # equality * `labels.key:*` or `labels:key` - key existence * A key including a - # space must be quoted. `labels."a key"`. * `base_model_name` only supports `=`. - # Some examples: * `endpoint=1` * `displayName="myDisplayName"` * `labels.myKey=" - # myValue"` * `baseModelName="text-bison"` - # @param [String] gdc_zone - # Optional. Configures the Google Distributed Cloud (GDC) environment for online - # prediction. Only set this field when the Endpoint is to be deployed in a GDC - # environment. - # @param [Fixnum] page_size - # Optional. The standard list page size. - # @param [String] page_token - # Optional. The standard list page token. Typically obtained via - # ListEndpointsResponse.next_page_token of the previous EndpointService. - # ListEndpoints call. - # @param [String] read_mask - # Optional. Mask specifying which fields to read. + # 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 @@ -5901,38 +6352,28 @@ def get_project_location_endpoint_iam_policy(resource, options_requested_policy_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEndpointsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEndpointsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 list_project_location_endpoints(parent, filter: nil, gdc_zone: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/endpoints', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEndpointsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEndpointsResponse - command.params['parent'] = parent unless parent.nil? - command.query['filter'] = filter unless filter.nil? - command.query['gdcZone'] = gdc_zone unless gdc_zone.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['readMask'] = read_mask unless read_mask.nil? + def delete_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Updates an existing deployed model. Updatable fields include ` - # min_replica_count`, `max_replica_count`, `required_replica_count`, ` - # autoscaling_metric_specs`, `disable_container_logging` (v1 only), and ` - # enable_container_logging` (v1beta1 only). - # @param [String] endpoint - # Required. The name of the Endpoint resource into which to mutate a - # DeployedModel. Format: `projects/`project`/locations/`location`/endpoints/` - # endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MutateDeployedModelRequest] google_cloud_aiplatform_v1beta1_mutate_deployed_model_request_object + # 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 @@ -5950,25 +6391,33 @@ def list_project_location_endpoints(parent, filter: nil, gdc_zone: nil, page_siz # @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 mutate_project_location_endpoint_deployed_model(endpoint, google_cloud_aiplatform_v1beta1_mutate_deployed_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:mutateDeployedModel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MutateDeployedModelRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_mutate_deployed_model_request_object + def get_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['endpoint'] = endpoint unless endpoint.nil? + 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 - # Updates an Endpoint. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Output only. The resource name of the Endpoint. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint] google_cloud_aiplatform_v1beta1_endpoint_object - # @param [String] update_mask - # Required. The update mask applies to the resource. See google.protobuf. - # FieldMask. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -5978,67 +6427,42 @@ def mutate_project_location_endpoint_deployed_model(endpoint, google_cloud_aipla # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint] + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_endpoint(name, google_cloud_aiplatform_v1beta1_endpoint_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint::Representation - command.request_object = google_cloud_aiplatform_v1beta1_endpoint_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint + def list_metadata_store_artifact_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.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 - # Perform an online prediction. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest] google_cloud_aiplatform_v1beta1_predict_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] - # - # @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 predict_project_location_endpoint(endpoint, google_cloud_aiplatform_v1beta1_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:predict', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_predict_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse - command.params['endpoint'] = endpoint unless endpoint.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` - # project`/locations/`location`/publishers/`publisher`/models/`model`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest] google_cloud_aiplatform_v1beta1_predict_long_running_request_object + # 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 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 @@ -6056,98 +6480,27 @@ def predict_project_location_endpoint(endpoint, google_cloud_aiplatform_v1beta1_ # @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 predict_project_location_endpoint_long_running(endpoint, google_cloud_aiplatform_v1beta1_predict_long_running_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:predictLongRunning', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_predict_long_running_request_object + def wait_metadata_store_artifact_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['endpoint'] = endpoint unless endpoint.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Perform an online prediction with an arbitrary HTTP payload. The response - # includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the - # Endpoint that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of - # the Endpoint's DeployedModel that served this prediction. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RawPredictRequest] google_cloud_aiplatform_v1beta1_raw_predict_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::AiplatformV1beta1::GoogleApiHttpBody] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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 raw_project_location_endpoint_predict(endpoint, google_cloud_aiplatform_v1beta1_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:rawPredict', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RawPredictRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_raw_predict_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody - command.params['endpoint'] = endpoint unless endpoint.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Perform a server-side streaming online prediction request for Vertex LLM - # streaming. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictRequest] google_cloud_aiplatform_v1beta1_streaming_predict_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse] - # - # @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 server_project_location_endpoint_streaming_predict(endpoint, google_cloud_aiplatform_v1beta1_streaming_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:serverStreamingPredict', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_streaming_predict_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + 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 - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object + # 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 @@ -6157,33 +6510,30 @@ def server_project_location_endpoint_streaming_predict(endpoint, google_cloud_ai # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [Google::Apis::AiplatformV1beta1::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 set_project_location_endpoint_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation - command.request_object = google_iam_v1_set_iam_policy_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? + def cancel_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Generate content with multimodal inputs with streaming support. - # @param [String] model - # Required. The fully qualified name of the publisher model or tuned model - # endpoint to use. Publisher model format: `projects/`project`/locations/` - # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` - # project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object + # 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 @@ -6193,31 +6543,28 @@ def set_project_location_endpoint_iam_policy(resource, google_iam_v1_set_iam_pol # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] + # @return [Google::Apis::AiplatformV1beta1::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 stream_project_location_endpoint_generate_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+model}:streamGenerateContent', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse - command.params['model'] = model unless model.nil? + def delete_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # 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`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamRawPredictRequest] google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object + # 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 @@ -6227,39 +6574,41 @@ def stream_project_location_endpoint_generate_content(model, google_cloud_aiplat # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] + # @return [Google::Apis::AiplatformV1beta1::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_project_location_endpoint_raw_predict(endpoint, google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:streamRawPredict', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamRawPredictRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody - command.params['endpoint'] = endpoint unless endpoint.nil? + def get_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See [ - # Resource names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Array, String] permissions - # The set of permissions to check for the `resource`. Permissions with wildcards - # (such as `*` or `storage.*`) are not allowed. For more information see [IAM - # Overview](https://cloud.google.com/iam/docs/overview#permissions). + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -6269,31 +6618,42 @@ def stream_project_location_endpoint_raw_predict(endpoint, google_cloud_aiplatfo # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 test_project_location_endpoint_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['permissions'] = permissions unless permissions.nil? + def list_metadata_store_context_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Undeploys a Model from an Endpoint, removing a DeployedModel from it, and - # freeing all resources it's using. - # @param [String] endpoint - # Required. The name of the Endpoint resource from which to undeploy a Model. - # Format: `projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UndeployModelRequest] google_cloud_aiplatform_v1beta1_undeploy_model_request_object + # 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 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 @@ -6311,22 +6671,27 @@ def test_project_location_endpoint_iam_permissions(resource, permissions: nil, f # @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 undeploy_project_location_endpoint_model(endpoint, google_cloud_aiplatform_v1beta1_undeploy_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:undeployModel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UndeployModelRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_undeploy_model_request_object + def wait_metadata_store_context_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['endpoint'] = endpoint unless endpoint.nil? + 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 - # Updates an Endpoint with a long running operation. + # 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 - # Output only. The resource name of the Endpoint. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest] google_cloud_aiplatform_v1beta1_update_endpoint_long_running_request_object + # 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 @@ -6336,31 +6701,30 @@ def undeploy_project_location_endpoint_model(endpoint, google_cloud_aiplatform_v # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 update_project_location_endpoint(name, google_cloud_aiplatform_v1beta1_update_endpoint_long_running_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:update', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_update_endpoint_long_running_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def cancel_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Exposes an OpenAI-compatible endpoint for chat completions. - # @param [String] endpoint - # Required. The name of the endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] google_api_http_body_object + # 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 @@ -6370,36 +6734,28 @@ def update_project_location_endpoint(name, google_cloud_aiplatform_v1beta1_updat # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] + # @return [Google::Apis::AiplatformV1beta1::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 completions_project_location_endpoint_chat(endpoint, google_api_http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}/chat/completions', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.request_object = google_api_http_body_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody - command.params['endpoint'] = endpoint unless endpoint.nil? + def delete_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # 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 [String] deployed_model_id - # ID of the DeployedModel that serves the invoke request. - # @param [String] invoke_id - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1InvokeRequest] google_cloud_aiplatform_v1beta1_invoke_request_object + # 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 @@ -6409,36 +6765,41 @@ def completions_project_location_endpoint_chat(endpoint, google_api_http_body_ob # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] + # @return [Google::Apis::AiplatformV1beta1::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 invoke_project_location_endpoint_deployed_model_invoke(endpoint, deployed_model_id, invoke_id, google_cloud_aiplatform_v1beta1_invoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}/deployedModels/{deployedModelId}/invoke/{+invokeId}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1InvokeRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_invoke_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody - command.params['endpoint'] = endpoint unless endpoint.nil? - command.params['deployedModelId'] = deployed_model_id unless deployed_model_id.nil? - command.params['invokeId'] = invoke_id unless invoke_id.nil? + def get_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # 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 [String] invoke_id - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1InvokeRequest] google_cloud_aiplatform_v1beta1_invoke_request_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -6448,36 +6809,42 @@ def invoke_project_location_endpoint_deployed_model_invoke(endpoint, deployed_mo # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] + # @return [Google::Apis::AiplatformV1beta1::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 invoke_project_location_endpoint_invoke(endpoint, invoke_id, google_cloud_aiplatform_v1beta1_invoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}/invoke/{+invokeId}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1InvokeRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_invoke_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody - command.params['endpoint'] = endpoint unless endpoint.nil? - command.params['invokeId'] = invoke_id unless invoke_id.nil? + def list_metadata_store_execution_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # 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::AiplatformV1beta1::GoogleApiHttpBody] google_api_http_body_object - # @param [String] deployed_model_id - # ID of the DeployedModel that serves the invoke request. + # 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 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 @@ -6487,22 +6854,20 @@ def invoke_project_location_endpoint_invoke(endpoint, invoke_id, google_cloud_ai # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] + # @return [Google::Apis::AiplatformV1beta1::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 embeddings_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, 'v1beta1/{+endpoint}/embeddings', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.request_object = google_api_http_body_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody - command.params['endpoint'] = endpoint unless endpoint.nil? - command.query['deployedModelId'] = deployed_model_id unless deployed_model_id.nil? + def wait_metadata_store_execution_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -6535,7 +6900,7 @@ def embeddings_project_location_endpoint_openapi(endpoint, google_api_http_body_ # @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_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -6568,7 +6933,7 @@ def cancel_project_location_endpoint_operation(name, fields: nil, quota_user: ni # @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_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -6599,7 +6964,7 @@ def delete_project_location_endpoint_operation(name, fields: nil, quota_user: ni # @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_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -6643,7 +7008,7 @@ def get_project_location_endpoint_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 list_project_location_endpoint_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_metadata_store_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -6688,7 +7053,7 @@ def list_project_location_endpoint_operations(name, filter: nil, page_size: 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 wait_project_location_endpoint_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_metadata_store_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -6699,11 +7064,16 @@ def wait_project_location_endpoint_operation(name, timeout: nil, fields: nil, qu execute_or_queue_command(command, &block) end - # Creates an Evaluation Item. - # @param [String] parent - # Required. The resource name of the Location to create the Evaluation Item in. - # Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem] google_cloud_aiplatform_v1beta1_evaluation_item_object + # 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 @@ -6713,30 +7083,30 @@ def wait_project_location_endpoint_operation(name, timeout: nil, fields: nil, qu # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_evaluation_item(parent, google_cloud_aiplatform_v1beta1_evaluation_item_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/evaluationItems', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem::Representation - command.request_object = google_cloud_aiplatform_v1beta1_evaluation_item_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem - command.params['parent'] = parent unless parent.nil? + def cancel_migratable_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 an Evaluation Item. + # 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 - # Required. The name of the EvaluationItem resource to be deleted. Format: ` - # projects/`project`/locations/`location`/evaluationItems/`evaluation_item`` + # 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 @@ -6746,28 +7116,28 @@ def create_project_location_evaluation_item(parent, google_cloud_aiplatform_v1be # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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_evaluation_item(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_migratable_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 an Evaluation Item. + # 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 - # Required. The name of the EvaluationItem resource. Format: `projects/`project`/ - # locations/`location`/evaluationItems/`evaluation_item`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -6777,126 +7147,15 @@ def delete_project_location_evaluation_item(name, fields: nil, quota_user: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem] + # @return [Google::Apis::AiplatformV1beta1::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_evaluation_item(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem - 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 Evaluation Items. - # @param [String] parent - # Required. The resource name of the Location from which to list the Evaluation - # Items. Format: `projects/`project`/locations/`location`` - # @param [String] filter - # Optional. Filter expression that matches a subset of the EvaluationItems to - # show. For field names both snake_case and camelCase are supported. For more - # information about filter syntax, see [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 by default. Use `desc` after a field name for descending. - # @param [Fixnum] page_size - # Optional. The maximum number of Evaluation Items to return. - # @param [String] page_token - # Optional. A page token, received from a previous `ListEvaluationItems` 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse] - # - # @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_evaluation_items(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, 'v1beta1/{+parent}/evaluationItems', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse - 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 - - # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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_evaluation_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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_evaluation_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_migratable_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -6940,7 +7199,7 @@ def get_project_location_evaluation_item_operation(name, fields: nil, quota_user # @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_evaluation_item_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_migratable_resource_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -6985,7 +7244,7 @@ def list_project_location_evaluation_item_operations(name, filter: nil, page_siz # @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_project_location_evaluation_item_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_migratable_resource_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -6996,12 +7255,16 @@ def wait_project_location_evaluation_item_operation(name, timeout: nil, fields: execute_or_queue_command(command, &block) end - # Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run - # asynchronously. Status of run can be checked via GetEvaluationRun. + # 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 - # Required. The name of the EvaluationRun resource to be cancelled. Format: ` - # projects/`project`/locations/`location`/evaluationRuns/`evaluation_run`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest] google_cloud_aiplatform_v1beta1_cancel_evaluation_run_request_object + # 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 @@ -7019,10 +7282,8 @@ def wait_project_location_evaluation_item_operation(name, timeout: nil, fields: # @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_evaluation_run(name, google_cloud_aiplatform_v1beta1_cancel_evaluation_run_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def cancel_model_deployment_monitoring_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_cancel_evaluation_run_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? @@ -7031,11 +7292,12 @@ def cancel_project_location_evaluation_run(name, google_cloud_aiplatform_v1beta1 execute_or_queue_command(command, &block) end - # Creates an Evaluation Run. - # @param [String] parent - # Required. The resource name of the Location to create the Evaluation Run in. - # Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun] google_cloud_aiplatform_v1beta1_evaluation_run_object + # 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 @@ -7045,30 +7307,28 @@ def cancel_project_location_evaluation_run(name, google_cloud_aiplatform_v1beta1 # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_evaluation_run(parent, google_cloud_aiplatform_v1beta1_evaluation_run_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/evaluationRuns', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun::Representation - command.request_object = google_cloud_aiplatform_v1beta1_evaluation_run_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun - command.params['parent'] = parent unless parent.nil? + def delete_model_deployment_monitoring_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 an Evaluation Run. + # 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 - # Required. The name of the EvaluationRun resource to be deleted. Format: ` - # projects/`project`/locations/`location`/evaluationRuns/`evaluation_run`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7086,8 +7346,8 @@ def create_project_location_evaluation_run(parent, google_cloud_aiplatform_v1bet # @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_evaluation_run(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def get_model_deployment_monitoring_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -7096,10 +7356,23 @@ def delete_project_location_evaluation_run(name, fields: nil, quota_user: nil, o execute_or_queue_command(command, &block) end - # Gets an Evaluation Run. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Required. The name of the EvaluationRun resource. Format: `projects/`project`/ - # locations/`location`/evaluationRuns/`evaluation_run`` + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -7109,40 +7382,42 @@ def delete_project_location_evaluation_run(name, fields: nil, quota_user: nil, o # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_evaluation_run(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun + def list_model_deployment_monitoring_job_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Lists Evaluation Runs. - # @param [String] parent - # Required. The resource name of the Location from which to list the Evaluation - # Runs. Format: `projects/`project`/locations/`location`` - # @param [String] filter - # Optional. Filter expression that matches a subset of the EvaluationRuns to - # show. For field names both snake_case and camelCase are supported. For more - # information about filter syntax, see [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 by default. Use `desc` after a field name for descending. - # @param [Fixnum] page_size - # Optional. The maximum number of Evaluation Runs to return. - # @param [String] page_token - # Optional. A page token, received from a previous `ListEvaluationRuns` call. - # Provide this to retrieve the subsequent page. + # 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 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 @@ -7152,23 +7427,57 @@ def get_project_location_evaluation_run(name, fields: nil, quota_user: nil, opti # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_evaluation_runs(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, 'v1beta1/{+parent}/evaluationRuns', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse - 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? + def wait_model_deployment_monitoring_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -7197,7 +7506,7 @@ def list_project_location_evaluation_runs(parent, filter: nil, order_by: nil, pa # @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_evaluation_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_model_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -7228,7 +7537,7 @@ def delete_project_location_evaluation_run_operation(name, fields: nil, quota_us # @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_evaluation_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_model_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -7272,7 +7581,7 @@ def get_project_location_evaluation_run_operation(name, fields: nil, quota_user: # @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_evaluation_run_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_model_monitor_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -7317,7 +7626,7 @@ def list_project_location_evaluation_run_operations(name, filter: nil, page_size # @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_project_location_evaluation_run_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_model_monitor_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -7328,11 +7637,16 @@ def wait_project_location_evaluation_run_operation(name, timeout: nil, fields: n execute_or_queue_command(command, &block) end - # Creates an Evaluation Set. - # @param [String] parent - # Required. The resource name of the Location to create the Evaluation Set in. - # Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] google_cloud_aiplatform_v1beta1_evaluation_set_object + # 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 @@ -7342,30 +7656,30 @@ def wait_project_location_evaluation_run_operation(name, timeout: nil, fields: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_evaluation_set(parent, google_cloud_aiplatform_v1beta1_evaluation_set_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/evaluationSets', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation - command.request_object = google_cloud_aiplatform_v1beta1_evaluation_set_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet - command.params['parent'] = parent unless parent.nil? + def cancel_model_evaluation_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 an Evaluation Set. + # 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 - # Required. The name of the EvaluationSet resource to be deleted. Format: ` - # projects/`project`/locations/`location`/evaluationSets/`evaluation_set`` + # 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 @@ -7375,28 +7689,28 @@ def create_project_location_evaluation_set(parent, google_cloud_aiplatform_v1bet # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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_evaluation_set(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_model_evaluation_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 an Evaluation Set. + # 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 - # Required. The name of the EvaluationSet resource. Format: `projects/`project`/ - # locations/`location`/evaluationSets/`evaluation_set`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -7406,40 +7720,41 @@ def delete_project_location_evaluation_set(name, fields: nil, quota_user: nil, o # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] + # @return [Google::Apis::AiplatformV1beta1::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_evaluation_set(name, fields: nil, quota_user: nil, options: nil, &block) + def get_model_evaluation_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 Evaluation Sets. - # @param [String] parent - # Required. The resource name of the Location from which to list the Evaluation - # Sets. Format: `projects/`project`/locations/`location`` + # 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 - # Optional. Filter expression that matches a subset of the EvaluationSets to - # show. For field names both snake_case and camelCase are supported. For more - # information about filter syntax, see [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 by default. Use `desc` after a field name for descending. + # The standard list filter. # @param [Fixnum] page_size - # Optional. The maximum number of Evaluation Sets to return. + # The standard list page size. # @param [String] page_token - # Optional. A page token, received from a previous `ListEvaluationSets` call. - # Provide this to retrieve the subsequent page. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -7449,36 +7764,42 @@ def get_project_location_evaluation_set(name, fields: nil, quota_user: nil, opti # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_evaluation_sets(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, 'v1beta1/{+parent}/evaluationSets', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse - command.params['parent'] = parent unless parent.nil? + def list_model_evaluation_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse + command.params['name'] = name unless name.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['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 - # Updates an Evaluation Set. + # 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 - # Identifier. The resource name of the EvaluationSet. Format: `projects/`project` - # /locations/`location`/evaluationSets/`evaluation_set`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] google_cloud_aiplatform_v1beta1_evaluation_set_object - # @param [String] update_mask - # Optional. The update mask applies to the resource. For the `FieldMask` - # definition, see google.protobuf.FieldMask. + # 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 @@ -7488,22 +7809,57 @@ def list_project_location_evaluation_sets(parent, filter: nil, order_by: nil, pa # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_evaluation_set(name, google_cloud_aiplatform_v1beta1_evaluation_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation - command.request_object = google_cloud_aiplatform_v1beta1_evaluation_set_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet + def wait_model_evaluation_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty 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) @@ -7532,7 +7888,7 @@ def patch_project_location_evaluation_set(name, google_cloud_aiplatform_v1beta1_ # @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_evaluation_set_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_model_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -7563,7 +7919,7 @@ def delete_project_location_evaluation_set_operation(name, fields: nil, quota_us # @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_evaluation_set_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_model_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -7607,7 +7963,7 @@ def get_project_location_evaluation_set_operation(name, fields: nil, quota_user: # @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_evaluation_set_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_model_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -7652,7 +8008,7 @@ def list_project_location_evaluation_set_operations(name, filter: nil, page_size # @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_project_location_evaluation_set_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_model_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -7663,6 +8019,43 @@ def wait_project_location_evaluation_set_operation(name, timeout: nil, fields: n 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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. @@ -7686,7 +8079,7 @@ def wait_project_location_evaluation_set_operation(name, timeout: nil, fields: n # @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_evaluation_task_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -7717,7 +8110,7 @@ def delete_project_location_evaluation_task_operation(name, fields: nil, quota_u # @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_evaluation_task_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -7761,7 +8154,7 @@ def get_project_location_evaluation_task_operation(name, fields: nil, quota_user # @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_evaluation_task_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_notebook_execution_job_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -7806,7 +8199,7 @@ def list_project_location_evaluation_task_operations(name, filter: nil, page_siz # @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_project_location_evaluation_task_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_notebook_execution_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -7817,24 +8210,16 @@ def wait_project_location_evaluation_task_operation(name, timeout: nil, fields: execute_or_queue_command(command, &block) end - # Create an ExampleStore. - # @param [String] parent - # Required. The resource name of the Location to create the ExampleStore in. - # Format: `projects/`project`/locations/`location`` - # @param [String] example_store_create_time - # Output only. Timestamp when this ExampleStore was created. - # @param [String] example_store_description - # Optional. Description of the ExampleStore. - # @param [String] example_store_display_name - # Required. Display name of the ExampleStore. - # @param [String] example_store_example_store_config_vertex_embedding_model - # Required. The embedding model to be used for vector embedding. Immutable. - # Supported models: * "text-embedding-005" * "text-multilingual-embedding-002" - # @param [String] example_store_name - # Identifier. The resource name of the ExampleStore. This is a unique identifier. - # Format: projects/`project`/locations/`location`/exampleStores/`example_store` - # @param [String] example_store_update_time - # Output only. Timestamp when this ExampleStore was most recently updated. + # 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 @@ -7844,34 +8229,61 @@ def wait_project_location_evaluation_task_operation(name, timeout: nil, fields: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_example_store(parent, example_store_create_time: nil, example_store_description: nil, example_store_display_name: nil, example_store_example_store_config_vertex_embedding_model: nil, example_store_name: nil, example_store_update_time: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/exampleStores:create', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? - command.query['exampleStore.createTime'] = example_store_create_time unless example_store_create_time.nil? - command.query['exampleStore.description'] = example_store_description unless example_store_description.nil? - command.query['exampleStore.displayName'] = example_store_display_name unless example_store_display_name.nil? - command.query['exampleStore.exampleStoreConfig.vertexEmbeddingModel'] = example_store_example_store_config_vertex_embedding_model unless example_store_example_store_config_vertex_embedding_model.nil? - command.query['exampleStore.name'] = example_store_name unless example_store_name.nil? - command.query['exampleStore.updateTime'] = example_store_update_time unless example_store_update_time.nil? + def cancel_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Delete an ExampleStore. + # 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 - # Required. The resource name of the ExampleStore to be deleted. Format: ` - # projects/`project`/locations/`location`/exampleStores/`example_store`` + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 @@ -7889,8 +8301,8 @@ def create_project_location_example_store(parent, example_store_create_time: 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_example_store(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def get_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -7899,12 +8311,23 @@ def delete_project_location_example_store(name, fields: nil, quota_user: nil, op execute_or_queue_command(command, &block) end - # Get Examples from the Example Store. - # @param [String] example_store - # Required. The name of the ExampleStore resource that the examples should be - # fetched from. Format: `projects/`project`/locations/`location`/exampleStores/` - # example_store`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesRequest] google_cloud_aiplatform_v1beta1_fetch_examples_request_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -7914,30 +8337,42 @@ def delete_project_location_example_store(name, fields: nil, quota_user: nil, op # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesResponse] + # @return [Google::Apis::AiplatformV1beta1::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 fetch_project_location_example_store_examples(example_store, google_cloud_aiplatform_v1beta1_fetch_examples_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+exampleStore}:fetchExamples', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_fetch_examples_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesResponse - command.params['exampleStore'] = example_store unless example_store.nil? + def list_notebook_runtime_template_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Get an ExampleStore. + # 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 resource name of the ExampleStore. Format: `projects/`project`/ - # locations/`location`/exampleStores/`example_store`` + # 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 @@ -7947,35 +8382,35 @@ def fetch_project_location_example_store_examples(example_store, google_cloud_ai # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore] + # @return [Google::Apis::AiplatformV1beta1::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_example_store(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore + def wait_notebook_runtime_template_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # List ExampleStores in a Location. - # @param [String] parent - # Required. The resource name of the Location to list the ExampleStores from. - # Format: `projects/`project`/locations/`location`` - # @param [String] filter - # Optional. The standard list filter. More detail in [AIP-160](https://google. - # aip.dev/160). - # @param [Fixnum] page_size - # Optional. The standard list page size. - # @param [String] page_token - # Optional. The standard list page token. + # 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 @@ -7985,35 +8420,30 @@ def get_project_location_example_store(name, fields: nil, quota_user: nil, optio # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExampleStoresResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExampleStoresResponse] + # @return [Google::Apis::AiplatformV1beta1::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 list_project_location_example_stores(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/exampleStores', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExampleStoresResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExampleStoresResponse - 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? + def cancel_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Update an ExampleStore. + # 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 - # Identifier. The resource name of the ExampleStore. This is a unique identifier. - # Format: projects/`project`/locations/`location`/exampleStores/`example_store` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore] google_cloud_aiplatform_v1beta1_example_store_object - # @param [String] update_mask - # Optional. Mask specifying which fields to update. Supported fields: * ` - # display_name` * `description` + # 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 @@ -8023,33 +8453,28 @@ def list_project_location_example_stores(parent, filter: nil, page_size: nil, pa # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_example_store(name, google_cloud_aiplatform_v1beta1_example_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore::Representation - command.request_object = google_cloud_aiplatform_v1beta1_example_store_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def delete_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty 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 - # Remove Examples from the Example Store. - # @param [String] example_store - # Required. The name of the ExampleStore resource that the examples should be - # removed from. Format: `projects/`project`/locations/`location`/exampleStores/` - # example_store`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesRequest] google_cloud_aiplatform_v1beta1_remove_examples_request_object + # 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 @@ -8059,32 +8484,41 @@ def patch_project_location_example_store(name, google_cloud_aiplatform_v1beta1_e # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesResponse] + # @return [Google::Apis::AiplatformV1beta1::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 remove_project_location_example_store_examples(example_store, google_cloud_aiplatform_v1beta1_remove_examples_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+exampleStore}:removeExamples', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_remove_examples_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesResponse - command.params['exampleStore'] = example_store unless example_store.nil? + def get_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Search for similar Examples for given selection criteria. - # @param [String] example_store - # Required. The name of the ExampleStore resource that examples are retrieved - # from. Format: `projects/`project`/locations/`location`/exampleStores/` - # example_store`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesRequest] google_cloud_aiplatform_v1beta1_search_examples_request_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -8094,32 +8528,42 @@ def remove_project_location_example_store_examples(example_store, google_cloud_a # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponse] + # @return [Google::Apis::AiplatformV1beta1::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 search_project_location_example_store_examples(example_store, google_cloud_aiplatform_v1beta1_search_examples_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+exampleStore}:searchExamples', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_search_examples_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponse - command.params['exampleStore'] = example_store unless example_store.nil? + def list_notebook_runtime_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Create or update Examples in the Example Store. - # @param [String] example_store - # Required. The name of the ExampleStore resource that examples are added to or - # updated in. Format: `projects/`project`/locations/`location`/exampleStores/` - # example_store`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesRequest] google_cloud_aiplatform_v1beta1_upsert_examples_request_object + # 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 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 @@ -8129,21 +8573,20 @@ def search_project_location_example_store_examples(example_store, google_cloud_a # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesResponse] + # @return [Google::Apis::AiplatformV1beta1::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 upsert_project_location_example_store_examples(example_store, google_cloud_aiplatform_v1beta1_upsert_examples_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+exampleStore}:upsertExamples', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_upsert_examples_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesResponse - command.params['exampleStore'] = example_store unless example_store.nil? + def wait_notebook_runtime_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -8176,7 +8619,7 @@ def upsert_project_location_example_store_examples(example_store, google_cloud_a # @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_example_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -8209,7 +8652,7 @@ def cancel_project_location_example_store_operation(name, fields: nil, quota_use # @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_example_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -8240,7 +8683,7 @@ def delete_project_location_example_store_operation(name, fields: nil, quota_use # @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_example_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -8252,10 +8695,10 @@ def get_project_location_example_store_operation(name, fields: nil, quota_user: # 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 [String] name + # The name of the operation's parent resource. # @param [Fixnum] page_size # The standard list page size. # @param [String] page_token @@ -8284,12 +8727,12 @@ def get_project_location_example_store_operation(name, fields: nil, quota_user: # @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_example_store_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, 'v1beta1/{+name}/operations', options) + def list_operations(filter: nil, name: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse - command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? + command.query['name'] = name unless name.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? @@ -8329,7 +8772,7 @@ def list_project_location_example_store_operations(name, filter: nil, page_size: # @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_project_location_example_store_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -8367,7 +8810,7 @@ def wait_project_location_example_store_operation(name, timeout: nil, fields: ni # @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_extension_controller_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_persistent_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -8400,7 +8843,7 @@ def cancel_project_location_extension_controller_operation(name, fields: nil, qu # @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_extension_controller_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_persistent_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -8431,7 +8874,7 @@ def delete_project_location_extension_controller_operation(name, fields: nil, qu # @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_extension_controller_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_persistent_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -8475,7 +8918,7 @@ def get_project_location_extension_controller_operation(name, fields: nil, quota # @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_extension_controller_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_persistent_resource_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -8520,7 +8963,7 @@ def list_project_location_extension_controller_operations(name, filter: nil, pag # @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_project_location_extension_controller_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_persistent_resource_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -8531,10 +8974,16 @@ def wait_project_location_extension_controller_operation(name, timeout: nil, fie execute_or_queue_command(command, &block) end - # Deletes an Extension. + # 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 - # Required. The name of the Extension resource to be deleted. Format: `projects/` - # project`/locations/`location`/extensions/`extension`` + # 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 @@ -8544,29 +8993,30 @@ def wait_project_location_extension_controller_operation(name, timeout: nil, fie # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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_extension(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def cancel_pipeline_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Executes the request against a given extension. + # 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 - # Required. Name (identifier) of the extension; Format: `projects/`project`/ - # locations/`location`/extensions/`extension`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionRequest] google_cloud_aiplatform_v1beta1_execute_extension_request_object + # 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 @@ -8576,30 +9026,28 @@ def delete_project_location_extension(name, fields: nil, quota_user: nil, option # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionResponse] + # @return [Google::Apis::AiplatformV1beta1::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 execute_project_location_extension(name, google_cloud_aiplatform_v1beta1_execute_extension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:execute', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_execute_extension_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionResponse + def delete_pipeline_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 an Extension. + # 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 - # Required. The name of the Extension resource. Format: `projects/`project`/ - # locations/`location`/extensions/`extension`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8609,29 +9057,41 @@ def execute_project_location_extension(name, google_cloud_aiplatform_v1beta1_exe # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] + # @return [Google::Apis::AiplatformV1beta1::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_extension(name, fields: nil, quota_user: nil, options: nil, &block) + def get_pipeline_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Imports an Extension. - # @param [String] parent - # Required. The resource name of the Location to import the Extension in. Format: - # `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] google_cloud_aiplatform_v1beta1_extension_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -8641,43 +9101,42 @@ def get_project_location_extension(name, fields: nil, quota_user: nil, options: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 import_project_location_extension(parent, google_cloud_aiplatform_v1beta1_extension_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/extensions:import', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation - command.request_object = google_cloud_aiplatform_v1beta1_extension_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def list_pipeline_job_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Lists Extensions in a location. - # @param [String] parent - # Required. The resource name of the Location to list the Extensions from. - # Format: `projects/`project`/locations/`location`` - # @param [String] filter - # Optional. The standard list filter. Supported fields: * `display_name` * ` - # create_time` * `update_time` 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: * ` - # display_name` * `create_time` * `update_time` Example: `display_name, - # create_time desc`. - # @param [Fixnum] page_size - # Optional. The standard list page size. - # @param [String] page_token - # Optional. The standard list page token. + # 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 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 @@ -8687,36 +9146,29 @@ def import_project_location_extension(parent, google_cloud_aiplatform_v1beta1_ex # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_extensions(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, 'v1beta1/{+parent}/extensions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse - 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? + def wait_pipeline_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Updates an Extension. + # Fetches the configs of publisher models. # @param [String] name - # Identifier. The resource name of the Extension. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] google_cloud_aiplatform_v1beta1_extension_object - # @param [String] update_mask - # Required. Mask specifying which fields to update. Supported fields: * ` - # display_name` * `description` * `runtime_config` * `tool_use_examples` * ` - # manifest.description` + # Required. The name of the publisher model, in the format of `projects/`project` + # /locations/`location`/publishers/`publisher`/models/`model``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8726,32 +9178,27 @@ def list_project_location_extensions(parent, filter: nil, order_by: nil, page_si # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig] # # @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_extension(name, google_cloud_aiplatform_v1beta1_extension_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation - command.request_object = google_cloud_aiplatform_v1beta1_extension_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension + def fetch_project_publisher_model_config(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}:fetchPublisherModelConfig', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig 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 - # Queries an extension with a default controller. + # Gets a GenAI cache config. # @param [String] name - # Required. Name (identifier) of the extension; Format: `projects/`project`/ - # locations/`location`/extensions/`extension`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionRequest] google_cloud_aiplatform_v1beta1_query_extension_request_object + # Required. Name of the cache config. Format: - `projects/`project`/cacheConfig`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8761,36 +9208,30 @@ def patch_project_location_extension(name, google_cloud_aiplatform_v1beta1_exten # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig] # # @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_project_location_extension(name, google_cloud_aiplatform_v1beta1_query_extension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:query', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_query_extension_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse + def get_project_cache_config(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig 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`. + # Sets (creates or updates) configs of publisher models. For example, sets the + # request/response logging config. # @param [String] name - # The name of the operation resource to be cancelled. + # Required. The name of the publisher model, in the format of `projects/`project` + # /locations/`location`/publishers/`publisher`/models/`model``. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest] google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8800,30 +9241,31 @@ def query_project_location_extension(name, google_cloud_aiplatform_v1beta1_query # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::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 cancel_project_location_extension_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def set_project_publisher_model_config(name, google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:setPublisherModelConfig', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # 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`. + # Updates a cache config. # @param [String] name - # The name of the operation resource to be deleted. + # Identifier. Name of the cache config. Format: - `projects/`project`/ + # cacheConfig`. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig] google_cloud_aiplatform_v1beta1_cache_config_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8833,28 +9275,33 @@ def cancel_project_location_extension_operation(name, fields: nil, quota_user: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::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_extension_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def update_project_cache_config(name, google_cloud_aiplatform_v1beta1_cache_config_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig::Representation + command.request_object = google_cloud_aiplatform_v1beta1_cache_config_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 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. + # Given an input prompt, it returns augmented prompt from vertex rag store to + # guide LLM towards generating grounded responses. + # @param [String] parent + # Required. The resource name of the Location from which to augment prompt. The + # users must have permission to make a call in the project. Format: `projects/` + # project`/locations/`location``. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AugmentPromptRequest] google_cloud_aiplatform_v1beta1_augment_prompt_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8864,41 +9311,34 @@ def delete_project_location_extension_operation(name, fields: nil, quota_user: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AugmentPromptResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AugmentPromptResponse] # # @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_extension_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + def augment_project_location_prompt(parent, google_cloud_aiplatform_v1beta1_augment_prompt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}:augmentPrompt', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AugmentPromptRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_augment_prompt_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AugmentPromptResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AugmentPromptResponse + 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 - # 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 e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # Given an input text, it returns a score that evaluates the factuality of the + # text. It also extracts and returns claims from the text and provides + # supporting facts. + # @param [String] parent + # Required. The resource name of the Location from which to corroborate text. + # The users must have permission to make a call in the project. Format: ` + # projects/`project`/locations/`location``. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CorroborateContentRequest] google_cloud_aiplatform_v1beta1_corroborate_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8908,42 +9348,31 @@ def get_project_location_extension_operation(name, fields: nil, quota_user: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CorroborateContentResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CorroborateContentResponse] # # @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_extension_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, 'v1beta1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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? + def corroborate_project_location_content(parent, google_cloud_aiplatform_v1beta1_corroborate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}:corroborateContent', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CorroborateContentRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_corroborate_content_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CorroborateContentResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CorroborateContentResponse + 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 - # 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 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. + # Deploys a model to a new endpoint. + # @param [String] destination + # Required. The resource name of the Location to deploy the model in. Format: ` + # projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployRequest] google_cloud_aiplatform_v1beta1_deploy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8961,27 +9390,23 @@ def list_project_location_extension_operations(name, filter: nil, page_size: 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 wait_project_location_extension_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + def deploy_project_location(destination, google_cloud_aiplatform_v1beta1_deploy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+destination}:deploy', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_deploy_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? - command.query['timeout'] = timeout unless timeout.nil? + command.params['destination'] = destination unless destination.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 FeatureGroup in a given project and location. - # @param [String] parent - # Required. The resource name of the Location to create FeatureGroups. Format: ` + # Deploys publisher models. + # @param [String] destination + # Required. The resource name of the Location to deploy the model in. Format: ` # projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup] google_cloud_aiplatform_v1beta1_feature_group_object - # @param [String] feature_group_id - # Required. The ID to use for this FeatureGroup, which will become the final - # component of the FeatureGroup's resource name. This value may be up to 128 - # characters, and valid characters are `[a-z0-9_]`. The first character cannot - # be a number. The value must be unique within the project and location. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployPublisherModelRequest] google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -8999,26 +9424,23 @@ def wait_project_location_extension_operation(name, timeout: nil, fields: nil, q # @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_feature_group(parent, google_cloud_aiplatform_v1beta1_feature_group_object = nil, feature_group_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/featureGroups', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup::Representation - command.request_object = google_cloud_aiplatform_v1beta1_feature_group_object + def deploy_project_location_publisher_model(destination, google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+destination}:deployPublisherModel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployPublisherModelRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? - command.query['featureGroupId'] = feature_group_id unless feature_group_id.nil? + command.params['destination'] = destination unless destination.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 single FeatureGroup. - # @param [String] name - # Required. The name of the FeatureGroup to be deleted. Format: `projects/` - # project`/locations/`location`/featureGroups/`feature_group`` - # @param [Boolean] force - # If set to true, any Features under this FeatureGroup will also be deleted. ( - # Otherwise, the request will only work if the FeatureGroup has no Features.) + # Evaluates a dataset based on a set of given metrics. + # @param [String] location + # Required. The resource name of the Location to evaluate the dataset. Format: ` + # projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateDatasetRequest] google_cloud_aiplatform_v1beta1_evaluate_dataset_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9036,20 +9458,23 @@ def create_project_location_feature_group(parent, google_cloud_aiplatform_v1beta # @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_feature_group(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def evaluate_project_location_dataset(location, google_cloud_aiplatform_v1beta1_evaluate_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+location}:evaluateDataset', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateDatasetRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_evaluate_dataset_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? - command.query['force'] = force unless force.nil? + command.params['location'] = location unless location.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 a single FeatureGroup. - # @param [String] name - # Required. The name of the FeatureGroup resource. + # Evaluates instances based on a given metric. + # @param [String] location + # Required. The resource name of the Location to evaluate the instances. Format: + # `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesRequest] google_cloud_aiplatform_v1beta1_evaluate_instances_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9059,41 +9484,34 @@ def delete_project_location_feature_group(name, force: nil, fields: nil, quota_u # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesResponse] # # @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_feature_group(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup - command.params['name'] = name unless name.nil? + def evaluate_project_location_instances(location, google_cloud_aiplatform_v1beta1_evaluate_instances_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+location}:evaluateInstances', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_evaluate_instances_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesResponse + command.params['location'] = location unless location.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 access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The maximum policy version that will be used to format the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. Requests for policies with any conditional role bindings must - # specify version 3. Policies with no conditional role bindings may specify any - # valid value or leave the field unset. The policy in the response might use the - # policy version that you specified, or it might use a lower policy version. For - # example, if you specify version 3, but the policy has no conditional role - # bindings, the response uses version 1. To learn which resources support - # conditions in their IAM policies, see the [IAM documentation](https://cloud. - # google.com/iam/help/conditions/resource-policies). + # Generates rubrics for a given prompt. A rubric represents a single testable + # criterion for evaluation. One input prompt could have multiple rubrics This + # RPC allows users to get suggested rubrics based on provided prompt, which can + # then be reviewed and used for subsequent evaluations. + # @param [String] location + # Required. The resource name of the Location to generate rubrics from. Format: ` + # projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest] google_cloud_aiplatform_v1beta1_generate_instance_rubrics_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9103,51 +9521,31 @@ def get_project_location_feature_group(name, fields: nil, quota_user: nil, optio # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse] # # @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_feature_group_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? + def generate_project_location_instance_rubrics(location, google_cloud_aiplatform_v1beta1_generate_instance_rubrics_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+location}:generateInstanceRubrics', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_instance_rubrics_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse + command.params['location'] = location unless location.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 FeatureGroups in a given project and location. - # @param [String] parent - # Required. The resource name of the Location to list FeatureGroups. Format: ` - # projects/`project`/locations/`location`` - # @param [String] filter - # Lists the FeatureGroups that match the filter expression. The following fields - # are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` - # comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, - # `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. - # * `labels`: Supports key-value equality and key presence. Examples: * ` - # create_time > "2020-01-01" OR update_time > "2020-01-01"` FeatureGroups - # created or updated after 2020-01-01. * `labels.env = "prod"` FeatureGroups - # with label "env" set to "prod". - # @param [String] order_by - # 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` - # @param [Fixnum] page_size - # The maximum number of FeatureGroups to return. The service may return fewer - # than this value. If unspecified, at most 100 FeatureGroups will be returned. - # The maximum value is 100; any value greater than 100 will be coerced to 100. - # @param [String] page_token - # A page token, received from a previous FeatureRegistryService. - # ListFeatureGroups call. Provide this to retrieve the subsequent page. When - # paginating, all other parameters provided to FeatureRegistryService. - # ListFeatureGroups must match the call that provided the page token. + # Generates synthetic data based on the provided configuration. + # @param [String] location + # Required. The resource name of the Location to run the job. Format: `projects/` + # project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataRequest] google_cloud_aiplatform_v1beta1_generate_synthetic_data_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9157,41 +9555,29 @@ def get_project_location_feature_group_iam_policy(resource, options_requested_po # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataResponse] # # @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_feature_groups(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, 'v1beta1/{+parent}/featureGroups', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse - 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? + def generate_project_location_synthetic_data(location, google_cloud_aiplatform_v1beta1_generate_synthetic_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+location}:generateSyntheticData', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_synthetic_data_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataResponse + command.params['location'] = location unless location.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 parameters of a single FeatureGroup. + # Gets information about a location. # @param [String] name - # Identifier. Name of the FeatureGroup. Format: `projects/`project`/locations/` - # location`/featureGroups/`featureGroup`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup] google_cloud_aiplatform_v1beta1_feature_group_object - # @param [String] update_mask - # Field mask is used to specify the fields to be overwritten in the FeatureGroup - # resource by the update. The fields specified in the update_mask are relative - # to the resource, not the full request. A field will be overwritten if it is in - # the mask. If the user does not provide a mask then only the non-empty fields - # present in the request will be overwritten. Set the update_mask to `*` to - # override all fields. Updatable fields: * `labels` * `description` * `big_query` - # * `big_query.entity_id_columns` * `service_agent_type` + # Resource name for the location. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9201,35 +9587,28 @@ def list_project_location_feature_groups(parent, filter: nil, order_by: nil, pag # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudLocationLocation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudLocationLocation] # # @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_feature_group(name, google_cloud_aiplatform_v1beta1_feature_group_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup::Representation - command.request_object = google_cloud_aiplatform_v1beta1_feature_group_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudLocationLocation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudLocationLocation 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 - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object + # Gets a RagEngineConfig. + # @param [String] name + # Required. The name of the RagEngineConfig resource. Format: `projects/`project` + # /locations/`location`/ragEngineConfig` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9239,39 +9618,40 @@ def patch_project_location_feature_group(name, google_cloud_aiplatform_v1beta1_f # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig] # # @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 set_project_location_feature_group_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation - command.request_object = google_iam_v1_set_iam_policy_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? + def get_project_location_rag_engine_config(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig + 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 - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See [ - # Resource names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Array, String] permissions - # The set of permissions to check for the `resource`. Permissions with wildcards - # (such as `*` or `storage.*`) are not allowed. For more information see [IAM - # Overview](https://cloud.google.com/iam/docs/overview#permissions). + # Lists information about the supported locations for this service. + # @param [String] name + # The resource that owns the locations collection, if applicable. + # @param [Array, String] extra_location_types + # Optional. Unless explicitly documented otherwise, don't use this unsupported + # field which is primarily intended for internal usage. + # @param [String] filter + # A filter to narrow down results to a preferred subset. The filtering language + # accepts strings like `"displayName=tokyo"`, and is documented in more detail + # in [AIP-160](https://google.aip.dev/160). + # @param [Fixnum] page_size + # The maximum number of results to return. If not set, the service selects a + # default. + # @param [String] page_token + # A page token received from the `next_page_token` field in the response. Send + # that page token to receive the subsequent page. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9281,35 +9661,35 @@ def set_project_location_feature_group_iam_policy(resource, google_iam_v1_set_ia # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudLocationListLocationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudLocationListLocationsResponse] # # @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 test_project_location_feature_group_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['permissions'] = permissions unless permissions.nil? + def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/locations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudLocationListLocationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudLocationListLocationsResponse + command.params['name'] = name unless name.nil? + command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.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 - # Creates a new FeatureMonitor in a given project, location and FeatureGroup. + # Gets a Model's spec recommendations. This API is called by UI, SDK, and + # internal. # @param [String] parent - # Required. The resource name of FeatureGroup to create FeatureMonitor. Format: ` - # projects/`project`/locations/`location`/featureGroups/`featuregroup`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor] google_cloud_aiplatform_v1beta1_feature_monitor_object - # @param [String] feature_monitor_id - # Required. The ID to use for this FeatureMonitor, which will become the final - # component of the FeatureGroup's resource name. This value may be up to 60 - # characters, and valid characters are `[a-z0-9_]`. The first character cannot - # be a number. The value must be unique within the FeatureGroup. + # Required. The resource name of the Location from which to recommend specs. The + # users must have permission to make a call in the project. Format: `projects/` + # project`/locations/`location``. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecRequest] google_cloud_aiplatform_v1beta1_recommend_spec_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9319,32 +9699,66 @@ def test_project_location_feature_group_iam_permissions(resource, permissions: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse] # # @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_feature_group_feature_monitor(parent, google_cloud_aiplatform_v1beta1_feature_monitor_object = nil, feature_monitor_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/featureMonitors', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor::Representation - command.request_object = google_cloud_aiplatform_v1beta1_feature_monitor_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def recommend_project_location_spec(parent, google_cloud_aiplatform_v1beta1_recommend_spec_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}:recommendSpec', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_recommend_spec_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse command.params['parent'] = parent unless parent.nil? - command.query['featureMonitorId'] = feature_monitor_id unless feature_monitor_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 - # Deletes a single FeatureMonitor. + # Retrieves relevant contexts for a query. + # @param [String] parent + # Required. The resource name of the Location from which to retrieve RagContexts. + # The users must have permission to make a call in the project. Format: ` + # projects/`project`/locations/`location``. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsRequest] google_cloud_aiplatform_v1beta1_retrieve_contexts_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse] + # + # @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 retrieve_project_location_contexts(parent, google_cloud_aiplatform_v1beta1_retrieve_contexts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}:retrieveContexts', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_retrieve_contexts_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse + 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 + + # Updates a RagEngineConfig. # @param [String] name - # Required. The name of the FeatureMonitor to be deleted. Format: `projects/` - # project`/locations/`location`/featureGroups/`feature_group`/featureMonitors/` - # feature_monitor`` + # Identifier. The name of the RagEngineConfig. Format: `projects/`project`/ + # locations/`location`/ragEngineConfig` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig] google_cloud_aiplatform_v1beta1_rag_engine_config_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9362,8 +9776,10 @@ def create_project_location_feature_group_feature_monitor(parent, google_cloud_a # @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_feature_group_feature_monitor(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def update_project_location_rag_engine_config(name, google_cloud_aiplatform_v1beta1_rag_engine_config_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagEngineConfig::Representation + command.request_object = google_cloud_aiplatform_v1beta1_rag_engine_config_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -9372,9 +9788,16 @@ def delete_project_location_feature_group_feature_monitor(name, fields: nil, quo execute_or_queue_command(command, &block) end - # Gets details of a single FeatureMonitor. + # 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 - # Required. The name of the FeatureMonitor resource. + # 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 @@ -9384,51 +9807,30 @@ def delete_project_location_feature_group_feature_monitor(name, fields: nil, quo # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_feature_group_feature_monitor(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor + def cancel_project_location_agent_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Lists FeatureGroups in a given project and location. - # @param [String] parent - # Required. The resource name of the FeatureGroup to list FeatureMonitors. - # Format: `projects/`project`/locations/`location`/featureGroups/`featureGroup`` - # @param [String] filter - # Optional. Lists the FeatureMonitors that match the filter expression. The - # following fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, - # `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * `update_time`: - # Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in - # RFC 3339 format. * `labels`: Supports key-value equality and key presence. - # Examples: * `create_time > "2020-01-01" OR update_time > "2020-01-01"` - # FeatureMonitors created or updated after 2020-01-01. * `labels.env = "prod"` - # FeatureGroups with label "env" set to "prod". - # @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` - # @param [Fixnum] page_size - # Optional. The maximum number of FeatureGroups to return. The service may - # return fewer than this value. If unspecified, at most 100 FeatureMonitors will - # be returned. The maximum value is 100; any value greater than 100 will be - # coerced to 100. - # @param [String] page_token - # Optional. A page token, received from a previous FeatureRegistryService. - # ListFeatureMonitors call. Provide this to retrieve the subsequent page. When - # paginating, all other parameters provided to FeatureRegistryService. - # ListFeatureMonitors must match the call that provided the page token. + # 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 @@ -9438,41 +9840,28 @@ def get_project_location_feature_group_feature_monitor(name, fields: nil, quota_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 list_project_location_feature_group_feature_monitors(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, 'v1beta1/{+parent}/featureMonitors', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse - 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? + def delete_project_location_agent_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Updates the parameters of a single FeatureMonitor. + # 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 - # Identifier. Name of the FeatureMonitor. Format: `projects/`project`/locations/` - # location`/featureGroups/`featureGroup`/featureMonitors/`featureMonitor`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor] google_cloud_aiplatform_v1beta1_feature_monitor_object - # @param [String] update_mask - # Optional. Field mask is used to specify the fields to be overwritten in the - # FeatureMonitor resource by the update. The fields specified in the update_mask - # are relative to the resource, not the full request. A field will be - # overwritten if it is in the mask. If the user does not provide a mask then - # only the non-empty fields present in the request will be overwritten. Set the - # update_mask to `*` to override all fields. Updatable fields: * `labels` * ` - # description` * `schedule_config` * `feature_selection_config` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9490,27 +9879,33 @@ def list_project_location_feature_group_feature_monitors(parent, filter: nil, or # @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_feature_group_feature_monitor(name, google_cloud_aiplatform_v1beta1_feature_monitor_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor::Representation - command.request_object = google_cloud_aiplatform_v1beta1_feature_monitor_object + def get_project_location_agent_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation 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 - # Creates a new feature monitor job. - # @param [String] parent - # Required. The resource name of FeatureMonitor to create FeatureMonitorJob. - # Format: `projects/`project`/locations/`location`/featureGroups/`feature_group`/ - # featureMonitors/`feature_monitor`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob] google_cloud_aiplatform_v1beta1_feature_monitor_job_object - # @param [Fixnum] feature_monitor_job_id - # Optional. Output only. System-generated ID for feature monitor job. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -9520,32 +9915,42 @@ def patch_project_location_feature_group_feature_monitor(name, google_cloud_aipl # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_feature_group_feature_monitor_feature_monitor_job(parent, google_cloud_aiplatform_v1beta1_feature_monitor_job_object = nil, feature_monitor_job_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/featureMonitorJobs', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob::Representation - command.request_object = google_cloud_aiplatform_v1beta1_feature_monitor_job_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob - command.params['parent'] = parent unless parent.nil? - command.query['featureMonitorJobId'] = feature_monitor_job_id unless feature_monitor_job_id.nil? + def list_project_location_agent_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Get a feature monitor job. + # 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 FeatureMonitorJob resource. Format: `projects/` - # project`/locations/`location`/featureGroups/`feature_group`/featureMonitors/` - # feature_monitor`/featureMonitorJobs/`feature_monitor_job`` + # 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 @@ -9555,48 +9960,35 @@ def create_project_location_feature_group_feature_monitor_feature_monitor_job(pa # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob] + # @return [Google::Apis::AiplatformV1beta1::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_feature_group_feature_monitor_feature_monitor_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob + def wait_project_location_agent_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # List feature monitor jobs. - # @param [String] parent - # Required. The resource name of the FeatureMonitor to list FeatureMonitorJobs. - # Format: `projects/`project`/locations/`location`/featureGroups/`feature_group`/ - # featureMonitors/`feature_monitor`` - # @param [String] filter - # Optional. Lists the FeatureMonitorJobs that match the filter expression. The - # following fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, - # `<=`, and `>=` comparisons. Values must be Examples: * `create_time > "2020-01- - # 01"` FeatureMonitorJobs created after 2020-01-01. - # @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` - # @param [Fixnum] page_size - # Optional. The maximum number of FeatureMonitorJobs to return. The service may - # return fewer than this value. If unspecified, at most 100 FeatureMonitorJobs - # will be returned. The maximum value is 100; any value greater than 100 will be - # coerced to 100. - # @param [String] page_token - # Optional. A page token, received from a previous FeatureRegistryService. - # ListFeatureMonitorJobs call. Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to FeatureRegistryService. - # ListFeatureMonitorJobs must match the call that provided the page token. + # 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 @@ -9606,23 +9998,19 @@ def get_project_location_feature_group_feature_monitor_feature_monitor_job(name, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 list_project_location_feature_group_feature_monitor_feature_monitor_jobs(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, 'v1beta1/{+parent}/featureMonitorJobs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse - 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? + def cancel_project_location_app_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -9651,7 +10039,7 @@ def list_project_location_feature_group_feature_monitor_feature_monitor_jobs(par # @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_feature_group_feature_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_app_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -9682,7 +10070,7 @@ def delete_project_location_feature_group_feature_monitor_operation(name, fields # @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_feature_group_feature_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_app_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -9726,7 +10114,7 @@ def get_project_location_feature_group_feature_monitor_operation(name, fields: n # @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_feature_group_feature_monitor_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_app_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -9771,7 +10159,7 @@ def list_project_location_feature_group_feature_monitor_operations(name, filter: # @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_project_location_feature_group_feature_monitor_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_app_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -9782,13 +10170,17 @@ def wait_project_location_feature_group_feature_monitor_operation(name, timeout: execute_or_queue_command(command, &block) end - # Creates a batch of Features in a given FeatureGroup. - # @param [String] parent - # Required. The resource name of the EntityType/FeatureGroup to create the batch - # of Features under. Format: `projects/`project`/locations/`location`/ - # featurestores/`featurestore`/entityTypes/`entity_type`` `projects/`project`/ - # locations/`location`/featureGroups/`feature_group`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest] google_cloud_aiplatform_v1beta1_batch_create_features_request_object + # Cancels a BatchPredictionJob. Starts asynchronous cancellation on the + # BatchPredictionJob. The server makes the best effort to cancel the job, but + # success is not guaranteed. Clients can use JobService.GetBatchPredictionJob or + # other methods to check whether the cancellation succeeded or whether the job + # completed despite cancellation. On a successful cancellation, the + # BatchPredictionJob is not deleted;instead its BatchPredictionJob.state is set + # to `CANCELLED`. Any files already outputted by the job are not deleted. + # @param [String] name + # Required. The name of the BatchPredictionJob to cancel. Format: `projects/` + # project`/locations/`location`/batchPredictionJobs/`batch_prediction_job`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest] google_cloud_aiplatform_v1beta1_cancel_batch_prediction_job_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9798,39 +10190,32 @@ def wait_project_location_feature_group_feature_monitor_operation(name, timeout: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 batch_project_location_feature_group_feature_create(parent, google_cloud_aiplatform_v1beta1_batch_create_features_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/features:batchCreate', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_batch_create_features_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def cancel_project_location_batch_prediction_job(name, google_cloud_aiplatform_v1beta1_cancel_batch_prediction_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_cancel_batch_prediction_job_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Creates a new Feature in a given FeatureGroup. + # Creates a BatchPredictionJob. A BatchPredictionJob once created will right + # away be attempted to start. # @param [String] parent - # Required. The resource name of the EntityType or FeatureGroup to create a - # Feature. Format for entity_type as parent: `projects/`project`/locations/` - # location`/featurestores/`featurestore`/entityTypes/`entity_type`` Format for - # feature_group as parent: `projects/`project`/locations/`location`/ - # featureGroups/`feature_group`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] google_cloud_aiplatform_v1beta1_feature_object - # @param [String] feature_id - # Required. The ID to use for the Feature, which will become the final component - # of the Feature's resource name. This value may be up to 128 characters, and - # valid characters are `[a-z0-9_]`. The first character cannot be a number. The - # value must be unique within an EntityType/FeatureGroup. + # Required. The resource name of the Location to create the BatchPredictionJob + # in. Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] google_cloud_aiplatform_v1beta1_batch_prediction_job_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9840,33 +10225,31 @@ def batch_project_location_feature_group_feature_create(parent, google_cloud_aip # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] # # @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_feature_group_feature(parent, google_cloud_aiplatform_v1beta1_feature_object = nil, feature_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/features', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature::Representation - command.request_object = google_cloud_aiplatform_v1beta1_feature_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def create_project_location_batch_prediction_job(parent, google_cloud_aiplatform_v1beta1_batch_prediction_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/batchPredictionJobs', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation + command.request_object = google_cloud_aiplatform_v1beta1_batch_prediction_job_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob command.params['parent'] = parent unless parent.nil? - command.query['featureId'] = feature_id unless feature_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 - # Deletes a single Feature. + # Deletes a BatchPredictionJob. Can only be called on jobs that already finished. # @param [String] name - # Required. The name of the Features to be deleted. Format: `projects/`project`/ - # locations/`location`/featurestores/`featurestore`/entityTypes/`entity_type`/ - # features/`feature`` `projects/`project`/locations/`location`/featureGroups/` - # feature_group`/features/`feature`` + # Required. The name of the BatchPredictionJob resource to be deleted. Format: ` + # projects/`project`/locations/`location`/batchPredictionJobs/` + # batch_prediction_job`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9884,7 +10267,7 @@ def create_project_location_feature_group_feature(parent, google_cloud_aiplatfor # @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_feature_group_feature(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_batch_prediction_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -9894,22 +10277,10 @@ def delete_project_location_feature_group_feature(name, fields: nil, quota_user: execute_or_queue_command(command, &block) end - # Gets details of a single Feature. + # Gets a BatchPredictionJob # @param [String] name - # Required. The name of the Feature resource. Format for entity_type as parent: ` - # projects/`project`/locations/`location`/featurestores/`featurestore`/ - # entityTypes/`entity_type`` Format for feature_group as parent: `projects/` - # project`/locations/`location`/featureGroups/`feature_group`` - # @param [Fixnum] feature_stats_and_anomaly_spec_latest_stats_count - # Optional. If set, returns the most recent count of stats. Valid value is [0, - # 100]. If stats_time_range is set, return most recent count of stats within the - # stats_time_range. - # @param [String] feature_stats_and_anomaly_spec_stats_time_range_end_time - # Optional. Exclusive end of the interval. If specified, a Timestamp matching - # this interval will have to be before the end. - # @param [String] feature_stats_and_anomaly_spec_stats_time_range_start_time - # Optional. Inclusive start of the interval. If specified, a Timestamp matching - # this interval will have to be the same or after the start. + # Required. The name of the BatchPredictionJob resource. Format: `projects/` + # project`/locations/`location`/batchPredictionJobs/`batch_prediction_job`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -9919,65 +10290,45 @@ def delete_project_location_feature_group_feature(name, fields: nil, quota_user: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob] # # @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_feature_group_feature(name, feature_stats_and_anomaly_spec_latest_stats_count: nil, feature_stats_and_anomaly_spec_stats_time_range_end_time: nil, feature_stats_and_anomaly_spec_stats_time_range_start_time: nil, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_batch_prediction_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchPredictionJob command.params['name'] = name unless name.nil? - command.query['featureStatsAndAnomalySpec.latestStatsCount'] = feature_stats_and_anomaly_spec_latest_stats_count unless feature_stats_and_anomaly_spec_latest_stats_count.nil? - command.query['featureStatsAndAnomalySpec.statsTimeRange.endTime'] = feature_stats_and_anomaly_spec_stats_time_range_end_time unless feature_stats_and_anomaly_spec_stats_time_range_end_time.nil? - command.query['featureStatsAndAnomalySpec.statsTimeRange.startTime'] = feature_stats_and_anomaly_spec_stats_time_range_start_time unless feature_stats_and_anomaly_spec_stats_time_range_start_time.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 Features in a given FeatureGroup. + # Lists BatchPredictionJobs in a Location. # @param [String] parent - # Required. The resource name of the Location to list Features. Format for - # entity_type as parent: `projects/`project`/locations/`location`/featurestores/` - # featurestore`/entityTypes/`entity_type`` Format for feature_group as parent: ` - # projects/`project`/locations/`location`/featureGroups/`feature_group`` + # Required. The resource name of the Location to list the BatchPredictionJobs + # from. Format: `projects/`project`/locations/`location`` # @param [String] filter - # Lists the Features that match the filter expression. The following filters are - # supported: * `value_type`: Supports = and != comparisons. * `create_time`: - # Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC 3339 - # format. * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values - # must be in RFC 3339 format. * `labels`: Supports key-value equality as well as - # key presence. Examples: * `value_type = DOUBLE` --> Features whose type is - # DOUBLE. * `create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > \" - # 2020-01-31T15:30:00.000000Z\"` --> EntityTypes created or updated after 2020- - # 01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --> - # Features having both (active: yes) and (env: prod) labels. * `labels.env: *` -- - # > Any Feature which has a label with 'env' as the key. - # @param [Fixnum] latest_stats_count - # Only applicable for Vertex AI Feature Store (Legacy). If set, return the most - # recent ListFeaturesRequest.latest_stats_count of stats for each Feature in - # response. Valid value is [0, 10]. If number of stats exists < - # ListFeaturesRequest.latest_stats_count, return all existing stats. - # @param [String] order_by - # A comma-separated list of fields to order by, sorted in ascending order. Use " - # desc" after a field name for descending. Supported fields: * `feature_id` * ` - # value_type` (Not supported for FeatureRegistry Feature) * `create_time` * ` - # update_time` + # The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + # comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` + # comparisons. * `state` supports `=`, `!=` comparisons. * `create_time` + # supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` must be in + # RFC 3339 format. * `labels` supports general map functions that is: `labels. + # key=value` - key:value equality `labels.key:* - key existence Some examples of + # using the filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_* + # "` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT display_name=" + # my_job"` * `create_time>"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * ` + # labels.keyB:*` # @param [Fixnum] page_size - # The maximum number of Features to return. The service may return fewer than - # this value. If unspecified, at most 1000 Features will be returned. The - # maximum value is 1000; any value greater than 1000 will be coerced to 1000. + # The standard list page size. # @param [String] page_token - # A page token, received from a previous FeaturestoreService.ListFeatures call - # or FeatureRegistryService.ListFeatures call. Provide this to retrieve the - # subsequent page. When paginating, all other parameters provided to - # FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must - # match the call that provided the page token. + # The standard list page token. Typically obtained via + # ListBatchPredictionJobsResponse.next_page_token of the previous JobService. + # ListBatchPredictionJobs call. # @param [String] read_mask # Mask specifying which fields to read. # @param [String] fields @@ -9989,22 +10340,20 @@ def get_project_location_feature_group_feature(name, feature_stats_and_anomaly_s # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse] # # @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_feature_group_features(parent, filter: nil, latest_stats_count: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/features', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse + def list_project_location_batch_prediction_jobs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/batchPredictionJobs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? - command.query['latestStatsCount'] = latest_stats_count unless latest_stats_count.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['readMask'] = read_mask unless read_mask.nil? @@ -10013,25 +10362,150 @@ def list_project_location_feature_group_features(parent, filter: nil, latest_sta execute_or_queue_command(command, &block) end - # Updates the parameters of a single Feature. + # Creates cached content, this call will initialize the cached content in the + # data storage, and users need to pay for the cache data storage. + # @param [String] parent + # Required. The parent resource where the cached content will be created + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] google_cloud_aiplatform_v1beta1_cached_content_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] + # + # @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_cached_content(parent, google_cloud_aiplatform_v1beta1_cached_content_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/cachedContents', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent::Representation + command.request_object = google_cloud_aiplatform_v1beta1_cached_content_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent + 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 cached content # @param [String] name - # Immutable. Name of the Feature. Format: `projects/`project`/locations/` - # location`/featurestores/`featurestore`/entityTypes/`entity_type`/features/` - # feature`` `projects/`project`/locations/`location`/featureGroups/` - # feature_group`/features/`feature`` The last part feature is assigned by the - # client. The feature can be up to 64 characters long and can consist only of - # ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting - # with a letter. The value will be unique given an entity type. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] google_cloud_aiplatform_v1beta1_feature_object + # Required. The resource name referring to the cached content + # @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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_cached_content(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 cached content configurations + # @param [String] name + # Required. The resource name referring to the cached content + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] + # + # @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_cached_content(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent + 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 cached contents in a project + # @param [String] parent + # Required. The parent, which owns this collection of cached contents. + # @param [Fixnum] page_size + # Optional. The maximum number of cached contents to return. The service may + # return fewer than this value. If unspecified, some default (under maximum) + # number of items will be returned. The maximum value is 1000; values above 1000 + # will be coerced to 1000. + # @param [String] page_token + # Optional. A page token, received from a previous `ListCachedContents` call. + # Provide this to retrieve the subsequent page. When paginating, all other + # parameters provided to `ListCachedContents` must match the call that provided + # the page token. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCachedContentsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCachedContentsResponse] + # + # @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_cached_contents(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/cachedContents', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCachedContentsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCachedContentsResponse + command.params['parent'] = parent unless parent.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 cached content configurations + # @param [String] name + # Immutable. Identifier. The server-generated resource name of the cached + # content Format: projects/`project`/locations/`location`/cachedContents/` + # cached_content` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] google_cloud_aiplatform_v1beta1_cached_content_object # @param [String] update_mask - # Field mask is used to specify the fields to be overwritten in the Features - # resource by the update. The fields specified in the update_mask are relative - # to the resource, not the full request. A field will be overwritten if it is in - # the mask. If the user does not provide a mask then only the non-empty fields - # present in the request will be overwritten. Set the update_mask to `*` to - # override all fields. Updatable fields: * `description` * `labels` * ` - # disable_monitoring` (Not supported for FeatureRegistryService Feature) * ` - # point_of_contact` (Not supported for FeaturestoreService FeatureStore) + # Required. The list of fields to update. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10041,20 +10515,20 @@ def list_project_location_feature_group_features(parent, filter: nil, latest_sta # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent] # # @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_feature_group_feature(name, google_cloud_aiplatform_v1beta1_feature_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_project_location_cached_content(name, google_cloud_aiplatform_v1beta1_cached_content_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature::Representation - command.request_object = google_cloud_aiplatform_v1beta1_feature_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent::Representation + command.request_object = google_cloud_aiplatform_v1beta1_cached_content_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContent command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? @@ -10062,12 +10536,17 @@ def patch_project_location_feature_group_feature(name, google_cloud_aiplatform_v 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`. + # Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The + # server makes a best effort to cancel the job, but success is not guaranteed. + # Clients can use JobService.GetCustomJob or other methods to check whether the + # cancellation succeeded or whether the job completed despite cancellation. On + # successful cancellation, the CustomJob is not deleted; instead it becomes a + # job with a CustomJob.error value with a google.rpc.Status.code of 1, + # corresponding to `Code.CANCELLED`, and CustomJob.state is set to `CANCELLED`. # @param [String] name - # The name of the operation resource to be deleted. + # Required. The name of the CustomJob to cancel. Format: `projects/`project`/ + # locations/`location`/customJobs/`custom_job`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelCustomJobRequest] google_cloud_aiplatform_v1beta1_cancel_custom_job_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10085,8 +10564,10 @@ def patch_project_location_feature_group_feature(name, google_cloud_aiplatform_v # @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_feature_group_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def cancel_project_location_custom_job(name, google_cloud_aiplatform_v1beta1_cancel_custom_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelCustomJobRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_cancel_custom_job_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? @@ -10095,10 +10576,45 @@ def delete_project_location_feature_group_feature_operation(name, fields: nil, q 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. + # Creates a CustomJob. A created CustomJob right away will be attempted to be + # run. + # @param [String] parent + # Required. The resource name of the Location to create the CustomJob in. Format: + # `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob] google_cloud_aiplatform_v1beta1_custom_job_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob] + # + # @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_custom_job(parent, google_cloud_aiplatform_v1beta1_custom_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/customJobs', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob::Representation + command.request_object = google_cloud_aiplatform_v1beta1_custom_job_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob + 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 a CustomJob. # @param [String] name - # The name of the operation resource. + # Required. The name of the CustomJob resource to be deleted. Format: `projects/` + # project`/locations/`location`/customJobs/`custom_job`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10116,8 +10632,8 @@ def delete_project_location_feature_group_feature_operation(name, fields: nil, q # @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_feature_group_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) + def delete_project_location_custom_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -10126,23 +10642,58 @@ def get_project_location_feature_group_feature_operation(name, fields: nil, quot 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`. + # Gets a CustomJob. # @param [String] name - # The name of the operation's parent resource. + # Required. The name of the CustomJob resource. Format: `projects/`project`/ + # locations/`location`/customJobs/`custom_job`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob] + # + # @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_custom_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CustomJob + 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 CustomJobs in a Location. + # @param [String] parent + # Required. The resource name of the Location to list the CustomJobs from. + # Format: `projects/`project`/locations/`location`` # @param [String] filter - # The standard list filter. + # The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + # comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * ` + # create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` + # must be in RFC 3339 format. * `labels` supports general map functions that is: + # `labels.key=value` - key:value equality `labels.key:* - key existence Some + # examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND + # display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + # * `NOT display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` * ` + # labels.keyA=valueA` * `labels.keyB:*` # @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 e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # The standard list page token. Typically obtained via ListCustomJobsResponse. + # next_page_token of the previous JobService.ListCustomJobs call. + # @param [String] read_mask + # Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10152,42 +10703,38 @@ def get_project_location_feature_group_feature_operation(name, fields: nil, quot # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCustomJobsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCustomJobsResponse] # # @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_feature_group_feature_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, 'v1beta1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse - command.params['name'] = name unless name.nil? + def list_project_location_custom_jobs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/customJobs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCustomJobsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListCustomJobsResponse + 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['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? + command.query['readMask'] = read_mask unless read_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 - # 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. + # 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 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. + # 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 @@ -10197,20 +10744,19 @@ def list_project_location_feature_group_feature_operations(name, filter: nil, pa # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_feature_group_feature_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def cancel_project_location_custom_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty 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) @@ -10239,7 +10785,7 @@ def wait_project_location_feature_group_feature_operation(name, timeout: nil, fi # @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_feature_group_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_custom_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -10270,7 +10816,7 @@ def delete_project_location_feature_group_operation(name, fields: nil, quota_use # @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_feature_group_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_custom_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -10314,7 +10860,7 @@ def get_project_location_feature_group_operation(name, fields: nil, quota_user: # @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_feature_group_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_custom_job_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -10359,7 +10905,7 @@ def list_project_location_feature_group_operations(name, filter: nil, page_size: # @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_project_location_feature_group_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_custom_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -10370,16 +10916,11 @@ def wait_project_location_feature_group_operation(name, timeout: nil, fields: ni execute_or_queue_command(command, &block) end - # Creates a new FeatureOnlineStore in a given project and location. - # @param [String] parent - # Required. The resource name of the Location to create FeatureOnlineStores. - # Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore] google_cloud_aiplatform_v1beta1_feature_online_store_object - # @param [String] feature_online_store_id - # Required. The ID to use for this FeatureOnlineStore, which will become the - # final component of the FeatureOnlineStore's resource name. This value may be - # up to 60 characters, and valid characters are `[a-z0-9_]`. The first character - # cannot be a number. The value must be unique within the project and location. + # Cancels a DataLabelingJob. Success of cancellation is not guaranteed. + # @param [String] name + # Required. The name of the DataLabelingJob. Format: `projects/`project`/ + # locations/`location`/dataLabelingJobs/`data_labeling_job`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest] google_cloud_aiplatform_v1beta1_cancel_data_labeling_job_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10389,36 +10930,31 @@ def wait_project_location_feature_group_operation(name, timeout: nil, fields: ni # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_feature_online_store(parent, google_cloud_aiplatform_v1beta1_feature_online_store_object = nil, feature_online_store_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/featureOnlineStores', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore::Representation - command.request_object = google_cloud_aiplatform_v1beta1_feature_online_store_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? - command.query['featureOnlineStoreId'] = feature_online_store_id unless feature_online_store_id.nil? + def cancel_project_location_data_labeling_job(name, google_cloud_aiplatform_v1beta1_cancel_data_labeling_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_cancel_data_labeling_job_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 single FeatureOnlineStore. The FeatureOnlineStore must not contain - # any FeatureViews. - # @param [String] name - # Required. The name of the FeatureOnlineStore to be deleted. Format: `projects/` - # project`/locations/`location`/featureOnlineStores/`feature_online_store`` - # @param [Boolean] force - # If set to true, any FeatureViews and Features for this FeatureOnlineStore will - # also be deleted. (Otherwise, the request will only work if the - # FeatureOnlineStore has no FeatureViews.) + # Creates a DataLabelingJob. + # @param [String] parent + # Required. The parent of the DataLabelingJob. Format: `projects/`project`/ + # locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob] google_cloud_aiplatform_v1beta1_data_labeling_job_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10428,28 +10964,30 @@ def create_project_location_feature_online_store(parent, google_cloud_aiplatform # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob] # # @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_feature_online_store(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? - command.query['force'] = force unless force.nil? + def create_project_location_data_labeling_job(parent, google_cloud_aiplatform_v1beta1_data_labeling_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/dataLabelingJobs', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob::Representation + command.request_object = google_cloud_aiplatform_v1beta1_data_labeling_job_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob + 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 - # Gets details of a single FeatureOnlineStore. + # Deletes a DataLabelingJob. # @param [String] name - # Required. The name of the FeatureOnlineStore resource. + # Required. The name of the DataLabelingJob to be deleted. Format: `projects/` + # project`/locations/`location`/dataLabelingJobs/`data_labeling_job`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10459,41 +10997,28 @@ def delete_project_location_feature_online_store(name, force: nil, fields: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore] + # @return [Google::Apis::AiplatformV1beta1::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_feature_online_store(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore + def delete_project_location_data_labeling_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The maximum policy version that will be used to format the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. Requests for policies with any conditional role bindings must - # specify version 3. Policies with no conditional role bindings may specify any - # valid value or leave the field unset. The policy in the response might use the - # policy version that you specified, or it might use a lower policy version. For - # example, if you specify version 3, but the policy has no conditional role - # bindings, the response uses version 1. To learn which resources support - # conditions in their IAM policies, see the [IAM documentation](https://cloud. - # google.com/iam/help/conditions/resource-policies). + # Gets a DataLabelingJob. + # @param [String] name + # Required. The name of the DataLabelingJob. Format: `projects/`project`/ + # locations/`location`/dataLabelingJobs/`data_labeling_job`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10503,53 +11028,50 @@ def get_project_location_feature_online_store(name, fields: nil, quota_user: nil # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob] # # @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_feature_online_store_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? + def get_project_location_data_labeling_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DataLabelingJob + 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 FeatureOnlineStores in a given project and location. + # Lists DataLabelingJobs in a Location. # @param [String] parent - # Required. The resource name of the Location to list FeatureOnlineStores. - # Format: `projects/`project`/locations/`location`` + # Required. The parent of the DataLabelingJob. Format: `projects/`project`/ + # locations/`location`` # @param [String] filter - # Lists the FeatureOnlineStores that match the filter expression. The following - # fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and - # `>=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports - # `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 - # format. * `labels`: Supports key-value equality and key presence. Examples: * ` - # create_time > "2020-01-01" OR update_time > "2020-01-01"` FeatureOnlineStores - # created or updated after 2020-01-01. * `labels.env = "prod"` - # FeatureOnlineStores with label "env" set to "prod". + # The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + # comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * ` + # create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` + # must be in RFC 3339 format. * `labels` supports general map functions that is: + # `labels.key=value` - key:value equality `labels.key:* - key existence Some + # examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND + # display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + # * `NOT display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` * ` + # labels.keyA=valueA` * `labels.keyB:*` # @param [String] order_by - # 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` + # A comma-separated list of fields to order by, sorted in ascending order by + # default. Use `desc` after a field name for descending. # @param [Fixnum] page_size - # The maximum number of FeatureOnlineStores to return. The service may return - # fewer than this value. If unspecified, at most 100 FeatureOnlineStores will be - # returned. The maximum value is 100; any value greater than 100 will be coerced - # to 100. + # The standard list page size. # @param [String] page_token - # A page token, received from a previous FeatureOnlineStoreAdminService. - # ListFeatureOnlineStores call. Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to - # FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call - # that provided the page token. + # The standard list page token. + # @param [String] read_mask + # Mask specifying which fields to read. FieldMask represents a set of symbolic + # field paths. For example, the mask can be `paths: "name"`. The "name" here is + # a field in DataLabelingJob. If this field is not set, all fields of the + # DataLabelingJob are returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10559,42 +11081,39 @@ def get_project_location_feature_online_store_iam_policy(resource, options_reque # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse] # # @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_feature_online_stores(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, 'v1beta1/{+parent}/featureOnlineStores', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse + def list_project_location_data_labeling_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/dataLabelingJobs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse 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['readMask'] = read_mask unless read_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 - # Updates the parameters of a single FeatureOnlineStore. + # 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 - # Identifier. Name of the FeatureOnlineStore. Format: `projects/`project`/ - # locations/`location`/featureOnlineStores/`featureOnlineStore`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore] google_cloud_aiplatform_v1beta1_feature_online_store_object - # @param [String] update_mask - # Field mask is used to specify the fields to be overwritten in the - # FeatureOnlineStore resource by the update. The fields specified in the - # update_mask are relative to the resource, not the full request. A field will - # be overwritten if it is in the mask. If the user does not provide a mask then - # only the non-empty fields present in the request will be overwritten. Set the - # update_mask to `*` to override all fields. Updatable fields: * `labels` * ` - # description` * `bigtable` * `bigtable.auto_scaling` * `bigtable. - # enable_multi_region_replica` + # 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 @@ -10604,35 +11123,30 @@ def list_project_location_feature_online_stores(parent, filter: nil, order_by: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_feature_online_store(name, google_cloud_aiplatform_v1beta1_feature_online_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore::Representation - command.request_object = google_cloud_aiplatform_v1beta1_feature_online_store_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def cancel_project_location_data_labeling_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty 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 - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object + # 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 @@ -10642,39 +11156,28 @@ def patch_project_location_feature_online_store(name, google_cloud_aiplatform_v1 # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [Google::Apis::AiplatformV1beta1::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 set_project_location_feature_online_store_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation - command.request_object = google_iam_v1_set_iam_policy_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? + def delete_project_location_data_labeling_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See [ - # Resource names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Array, String] permissions - # The set of permissions to check for the `resource`. Permissions with wildcards - # (such as `*` or `storage.*`) are not allowed. For more information see [IAM - # Overview](https://cloud.google.com/iam/docs/overview#permissions). + # 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 @@ -10684,39 +11187,41 @@ def set_project_location_feature_online_store_iam_policy(resource, google_iam_v1 # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 test_project_location_feature_online_store_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['permissions'] = permissions unless permissions.nil? + def get_project_location_data_labeling_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Creates a new FeatureView in a given FeatureOnlineStore. - # @param [String] parent - # Required. The resource name of the FeatureOnlineStore to create FeatureViews. - # Format: `projects/`project`/locations/`location`/featureOnlineStores/` - # feature_online_store`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView] google_cloud_aiplatform_v1beta1_feature_view_object - # @param [String] feature_view_id - # Required. The ID to use for the FeatureView, which will become the final - # component of the FeatureView's resource name. This value may be up to 60 - # characters, and valid characters are `[a-z0-9_]`. The first character cannot - # be a number. The value must be unique within a FeatureOnlineStore. - # @param [Boolean] run_sync_immediately - # Immutable. If set to true, one on demand sync will be run immediately, - # regardless whether the FeatureView.sync_config is configured or not. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -10726,33 +11231,42 @@ def test_project_location_feature_online_store_iam_permissions(resource, permiss # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_feature_online_store_feature_view(parent, google_cloud_aiplatform_v1beta1_feature_view_object = nil, feature_view_id: nil, run_sync_immediately: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/featureViews', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView::Representation - command.request_object = google_cloud_aiplatform_v1beta1_feature_view_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? - command.query['featureViewId'] = feature_view_id unless feature_view_id.nil? - command.query['runSyncImmediately'] = run_sync_immediately unless run_sync_immediately.nil? + def list_project_location_data_labeling_job_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Deletes a single FeatureView. + # 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 FeatureView to be deleted. Format: `projects/` - # project`/locations/`location`/featureOnlineStores/`feature_online_store`/ - # featureViews/`feature_view`` + # 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 @@ -10770,23 +11284,23 @@ def create_project_location_feature_online_store_feature_view(parent, google_clo # @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_feature_online_store_feature_view(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def wait_project_location_data_labeling_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::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 - # Bidirectional streaming RPC to directly write to feature values in a feature - # view. Requests may not have a one-to-one mapping to responses and responses - # may be returned out-of-order to reduce latency. - # @param [String] feature_view - # FeatureView resource format `projects/`project`/locations/`location`/ - # featureOnlineStores/`featureOnlineStore`/featureViews/`featureView`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest] google_cloud_aiplatform_v1beta1_feature_view_direct_write_request_object + # Assembles each row of a multimodal dataset and writes the result into a + # BigQuery table. + # @param [String] name + # Required. The name of the Dataset resource (used only for MULTIMODAL datasets). + # Format: `projects/`project`/locations/`location`/datasets/`dataset`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssembleDataRequest] google_cloud_aiplatform_v1beta1_assemble_data_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10796,31 +11310,31 @@ def delete_project_location_feature_online_store_feature_view(name, fields: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse] + # @return [Google::Apis::AiplatformV1beta1::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 direct_project_location_feature_online_store_feature_view_write(feature_view, google_cloud_aiplatform_v1beta1_feature_view_direct_write_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+featureView}:directWrite', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_feature_view_direct_write_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse - command.params['featureView'] = feature_view unless feature_view.nil? + def assemble_project_location_dataset(name, google_cloud_aiplatform_v1beta1_assemble_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:assemble', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssembleDataRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_assemble_data_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Fetch feature values under a FeatureView. - # @param [String] feature_view - # Required. FeatureView resource format `projects/`project`/locations/`location`/ - # featureOnlineStores/`featureOnlineStore`/featureViews/`featureView`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest] google_cloud_aiplatform_v1beta1_fetch_feature_values_request_object + # Assesses the state or validity of the dataset with respect to a given use case. + # @param [String] name + # Required. The name of the Dataset resource. Used only for MULTIMODAL datasets. + # Format: `projects/`project`/locations/`location`/datasets/`dataset`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssessDataRequest] google_cloud_aiplatform_v1beta1_assess_data_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10830,32 +11344,31 @@ def direct_project_location_feature_online_store_feature_view_write(feature_view # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse] + # @return [Google::Apis::AiplatformV1beta1::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 fetch_project_location_feature_online_store_feature_view_feature_values(feature_view, google_cloud_aiplatform_v1beta1_fetch_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+featureView}:fetchFeatureValues', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_fetch_feature_values_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse - command.params['featureView'] = feature_view unless feature_view.nil? + def assess_project_location_dataset(name, google_cloud_aiplatform_v1beta1_assess_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:assess', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssessDataRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_assess_data_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # RPC to generate an access token for the given feature view. FeatureViews under - # the same FeatureOnlineStore share the same access token. - # @param [String] feature_view - # FeatureView resource format `projects/`project`/locations/`location`/ - # featureOnlineStores/`featureOnlineStore`/featureViews/`featureView`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenRequest] google_cloud_aiplatform_v1beta1_generate_fetch_access_token_request_object + # Creates a Dataset. + # @param [String] parent + # Required. The resource name of the Location to create the Dataset in. Format: ` + # projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] google_cloud_aiplatform_v1beta1_dataset_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10865,31 +11378,30 @@ def fetch_project_location_feature_online_store_feature_view_feature_values(feat # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenResponse] + # @return [Google::Apis::AiplatformV1beta1::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 generate_project_location_feature_online_store_feature_view_fetch_access_token(feature_view, google_cloud_aiplatform_v1beta1_generate_fetch_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+featureView}:generateFetchAccessToken', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_fetch_access_token_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenResponse - command.params['featureView'] = feature_view unless feature_view.nil? + def create_project_location_dataset(parent, google_cloud_aiplatform_v1beta1_dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/datasets', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation + command.request_object = google_cloud_aiplatform_v1beta1_dataset_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Gets details of a single FeatureView. + # Deletes a Dataset. # @param [String] name - # Required. The name of the FeatureView resource. Format: `projects/`project`/ - # locations/`location`/featureOnlineStores/`feature_online_store`/featureViews/` - # feature_view`` + # Required. The resource name of the Dataset to delete. Format: `projects/` + # project`/locations/`location`/datasets/`dataset`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10899,41 +11411,29 @@ def generate_project_location_feature_online_store_feature_view_fetch_access_tok # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView] + # @return [Google::Apis::AiplatformV1beta1::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_feature_online_store_feature_view(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView + def delete_project_location_dataset(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The maximum policy version that will be used to format the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. Requests for policies with any conditional role bindings must - # specify version 3. Policies with no conditional role bindings may specify any - # valid value or leave the field unset. The policy in the response might use the - # policy version that you specified, or it might use a lower policy version. For - # example, if you specify version 3, but the policy has no conditional role - # bindings, the response uses version 1. To learn which resources support - # conditions in their IAM policies, see the [IAM documentation](https://cloud. - # google.com/iam/help/conditions/resource-policies). + # Exports data from a Dataset. + # @param [String] name + # Required. The name of the Dataset resource. Format: `projects/`project`/ + # locations/`location`/datasets/`dataset`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportDataRequest] google_cloud_aiplatform_v1beta1_export_data_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -10943,54 +11443,31 @@ def get_project_location_feature_online_store_feature_view(name, fields: nil, qu # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [Google::Apis::AiplatformV1beta1::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_feature_online_store_feature_view_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? + def export_project_location_dataset(name, google_cloud_aiplatform_v1beta1_export_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:export', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportDataRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_export_data_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 FeatureViews in a given FeatureOnlineStore. - # @param [String] parent - # Required. The resource name of the FeatureOnlineStore to list FeatureViews. - # Format: `projects/`project`/locations/`location`/featureOnlineStores/` - # feature_online_store`` - # @param [String] filter - # Lists the FeatureViews that match the filter expression. The following filters - # are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` - # comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, - # `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 format. - # * `labels`: Supports key-value equality as well as key presence. Examples: * ` - # create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15: - # 30:00.000000Z\"` --> FeatureViews created or updated after 2020-01-31T15:30:00. - # 000000Z. * `labels.active = yes AND labels.env = prod` --> FeatureViews having - # both (active: yes) and (env: prod) labels. * `labels.env: *` --> Any - # FeatureView which has a label with 'env' as the key. - # @param [String] order_by - # A comma-separated list of fields to order by, sorted in ascending order. Use " - # desc" after a field name for descending. Supported fields: * `feature_view_id` - # * `create_time` * `update_time` - # @param [Fixnum] page_size - # The maximum number of FeatureViews to return. The service may return fewer - # than this value. If unspecified, at most 1000 FeatureViews will be returned. - # The maximum value is 1000; any value greater than 1000 will be coerced to 1000. - # @param [String] page_token - # A page token, received from a previous FeatureOnlineStoreAdminService. - # ListFeatureViews call. Provide this to retrieve the subsequent page. When - # paginating, all other parameters provided to FeatureOnlineStoreAdminService. - # ListFeatureViews must match the call that provided the page token. + # Gets a Dataset. + # @param [String] name + # Required. The name of the Dataset resource. + # @param [String] read_mask + # Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11000,45 +11477,30 @@ def get_project_location_feature_online_store_feature_view_iam_policy(resource, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] # # @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_feature_online_store_feature_views(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, 'v1beta1/{+parent}/featureViews', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewsResponse - 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? + def get_project_location_dataset(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset + command.params['name'] = name unless name.nil? + command.query['readMask'] = read_mask unless read_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 - # Updates the parameters of a single FeatureView. + # Imports data into a Dataset. # @param [String] name - # Identifier. Name of the FeatureView. Format: `projects/`project`/locations/` - # location`/featureOnlineStores/`feature_online_store`/featureViews/` - # feature_view`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView] google_cloud_aiplatform_v1beta1_feature_view_object - # @param [String] update_mask - # Field mask is used to specify the fields to be overwritten in the FeatureView - # resource by the update. The fields specified in the update_mask are relative - # to the resource, not the full request. A field will be overwritten if it is in - # the mask. If the user does not provide a mask then only the non-empty fields - # present in the request will be overwritten. Set the update_mask to `*` to - # override all fields. Updatable fields: * `labels` * `service_agent_type` * ` - # big_query_source` * `big_query_source.uri` * `big_query_source. - # entity_id_columns` * `feature_registry_source` * `feature_registry_source. - # feature_groups` * `sync_config` * `sync_config.cron` * `optimized_config. - # automatic_resources` + # Required. The name of the Dataset resource. Format: `projects/`project`/ + # locations/`location`/datasets/`dataset`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportDataRequest] google_cloud_aiplatform_v1beta1_import_data_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11056,99 +11518,40 @@ def list_project_location_feature_online_store_feature_views(parent, filter: 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 patch_project_location_feature_online_store_feature_view(name, google_cloud_aiplatform_v1beta1_feature_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView::Representation - command.request_object = google_cloud_aiplatform_v1beta1_feature_view_object + def import_project_location_dataset(name, google_cloud_aiplatform_v1beta1_import_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:import', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportDataRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_import_data_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation 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 - # Search the nearest entities under a FeatureView. Search only works for - # indexable feature view; if a feature view isn't indexable, returns Invalid - # argument response. - # @param [String] feature_view - # Required. FeatureView resource format `projects/`project`/locations/`location`/ - # featureOnlineStores/`featureOnlineStore`/featureViews/`featureView`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest] google_cloud_aiplatform_v1beta1_search_nearest_entities_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse] - # - # @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 search_project_location_feature_online_store_feature_view_nearest_entities(feature_view, google_cloud_aiplatform_v1beta1_search_nearest_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+featureView}:searchNearestEntities', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_search_nearest_entities_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse - command.params['featureView'] = feature_view unless feature_view.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_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::AiplatformV1beta1::GoogleIamV1Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] - # - # @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 set_project_location_feature_online_store_feature_view_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation - command.request_object = google_iam_v1_set_iam_policy_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Bidirectional streaming RPC to fetch feature values under a FeatureView. - # Requests may not have a one-to-one mapping to responses and responses may be - # returned out-of-order to reduce latency. - # @param [String] feature_view - # Required. FeatureView resource format `projects/`project`/locations/`location`/ - # featureOnlineStores/`featureOnlineStore`/featureViews/`featureView`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesRequest] google_cloud_aiplatform_v1beta1_streaming_fetch_feature_values_request_object + # Lists Datasets in a Location. + # @param [String] parent + # Required. The name of the Dataset's parent resource. Format: `projects/` + # project`/locations/`location`` + # @param [String] filter + # An expression for filtering the results of the request. For field names both + # snake_case and camelCase are supported. * `display_name`: supports = and != * ` + # metadata_schema_uri`: supports = and != * `labels` supports general map + # functions that is: * `labels.key=value` - key:value equality * `labels.key:* + # or labels:key - key existence * A key including a space must be quoted. ` + # labels."a key"`. Some examples: * `displayName="myDisplayName"` * `labels. + # myKey="myValue"` + # @param [String] order_by + # A comma-separated list of fields to order by, sorted in ascending order. Use " + # desc" after a field name for descending. Supported fields: * `display_name` * ` + # create_time` * `update_time` + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] read_mask + # Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11158,31 +11561,38 @@ def set_project_location_feature_online_store_feature_view_iam_policy(resource, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse] # # @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 streaming_project_location_feature_online_store_feature_view_fetch_feature_values(feature_view, google_cloud_aiplatform_v1beta1_streaming_fetch_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+featureView}:streamingFetchFeatureValues', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_streaming_fetch_feature_values_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesResponse - command.params['featureView'] = feature_view unless feature_view.nil? + def list_project_location_datasets(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/datasets', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetsResponse + 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['readMask'] = read_mask unless read_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 - # Triggers on-demand sync for the FeatureView. - # @param [String] feature_view - # Required. Format: `projects/`project`/locations/`location`/featureOnlineStores/ - # `feature_online_store`/featureViews/`feature_view`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SyncFeatureViewRequest] google_cloud_aiplatform_v1beta1_sync_feature_view_request_object + # Updates a Dataset. + # @param [String] name + # Output only. Identifier. The resource name of the Dataset. Format: `projects/` + # project`/locations/`location`/datasets/`dataset`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] google_cloud_aiplatform_v1beta1_dataset_object + # @param [String] update_mask + # Required. The update mask applies to the resource. For the `FieldMask` + # definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * + # `description` * `labels` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11192,39 +11602,79 @@ def streaming_project_location_feature_online_store_feature_view_fetch_feature_v # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SyncFeatureViewResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SyncFeatureViewResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset] # # @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 sync_project_location_feature_online_store_feature_view(feature_view, google_cloud_aiplatform_v1beta1_sync_feature_view_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+featureView}:sync', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SyncFeatureViewRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_sync_feature_view_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SyncFeatureViewResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SyncFeatureViewResponse - command.params['featureView'] = feature_view unless feature_view.nil? + def patch_project_location_dataset(name, google_cloud_aiplatform_v1beta1_dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation + command.request_object = google_cloud_aiplatform_v1beta1_dataset_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Dataset + 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 - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See [ - # Resource names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Array, String] permissions - # The set of permissions to check for the `resource`. Permissions with wildcards - # (such as `*` or `storage.*`) are not allowed. For more information see [IAM - # Overview](https://cloud.google.com/iam/docs/overview#permissions). + # Searches DataItems in a Dataset. + # @param [String] dataset + # Required. The resource name of the Dataset from which to search DataItems. + # Format: `projects/`project`/locations/`location`/datasets/`dataset`` + # @param [Array, String] annotation_filters + # An expression that specifies what Annotations will be returned per DataItem. + # Annotations satisfied either of the conditions will be returned. * ` + # annotation_spec_id` - for = or !=. Must specify `saved_query_id=` - saved + # query id that annotations should belong to. + # @param [String] annotations_filter + # An expression for filtering the Annotations that will be returned per DataItem. + # * `annotation_spec_id` - for = or !=. + # @param [Fixnum] annotations_limit + # If set, only up to this many of Annotations will be returned per DataItemView. + # The maximum value is 1000. If not set, the maximum value will be used. + # @param [String] data_item_filter + # An expression for filtering the DataItem that will be returned. * ` + # data_item_id` - for = or !=. * `labeled` - for = or !=. * `has_annotation( + # ANNOTATION_SPEC_ID)` - true only for DataItem that have at least one + # annotation with annotation_spec_id = `ANNOTATION_SPEC_ID` in the context of + # SavedQuery or DataLabelingJob. For example: * `data_item=1` * `has_annotation( + # 5)` + # @param [String] data_labeling_job + # The resource name of a DataLabelingJob. Format: `projects/`project`/locations/` + # location`/dataLabelingJobs/`data_labeling_job`` If this field is set, all of + # the search will be done in the context of this DataLabelingJob. + # @param [String] field_mask + # Mask specifying which fields of DataItemView to read. + # @param [String] order_by + # A comma-separated list of fields to order by, sorted in ascending order. Use " + # desc" after a field name for descending. + # @param [String] order_by_annotation_order_by + # A comma-separated list of annotation fields to order by, sorted in ascending + # order. Use "desc" after a field name for descending. Must also specify + # saved_query. + # @param [String] order_by_annotation_saved_query + # Required. Saved query of the Annotation. Only Annotations belong to this saved + # query will be considered for ordering. + # @param [String] order_by_data_item + # A comma-separated list of data item fields to order by, sorted in ascending + # order. Use "desc" after a field name for descending. + # @param [Fixnum] page_size + # Requested page size. Server may return fewer results than requested. Default + # and maximum page size is 100. + # @param [String] page_token + # A token identifying a page of results for the server to return Typically + # obtained via SearchDataItemsResponse.next_page_token of the previous + # DatasetService.SearchDataItems call. + # @param [String] saved_query + # The resource name of a SavedQuery(annotation set in UI). Format: `projects/` + # project`/locations/`location`/datasets/`dataset`/savedQueries/`saved_query`` + # All of the search will be done in the context of this SavedQuery. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11234,30 +11684,43 @@ def sync_project_location_feature_online_store_feature_view(feature_view, google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchDataItemsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchDataItemsResponse] # # @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 test_project_location_feature_online_store_feature_view_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['permissions'] = permissions unless permissions.nil? + def search_project_location_dataset_data_items(dataset, annotation_filters: nil, annotations_filter: nil, annotations_limit: nil, data_item_filter: nil, data_labeling_job: nil, field_mask: nil, order_by: nil, order_by_annotation_order_by: nil, order_by_annotation_saved_query: nil, order_by_data_item: nil, page_size: nil, page_token: nil, saved_query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+dataset}:searchDataItems', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchDataItemsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchDataItemsResponse + command.params['dataset'] = dataset unless dataset.nil? + command.query['annotationFilters'] = annotation_filters unless annotation_filters.nil? + command.query['annotationsFilter'] = annotations_filter unless annotations_filter.nil? + command.query['annotationsLimit'] = annotations_limit unless annotations_limit.nil? + command.query['dataItemFilter'] = data_item_filter unless data_item_filter.nil? + command.query['dataLabelingJob'] = data_labeling_job unless data_labeling_job.nil? + command.query['fieldMask'] = field_mask unless field_mask.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['orderByAnnotation.orderBy'] = order_by_annotation_order_by unless order_by_annotation_order_by.nil? + command.query['orderByAnnotation.savedQuery'] = order_by_annotation_saved_query unless order_by_annotation_saved_query.nil? + command.query['orderByDataItem'] = order_by_data_item unless order_by_data_item.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['savedQuery'] = saved_query unless saved_query.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 a single FeatureViewSync. + # Gets an AnnotationSpec. # @param [String] name - # Required. The name of the FeatureViewSync resource. Format: `projects/`project` - # /locations/`location`/featureOnlineStores/`feature_online_store`/featureViews/` - # feature_view`/featureViewSyncs/`feature_view_sync`` + # Required. The name of the AnnotationSpec resource. Format: `projects/`project`/ + # locations/`location`/datasets/`dataset`/annotationSpecs/`annotation_spec`` + # @param [String] read_mask + # Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11267,48 +11730,35 @@ def test_project_location_feature_online_store_feature_view_iam_permissions(reso # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewSync] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AnnotationSpec] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewSync] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AnnotationSpec] # # @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_feature_online_store_feature_view_feature_view_sync(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_dataset_annotation_spec(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewSync::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewSync + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AnnotationSpec::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AnnotationSpec command.params['name'] = name unless name.nil? + command.query['readMask'] = read_mask unless read_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 FeatureViewSyncs in a given FeatureView. - # @param [String] parent - # Required. The resource name of the FeatureView to list FeatureViewSyncs. - # Format: `projects/`project`/locations/`location`/featureOnlineStores/` - # feature_online_store`/featureViews/`feature_view`` - # @param [String] filter - # Lists the FeatureViewSyncs that match the filter expression. The following - # filters are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, - # and `<=` comparisons. Values must be in RFC 3339 format. Examples: * ` - # create_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViewSyncs created - # after 2020-01-31T15:30:00.000000Z. - # @param [String] order_by - # 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` - # @param [Fixnum] page_size - # The maximum number of FeatureViewSyncs to return. The service may return fewer - # than this value. If unspecified, at most 1000 FeatureViewSyncs will be - # returned. The maximum value is 1000; any value greater than 1000 will be - # coerced to 1000. - # @param [String] page_token - # A page token, received from a previous FeatureOnlineStoreAdminService. - # ListFeatureViewSyncs call. Provide this to retrieve the subsequent page. When - # paginating, all other parameters provided to FeatureOnlineStoreAdminService. - # ListFeatureViewSyncs must match the call that provided the page token. + # 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 @@ -11318,23 +11768,19 @@ def get_project_location_feature_online_store_feature_view_feature_view_sync(nam # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 list_project_location_feature_online_store_feature_view_feature_view_syncs(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, 'v1beta1/{+parent}/featureViewSyncs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse - 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? + def cancel_project_location_dataset_annotation_spec_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -11363,7 +11809,7 @@ def list_project_location_feature_online_store_feature_view_feature_view_syncs(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 delete_project_location_feature_online_store_feature_view_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_dataset_annotation_spec_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -11394,7 +11840,7 @@ def delete_project_location_feature_online_store_feature_view_operation(name, fi # @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_feature_online_store_feature_view_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_dataset_annotation_spec_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -11438,7 +11884,7 @@ def get_project_location_feature_online_store_feature_view_operation(name, field # @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_feature_online_store_feature_view_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_dataset_annotation_spec_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -11483,7 +11929,7 @@ def list_project_location_feature_online_store_feature_view_operations(name, fil # @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_project_location_feature_online_store_feature_view_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_dataset_annotation_spec_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -11494,6 +11940,138 @@ def wait_project_location_feature_online_store_feature_view_operation(name, time execute_or_queue_command(command, &block) end + # Lists DataItems in a Dataset. + # @param [String] parent + # Required. The resource name of the Dataset to list DataItems from. Format: ` + # projects/`project`/locations/`location`/datasets/`dataset`` + # @param [String] filter + # The standard list filter. + # @param [String] order_by + # A comma-separated list of fields to order by, sorted in ascending order. Use " + # desc" after a field name for descending. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataItemsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataItemsResponse] + # + # @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_dataset_data_items(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/dataItems', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataItemsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDataItemsResponse + 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['readMask'] = read_mask unless read_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 Annotations belongs to a dataitem. + # @param [String] parent + # Required. The resource name of the DataItem to list Annotations from. Format: ` + # projects/`project`/locations/`location`/datasets/`dataset`/dataItems/` + # data_item`` + # @param [String] filter + # The standard list filter. + # @param [String] order_by + # A comma-separated list of fields to order by, sorted in ascending order. Use " + # desc" after a field name for descending. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListAnnotationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListAnnotationsResponse] + # + # @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_dataset_data_item_annotations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/annotations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListAnnotationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListAnnotationsResponse + 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['readMask'] = read_mask unless read_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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_dataset_data_item_annotation_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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. @@ -11517,7 +12095,7 @@ def wait_project_location_feature_online_store_feature_view_operation(name, time # @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_feature_online_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_dataset_data_item_annotation_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -11548,7 +12126,7 @@ def delete_project_location_feature_online_store_operation(name, fields: nil, qu # @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_feature_online_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_dataset_data_item_annotation_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -11592,7 +12170,7 @@ def get_project_location_feature_online_store_operation(name, fields: nil, quota # @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_feature_online_store_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_dataset_data_item_annotation_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -11637,7 +12215,7 @@ def list_project_location_feature_online_store_operations(name, filter: nil, pag # @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_project_location_feature_online_store_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_dataset_data_item_annotation_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -11648,16 +12226,16 @@ def wait_project_location_feature_online_store_operation(name, timeout: nil, fie execute_or_queue_command(command, &block) end - # Batch reads Feature values from a Featurestore. This API enables batch reading - # Feature values, where each read instance in the batch may read Feature values - # of entities from one or more EntityTypes. Point-in-time correctness is - # guaranteed for Feature values of each read instance as of each instance's read - # timestamp. - # @param [String] featurestore - # Required. The resource name of the Featurestore from which to query Feature - # values. Format: `projects/`project`/locations/`location`/featurestores/` - # featurestore`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest] google_cloud_aiplatform_v1beta1_batch_read_feature_values_request_object + # 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 @@ -11667,36 +12245,30 @@ def wait_project_location_feature_online_store_operation(name, timeout: nil, fie # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 batch_project_location_featurestore_read_feature_values(featurestore, google_cloud_aiplatform_v1beta1_batch_read_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+featurestore}:batchReadFeatureValues', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_batch_read_feature_values_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['featurestore'] = featurestore unless featurestore.nil? + def cancel_project_location_dataset_data_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Creates a new Featurestore in a given project and location. - # @param [String] parent - # Required. The resource name of the Location to create Featurestores. Format: ` - # projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore] google_cloud_aiplatform_v1beta1_featurestore_object - # @param [String] featurestore_id - # Required. The ID to use for this Featurestore, which will become the final - # component of the Featurestore's resource name. This value may be up to 60 - # characters, and valid characters are `[a-z0-9_]`. The first character cannot - # be a number. The value must be unique within the project and location. + # 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 @@ -11706,36 +12278,28 @@ def batch_project_location_featurestore_read_feature_values(featurestore, google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_featurestore(parent, google_cloud_aiplatform_v1beta1_featurestore_object = nil, featurestore_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/featurestores', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore::Representation - command.request_object = google_cloud_aiplatform_v1beta1_featurestore_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? - command.query['featurestoreId'] = featurestore_id unless featurestore_id.nil? + def delete_project_location_dataset_data_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 single Featurestore. The Featurestore must not contain any - # EntityTypes or `force` must be set to true for the request to succeed. + # 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 - # Required. The name of the Featurestore to be deleted. Format: `projects/` - # project`/locations/`location`/featurestores/`featurestore`` - # @param [Boolean] force - # If set to true, any EntityTypes and Features for this Featurestore will also - # be deleted. (Otherwise, the request will only work if the Featurestore has no - # EntityTypes.) + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11753,20 +12317,33 @@ def create_project_location_featurestore(parent, google_cloud_aiplatform_v1beta1 # @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_featurestore(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def get_project_location_dataset_data_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? - command.query['force'] = force unless force.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 a single Featurestore. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Required. The name of the Featurestore resource. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -11776,31 +12353,42 @@ def delete_project_location_featurestore(name, force: nil, fields: nil, quota_us # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_featurestore(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore + def list_project_location_dataset_data_item_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Gets the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1GetIamPolicyRequest] google_iam_v1_get_iam_policy_request_object + # 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 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 @@ -11810,55 +12398,30 @@ def get_project_location_featurestore(name, fields: nil, quota_user: nil, option # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_iam_policy(resource, google_iam_v1_get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1GetIamPolicyRequest::Representation - command.request_object = google_iam_v1_get_iam_policy_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? + def wait_project_location_dataset_data_item_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Lists Featurestores in a given project and location. + # Create a version from a Dataset. # @param [String] parent - # Required. The resource name of the Location to list Featurestores. Format: ` - # projects/`project`/locations/`location`` - # @param [String] filter - # Lists the featurestores that match the filter expression. The following fields - # are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` - # comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, - # `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. - # * `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `<`, `>`, `<=`, - # and `>=` comparisons. * `labels`: Supports key-value equality and key - # presence. Examples: * `create_time > "2020-01-01" OR update_time > "2020-01-01" - # ` Featurestores created or updated after 2020-01-01. * `labels.env = "prod"` - # Featurestores with label "env" set to "prod". - # @param [String] order_by - # 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` * `online_serving_config.fixed_node_count` - # @param [Fixnum] page_size - # The maximum number of Featurestores to return. The service may return fewer - # than this value. If unspecified, at most 100 Featurestores will be returned. - # The maximum value is 100; any value greater than 100 will be coerced to 100. - # @param [String] page_token - # A page token, received from a previous FeaturestoreService.ListFeaturestores - # call. Provide this to retrieve the subsequent page. When paginating, all other - # parameters provided to FeaturestoreService.ListFeaturestores must match the - # call that provided the page token. - # @param [String] read_mask - # Mask specifying which fields to read. + # Required. The name of the Dataset resource. Format: `projects/`project`/ + # locations/`location`/datasets/`dataset`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] google_cloud_aiplatform_v1beta1_dataset_version_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11868,42 +12431,31 @@ def get_project_location_featurestore_iam_policy(resource, google_iam_v1_get_iam # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturestoresResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturestoresResponse] + # @return [Google::Apis::AiplatformV1beta1::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_featurestores(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/featurestores', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturestoresResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturestoresResponse + def create_project_location_dataset_dataset_version(parent, google_cloud_aiplatform_v1beta1_dataset_version_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/datasetVersions', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation + command.request_object = google_cloud_aiplatform_v1beta1_dataset_version_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation 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['readMask'] = read_mask unless read_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 - # Updates the parameters of a single Featurestore. + # Deletes a Dataset version. # @param [String] name - # Output only. Name of the Featurestore. Format: `projects/`project`/locations/` - # location`/featurestores/`featurestore`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore] google_cloud_aiplatform_v1beta1_featurestore_object - # @param [String] update_mask - # Field mask is used to specify the fields to be overwritten in the Featurestore - # resource by the update. The fields specified in the update_mask are relative - # to the resource, not the full request. A field will be overwritten if it is in - # the mask. If the user does not provide a mask then only the non-empty fields - # present in the request will be overwritten. Set the update_mask to `*` to - # override all fields. Updatable fields: * `labels` * `online_serving_config. - # fixed_node_count` * `online_serving_config.scaling` * `online_storage_ttl_days` + # Required. The resource name of the Dataset version to delete. Format: ` + # projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/` + # dataset_version`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11921,65 +12473,23 @@ def list_project_location_featurestores(parent, filter: nil, order_by: nil, page # @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_featurestore(name, google_cloud_aiplatform_v1beta1_featurestore_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore::Representation - command.request_object = google_cloud_aiplatform_v1beta1_featurestore_object + def delete_project_location_dataset_dataset_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation 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 - # Searches Features matching a query in a given project. - # @param [String] location - # Required. The resource name of the Location to search Features. Format: ` - # projects/`project`/locations/`location`` - # @param [Fixnum] page_size - # The maximum number of Features to return. The service may return fewer than - # this value. If unspecified, at most 100 Features will be returned. The maximum - # value is 100; any value greater than 100 will be coerced to 100. - # @param [String] page_token - # A page token, received from a previous FeaturestoreService.SearchFeatures call. - # Provide this to retrieve the subsequent page. When paginating, all other - # parameters provided to FeaturestoreService.SearchFeatures, except `page_size`, - # must match the call that provided the page token. - # @param [String] query - # Query string that is a conjunction of field-restricted queries and/or field- - # restricted filters. Field-restricted queries and filters can be combined using - # `AND` to form a conjunction. A field query is in the form FIELD:QUERY. This - # implicitly checks if QUERY exists as a substring within Feature's FIELD. The - # QUERY and the FIELD are converted to a sequence of words (i.e. tokens) for - # comparison. This is done by: * Removing leading/trailing whitespace and - # tokenizing the search value. Characters that are not one of alphanumeric `[a- - # zA-Z0-9]`, underscore `_`, or asterisk `*` are treated as delimiters for - # tokens. `*` is treated as a wildcard that matches characters within a token. * - # Ignoring case. * Prepending an asterisk to the first and appending an asterisk - # to the last token in QUERY. A QUERY must be either a singular token or a - # phrase. A phrase is one or multiple words enclosed in double quotation marks (" - # ). With phrases, the order of the words is important. Words in the phrase must - # be matching in order and consecutively. Supported FIELDs for field-restricted - # queries: * `feature_id` * `description` * `entity_type_id` Examples: * ` - # feature_id: foo` --> Matches a Feature with ID containing the substring `foo` ( - # eg. `foo`, `foofeature`, `barfoo`). * `feature_id: foo*feature` --> Matches a - # Feature with ID containing the substring `foo*feature` (eg. `foobarfeature`). * - # `feature_id: foo AND description: bar` --> Matches a Feature with ID - # containing the substring `foo` and description containing the substring `bar`. - # Besides field queries, the following exact-match filters are supported. The - # exact-match filters do not support wildcards. Unlike field-restricted queries, - # exact-match filters are case-sensitive. * `feature_id`: Supports = comparisons. - # * `description`: Supports = comparisons. Multi-token filters should be - # enclosed in quotes. * `entity_type_id`: Supports = comparisons. * `value_type`: - # Supports = and != comparisons. * `labels`: Supports key-value equality as - # well as key presence. * `featurestore_id`: Supports = comparisons. Examples: * - # `description = "foo bar"` --> Any Feature with description exactly equal to ` - # foo bar` * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `labels. - # active = yes AND labels.env = prod` --> Features having both (active: yes) and - # (env: prod) labels. * `labels.env: *` --> Any Feature which has a label with ` - # env` as the key. + # Gets a Dataset version. + # @param [String] name + # Required. The resource name of the Dataset version to delete. Format: ` + # projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/` + # dataset_version`` + # @param [String] read_mask + # Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -11989,35 +12499,40 @@ def patch_project_location_featurestore(name, google_cloud_aiplatform_v1beta1_fe # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchFeaturesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchFeaturesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] # # @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 search_project_location_featurestore_features(location, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+location}/featurestores:searchFeatures', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchFeaturesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchFeaturesResponse - command.params['location'] = location unless location.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['query'] = query unless query.nil? + def get_project_location_dataset_dataset_version(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion + command.params['name'] = name unless name.nil? + command.query['readMask'] = read_mask unless read_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 - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object + # Lists DatasetVersions in a Dataset. + # @param [String] parent + # Required. The resource name of the Dataset to list DatasetVersions from. + # Format: `projects/`project`/locations/`location`/datasets/`dataset`` + # @param [String] filter + # Optional. The standard list filter. + # @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. + # @param [Fixnum] page_size + # Optional. The standard list page size. + # @param [String] page_token + # Optional. The standard list page token. + # @param [String] read_mask + # Optional. Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12027,36 +12542,38 @@ def search_project_location_featurestore_features(location, page_size: nil, page # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse] # # @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 set_project_location_featurestore_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation - command.request_object = google_iam_v1_set_iam_policy_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? + def list_project_location_dataset_dataset_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/datasetVersions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse + 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['readMask'] = read_mask unless read_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 - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See [ - # Resource names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object + # Updates a DatasetVersion. + # @param [String] name + # Output only. Identifier. The resource name of the DatasetVersion. Format: ` + # projects/`project`/locations/`location`/datasets/`dataset`/datasetVersions/` + # dataset_version`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] google_cloud_aiplatform_v1beta1_dataset_version_object + # @param [String] update_mask + # Required. The update mask applies to the resource. For the `FieldMask` + # definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12066,36 +12583,31 @@ def set_project_location_featurestore_iam_policy(resource, google_iam_v1_set_iam # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion] # # @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 test_project_location_featurestore_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation - command.request_object = google_iam_v1_test_iam_permissions_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? + def patch_project_location_dataset_dataset_version(name, google_cloud_aiplatform_v1beta1_dataset_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation + command.request_object = google_cloud_aiplatform_v1beta1_dataset_version_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DatasetVersion + 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 - # Creates a new EntityType in a given Featurestore. - # @param [String] parent - # Required. The resource name of the Featurestore to create EntityTypes. Format: - # `projects/`project`/locations/`location`/featurestores/`featurestore`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType] google_cloud_aiplatform_v1beta1_entity_type_object - # @param [String] entity_type_id - # Required. The ID to use for the EntityType, which will become the final - # component of the EntityType's resource name. This value may be up to 60 - # characters, and valid characters are `[a-z0-9_]`. The first character cannot - # be a number. The value must be unique within a featurestore. + # Restores a dataset version. + # @param [String] name + # Required. The name of the DatasetVersion resource. Format: `projects/`project`/ + # locations/`location`/datasets/`dataset`/datasetVersions/`dataset_version`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12113,27 +12625,26 @@ def test_project_location_featurestore_iam_permissions(resource, google_iam_v1_t # @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_featurestore_entity_type(parent, google_cloud_aiplatform_v1beta1_entity_type_object = nil, entity_type_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/entityTypes', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType::Representation - command.request_object = google_cloud_aiplatform_v1beta1_entity_type_object + def restore_project_location_dataset_dataset_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}:restore', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? - command.query['entityTypeId'] = entity_type_id unless entity_type_id.nil? + 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 single EntityType. The EntityType must not have any Features or ` - # force` must be set to true for the request to succeed. + # 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 - # Required. The name of the EntityType to be deleted. Format: `projects/`project` - # /locations/`location`/featurestores/`featurestore`/entityTypes/`entity_type`` - # @param [Boolean] force - # If set to true, any Features for this EntityType will also be deleted. ( - # Otherwise, the request will only work if the EntityType has no Features.) + # 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 @@ -12143,37 +12654,30 @@ def create_project_location_featurestore_entity_type(parent, google_cloud_aiplat # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def cancel_project_location_dataset_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? - command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Delete Feature values from Featurestore. The progress of the deletion is - # tracked by the returned operation. The deleted feature values are guaranteed - # to be invisible to subsequent read operations after the operation is marked as - # successfully done. If a delete feature values operation fails, the feature - # values returned from reads and exports may be inconsistent. If consistency is - # required, the caller must retry the same delete request again and wait till - # the new operation returned is marked as successfully done. - # @param [String] entity_type - # Required. The resource name of the EntityType grouping the Features for which - # values are being deleted from. Format: `projects/`project`/locations/`location` - # /featurestores/`featurestore`/entityTypes/`entityType`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest] google_cloud_aiplatform_v1beta1_delete_feature_values_request_object + # 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 @@ -12183,32 +12687,28 @@ def delete_project_location_featurestore_entity_type(name, force: nil, fields: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type_feature_values(entity_type, google_cloud_aiplatform_v1beta1_delete_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+entityType}:deleteFeatureValues', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_delete_feature_values_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['entityType'] = entity_type unless entity_type.nil? + def delete_project_location_dataset_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Exports Feature values from all the entities of a target EntityType. - # @param [String] entity_type - # Required. The resource name of the EntityType from which to export Feature - # values. Format: `projects/`project`/locations/`location`/featurestores/` - # featurestore`/entityTypes/`entity_type`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest] google_cloud_aiplatform_v1beta1_export_feature_values_request_object + # 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 @@ -12226,22 +12726,33 @@ def delete_project_location_featurestore_entity_type_feature_values(entity_type, # @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 export_project_location_featurestore_entity_type_feature_values(entity_type, google_cloud_aiplatform_v1beta1_export_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+entityType}:exportFeatureValues', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_export_feature_values_request_object + def get_project_location_dataset_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['entityType'] = entity_type unless entity_type.nil? + 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 a single EntityType. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Required. The name of the EntityType resource. Format: `projects/`project`/ - # locations/`location`/featurestores/`featurestore`/entityTypes/`entity_type`` + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -12251,41 +12762,42 @@ def export_project_location_featurestore_entity_type_feature_values(entity_type, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_featurestore_entity_type(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType + def list_project_location_dataset_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Gets the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The maximum policy version that will be used to format the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. Requests for policies with any conditional role bindings must - # specify version 3. Policies with no conditional role bindings may specify any - # valid value or leave the field unset. The policy in the response might use the - # policy version that you specified, or it might use a lower policy version. For - # example, if you specify version 3, but the policy has no conditional role - # bindings, the response uses version 1. To learn which resources support - # conditions in their IAM policies, see the [IAM documentation](https://cloud. - # google.com/iam/help/conditions/resource-policies). + # 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 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 @@ -12295,43 +12807,29 @@ def get_project_location_featurestore_entity_type(name, fields: nil, quota_user: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? - command.query['fields'] = fields unless fields.nil? + def wait_project_location_dataset_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Imports Feature values into the Featurestore from a source storage. The - # progress of the import is tracked by the returned operation. The imported - # features are guaranteed to be visible to subsequent read operations after the - # operation is marked as successfully done. If an import operation fails, the - # Feature values returned from reads and exports may be inconsistent. If - # consistency is required, the caller must retry the same import request again - # and wait till the new operation returned is marked as successfully done. There - # are also scenarios where the caller can cause inconsistency. - Source data for - # import contains multiple distinct Feature values for the same entity ID and - # timestamp. - Source is modified during an import. This includes adding, - # updating, or removing source data and/or metadata. Examples of updating - # metadata include but are not limited to changing storage location, storage - # class, or retention policy. - Online serving cluster is under-provisioned. - # @param [String] entity_type - # Required. The resource name of the EntityType grouping the Features for which - # values are being imported. Format: `projects/`project`/locations/`location`/ - # featurestores/`featurestore`/entityTypes/`entityType`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest] google_cloud_aiplatform_v1beta1_import_feature_values_request_object + # Deletes a SavedQuery. + # @param [String] name + # Required. The resource name of the SavedQuery to delete. Format: `projects/` + # project`/locations/`location`/datasets/`dataset`/savedQueries/`saved_query`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12349,46 +12847,29 @@ def get_project_location_featurestore_entity_type_iam_policy(resource, options_r # @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 import_project_location_featurestore_entity_type_feature_values(entity_type, google_cloud_aiplatform_v1beta1_import_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+entityType}:importFeatureValues', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_import_feature_values_request_object + def delete_project_location_dataset_saved_query(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['entityType'] = entity_type unless entity_type.nil? + 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 EntityTypes in a given Featurestore. + # Lists SavedQueries in a Dataset. # @param [String] parent - # Required. The resource name of the Featurestore to list EntityTypes. Format: ` - # projects/`project`/locations/`location`/featurestores/`featurestore`` + # Required. The resource name of the Dataset to list SavedQueries from. Format: ` + # projects/`project`/locations/`location`/datasets/`dataset`` # @param [String] filter - # Lists the EntityTypes that match the filter expression. The following filters - # are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` - # comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, - # `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 format. - # * `labels`: Supports key-value equality as well as key presence. Examples: * ` - # create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15: - # 30:00.000000Z\"` --> EntityTypes created or updated after 2020-01-31T15:30:00. - # 000000Z. * `labels.active = yes AND labels.env = prod` --> EntityTypes having - # both (active: yes) and (env: prod) labels. * `labels.env: *` --> Any - # EntityType which has a label with 'env' as the key. + # The standard list filter. # @param [String] order_by # A comma-separated list of fields to order by, sorted in ascending order. Use " - # desc" after a field name for descending. Supported fields: * `entity_type_id` * - # `create_time` * `update_time` + # desc" after a field name for descending. # @param [Fixnum] page_size - # The maximum number of EntityTypes to return. The service may return fewer than - # this value. If unspecified, at most 1000 EntityTypes will be returned. The - # maximum value is 1000; any value greater than 1000 will be coerced to 1000. + # The standard list page size. # @param [String] page_token - # A page token, received from a previous FeaturestoreService.ListEntityTypes - # call. Provide this to retrieve the subsequent page. When paginating, all other - # parameters provided to FeaturestoreService.ListEntityTypes must match the call - # that provided the page token. + # The standard list page token. # @param [String] read_mask # Mask specifying which fields to read. # @param [String] fields @@ -12400,18 +12881,18 @@ def import_project_location_featurestore_entity_type_feature_values(entity_type, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEntityTypesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSavedQueriesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEntityTypesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSavedQueriesResponse] # # @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_featurestore_entity_types(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/entityTypes', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEntityTypesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEntityTypesResponse + def list_project_location_dataset_saved_queries(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/savedQueries', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSavedQueriesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSavedQueriesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? @@ -12423,29 +12904,16 @@ def list_project_location_featurestore_entity_types(parent, filter: nil, order_b execute_or_queue_command(command, &block) end - # Updates the parameters of a single EntityType. + # 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 - # Immutable. Name of the EntityType. Format: `projects/`project`/locations/` - # location`/featurestores/`featurestore`/entityTypes/`entity_type`` The last - # part entity_type is assigned by the client. The entity_type can be up to 64 - # characters long and can consist only of ASCII Latin letters A-Z and a-z and - # underscore(_), and ASCII digits 0-9 starting with a letter. The value will be - # unique given a featurestore. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType] google_cloud_aiplatform_v1beta1_entity_type_object - # @param [String] update_mask - # Field mask is used to specify the fields to be overwritten in the EntityType - # resource by the update. The fields specified in the update_mask are relative - # to the resource, not the full request. A field will be overwritten if it is in - # the mask. If the user does not provide a mask then only the non-empty fields - # present in the request will be overwritten. Set the update_mask to `*` to - # override all fields. Updatable fields: * `description` * `labels` * ` - # monitoring_config.snapshot_analysis.disabled` * `monitoring_config. - # snapshot_analysis.monitoring_interval_days` * `monitoring_config. - # snapshot_analysis.staleness_days` * `monitoring_config. - # import_features_analysis.state` * `monitoring_config.import_features_analysis. - # anomaly_detection_baseline` * `monitoring_config.numerical_threshold_config. - # value` * `monitoring_config.categorical_threshold_config.value` * ` - # offline_storage_ttl_days` + # 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 @@ -12455,110 +12923,30 @@ def list_project_location_featurestore_entity_types(parent, filter: nil, order_b # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType] + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_featurestore_entity_type(name, google_cloud_aiplatform_v1beta1_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType::Representation - command.request_object = google_cloud_aiplatform_v1beta1_entity_type_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType + def cancel_project_location_dataset_saved_query_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty 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 - - # Reads Feature values of a specific entity of an EntityType. For reading - # feature values of multiple entities of an EntityType, please use - # StreamingReadFeatureValues. - # @param [String] entity_type - # Required. The resource name of the EntityType for the entity being read. Value - # format: `projects/`project`/locations/`location`/featurestores/`featurestore`/ - # entityTypes/`entityType``. For example, for a machine learning model - # predicting user clicks on a website, an EntityType ID could be `user`. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest] google_cloud_aiplatform_v1beta1_read_feature_values_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse] - # - # @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 read_project_location_featurestore_entity_type_feature_values(entity_type, google_cloud_aiplatform_v1beta1_read_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+entityType}:readFeatureValues', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_read_feature_values_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse - command.params['entityType'] = entity_type unless entity_type.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_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::AiplatformV1beta1::GoogleIamV1Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] - # - # @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 set_project_location_featurestore_entity_type_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation - command.request_object = google_iam_v1_set_iam_policy_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Reads Feature values for multiple entities. Depending on their size, data for - # different entities may be broken up across multiple responses. - # @param [String] entity_type - # Required. The resource name of the entities' type. Value format: `projects/` - # project`/locations/`location`/featurestores/`featurestore`/entityTypes/` - # entityType``. For example, for a machine learning model predicting user clicks - # on a website, an EntityType ID could be `user`. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest] google_cloud_aiplatform_v1beta1_streaming_read_feature_values_request_object + # 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 @@ -12568,39 +12956,28 @@ def set_project_location_featurestore_entity_type_iam_policy(resource, google_ia # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse] + # @return [Google::Apis::AiplatformV1beta1::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 streaming_project_location_featurestore_entity_type_read_feature_values(entity_type, google_cloud_aiplatform_v1beta1_streaming_read_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+entityType}:streamingReadFeatureValues', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_streaming_read_feature_values_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse - command.params['entityType'] = entity_type unless entity_type.nil? + def delete_project_location_dataset_saved_query_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See [ - # Resource names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Array, String] permissions - # The set of permissions to check for the `resource`. Permissions with wildcards - # (such as `*` or `storage.*`) are not allowed. For more information see [IAM - # Overview](https://cloud.google.com/iam/docs/overview#permissions). + # 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 @@ -12610,34 +12987,41 @@ def streaming_project_location_featurestore_entity_type_read_feature_values(enti # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 test_project_location_featurestore_entity_type_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['permissions'] = permissions unless permissions.nil? + def get_project_location_dataset_saved_query_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Writes Feature values of one or more entities of an EntityType. The Feature - # values are merged into existing entities if any. The Feature values to be - # written must have timestamp within the online storage retention. - # @param [String] entity_type - # Required. The resource name of the EntityType for the entities being written. - # Value format: `projects/`project`/locations/`location`/featurestores/ ` - # featurestore`/entityTypes/`entityType``. For example, for a machine learning - # model predicting user clicks on a website, an EntityType ID could be `user`. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest] google_cloud_aiplatform_v1beta1_write_feature_values_request_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -12647,33 +13031,42 @@ def test_project_location_featurestore_entity_type_iam_permissions(resource, per # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse] + # @return [Google::Apis::AiplatformV1beta1::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 write_project_location_featurestore_entity_type_feature_values(entity_type, google_cloud_aiplatform_v1beta1_write_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+entityType}:writeFeatureValues', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_write_feature_values_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse - command.params['entityType'] = entity_type unless entity_type.nil? + def list_project_location_dataset_saved_query_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Creates a batch of Features in a given EntityType. - # @param [String] parent - # Required. The resource name of the EntityType/FeatureGroup to create the batch - # of Features under. Format: `projects/`project`/locations/`location`/ - # featurestores/`featurestore`/entityTypes/`entity_type`` `projects/`project`/ - # locations/`location`/featureGroups/`feature_group`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest] google_cloud_aiplatform_v1beta1_batch_create_features_request_object + # 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 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 @@ -12691,31 +13084,22 @@ def write_project_location_featurestore_entity_type_feature_values(entity_type, # @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 batch_project_location_featurestore_entity_type_feature_create(parent, google_cloud_aiplatform_v1beta1_batch_create_features_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/features:batchCreate', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_batch_create_features_request_object + def wait_project_location_dataset_saved_query_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + 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 - # Creates a new Feature in a given EntityType. + # Create a DeploymentResourcePool. # @param [String] parent - # Required. The resource name of the EntityType or FeatureGroup to create a - # Feature. Format for entity_type as parent: `projects/`project`/locations/` - # location`/featurestores/`featurestore`/entityTypes/`entity_type`` Format for - # feature_group as parent: `projects/`project`/locations/`location`/ - # featureGroups/`feature_group`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] google_cloud_aiplatform_v1beta1_feature_object - # @param [String] feature_id - # Required. The ID to use for the Feature, which will become the final component - # of the Feature's resource name. This value may be up to 128 characters, and - # valid characters are `[a-z0-9_]`. The first character cannot be a number. The - # value must be unique within an EntityType/FeatureGroup. + # Required. The parent location resource where this DeploymentResourcePool will + # be created. Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest] google_cloud_aiplatform_v1beta1_create_deployment_resource_pool_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12733,25 +13117,23 @@ def batch_project_location_featurestore_entity_type_feature_create(parent, googl # @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_featurestore_entity_type_feature(parent, google_cloud_aiplatform_v1beta1_feature_object = nil, feature_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/features', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature::Representation - command.request_object = google_cloud_aiplatform_v1beta1_feature_object + def create_project_location_deployment_resource_pool(parent, google_cloud_aiplatform_v1beta1_create_deployment_resource_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/deploymentResourcePools', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_create_deployment_resource_pool_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? - command.query['featureId'] = feature_id unless feature_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 - # Deletes a single Feature. + # Delete a DeploymentResourcePool. # @param [String] name - # Required. The name of the Features to be deleted. Format: `projects/`project`/ - # locations/`location`/featurestores/`featurestore`/entityTypes/`entity_type`/ - # features/`feature`` `projects/`project`/locations/`location`/featureGroups/` - # feature_group`/features/`feature`` + # Required. The name of the DeploymentResourcePool to delete. Format: `projects/` + # project`/locations/`location`/deploymentResourcePools/` + # deployment_resource_pool`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12769,7 +13151,7 @@ def create_project_location_featurestore_entity_type_feature(parent, google_clou # @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_featurestore_entity_type_feature(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_deployment_resource_pool(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -12779,22 +13161,11 @@ def delete_project_location_featurestore_entity_type_feature(name, fields: nil, execute_or_queue_command(command, &block) end - # Gets details of a single Feature. + # Get a DeploymentResourcePool. # @param [String] name - # Required. The name of the Feature resource. Format for entity_type as parent: ` - # projects/`project`/locations/`location`/featurestores/`featurestore`/ - # entityTypes/`entity_type`` Format for feature_group as parent: `projects/` - # project`/locations/`location`/featureGroups/`feature_group`` - # @param [Fixnum] feature_stats_and_anomaly_spec_latest_stats_count - # Optional. If set, returns the most recent count of stats. Valid value is [0, - # 100]. If stats_time_range is set, return most recent count of stats within the - # stats_time_range. - # @param [String] feature_stats_and_anomaly_spec_stats_time_range_end_time - # Optional. Exclusive end of the interval. If specified, a Timestamp matching - # this interval will have to be before the end. - # @param [String] feature_stats_and_anomaly_spec_stats_time_range_start_time - # Optional. Inclusive start of the interval. If specified, a Timestamp matching - # this interval will have to be the same or after the start. + # Required. The name of the DeploymentResourcePool to retrieve. Format: ` + # projects/`project`/locations/`location`/deploymentResourcePools/` + # deployment_resource_pool`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12804,67 +13175,36 @@ def delete_project_location_featurestore_entity_type_feature(name, fields: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeploymentResourcePool] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeploymentResourcePool] # # @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_featurestore_entity_type_feature(name, feature_stats_and_anomaly_spec_latest_stats_count: nil, feature_stats_and_anomaly_spec_stats_time_range_end_time: nil, feature_stats_and_anomaly_spec_stats_time_range_start_time: nil, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_deployment_resource_pool(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeploymentResourcePool::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeploymentResourcePool command.params['name'] = name unless name.nil? - command.query['featureStatsAndAnomalySpec.latestStatsCount'] = feature_stats_and_anomaly_spec_latest_stats_count unless feature_stats_and_anomaly_spec_latest_stats_count.nil? - command.query['featureStatsAndAnomalySpec.statsTimeRange.endTime'] = feature_stats_and_anomaly_spec_stats_time_range_end_time unless feature_stats_and_anomaly_spec_stats_time_range_end_time.nil? - command.query['featureStatsAndAnomalySpec.statsTimeRange.startTime'] = feature_stats_and_anomaly_spec_stats_time_range_start_time unless feature_stats_and_anomaly_spec_stats_time_range_start_time.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 Features in a given EntityType. + # List DeploymentResourcePools in a location. # @param [String] parent - # Required. The resource name of the Location to list Features. Format for - # entity_type as parent: `projects/`project`/locations/`location`/featurestores/` - # featurestore`/entityTypes/`entity_type`` Format for feature_group as parent: ` - # projects/`project`/locations/`location`/featureGroups/`feature_group`` - # @param [String] filter - # Lists the Features that match the filter expression. The following filters are - # supported: * `value_type`: Supports = and != comparisons. * `create_time`: - # Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC 3339 - # format. * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values - # must be in RFC 3339 format. * `labels`: Supports key-value equality as well as - # key presence. Examples: * `value_type = DOUBLE` --> Features whose type is - # DOUBLE. * `create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > \" - # 2020-01-31T15:30:00.000000Z\"` --> EntityTypes created or updated after 2020- - # 01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --> - # Features having both (active: yes) and (env: prod) labels. * `labels.env: *` -- - # > Any Feature which has a label with 'env' as the key. - # @param [Fixnum] latest_stats_count - # Only applicable for Vertex AI Feature Store (Legacy). If set, return the most - # recent ListFeaturesRequest.latest_stats_count of stats for each Feature in - # response. Valid value is [0, 10]. If number of stats exists < - # ListFeaturesRequest.latest_stats_count, return all existing stats. - # @param [String] order_by - # A comma-separated list of fields to order by, sorted in ascending order. Use " - # desc" after a field name for descending. Supported fields: * `feature_id` * ` - # value_type` (Not supported for FeatureRegistry Feature) * `create_time` * ` - # update_time` + # Required. The parent Location which owns this collection of + # DeploymentResourcePools. Format: `projects/`project`/locations/`location`` # @param [Fixnum] page_size - # The maximum number of Features to return. The service may return fewer than - # this value. If unspecified, at most 1000 Features will be returned. The - # maximum value is 1000; any value greater than 1000 will be coerced to 1000. + # The maximum number of DeploymentResourcePools to return. The service may + # return fewer than this value. # @param [String] page_token - # A page token, received from a previous FeaturestoreService.ListFeatures call - # or FeatureRegistryService.ListFeatures call. Provide this to retrieve the - # subsequent page. When paginating, all other parameters provided to - # FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must - # match the call that provided the page token. - # @param [String] read_mask - # Mask specifying which fields to read. + # A page token, received from a previous `ListDeploymentResourcePools` call. + # Provide this to retrieve the subsequent page. When paginating, all other + # parameters provided to `ListDeploymentResourcePools` must match the call that + # provided the page token. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12874,49 +13214,34 @@ def get_project_location_featurestore_entity_type_feature(name, feature_stats_an # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse] # # @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_featurestore_entity_type_features(parent, filter: nil, latest_stats_count: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/features', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse + def list_project_location_deployment_resource_pools(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/deploymentResourcePools', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse command.params['parent'] = parent unless parent.nil? - command.query['filter'] = filter unless filter.nil? - command.query['latestStatsCount'] = latest_stats_count unless latest_stats_count.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['readMask'] = read_mask unless read_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 - # Updates the parameters of a single Feature. + # Update a DeploymentResourcePool. # @param [String] name - # Immutable. Name of the Feature. Format: `projects/`project`/locations/` - # location`/featurestores/`featurestore`/entityTypes/`entity_type`/features/` - # feature`` `projects/`project`/locations/`location`/featureGroups/` - # feature_group`/features/`feature`` The last part feature is assigned by the - # client. The feature can be up to 64 characters long and can consist only of - # ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting - # with a letter. The value will be unique given an entity type. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] google_cloud_aiplatform_v1beta1_feature_object + # Immutable. The resource name of the DeploymentResourcePool. Format: `projects/` + # project`/locations/`location`/deploymentResourcePools/` + # deployment_resource_pool`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeploymentResourcePool] google_cloud_aiplatform_v1beta1_deployment_resource_pool_object # @param [String] update_mask - # Field mask is used to specify the fields to be overwritten in the Features - # resource by the update. The fields specified in the update_mask are relative - # to the resource, not the full request. A field will be overwritten if it is in - # the mask. If the user does not provide a mask then only the non-empty fields - # present in the request will be overwritten. Set the update_mask to `*` to - # override all fields. Updatable fields: * `description` * `labels` * ` - # disable_monitoring` (Not supported for FeatureRegistryService Feature) * ` - # point_of_contact` (Not supported for FeaturestoreService FeatureStore) + # Required. The list of fields to update. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -12926,20 +13251,20 @@ def list_project_location_featurestore_entity_type_features(parent, filter: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_featurestore_entity_type_feature(name, google_cloud_aiplatform_v1beta1_feature_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_project_location_deployment_resource_pool(name, google_cloud_aiplatform_v1beta1_deployment_resource_pool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature::Representation - command.request_object = google_cloud_aiplatform_v1beta1_feature_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeploymentResourcePool::Representation + command.request_object = google_cloud_aiplatform_v1beta1_deployment_resource_pool_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? @@ -12947,14 +13272,56 @@ def patch_project_location_featurestore_entity_type_feature(name, google_cloud_a 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`. + # List DeployedModels that have been deployed on this DeploymentResourcePool. + # @param [String] deployment_resource_pool + # Required. The name of the target DeploymentResourcePool to query. Format: ` + # projects/`project`/locations/`location`/deploymentResourcePools/` + # deployment_resource_pool`` + # @param [Fixnum] page_size + # The maximum number of DeployedModels to return. The service may return fewer + # than this value. + # @param [String] page_token + # A page token, received from a previous `QueryDeployedModels` call. Provide + # this to retrieve the subsequent page. When paginating, all other parameters + # provided to `QueryDeployedModels` must match the call that provided the page + # token. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse] + # + # @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_project_location_deployment_resource_pool_deployed_models(deployment_resource_pool, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+deploymentResourcePool}:queryDeployedModels', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse + command.params['deploymentResourcePool'] = deployment_resource_pool unless deployment_resource_pool.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 @@ -12974,7 +13341,7 @@ def patch_project_location_featurestore_entity_type_feature(name, google_cloud_a # @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_featurestore_entity_type_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_deployment_resource_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -13007,7 +13374,7 @@ def cancel_project_location_featurestore_entity_type_feature_operation(name, fie # @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_featurestore_entity_type_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_deployment_resource_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -13038,7 +13405,7 @@ def delete_project_location_featurestore_entity_type_feature_operation(name, fie # @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_featurestore_entity_type_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_deployment_resource_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -13082,7 +13449,7 @@ def get_project_location_featurestore_entity_type_feature_operation(name, fields # @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_featurestore_entity_type_feature_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_deployment_resource_pool_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -13127,7 +13494,7 @@ def list_project_location_featurestore_entity_type_feature_operations(name, filt # @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_project_location_featurestore_entity_type_feature_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_deployment_resource_pool_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -13165,7 +13532,7 @@ def wait_project_location_featurestore_entity_type_feature_operation(name, timeo # @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_featurestore_entity_type_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_edge_device_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -13198,7 +13565,7 @@ def cancel_project_location_featurestore_entity_type_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_featurestore_entity_type_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_edge_device_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -13229,7 +13596,7 @@ def delete_project_location_featurestore_entity_type_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_featurestore_entity_type_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_edge_device_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -13273,7 +13640,7 @@ def get_project_location_featurestore_entity_type_operation(name, fields: nil, q # @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_featurestore_entity_type_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_edge_device_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -13318,7 +13685,7 @@ def list_project_location_featurestore_entity_type_operations(name, filter: 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 wait_project_location_featurestore_entity_type_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_edge_device_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -13329,16 +13696,11 @@ def wait_project_location_featurestore_entity_type_operation(name, timeout: 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. + # Return a list of tokens based on the input text. + # @param [String] endpoint + # Required. The name of the Endpoint requested to get lists of tokens and token + # ids. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest] google_cloud_aiplatform_v1beta1_compute_tokens_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13348,30 +13710,31 @@ def wait_project_location_featurestore_entity_type_operation(name, timeout: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] # # @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_featurestore_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? + def compute_project_location_endpoint_tokens(endpoint, google_cloud_aiplatform_v1beta1_compute_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:computeTokens', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_compute_tokens_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse + command.params['endpoint'] = endpoint unless endpoint.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. + # Perform a token counting. + # @param [String] endpoint + # Required. The name of the Endpoint requested to perform token counting. Format: + # `projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest] google_cloud_aiplatform_v1beta1_count_tokens_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13381,28 +13744,41 @@ def cancel_project_location_featurestore_operation(name, fields: nil, quota_user # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] # # @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_featurestore_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? + def count_project_location_endpoint_tokens(endpoint, google_cloud_aiplatform_v1beta1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:countTokens', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_count_tokens_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse + command.params['endpoint'] = endpoint unless endpoint.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. + # Creates an Endpoint. + # @param [String] parent + # Required. The resource name of the Location to create the Endpoint in. Format: + # `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint] google_cloud_aiplatform_v1beta1_endpoint_object + # @param [String] endpoint_id + # Immutable. The ID to use for endpoint, which will become the final component + # of the endpoint resource name. If not provided, Vertex AI will generate a + # value for this ID. If the first character is a letter, this value may be up to + # 63 characters, and valid characters are `[a-z0-9-]`. The last character must + # be a letter or number. If the first character is a number, this value may be + # up to 9 characters, and valid characters are `[0-9]` with no leading zeros. + # When using HTTP/JSON, this field is populated based on a query string argument, + # such as `?endpoint_id=12345`. This is the fallback for fields that are not + # included in either the URI or the body. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13420,33 +13796,23 @@ def delete_project_location_featurestore_operation(name, fields: nil, quota_user # @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_featurestore_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) + def create_project_location_endpoint(parent, google_cloud_aiplatform_v1beta1_endpoint_object = nil, endpoint_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/endpoints', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint::Representation + command.request_object = google_cloud_aiplatform_v1beta1_endpoint_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + command.params['parent'] = parent unless parent.nil? + command.query['endpointId'] = endpoint_id unless endpoint_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 - # Lists operations that match the specified filter in the request. If the server - # doesn't support this method, it returns `UNIMPLEMENTED`. + # Deletes an Endpoint. # @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 e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # Required. The name of the Endpoint resource to be deleted. Format: `projects/` + # project`/locations/`location`/endpoints/`endpoint`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13456,42 +13822,29 @@ def get_project_location_featurestore_operation(name, fields: nil, quota_user: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_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, 'v1beta1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse + def delete_project_location_endpoint(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation 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 - # 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 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. + # Deploys a Model into this Endpoint, creating a DeployedModel within it. + # @param [String] endpoint + # Required. The name of the Endpoint resource into which to deploy a Model. + # Format: `projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployModelRequest] google_cloud_aiplatform_v1beta1_deploy_model_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13509,31 +13862,24 @@ def list_project_location_featurestore_operations(name, filter: nil, page_size: # @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_project_location_featurestore_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + def deploy_project_location_endpoint_model(endpoint, google_cloud_aiplatform_v1beta1_deploy_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:deployModel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployModelRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_deploy_model_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? - command.query['timeout'] = timeout unless timeout.nil? + command.params['endpoint'] = endpoint unless endpoint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the - # HyperparameterTuningJob. The server makes a best effort to cancel the job, but - # success is not guaranteed. Clients can use JobService. - # GetHyperparameterTuningJob or other methods to check whether the cancellation - # succeeded or whether the job completed despite cancellation. On successful - # cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a - # job with a HyperparameterTuningJob.error value with a google.rpc.Status.code - # of 1, corresponding to `Code.CANCELLED`, and HyperparameterTuningJob.state is - # set to `CANCELLED`. - # @param [String] name - # Required. The name of the HyperparameterTuningJob to cancel. Format: `projects/ - # `project`/locations/`location`/hyperparameterTuningJobs/` - # hyperparameter_tuning_job`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest] google_cloud_aiplatform_v1beta1_cancel_hyperparameter_tuning_job_request_object + # Perform an unary online prediction request to a gRPC model server for Vertex + # first-party products and frameworks. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectPredictRequest] google_cloud_aiplatform_v1beta1_direct_predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13543,31 +13889,32 @@ def wait_project_location_featurestore_operation(name, timeout: nil, fields: nil # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectPredictResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectPredictResponse] # # @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_hyperparameter_tuning_job(name, google_cloud_aiplatform_v1beta1_cancel_hyperparameter_tuning_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_cancel_hyperparameter_tuning_job_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? + def direct_project_location_endpoint_predict(endpoint, google_cloud_aiplatform_v1beta1_direct_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:directPredict', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectPredictRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_direct_predict_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectPredictResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectPredictResponse + command.params['endpoint'] = endpoint unless endpoint.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 HyperparameterTuningJob - # @param [String] parent - # Required. The resource name of the Location to create the - # HyperparameterTuningJob in. Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob] google_cloud_aiplatform_v1beta1_hyperparameter_tuning_job_object + # Perform an unary online prediction request to a gRPC model server for custom + # containers. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectRawPredictRequest] google_cloud_aiplatform_v1beta1_direct_raw_predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13577,31 +13924,34 @@ def cancel_project_location_hyperparameter_tuning_job(name, google_cloud_aiplatf # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectRawPredictResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectRawPredictResponse] # # @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_hyperparameter_tuning_job(parent, google_cloud_aiplatform_v1beta1_hyperparameter_tuning_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/hyperparameterTuningJobs', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob::Representation - command.request_object = google_cloud_aiplatform_v1beta1_hyperparameter_tuning_job_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob - command.params['parent'] = parent unless parent.nil? + def direct_project_location_endpoint_raw_predict(endpoint, google_cloud_aiplatform_v1beta1_direct_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:directRawPredict', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectRawPredictRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_direct_raw_predict_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectRawPredictResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectRawPredictResponse + command.params['endpoint'] = endpoint unless endpoint.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 HyperparameterTuningJob. - # @param [String] name - # Required. The name of the HyperparameterTuningJob resource to be deleted. - # Format: `projects/`project`/locations/`location`/hyperparameterTuningJobs/` - # hyperparameter_tuning_job`` + # Perform an online explanation. If deployed_model_id is specified, the + # corresponding DeployModel must have explanation_spec populated. If + # deployed_model_id is not specified, all DeployedModels must have + # explanation_spec populated. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the explanation. Format: + # `projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplainRequest] google_cloud_aiplatform_v1beta1_explain_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13611,29 +13961,32 @@ def create_project_location_hyperparameter_tuning_job(parent, google_cloud_aipla # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplainResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplainResponse] # # @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_hyperparameter_tuning_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + def explain_project_location_endpoint(endpoint, google_cloud_aiplatform_v1beta1_explain_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:explain', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplainRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_explain_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplainResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplainResponse + command.params['endpoint'] = endpoint unless endpoint.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 HyperparameterTuningJob - # @param [String] name - # Required. The name of the HyperparameterTuningJob resource. Format: `projects/` - # project`/locations/`location`/hyperparameterTuningJobs/` - # hyperparameter_tuning_job`` + # Fetch an asynchronous online prediction operation. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` + # project`/locations/`location`/publishers/`publisher`/models/`model`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest] google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13643,47 +13996,33 @@ def delete_project_location_hyperparameter_tuning_job(name, fields: nil, quota_u # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob] + # @return [Google::Apis::AiplatformV1beta1::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_hyperparameter_tuning_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob - command.params['name'] = name unless name.nil? + def fetch_project_location_endpoint_predict_operation(endpoint, google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:fetchPredictOperation', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['endpoint'] = endpoint unless endpoint.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 HyperparameterTuningJobs in a Location. - # @param [String] parent - # Required. The resource name of the Location to list the - # HyperparameterTuningJobs from. Format: `projects/`project`/locations/`location` - # ` - # @param [String] filter - # The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - # comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * ` - # create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` - # must be in RFC 3339 format. * `labels` supports general map functions that is: - # `labels.key=value` - key:value equality `labels.key:* - key existence Some - # examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND - # display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - # * `NOT display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` * ` - # labels.keyA=valueA` * `labels.keyB:*` - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. Typically obtained via - # ListHyperparameterTuningJobsResponse.next_page_token of the previous - # JobService.ListHyperparameterTuningJobs call. - # @param [String] read_mask - # Mask specifying which fields to read. + # Generate content with multimodal inputs. + # @param [String] model + # Required. The fully qualified name of the publisher model or tuned model + # endpoint to use. Publisher model format: `projects/`project`/locations/` + # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` + # project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13693,38 +14032,30 @@ def get_project_location_hyperparameter_tuning_job(name, fields: nil, quota_user # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] # # @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_hyperparameter_tuning_jobs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/hyperparameterTuningJobs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse - 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['readMask'] = read_mask unless read_mask.nil? + def generate_project_location_endpoint_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+model}:generateContent', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse + command.params['model'] = model unless model.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`. + # Gets an Endpoint. # @param [String] name - # The name of the operation resource to be cancelled. + # Required. The name of the Endpoint resource. Format: `projects/`project`/ + # locations/`location`/endpoints/`endpoint`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13734,30 +14065,41 @@ def list_project_location_hyperparameter_tuning_jobs(parent, filter: nil, page_s # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint] # # @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_hyperparameter_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def get_project_location_endpoint(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint 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. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The maximum policy version that will be used to format the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. Requests for policies with any conditional role bindings must + # specify version 3. Policies with no conditional role bindings may specify any + # valid value or leave the field unset. The policy in the response might use the + # policy version that you specified, or it might use a lower policy version. For + # example, if you specify version 3, but the policy has no conditional role + # bindings, the response uses version 1. To learn which resources support + # conditions in their IAM policies, see the [IAM documentation](https://cloud. + # google.com/iam/help/conditions/resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13767,28 +14109,51 @@ def cancel_project_location_hyperparameter_tuning_job_operation(name, fields: ni # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] # # @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_hyperparameter_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? + def get_project_location_endpoint_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.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. + # Lists Endpoints in a Location. + # @param [String] parent + # Required. The resource name of the Location from which to list the Endpoints. + # Format: `projects/`project`/locations/`location`` + # @param [String] filter + # Optional. An expression for filtering the results of the request. For field + # names both snake_case and camelCase are supported. * `endpoint` supports `=` + # and `!=`. `endpoint` represents the Endpoint ID, i.e. the last segment of the + # Endpoint's resource name. * `display_name` supports `=` and `!=`. * `labels` + # supports general map functions that is: * `labels.key=value` - key:value + # equality * `labels.key:*` or `labels:key` - key existence * A key including a + # space must be quoted. `labels."a key"`. * `base_model_name` only supports `=`. + # Some examples: * `endpoint=1` * `displayName="myDisplayName"` * `labels.myKey=" + # myValue"` * `baseModelName="text-bison"` + # @param [String] gdc_zone + # Optional. Configures the Google Distributed Cloud (GDC) environment for online + # prediction. Only set this field when the Endpoint is to be deployed in a GDC + # environment. + # @param [Fixnum] page_size + # Optional. The standard list page size. + # @param [String] page_token + # Optional. The standard list page token. Typically obtained via + # ListEndpointsResponse.next_page_token of the previous EndpointService. + # ListEndpoints call. + # @param [String] read_mask + # Optional. Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13798,41 +14163,38 @@ def delete_project_location_hyperparameter_tuning_job_operation(name, fields: ni # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEndpointsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEndpointsResponse] # # @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_hyperparameter_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + def list_project_location_endpoints(parent, filter: nil, gdc_zone: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/endpoints', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEndpointsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEndpointsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['gdcZone'] = gdc_zone unless gdc_zone.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['readMask'] = read_mask unless read_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 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 e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # Updates an existing deployed model. Updatable fields include ` + # min_replica_count`, `max_replica_count`, `required_replica_count`, ` + # autoscaling_metric_specs`, `disable_container_logging` (v1 only), and ` + # enable_container_logging` (v1beta1 only). + # @param [String] endpoint + # Required. The name of the Endpoint resource into which to mutate a + # DeployedModel. Format: `projects/`project`/locations/`location`/endpoints/` + # endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MutateDeployedModelRequest] google_cloud_aiplatform_v1beta1_mutate_deployed_model_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13842,42 +14204,33 @@ def get_project_location_hyperparameter_tuning_job_operation(name, fields: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_hyperparameter_tuning_job_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, 'v1beta1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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? + def mutate_project_location_endpoint_deployed_model(endpoint, google_cloud_aiplatform_v1beta1_mutate_deployed_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:mutateDeployedModel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MutateDeployedModelRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_mutate_deployed_model_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['endpoint'] = endpoint unless endpoint.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 - # 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. + # Updates an Endpoint. # @param [String] name - # 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. + # Output only. The resource name of the Endpoint. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint] google_cloud_aiplatform_v1beta1_endpoint_object + # @param [String] update_mask + # Required. The update mask applies to the resource. See google.protobuf. + # FieldMask. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13887,30 +14240,32 @@ def list_project_location_hyperparameter_tuning_job_operations(name, filter: nil # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint] # # @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_project_location_hyperparameter_tuning_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def patch_project_location_endpoint(name, google_cloud_aiplatform_v1beta1_endpoint_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint::Representation + command.request_object = google_cloud_aiplatform_v1beta1_endpoint_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Endpoint command.params['name'] = name unless name.nil? - command.query['timeout'] = timeout unless timeout.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 - # Creates an IndexEndpoint. - # @param [String] parent - # Required. The resource name of the Location to create the IndexEndpoint in. - # Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint] google_cloud_aiplatform_v1beta1_index_endpoint_object + # Perform an online prediction. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest] google_cloud_aiplatform_v1beta1_predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13920,30 +14275,32 @@ def wait_project_location_hyperparameter_tuning_job_operation(name, timeout: nil # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] # # @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_index_endpoint(parent, google_cloud_aiplatform_v1beta1_index_endpoint_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/indexEndpoints', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint::Representation - command.request_object = google_cloud_aiplatform_v1beta1_index_endpoint_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def predict_project_location_endpoint(endpoint, google_cloud_aiplatform_v1beta1_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:predict', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_predict_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse + command.params['endpoint'] = endpoint unless endpoint.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 an IndexEndpoint. - # @param [String] name - # Required. The name of the IndexEndpoint resource to be deleted. Format: ` - # projects/`project`/locations/`location`/indexEndpoints/`index_endpoint`` + # + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` + # project`/locations/`location`/publishers/`publisher`/models/`model`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest] google_cloud_aiplatform_v1beta1_predict_long_running_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13961,22 +14318,26 @@ def create_project_location_index_endpoint(parent, google_cloud_aiplatform_v1bet # @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_index_endpoint(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def predict_project_location_endpoint_long_running(endpoint, google_cloud_aiplatform_v1beta1_predict_long_running_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:predictLongRunning', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_predict_long_running_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + command.params['endpoint'] = endpoint unless endpoint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. - # @param [String] index_endpoint - # Required. The name of the IndexEndpoint resource into which to deploy an Index. - # Format: `projects/`project`/locations/`location`/indexEndpoints/` - # index_endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployIndexRequest] google_cloud_aiplatform_v1beta1_deploy_index_request_object + # Perform an online prediction with an arbitrary HTTP payload. The response + # includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the + # Endpoint that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of + # the Endpoint's DeployedModel that served this prediction. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RawPredictRequest] google_cloud_aiplatform_v1beta1_raw_predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -13986,31 +14347,32 @@ def delete_project_location_index_endpoint(name, fields: nil, quota_user: nil, o # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 deploy_project_location_index_endpoint_index(index_endpoint, google_cloud_aiplatform_v1beta1_deploy_index_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+indexEndpoint}:deployIndex', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployIndexRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_deploy_index_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['indexEndpoint'] = index_endpoint unless index_endpoint.nil? + def raw_project_location_endpoint_predict(endpoint, google_cloud_aiplatform_v1beta1_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:rawPredict', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RawPredictRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_raw_predict_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + command.params['endpoint'] = endpoint unless endpoint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Finds the nearest neighbors of each vector within the request. - # @param [String] index_endpoint - # Required. The name of the index endpoint. Format: `projects/`project`/ - # locations/`location`/indexEndpoints/`index_endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsRequest] google_cloud_aiplatform_v1beta1_find_neighbors_request_object + # Perform a server-side streaming online prediction request for Vertex LLM + # streaming. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictRequest] google_cloud_aiplatform_v1beta1_streaming_predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14020,30 +14382,34 @@ def deploy_project_location_index_endpoint_index(index_endpoint, google_cloud_ai # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse] # # @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 find_project_location_index_endpoint_neighbors(index_endpoint, google_cloud_aiplatform_v1beta1_find_neighbors_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+indexEndpoint}:findNeighbors', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_find_neighbors_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsResponse - command.params['indexEndpoint'] = index_endpoint unless index_endpoint.nil? + def server_project_location_endpoint_streaming_predict(endpoint, google_cloud_aiplatform_v1beta1_streaming_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:serverStreamingPredict', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_streaming_predict_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse + command.params['endpoint'] = endpoint unless endpoint.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 an IndexEndpoint. - # @param [String] name - # Required. The name of the IndexEndpoint resource. Format: `projects/`project`/ - # locations/`location`/indexEndpoints/`index_endpoint`` + # Sets the access control policy on the specified resource. Replaces any + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14053,47 +14419,33 @@ def find_project_location_index_endpoint_neighbors(index_endpoint, google_cloud_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint] + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] # # @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_index_endpoint(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint - command.params['name'] = name unless name.nil? + def set_project_location_endpoint_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation + command.request_object = google_iam_v1_set_iam_policy_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.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 IndexEndpoints in a Location. - # @param [String] parent - # Required. The resource name of the Location from which to list the - # IndexEndpoints. Format: `projects/`project`/locations/`location`` - # @param [String] filter - # Optional. An expression for filtering the results of the request. For field - # names both snake_case and camelCase are supported. * `index_endpoint` supports - # = and !=. `index_endpoint` represents the IndexEndpoint ID, ie. the last - # segment of the IndexEndpoint's resourcename. * `display_name` supports =, != - # and regex() (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax) * ` - # labels` supports general map functions that is: `labels.key=value` - key:value - # equality `labels.key:* or labels:key - key existence A key including a space - # must be quoted. `labels."a key"`. Some examples: * `index_endpoint="1"` * ` - # display_name="myDisplayName"` * `regex(display_name, "^A") -> The display name - # starts with an A. * `labels.myKey="myValue"` - # @param [Fixnum] page_size - # Optional. The standard list page size. - # @param [String] page_token - # Optional. The standard list page token. Typically obtained via - # ListIndexEndpointsResponse.next_page_token of the previous - # IndexEndpointService.ListIndexEndpoints call. - # @param [String] read_mask - # Optional. Mask specifying which fields to read. + # Generate content with multimodal inputs with streaming support. + # @param [String] model + # Required. The fully qualified name of the publisher model or tuned model + # endpoint to use. Publisher model format: `projects/`project`/locations/` + # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` + # project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14103,34 +14455,31 @@ def get_project_location_index_endpoint(name, fields: nil, quota_user: nil, opti # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] # # @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_index_endpoints(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/indexEndpoints', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse - 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['readMask'] = read_mask unless read_mask.nil? + def stream_project_location_endpoint_generate_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+model}:streamGenerateContent', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse + command.params['model'] = model unless model.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Update an existing DeployedIndex under an IndexEndpoint. - # @param [String] index_endpoint - # Required. The name of the IndexEndpoint resource into which to deploy an Index. - # Format: `projects/`project`/locations/`location`/indexEndpoints/` - # index_endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployedIndex] google_cloud_aiplatform_v1beta1_deployed_index_object + # 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`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamRawPredictRequest] google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14140,33 +14489,39 @@ def list_project_location_index_endpoints(parent, filter: nil, page_size: nil, p # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 mutate_project_location_index_endpoint_deployed_index(index_endpoint, google_cloud_aiplatform_v1beta1_deployed_index_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+indexEndpoint}:mutateDeployedIndex', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployedIndex::Representation - command.request_object = google_cloud_aiplatform_v1beta1_deployed_index_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['indexEndpoint'] = index_endpoint unless index_endpoint.nil? + def stream_project_location_endpoint_raw_predict(endpoint, google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:streamRawPredict', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamRawPredictRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + command.params['endpoint'] = endpoint unless endpoint.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 an IndexEndpoint. - # @param [String] name - # Output only. The resource name of the IndexEndpoint. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint] google_cloud_aiplatform_v1beta1_index_endpoint_object - # @param [String] update_mask - # Required. The update mask applies to the resource. See google.protobuf. - # FieldMask. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. See [ + # Resource names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Array, String] permissions + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as `*` or `storage.*`) are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14176,33 +14531,31 @@ def mutate_project_location_index_endpoint_deployed_index(index_endpoint, google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint] + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] # # @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_index_endpoint(name, google_cloud_aiplatform_v1beta1_index_endpoint_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint::Representation - command.request_object = google_cloud_aiplatform_v1beta1_index_endpoint_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint - command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? + def test_project_location_endpoint_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['permissions'] = permissions unless permissions.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints - # can be retrieved in a batch. - # @param [String] index_endpoint - # Required. The name of the index endpoint. Format: `projects/`project`/ - # locations/`location`/indexEndpoints/`index_endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest] google_cloud_aiplatform_v1beta1_read_index_datapoints_request_object + # Undeploys a Model from an Endpoint, removing a DeployedModel from it, and + # freeing all resources it's using. + # @param [String] endpoint + # Required. The name of the Endpoint resource from which to undeploy a Model. + # Format: `projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UndeployModelRequest] google_cloud_aiplatform_v1beta1_undeploy_model_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14212,33 +14565,30 @@ def patch_project_location_index_endpoint(name, google_cloud_aiplatform_v1beta1_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 read_project_location_index_endpoint_index_datapoints(index_endpoint, google_cloud_aiplatform_v1beta1_read_index_datapoints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+indexEndpoint}:readIndexDatapoints', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_read_index_datapoints_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse - command.params['indexEndpoint'] = index_endpoint unless index_endpoint.nil? + def undeploy_project_location_endpoint_model(endpoint, google_cloud_aiplatform_v1beta1_undeploy_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:undeployModel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UndeployModelRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_undeploy_model_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['endpoint'] = endpoint unless endpoint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, - # and freeing all resources it's using. - # @param [String] index_endpoint - # Required. The name of the IndexEndpoint resource from which to undeploy an - # Index. Format: `projects/`project`/locations/`location`/indexEndpoints/` - # index_endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UndeployIndexRequest] google_cloud_aiplatform_v1beta1_undeploy_index_request_object + # Updates an Endpoint with a long running operation. + # @param [String] name + # Output only. The resource name of the Endpoint. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest] google_cloud_aiplatform_v1beta1_update_endpoint_long_running_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14256,28 +14606,23 @@ def read_project_location_index_endpoint_index_datapoints(index_endpoint, google # @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 undeploy_project_location_index_endpoint_index(index_endpoint, google_cloud_aiplatform_v1beta1_undeploy_index_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+indexEndpoint}:undeployIndex', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UndeployIndexRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_undeploy_index_request_object + def update_project_location_endpoint(name, google_cloud_aiplatform_v1beta1_update_endpoint_long_running_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:update', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_update_endpoint_long_running_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['indexEndpoint'] = index_endpoint unless index_endpoint.nil? + 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. + # Exposes an OpenAI-compatible endpoint for chat completions. + # @param [String] endpoint + # Required. The name of the endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] google_api_http_body_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14287,30 +14632,36 @@ def undeploy_project_location_index_endpoint_index(index_endpoint, google_cloud_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::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 cancel_project_location_index_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? + def completions_project_location_endpoint_chat(endpoint, google_api_http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}/chat/completions', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.request_object = google_api_http_body_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + command.params['endpoint'] = endpoint unless endpoint.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. + # 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 [String] deployed_model_id + # ID of the DeployedModel that serves the invoke request. + # @param [String] invoke_id + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1InvokeRequest] google_cloud_aiplatform_v1beta1_invoke_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14320,28 +14671,36 @@ def cancel_project_location_index_endpoint_operation(name, fields: nil, quota_us # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::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 delete_project_location_index_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? + def invoke_project_location_endpoint_deployed_model_invoke(endpoint, deployed_model_id, invoke_id, google_cloud_aiplatform_v1beta1_invoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}/deployedModels/{deployedModelId}/invoke/{+invokeId}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1InvokeRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_invoke_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + command.params['endpoint'] = endpoint unless endpoint.nil? + command.params['deployedModelId'] = deployed_model_id unless deployed_model_id.nil? + command.params['invokeId'] = invoke_id unless invoke_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 - # 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. + # 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 [String] invoke_id + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1InvokeRequest] google_cloud_aiplatform_v1beta1_invoke_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14351,41 +14710,36 @@ def delete_project_location_index_endpoint_operation(name, fields: nil, quota_us # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_index_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + def invoke_project_location_endpoint_invoke(endpoint, invoke_id, google_cloud_aiplatform_v1beta1_invoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}/invoke/{+invokeId}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1InvokeRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_invoke_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + command.params['endpoint'] = endpoint unless endpoint.nil? + command.params['invokeId'] = invoke_id unless invoke_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 - # 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 e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # 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::AiplatformV1beta1::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 @@ -14395,42 +14749,37 @@ def get_project_location_index_endpoint_operation(name, fields: nil, quota_user: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 list_project_location_index_endpoint_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, 'v1beta1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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 + def embeddings_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, 'v1beta1/{+endpoint}/embeddings', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.request_object = google_api_http_body_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # 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. + # 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 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. + # 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 @@ -14440,30 +14789,30 @@ def list_project_location_index_endpoint_operations(name, filter: nil, page_size # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_index_endpoint_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def cancel_project_location_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty 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 - # Creates an Index. - # @param [String] parent - # Required. The resource name of the Location to create the Index in. Format: ` - # projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index] google_cloud_aiplatform_v1beta1_index_object + # 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 @@ -14473,31 +14822,28 @@ def wait_project_location_index_endpoint_operation(name, timeout: nil, fields: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_index(parent, google_cloud_aiplatform_v1beta1_index_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/indexes', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index::Representation - command.request_object = google_cloud_aiplatform_v1beta1_index_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def delete_project_location_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 an Index. An Index can only be deleted when all its DeployedIndexes - # had been undeployed. + # 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 - # Required. The name of the Index resource to be deleted. Format: `projects/` - # project`/locations/`location`/indexes/`index`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14515,8 +14861,8 @@ def create_project_location_index(parent, google_cloud_aiplatform_v1beta1_index_ # @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_index(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def get_project_location_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -14525,10 +14871,23 @@ def delete_project_location_index(name, fields: nil, quota_user: nil, options: n execute_or_queue_command(command, &block) end - # Gets an Index. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Required. The name of the Index resource. Format: `projects/`project`/ - # locations/`location`/indexes/`index`` + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -14538,29 +14897,42 @@ def delete_project_location_index(name, fields: nil, quota_user: nil, options: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_index(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index + def list_project_location_endpoint_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Imports an Index from an external source (e.g., BigQuery). + # 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 Index resource to import data to. Format: `projects/` - # project`/locations/`location`/indexes/`index`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportIndexRequest] google_cloud_aiplatform_v1beta1_import_index_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 @@ -14578,31 +14950,22 @@ def get_project_location_index(name, fields: nil, quota_user: nil, options: 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 import_project_location_index(name, google_cloud_aiplatform_v1beta1_import_index_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:import', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportIndexRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_import_index_request_object + def wait_project_location_endpoint_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::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 - # Lists Indexes in a Location. + # Creates an Evaluation Item. # @param [String] parent - # Required. The resource name of the Location from which to list the Indexes. + # Required. The resource name of the Location to create the Evaluation Item in. # Format: `projects/`project`/locations/`location`` - # @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. Typically obtained via ListIndexesResponse. - # next_page_token of the previous IndexService.ListIndexes call. - # @param [String] read_mask - # Mask specifying which fields to read. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem] google_cloud_aiplatform_v1beta1_evaluation_item_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14612,35 +14975,30 @@ def import_project_location_index(name, google_cloud_aiplatform_v1beta1_import_i # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem] # # @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_indexes(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/indexes', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexesResponse + def create_project_location_evaluation_item(parent, google_cloud_aiplatform_v1beta1_evaluation_item_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/evaluationItems', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem::Representation + command.request_object = google_cloud_aiplatform_v1beta1_evaluation_item_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem 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['readMask'] = read_mask unless read_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 - # Updates an Index. + # Deletes an Evaluation Item. # @param [String] name - # Output only. The resource name of the Index. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index] google_cloud_aiplatform_v1beta1_index_object - # @param [String] update_mask - # The update mask applies to the resource. For the `FieldMask` definition, see - # google.protobuf.FieldMask. + # Required. The name of the EvaluationItem resource to be deleted. Format: ` + # projects/`project`/locations/`location`/evaluationItems/`evaluation_item`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14658,58 +15016,20 @@ def list_project_location_indexes(parent, filter: nil, page_size: nil, page_toke # @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_index(name, google_cloud_aiplatform_v1beta1_index_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index::Representation - command.request_object = google_cloud_aiplatform_v1beta1_index_object + def delete_project_location_evaluation_item(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation 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 - # Remove Datapoints from an Index. - # @param [String] index - # Required. The name of the Index resource to be updated. Format: `projects/` - # project`/locations/`location`/indexes/`index`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveDatapointsRequest] google_cloud_aiplatform_v1beta1_remove_datapoints_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveDatapointsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveDatapointsResponse] - # - # @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 remove_project_location_index_datapoints(index, google_cloud_aiplatform_v1beta1_remove_datapoints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+index}:removeDatapoints', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveDatapointsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_remove_datapoints_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveDatapointsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveDatapointsResponse - command.params['index'] = index unless index.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Add/update Datapoints into an Index. - # @param [String] index - # Required. The name of the Index resource to be updated. Format: `projects/` - # project`/locations/`location`/indexes/`index`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertDatapointsRequest] google_cloud_aiplatform_v1beta1_upsert_datapoints_request_object + # Gets an Evaluation Item. + # @param [String] name + # Required. The name of the EvaluationItem resource. Format: `projects/`project`/ + # locations/`location`/evaluationItems/`evaluation_item`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14719,36 +15039,40 @@ def remove_project_location_index_datapoints(index, google_cloud_aiplatform_v1be # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertDatapointsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertDatapointsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem] # # @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 upsert_project_location_index_datapoints(index, google_cloud_aiplatform_v1beta1_upsert_datapoints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+index}:upsertDatapoints', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertDatapointsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_upsert_datapoints_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertDatapointsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertDatapointsResponse - command.params['index'] = index unless index.nil? + def get_project_location_evaluation_item(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem + 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. + # Lists Evaluation Items. + # @param [String] parent + # Required. The resource name of the Location from which to list the Evaluation + # Items. Format: `projects/`project`/locations/`location`` + # @param [String] filter + # Optional. Filter expression that matches a subset of the EvaluationItems to + # show. For field names both snake_case and camelCase are supported. For more + # information about filter syntax, see [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 by default. Use `desc` after a field name for descending. + # @param [Fixnum] page_size + # Optional. The maximum number of Evaluation Items to return. + # @param [String] page_token + # Optional. A page token, received from a previous `ListEvaluationItems` 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 @@ -14758,19 +15082,23 @@ def upsert_project_location_index_datapoints(index, google_cloud_aiplatform_v1be # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse] # # @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_index_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? + def list_project_location_evaluation_items(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, 'v1beta1/{+parent}/evaluationItems', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse + 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) @@ -14799,7 +15127,7 @@ def cancel_project_location_index_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_project_location_index_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_evaluation_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -14830,7 +15158,7 @@ def delete_project_location_index_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_project_location_index_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_evaluation_item_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -14874,7 +15202,7 @@ def get_project_location_index_operation(name, fields: nil, quota_user: nil, opt # @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_index_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_evaluation_item_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -14919,7 +15247,7 @@ def list_project_location_index_operations(name, filter: nil, page_size: nil, pa # @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_project_location_index_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_evaluation_item_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -14930,19 +15258,46 @@ def wait_project_location_index_operation(name, timeout: nil, fields: nil, quota execute_or_queue_command(command, &block) end - # Initializes a MetadataStore, including allocation of resources. + # Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run + # asynchronously. Status of run can be checked via GetEvaluationRun. + # @param [String] name + # Required. The name of the EvaluationRun resource to be cancelled. Format: ` + # projects/`project`/locations/`location`/evaluationRuns/`evaluation_run`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest] google_cloud_aiplatform_v1beta1_cancel_evaluation_run_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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_evaluation_run(name, google_cloud_aiplatform_v1beta1_cancel_evaluation_run_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_cancel_evaluation_run_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Creates an Evaluation Run. # @param [String] parent - # Required. The resource name of the Location where the MetadataStore should be - # created. Format: `projects/`project`/locations/`location`/` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataStore] google_cloud_aiplatform_v1beta1_metadata_store_object - # @param [String] metadata_store_id - # The `metadatastore` portion of the resource name with the format: `projects/` - # project`/locations/`location`/metadataStores/`metadatastore`` If not provided, - # the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 - # characters in length. Valid characters are `/a-z-/`. Must be unique across all - # MetadataStores in the parent Location. (Otherwise the request will fail with - # ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting - # MetadataStore.) + # Required. The resource name of the Location to create the Evaluation Run in. + # Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun] google_cloud_aiplatform_v1beta1_evaluation_run_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14952,34 +15307,30 @@ def wait_project_location_index_operation(name, timeout: nil, fields: nil, quota # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun] # # @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_metadata_store(parent, google_cloud_aiplatform_v1beta1_metadata_store_object = nil, metadata_store_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/metadataStores', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataStore::Representation - command.request_object = google_cloud_aiplatform_v1beta1_metadata_store_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def create_project_location_evaluation_run(parent, google_cloud_aiplatform_v1beta1_evaluation_run_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/evaluationRuns', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun::Representation + command.request_object = google_cloud_aiplatform_v1beta1_evaluation_run_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun command.params['parent'] = parent unless parent.nil? - command.query['metadataStoreId'] = metadata_store_id unless metadata_store_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 - # Deletes a single MetadataStore and all its child resources (Artifacts, - # Executions, and Contexts). + # Deletes an Evaluation Run. # @param [String] name - # Required. The resource name of the MetadataStore to delete. Format: `projects/` - # project`/locations/`location`/metadataStores/`metadatastore`` - # @param [Boolean] force - # Deprecated: Field is no longer supported. + # Required. The name of the EvaluationRun resource to be deleted. Format: ` + # projects/`project`/locations/`location`/evaluationRuns/`evaluation_run`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -14997,21 +15348,20 @@ def create_project_location_metadata_store(parent, google_cloud_aiplatform_v1bet # @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_metadata_store(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_evaluation_run(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? - command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Retrieves a specific MetadataStore. + # Gets an Evaluation Run. # @param [String] name - # Required. The resource name of the MetadataStore to retrieve. Format: ` - # projects/`project`/locations/`location`/metadataStores/`metadatastore`` + # Required. The name of the EvaluationRun resource. Format: `projects/`project`/ + # locations/`location`/evaluationRuns/`evaluation_run`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15021,36 +15371,40 @@ def delete_project_location_metadata_store(name, force: nil, fields: nil, quota_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataStore] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataStore] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun] # # @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_metadata_store(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_evaluation_run(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataStore::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataStore + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun 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 MetadataStores for a Location. + # Lists Evaluation Runs. # @param [String] parent - # Required. The Location whose MetadataStores should be listed. Format: ` - # projects/`project`/locations/`location`` + # Required. The resource name of the Location from which to list the Evaluation + # Runs. Format: `projects/`project`/locations/`location`` + # @param [String] filter + # Optional. Filter expression that matches a subset of the EvaluationRuns to + # show. For field names both snake_case and camelCase are supported. For more + # information about filter syntax, see [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 by default. Use `desc` after a field name for descending. # @param [Fixnum] page_size - # The maximum number of Metadata Stores to return. The service may return fewer. - # Must be in range 1-100, inclusive. Defaults to 100. + # Optional. The maximum number of Evaluation Runs to return. # @param [String] page_token - # A page token, received from a previous MetadataService.ListMetadataStores call. - # Provide this to retrieve the subsequent page. When paginating, all other - # provided parameters must match the call that provided the page token. ( - # Otherwise the request will fail with INVALID_ARGUMENT error.) + # Optional. A page token, received from a previous `ListEvaluationRuns` 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 @@ -15060,19 +15414,21 @@ def get_project_location_metadata_store(name, fields: nil, quota_user: nil, opti # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataStoresResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataStoresResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse] # # @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_metadata_stores(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/metadataStores', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataStoresResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataStoresResponse + def list_project_location_evaluation_runs(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, 'v1beta1/{+parent}/evaluationRuns', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse 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? @@ -15080,20 +15436,12 @@ def list_project_location_metadata_stores(parent, page_size: nil, page_token: ni execute_or_queue_command(command, &block) end - # Creates an Artifact associated with a MetadataStore. - # @param [String] parent - # Required. The resource name of the MetadataStore where the Artifact should be - # created. Format: `projects/`project`/locations/`location`/metadataStores/` - # metadatastore`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] google_cloud_aiplatform_v1beta1_artifact_object - # @param [String] artifact_id - # The `artifact` portion of the resource name with the format: `projects/` - # project`/locations/`location`/metadataStores/`metadatastore`/artifacts/` - # artifact`` If not provided, the Artifact's ID will be a UUID generated by the - # service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. - # Must be unique across all Artifacts in the parent MetadataStore. (Otherwise - # the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller - # can't view the preexisting Artifact.) + # 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 @@ -15103,36 +15451,28 @@ def list_project_location_metadata_stores(parent, page_size: nil, page_token: ni # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_metadata_store_artifact(parent, google_cloud_aiplatform_v1beta1_artifact_object = nil, artifact_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/artifacts', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact::Representation - command.request_object = google_cloud_aiplatform_v1beta1_artifact_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact - command.params['parent'] = parent unless parent.nil? - command.query['artifactId'] = artifact_id unless artifact_id.nil? + def delete_project_location_evaluation_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 an Artifact. + # 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 - # Required. The resource name of the Artifact to delete. Format: `projects/` - # project`/locations/`location`/metadataStores/`metadatastore`/artifacts/` - # artifact`` - # @param [String] etag - # Optional. The etag of the Artifact to delete. If this is provided, it must - # match the server's etag. Otherwise, the request will fail with a - # FAILED_PRECONDITION. + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15150,22 +15490,33 @@ def create_project_location_metadata_store_artifact(parent, google_cloud_aiplatf # @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_metadata_store_artifact(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def get_project_location_evaluation_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? - command.query['etag'] = etag unless etag.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Retrieves a specific Artifact. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Required. The resource name of the Artifact to retrieve. Format: `projects/` - # project`/locations/`location`/metadataStores/`metadatastore`/artifacts/` - # artifact`` + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -15175,61 +15526,182 @@ def delete_project_location_metadata_store_artifact(name, etag: nil, fields: nil # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_metadata_store_artifact(name, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_evaluation_run_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_evaluation_run_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Creates an Evaluation Set. + # @param [String] parent + # Required. The resource name of the Location to create the Evaluation Set in. + # Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] google_cloud_aiplatform_v1beta1_evaluation_set_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] + # + # @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_evaluation_set(parent, google_cloud_aiplatform_v1beta1_evaluation_set_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/evaluationSets', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation + command.request_object = google_cloud_aiplatform_v1beta1_evaluation_set_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet + 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 an Evaluation Set. + # @param [String] name + # Required. The name of the EvaluationSet resource to be deleted. Format: ` + # projects/`project`/locations/`location`/evaluationSets/`evaluation_set`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_evaluation_set(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 an Evaluation Set. + # @param [String] name + # Required. The name of the EvaluationSet resource. Format: `projects/`project`/ + # locations/`location`/evaluationSets/`evaluation_set`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] + # + # @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_evaluation_set(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet 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 Artifacts in the MetadataStore. + # Lists Evaluation Sets. # @param [String] parent - # Required. The MetadataStore whose Artifacts should be listed. Format: ` - # projects/`project`/locations/`location`/metadataStores/`metadatastore`` + # Required. The resource name of the Location from which to list the Evaluation + # Sets. Format: `projects/`project`/locations/`location`` # @param [String] filter - # Filter specifying the boolean condition for the Artifacts to satisfy in order - # to be part of the result set. The syntax to define filter query is based on - # https://google.aip.dev/160. The supported set of filters include the following: - # * **Attribute filtering**: For example: `display_name = "test"`. Supported - # fields include: `name`, `display_name`, `uri`, `state`, `schema_title`, ` - # create_time`, and `update_time`. Time fields, such as `create_time` and ` - # update_time`, require values specified in RFC-3339 format. For example: ` - # create_time = "2020-11-19T11:30:00-04:00"` * **Metadata field**: To filter on - # metadata fields use traversal operation as follows: `metadata..`. For example: - # `metadata.field_1.number_value = 10.0` In case the field name contains special - # characters (such as colon), one can embed it inside double quote. For example: - # `metadata."field:1".number_value = 10.0` * **Context based filtering**: To - # filter Artifacts based on the contexts to which they belong, use the function - # operator with the full resource name `in_context()`. For example: `in_context(" - # projects//locations//metadataStores//contexts/")` Each of the above supported - # filter types can be combined together using logical operators (`AND` & `OR`). - # Maximum nested expression depth allowed is 5. For example: `display_name = " - # test" AND metadata.field1.bool_value = true`. + # Optional. Filter expression that matches a subset of the EvaluationSets to + # show. For field names both snake_case and camelCase are supported. For more + # information about filter syntax, see [AIP-160](https://google.aip.dev/160). # @param [String] order_by - # How the list of messages is ordered. Specify the values to order by and an - # ordering operation. The default sorting order is ascending. To specify - # descending order for a field, users append a " desc" suffix; for example: "foo - # desc, bar". Subfields are specified with a `.` character, such as foo.bar. see - # https://google.aip.dev/132#ordering for more details. + # Optional. A comma-separated list of fields to order by, sorted in ascending + # order by default. Use `desc` after a field name for descending. # @param [Fixnum] page_size - # The maximum number of Artifacts to return. The service may return fewer. Must - # be in range 1-100, inclusive. Defaults to 100. + # Optional. The maximum number of Evaluation Sets to return. # @param [String] page_token - # A page token, received from a previous MetadataService.ListArtifacts call. - # Provide this to retrieve the subsequent page. When paginating, all other - # provided parameters must match the call that provided the page token. ( - # Otherwise the request will fail with INVALID_ARGUMENT error.) + # Optional. A page token, received from a previous `ListEvaluationSets` 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 @@ -15239,18 +15711,18 @@ def get_project_location_metadata_store_artifact(name, fields: nil, quota_user: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListArtifactsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListArtifactsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse] # # @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_metadata_store_artifacts(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, 'v1beta1/{+parent}/artifacts', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListArtifactsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListArtifactsResponse + def list_project_location_evaluation_sets(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, 'v1beta1/{+parent}/evaluationSets', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? @@ -15261,14 +15733,14 @@ def list_project_location_metadata_store_artifacts(parent, filter: nil, order_by execute_or_queue_command(command, &block) end - # Updates a stored Artifact. + # Updates an Evaluation Set. # @param [String] name - # Output only. The resource name of the Artifact. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] google_cloud_aiplatform_v1beta1_artifact_object - # @param [Boolean] allow_missing - # If set to true, and the Artifact is not found, a new Artifact is created. + # Identifier. The resource name of the EvaluationSet. Format: `projects/`project` + # /locations/`location`/evaluationSets/`evaluation_set`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] google_cloud_aiplatform_v1beta1_evaluation_set_object # @param [String] update_mask - # Optional. A FieldMask indicating which fields should be updated. + # Optional. The update mask applies to the resource. For the `FieldMask` + # definition, see google.protobuf.FieldMask. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15278,33 +15750,64 @@ def list_project_location_metadata_store_artifacts(parent, filter: nil, order_by # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] # # @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_metadata_store_artifact(name, google_cloud_aiplatform_v1beta1_artifact_object = nil, allow_missing: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_project_location_evaluation_set(name, google_cloud_aiplatform_v1beta1_evaluation_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact::Representation - command.request_object = google_cloud_aiplatform_v1beta1_artifact_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation + command.request_object = google_cloud_aiplatform_v1beta1_evaluation_set_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet command.params['name'] = name unless name.nil? - command.query['allowMissing'] = allow_missing unless allow_missing.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 - # Purges Artifacts. - # @param [String] parent - # Required. The metadata store to purge Artifacts from. Format: `projects/` - # project`/locations/`location`/metadataStores/`metadatastore`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeArtifactsRequest] google_cloud_aiplatform_v1beta1_purge_artifacts_request_object + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_evaluation_set_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 @@ -15322,48 +15825,33 @@ def patch_project_location_metadata_store_artifact(name, google_cloud_aiplatform # @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 purge_project_location_metadata_store_artifact(parent, google_cloud_aiplatform_v1beta1_purge_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/artifacts:purge', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeArtifactsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_purge_artifacts_request_object + def get_project_location_evaluation_set_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + 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 - # Retrieves lineage of an Artifact represented through Artifacts and Executions - # connected by Event edges and returned as a LineageSubgraph. - # @param [String] artifact - # Required. The resource name of the Artifact whose Lineage needs to be - # retrieved as a LineageSubgraph. Format: `projects/`project`/locations/` - # location`/metadataStores/`metadatastore`/artifacts/`artifact`` The request may - # error with FAILED_PRECONDITION if the number of Artifacts, the number of - # Executions, or the number of Events that would be returned for the Context - # exceeds 1000. + # 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 - # Filter specifying the boolean condition for the Artifacts to satisfy in order - # to be part of the Lineage Subgraph. The syntax to define filter query is based - # on https://google.aip.dev/160. The supported set of filters include the - # following: * **Attribute filtering**: For example: `display_name = "test"` - # Supported fields include: `name`, `display_name`, `uri`, `state`, ` - # schema_title`, `create_time`, and `update_time`. Time fields, such as ` - # create_time` and `update_time`, require values specified in RFC-3339 format. - # For example: `create_time = "2020-11-19T11:30:00-04:00"` * **Metadata field**: - # To filter on metadata fields use traversal operation as follows: `metadata..`. - # For example: `metadata.field_1.number_value = 10.0` In case the field name - # contains special characters (such as colon), one can embed it inside double - # quote. For example: `metadata."field:1".number_value = 10.0` Each of the above - # supported filter types can be combined together using logical operators (`AND` - # & `OR`). Maximum nested expression depth allowed is 5. For example: ` - # display_name = "test" AND metadata.field1.bool_value = true`. - # @param [Fixnum] max_hops - # Specifies the size of the lineage graph in terms of number of hops from the - # specified artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only - # input artifact is returned. No value: Transitive closure is performed to - # return the complete graph. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -15373,36 +15861,42 @@ def purge_project_location_metadata_store_artifact(parent, google_cloud_aiplatfo # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph] + # @return [Google::Apis::AiplatformV1beta1::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_project_location_metadata_store_artifact_artifact_lineage_subgraph(artifact, filter: nil, max_hops: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+artifact}:queryArtifactLineageSubgraph', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph - command.params['artifact'] = artifact unless artifact.nil? + def list_project_location_evaluation_set_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse + command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? - command.query['maxHops'] = max_hops unless max_hops.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 - # 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`. + # 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 resource to be cancelled. + # 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 @@ -15412,19 +15906,20 @@ def query_project_location_metadata_store_artifact_artifact_lineage_subgraph(art # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::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 cancel_project_location_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def wait_project_location_evaluation_set_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -15453,7 +15948,7 @@ def cancel_project_location_metadata_store_artifact_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_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_evaluation_task_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -15484,7 +15979,7 @@ def delete_project_location_metadata_store_artifact_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_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_evaluation_task_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -15528,7 +16023,7 @@ def get_project_location_metadata_store_artifact_operation(name, fields: nil, qu # @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_metadata_store_artifact_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_evaluation_task_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -15573,7 +16068,7 @@ def list_project_location_metadata_store_artifact_operations(name, filter: 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 wait_project_location_metadata_store_artifact_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_evaluation_task_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -15584,13 +16079,24 @@ def wait_project_location_metadata_store_artifact_operation(name, timeout: nil, execute_or_queue_command(command, &block) end - # Adds a set of Artifacts and Executions to a Context. If any of the Artifacts - # or Executions have already been added to a Context, they are simply skipped. - # @param [String] context - # Required. The resource name of the Context that the Artifacts and Executions - # belong to. Format: `projects/`project`/locations/`location`/metadataStores/` - # metadatastore`/contexts/`context`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest] google_cloud_aiplatform_v1beta1_add_context_artifacts_and_executions_request_object + # Create an ExampleStore. + # @param [String] parent + # Required. The resource name of the Location to create the ExampleStore in. + # Format: `projects/`project`/locations/`location`` + # @param [String] example_store_create_time + # Output only. Timestamp when this ExampleStore was created. + # @param [String] example_store_description + # Optional. Description of the ExampleStore. + # @param [String] example_store_display_name + # Required. Display name of the ExampleStore. + # @param [String] example_store_example_store_config_vertex_embedding_model + # Required. The embedding model to be used for vector embedding. Immutable. + # Supported models: * "text-embedding-005" * "text-multilingual-embedding-002" + # @param [String] example_store_name + # Identifier. The resource name of the ExampleStore. This is a unique identifier. + # Format: projects/`project`/locations/`location`/exampleStores/`example_store` + # @param [String] example_store_update_time + # Output only. Timestamp when this ExampleStore was most recently updated. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15600,34 +16106,34 @@ def wait_project_location_metadata_store_artifact_operation(name, timeout: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 add_project_location_metadata_store_context_context_artifacts_and_executions(context, google_cloud_aiplatform_v1beta1_add_context_artifacts_and_executions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+context}:addContextArtifactsAndExecutions', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_add_context_artifacts_and_executions_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse - command.params['context'] = context unless context.nil? + def create_project_location_example_store(parent, example_store_create_time: nil, example_store_description: nil, example_store_display_name: nil, example_store_example_store_config_vertex_embedding_model: nil, example_store_name: nil, example_store_update_time: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/exampleStores:create', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['exampleStore.createTime'] = example_store_create_time unless example_store_create_time.nil? + command.query['exampleStore.description'] = example_store_description unless example_store_description.nil? + command.query['exampleStore.displayName'] = example_store_display_name unless example_store_display_name.nil? + command.query['exampleStore.exampleStoreConfig.vertexEmbeddingModel'] = example_store_example_store_config_vertex_embedding_model unless example_store_example_store_config_vertex_embedding_model.nil? + command.query['exampleStore.name'] = example_store_name unless example_store_name.nil? + command.query['exampleStore.updateTime'] = example_store_update_time unless example_store_update_time.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Adds a set of Contexts as children to a parent Context. If any of the child - # Contexts have already been added to the parent Context, they are simply - # skipped. If this call would create a cycle or cause any Context to have more - # than 10 parents, the request will fail with an INVALID_ARGUMENT error. - # @param [String] context - # Required. The resource name of the parent Context. Format: `projects/`project`/ - # locations/`location`/metadataStores/`metadatastore`/contexts/`context`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextChildrenRequest] google_cloud_aiplatform_v1beta1_add_context_children_request_object + # Delete an ExampleStore. + # @param [String] name + # Required. The resource name of the ExampleStore to be deleted. Format: ` + # projects/`project`/locations/`location`/exampleStores/`example_store`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15637,40 +16143,30 @@ def add_project_location_metadata_store_context_context_artifacts_and_executions # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextChildrenResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextChildrenResponse] + # @return [Google::Apis::AiplatformV1beta1::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 add_project_location_metadata_store_context_context_children(context, google_cloud_aiplatform_v1beta1_add_context_children_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+context}:addContextChildren', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextChildrenRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_add_context_children_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextChildrenResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextChildrenResponse - command.params['context'] = context unless context.nil? + def delete_project_location_example_store(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Creates a Context associated with a MetadataStore. - # @param [String] parent - # Required. The resource name of the MetadataStore where the Context should be - # created. Format: `projects/`project`/locations/`location`/metadataStores/` - # metadatastore`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] google_cloud_aiplatform_v1beta1_context_object - # @param [String] context_id - # The `context` portion of the resource name with the format: `projects/`project` - # /locations/`location`/metadataStores/`metadatastore`/contexts/`context``. If - # not provided, the Context's ID will be a UUID generated by the service. Must - # be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique - # across all Contexts in the parent MetadataStore. (Otherwise the request will - # fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the - # preexisting Context.) + # Get Examples from the Example Store. + # @param [String] example_store + # Required. The name of the ExampleStore resource that the examples should be + # fetched from. Format: `projects/`project`/locations/`location`/exampleStores/` + # example_store`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesRequest] google_cloud_aiplatform_v1beta1_fetch_examples_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15680,39 +16176,11194 @@ def add_project_location_metadata_store_context_context_children(context, google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesResponse] + # + # @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 fetch_project_location_example_store_examples(example_store, google_cloud_aiplatform_v1beta1_fetch_examples_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+exampleStore}:fetchExamples', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_fetch_examples_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchExamplesResponse + command.params['exampleStore'] = example_store unless example_store.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Get an ExampleStore. + # @param [String] name + # Required. The resource name of the ExampleStore. Format: `projects/`project`/ + # locations/`location`/exampleStores/`example_store`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore] + # + # @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_example_store(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore + 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 + + # List ExampleStores in a Location. + # @param [String] parent + # Required. The resource name of the Location to list the ExampleStores from. + # Format: `projects/`project`/locations/`location`` + # @param [String] filter + # Optional. The standard list filter. More detail in [AIP-160](https://google. + # aip.dev/160). + # @param [Fixnum] page_size + # Optional. The standard list page size. + # @param [String] page_token + # Optional. The standard list page token. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExampleStoresResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExampleStoresResponse] + # + # @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_example_stores(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/exampleStores', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExampleStoresResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExampleStoresResponse + 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 + + # Update an ExampleStore. + # @param [String] name + # Identifier. The resource name of the ExampleStore. This is a unique identifier. + # Format: projects/`project`/locations/`location`/exampleStores/`example_store` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore] google_cloud_aiplatform_v1beta1_example_store_object + # @param [String] update_mask + # Optional. Mask specifying which fields to update. Supported fields: * ` + # display_name` * `description` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_example_store(name, google_cloud_aiplatform_v1beta1_example_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExampleStore::Representation + command.request_object = google_cloud_aiplatform_v1beta1_example_store_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + 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 + + # Remove Examples from the Example Store. + # @param [String] example_store + # Required. The name of the ExampleStore resource that the examples should be + # removed from. Format: `projects/`project`/locations/`location`/exampleStores/` + # example_store`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesRequest] google_cloud_aiplatform_v1beta1_remove_examples_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesResponse] + # + # @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 remove_project_location_example_store_examples(example_store, google_cloud_aiplatform_v1beta1_remove_examples_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+exampleStore}:removeExamples', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_remove_examples_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveExamplesResponse + command.params['exampleStore'] = example_store unless example_store.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Search for similar Examples for given selection criteria. + # @param [String] example_store + # Required. The name of the ExampleStore resource that examples are retrieved + # from. Format: `projects/`project`/locations/`location`/exampleStores/` + # example_store`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesRequest] google_cloud_aiplatform_v1beta1_search_examples_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponse] + # + # @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 search_project_location_example_store_examples(example_store, google_cloud_aiplatform_v1beta1_search_examples_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+exampleStore}:searchExamples', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_search_examples_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchExamplesResponse + command.params['exampleStore'] = example_store unless example_store.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Create or update Examples in the Example Store. + # @param [String] example_store + # Required. The name of the ExampleStore resource that examples are added to or + # updated in. Format: `projects/`project`/locations/`location`/exampleStores/` + # example_store`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesRequest] google_cloud_aiplatform_v1beta1_upsert_examples_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesResponse] + # + # @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 upsert_project_location_example_store_examples(example_store, google_cloud_aiplatform_v1beta1_upsert_examples_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+exampleStore}:upsertExamples', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_upsert_examples_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertExamplesResponse + command.params['exampleStore'] = example_store unless example_store.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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_example_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_example_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_example_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_example_store_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_example_store_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_extension_controller_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_extension_controller_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_extension_controller_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_extension_controller_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_extension_controller_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Deletes an Extension. + # @param [String] name + # Required. The name of the Extension resource to be deleted. Format: `projects/` + # project`/locations/`location`/extensions/`extension`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_extension(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 the request against a given extension. + # @param [String] name + # Required. Name (identifier) of the extension; Format: `projects/`project`/ + # locations/`location`/extensions/`extension`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionRequest] google_cloud_aiplatform_v1beta1_execute_extension_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionResponse] + # + # @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_extension(name, google_cloud_aiplatform_v1beta1_execute_extension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:execute', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_execute_extension_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionResponse + 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 an Extension. + # @param [String] name + # Required. The name of the Extension resource. Format: `projects/`project`/ + # locations/`location`/extensions/`extension`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] + # + # @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_extension(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension + 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 + + # Imports an Extension. + # @param [String] parent + # Required. The resource name of the Location to import the Extension in. Format: + # `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] google_cloud_aiplatform_v1beta1_extension_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 import_project_location_extension(parent, google_cloud_aiplatform_v1beta1_extension_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/extensions:import', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation + command.request_object = google_cloud_aiplatform_v1beta1_extension_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Lists Extensions in a location. + # @param [String] parent + # Required. The resource name of the Location to list the Extensions from. + # Format: `projects/`project`/locations/`location`` + # @param [String] filter + # Optional. The standard list filter. Supported fields: * `display_name` * ` + # create_time` * `update_time` 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: * ` + # display_name` * `create_time` * `update_time` Example: `display_name, + # create_time desc`. + # @param [Fixnum] page_size + # Optional. The standard list page size. + # @param [String] page_token + # Optional. The standard list page token. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse] + # + # @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_extensions(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, 'v1beta1/{+parent}/extensions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse + 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 an Extension. + # @param [String] name + # Identifier. The resource name of the Extension. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] google_cloud_aiplatform_v1beta1_extension_object + # @param [String] update_mask + # Required. Mask specifying which fields to update. Supported fields: * ` + # display_name` * `description` * `runtime_config` * `tool_use_examples` * ` + # manifest.description` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] + # + # @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_extension(name, google_cloud_aiplatform_v1beta1_extension_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation + command.request_object = google_cloud_aiplatform_v1beta1_extension_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension + 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 + + # Queries an extension with a default controller. + # @param [String] name + # Required. Name (identifier) of the extension; Format: `projects/`project`/ + # locations/`location`/extensions/`extension`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionRequest] google_cloud_aiplatform_v1beta1_query_extension_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse] + # + # @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_project_location_extension(name, google_cloud_aiplatform_v1beta1_query_extension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:query', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_query_extension_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse + 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_extension_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_extension_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_extension_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_extension_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_extension_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Creates a new FeatureGroup in a given project and location. + # @param [String] parent + # Required. The resource name of the Location to create FeatureGroups. Format: ` + # projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup] google_cloud_aiplatform_v1beta1_feature_group_object + # @param [String] feature_group_id + # Required. The ID to use for this FeatureGroup, which will become the final + # component of the FeatureGroup's resource name. This value may be up to 128 + # characters, and valid characters are `[a-z0-9_]`. The first character cannot + # be a number. The value must be unique within the project and location. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group(parent, google_cloud_aiplatform_v1beta1_feature_group_object = nil, feature_group_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/featureGroups', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup::Representation + command.request_object = google_cloud_aiplatform_v1beta1_feature_group_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['featureGroupId'] = feature_group_id unless feature_group_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 + + # Deletes a single FeatureGroup. + # @param [String] name + # Required. The name of the FeatureGroup to be deleted. Format: `projects/` + # project`/locations/`location`/featureGroups/`feature_group`` + # @param [Boolean] force + # If set to true, any Features under this FeatureGroup will also be deleted. ( + # Otherwise, the request will only work if the FeatureGroup has no Features.) + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.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 a single FeatureGroup. + # @param [String] name + # Required. The name of the FeatureGroup 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup] + # + # @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_feature_group(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup + 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 access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The maximum policy version that will be used to format the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. Requests for policies with any conditional role bindings must + # specify version 3. Policies with no conditional role bindings may specify any + # valid value or leave the field unset. The policy in the response might use the + # policy version that you specified, or it might use a lower policy version. For + # example, if you specify version 3, but the policy has no conditional role + # bindings, the response uses version 1. To learn which resources support + # conditions in their IAM policies, see the [IAM documentation](https://cloud. + # google.com/iam/help/conditions/resource-policies). + # @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::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # + # @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_feature_group_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.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 FeatureGroups in a given project and location. + # @param [String] parent + # Required. The resource name of the Location to list FeatureGroups. Format: ` + # projects/`project`/locations/`location`` + # @param [String] filter + # Lists the FeatureGroups that match the filter expression. The following fields + # are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` + # comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, + # `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. + # * `labels`: Supports key-value equality and key presence. Examples: * ` + # create_time > "2020-01-01" OR update_time > "2020-01-01"` FeatureGroups + # created or updated after 2020-01-01. * `labels.env = "prod"` FeatureGroups + # with label "env" set to "prod". + # @param [String] order_by + # 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` + # @param [Fixnum] page_size + # The maximum number of FeatureGroups to return. The service may return fewer + # than this value. If unspecified, at most 100 FeatureGroups will be returned. + # The maximum value is 100; any value greater than 100 will be coerced to 100. + # @param [String] page_token + # A page token, received from a previous FeatureRegistryService. + # ListFeatureGroups call. Provide this to retrieve the subsequent page. When + # paginating, all other parameters provided to FeatureRegistryService. + # ListFeatureGroups must match the call that provided the page token. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse] + # + # @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_feature_groups(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, 'v1beta1/{+parent}/featureGroups', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse + 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 parameters of a single FeatureGroup. + # @param [String] name + # Identifier. Name of the FeatureGroup. Format: `projects/`project`/locations/` + # location`/featureGroups/`featureGroup`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup] google_cloud_aiplatform_v1beta1_feature_group_object + # @param [String] update_mask + # Field mask is used to specify the fields to be overwritten in the FeatureGroup + # resource by the update. The fields specified in the update_mask are relative + # to the resource, not the full request. A field will be overwritten if it is in + # the mask. If the user does not provide a mask then only the non-empty fields + # present in the request will be overwritten. Set the update_mask to `*` to + # override all fields. Updatable fields: * `labels` * `description` * `big_query` + # * `big_query.entity_id_columns` * `service_agent_type` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_feature_group(name, google_cloud_aiplatform_v1beta1_feature_group_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureGroup::Representation + command.request_object = google_cloud_aiplatform_v1beta1_feature_group_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + 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 + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_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::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # + # @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 set_project_location_feature_group_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation + command.request_object = google_iam_v1_set_iam_policy_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. See [ + # Resource names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Array, String] permissions + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as `*` or `storage.*`) are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). + # @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::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] + # + # @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 test_project_location_feature_group_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['permissions'] = permissions unless permissions.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 FeatureMonitor in a given project, location and FeatureGroup. + # @param [String] parent + # Required. The resource name of FeatureGroup to create FeatureMonitor. Format: ` + # projects/`project`/locations/`location`/featureGroups/`featuregroup`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor] google_cloud_aiplatform_v1beta1_feature_monitor_object + # @param [String] feature_monitor_id + # Required. The ID to use for this FeatureMonitor, which will become the final + # component of the FeatureGroup's resource name. This value may be up to 60 + # characters, and valid characters are `[a-z0-9_]`. The first character cannot + # be a number. The value must be unique within the FeatureGroup. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group_feature_monitor(parent, google_cloud_aiplatform_v1beta1_feature_monitor_object = nil, feature_monitor_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/featureMonitors', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor::Representation + command.request_object = google_cloud_aiplatform_v1beta1_feature_monitor_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['featureMonitorId'] = feature_monitor_id unless feature_monitor_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 + + # Deletes a single FeatureMonitor. + # @param [String] name + # Required. The name of the FeatureMonitor to be deleted. Format: `projects/` + # project`/locations/`location`/featureGroups/`feature_group`/featureMonitors/` + # feature_monitor`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group_feature_monitor(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a single FeatureMonitor. + # @param [String] name + # Required. The name of the FeatureMonitor 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor] + # + # @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_feature_group_feature_monitor(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor + 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 FeatureGroups in a given project and location. + # @param [String] parent + # Required. The resource name of the FeatureGroup to list FeatureMonitors. + # Format: `projects/`project`/locations/`location`/featureGroups/`featureGroup`` + # @param [String] filter + # Optional. Lists the FeatureMonitors that match the filter expression. The + # following fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, + # `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * `update_time`: + # Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in + # RFC 3339 format. * `labels`: Supports key-value equality and key presence. + # Examples: * `create_time > "2020-01-01" OR update_time > "2020-01-01"` + # FeatureMonitors created or updated after 2020-01-01. * `labels.env = "prod"` + # FeatureGroups with label "env" set to "prod". + # @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` + # @param [Fixnum] page_size + # Optional. The maximum number of FeatureGroups to return. The service may + # return fewer than this value. If unspecified, at most 100 FeatureMonitors will + # be returned. The maximum value is 100; any value greater than 100 will be + # coerced to 100. + # @param [String] page_token + # Optional. A page token, received from a previous FeatureRegistryService. + # ListFeatureMonitors call. Provide this to retrieve the subsequent page. When + # paginating, all other parameters provided to FeatureRegistryService. + # ListFeatureMonitors must match the call that provided the page token. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse] + # + # @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_feature_group_feature_monitors(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, 'v1beta1/{+parent}/featureMonitors', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse + 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 parameters of a single FeatureMonitor. + # @param [String] name + # Identifier. Name of the FeatureMonitor. Format: `projects/`project`/locations/` + # location`/featureGroups/`featureGroup`/featureMonitors/`featureMonitor`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor] google_cloud_aiplatform_v1beta1_feature_monitor_object + # @param [String] update_mask + # Optional. Field mask is used to specify the fields to be overwritten in the + # FeatureMonitor resource by the update. The fields specified in the update_mask + # are relative to the resource, not the full request. A field will be + # overwritten if it is in the mask. If the user does not provide a mask then + # only the non-empty fields present in the request will be overwritten. Set the + # update_mask to `*` to override all fields. Updatable fields: * `labels` * ` + # description` * `schedule_config` * `feature_selection_config` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_feature_group_feature_monitor(name, google_cloud_aiplatform_v1beta1_feature_monitor_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitor::Representation + command.request_object = google_cloud_aiplatform_v1beta1_feature_monitor_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + 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 + + # Creates a new feature monitor job. + # @param [String] parent + # Required. The resource name of FeatureMonitor to create FeatureMonitorJob. + # Format: `projects/`project`/locations/`location`/featureGroups/`feature_group`/ + # featureMonitors/`feature_monitor`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob] google_cloud_aiplatform_v1beta1_feature_monitor_job_object + # @param [Fixnum] feature_monitor_job_id + # Optional. Output only. System-generated ID for feature monitor job. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob] + # + # @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_feature_group_feature_monitor_feature_monitor_job(parent, google_cloud_aiplatform_v1beta1_feature_monitor_job_object = nil, feature_monitor_job_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/featureMonitorJobs', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob::Representation + command.request_object = google_cloud_aiplatform_v1beta1_feature_monitor_job_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob + command.params['parent'] = parent unless parent.nil? + command.query['featureMonitorJobId'] = feature_monitor_job_id unless feature_monitor_job_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 + + # Get a feature monitor job. + # @param [String] name + # Required. The name of the FeatureMonitorJob resource. Format: `projects/` + # project`/locations/`location`/featureGroups/`feature_group`/featureMonitors/` + # feature_monitor`/featureMonitorJobs/`feature_monitor_job`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob] + # + # @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_feature_group_feature_monitor_feature_monitor_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureMonitorJob + 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 + + # List feature monitor jobs. + # @param [String] parent + # Required. The resource name of the FeatureMonitor to list FeatureMonitorJobs. + # Format: `projects/`project`/locations/`location`/featureGroups/`feature_group`/ + # featureMonitors/`feature_monitor`` + # @param [String] filter + # Optional. Lists the FeatureMonitorJobs that match the filter expression. The + # following fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, + # `<=`, and `>=` comparisons. Values must be Examples: * `create_time > "2020-01- + # 01"` FeatureMonitorJobs created after 2020-01-01. + # @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` + # @param [Fixnum] page_size + # Optional. The maximum number of FeatureMonitorJobs to return. The service may + # return fewer than this value. If unspecified, at most 100 FeatureMonitorJobs + # will be returned. The maximum value is 100; any value greater than 100 will be + # coerced to 100. + # @param [String] page_token + # Optional. A page token, received from a previous FeatureRegistryService. + # ListFeatureMonitorJobs call. Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to FeatureRegistryService. + # ListFeatureMonitorJobs must match the call that provided the page token. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse] + # + # @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_feature_group_feature_monitor_feature_monitor_jobs(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, 'v1beta1/{+parent}/featureMonitorJobs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse + 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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group_feature_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group_feature_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group_feature_monitor_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_feature_group_feature_monitor_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Creates a batch of Features in a given FeatureGroup. + # @param [String] parent + # Required. The resource name of the EntityType/FeatureGroup to create the batch + # of Features under. Format: `projects/`project`/locations/`location`/ + # featurestores/`featurestore`/entityTypes/`entity_type`` `projects/`project`/ + # locations/`location`/featureGroups/`feature_group`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest] google_cloud_aiplatform_v1beta1_batch_create_features_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 batch_project_location_feature_group_feature_create(parent, google_cloud_aiplatform_v1beta1_batch_create_features_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/features:batchCreate', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_batch_create_features_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Creates a new Feature in a given FeatureGroup. + # @param [String] parent + # Required. The resource name of the EntityType or FeatureGroup to create a + # Feature. Format for entity_type as parent: `projects/`project`/locations/` + # location`/featurestores/`featurestore`/entityTypes/`entity_type`` Format for + # feature_group as parent: `projects/`project`/locations/`location`/ + # featureGroups/`feature_group`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] google_cloud_aiplatform_v1beta1_feature_object + # @param [String] feature_id + # Required. The ID to use for the Feature, which will become the final component + # of the Feature's resource name. This value may be up to 128 characters, and + # valid characters are `[a-z0-9_]`. The first character cannot be a number. The + # value must be unique within an EntityType/FeatureGroup. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group_feature(parent, google_cloud_aiplatform_v1beta1_feature_object = nil, feature_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/features', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature::Representation + command.request_object = google_cloud_aiplatform_v1beta1_feature_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['featureId'] = feature_id unless feature_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 + + # Deletes a single Feature. + # @param [String] name + # Required. The name of the Features to be deleted. Format: `projects/`project`/ + # locations/`location`/featurestores/`featurestore`/entityTypes/`entity_type`/ + # features/`feature`` `projects/`project`/locations/`location`/featureGroups/` + # feature_group`/features/`feature`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group_feature(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a single Feature. + # @param [String] name + # Required. The name of the Feature resource. Format for entity_type as parent: ` + # projects/`project`/locations/`location`/featurestores/`featurestore`/ + # entityTypes/`entity_type`` Format for feature_group as parent: `projects/` + # project`/locations/`location`/featureGroups/`feature_group`` + # @param [Fixnum] feature_stats_and_anomaly_spec_latest_stats_count + # Optional. If set, returns the most recent count of stats. Valid value is [0, + # 100]. If stats_time_range is set, return most recent count of stats within the + # stats_time_range. + # @param [String] feature_stats_and_anomaly_spec_stats_time_range_end_time + # Optional. Exclusive end of the interval. If specified, a Timestamp matching + # this interval will have to be before the end. + # @param [String] feature_stats_and_anomaly_spec_stats_time_range_start_time + # Optional. Inclusive start of the interval. If specified, a Timestamp matching + # this interval will have to be the same or after the start. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] + # + # @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_feature_group_feature(name, feature_stats_and_anomaly_spec_latest_stats_count: nil, feature_stats_and_anomaly_spec_stats_time_range_end_time: nil, feature_stats_and_anomaly_spec_stats_time_range_start_time: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature + command.params['name'] = name unless name.nil? + command.query['featureStatsAndAnomalySpec.latestStatsCount'] = feature_stats_and_anomaly_spec_latest_stats_count unless feature_stats_and_anomaly_spec_latest_stats_count.nil? + command.query['featureStatsAndAnomalySpec.statsTimeRange.endTime'] = feature_stats_and_anomaly_spec_stats_time_range_end_time unless feature_stats_and_anomaly_spec_stats_time_range_end_time.nil? + command.query['featureStatsAndAnomalySpec.statsTimeRange.startTime'] = feature_stats_and_anomaly_spec_stats_time_range_start_time unless feature_stats_and_anomaly_spec_stats_time_range_start_time.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 Features in a given FeatureGroup. + # @param [String] parent + # Required. The resource name of the Location to list Features. Format for + # entity_type as parent: `projects/`project`/locations/`location`/featurestores/` + # featurestore`/entityTypes/`entity_type`` Format for feature_group as parent: ` + # projects/`project`/locations/`location`/featureGroups/`feature_group`` + # @param [String] filter + # Lists the Features that match the filter expression. The following filters are + # supported: * `value_type`: Supports = and != comparisons. * `create_time`: + # Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC 3339 + # format. * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values + # must be in RFC 3339 format. * `labels`: Supports key-value equality as well as + # key presence. Examples: * `value_type = DOUBLE` --> Features whose type is + # DOUBLE. * `create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > \" + # 2020-01-31T15:30:00.000000Z\"` --> EntityTypes created or updated after 2020- + # 01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --> + # Features having both (active: yes) and (env: prod) labels. * `labels.env: *` -- + # > Any Feature which has a label with 'env' as the key. + # @param [Fixnum] latest_stats_count + # Only applicable for Vertex AI Feature Store (Legacy). If set, return the most + # recent ListFeaturesRequest.latest_stats_count of stats for each Feature in + # response. Valid value is [0, 10]. If number of stats exists < + # ListFeaturesRequest.latest_stats_count, return all existing stats. + # @param [String] order_by + # A comma-separated list of fields to order by, sorted in ascending order. Use " + # desc" after a field name for descending. Supported fields: * `feature_id` * ` + # value_type` (Not supported for FeatureRegistry Feature) * `create_time` * ` + # update_time` + # @param [Fixnum] page_size + # The maximum number of Features to return. The service may return fewer than + # this value. If unspecified, at most 1000 Features will be returned. The + # maximum value is 1000; any value greater than 1000 will be coerced to 1000. + # @param [String] page_token + # A page token, received from a previous FeaturestoreService.ListFeatures call + # or FeatureRegistryService.ListFeatures call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to + # FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must + # match the call that provided the page token. + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse] + # + # @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_feature_group_features(parent, filter: nil, latest_stats_count: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/features', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['latestStatsCount'] = latest_stats_count unless latest_stats_count.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['readMask'] = read_mask unless read_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 + + # Updates the parameters of a single Feature. + # @param [String] name + # Immutable. Name of the Feature. Format: `projects/`project`/locations/` + # location`/featurestores/`featurestore`/entityTypes/`entity_type`/features/` + # feature`` `projects/`project`/locations/`location`/featureGroups/` + # feature_group`/features/`feature`` The last part feature is assigned by the + # client. The feature can be up to 64 characters long and can consist only of + # ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting + # with a letter. The value will be unique given an entity type. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] google_cloud_aiplatform_v1beta1_feature_object + # @param [String] update_mask + # Field mask is used to specify the fields to be overwritten in the Features + # resource by the update. The fields specified in the update_mask are relative + # to the resource, not the full request. A field will be overwritten if it is in + # the mask. If the user does not provide a mask then only the non-empty fields + # present in the request will be overwritten. Set the update_mask to `*` to + # override all fields. Updatable fields: * `description` * `labels` * ` + # disable_monitoring` (Not supported for FeatureRegistryService Feature) * ` + # point_of_contact` (Not supported for FeaturestoreService FeatureStore) + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_feature_group_feature(name, google_cloud_aiplatform_v1beta1_feature_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature::Representation + command.request_object = google_cloud_aiplatform_v1beta1_feature_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + 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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group_feature_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_feature_group_feature_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_group_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_feature_group_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Creates a new FeatureOnlineStore in a given project and location. + # @param [String] parent + # Required. The resource name of the Location to create FeatureOnlineStores. + # Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore] google_cloud_aiplatform_v1beta1_feature_online_store_object + # @param [String] feature_online_store_id + # Required. The ID to use for this FeatureOnlineStore, which will become the + # final component of the FeatureOnlineStore's resource name. This value may be + # up to 60 characters, and valid characters are `[a-z0-9_]`. The first character + # cannot be a number. The value must be unique within the project and location. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_online_store(parent, google_cloud_aiplatform_v1beta1_feature_online_store_object = nil, feature_online_store_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/featureOnlineStores', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore::Representation + command.request_object = google_cloud_aiplatform_v1beta1_feature_online_store_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['featureOnlineStoreId'] = feature_online_store_id unless feature_online_store_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 + + # Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain + # any FeatureViews. + # @param [String] name + # Required. The name of the FeatureOnlineStore to be deleted. Format: `projects/` + # project`/locations/`location`/featureOnlineStores/`feature_online_store`` + # @param [Boolean] force + # If set to true, any FeatureViews and Features for this FeatureOnlineStore will + # also be deleted. (Otherwise, the request will only work if the + # FeatureOnlineStore has no FeatureViews.) + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_online_store(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.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 a single FeatureOnlineStore. + # @param [String] name + # Required. The name of the FeatureOnlineStore 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore] + # + # @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_feature_online_store(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore + 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 access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The maximum policy version that will be used to format the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. Requests for policies with any conditional role bindings must + # specify version 3. Policies with no conditional role bindings may specify any + # valid value or leave the field unset. The policy in the response might use the + # policy version that you specified, or it might use a lower policy version. For + # example, if you specify version 3, but the policy has no conditional role + # bindings, the response uses version 1. To learn which resources support + # conditions in their IAM policies, see the [IAM documentation](https://cloud. + # google.com/iam/help/conditions/resource-policies). + # @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::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # + # @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_feature_online_store_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.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 FeatureOnlineStores in a given project and location. + # @param [String] parent + # Required. The resource name of the Location to list FeatureOnlineStores. + # Format: `projects/`project`/locations/`location`` + # @param [String] filter + # Lists the FeatureOnlineStores that match the filter expression. The following + # fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and + # `>=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports + # `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 + # format. * `labels`: Supports key-value equality and key presence. Examples: * ` + # create_time > "2020-01-01" OR update_time > "2020-01-01"` FeatureOnlineStores + # created or updated after 2020-01-01. * `labels.env = "prod"` + # FeatureOnlineStores with label "env" set to "prod". + # @param [String] order_by + # 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` + # @param [Fixnum] page_size + # The maximum number of FeatureOnlineStores to return. The service may return + # fewer than this value. If unspecified, at most 100 FeatureOnlineStores will be + # returned. The maximum value is 100; any value greater than 100 will be coerced + # to 100. + # @param [String] page_token + # A page token, received from a previous FeatureOnlineStoreAdminService. + # ListFeatureOnlineStores call. Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to + # FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call + # that provided the page token. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse] + # + # @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_feature_online_stores(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, 'v1beta1/{+parent}/featureOnlineStores', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse + 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 parameters of a single FeatureOnlineStore. + # @param [String] name + # Identifier. Name of the FeatureOnlineStore. Format: `projects/`project`/ + # locations/`location`/featureOnlineStores/`featureOnlineStore`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore] google_cloud_aiplatform_v1beta1_feature_online_store_object + # @param [String] update_mask + # Field mask is used to specify the fields to be overwritten in the + # FeatureOnlineStore resource by the update. The fields specified in the + # update_mask are relative to the resource, not the full request. A field will + # be overwritten if it is in the mask. If the user does not provide a mask then + # only the non-empty fields present in the request will be overwritten. Set the + # update_mask to `*` to override all fields. Updatable fields: * `labels` * ` + # description` * `bigtable` * `bigtable.auto_scaling` * `bigtable. + # enable_multi_region_replica` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_feature_online_store(name, google_cloud_aiplatform_v1beta1_feature_online_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStore::Representation + command.request_object = google_cloud_aiplatform_v1beta1_feature_online_store_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + 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 + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_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::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # + # @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 set_project_location_feature_online_store_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation + command.request_object = google_iam_v1_set_iam_policy_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. See [ + # Resource names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Array, String] permissions + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as `*` or `storage.*`) are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). + # @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::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] + # + # @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 test_project_location_feature_online_store_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['permissions'] = permissions unless permissions.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 FeatureView in a given FeatureOnlineStore. + # @param [String] parent + # Required. The resource name of the FeatureOnlineStore to create FeatureViews. + # Format: `projects/`project`/locations/`location`/featureOnlineStores/` + # feature_online_store`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView] google_cloud_aiplatform_v1beta1_feature_view_object + # @param [String] feature_view_id + # Required. The ID to use for the FeatureView, which will become the final + # component of the FeatureView's resource name. This value may be up to 60 + # characters, and valid characters are `[a-z0-9_]`. The first character cannot + # be a number. The value must be unique within a FeatureOnlineStore. + # @param [Boolean] run_sync_immediately + # Immutable. If set to true, one on demand sync will be run immediately, + # regardless whether the FeatureView.sync_config is configured or not. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_online_store_feature_view(parent, google_cloud_aiplatform_v1beta1_feature_view_object = nil, feature_view_id: nil, run_sync_immediately: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/featureViews', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView::Representation + command.request_object = google_cloud_aiplatform_v1beta1_feature_view_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['featureViewId'] = feature_view_id unless feature_view_id.nil? + command.query['runSyncImmediately'] = run_sync_immediately unless run_sync_immediately.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 single FeatureView. + # @param [String] name + # Required. The name of the FeatureView to be deleted. Format: `projects/` + # project`/locations/`location`/featureOnlineStores/`feature_online_store`/ + # featureViews/`feature_view`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_online_store_feature_view(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Bidirectional streaming RPC to directly write to feature values in a feature + # view. Requests may not have a one-to-one mapping to responses and responses + # may be returned out-of-order to reduce latency. + # @param [String] feature_view + # FeatureView resource format `projects/`project`/locations/`location`/ + # featureOnlineStores/`featureOnlineStore`/featureViews/`featureView`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest] google_cloud_aiplatform_v1beta1_feature_view_direct_write_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse] + # + # @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 direct_project_location_feature_online_store_feature_view_write(feature_view, google_cloud_aiplatform_v1beta1_feature_view_direct_write_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+featureView}:directWrite', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_feature_view_direct_write_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewDirectWriteResponse + command.params['featureView'] = feature_view unless feature_view.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Fetch feature values under a FeatureView. + # @param [String] feature_view + # Required. FeatureView resource format `projects/`project`/locations/`location`/ + # featureOnlineStores/`featureOnlineStore`/featureViews/`featureView`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest] google_cloud_aiplatform_v1beta1_fetch_feature_values_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse] + # + # @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 fetch_project_location_feature_online_store_feature_view_feature_values(feature_view, google_cloud_aiplatform_v1beta1_fetch_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+featureView}:fetchFeatureValues', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_fetch_feature_values_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse + command.params['featureView'] = feature_view unless feature_view.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # RPC to generate an access token for the given feature view. FeatureViews under + # the same FeatureOnlineStore share the same access token. + # @param [String] feature_view + # FeatureView resource format `projects/`project`/locations/`location`/ + # featureOnlineStores/`featureOnlineStore`/featureViews/`featureView`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenRequest] google_cloud_aiplatform_v1beta1_generate_fetch_access_token_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenResponse] + # + # @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 generate_project_location_feature_online_store_feature_view_fetch_access_token(feature_view, google_cloud_aiplatform_v1beta1_generate_fetch_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+featureView}:generateFetchAccessToken', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_fetch_access_token_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateFetchAccessTokenResponse + command.params['featureView'] = feature_view unless feature_view.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 a single FeatureView. + # @param [String] name + # Required. The name of the FeatureView resource. Format: `projects/`project`/ + # locations/`location`/featureOnlineStores/`feature_online_store`/featureViews/` + # feature_view`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView] + # + # @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_feature_online_store_feature_view(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView + 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 access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The maximum policy version that will be used to format the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. Requests for policies with any conditional role bindings must + # specify version 3. Policies with no conditional role bindings may specify any + # valid value or leave the field unset. The policy in the response might use the + # policy version that you specified, or it might use a lower policy version. For + # example, if you specify version 3, but the policy has no conditional role + # bindings, the response uses version 1. To learn which resources support + # conditions in their IAM policies, see the [IAM documentation](https://cloud. + # google.com/iam/help/conditions/resource-policies). + # @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::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # + # @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_feature_online_store_feature_view_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.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 FeatureViews in a given FeatureOnlineStore. + # @param [String] parent + # Required. The resource name of the FeatureOnlineStore to list FeatureViews. + # Format: `projects/`project`/locations/`location`/featureOnlineStores/` + # feature_online_store`` + # @param [String] filter + # Lists the FeatureViews that match the filter expression. The following filters + # are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` + # comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, + # `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 format. + # * `labels`: Supports key-value equality as well as key presence. Examples: * ` + # create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15: + # 30:00.000000Z\"` --> FeatureViews created or updated after 2020-01-31T15:30:00. + # 000000Z. * `labels.active = yes AND labels.env = prod` --> FeatureViews having + # both (active: yes) and (env: prod) labels. * `labels.env: *` --> Any + # FeatureView which has a label with 'env' as the key. + # @param [String] order_by + # A comma-separated list of fields to order by, sorted in ascending order. Use " + # desc" after a field name for descending. Supported fields: * `feature_view_id` + # * `create_time` * `update_time` + # @param [Fixnum] page_size + # The maximum number of FeatureViews to return. The service may return fewer + # than this value. If unspecified, at most 1000 FeatureViews will be returned. + # The maximum value is 1000; any value greater than 1000 will be coerced to 1000. + # @param [String] page_token + # A page token, received from a previous FeatureOnlineStoreAdminService. + # ListFeatureViews call. Provide this to retrieve the subsequent page. When + # paginating, all other parameters provided to FeatureOnlineStoreAdminService. + # ListFeatureViews must match the call that provided the page token. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewsResponse] + # + # @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_feature_online_store_feature_views(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, 'v1beta1/{+parent}/featureViews', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewsResponse + 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 parameters of a single FeatureView. + # @param [String] name + # Identifier. Name of the FeatureView. Format: `projects/`project`/locations/` + # location`/featureOnlineStores/`feature_online_store`/featureViews/` + # feature_view`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView] google_cloud_aiplatform_v1beta1_feature_view_object + # @param [String] update_mask + # Field mask is used to specify the fields to be overwritten in the FeatureView + # resource by the update. The fields specified in the update_mask are relative + # to the resource, not the full request. A field will be overwritten if it is in + # the mask. If the user does not provide a mask then only the non-empty fields + # present in the request will be overwritten. Set the update_mask to `*` to + # override all fields. Updatable fields: * `labels` * `service_agent_type` * ` + # big_query_source` * `big_query_source.uri` * `big_query_source. + # entity_id_columns` * `feature_registry_source` * `feature_registry_source. + # feature_groups` * `sync_config` * `sync_config.cron` * `optimized_config. + # automatic_resources` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_feature_online_store_feature_view(name, google_cloud_aiplatform_v1beta1_feature_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureView::Representation + command.request_object = google_cloud_aiplatform_v1beta1_feature_view_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + 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 + + # Search the nearest entities under a FeatureView. Search only works for + # indexable feature view; if a feature view isn't indexable, returns Invalid + # argument response. + # @param [String] feature_view + # Required. FeatureView resource format `projects/`project`/locations/`location`/ + # featureOnlineStores/`featureOnlineStore`/featureViews/`featureView`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest] google_cloud_aiplatform_v1beta1_search_nearest_entities_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse] + # + # @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 search_project_location_feature_online_store_feature_view_nearest_entities(feature_view, google_cloud_aiplatform_v1beta1_search_nearest_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+featureView}:searchNearestEntities', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_search_nearest_entities_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse + command.params['featureView'] = feature_view unless feature_view.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_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::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # + # @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 set_project_location_feature_online_store_feature_view_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation + command.request_object = google_iam_v1_set_iam_policy_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Bidirectional streaming RPC to fetch feature values under a FeatureView. + # Requests may not have a one-to-one mapping to responses and responses may be + # returned out-of-order to reduce latency. + # @param [String] feature_view + # Required. FeatureView resource format `projects/`project`/locations/`location`/ + # featureOnlineStores/`featureOnlineStore`/featureViews/`featureView`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesRequest] google_cloud_aiplatform_v1beta1_streaming_fetch_feature_values_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesResponse] + # + # @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 streaming_project_location_feature_online_store_feature_view_fetch_feature_values(feature_view, google_cloud_aiplatform_v1beta1_streaming_fetch_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+featureView}:streamingFetchFeatureValues', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_streaming_fetch_feature_values_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesResponse + command.params['featureView'] = feature_view unless feature_view.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Triggers on-demand sync for the FeatureView. + # @param [String] feature_view + # Required. Format: `projects/`project`/locations/`location`/featureOnlineStores/ + # `feature_online_store`/featureViews/`feature_view`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SyncFeatureViewRequest] google_cloud_aiplatform_v1beta1_sync_feature_view_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SyncFeatureViewResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SyncFeatureViewResponse] + # + # @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 sync_project_location_feature_online_store_feature_view(feature_view, google_cloud_aiplatform_v1beta1_sync_feature_view_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+featureView}:sync', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SyncFeatureViewRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_sync_feature_view_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SyncFeatureViewResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SyncFeatureViewResponse + command.params['featureView'] = feature_view unless feature_view.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. See [ + # Resource names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Array, String] permissions + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as `*` or `storage.*`) are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). + # @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::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] + # + # @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 test_project_location_feature_online_store_feature_view_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['permissions'] = permissions unless permissions.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 a single FeatureViewSync. + # @param [String] name + # Required. The name of the FeatureViewSync resource. Format: `projects/`project` + # /locations/`location`/featureOnlineStores/`feature_online_store`/featureViews/` + # feature_view`/featureViewSyncs/`feature_view_sync`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewSync] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewSync] + # + # @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_feature_online_store_feature_view_feature_view_sync(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewSync::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewSync + 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 FeatureViewSyncs in a given FeatureView. + # @param [String] parent + # Required. The resource name of the FeatureView to list FeatureViewSyncs. + # Format: `projects/`project`/locations/`location`/featureOnlineStores/` + # feature_online_store`/featureViews/`feature_view`` + # @param [String] filter + # Lists the FeatureViewSyncs that match the filter expression. The following + # filters are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, + # and `<=` comparisons. Values must be in RFC 3339 format. Examples: * ` + # create_time > \"2020-01-31T15:30:00.000000Z\"` --> FeatureViewSyncs created + # after 2020-01-31T15:30:00.000000Z. + # @param [String] order_by + # 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` + # @param [Fixnum] page_size + # The maximum number of FeatureViewSyncs to return. The service may return fewer + # than this value. If unspecified, at most 1000 FeatureViewSyncs will be + # returned. The maximum value is 1000; any value greater than 1000 will be + # coerced to 1000. + # @param [String] page_token + # A page token, received from a previous FeatureOnlineStoreAdminService. + # ListFeatureViewSyncs call. Provide this to retrieve the subsequent page. When + # paginating, all other parameters provided to FeatureOnlineStoreAdminService. + # ListFeatureViewSyncs must match the call that provided the page token. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse] + # + # @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_feature_online_store_feature_view_feature_view_syncs(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, 'v1beta1/{+parent}/featureViewSyncs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse + 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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_online_store_feature_view_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_online_store_feature_view_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_online_store_feature_view_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_feature_online_store_feature_view_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_online_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_online_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_feature_online_store_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_feature_online_store_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Batch reads Feature values from a Featurestore. This API enables batch reading + # Feature values, where each read instance in the batch may read Feature values + # of entities from one or more EntityTypes. Point-in-time correctness is + # guaranteed for Feature values of each read instance as of each instance's read + # timestamp. + # @param [String] featurestore + # Required. The resource name of the Featurestore from which to query Feature + # values. Format: `projects/`project`/locations/`location`/featurestores/` + # featurestore`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest] google_cloud_aiplatform_v1beta1_batch_read_feature_values_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 batch_project_location_featurestore_read_feature_values(featurestore, google_cloud_aiplatform_v1beta1_batch_read_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+featurestore}:batchReadFeatureValues', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_batch_read_feature_values_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['featurestore'] = featurestore unless featurestore.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 Featurestore in a given project and location. + # @param [String] parent + # Required. The resource name of the Location to create Featurestores. Format: ` + # projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore] google_cloud_aiplatform_v1beta1_featurestore_object + # @param [String] featurestore_id + # Required. The ID to use for this Featurestore, which will become the final + # component of the Featurestore's resource name. This value may be up to 60 + # characters, and valid characters are `[a-z0-9_]`. The first character cannot + # be a number. The value must be unique within the project and location. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore(parent, google_cloud_aiplatform_v1beta1_featurestore_object = nil, featurestore_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/featurestores', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore::Representation + command.request_object = google_cloud_aiplatform_v1beta1_featurestore_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['featurestoreId'] = featurestore_id unless featurestore_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 + + # Deletes a single Featurestore. The Featurestore must not contain any + # EntityTypes or `force` must be set to true for the request to succeed. + # @param [String] name + # Required. The name of the Featurestore to be deleted. Format: `projects/` + # project`/locations/`location`/featurestores/`featurestore`` + # @param [Boolean] force + # If set to true, any EntityTypes and Features for this Featurestore will also + # be deleted. (Otherwise, the request will only work if the Featurestore has no + # EntityTypes.) + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.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 a single Featurestore. + # @param [String] name + # Required. The name of the Featurestore 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore] + # + # @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_featurestore(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore + 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 access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1GetIamPolicyRequest] google_iam_v1_get_iam_policy_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::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # + # @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_featurestore_iam_policy(resource, google_iam_v1_get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1GetIamPolicyRequest::Representation + command.request_object = google_iam_v1_get_iam_policy_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.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 Featurestores in a given project and location. + # @param [String] parent + # Required. The resource name of the Location to list Featurestores. Format: ` + # projects/`project`/locations/`location`` + # @param [String] filter + # Lists the featurestores that match the filter expression. The following fields + # are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` + # comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, + # `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in RFC 3339 format. + # * `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `<`, `>`, `<=`, + # and `>=` comparisons. * `labels`: Supports key-value equality and key + # presence. Examples: * `create_time > "2020-01-01" OR update_time > "2020-01-01" + # ` Featurestores created or updated after 2020-01-01. * `labels.env = "prod"` + # Featurestores with label "env" set to "prod". + # @param [String] order_by + # 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` * `online_serving_config.fixed_node_count` + # @param [Fixnum] page_size + # The maximum number of Featurestores to return. The service may return fewer + # than this value. If unspecified, at most 100 Featurestores will be returned. + # The maximum value is 100; any value greater than 100 will be coerced to 100. + # @param [String] page_token + # A page token, received from a previous FeaturestoreService.ListFeaturestores + # call. Provide this to retrieve the subsequent page. When paginating, all other + # parameters provided to FeaturestoreService.ListFeaturestores must match the + # call that provided the page token. + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturestoresResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturestoresResponse] + # + # @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_featurestores(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/featurestores', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturestoresResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturestoresResponse + 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['readMask'] = read_mask unless read_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 + + # Updates the parameters of a single Featurestore. + # @param [String] name + # Output only. Name of the Featurestore. Format: `projects/`project`/locations/` + # location`/featurestores/`featurestore`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore] google_cloud_aiplatform_v1beta1_featurestore_object + # @param [String] update_mask + # Field mask is used to specify the fields to be overwritten in the Featurestore + # resource by the update. The fields specified in the update_mask are relative + # to the resource, not the full request. A field will be overwritten if it is in + # the mask. If the user does not provide a mask then only the non-empty fields + # present in the request will be overwritten. Set the update_mask to `*` to + # override all fields. Updatable fields: * `labels` * `online_serving_config. + # fixed_node_count` * `online_serving_config.scaling` * `online_storage_ttl_days` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_featurestore(name, google_cloud_aiplatform_v1beta1_featurestore_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Featurestore::Representation + command.request_object = google_cloud_aiplatform_v1beta1_featurestore_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + 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 + + # Searches Features matching a query in a given project. + # @param [String] location + # Required. The resource name of the Location to search Features. Format: ` + # projects/`project`/locations/`location`` + # @param [Fixnum] page_size + # The maximum number of Features to return. The service may return fewer than + # this value. If unspecified, at most 100 Features will be returned. The maximum + # value is 100; any value greater than 100 will be coerced to 100. + # @param [String] page_token + # A page token, received from a previous FeaturestoreService.SearchFeatures call. + # Provide this to retrieve the subsequent page. When paginating, all other + # parameters provided to FeaturestoreService.SearchFeatures, except `page_size`, + # must match the call that provided the page token. + # @param [String] query + # Query string that is a conjunction of field-restricted queries and/or field- + # restricted filters. Field-restricted queries and filters can be combined using + # `AND` to form a conjunction. A field query is in the form FIELD:QUERY. This + # implicitly checks if QUERY exists as a substring within Feature's FIELD. The + # QUERY and the FIELD are converted to a sequence of words (i.e. tokens) for + # comparison. This is done by: * Removing leading/trailing whitespace and + # tokenizing the search value. Characters that are not one of alphanumeric `[a- + # zA-Z0-9]`, underscore `_`, or asterisk `*` are treated as delimiters for + # tokens. `*` is treated as a wildcard that matches characters within a token. * + # Ignoring case. * Prepending an asterisk to the first and appending an asterisk + # to the last token in QUERY. A QUERY must be either a singular token or a + # phrase. A phrase is one or multiple words enclosed in double quotation marks (" + # ). With phrases, the order of the words is important. Words in the phrase must + # be matching in order and consecutively. Supported FIELDs for field-restricted + # queries: * `feature_id` * `description` * `entity_type_id` Examples: * ` + # feature_id: foo` --> Matches a Feature with ID containing the substring `foo` ( + # eg. `foo`, `foofeature`, `barfoo`). * `feature_id: foo*feature` --> Matches a + # Feature with ID containing the substring `foo*feature` (eg. `foobarfeature`). * + # `feature_id: foo AND description: bar` --> Matches a Feature with ID + # containing the substring `foo` and description containing the substring `bar`. + # Besides field queries, the following exact-match filters are supported. The + # exact-match filters do not support wildcards. Unlike field-restricted queries, + # exact-match filters are case-sensitive. * `feature_id`: Supports = comparisons. + # * `description`: Supports = comparisons. Multi-token filters should be + # enclosed in quotes. * `entity_type_id`: Supports = comparisons. * `value_type`: + # Supports = and != comparisons. * `labels`: Supports key-value equality as + # well as key presence. * `featurestore_id`: Supports = comparisons. Examples: * + # `description = "foo bar"` --> Any Feature with description exactly equal to ` + # foo bar` * `value_type = DOUBLE` --> Features whose type is DOUBLE. * `labels. + # active = yes AND labels.env = prod` --> Features having both (active: yes) and + # (env: prod) labels. * `labels.env: *` --> Any Feature which has a label with ` + # env` as the key. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchFeaturesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchFeaturesResponse] + # + # @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 search_project_location_featurestore_features(location, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+location}/featurestores:searchFeatures', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchFeaturesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchFeaturesResponse + command.params['location'] = location unless location.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['query'] = query unless query.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_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::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # + # @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 set_project_location_featurestore_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation + command.request_object = google_iam_v1_set_iam_policy_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. See [ + # Resource names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_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::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] + # + # @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 test_project_location_featurestore_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation + command.request_object = google_iam_v1_test_iam_permissions_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse + command.params['resource'] = resource unless resource.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 EntityType in a given Featurestore. + # @param [String] parent + # Required. The resource name of the Featurestore to create EntityTypes. Format: + # `projects/`project`/locations/`location`/featurestores/`featurestore`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType] google_cloud_aiplatform_v1beta1_entity_type_object + # @param [String] entity_type_id + # Required. The ID to use for the EntityType, which will become the final + # component of the EntityType's resource name. This value may be up to 60 + # characters, and valid characters are `[a-z0-9_]`. The first character cannot + # be a number. The value must be unique within a featurestore. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type(parent, google_cloud_aiplatform_v1beta1_entity_type_object = nil, entity_type_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/entityTypes', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType::Representation + command.request_object = google_cloud_aiplatform_v1beta1_entity_type_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['entityTypeId'] = entity_type_id unless entity_type_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 + + # Deletes a single EntityType. The EntityType must not have any Features or ` + # force` must be set to true for the request to succeed. + # @param [String] name + # Required. The name of the EntityType to be deleted. Format: `projects/`project` + # /locations/`location`/featurestores/`featurestore`/entityTypes/`entity_type`` + # @param [Boolean] force + # If set to true, any Features for this EntityType will also be deleted. ( + # Otherwise, the request will only work if the EntityType has no Features.) + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Delete Feature values from Featurestore. The progress of the deletion is + # tracked by the returned operation. The deleted feature values are guaranteed + # to be invisible to subsequent read operations after the operation is marked as + # successfully done. If a delete feature values operation fails, the feature + # values returned from reads and exports may be inconsistent. If consistency is + # required, the caller must retry the same delete request again and wait till + # the new operation returned is marked as successfully done. + # @param [String] entity_type + # Required. The resource name of the EntityType grouping the Features for which + # values are being deleted from. Format: `projects/`project`/locations/`location` + # /featurestores/`featurestore`/entityTypes/`entityType`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest] google_cloud_aiplatform_v1beta1_delete_feature_values_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type_feature_values(entity_type, google_cloud_aiplatform_v1beta1_delete_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+entityType}:deleteFeatureValues', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_delete_feature_values_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['entityType'] = entity_type unless entity_type.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Exports Feature values from all the entities of a target EntityType. + # @param [String] entity_type + # Required. The resource name of the EntityType from which to export Feature + # values. Format: `projects/`project`/locations/`location`/featurestores/` + # featurestore`/entityTypes/`entity_type`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest] google_cloud_aiplatform_v1beta1_export_feature_values_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 export_project_location_featurestore_entity_type_feature_values(entity_type, google_cloud_aiplatform_v1beta1_export_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+entityType}:exportFeatureValues', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_export_feature_values_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['entityType'] = entity_type unless entity_type.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 a single EntityType. + # @param [String] name + # Required. The name of the EntityType resource. Format: `projects/`project`/ + # locations/`location`/featurestores/`featurestore`/entityTypes/`entity_type`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType] + # + # @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_featurestore_entity_type(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType + 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 access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The maximum policy version that will be used to format the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. Requests for policies with any conditional role bindings must + # specify version 3. Policies with no conditional role bindings may specify any + # valid value or leave the field unset. The policy in the response might use the + # policy version that you specified, or it might use a lower policy version. For + # example, if you specify version 3, but the policy has no conditional role + # bindings, the response uses version 1. To learn which resources support + # conditions in their IAM policies, see the [IAM documentation](https://cloud. + # google.com/iam/help/conditions/resource-policies). + # @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::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # + # @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_featurestore_entity_type_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Imports Feature values into the Featurestore from a source storage. The + # progress of the import is tracked by the returned operation. The imported + # features are guaranteed to be visible to subsequent read operations after the + # operation is marked as successfully done. If an import operation fails, the + # Feature values returned from reads and exports may be inconsistent. If + # consistency is required, the caller must retry the same import request again + # and wait till the new operation returned is marked as successfully done. There + # are also scenarios where the caller can cause inconsistency. - Source data for + # import contains multiple distinct Feature values for the same entity ID and + # timestamp. - Source is modified during an import. This includes adding, + # updating, or removing source data and/or metadata. Examples of updating + # metadata include but are not limited to changing storage location, storage + # class, or retention policy. - Online serving cluster is under-provisioned. + # @param [String] entity_type + # Required. The resource name of the EntityType grouping the Features for which + # values are being imported. Format: `projects/`project`/locations/`location`/ + # featurestores/`featurestore`/entityTypes/`entityType`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest] google_cloud_aiplatform_v1beta1_import_feature_values_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 import_project_location_featurestore_entity_type_feature_values(entity_type, google_cloud_aiplatform_v1beta1_import_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+entityType}:importFeatureValues', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_import_feature_values_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['entityType'] = entity_type unless entity_type.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 EntityTypes in a given Featurestore. + # @param [String] parent + # Required. The resource name of the Featurestore to list EntityTypes. Format: ` + # projects/`project`/locations/`location`/featurestores/`featurestore`` + # @param [String] filter + # Lists the EntityTypes that match the filter expression. The following filters + # are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` + # comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, + # `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must be in RFC 3339 format. + # * `labels`: Supports key-value equality as well as key presence. Examples: * ` + # create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > \"2020-01-31T15: + # 30:00.000000Z\"` --> EntityTypes created or updated after 2020-01-31T15:30:00. + # 000000Z. * `labels.active = yes AND labels.env = prod` --> EntityTypes having + # both (active: yes) and (env: prod) labels. * `labels.env: *` --> Any + # EntityType which has a label with 'env' as the key. + # @param [String] order_by + # A comma-separated list of fields to order by, sorted in ascending order. Use " + # desc" after a field name for descending. Supported fields: * `entity_type_id` * + # `create_time` * `update_time` + # @param [Fixnum] page_size + # The maximum number of EntityTypes to return. The service may return fewer than + # this value. If unspecified, at most 1000 EntityTypes will be returned. The + # maximum value is 1000; any value greater than 1000 will be coerced to 1000. + # @param [String] page_token + # A page token, received from a previous FeaturestoreService.ListEntityTypes + # call. Provide this to retrieve the subsequent page. When paginating, all other + # parameters provided to FeaturestoreService.ListEntityTypes must match the call + # that provided the page token. + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEntityTypesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEntityTypesResponse] + # + # @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_featurestore_entity_types(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/entityTypes', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEntityTypesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEntityTypesResponse + 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['readMask'] = read_mask unless read_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 + + # Updates the parameters of a single EntityType. + # @param [String] name + # Immutable. Name of the EntityType. Format: `projects/`project`/locations/` + # location`/featurestores/`featurestore`/entityTypes/`entity_type`` The last + # part entity_type is assigned by the client. The entity_type can be up to 64 + # characters long and can consist only of ASCII Latin letters A-Z and a-z and + # underscore(_), and ASCII digits 0-9 starting with a letter. The value will be + # unique given a featurestore. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType] google_cloud_aiplatform_v1beta1_entity_type_object + # @param [String] update_mask + # Field mask is used to specify the fields to be overwritten in the EntityType + # resource by the update. The fields specified in the update_mask are relative + # to the resource, not the full request. A field will be overwritten if it is in + # the mask. If the user does not provide a mask then only the non-empty fields + # present in the request will be overwritten. Set the update_mask to `*` to + # override all fields. Updatable fields: * `description` * `labels` * ` + # monitoring_config.snapshot_analysis.disabled` * `monitoring_config. + # snapshot_analysis.monitoring_interval_days` * `monitoring_config. + # snapshot_analysis.staleness_days` * `monitoring_config. + # import_features_analysis.state` * `monitoring_config.import_features_analysis. + # anomaly_detection_baseline` * `monitoring_config.numerical_threshold_config. + # value` * `monitoring_config.categorical_threshold_config.value` * ` + # offline_storage_ttl_days` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType] + # + # @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_featurestore_entity_type(name, google_cloud_aiplatform_v1beta1_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType::Representation + command.request_object = google_cloud_aiplatform_v1beta1_entity_type_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EntityType + 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 + + # Reads Feature values of a specific entity of an EntityType. For reading + # feature values of multiple entities of an EntityType, please use + # StreamingReadFeatureValues. + # @param [String] entity_type + # Required. The resource name of the EntityType for the entity being read. Value + # format: `projects/`project`/locations/`location`/featurestores/`featurestore`/ + # entityTypes/`entityType``. For example, for a machine learning model + # predicting user clicks on a website, an EntityType ID could be `user`. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest] google_cloud_aiplatform_v1beta1_read_feature_values_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse] + # + # @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 read_project_location_featurestore_entity_type_feature_values(entity_type, google_cloud_aiplatform_v1beta1_read_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+entityType}:readFeatureValues', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_read_feature_values_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse + command.params['entityType'] = entity_type unless entity_type.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_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::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # + # @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 set_project_location_featurestore_entity_type_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation + command.request_object = google_iam_v1_set_iam_policy_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Reads Feature values for multiple entities. Depending on their size, data for + # different entities may be broken up across multiple responses. + # @param [String] entity_type + # Required. The resource name of the entities' type. Value format: `projects/` + # project`/locations/`location`/featurestores/`featurestore`/entityTypes/` + # entityType``. For example, for a machine learning model predicting user clicks + # on a website, an EntityType ID could be `user`. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest] google_cloud_aiplatform_v1beta1_streaming_read_feature_values_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse] + # + # @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 streaming_project_location_featurestore_entity_type_read_feature_values(entity_type, google_cloud_aiplatform_v1beta1_streaming_read_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+entityType}:streamingReadFeatureValues', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_streaming_read_feature_values_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse + command.params['entityType'] = entity_type unless entity_type.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. See [ + # Resource names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Array, String] permissions + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as `*` or `storage.*`) are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). + # @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::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] + # + # @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 test_project_location_featurestore_entity_type_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['permissions'] = permissions unless permissions.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Writes Feature values of one or more entities of an EntityType. The Feature + # values are merged into existing entities if any. The Feature values to be + # written must have timestamp within the online storage retention. + # @param [String] entity_type + # Required. The resource name of the EntityType for the entities being written. + # Value format: `projects/`project`/locations/`location`/featurestores/ ` + # featurestore`/entityTypes/`entityType``. For example, for a machine learning + # model predicting user clicks on a website, an EntityType ID could be `user`. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest] google_cloud_aiplatform_v1beta1_write_feature_values_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse] + # + # @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 write_project_location_featurestore_entity_type_feature_values(entity_type, google_cloud_aiplatform_v1beta1_write_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+entityType}:writeFeatureValues', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_write_feature_values_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse + command.params['entityType'] = entity_type unless entity_type.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 batch of Features in a given EntityType. + # @param [String] parent + # Required. The resource name of the EntityType/FeatureGroup to create the batch + # of Features under. Format: `projects/`project`/locations/`location`/ + # featurestores/`featurestore`/entityTypes/`entity_type`` `projects/`project`/ + # locations/`location`/featureGroups/`feature_group`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest] google_cloud_aiplatform_v1beta1_batch_create_features_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 batch_project_location_featurestore_entity_type_feature_create(parent, google_cloud_aiplatform_v1beta1_batch_create_features_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/features:batchCreate', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_batch_create_features_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Creates a new Feature in a given EntityType. + # @param [String] parent + # Required. The resource name of the EntityType or FeatureGroup to create a + # Feature. Format for entity_type as parent: `projects/`project`/locations/` + # location`/featurestores/`featurestore`/entityTypes/`entity_type`` Format for + # feature_group as parent: `projects/`project`/locations/`location`/ + # featureGroups/`feature_group`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] google_cloud_aiplatform_v1beta1_feature_object + # @param [String] feature_id + # Required. The ID to use for the Feature, which will become the final component + # of the Feature's resource name. This value may be up to 128 characters, and + # valid characters are `[a-z0-9_]`. The first character cannot be a number. The + # value must be unique within an EntityType/FeatureGroup. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type_feature(parent, google_cloud_aiplatform_v1beta1_feature_object = nil, feature_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/features', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature::Representation + command.request_object = google_cloud_aiplatform_v1beta1_feature_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['featureId'] = feature_id unless feature_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 + + # Deletes a single Feature. + # @param [String] name + # Required. The name of the Features to be deleted. Format: `projects/`project`/ + # locations/`location`/featurestores/`featurestore`/entityTypes/`entity_type`/ + # features/`feature`` `projects/`project`/locations/`location`/featureGroups/` + # feature_group`/features/`feature`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type_feature(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a single Feature. + # @param [String] name + # Required. The name of the Feature resource. Format for entity_type as parent: ` + # projects/`project`/locations/`location`/featurestores/`featurestore`/ + # entityTypes/`entity_type`` Format for feature_group as parent: `projects/` + # project`/locations/`location`/featureGroups/`feature_group`` + # @param [Fixnum] feature_stats_and_anomaly_spec_latest_stats_count + # Optional. If set, returns the most recent count of stats. Valid value is [0, + # 100]. If stats_time_range is set, return most recent count of stats within the + # stats_time_range. + # @param [String] feature_stats_and_anomaly_spec_stats_time_range_end_time + # Optional. Exclusive end of the interval. If specified, a Timestamp matching + # this interval will have to be before the end. + # @param [String] feature_stats_and_anomaly_spec_stats_time_range_start_time + # Optional. Inclusive start of the interval. If specified, a Timestamp matching + # this interval will have to be the same or after the start. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] + # + # @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_featurestore_entity_type_feature(name, feature_stats_and_anomaly_spec_latest_stats_count: nil, feature_stats_and_anomaly_spec_stats_time_range_end_time: nil, feature_stats_and_anomaly_spec_stats_time_range_start_time: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature + command.params['name'] = name unless name.nil? + command.query['featureStatsAndAnomalySpec.latestStatsCount'] = feature_stats_and_anomaly_spec_latest_stats_count unless feature_stats_and_anomaly_spec_latest_stats_count.nil? + command.query['featureStatsAndAnomalySpec.statsTimeRange.endTime'] = feature_stats_and_anomaly_spec_stats_time_range_end_time unless feature_stats_and_anomaly_spec_stats_time_range_end_time.nil? + command.query['featureStatsAndAnomalySpec.statsTimeRange.startTime'] = feature_stats_and_anomaly_spec_stats_time_range_start_time unless feature_stats_and_anomaly_spec_stats_time_range_start_time.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 Features in a given EntityType. + # @param [String] parent + # Required. The resource name of the Location to list Features. Format for + # entity_type as parent: `projects/`project`/locations/`location`/featurestores/` + # featurestore`/entityTypes/`entity_type`` Format for feature_group as parent: ` + # projects/`project`/locations/`location`/featureGroups/`feature_group`` + # @param [String] filter + # Lists the Features that match the filter expression. The following filters are + # supported: * `value_type`: Supports = and != comparisons. * `create_time`: + # Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC 3339 + # format. * `update_time`: Supports =, !=, <, >, >=, and <= comparisons. Values + # must be in RFC 3339 format. * `labels`: Supports key-value equality as well as + # key presence. Examples: * `value_type = DOUBLE` --> Features whose type is + # DOUBLE. * `create_time > \"2020-01-31T15:30:00.000000Z\" OR update_time > \" + # 2020-01-31T15:30:00.000000Z\"` --> EntityTypes created or updated after 2020- + # 01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --> + # Features having both (active: yes) and (env: prod) labels. * `labels.env: *` -- + # > Any Feature which has a label with 'env' as the key. + # @param [Fixnum] latest_stats_count + # Only applicable for Vertex AI Feature Store (Legacy). If set, return the most + # recent ListFeaturesRequest.latest_stats_count of stats for each Feature in + # response. Valid value is [0, 10]. If number of stats exists < + # ListFeaturesRequest.latest_stats_count, return all existing stats. + # @param [String] order_by + # A comma-separated list of fields to order by, sorted in ascending order. Use " + # desc" after a field name for descending. Supported fields: * `feature_id` * ` + # value_type` (Not supported for FeatureRegistry Feature) * `create_time` * ` + # update_time` + # @param [Fixnum] page_size + # The maximum number of Features to return. The service may return fewer than + # this value. If unspecified, at most 1000 Features will be returned. The + # maximum value is 1000; any value greater than 1000 will be coerced to 1000. + # @param [String] page_token + # A page token, received from a previous FeaturestoreService.ListFeatures call + # or FeatureRegistryService.ListFeatures call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to + # FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must + # match the call that provided the page token. + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse] + # + # @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_featurestore_entity_type_features(parent, filter: nil, latest_stats_count: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/features', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListFeaturesResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['latestStatsCount'] = latest_stats_count unless latest_stats_count.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['readMask'] = read_mask unless read_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 + + # Updates the parameters of a single Feature. + # @param [String] name + # Immutable. Name of the Feature. Format: `projects/`project`/locations/` + # location`/featurestores/`featurestore`/entityTypes/`entity_type`/features/` + # feature`` `projects/`project`/locations/`location`/featureGroups/` + # feature_group`/features/`feature`` The last part feature is assigned by the + # client. The feature can be up to 64 characters long and can consist only of + # ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting + # with a letter. The value will be unique given an entity type. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] google_cloud_aiplatform_v1beta1_feature_object + # @param [String] update_mask + # Field mask is used to specify the fields to be overwritten in the Features + # resource by the update. The fields specified in the update_mask are relative + # to the resource, not the full request. A field will be overwritten if it is in + # the mask. If the user does not provide a mask then only the non-empty fields + # present in the request will be overwritten. Set the update_mask to `*` to + # override all fields. Updatable fields: * `description` * `labels` * ` + # disable_monitoring` (Not supported for FeatureRegistryService Feature) * ` + # point_of_contact` (Not supported for FeaturestoreService FeatureStore) + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature] + # + # @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_featurestore_entity_type_feature(name, google_cloud_aiplatform_v1beta1_feature_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature::Representation + command.request_object = google_cloud_aiplatform_v1beta1_feature_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Feature + 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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type_feature_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type_feature_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_featurestore_entity_type_feature_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_entity_type_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_featurestore_entity_type_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_featurestore_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_featurestore_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the + # HyperparameterTuningJob. The server makes a best effort to cancel the job, but + # success is not guaranteed. Clients can use JobService. + # GetHyperparameterTuningJob or other methods to check whether the cancellation + # succeeded or whether the job completed despite cancellation. On successful + # cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a + # job with a HyperparameterTuningJob.error value with a google.rpc.Status.code + # of 1, corresponding to `Code.CANCELLED`, and HyperparameterTuningJob.state is + # set to `CANCELLED`. + # @param [String] name + # Required. The name of the HyperparameterTuningJob to cancel. Format: `projects/ + # `project`/locations/`location`/hyperparameterTuningJobs/` + # hyperparameter_tuning_job`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest] google_cloud_aiplatform_v1beta1_cancel_hyperparameter_tuning_job_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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_hyperparameter_tuning_job(name, google_cloud_aiplatform_v1beta1_cancel_hyperparameter_tuning_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_cancel_hyperparameter_tuning_job_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Creates a HyperparameterTuningJob + # @param [String] parent + # Required. The resource name of the Location to create the + # HyperparameterTuningJob in. Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob] google_cloud_aiplatform_v1beta1_hyperparameter_tuning_job_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob] + # + # @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_hyperparameter_tuning_job(parent, google_cloud_aiplatform_v1beta1_hyperparameter_tuning_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/hyperparameterTuningJobs', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob::Representation + command.request_object = google_cloud_aiplatform_v1beta1_hyperparameter_tuning_job_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob + 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 a HyperparameterTuningJob. + # @param [String] name + # Required. The name of the HyperparameterTuningJob resource to be deleted. + # Format: `projects/`project`/locations/`location`/hyperparameterTuningJobs/` + # hyperparameter_tuning_job`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_hyperparameter_tuning_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a HyperparameterTuningJob + # @param [String] name + # Required. The name of the HyperparameterTuningJob resource. Format: `projects/` + # project`/locations/`location`/hyperparameterTuningJobs/` + # hyperparameter_tuning_job`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob] + # + # @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_hyperparameter_tuning_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1HyperparameterTuningJob + 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 HyperparameterTuningJobs in a Location. + # @param [String] parent + # Required. The resource name of the Location to list the + # HyperparameterTuningJobs from. Format: `projects/`project`/locations/`location` + # ` + # @param [String] filter + # The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + # comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * ` + # create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` + # must be in RFC 3339 format. * `labels` supports general map functions that is: + # `labels.key=value` - key:value equality `labels.key:* - key existence Some + # examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND + # display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + # * `NOT display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` * ` + # labels.keyA=valueA` * `labels.keyB:*` + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. Typically obtained via + # ListHyperparameterTuningJobsResponse.next_page_token of the previous + # JobService.ListHyperparameterTuningJobs call. + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse] + # + # @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_hyperparameter_tuning_jobs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/hyperparameterTuningJobs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse + 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['readMask'] = read_mask unless read_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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_hyperparameter_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_hyperparameter_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_hyperparameter_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_hyperparameter_tuning_job_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_hyperparameter_tuning_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Creates an IndexEndpoint. + # @param [String] parent + # Required. The resource name of the Location to create the IndexEndpoint in. + # Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint] google_cloud_aiplatform_v1beta1_index_endpoint_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_index_endpoint(parent, google_cloud_aiplatform_v1beta1_index_endpoint_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/indexEndpoints', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint::Representation + command.request_object = google_cloud_aiplatform_v1beta1_index_endpoint_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 an IndexEndpoint. + # @param [String] name + # Required. The name of the IndexEndpoint resource to be deleted. Format: ` + # projects/`project`/locations/`location`/indexEndpoints/`index_endpoint`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_index_endpoint(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. + # @param [String] index_endpoint + # Required. The name of the IndexEndpoint resource into which to deploy an Index. + # Format: `projects/`project`/locations/`location`/indexEndpoints/` + # index_endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployIndexRequest] google_cloud_aiplatform_v1beta1_deploy_index_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 deploy_project_location_index_endpoint_index(index_endpoint, google_cloud_aiplatform_v1beta1_deploy_index_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+indexEndpoint}:deployIndex', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployIndexRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_deploy_index_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['indexEndpoint'] = index_endpoint unless index_endpoint.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Finds the nearest neighbors of each vector within the request. + # @param [String] index_endpoint + # Required. The name of the index endpoint. Format: `projects/`project`/ + # locations/`location`/indexEndpoints/`index_endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsRequest] google_cloud_aiplatform_v1beta1_find_neighbors_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsResponse] + # + # @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 find_project_location_index_endpoint_neighbors(index_endpoint, google_cloud_aiplatform_v1beta1_find_neighbors_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+indexEndpoint}:findNeighbors', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_find_neighbors_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FindNeighborsResponse + command.params['indexEndpoint'] = index_endpoint unless index_endpoint.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 an IndexEndpoint. + # @param [String] name + # Required. The name of the IndexEndpoint resource. Format: `projects/`project`/ + # locations/`location`/indexEndpoints/`index_endpoint`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint] + # + # @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_index_endpoint(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint + 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 IndexEndpoints in a Location. + # @param [String] parent + # Required. The resource name of the Location from which to list the + # IndexEndpoints. Format: `projects/`project`/locations/`location`` + # @param [String] filter + # Optional. An expression for filtering the results of the request. For field + # names both snake_case and camelCase are supported. * `index_endpoint` supports + # = and !=. `index_endpoint` represents the IndexEndpoint ID, ie. the last + # segment of the IndexEndpoint's resourcename. * `display_name` supports =, != + # and regex() (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax) * ` + # labels` supports general map functions that is: `labels.key=value` - key:value + # equality `labels.key:* or labels:key - key existence A key including a space + # must be quoted. `labels."a key"`. Some examples: * `index_endpoint="1"` * ` + # display_name="myDisplayName"` * `regex(display_name, "^A") -> The display name + # starts with an A. * `labels.myKey="myValue"` + # @param [Fixnum] page_size + # Optional. The standard list page size. + # @param [String] page_token + # Optional. The standard list page token. Typically obtained via + # ListIndexEndpointsResponse.next_page_token of the previous + # IndexEndpointService.ListIndexEndpoints call. + # @param [String] read_mask + # Optional. Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse] + # + # @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_index_endpoints(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/indexEndpoints', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse + 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['readMask'] = read_mask unless read_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 + + # Update an existing DeployedIndex under an IndexEndpoint. + # @param [String] index_endpoint + # Required. The name of the IndexEndpoint resource into which to deploy an Index. + # Format: `projects/`project`/locations/`location`/indexEndpoints/` + # index_endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployedIndex] google_cloud_aiplatform_v1beta1_deployed_index_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 mutate_project_location_index_endpoint_deployed_index(index_endpoint, google_cloud_aiplatform_v1beta1_deployed_index_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+indexEndpoint}:mutateDeployedIndex', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployedIndex::Representation + command.request_object = google_cloud_aiplatform_v1beta1_deployed_index_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['indexEndpoint'] = index_endpoint unless index_endpoint.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 an IndexEndpoint. + # @param [String] name + # Output only. The resource name of the IndexEndpoint. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint] google_cloud_aiplatform_v1beta1_index_endpoint_object + # @param [String] update_mask + # Required. The update mask applies to the resource. See google.protobuf. + # FieldMask. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint] + # + # @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_index_endpoint(name, google_cloud_aiplatform_v1beta1_index_endpoint_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint::Representation + command.request_object = google_cloud_aiplatform_v1beta1_index_endpoint_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1IndexEndpoint + 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 + + # Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints + # can be retrieved in a batch. + # @param [String] index_endpoint + # Required. The name of the index endpoint. Format: `projects/`project`/ + # locations/`location`/indexEndpoints/`index_endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest] google_cloud_aiplatform_v1beta1_read_index_datapoints_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse] + # + # @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 read_project_location_index_endpoint_index_datapoints(index_endpoint, google_cloud_aiplatform_v1beta1_read_index_datapoints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+indexEndpoint}:readIndexDatapoints', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_read_index_datapoints_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse + command.params['indexEndpoint'] = index_endpoint unless index_endpoint.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, + # and freeing all resources it's using. + # @param [String] index_endpoint + # Required. The name of the IndexEndpoint resource from which to undeploy an + # Index. Format: `projects/`project`/locations/`location`/indexEndpoints/` + # index_endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UndeployIndexRequest] google_cloud_aiplatform_v1beta1_undeploy_index_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 undeploy_project_location_index_endpoint_index(index_endpoint, google_cloud_aiplatform_v1beta1_undeploy_index_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+indexEndpoint}:undeployIndex', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UndeployIndexRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_undeploy_index_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['indexEndpoint'] = index_endpoint unless index_endpoint.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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_index_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_index_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_index_endpoint_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_index_endpoint_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_index_endpoint_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Creates an Index. + # @param [String] parent + # Required. The resource name of the Location to create the Index in. Format: ` + # projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index] google_cloud_aiplatform_v1beta1_index_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_index(parent, google_cloud_aiplatform_v1beta1_index_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/indexes', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index::Representation + command.request_object = google_cloud_aiplatform_v1beta1_index_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 an Index. An Index can only be deleted when all its DeployedIndexes + # had been undeployed. + # @param [String] name + # Required. The name of the Index resource to be deleted. Format: `projects/` + # project`/locations/`location`/indexes/`index`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_index(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 an Index. + # @param [String] name + # Required. The name of the Index resource. Format: `projects/`project`/ + # locations/`location`/indexes/`index`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index] + # + # @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_index(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index + 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 + + # Imports an Index from an external source (e.g., BigQuery). + # @param [String] name + # Required. The name of the Index resource to import data to. Format: `projects/` + # project`/locations/`location`/indexes/`index`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportIndexRequest] google_cloud_aiplatform_v1beta1_import_index_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 import_project_location_index(name, google_cloud_aiplatform_v1beta1_import_index_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:import', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportIndexRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_import_index_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 Indexes in a Location. + # @param [String] parent + # Required. The resource name of the Location from which to list the Indexes. + # Format: `projects/`project`/locations/`location`` + # @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. Typically obtained via ListIndexesResponse. + # next_page_token of the previous IndexService.ListIndexes call. + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexesResponse] + # + # @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_indexes(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/indexes', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListIndexesResponse + 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['readMask'] = read_mask unless read_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 + + # Updates an Index. + # @param [String] name + # Output only. The resource name of the Index. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index] google_cloud_aiplatform_v1beta1_index_object + # @param [String] update_mask + # The update mask applies to the resource. For the `FieldMask` definition, see + # google.protobuf.FieldMask. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_index(name, google_cloud_aiplatform_v1beta1_index_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Index::Representation + command.request_object = google_cloud_aiplatform_v1beta1_index_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + 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 + + # Remove Datapoints from an Index. + # @param [String] index + # Required. The name of the Index resource to be updated. Format: `projects/` + # project`/locations/`location`/indexes/`index`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveDatapointsRequest] google_cloud_aiplatform_v1beta1_remove_datapoints_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveDatapointsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveDatapointsResponse] + # + # @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 remove_project_location_index_datapoints(index, google_cloud_aiplatform_v1beta1_remove_datapoints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+index}:removeDatapoints', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveDatapointsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_remove_datapoints_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveDatapointsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveDatapointsResponse + command.params['index'] = index unless index.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Add/update Datapoints into an Index. + # @param [String] index + # Required. The name of the Index resource to be updated. Format: `projects/` + # project`/locations/`location`/indexes/`index`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertDatapointsRequest] google_cloud_aiplatform_v1beta1_upsert_datapoints_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertDatapointsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertDatapointsResponse] + # + # @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 upsert_project_location_index_datapoints(index, google_cloud_aiplatform_v1beta1_upsert_datapoints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+index}:upsertDatapoints', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertDatapointsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_upsert_datapoints_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertDatapointsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpsertDatapointsResponse + command.params['index'] = index unless index.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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_index_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_index_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_index_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_index_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_index_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Initializes a MetadataStore, including allocation of resources. + # @param [String] parent + # Required. The resource name of the Location where the MetadataStore should be + # created. Format: `projects/`project`/locations/`location`/` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataStore] google_cloud_aiplatform_v1beta1_metadata_store_object + # @param [String] metadata_store_id + # The `metadatastore` portion of the resource name with the format: `projects/` + # project`/locations/`location`/metadataStores/`metadatastore`` If not provided, + # the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 + # characters in length. Valid characters are `/a-z-/`. Must be unique across all + # MetadataStores in the parent Location. (Otherwise the request will fail with + # ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting + # MetadataStore.) + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store(parent, google_cloud_aiplatform_v1beta1_metadata_store_object = nil, metadata_store_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/metadataStores', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataStore::Representation + command.request_object = google_cloud_aiplatform_v1beta1_metadata_store_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['metadataStoreId'] = metadata_store_id unless metadata_store_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 + + # Deletes a single MetadataStore and all its child resources (Artifacts, + # Executions, and Contexts). + # @param [String] name + # Required. The resource name of the MetadataStore to delete. Format: `projects/` + # project`/locations/`location`/metadataStores/`metadatastore`` + # @param [Boolean] force + # Deprecated: Field is no longer supported. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a specific MetadataStore. + # @param [String] name + # Required. The resource name of the MetadataStore to retrieve. Format: ` + # projects/`project`/locations/`location`/metadataStores/`metadatastore`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataStore] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataStore] + # + # @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_metadata_store(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataStore::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataStore + 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 MetadataStores for a Location. + # @param [String] parent + # Required. The Location whose MetadataStores should be listed. Format: ` + # projects/`project`/locations/`location`` + # @param [Fixnum] page_size + # The maximum number of Metadata Stores to return. The service may return fewer. + # Must be in range 1-100, inclusive. Defaults to 100. + # @param [String] page_token + # A page token, received from a previous MetadataService.ListMetadataStores call. + # Provide this to retrieve the subsequent page. When paginating, all other + # provided parameters must match the call that provided the page token. ( + # Otherwise the request will fail with INVALID_ARGUMENT error.) + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataStoresResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataStoresResponse] + # + # @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_metadata_stores(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/metadataStores', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataStoresResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataStoresResponse + command.params['parent'] = parent unless parent.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 + + # Creates an Artifact associated with a MetadataStore. + # @param [String] parent + # Required. The resource name of the MetadataStore where the Artifact should be + # created. Format: `projects/`project`/locations/`location`/metadataStores/` + # metadatastore`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] google_cloud_aiplatform_v1beta1_artifact_object + # @param [String] artifact_id + # The `artifact` portion of the resource name with the format: `projects/` + # project`/locations/`location`/metadataStores/`metadatastore`/artifacts/` + # artifact`` If not provided, the Artifact's ID will be a UUID generated by the + # service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. + # Must be unique across all Artifacts in the parent MetadataStore. (Otherwise + # the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller + # can't view the preexisting Artifact.) + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] + # + # @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_metadata_store_artifact(parent, google_cloud_aiplatform_v1beta1_artifact_object = nil, artifact_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/artifacts', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact::Representation + command.request_object = google_cloud_aiplatform_v1beta1_artifact_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact + command.params['parent'] = parent unless parent.nil? + command.query['artifactId'] = artifact_id unless artifact_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 + + # Deletes an Artifact. + # @param [String] name + # Required. The resource name of the Artifact to delete. Format: `projects/` + # project`/locations/`location`/metadataStores/`metadatastore`/artifacts/` + # artifact`` + # @param [String] etag + # Optional. The etag of the Artifact to delete. If this is provided, it must + # match the server's etag. Otherwise, the request will fail with a + # FAILED_PRECONDITION. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_artifact(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['etag'] = etag unless etag.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a specific Artifact. + # @param [String] name + # Required. The resource name of the Artifact to retrieve. Format: `projects/` + # project`/locations/`location`/metadataStores/`metadatastore`/artifacts/` + # artifact`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] + # + # @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_metadata_store_artifact(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact + 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 Artifacts in the MetadataStore. + # @param [String] parent + # Required. The MetadataStore whose Artifacts should be listed. Format: ` + # projects/`project`/locations/`location`/metadataStores/`metadatastore`` + # @param [String] filter + # Filter specifying the boolean condition for the Artifacts to satisfy in order + # to be part of the result set. The syntax to define filter query is based on + # https://google.aip.dev/160. The supported set of filters include the following: + # * **Attribute filtering**: For example: `display_name = "test"`. Supported + # fields include: `name`, `display_name`, `uri`, `state`, `schema_title`, ` + # create_time`, and `update_time`. Time fields, such as `create_time` and ` + # update_time`, require values specified in RFC-3339 format. For example: ` + # create_time = "2020-11-19T11:30:00-04:00"` * **Metadata field**: To filter on + # metadata fields use traversal operation as follows: `metadata..`. For example: + # `metadata.field_1.number_value = 10.0` In case the field name contains special + # characters (such as colon), one can embed it inside double quote. For example: + # `metadata."field:1".number_value = 10.0` * **Context based filtering**: To + # filter Artifacts based on the contexts to which they belong, use the function + # operator with the full resource name `in_context()`. For example: `in_context(" + # projects//locations//metadataStores//contexts/")` Each of the above supported + # filter types can be combined together using logical operators (`AND` & `OR`). + # Maximum nested expression depth allowed is 5. For example: `display_name = " + # test" AND metadata.field1.bool_value = true`. + # @param [String] order_by + # How the list of messages is ordered. Specify the values to order by and an + # ordering operation. The default sorting order is ascending. To specify + # descending order for a field, users append a " desc" suffix; for example: "foo + # desc, bar". Subfields are specified with a `.` character, such as foo.bar. see + # https://google.aip.dev/132#ordering for more details. + # @param [Fixnum] page_size + # The maximum number of Artifacts to return. The service may return fewer. Must + # be in range 1-100, inclusive. Defaults to 100. + # @param [String] page_token + # A page token, received from a previous MetadataService.ListArtifacts call. + # Provide this to retrieve the subsequent page. When paginating, all other + # provided parameters must match the call that provided the page token. ( + # Otherwise the request will fail with INVALID_ARGUMENT error.) + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListArtifactsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListArtifactsResponse] + # + # @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_metadata_store_artifacts(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, 'v1beta1/{+parent}/artifacts', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListArtifactsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListArtifactsResponse + 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 a stored Artifact. + # @param [String] name + # Output only. The resource name of the Artifact. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] google_cloud_aiplatform_v1beta1_artifact_object + # @param [Boolean] allow_missing + # If set to true, and the Artifact is not found, a new Artifact is created. + # @param [String] update_mask + # Optional. A FieldMask indicating which fields should 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact] + # + # @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_metadata_store_artifact(name, google_cloud_aiplatform_v1beta1_artifact_object = nil, allow_missing: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact::Representation + command.request_object = google_cloud_aiplatform_v1beta1_artifact_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Artifact + command.params['name'] = name unless name.nil? + command.query['allowMissing'] = allow_missing unless allow_missing.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 + + # Purges Artifacts. + # @param [String] parent + # Required. The metadata store to purge Artifacts from. Format: `projects/` + # project`/locations/`location`/metadataStores/`metadatastore`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeArtifactsRequest] google_cloud_aiplatform_v1beta1_purge_artifacts_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 purge_project_location_metadata_store_artifact(parent, google_cloud_aiplatform_v1beta1_purge_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/artifacts:purge', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeArtifactsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_purge_artifacts_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Retrieves lineage of an Artifact represented through Artifacts and Executions + # connected by Event edges and returned as a LineageSubgraph. + # @param [String] artifact + # Required. The resource name of the Artifact whose Lineage needs to be + # retrieved as a LineageSubgraph. Format: `projects/`project`/locations/` + # location`/metadataStores/`metadatastore`/artifacts/`artifact`` The request may + # error with FAILED_PRECONDITION if the number of Artifacts, the number of + # Executions, or the number of Events that would be returned for the Context + # exceeds 1000. + # @param [String] filter + # Filter specifying the boolean condition for the Artifacts to satisfy in order + # to be part of the Lineage Subgraph. The syntax to define filter query is based + # on https://google.aip.dev/160. The supported set of filters include the + # following: * **Attribute filtering**: For example: `display_name = "test"` + # Supported fields include: `name`, `display_name`, `uri`, `state`, ` + # schema_title`, `create_time`, and `update_time`. Time fields, such as ` + # create_time` and `update_time`, require values specified in RFC-3339 format. + # For example: `create_time = "2020-11-19T11:30:00-04:00"` * **Metadata field**: + # To filter on metadata fields use traversal operation as follows: `metadata..`. + # For example: `metadata.field_1.number_value = 10.0` In case the field name + # contains special characters (such as colon), one can embed it inside double + # quote. For example: `metadata."field:1".number_value = 10.0` Each of the above + # supported filter types can be combined together using logical operators (`AND` + # & `OR`). Maximum nested expression depth allowed is 5. For example: ` + # display_name = "test" AND metadata.field1.bool_value = true`. + # @param [Fixnum] max_hops + # Specifies the size of the lineage graph in terms of number of hops from the + # specified artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only + # input artifact is returned. No value: Transitive closure is performed to + # return the complete graph. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph] + # + # @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_project_location_metadata_store_artifact_artifact_lineage_subgraph(artifact, filter: nil, max_hops: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+artifact}:queryArtifactLineageSubgraph', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph + command.params['artifact'] = artifact unless artifact.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxHops'] = max_hops unless max_hops.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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_artifact_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_metadata_store_artifact_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Adds a set of Artifacts and Executions to a Context. If any of the Artifacts + # or Executions have already been added to a Context, they are simply skipped. + # @param [String] context + # Required. The resource name of the Context that the Artifacts and Executions + # belong to. Format: `projects/`project`/locations/`location`/metadataStores/` + # metadatastore`/contexts/`context`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest] google_cloud_aiplatform_v1beta1_add_context_artifacts_and_executions_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse] + # + # @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 add_project_location_metadata_store_context_context_artifacts_and_executions(context, google_cloud_aiplatform_v1beta1_add_context_artifacts_and_executions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+context}:addContextArtifactsAndExecutions', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_add_context_artifacts_and_executions_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse + command.params['context'] = context unless context.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Adds a set of Contexts as children to a parent Context. If any of the child + # Contexts have already been added to the parent Context, they are simply + # skipped. If this call would create a cycle or cause any Context to have more + # than 10 parents, the request will fail with an INVALID_ARGUMENT error. + # @param [String] context + # Required. The resource name of the parent Context. Format: `projects/`project`/ + # locations/`location`/metadataStores/`metadatastore`/contexts/`context`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextChildrenRequest] google_cloud_aiplatform_v1beta1_add_context_children_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextChildrenResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextChildrenResponse] + # + # @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 add_project_location_metadata_store_context_context_children(context, google_cloud_aiplatform_v1beta1_add_context_children_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+context}:addContextChildren', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextChildrenRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_add_context_children_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextChildrenResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddContextChildrenResponse + command.params['context'] = context unless context.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 Context associated with a MetadataStore. + # @param [String] parent + # Required. The resource name of the MetadataStore where the Context should be + # created. Format: `projects/`project`/locations/`location`/metadataStores/` + # metadatastore`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] google_cloud_aiplatform_v1beta1_context_object + # @param [String] context_id + # The `context` portion of the resource name with the format: `projects/`project` + # /locations/`location`/metadataStores/`metadatastore`/contexts/`context``. If + # not provided, the Context's ID will be a UUID generated by the service. Must + # be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique + # across all Contexts in the parent MetadataStore. (Otherwise the request will + # fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the + # preexisting Context.) + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] + # + # @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_metadata_store_context(parent, google_cloud_aiplatform_v1beta1_context_object = nil, context_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/contexts', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context::Representation + command.request_object = google_cloud_aiplatform_v1beta1_context_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context + command.params['parent'] = parent unless parent.nil? + command.query['contextId'] = context_id unless context_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 + + # Deletes a stored Context. + # @param [String] name + # Required. The resource name of the Context to delete. Format: `projects/` + # project`/locations/`location`/metadataStores/`metadatastore`/contexts/`context` + # ` + # @param [String] etag + # Optional. The etag of the Context to delete. If this is provided, it must + # match the server's etag. Otherwise, the request will fail with a + # FAILED_PRECONDITION. + # @param [Boolean] force + # The force deletion semantics is still undefined. Users should not use this + # field. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_context(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['etag'] = etag unless etag.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a specific Context. + # @param [String] name + # Required. The resource name of the Context to retrieve. Format: `projects/` + # project`/locations/`location`/metadataStores/`metadatastore`/contexts/`context` + # ` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] + # + # @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_metadata_store_context(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context + 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 Contexts on the MetadataStore. + # @param [String] parent + # Required. The MetadataStore whose Contexts should be listed. Format: `projects/ + # `project`/locations/`location`/metadataStores/`metadatastore`` + # @param [String] filter + # Filter specifying the boolean condition for the Contexts to satisfy in order + # to be part of the result set. The syntax to define filter query is based on + # https://google.aip.dev/160. Following are the supported set of filters: * ** + # Attribute filtering**: For example: `display_name = "test"`. Supported fields + # include: `name`, `display_name`, `schema_title`, `create_time`, and ` + # update_time`. Time fields, such as `create_time` and `update_time`, require + # values specified in RFC-3339 format. For example: `create_time = "2020-11- + # 19T11:30:00-04:00"`. * **Metadata field**: To filter on metadata fields use + # traversal operation as follows: `metadata..`. For example: `metadata.field_1. + # number_value = 10.0`. In case the field name contains special characters (such + # as colon), one can embed it inside double quote. For example: `metadata."field: + # 1".number_value = 10.0` * **Parent Child filtering**: To filter Contexts based + # on parent-child relationship use the HAS operator as follows: ``` + # parent_contexts: "projects//locations//metadataStores//contexts/" + # child_contexts: "projects//locations//metadataStores//contexts/" ``` Each of + # the above supported filters can be combined together using logical operators (` + # AND` & `OR`). Maximum nested expression depth allowed is 5. For example: ` + # display_name = "test" AND metadata.field1.bool_value = true`. + # @param [String] order_by + # How the list of messages is ordered. Specify the values to order by and an + # ordering operation. The default sorting order is ascending. To specify + # descending order for a field, users append a " desc" suffix; for example: "foo + # desc, bar". Subfields are specified with a `.` character, such as foo.bar. see + # https://google.aip.dev/132#ordering for more details. + # @param [Fixnum] page_size + # The maximum number of Contexts to return. The service may return fewer. Must + # be in range 1-100, inclusive. Defaults to 100. + # @param [String] page_token + # A page token, received from a previous MetadataService.ListContexts call. + # Provide this to retrieve the subsequent page. When paginating, all other + # provided parameters must match the call that provided the page token. ( + # Otherwise the request will fail with INVALID_ARGUMENT error.) + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListContextsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListContextsResponse] + # + # @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_metadata_store_contexts(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, 'v1beta1/{+parent}/contexts', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListContextsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListContextsResponse + 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 a stored Context. + # @param [String] name + # Immutable. The resource name of the Context. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] google_cloud_aiplatform_v1beta1_context_object + # @param [Boolean] allow_missing + # If set to true, and the Context is not found, a new Context is created. + # @param [String] update_mask + # Optional. A FieldMask indicating which fields should 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] + # + # @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_metadata_store_context(name, google_cloud_aiplatform_v1beta1_context_object = nil, allow_missing: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context::Representation + command.request_object = google_cloud_aiplatform_v1beta1_context_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context + command.params['name'] = name unless name.nil? + command.query['allowMissing'] = allow_missing unless allow_missing.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 + + # Purges Contexts. + # @param [String] parent + # Required. The metadata store to purge Contexts from. Format: `projects/` + # project`/locations/`location`/metadataStores/`metadatastore`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeContextsRequest] google_cloud_aiplatform_v1beta1_purge_contexts_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 purge_project_location_metadata_store_context(parent, google_cloud_aiplatform_v1beta1_purge_contexts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/contexts:purge', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeContextsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_purge_contexts_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Retrieves Artifacts and Executions within the specified Context, connected by + # Event edges and returned as a LineageSubgraph. + # @param [String] context + # Required. The resource name of the Context whose Artifacts and Executions + # should be retrieved as a LineageSubgraph. Format: `projects/`project`/ + # locations/`location`/metadataStores/`metadatastore`/contexts/`context`` The + # request may error with FAILED_PRECONDITION if the number of Artifacts, the + # number of Executions, or the number of Events that would be returned for the + # Context exceeds 1000. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph] + # + # @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_project_location_metadata_store_context_context_lineage_subgraph(context, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+context}:queryContextLineageSubgraph', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph + command.params['context'] = context unless context.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Remove a set of children contexts from a parent Context. If any of the child + # Contexts were NOT added to the parent Context, they are simply skipped. + # @param [String] context + # Required. The resource name of the parent Context. Format: `projects/`project`/ + # locations/`location`/metadataStores/`metadatastore`/contexts/`context`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest] google_cloud_aiplatform_v1beta1_remove_context_children_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse] + # + # @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 remove_project_location_metadata_store_context_context_children(context, google_cloud_aiplatform_v1beta1_remove_context_children_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+context}:removeContextChildren', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_remove_context_children_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse + command.params['context'] = context unless context.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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_context_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_metadata_store_context_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Adds Events to the specified Execution. An Event indicates whether an Artifact + # was used as an input or output for an Execution. If an Event already exists + # between the Execution and the Artifact, the Event is skipped. + # @param [String] execution + # Required. The resource name of the Execution that the Events connect Artifacts + # with. Format: `projects/`project`/locations/`location`/metadataStores/` + # metadatastore`/executions/`execution`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddExecutionEventsRequest] google_cloud_aiplatform_v1beta1_add_execution_events_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddExecutionEventsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddExecutionEventsResponse] + # + # @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 add_project_location_metadata_store_execution_execution_events(execution, google_cloud_aiplatform_v1beta1_add_execution_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+execution}:addExecutionEvents', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddExecutionEventsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_add_execution_events_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddExecutionEventsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddExecutionEventsResponse + command.params['execution'] = execution unless execution.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 an Execution associated with a MetadataStore. + # @param [String] parent + # Required. The resource name of the MetadataStore where the Execution should be + # created. Format: `projects/`project`/locations/`location`/metadataStores/` + # metadatastore`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] google_cloud_aiplatform_v1beta1_execution_object + # @param [String] execution_id + # The `execution` portion of the resource name with the format: `projects/` + # project`/locations/`location`/metadataStores/`metadatastore`/executions/` + # execution`` If not provided, the Execution's ID will be a UUID generated by + # the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. + # Must be unique across all Executions in the parent MetadataStore. (Otherwise + # the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller + # can't view the preexisting Execution.) + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] + # + # @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_metadata_store_execution(parent, google_cloud_aiplatform_v1beta1_execution_object = nil, execution_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/executions', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution::Representation + command.request_object = google_cloud_aiplatform_v1beta1_execution_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution + command.params['parent'] = parent unless parent.nil? + command.query['executionId'] = execution_id unless execution_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 + + # Deletes an Execution. + # @param [String] name + # Required. The resource name of the Execution to delete. Format: `projects/` + # project`/locations/`location`/metadataStores/`metadatastore`/executions/` + # execution`` + # @param [String] etag + # Optional. The etag of the Execution to delete. If this is provided, it must + # match the server's etag. Otherwise, the request will fail with a + # FAILED_PRECONDITION. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_execution(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['etag'] = etag unless etag.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Retrieves a specific Execution. + # @param [String] name + # Required. The resource name of the Execution to retrieve. Format: `projects/` + # project`/locations/`location`/metadataStores/`metadatastore`/executions/` + # execution`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] + # + # @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_metadata_store_execution(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution + 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 Executions in the MetadataStore. + # @param [String] parent + # Required. The MetadataStore whose Executions should be listed. Format: ` + # projects/`project`/locations/`location`/metadataStores/`metadatastore`` + # @param [String] filter + # Filter specifying the boolean condition for the Executions to satisfy in order + # to be part of the result set. The syntax to define filter query is based on + # https://google.aip.dev/160. Following are the supported set of filters: * ** + # Attribute filtering**: For example: `display_name = "test"`. Supported fields + # include: `name`, `display_name`, `state`, `schema_title`, `create_time`, and ` + # update_time`. Time fields, such as `create_time` and `update_time`, require + # values specified in RFC-3339 format. For example: `create_time = "2020-11- + # 19T11:30:00-04:00"`. * **Metadata field**: To filter on metadata fields use + # traversal operation as follows: `metadata..` For example: `metadata.field_1. + # number_value = 10.0` In case the field name contains special characters (such + # as colon), one can embed it inside double quote. For example: `metadata."field: + # 1".number_value = 10.0` * **Context based filtering**: To filter Executions + # based on the contexts to which they belong use the function operator with the + # full resource name: `in_context()`. For example: `in_context("projects// + # locations//metadataStores//contexts/")` Each of the above supported filters + # can be combined together using logical operators (`AND` & `OR`). Maximum + # nested expression depth allowed is 5. For example: `display_name = "test" AND + # metadata.field1.bool_value = true`. + # @param [String] order_by + # How the list of messages is ordered. Specify the values to order by and an + # ordering operation. The default sorting order is ascending. To specify + # descending order for a field, users append a " desc" suffix; for example: "foo + # desc, bar". Subfields are specified with a `.` character, such as foo.bar. see + # https://google.aip.dev/132#ordering for more details. + # @param [Fixnum] page_size + # The maximum number of Executions to return. The service may return fewer. Must + # be in range 1-100, inclusive. Defaults to 100. + # @param [String] page_token + # A page token, received from a previous MetadataService.ListExecutions call. + # Provide this to retrieve the subsequent page. When paginating, all other + # provided parameters must match the call that provided the page token. ( + # Otherwise the request will fail with an INVALID_ARGUMENT error.) + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExecutionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExecutionsResponse] + # + # @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_metadata_store_executions(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, 'v1beta1/{+parent}/executions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExecutionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExecutionsResponse + 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 a stored Execution. + # @param [String] name + # Output only. The resource name of the Execution. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] google_cloud_aiplatform_v1beta1_execution_object + # @param [Boolean] allow_missing + # If set to true, and the Execution is not found, a new Execution is created. + # @param [String] update_mask + # Optional. A FieldMask indicating which fields should 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] + # + # @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_metadata_store_execution(name, google_cloud_aiplatform_v1beta1_execution_object = nil, allow_missing: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution::Representation + command.request_object = google_cloud_aiplatform_v1beta1_execution_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution + command.params['name'] = name unless name.nil? + command.query['allowMissing'] = allow_missing unless allow_missing.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 + + # Purges Executions. + # @param [String] parent + # Required. The metadata store to purge Executions from. Format: `projects/` + # project`/locations/`location`/metadataStores/`metadatastore`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeExecutionsRequest] google_cloud_aiplatform_v1beta1_purge_executions_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 purge_project_location_metadata_store_execution(parent, google_cloud_aiplatform_v1beta1_purge_executions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/executions:purge', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeExecutionsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_purge_executions_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Obtains the set of input and output Artifacts for this Execution, in the form + # of LineageSubgraph that also contains the Execution and connecting Events. + # @param [String] execution + # Required. The resource name of the Execution whose input and output Artifacts + # should be retrieved as a LineageSubgraph. Format: `projects/`project`/ + # locations/`location`/metadataStores/`metadatastore`/executions/`execution`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph] + # + # @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_project_location_metadata_store_execution_execution_inputs_and_outputs(execution, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+execution}:queryExecutionInputsAndOutputs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph + command.params['execution'] = execution unless execution.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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_execution_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_metadata_store_execution_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Creates a MetadataSchema. + # @param [String] parent + # Required. The resource name of the MetadataStore where the MetadataSchema + # should be created. Format: `projects/`project`/locations/`location`/ + # metadataStores/`metadatastore`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema] google_cloud_aiplatform_v1beta1_metadata_schema_object + # @param [String] metadata_schema_id + # The `metadata_schema` portion of the resource name with the format: `projects/` + # project`/locations/`location`/metadataStores/`metadatastore`/metadataSchemas/` + # metadataschema`` If not provided, the MetadataStore's ID will be a UUID + # generated by the service. Must be 4-128 characters in length. Valid characters + # are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location. + # (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if + # the caller can't view the preexisting MetadataSchema.) + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema] + # + # @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_metadata_store_metadata_schema(parent, google_cloud_aiplatform_v1beta1_metadata_schema_object = nil, metadata_schema_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/metadataSchemas', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema::Representation + command.request_object = google_cloud_aiplatform_v1beta1_metadata_schema_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema + command.params['parent'] = parent unless parent.nil? + command.query['metadataSchemaId'] = metadata_schema_id unless metadata_schema_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 + + # Retrieves a specific MetadataSchema. + # @param [String] name + # Required. The resource name of the MetadataSchema to retrieve. Format: ` + # projects/`project`/locations/`location`/metadataStores/`metadatastore`/ + # metadataSchemas/`metadataschema`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema] + # + # @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_metadata_store_metadata_schema(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema + 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 MetadataSchemas. + # @param [String] parent + # Required. The MetadataStore whose MetadataSchemas should be listed. Format: ` + # projects/`project`/locations/`location`/metadataStores/`metadatastore`` + # @param [String] filter + # A query to filter available MetadataSchemas for matching results. + # @param [Fixnum] page_size + # The maximum number of MetadataSchemas to return. The service may return fewer. + # Must be in range 1-100, inclusive. Defaults to 100. + # @param [String] page_token + # A page token, received from a previous MetadataService.ListMetadataSchemas + # call. Provide this to retrieve the next page. When paginating, all other + # provided parameters must match the call that provided the page token. ( + # Otherwise the request will fail with INVALID_ARGUMENT error.) + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse] + # + # @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_metadata_store_metadata_schemas(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/metadataSchemas', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse + 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`. + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_metadata_store_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and + # datalabeling.googleapis.com to Vertex AI. + # @param [String] parent + # Required. The location of the migrated resource will live in. Format: ` + # projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest] google_cloud_aiplatform_v1beta1_batch_migrate_resources_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 batch_project_location_migratable_resource_migrate(parent, google_cloud_aiplatform_v1beta1_batch_migrate_resources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/migratableResources:batchMigrate', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_batch_migrate_resources_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Searches all of the resources in automl.googleapis.com, datalabeling. + # googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given + # location. + # @param [String] parent + # Required. The location that the migratable resources should be searched from. + # It's the Vertex AI location that the resources can be migrated to, not the + # resources' original location. Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest] google_cloud_aiplatform_v1beta1_search_migratable_resources_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse] + # + # @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 search_project_location_migratable_resources(parent, google_cloud_aiplatform_v1beta1_search_migratable_resources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/migratableResources:search', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_search_migratable_resources_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse + 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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_migratable_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_migratable_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_migratable_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_migratable_resource_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_migratable_resource_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Creates a ModelDeploymentMonitoringJob. It will run periodically on a + # configured interval. + # @param [String] parent + # Required. The parent of the ModelDeploymentMonitoringJob. Format: `projects/` + # project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob] google_cloud_aiplatform_v1beta1_model_deployment_monitoring_job_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob] + # + # @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_model_deployment_monitoring_job(parent, google_cloud_aiplatform_v1beta1_model_deployment_monitoring_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/modelDeploymentMonitoringJobs', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob::Representation + command.request_object = google_cloud_aiplatform_v1beta1_model_deployment_monitoring_job_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob + 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 a ModelDeploymentMonitoringJob. + # @param [String] name + # Required. The resource name of the model monitoring job to delete. Format: ` + # projects/`project`/locations/`location`/modelDeploymentMonitoringJobs/` + # model_deployment_monitoring_job`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_deployment_monitoring_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a ModelDeploymentMonitoringJob. + # @param [String] name + # Required. The resource name of the ModelDeploymentMonitoringJob. Format: ` + # projects/`project`/locations/`location`/modelDeploymentMonitoringJobs/` + # model_deployment_monitoring_job`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob] + # + # @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_model_deployment_monitoring_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob + 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 ModelDeploymentMonitoringJobs in a Location. + # @param [String] parent + # Required. The parent of the ModelDeploymentMonitoringJob. Format: `projects/` + # project`/locations/`location`` + # @param [String] filter + # The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + # comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * ` + # create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` + # must be in RFC 3339 format. * `labels` supports general map functions that is: + # `labels.key=value` - key:value equality `labels.key:* - key existence Some + # examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND + # display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + # * `NOT display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` * ` + # labels.keyA=valueA` * `labels.keyB:*` + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] read_mask + # Mask specifying which fields to read + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse] + # + # @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_model_deployment_monitoring_jobs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/modelDeploymentMonitoringJobs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse + 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['readMask'] = read_mask unless read_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 + + # Updates a ModelDeploymentMonitoringJob. + # @param [String] name + # Output only. Resource name of a ModelDeploymentMonitoringJob. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob] google_cloud_aiplatform_v1beta1_model_deployment_monitoring_job_object + # @param [String] update_mask + # Required. The update mask is used to specify the fields to be overwritten in + # the ModelDeploymentMonitoringJob resource by the update. The fields specified + # in the update_mask are relative to the resource, not the full request. A field + # will be overwritten if it is in the mask. If the user does not provide a mask + # then only the non-empty fields present in the request will be overwritten. Set + # the update_mask to `*` to override all fields. For the objective config, the + # user can either provide the update mask for + # model_deployment_monitoring_objective_configs or any combination of its nested + # fields, such as: model_deployment_monitoring_objective_configs. + # objective_config.training_dataset. Updatable fields: * `display_name` * ` + # model_deployment_monitoring_schedule_config` * `model_monitoring_alert_config` + # * `logging_sampling_strategy` * `labels` * `log_ttl` * ` + # enable_monitoring_pipeline_logs` . and * ` + # model_deployment_monitoring_objective_configs` . or * ` + # model_deployment_monitoring_objective_configs.objective_config. + # training_dataset` * `model_deployment_monitoring_objective_configs. + # objective_config.training_prediction_skew_detection_config` * ` + # model_deployment_monitoring_objective_configs.objective_config. + # prediction_drift_detection_config` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_model_deployment_monitoring_job(name, google_cloud_aiplatform_v1beta1_model_deployment_monitoring_job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob::Representation + command.request_object = google_cloud_aiplatform_v1beta1_model_deployment_monitoring_job_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + 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 + + # Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes + # a best effort to cancel the job. Will mark ModelDeploymentMonitoringJob.state + # to 'PAUSED'. + # @param [String] name + # Required. The resource name of the ModelDeploymentMonitoringJob to pause. + # Format: `projects/`project`/locations/`location`/modelDeploymentMonitoringJobs/ + # `model_deployment_monitoring_job`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest] google_cloud_aiplatform_v1beta1_pause_model_deployment_monitoring_job_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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 pause_project_location_model_deployment_monitoring_job(name, google_cloud_aiplatform_v1beta1_pause_model_deployment_monitoring_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:pause', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_pause_model_deployment_monitoring_job_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next + # scheduled time. A deleted ModelDeploymentMonitoringJob can't be resumed. + # @param [String] name + # Required. The resource name of the ModelDeploymentMonitoringJob to resume. + # Format: `projects/`project`/locations/`location`/modelDeploymentMonitoringJobs/ + # `model_deployment_monitoring_job`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest] google_cloud_aiplatform_v1beta1_resume_model_deployment_monitoring_job_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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 resume_project_location_model_deployment_monitoring_job(name, google_cloud_aiplatform_v1beta1_resume_model_deployment_monitoring_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:resume', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_resume_model_deployment_monitoring_job_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Searches Model Monitoring Statistics generated within a given time window. + # @param [String] model_deployment_monitoring_job + # Required. ModelDeploymentMonitoring Job resource name. Format: `projects/` + # project`/locations/`location`/modelDeploymentMonitoringJobs/` + # model_deployment_monitoring_job`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest] google_cloud_aiplatform_v1beta1_search_model_deployment_monitoring_stats_anomalies_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse] + # + # @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 search_project_location_model_deployment_monitoring_job_model_deployment_monitoring_stats_anomalies(model_deployment_monitoring_job, google_cloud_aiplatform_v1beta1_search_model_deployment_monitoring_stats_anomalies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_search_model_deployment_monitoring_stats_anomalies_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse + command.params['modelDeploymentMonitoringJob'] = model_deployment_monitoring_job unless model_deployment_monitoring_job.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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_deployment_monitoring_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_deployment_monitoring_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_deployment_monitoring_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_deployment_monitoring_job_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_model_deployment_monitoring_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Creates a ModelMonitor. + # @param [String] parent + # Required. The resource name of the Location to create the ModelMonitor in. + # Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor] google_cloud_aiplatform_v1beta1_model_monitor_object + # @param [String] model_monitor_id + # Optional. The ID to use for the Model Monitor, which will become the final + # component of the model monitor resource name. The maximum length is 63 + # characters, and valid characters are `/^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$/`. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_monitor(parent, google_cloud_aiplatform_v1beta1_model_monitor_object = nil, model_monitor_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/modelMonitors', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor::Representation + command.request_object = google_cloud_aiplatform_v1beta1_model_monitor_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['modelMonitorId'] = model_monitor_id unless model_monitor_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 + + # Deletes a ModelMonitor. + # @param [String] name + # Required. The name of the ModelMonitor resource to be deleted. Format: ` + # projects/`project`/locations/`location`/modelMonitords/`model_monitor`` + # @param [Boolean] force + # Optional. Force delete the model monitor with schedules. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_monitor(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.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 ModelMonitor. + # @param [String] name + # Required. The name of the ModelMonitor resource. Format: `projects/`project`/ + # locations/`location`/modelMonitors/`model_monitor`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor] + # + # @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_model_monitor(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor + 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 ModelMonitors in a Location. + # @param [String] parent + # Required. The resource name of the Location to list the ModelMonitors from. + # Format: `projects/`project`/locations/`location`` + # @param [String] filter + # The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitorsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitorsResponse] + # + # @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_model_monitors(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/modelMonitors', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitorsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitorsResponse + 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['readMask'] = read_mask unless read_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 + + # Updates a ModelMonitor. + # @param [String] name + # Immutable. Resource name of the ModelMonitor. Format: `projects/`project`/ + # locations/`location`/modelMonitors/`model_monitor``. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor] google_cloud_aiplatform_v1beta1_model_monitor_object + # @param [String] update_mask + # Required. Mask specifying which fields to update. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_model_monitor(name, google_cloud_aiplatform_v1beta1_model_monitor_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor::Representation + command.request_object = google_cloud_aiplatform_v1beta1_model_monitor_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + 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 + + # Returns the Model Monitoring alerts. + # @param [String] model_monitor + # Required. ModelMonitor resource name. Format: `projects/`project`/locations/` + # location`/modelMonitors/`model_monitor`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest] google_cloud_aiplatform_v1beta1_search_model_monitoring_alerts_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse] + # + # @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 search_project_location_model_monitor_model_monitoring_alerts(model_monitor, google_cloud_aiplatform_v1beta1_search_model_monitoring_alerts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+modelMonitor}:searchModelMonitoringAlerts', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_search_model_monitoring_alerts_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse + command.params['modelMonitor'] = model_monitor unless model_monitor.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Searches Model Monitoring Stats generated within a given time window. + # @param [String] model_monitor + # Required. ModelMonitor resource name. Format: `projects/`project`/locations/` + # location`/modelMonitors/`model_monitor`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest] google_cloud_aiplatform_v1beta1_search_model_monitoring_stats_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse] + # + # @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 search_project_location_model_monitor_model_monitoring_stats(model_monitor, google_cloud_aiplatform_v1beta1_search_model_monitoring_stats_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+modelMonitor}:searchModelMonitoringStats', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_search_model_monitoring_stats_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse + command.params['modelMonitor'] = model_monitor unless model_monitor.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 ModelMonitoringJob. + # @param [String] parent + # Required. The parent of the ModelMonitoringJob. Format: `projects/`project`/ + # locations/`location`/modelMoniitors/`model_monitor`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] google_cloud_aiplatform_v1beta1_model_monitoring_job_object + # @param [String] model_monitoring_job_id + # Optional. The ID to use for the Model Monitoring Job, which will become the + # final component of the model monitoring job resource name. The maximum length + # is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$/ + # `. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] + # + # @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_model_monitor_model_monitoring_job(parent, google_cloud_aiplatform_v1beta1_model_monitoring_job_object = nil, model_monitoring_job_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/modelMonitoringJobs', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob::Representation + command.request_object = google_cloud_aiplatform_v1beta1_model_monitoring_job_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob + command.params['parent'] = parent unless parent.nil? + command.query['modelMonitoringJobId'] = model_monitoring_job_id unless model_monitoring_job_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 + + # Deletes a ModelMonitoringJob. + # @param [String] name + # Required. The resource name of the model monitoring job to delete. Format: ` + # projects/`project`/locations/`location`/modelMonitors/`model_monitor`/ + # modelMonitoringJobs/`model_monitoring_job`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_monitor_model_monitoring_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a ModelMonitoringJob. + # @param [String] name + # Required. The resource name of the ModelMonitoringJob. Format: `projects/` + # project`/locations/`location`/modelMonitors/`model_monitor`/ + # modelMonitoringJobs/`model_monitoring_job`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] + # + # @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_model_monitor_model_monitoring_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob + 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 ModelMonitoringJobs. Callers may choose to read across multiple Monitors + # as per [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash + # character) as a wildcard character instead of modelMonitor id in the parent. + # Format `projects/`project_id`/locations/`location`/moodelMonitors/-/ + # modelMonitoringJobs` + # @param [String] parent + # Required. The parent of the ModelMonitoringJob. Format: `projects/`project`/ + # locations/`location`/modelMonitors/`model_monitor`` + # @param [String] filter + # The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] read_mask + # Mask specifying which fields to read + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse] + # + # @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_model_monitor_model_monitoring_jobs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/modelMonitoringJobs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse + 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['readMask'] = read_mask unless read_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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_monitor_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + # 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 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 + # 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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 wait_project_location_model_monitor_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Copies an already existing Vertex AI Model into the specified Location. The + # source Model must exist in the same Project. When copying custom Models, the + # users themselves are responsible for Model.metadata content to be region- + # agnostic, as well as making sure that any resources (e.g. files) it depends on + # remain accessible. + # @param [String] parent + # Required. The resource name of the Location into which to copy the Model. + # Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CopyModelRequest] google_cloud_aiplatform_v1beta1_copy_model_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 copy_project_location_model(parent, google_cloud_aiplatform_v1beta1_copy_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/models:copy', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CopyModelRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_copy_model_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a Model. A model cannot be deleted if any Endpoint resource has a + # DeployedModel based on the model in its deployed_models field. + # @param [String] name + # Required. The name of the Model resource to be deleted. Format: `projects/` + # project`/locations/`location`/models/`model`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Deletes a Model version. Model version can only be deleted if there are no + # DeployedModels created from it. Deleting the only version in the Model is not + # allowed. Use DeleteModel for deleting the Model instead. + # @param [String] name + # Required. The name of the model version to be deleted, with a version ID + # explicitly included. Example: `projects/`project`/locations/`location`/models/` + # model`@1234` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_model_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}:deleteVersion', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Exports a trained, exportable Model to a location specified by the user. A + # Model is considered to be exportable if it has at least one supported export + # format. + # @param [String] name + # Required. The resource name of the Model to export. The resource name may + # contain version id or version alias to specify the version, if no version is + # specified, the default version will be exported. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportModelRequest] google_cloud_aiplatform_v1beta1_export_model_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 export_project_location_model(name, google_cloud_aiplatform_v1beta1_export_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:export', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportModelRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_export_model_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a Model. + # @param [String] name + # Required. The name of the Model resource. Format: `projects/`project`/ + # locations/`location`/models/`model`` In order to retrieve a specific version + # of the model, also provide the version ID or version alias. Example: `projects/ + # `project`/locations/`location`/models/`model`@2` or `projects/`project`/ + # locations/`location`/models/`model`@golden` If no version ID or alias is + # specified, the "default" version will be returned. The "default" version alias + # is created for the first version of the model, and can be moved to other + # versions later on. There will be exactly one default version. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] + # + # @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_model(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model + 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 access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The maximum policy version that will be used to format the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. Requests for policies with any conditional role bindings must + # specify version 3. Policies with no conditional role bindings may specify any + # valid value or leave the field unset. The policy in the response might use the + # policy version that you specified, or it might use a lower policy version. For + # example, if you specify version 3, but the policy has no conditional role + # bindings, the response uses version 1. To learn which resources support + # conditions in their IAM policies, see the [IAM documentation](https://cloud. + # google.com/iam/help/conditions/resource-policies). + # @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::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # + # @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_model_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.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 Models in a Location. + # @param [String] parent + # Required. The resource name of the Location to list the Models from. Format: ` + # projects/`project`/locations/`location`` + # @param [String] filter + # An expression for filtering the results of the request. For field names both + # snake_case and camelCase are supported. * `model` supports = and !=. `model` + # represents the Model ID, i.e. the last segment of the Model's resource name. * + # `display_name` supports = and != * `labels` supports general map functions + # that is: * `labels.key=value` - key:value equality * `labels.key:* or labels: + # key - key existence * A key including a space must be quoted. `labels."a key"`. + # * `base_model_name` only supports = Some examples: * `model=1234` * ` + # displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text- + # bison"` + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. Typically obtained via ListModelsResponse. + # next_page_token of the previous ModelService.ListModels call. + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelsResponse] + # + # @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_models(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/models', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelsResponse + 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['readMask'] = read_mask unless read_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 checkpoints of the specified model version. + # @param [String] name + # Required. The name of the model version to list checkpoints for. `projects/` + # project`/locations/`location`/models/`model`@`version`` Example: `projects/` + # project`/locations/`location`/models/`model`@2` or `projects/`project`/ + # locations/`location`/models/`model`@golden` If no version ID or alias is + # specified, the latest version will be used. + # @param [Fixnum] page_size + # Optional. The standard list page size. + # @param [String] page_token + # Optional. The standard list page token. Typically obtained via next_page_token + # of the previous ListModelVersionCheckpoints 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionCheckpointsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionCheckpointsResponse] + # + # @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_model_checkpoints(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}:listCheckpoints', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionCheckpointsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionCheckpointsResponse + command.params['name'] = name unless name.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 + + # Lists versions of the specified model. + # @param [String] name + # Required. The name of the model to list versions for. + # @param [String] filter + # An expression for filtering the results of the request. For field names both + # snake_case and camelCase are supported. * `labels` supports general map + # functions that is: * `labels.key=value` - key:value equality * `labels.key:* + # or labels:key - key existence * A key including a space must be quoted. ` + # labels."a key"`. Some examples: * `labels.myKey="myValue"` + # @param [String] order_by + # 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: `update_time asc, create_time desc`. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. Typically obtained via next_page_token of the + # previous ListModelVersions call. + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionsResponse] + # + # @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_model_versions(name, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}:listVersions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionsResponse + command.params['name'] = name unless name.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['readMask'] = read_mask unless read_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 + + # Merges a set of aliases for a Model version. + # @param [String] name + # Required. The name of the model version to merge aliases, with a version ID + # explicitly included. Example: `projects/`project`/locations/`location`/models/` + # model`@1234` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest] google_cloud_aiplatform_v1beta1_merge_version_aliases_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] + # + # @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 merge_project_location_model_version_aliases(name, google_cloud_aiplatform_v1beta1_merge_version_aliases_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:mergeVersionAliases', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_merge_version_aliases_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model + 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 + + # Updates a Model. + # @param [String] name + # The resource name of the Model. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] google_cloud_aiplatform_v1beta1_model_object + # @param [String] update_mask + # Required. The update mask applies to the resource. For the `FieldMask` + # definition, see google.protobuf.FieldMask. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] + # + # @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_model(name, google_cloud_aiplatform_v1beta1_model_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model::Representation + command.request_object = google_cloud_aiplatform_v1beta1_model_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model + 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 + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_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::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # + # @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 set_project_location_model_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation + command.request_object = google_iam_v1_set_iam_policy_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. See [ + # Resource names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Array, String] permissions + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as `*` or `storage.*`) are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). + # @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::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] + # + # @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 test_project_location_model_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['permissions'] = permissions unless permissions.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Incrementally update the dataset used for an examples model. + # @param [String] model + # Required. The resource name of the Model to update. Format: `projects/`project` + # /locations/`location`/models/`model`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest] google_cloud_aiplatform_v1beta1_update_explanation_dataset_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 update_project_location_model_explanation_dataset(model, google_cloud_aiplatform_v1beta1_update_explanation_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+model}:updateExplanationDataset', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_update_explanation_dataset_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['model'] = model unless model.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Uploads a Model artifact into Vertex AI. + # @param [String] parent + # Required. The resource name of the Location into which to upload the Model. + # Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadModelRequest] google_cloud_aiplatform_v1beta1_upload_model_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 upload_project_location_model(parent, google_cloud_aiplatform_v1beta1_upload_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/models:upload', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadModelRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_upload_model_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Gets a ModelEvaluation. + # @param [String] name + # Required. The name of the ModelEvaluation resource. Format: `projects/`project` + # /locations/`location`/models/`model`/evaluations/`evaluation`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation] + # + # @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_model_evaluation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation + 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 + + # Imports an externally generated ModelEvaluation. + # @param [String] parent + # Required. The name of the parent model resource. Format: `projects/`project`/ + # locations/`location`/models/`model`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest] google_cloud_aiplatform_v1beta1_import_model_evaluation_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation] + # + # @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 import_project_location_model_evaluation(parent, google_cloud_aiplatform_v1beta1_import_model_evaluation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/evaluations:import', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_import_model_evaluation_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation + 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 + + # Lists ModelEvaluations in a Model. + # @param [String] parent + # Required. The resource name of the Model to list the ModelEvaluations from. + # Format: `projects/`project`/locations/`location`/models/`model`` + # @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. Typically obtained via + # ListModelEvaluationsResponse.next_page_token of the previous ModelService. + # ListModelEvaluations call. + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse] + # + # @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_model_evaluations(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/evaluations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse + 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['readMask'] = read_mask unless read_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 + + # 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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_metadata_store_context(parent, google_cloud_aiplatform_v1beta1_context_object = nil, context_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/contexts', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context::Representation - command.request_object = google_cloud_aiplatform_v1beta1_context_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context - command.params['parent'] = parent unless parent.nil? - command.query['contextId'] = context_id unless context_id.nil? + def cancel_project_location_model_evaluation_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 stored Context. + # 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 - # Required. The resource name of the Context to delete. Format: `projects/` - # project`/locations/`location`/metadataStores/`metadatastore`/contexts/`context` - # ` - # @param [String] etag - # Optional. The etag of the Context to delete. If this is provided, it must - # match the server's etag. Otherwise, the request will fail with a - # FAILED_PRECONDITION. - # @param [Boolean] force - # The force deletion semantics is still undefined. Users should not use this - # field. + # 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 @@ -15722,31 +27373,28 @@ def create_project_location_metadata_store_context(parent, google_cloud_aiplatfo # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_context(name, etag: nil, force: nil, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_model_evaluation_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? - command.query['etag'] = etag unless etag.nil? - command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Retrieves a specific Context. + # 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 - # Required. The resource name of the Context to retrieve. Format: `projects/` - # project`/locations/`location`/metadataStores/`metadatastore`/contexts/`context` - # ` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15756,61 +27404,41 @@ def delete_project_location_metadata_store_context(name, etag: nil, force: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_context(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_model_evaluation_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 Contexts on the MetadataStore. - # @param [String] parent - # Required. The MetadataStore whose Contexts should be listed. Format: `projects/ - # `project`/locations/`location`/metadataStores/`metadatastore`` + # 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 - # Filter specifying the boolean condition for the Contexts to satisfy in order - # to be part of the result set. The syntax to define filter query is based on - # https://google.aip.dev/160. Following are the supported set of filters: * ** - # Attribute filtering**: For example: `display_name = "test"`. Supported fields - # include: `name`, `display_name`, `schema_title`, `create_time`, and ` - # update_time`. Time fields, such as `create_time` and `update_time`, require - # values specified in RFC-3339 format. For example: `create_time = "2020-11- - # 19T11:30:00-04:00"`. * **Metadata field**: To filter on metadata fields use - # traversal operation as follows: `metadata..`. For example: `metadata.field_1. - # number_value = 10.0`. In case the field name contains special characters (such - # as colon), one can embed it inside double quote. For example: `metadata."field: - # 1".number_value = 10.0` * **Parent Child filtering**: To filter Contexts based - # on parent-child relationship use the HAS operator as follows: ``` - # parent_contexts: "projects//locations//metadataStores//contexts/" - # child_contexts: "projects//locations//metadataStores//contexts/" ``` Each of - # the above supported filters can be combined together using logical operators (` - # AND` & `OR`). Maximum nested expression depth allowed is 5. For example: ` - # display_name = "test" AND metadata.field1.bool_value = true`. - # @param [String] order_by - # How the list of messages is ordered. Specify the values to order by and an - # ordering operation. The default sorting order is ascending. To specify - # descending order for a field, users append a " desc" suffix; for example: "foo - # desc, bar". Subfields are specified with a `.` character, such as foo.bar. see - # https://google.aip.dev/132#ordering for more details. + # The standard list filter. # @param [Fixnum] page_size - # The maximum number of Contexts to return. The service may return fewer. Must - # be in range 1-100, inclusive. Defaults to 100. + # The standard list page size. # @param [String] page_token - # A page token, received from a previous MetadataService.ListContexts call. - # Provide this to retrieve the subsequent page. When paginating, all other - # provided parameters must match the call that provided the page token. ( - # Otherwise the request will fail with INVALID_ARGUMENT error.) + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -15820,36 +27448,42 @@ def get_project_location_metadata_store_context(name, fields: nil, quota_user: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListContextsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListContextsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_contexts(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, 'v1beta1/{+parent}/contexts', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListContextsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListContextsResponse - command.params['parent'] = parent unless parent.nil? + def list_project_location_model_evaluation_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse + command.params['name'] = name unless name.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['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 - # Updates a stored Context. + # 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 - # Immutable. The resource name of the Context. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] google_cloud_aiplatform_v1beta1_context_object - # @param [Boolean] allow_missing - # If set to true, and the Context is not found, a new Context is created. - # @param [String] update_mask - # Optional. A FieldMask indicating which fields should be updated. + # 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 @@ -15859,33 +27493,31 @@ def list_project_location_metadata_store_contexts(parent, filter: nil, order_by: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context] + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_metadata_store_context(name, google_cloud_aiplatform_v1beta1_context_object = nil, allow_missing: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context::Representation - command.request_object = google_cloud_aiplatform_v1beta1_context_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Context + def wait_project_location_model_evaluation_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? - command.query['allowMissing'] = allow_missing unless allow_missing.nil? - command.query['updateMask'] = update_mask unless update_mask.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 - # Purges Contexts. + # Imports a list of externally generated EvaluatedAnnotations. # @param [String] parent - # Required. The metadata store to purge Contexts from. Format: `projects/` - # project`/locations/`location`/metadataStores/`metadatastore`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeContextsRequest] google_cloud_aiplatform_v1beta1_purge_contexts_request_object + # Required. The name of the parent ModelEvaluationSlice resource. Format: ` + # projects/`project`/locations/`location`/models/`model`/evaluations/`evaluation` + # /slices/`slice`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest] google_cloud_aiplatform_v1beta1_batch_import_evaluated_annotations_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15895,35 +27527,31 @@ def patch_project_location_metadata_store_context(name, google_cloud_aiplatform_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse] # # @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 purge_project_location_metadata_store_context(parent, google_cloud_aiplatform_v1beta1_purge_contexts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/contexts:purge', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeContextsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_purge_contexts_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def batch_project_location_model_evaluation_slice_import(parent, google_cloud_aiplatform_v1beta1_batch_import_evaluated_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}:batchImport', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_batch_import_evaluated_annotations_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse 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 - # Retrieves Artifacts and Executions within the specified Context, connected by - # Event edges and returned as a LineageSubgraph. - # @param [String] context - # Required. The resource name of the Context whose Artifacts and Executions - # should be retrieved as a LineageSubgraph. Format: `projects/`project`/ - # locations/`location`/metadataStores/`metadatastore`/contexts/`context`` The - # request may error with FAILED_PRECONDITION if the number of Artifacts, the - # number of Executions, or the number of Events that would be returned for the - # Context exceeds 1000. + # Gets a ModelEvaluationSlice. + # @param [String] name + # Required. The name of the ModelEvaluationSlice resource. Format: `projects/` + # project`/locations/`location`/models/`model`/evaluations/`evaluation`/slices/` + # slice`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15933,30 +27561,39 @@ def purge_project_location_metadata_store_context(parent, google_cloud_aiplatfor # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluationSlice] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluationSlice] # # @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_project_location_metadata_store_context_context_lineage_subgraph(context, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+context}:queryContextLineageSubgraph', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph - command.params['context'] = context unless context.nil? + def get_project_location_model_evaluation_slice(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluationSlice::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluationSlice + 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 - # Remove a set of children contexts from a parent Context. If any of the child - # Contexts were NOT added to the parent Context, they are simply skipped. - # @param [String] context - # Required. The resource name of the parent Context. Format: `projects/`project`/ - # locations/`location`/metadataStores/`metadatastore`/contexts/`context`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest] google_cloud_aiplatform_v1beta1_remove_context_children_request_object + # Lists ModelEvaluationSlices in a ModelEvaluation. + # @param [String] parent + # Required. The resource name of the ModelEvaluation to list the + # ModelEvaluationSlices from. Format: `projects/`project`/locations/`location`/ + # models/`model`/evaluations/`evaluation`` + # @param [String] filter + # The standard list filter. * `slice.dimension` - for =. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. Typically obtained via + # ListModelEvaluationSlicesResponse.next_page_token of the previous ModelService. + # ListModelEvaluationSlices call. + # @param [String] read_mask + # Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -15966,21 +27603,23 @@ def query_project_location_metadata_store_context_context_lineage_subgraph(conte # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse] # # @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 remove_project_location_metadata_store_context_context_children(context, google_cloud_aiplatform_v1beta1_remove_context_children_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+context}:removeContextChildren', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_remove_context_children_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse - command.params['context'] = context unless context.nil? + def list_project_location_model_evaluation_slices(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/slices', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse + 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['readMask'] = read_mask unless read_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -16013,7 +27652,7 @@ def remove_project_location_metadata_store_context_context_children(context, goo # @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_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_model_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -16046,7 +27685,7 @@ def cancel_project_location_metadata_store_context_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_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_model_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -16077,7 +27716,7 @@ def delete_project_location_metadata_store_context_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_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_model_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -16121,7 +27760,7 @@ def get_project_location_metadata_store_context_operation(name, fields: nil, quo # @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_metadata_store_context_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_model_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -16166,7 +27805,7 @@ def list_project_location_metadata_store_context_operations(name, filter: 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_project_location_metadata_store_context_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_model_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -16177,14 +27816,17 @@ def wait_project_location_metadata_store_context_operation(name, timeout: nil, f execute_or_queue_command(command, &block) end - # Adds Events to the specified Execution. An Event indicates whether an Artifact - # was used as an input or output for an Execution. If an Event already exists - # between the Execution and the Artifact, the Event is skipped. - # @param [String] execution - # Required. The resource name of the Execution that the Events connect Artifacts - # with. Format: `projects/`project`/locations/`location`/metadataStores/` - # metadatastore`/executions/`execution`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddExecutionEventsRequest] google_cloud_aiplatform_v1beta1_add_execution_events_request_object + # Cancels a NasJob. Starts asynchronous cancellation on the NasJob. The server + # makes a best effort to cancel the job, but success is not guaranteed. Clients + # can use JobService.GetNasJob or other methods to check whether the + # cancellation succeeded or whether the job completed despite cancellation. On + # successful cancellation, the NasJob is not deleted; instead it becomes a job + # with a NasJob.error value with a google.rpc.Status.code of 1, corresponding to + # `Code.CANCELLED`, and NasJob.state is set to `CANCELLED`. + # @param [String] name + # Required. The name of the NasJob to cancel. Format: `projects/`project`/ + # locations/`location`/nasJobs/`nas_job`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelNasJobRequest] google_cloud_aiplatform_v1beta1_cancel_nas_job_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16194,40 +27836,31 @@ def wait_project_location_metadata_store_context_operation(name, timeout: nil, f # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddExecutionEventsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddExecutionEventsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 add_project_location_metadata_store_execution_execution_events(execution, google_cloud_aiplatform_v1beta1_add_execution_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+execution}:addExecutionEvents', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddExecutionEventsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_add_execution_events_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddExecutionEventsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddExecutionEventsResponse - command.params['execution'] = execution unless execution.nil? + def cancel_project_location_nas_job(name, google_cloud_aiplatform_v1beta1_cancel_nas_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelNasJobRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_cancel_nas_job_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Creates an Execution associated with a MetadataStore. + # Creates a NasJob # @param [String] parent - # Required. The resource name of the MetadataStore where the Execution should be - # created. Format: `projects/`project`/locations/`location`/metadataStores/` - # metadatastore`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] google_cloud_aiplatform_v1beta1_execution_object - # @param [String] execution_id - # The `execution` portion of the resource name with the format: `projects/` - # project`/locations/`location`/metadataStores/`metadatastore`/executions/` - # execution`` If not provided, the Execution's ID will be a UUID generated by - # the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. - # Must be unique across all Executions in the parent MetadataStore. (Otherwise - # the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller - # can't view the preexisting Execution.) + # Required. The resource name of the Location to create the NasJob in. Format: ` + # projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob] google_cloud_aiplatform_v1beta1_nas_job_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16237,36 +27870,217 @@ def add_project_location_metadata_store_execution_execution_events(execution, go # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob] # # @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_metadata_store_execution(parent, google_cloud_aiplatform_v1beta1_execution_object = nil, execution_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/executions', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution::Representation - command.request_object = google_cloud_aiplatform_v1beta1_execution_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution + def create_project_location_nas_job(parent, google_cloud_aiplatform_v1beta1_nas_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/nasJobs', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob::Representation + command.request_object = google_cloud_aiplatform_v1beta1_nas_job_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob + 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 a NasJob. + # @param [String] name + # Required. The name of the NasJob resource to be deleted. Format: `projects/` + # project`/locations/`location`/nasJobs/`nas_job`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_nas_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a NasJob + # @param [String] name + # Required. The name of the NasJob resource. Format: `projects/`project`/ + # locations/`location`/nasJobs/`nas_job`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob] + # + # @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_nas_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob + 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 NasJobs in a Location. + # @param [String] parent + # Required. The resource name of the Location to list the NasJobs from. Format: ` + # projects/`project`/locations/`location`` + # @param [String] filter + # The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + # comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * ` + # create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` + # must be in RFC 3339 format. * `labels` supports general map functions that is: + # `labels.key=value` - key:value equality `labels.key:* - key existence Some + # examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND + # display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + # * `NOT display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` * ` + # labels.keyA=valueA` * `labels.keyB:*` + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. Typically obtained via ListNasJobsResponse. + # next_page_token of the previous JobService.ListNasJobs call. + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasJobsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasJobsResponse] + # + # @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_nas_jobs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/nasJobs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasJobsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasJobsResponse + 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['readMask'] = read_mask unless read_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 + + # Gets a NasTrialDetail. + # @param [String] name + # Required. The name of the NasTrialDetail resource. Format: `projects/`project`/ + # locations/`location`/nasJobs/`nas_job`/nasTrialDetails/`nas_trial_detail`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasTrialDetail] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasTrialDetail] + # + # @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_nas_job_nas_trial_detail(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasTrialDetail::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasTrialDetail + 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 + + # List top NasTrialDetails of a NasJob. + # @param [String] parent + # Required. The name of the NasJob resource. Format: `projects/`project`/ + # locations/`location`/nasJobs/`nas_job`` + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. Typically obtained via + # ListNasTrialDetailsResponse.next_page_token of the previous JobService. + # ListNasTrialDetails 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse] + # + # @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_nas_job_nas_trial_details(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/nasTrialDetails', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse command.params['parent'] = parent unless parent.nil? - command.query['executionId'] = execution_id unless execution_id.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 - # Deletes an Execution. - # @param [String] name - # Required. The resource name of the Execution to delete. Format: `projects/` - # project`/locations/`location`/metadataStores/`metadatastore`/executions/` - # execution`` - # @param [String] etag - # Optional. The etag of the Execution to delete. If this is provided, it must - # match the server's etag. Otherwise, the request will fail with a - # FAILED_PRECONDITION. + # Creates a NotebookExecutionJob. + # @param [String] parent + # Required. The resource name of the Location to create the NotebookExecutionJob. + # Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob] google_cloud_aiplatform_v1beta1_notebook_execution_job_object + # @param [String] notebook_execution_job_id + # Optional. User specified ID for the NotebookExecutionJob. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16284,22 +28098,22 @@ def create_project_location_metadata_store_execution(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_metadata_store_execution(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def create_project_location_notebook_execution_job(parent, google_cloud_aiplatform_v1beta1_notebook_execution_job_object = nil, notebook_execution_job_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/notebookExecutionJobs', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob::Representation + command.request_object = google_cloud_aiplatform_v1beta1_notebook_execution_job_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? - command.query['etag'] = etag unless etag.nil? + command.params['parent'] = parent unless parent.nil? + command.query['notebookExecutionJobId'] = notebook_execution_job_id unless notebook_execution_job_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 - # Retrieves a specific Execution. + # Deletes a NotebookExecutionJob. # @param [String] name - # Required. The resource name of the Execution to retrieve. Format: `projects/` - # project`/locations/`location`/metadataStores/`metadatastore`/executions/` - # execution`` + # Required. The name of the NotebookExecutionJob resource to be deleted. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16309,61 +28123,33 @@ def delete_project_location_metadata_store_execution(name, etag: nil, fields: ni # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_execution(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution + def delete_project_location_notebook_execution_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 Executions in the MetadataStore. - # @param [String] parent - # Required. The MetadataStore whose Executions should be listed. Format: ` - # projects/`project`/locations/`location`/metadataStores/`metadatastore`` - # @param [String] filter - # Filter specifying the boolean condition for the Executions to satisfy in order - # to be part of the result set. The syntax to define filter query is based on - # https://google.aip.dev/160. Following are the supported set of filters: * ** - # Attribute filtering**: For example: `display_name = "test"`. Supported fields - # include: `name`, `display_name`, `state`, `schema_title`, `create_time`, and ` - # update_time`. Time fields, such as `create_time` and `update_time`, require - # values specified in RFC-3339 format. For example: `create_time = "2020-11- - # 19T11:30:00-04:00"`. * **Metadata field**: To filter on metadata fields use - # traversal operation as follows: `metadata..` For example: `metadata.field_1. - # number_value = 10.0` In case the field name contains special characters (such - # as colon), one can embed it inside double quote. For example: `metadata."field: - # 1".number_value = 10.0` * **Context based filtering**: To filter Executions - # based on the contexts to which they belong use the function operator with the - # full resource name: `in_context()`. For example: `in_context("projects// - # locations//metadataStores//contexts/")` Each of the above supported filters - # can be combined together using logical operators (`AND` & `OR`). Maximum - # nested expression depth allowed is 5. For example: `display_name = "test" AND - # metadata.field1.bool_value = true`. - # @param [String] order_by - # How the list of messages is ordered. Specify the values to order by and an - # ordering operation. The default sorting order is ascending. To specify - # descending order for a field, users append a " desc" suffix; for example: "foo - # desc, bar". Subfields are specified with a `.` character, such as foo.bar. see - # https://google.aip.dev/132#ordering for more details. - # @param [Fixnum] page_size - # The maximum number of Executions to return. The service may return fewer. Must - # be in range 1-100, inclusive. Defaults to 100. - # @param [String] page_token - # A page token, received from a previous MetadataService.ListExecutions call. - # Provide this to retrieve the subsequent page. When paginating, all other - # provided parameters must match the call that provided the page token. ( - # Otherwise the request will fail with an INVALID_ARGUMENT error.) + # Internal only: Called from Compute Engine instance to obtain EUC for owner + # Anonymous access: authenticates caller using VM identity JWT. Design doc: go/ + # colab-on-vertex-euc-dd + # @param [String] name + # Required. The name of the resource requesting the OAuth2 token. Format: ` + # projects/`project`/locations/`location`/notebookRuntimes/`notebook_runtime`` ` + # projects/`project`/locations/`location`/notebookExecutionJobs/` + # notebook_execution_job`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest] google_cloud_aiplatform_v1beta1_generate_access_token_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16373,36 +28159,31 @@ def get_project_location_metadata_store_execution(name, fields: nil, quota_user: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExecutionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExecutionsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse] # # @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_metadata_store_executions(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, 'v1beta1/{+parent}/executions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExecutionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExecutionsResponse - 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? + def generate_project_location_notebook_execution_job_access_token(name, google_cloud_aiplatform_v1beta1_generate_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:generateAccessToken', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_access_token_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse + 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 - # Updates a stored Execution. + # Gets a NotebookExecutionJob. # @param [String] name - # Output only. The resource name of the Execution. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] google_cloud_aiplatform_v1beta1_execution_object - # @param [Boolean] allow_missing - # If set to true, and the Execution is not found, a new Execution is created. - # @param [String] update_mask - # Optional. A FieldMask indicating which fields should be updated. + # Required. The name of the NotebookExecutionJob resource. + # @param [String] view + # Optional. The NotebookExecutionJob view. Defaults to BASIC. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16412,33 +28193,50 @@ def list_project_location_metadata_store_executions(parent, filter: nil, order_b # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob] # # @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_metadata_store_execution(name, google_cloud_aiplatform_v1beta1_execution_object = nil, allow_missing: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution::Representation - command.request_object = google_cloud_aiplatform_v1beta1_execution_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Execution + def get_project_location_notebook_execution_job(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob command.params['name'] = name unless name.nil? - command.query['allowMissing'] = allow_missing unless allow_missing.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Purges Executions. + # Lists NotebookExecutionJobs in a Location. # @param [String] parent - # Required. The metadata store to purge Executions from. Format: `projects/` - # project`/locations/`location`/metadataStores/`metadatastore`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeExecutionsRequest] google_cloud_aiplatform_v1beta1_purge_executions_request_object + # Required. The resource name of the Location from which to list the + # NotebookExecutionJobs. Format: `projects/`project`/locations/`location`` + # @param [String] filter + # Optional. An expression for filtering the results of the request. For field + # names both snake_case and camelCase are supported. * `notebookExecutionJob` + # supports = and !=. `notebookExecutionJob` represents the NotebookExecutionJob + # ID. * `displayName` supports = and != and regex. * `schedule` supports = and != + # and regex. Some examples: * `notebookExecutionJob="123"` * ` + # notebookExecutionJob="my-execution-job"` * `displayName="myDisplayName"` and ` + # displayName=~"myDisplayNameRegex"` + # @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: * ` + # display_name` * `create_time` * `update_time` Example: `display_name, + # create_time desc`. + # @param [Fixnum] page_size + # Optional. The standard list page size. + # @param [String] page_token + # Optional. The standard list page token. Typically obtained via + # ListNotebookExecutionJobsResponse.next_page_token of the previous + # NotebookService.ListNotebookExecutionJobs call. + # @param [String] view + # Optional. The NotebookExecutionJob view. Defaults to BASIC. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16448,32 +28246,34 @@ def patch_project_location_metadata_store_execution(name, google_cloud_aiplatfor # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse] # # @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 purge_project_location_metadata_store_execution(parent, google_cloud_aiplatform_v1beta1_purge_executions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/executions:purge', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PurgeExecutionsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_purge_executions_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def list_project_location_notebook_execution_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/notebookExecutionJobs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse 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['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Obtains the set of input and output Artifacts for this Execution, in the form - # of LineageSubgraph that also contains the Execution and connecting Events. - # @param [String] execution - # Required. The resource name of the Execution whose input and output Artifacts - # should be retrieved as a LineageSubgraph. Format: `projects/`project`/ - # locations/`location`/metadataStores/`metadatastore`/executions/`execution`` + # + # @param [String] name + # Required. The name of the NotebookExecutionJob resource. Format: `projects/` + # project`/locations/`location`/notebookExecutionJobs/`notebook_execution_jobs`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportExecutionEventRequest] google_cloud_aiplatform_v1beta1_report_execution_event_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16483,19 +28283,21 @@ def purge_project_location_metadata_store_execution(parent, google_cloud_aiplatf # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportExecutionEventResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportExecutionEventResponse] # # @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_project_location_metadata_store_execution_execution_inputs_and_outputs(execution, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+execution}:queryExecutionInputsAndOutputs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LineageSubgraph - command.params['execution'] = execution unless execution.nil? + def report_project_location_notebook_execution_job_event(name, google_cloud_aiplatform_v1beta1_report_execution_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:reportEvent', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportExecutionEventRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_report_execution_event_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportExecutionEventResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportExecutionEventResponse + 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) @@ -16528,7 +28330,7 @@ def query_project_location_metadata_store_execution_execution_inputs_and_outputs # @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_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -16561,7 +28363,7 @@ def cancel_project_location_metadata_store_execution_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_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -16592,7 +28394,7 @@ def delete_project_location_metadata_store_execution_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_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -16636,7 +28438,7 @@ def get_project_location_metadata_store_execution_operation(name, fields: nil, q # @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_metadata_store_execution_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_notebook_execution_job_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -16681,7 +28483,7 @@ def list_project_location_metadata_store_execution_operations(name, filter: 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 wait_project_location_metadata_store_execution_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_notebook_execution_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -16692,96 +28494,13 @@ def wait_project_location_metadata_store_execution_operation(name, timeout: nil, execute_or_queue_command(command, &block) end - # Creates a MetadataSchema. - # @param [String] parent - # Required. The resource name of the MetadataStore where the MetadataSchema - # should be created. Format: `projects/`project`/locations/`location`/ - # metadataStores/`metadatastore`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema] google_cloud_aiplatform_v1beta1_metadata_schema_object - # @param [String] metadata_schema_id - # The `metadata_schema` portion of the resource name with the format: `projects/` - # project`/locations/`location`/metadataStores/`metadatastore`/metadataSchemas/` - # metadataschema`` If not provided, the MetadataStore's ID will be a UUID - # generated by the service. Must be 4-128 characters in length. Valid characters - # are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location. - # (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if - # the caller can't view the preexisting MetadataSchema.) - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema] - # - # @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_metadata_store_metadata_schema(parent, google_cloud_aiplatform_v1beta1_metadata_schema_object = nil, metadata_schema_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/metadataSchemas', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema::Representation - command.request_object = google_cloud_aiplatform_v1beta1_metadata_schema_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema - command.params['parent'] = parent unless parent.nil? - command.query['metadataSchemaId'] = metadata_schema_id unless metadata_schema_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 - - # Retrieves a specific MetadataSchema. - # @param [String] name - # Required. The resource name of the MetadataSchema to retrieve. Format: ` - # projects/`project`/locations/`location`/metadataStores/`metadatastore`/ - # metadataSchemas/`metadataschema`` - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema] - # - # @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_metadata_store_metadata_schema(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MetadataSchema - 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 MetadataSchemas. + # Creates a NotebookRuntimeTemplate. # @param [String] parent - # Required. The MetadataStore whose MetadataSchemas should be listed. Format: ` - # projects/`project`/locations/`location`/metadataStores/`metadatastore`` - # @param [String] filter - # A query to filter available MetadataSchemas for matching results. - # @param [Fixnum] page_size - # The maximum number of MetadataSchemas to return. The service may return fewer. - # Must be in range 1-100, inclusive. Defaults to 100. - # @param [String] page_token - # A page token, received from a previous MetadataService.ListMetadataSchemas - # call. Provide this to retrieve the next page. When paginating, all other - # provided parameters must match the call that provided the page token. ( - # Otherwise the request will fail with INVALID_ARGUMENT error.) + # Required. The resource name of the Location to create the + # NotebookRuntimeTemplate. Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate] google_cloud_aiplatform_v1beta1_notebook_runtime_template_object + # @param [String] notebook_runtime_template_id + # Optional. User specified ID for the notebook runtime template. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16791,37 +28510,32 @@ def get_project_location_metadata_store_metadata_schema(name, fields: nil, quota # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse] + # @return [Google::Apis::AiplatformV1beta1::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_metadata_store_metadata_schemas(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/metadataSchemas', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse + def create_project_location_notebook_runtime_template(parent, google_cloud_aiplatform_v1beta1_notebook_runtime_template_object = nil, notebook_runtime_template_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/notebookRuntimeTemplates', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate::Representation + command.request_object = google_cloud_aiplatform_v1beta1_notebook_runtime_template_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation 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['notebookRuntimeTemplateId'] = notebook_runtime_template_id unless notebook_runtime_template_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 - # 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`. + # Deletes a NotebookRuntimeTemplate. # @param [String] name - # The name of the operation resource to be cancelled. + # Required. The name of the NotebookRuntimeTemplate resource to be deleted. + # Format: `projects/`project`/locations/`location`/notebookRuntimeTemplates/` + # notebook_runtime_template`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16831,30 +28545,29 @@ def list_project_location_metadata_store_metadata_schemas(parent, filter: nil, p # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::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 cancel_project_location_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def delete_project_location_notebook_runtime_template(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # 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`. + # Gets a NotebookRuntimeTemplate. # @param [String] name - # The name of the operation resource to be deleted. + # Required. The name of the NotebookRuntimeTemplate resource. Format: `projects/` + # project`/locations/`location`/notebookRuntimeTemplates/` + # notebook_runtime_template`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16864,28 +28577,41 @@ def cancel_project_location_metadata_store_operation(name, fields: nil, quota_us # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate] # # @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_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def get_project_location_notebook_runtime_template(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate 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. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The maximum policy version that will be used to format the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. Requests for policies with any conditional role bindings must + # specify version 3. Policies with no conditional role bindings may specify any + # valid value or leave the field unset. The policy in the response might use the + # policy version that you specified, or it might use a lower policy version. For + # example, if you specify version 3, but the policy has no conditional role + # bindings, the response uses version 1. To learn which resources support + # conditions in their IAM policies, see the [IAM documentation](https://cloud. + # google.com/iam/help/conditions/resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16895,41 +28621,56 @@ def delete_project_location_metadata_store_operation(name, fields: nil, quota_us # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] # # @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_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + def get_project_location_notebook_runtime_template_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.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. + # Lists NotebookRuntimeTemplates in a Location. + # @param [String] parent + # Required. The resource name of the Location from which to list the + # NotebookRuntimeTemplates. Format: `projects/`project`/locations/`location`` # @param [String] filter - # The standard list filter. + # Optional. An expression for filtering the results of the request. For field + # names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` + # supports = and !=. `notebookRuntimeTemplate` represents the + # NotebookRuntimeTemplate ID, i.e. the last segment of the + # NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * ` + # labels` supports general map functions that is: * `labels.key=value` - key: + # value equality * `labels.key:* or labels:key - key existence * A key including + # a space must be quoted. `labels."a key"`. * `notebookRuntimeType` supports = + # and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. * `machineType` + # supports = and !=. * `acceleratorType` supports = and !=. Some examples: * ` + # notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName=" + # myDisplayName"` * `labels.myKey="myValue"` * `notebookRuntimeType=USER_DEFINED` + # * `machineType=e2-standard-4` * `acceleratorType=NVIDIA_TESLA_T4` + # @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: * ` + # display_name` * `create_time` * `update_time` Example: `display_name, + # create_time desc`. # @param [Fixnum] page_size - # The standard list page size. + # Optional. 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 e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # Optional. The standard list page token. Typically obtained via + # ListNotebookRuntimeTemplatesResponse.next_page_token of the previous + # NotebookService.ListNotebookRuntimeTemplates call. + # @param [String] read_mask + # Optional. Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16939,42 +28680,37 @@ def get_project_location_metadata_store_operation(name, fields: nil, quota_user: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse] # # @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_metadata_store_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, 'v1beta1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse - command.params['name'] = name unless name.nil? + def list_project_location_notebook_runtime_templates(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/notebookRuntimeTemplates', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse + 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['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? + command.query['readMask'] = read_mask unless read_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 - # 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. + # Updates a NotebookRuntimeTemplate. # @param [String] name - # 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. + # The resource name of the NotebookRuntimeTemplate. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate] google_cloud_aiplatform_v1beta1_notebook_runtime_template_object + # @param [String] update_mask + # Required. The update mask applies to the resource. For the `FieldMask` + # definition, see google.protobuf.FieldMask. Input format: ``paths: "$` + # updated_filed`"`` Updatable fields: * `encryption_spec.kms_key_name` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -16984,31 +28720,35 @@ def list_project_location_metadata_store_operations(name, filter: nil, page_size # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate] # # @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_project_location_metadata_store_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + # @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_notebook_runtime_template(name, google_cloud_aiplatform_v1beta1_notebook_runtime_template_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate::Representation + command.request_object = google_cloud_aiplatform_v1beta1_notebook_runtime_template_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate command.params['name'] = name unless name.nil? - command.query['timeout'] = timeout unless timeout.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 - # Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and - # datalabeling.googleapis.com to Vertex AI. - # @param [String] parent - # Required. The location of the migrated resource will live in. Format: ` - # projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest] google_cloud_aiplatform_v1beta1_batch_migrate_resources_request_object + # Sets the access control policy on the specified resource. Replaces any + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17018,34 +28758,39 @@ def wait_project_location_metadata_store_operation(name, timeout: nil, fields: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] # # @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 batch_project_location_migratable_resource_migrate(parent, google_cloud_aiplatform_v1beta1_batch_migrate_resources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/migratableResources:batchMigrate', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_batch_migrate_resources_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def set_project_location_notebook_runtime_template_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation + command.request_object = google_iam_v1_set_iam_policy_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy + command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Searches all of the resources in automl.googleapis.com, datalabeling. - # googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given - # location. - # @param [String] parent - # Required. The location that the migratable resources should be searched from. - # It's the Vertex AI location that the resources can be migrated to, not the - # resources' original location. Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest] google_cloud_aiplatform_v1beta1_search_migratable_resources_request_object + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. See [ + # Resource names](https://cloud.google.com/apis/design/resource_names) for the + # appropriate value for this field. + # @param [Array, String] permissions + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as `*` or `storage.*`) are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17055,21 +28800,20 @@ def batch_project_location_migratable_resource_migrate(parent, google_cloud_aipl # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] # # @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 search_project_location_migratable_resources(parent, google_cloud_aiplatform_v1beta1_search_migratable_resources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/migratableResources:search', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_search_migratable_resources_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse - command.params['parent'] = parent unless parent.nil? + def test_project_location_notebook_runtime_template_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['permissions'] = permissions unless permissions.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -17102,7 +28846,7 @@ def search_project_location_migratable_resources(parent, google_cloud_aiplatform # @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_migratable_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -17135,7 +28879,7 @@ def cancel_project_location_migratable_resource_operation(name, fields: nil, quo # @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_migratable_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -17166,7 +28910,7 @@ def delete_project_location_migratable_resource_operation(name, fields: nil, quo # @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_migratable_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -17210,7 +28954,7 @@ def get_project_location_migratable_resource_operation(name, fields: nil, quota_ # @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_migratable_resource_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_notebook_runtime_template_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -17255,7 +28999,7 @@ def list_project_location_migratable_resource_operations(name, filter: nil, page # @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_project_location_migratable_resource_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_notebook_runtime_template_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -17266,12 +29010,12 @@ def wait_project_location_migratable_resource_operation(name, timeout: nil, fiel execute_or_queue_command(command, &block) end - # Creates a ModelDeploymentMonitoringJob. It will run periodically on a - # configured interval. + # Assigns a NotebookRuntime to a user for a particular Notebook file. This + # method will either returns an existing assignment or generates a new one. # @param [String] parent - # Required. The parent of the ModelDeploymentMonitoringJob. Format: `projects/` - # project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob] google_cloud_aiplatform_v1beta1_model_deployment_monitoring_job_object + # Required. The resource name of the Location to get the NotebookRuntime + # assignment. Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssignNotebookRuntimeRequest] google_cloud_aiplatform_v1beta1_assign_notebook_runtime_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17281,31 +29025,32 @@ def wait_project_location_migratable_resource_operation(name, timeout: nil, fiel # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob] + # @return [Google::Apis::AiplatformV1beta1::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_model_deployment_monitoring_job(parent, google_cloud_aiplatform_v1beta1_model_deployment_monitoring_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/modelDeploymentMonitoringJobs', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob::Representation - command.request_object = google_cloud_aiplatform_v1beta1_model_deployment_monitoring_job_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob + def assign_project_location_notebook_runtime(parent, google_cloud_aiplatform_v1beta1_assign_notebook_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/notebookRuntimes:assign', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssignNotebookRuntimeRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_assign_notebook_runtime_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a ModelDeploymentMonitoringJob. + # Deletes a NotebookRuntime. # @param [String] name - # Required. The resource name of the model monitoring job to delete. Format: ` - # projects/`project`/locations/`location`/modelDeploymentMonitoringJobs/` - # model_deployment_monitoring_job`` + # Required. The name of the NotebookRuntime resource to be deleted. Instead of + # checking whether the name is in valid NotebookRuntime resource name format, + # directly throw NotFound exception if there is no such NotebookRuntime in + # spanner. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17323,7 +29068,7 @@ def create_project_location_model_deployment_monitoring_job(parent, google_cloud # @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_model_deployment_monitoring_job(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_notebook_runtime(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -17333,11 +29078,15 @@ def delete_project_location_model_deployment_monitoring_job(name, fields: nil, q execute_or_queue_command(command, &block) end - # Gets a ModelDeploymentMonitoringJob. + # Internal only: Called from Compute Engine instance to obtain EUC for owner + # Anonymous access: authenticates caller using VM identity JWT. Design doc: go/ + # colab-on-vertex-euc-dd # @param [String] name - # Required. The resource name of the ModelDeploymentMonitoringJob. Format: ` - # projects/`project`/locations/`location`/modelDeploymentMonitoringJobs/` - # model_deployment_monitoring_job`` + # Required. The name of the resource requesting the OAuth2 token. Format: ` + # projects/`project`/locations/`location`/notebookRuntimes/`notebook_runtime`` ` + # projects/`project`/locations/`location`/notebookExecutionJobs/` + # notebook_execution_job`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest] google_cloud_aiplatform_v1beta1_generate_access_token_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17347,44 +29096,99 @@ def delete_project_location_model_deployment_monitoring_job(name, fields: nil, q # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse] # # @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_model_deployment_monitoring_job(name, fields: nil, quota_user: nil, options: nil, &block) + def generate_project_location_notebook_runtime_access_token(name, google_cloud_aiplatform_v1beta1_generate_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:generateAccessToken', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_access_token_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse + 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 NotebookRuntime. + # @param [String] name + # Required. The name of the NotebookRuntime resource. Instead of checking + # whether the name is in valid NotebookRuntime resource name format, directly + # throw NotFound exception if there is no such NotebookRuntime in spanner. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntime] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntime] + # + # @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_notebook_runtime(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntime::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntime 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 ModelDeploymentMonitoringJobs in a Location. + # Lists NotebookRuntimes in a Location. # @param [String] parent - # Required. The parent of the ModelDeploymentMonitoringJob. Format: `projects/` - # project`/locations/`location`` + # Required. The resource name of the Location from which to list the + # NotebookRuntimes. Format: `projects/`project`/locations/`location`` # @param [String] filter - # The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - # comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * ` - # create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` - # must be in RFC 3339 format. * `labels` supports general map functions that is: - # `labels.key=value` - key:value equality `labels.key:* - key existence Some - # examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND - # display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - # * `NOT display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` * ` - # labels.keyA=valueA` * `labels.keyB:*` + # Optional. An expression for filtering the results of the request. For field + # names both snake_case and camelCase are supported. * `notebookRuntime` + # supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. + # the last segment of the NotebookRuntime's resource name. * `displayName` + # supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. ` + # notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the + # last segment of the NotebookRuntimeTemplate's resource name. * `healthState` + # supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, + # HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState + # enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, + # STOPPED, BEING_UPGRADED, ERROR, INVALID]. * `runtimeUser` supports = and !=. * + # API version is UI only: `uiState` supports = and !=. uiState enum: [ + # UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, + # UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, + # UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. + # notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. * `machineType` supports = + # and !=. * `acceleratorType` supports = and !=. Some examples: * ` + # notebookRuntime="notebookRuntime123"` * `displayName="myDisplayName"` and ` + # displayName=~"myDisplayNameRegex"` * `notebookRuntimeTemplate=" + # notebookRuntimeTemplate321"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * + # `runtimeUser="test@google.com"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * + # `notebookRuntimeType=USER_DEFINED` * `machineType=e2-standard-4` * ` + # acceleratorType=NVIDIA_TESLA_T4` + # @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: * ` + # display_name` * `create_time` * `update_time` Example: `display_name, + # create_time desc`. # @param [Fixnum] page_size - # The standard list page size. + # Optional. The standard list page size. # @param [String] page_token - # The standard list page token. + # Optional. The standard list page token. Typically obtained via + # ListNotebookRuntimesResponse.next_page_token of the previous NotebookService. + # ListNotebookRuntimes call. # @param [String] read_mask - # Mask specifying which fields to read + # Optional. Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17394,20 +29198,21 @@ def get_project_location_model_deployment_monitoring_job(name, fields: nil, quot # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse] # # @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_model_deployment_monitoring_jobs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/modelDeploymentMonitoringJobs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse + def list_project_location_notebook_runtimes(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/notebookRuntimes', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse 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['readMask'] = read_mask unless read_mask.nil? @@ -17416,30 +29221,11 @@ def list_project_location_model_deployment_monitoring_jobs(parent, filter: nil, execute_or_queue_command(command, &block) end - # Updates a ModelDeploymentMonitoringJob. + # # @param [String] name - # Output only. Resource name of a ModelDeploymentMonitoringJob. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob] google_cloud_aiplatform_v1beta1_model_deployment_monitoring_job_object - # @param [String] update_mask - # Required. The update mask is used to specify the fields to be overwritten in - # the ModelDeploymentMonitoringJob resource by the update. The fields specified - # in the update_mask are relative to the resource, not the full request. A field - # will be overwritten if it is in the mask. If the user does not provide a mask - # then only the non-empty fields present in the request will be overwritten. Set - # the update_mask to `*` to override all fields. For the objective config, the - # user can either provide the update mask for - # model_deployment_monitoring_objective_configs or any combination of its nested - # fields, such as: model_deployment_monitoring_objective_configs. - # objective_config.training_dataset. Updatable fields: * `display_name` * ` - # model_deployment_monitoring_schedule_config` * `model_monitoring_alert_config` - # * `logging_sampling_strategy` * `labels` * `log_ttl` * ` - # enable_monitoring_pipeline_logs` . and * ` - # model_deployment_monitoring_objective_configs` . or * ` - # model_deployment_monitoring_objective_configs.objective_config. - # training_dataset` * `model_deployment_monitoring_objective_configs. - # objective_config.training_prediction_skew_detection_config` * ` - # model_deployment_monitoring_objective_configs.objective_config. - # prediction_drift_detection_config` + # Required. The name of the NotebookRuntime resource. Format: `projects/`project` + # /locations/`location`/notebookRuntimes/`notebook_runtime`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest] google_cloud_aiplatform_v1beta1_report_runtime_event_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17449,35 +29235,33 @@ def list_project_location_model_deployment_monitoring_jobs(parent, filter: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse] # # @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_model_deployment_monitoring_job(name, google_cloud_aiplatform_v1beta1_model_deployment_monitoring_job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob::Representation - command.request_object = google_cloud_aiplatform_v1beta1_model_deployment_monitoring_job_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def report_project_location_notebook_runtime_event(name, google_cloud_aiplatform_v1beta1_report_runtime_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:reportEvent', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_report_runtime_event_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse 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 - # Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes - # a best effort to cancel the job. Will mark ModelDeploymentMonitoringJob.state - # to 'PAUSED'. + # Starts a NotebookRuntime. # @param [String] name - # Required. The resource name of the ModelDeploymentMonitoringJob to pause. - # Format: `projects/`project`/locations/`location`/modelDeploymentMonitoringJobs/ - # `model_deployment_monitoring_job`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest] google_cloud_aiplatform_v1beta1_pause_model_deployment_monitoring_job_request_object + # Required. The name of the NotebookRuntime resource to be started. Instead of + # checking whether the name is in valid NotebookRuntime resource name format, + # directly throw NotFound exception if there is no such NotebookRuntime in + # spanner. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StartNotebookRuntimeRequest] google_cloud_aiplatform_v1beta1_start_notebook_runtime_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17487,33 +29271,33 @@ def patch_project_location_model_deployment_monitoring_job(name, google_cloud_ai # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::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 pause_project_location_model_deployment_monitoring_job(name, google_cloud_aiplatform_v1beta1_pause_model_deployment_monitoring_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:pause', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_pause_model_deployment_monitoring_job_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def start_project_location_notebook_runtime(name, google_cloud_aiplatform_v1beta1_start_notebook_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:start', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StartNotebookRuntimeRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_start_notebook_runtime_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next - # scheduled time. A deleted ModelDeploymentMonitoringJob can't be resumed. + # Stops a NotebookRuntime. # @param [String] name - # Required. The resource name of the ModelDeploymentMonitoringJob to resume. - # Format: `projects/`project`/locations/`location`/modelDeploymentMonitoringJobs/ - # `model_deployment_monitoring_job`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest] google_cloud_aiplatform_v1beta1_resume_model_deployment_monitoring_job_request_object + # Required. The name of the NotebookRuntime resource to be stopped. Instead of + # checking whether the name is in valid NotebookRuntime resource name format, + # directly throw NotFound exception if there is no such NotebookRuntime in + # spanner. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StopNotebookRuntimeRequest] google_cloud_aiplatform_v1beta1_stop_notebook_runtime_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17523,32 +29307,33 @@ def pause_project_location_model_deployment_monitoring_job(name, google_cloud_ai # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::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 resume_project_location_model_deployment_monitoring_job(name, google_cloud_aiplatform_v1beta1_resume_model_deployment_monitoring_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:resume', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_resume_model_deployment_monitoring_job_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def stop_project_location_notebook_runtime(name, google_cloud_aiplatform_v1beta1_stop_notebook_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:stop', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StopNotebookRuntimeRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_stop_notebook_runtime_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Searches Model Monitoring Statistics generated within a given time window. - # @param [String] model_deployment_monitoring_job - # Required. ModelDeploymentMonitoring Job resource name. Format: `projects/` - # project`/locations/`location`/modelDeploymentMonitoringJobs/` - # model_deployment_monitoring_job`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest] google_cloud_aiplatform_v1beta1_search_model_deployment_monitoring_stats_anomalies_request_object + # Upgrades a NotebookRuntime. + # @param [String] name + # Required. The name of the NotebookRuntime resource to be upgrade. Instead of + # checking whether the name is in valid NotebookRuntime resource name format, + # directly throw NotFound exception if there is no such NotebookRuntime in + # spanner. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeRequest] google_cloud_aiplatform_v1beta1_upgrade_notebook_runtime_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17558,21 +29343,21 @@ def resume_project_location_model_deployment_monitoring_job(name, google_cloud_a # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse] + # @return [Google::Apis::AiplatformV1beta1::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 search_project_location_model_deployment_monitoring_job_model_deployment_monitoring_stats_anomalies(model_deployment_monitoring_job, google_cloud_aiplatform_v1beta1_search_model_deployment_monitoring_stats_anomalies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_search_model_deployment_monitoring_stats_anomalies_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse - command.params['modelDeploymentMonitoringJob'] = model_deployment_monitoring_job unless model_deployment_monitoring_job.nil? + def upgrade_project_location_notebook_runtime(name, google_cloud_aiplatform_v1beta1_upgrade_notebook_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:upgrade', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_upgrade_notebook_runtime_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -17605,7 +29390,7 @@ def search_project_location_model_deployment_monitoring_job_model_deployment_mon # @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_model_deployment_monitoring_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -17638,7 +29423,7 @@ def cancel_project_location_model_deployment_monitoring_job_operation(name, fiel # @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_model_deployment_monitoring_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -17669,7 +29454,7 @@ def delete_project_location_model_deployment_monitoring_job_operation(name, fiel # @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_model_deployment_monitoring_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -17713,7 +29498,7 @@ def get_project_location_model_deployment_monitoring_job_operation(name, fields: # @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_model_deployment_monitoring_job_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_notebook_runtime_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -17758,7 +29543,7 @@ def list_project_location_model_deployment_monitoring_job_operations(name, filte # @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_project_location_model_deployment_monitoring_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_notebook_runtime_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -17769,15 +29554,16 @@ def wait_project_location_model_deployment_monitoring_job_operation(name, timeou execute_or_queue_command(command, &block) end - # Creates a ModelMonitor. - # @param [String] parent - # Required. The resource name of the Location to create the ModelMonitor in. - # Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor] google_cloud_aiplatform_v1beta1_model_monitor_object - # @param [String] model_monitor_id - # Optional. The ID to use for the Model Monitor, which will become the final - # component of the model monitor resource name. The maximum length is 63 - # characters, and valid characters are `/^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$/`. + # 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 @@ -17787,33 +29573,30 @@ def wait_project_location_model_deployment_monitoring_job_operation(name, timeou # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_model_monitor(parent, google_cloud_aiplatform_v1beta1_model_monitor_object = nil, model_monitor_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/modelMonitors', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor::Representation - command.request_object = google_cloud_aiplatform_v1beta1_model_monitor_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? - command.query['modelMonitorId'] = model_monitor_id unless model_monitor_id.nil? + def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 ModelMonitor. + # 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 - # Required. The name of the ModelMonitor resource to be deleted. Format: ` - # projects/`project`/locations/`location`/modelMonitords/`model_monitor`` - # @param [Boolean] force - # Optional. Force delete the model monitor with schedules. + # 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 @@ -17823,29 +29606,28 @@ def create_project_location_model_monitor(parent, google_cloud_aiplatform_v1beta # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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_model_monitor(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? - command.query['force'] = force unless force.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 ModelMonitor. + # 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 - # Required. The name of the ModelMonitor resource. Format: `projects/`project`/ - # locations/`location`/modelMonitors/`model_monitor`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17855,36 +29637,41 @@ def delete_project_location_model_monitor(name, force: nil, fields: nil, quota_u # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor] + # @return [Google::Apis::AiplatformV1beta1::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_model_monitor(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 ModelMonitors in a Location. - # @param [String] parent - # Required. The resource name of the Location to list the ModelMonitors from. - # Format: `projects/`project`/locations/`location`` + # 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. More detail in [AIP-160](https://google.aip.dev/160). + # The standard list filter. # @param [Fixnum] page_size # The standard list page size. # @param [String] page_token # The standard list page token. - # @param [String] read_mask - # Mask specifying which fields to read. + # @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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -17894,35 +29681,42 @@ def get_project_location_model_monitor(name, fields: nil, quota_user: nil, optio # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitorsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitorsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_model_monitors(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/modelMonitors', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitorsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitorsResponse - command.params['parent'] = parent unless parent.nil? + def list_project_location_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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['readMask'] = read_mask unless read_mask.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 - # Updates a ModelMonitor. + # 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 - # Immutable. Resource name of the ModelMonitor. Format: `projects/`project`/ - # locations/`location`/modelMonitors/`model_monitor``. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor] google_cloud_aiplatform_v1beta1_model_monitor_object - # @param [String] update_mask - # Required. Mask specifying which fields to update. + # 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 @@ -17940,24 +29734,26 @@ def list_project_location_model_monitors(parent, filter: nil, page_size: nil, pa # @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_model_monitor(name, google_cloud_aiplatform_v1beta1_model_monitor_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor::Representation - command.request_object = google_cloud_aiplatform_v1beta1_model_monitor_object + def wait_project_location_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.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 - # Returns the Model Monitoring alerts. - # @param [String] model_monitor - # Required. ModelMonitor resource name. Format: `projects/`project`/locations/` - # location`/modelMonitors/`model_monitor`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest] google_cloud_aiplatform_v1beta1_search_model_monitoring_alerts_request_object + # Creates a PersistentResource. + # @param [String] parent + # Required. The resource name of the Location to create the PersistentResource + # in. Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource] google_cloud_aiplatform_v1beta1_persistent_resource_object + # @param [String] persistent_resource_id + # Required. The ID to use for the PersistentResource, which become the final + # component of the PersistentResource's resource name. The maximum length is 63 + # characters, and valid characters are `/^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$/`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -17967,31 +29763,31 @@ def patch_project_location_model_monitor(name, google_cloud_aiplatform_v1beta1_m # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 search_project_location_model_monitor_model_monitoring_alerts(model_monitor, google_cloud_aiplatform_v1beta1_search_model_monitoring_alerts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+modelMonitor}:searchModelMonitoringAlerts', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_search_model_monitoring_alerts_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse - command.params['modelMonitor'] = model_monitor unless model_monitor.nil? + def create_project_location_persistent_resource(parent, google_cloud_aiplatform_v1beta1_persistent_resource_object = nil, persistent_resource_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/persistentResources', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource::Representation + command.request_object = google_cloud_aiplatform_v1beta1_persistent_resource_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? + command.query['persistentResourceId'] = persistent_resource_id unless persistent_resource_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 - # Searches Model Monitoring Stats generated within a given time window. - # @param [String] model_monitor - # Required. ModelMonitor resource name. Format: `projects/`project`/locations/` - # location`/modelMonitors/`model_monitor`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest] google_cloud_aiplatform_v1beta1_search_model_monitoring_stats_request_object + # Deletes a PersistentResource. + # @param [String] name + # Required. The name of the PersistentResource to be deleted. Format: `projects/` + # project`/locations/`location`/persistentResources/`persistent_resource`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18001,36 +29797,29 @@ def search_project_location_model_monitor_model_monitoring_alerts(model_monitor, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 search_project_location_model_monitor_model_monitoring_stats(model_monitor, google_cloud_aiplatform_v1beta1_search_model_monitoring_stats_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+modelMonitor}:searchModelMonitoringStats', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_search_model_monitoring_stats_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse - command.params['modelMonitor'] = model_monitor unless model_monitor.nil? + def delete_project_location_persistent_resource(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Creates a ModelMonitoringJob. - # @param [String] parent - # Required. The parent of the ModelMonitoringJob. Format: `projects/`project`/ - # locations/`location`/modelMoniitors/`model_monitor`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] google_cloud_aiplatform_v1beta1_model_monitoring_job_object - # @param [String] model_monitoring_job_id - # Optional. The ID to use for the Model Monitoring Job, which will become the - # final component of the model monitoring job resource name. The maximum length - # is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$/ - # `. + # Gets a PersistentResource. + # @param [String] name + # Required. The name of the PersistentResource resource. Format: `projects/` + # project_id_or_number`/locations/`location_id`/persistentResources/` + # persistent_resource_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18040,32 +29829,34 @@ def search_project_location_model_monitor_model_monitoring_stats(model_monitor, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource] # # @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_model_monitor_model_monitoring_job(parent, google_cloud_aiplatform_v1beta1_model_monitoring_job_object = nil, model_monitoring_job_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/modelMonitoringJobs', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob::Representation - command.request_object = google_cloud_aiplatform_v1beta1_model_monitoring_job_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob - command.params['parent'] = parent unless parent.nil? - command.query['modelMonitoringJobId'] = model_monitoring_job_id unless model_monitoring_job_id.nil? + def get_project_location_persistent_resource(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource + 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 ModelMonitoringJob. - # @param [String] name - # Required. The resource name of the model monitoring job to delete. Format: ` - # projects/`project`/locations/`location`/modelMonitors/`model_monitor`/ - # modelMonitoringJobs/`model_monitoring_job`` + # Lists PersistentResources in a Location. + # @param [String] parent + # Required. The resource name of the Location to list the PersistentResources + # from. Format: `projects/`project`/locations/`location`` + # @param [Fixnum] page_size + # Optional. The standard list page size. + # @param [String] page_token + # Optional. The standard list page token. Typically obtained via + # ListPersistentResourcesResponse.next_page_token of the previous + # PersistentResourceService.ListPersistentResource call. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18075,29 +29866,33 @@ def create_project_location_model_monitor_model_monitoring_job(parent, google_cl # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse] # # @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_model_monitor_model_monitoring_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + def list_project_location_persistent_resources(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/persistentResources', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse + command.params['parent'] = parent unless parent.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 - # Gets a ModelMonitoringJob. + # Updates a PersistentResource. # @param [String] name - # Required. The resource name of the ModelMonitoringJob. Format: `projects/` - # project`/locations/`location`/modelMonitors/`model_monitor`/ - # modelMonitoringJobs/`model_monitoring_job`` + # Immutable. Resource name of a PersistentResource. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource] google_cloud_aiplatform_v1beta1_persistent_resource_object + # @param [String] update_mask + # Required. Specify the fields to be overwritten in the PersistentResource by + # the update method. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18107,40 +29902,33 @@ def delete_project_location_model_monitor_model_monitoring_job(name, fields: nil # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob] + # @return [Google::Apis::AiplatformV1beta1::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_model_monitor_model_monitoring_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob + def patch_project_location_persistent_resource(name, google_cloud_aiplatform_v1beta1_persistent_resource_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource::Representation + command.request_object = google_cloud_aiplatform_v1beta1_persistent_resource_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation 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 ModelMonitoringJobs. Callers may choose to read across multiple Monitors - # as per [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash - # character) as a wildcard character instead of modelMonitor id in the parent. - # Format `projects/`project_id`/locations/`location`/moodelMonitors/-/ - # modelMonitoringJobs` - # @param [String] parent - # Required. The parent of the ModelMonitoringJob. Format: `projects/`project`/ - # locations/`location`/modelMonitors/`model_monitor`` - # @param [String] filter - # The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. - # @param [String] read_mask - # Mask specifying which fields to read + # Reboots a PersistentResource. + # @param [String] name + # Required. The name of the PersistentResource resource. Format: `projects/` + # project_id_or_number`/locations/`location_id`/persistentResources/` + # persistent_resource_id`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RebootPersistentResourceRequest] google_cloud_aiplatform_v1beta1_reboot_persistent_resource_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18150,23 +29938,21 @@ def get_project_location_model_monitor_model_monitoring_job(name, fields: nil, q # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_model_monitor_model_monitoring_jobs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/modelMonitoringJobs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse - 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['readMask'] = read_mask unless read_mask.nil? + def reboot_project_location_persistent_resource(name, google_cloud_aiplatform_v1beta1_reboot_persistent_resource_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:reboot', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RebootPersistentResourceRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_reboot_persistent_resource_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -18199,7 +29985,7 @@ def list_project_location_model_monitor_model_monitoring_jobs(parent, filter: ni # @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_model_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_persistent_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -18232,7 +30018,7 @@ def cancel_project_location_model_monitor_operation(name, fields: nil, quota_use # @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_model_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_persistent_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -18263,7 +30049,7 @@ def delete_project_location_model_monitor_operation(name, fields: nil, quota_use # @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_model_monitor_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_persistent_resource_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -18307,7 +30093,7 @@ def get_project_location_model_monitor_operation(name, fields: nil, quota_user: # @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_model_monitor_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_persistent_resource_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -18352,7 +30138,7 @@ def list_project_location_model_monitor_operations(name, filter: nil, page_size: # @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_project_location_model_monitor_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_persistent_resource_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -18363,15 +30149,305 @@ def wait_project_location_model_monitor_operation(name, timeout: nil, fields: ni execute_or_queue_command(command, &block) end - # Copies an already existing Vertex AI Model into the specified Location. The - # source Model must exist in the same Project. When copying custom Models, the - # users themselves are responsible for Model.metadata content to be region- - # agnostic, as well as making sure that any resources (e.g. files) it depends on - # remain accessible. + # Batch cancel PipelineJobs. Firstly the server will check if all the jobs are + # in non-terminal states, and skip the jobs that are already terminated. If the + # operation failed, none of the pipeline jobs are cancelled. The server will + # poll the states of all the pipeline jobs periodically to check the + # cancellation status. This operation will return an LRO. # @param [String] parent - # Required. The resource name of the Location into which to copy the Model. + # Required. The name of the PipelineJobs' parent resource. Format: `projects/` + # project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsRequest] google_cloud_aiplatform_v1beta1_batch_cancel_pipeline_jobs_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 batch_project_location_pipeline_job_cancel(parent, google_cloud_aiplatform_v1beta1_batch_cancel_pipeline_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/pipelineJobs:batchCancel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_batch_cancel_pipeline_jobs_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Batch deletes PipelineJobs The Operation is atomic. If it fails, none of the + # PipelineJobs are deleted. If it succeeds, all of the PipelineJobs are deleted. + # @param [String] parent + # Required. The name of the PipelineJobs' parent resource. Format: `projects/` + # project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsRequest] google_cloud_aiplatform_v1beta1_batch_delete_pipeline_jobs_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 batch_project_location_pipeline_job_delete(parent, google_cloud_aiplatform_v1beta1_batch_delete_pipeline_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/pipelineJobs:batchDelete', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_batch_delete_pipeline_jobs_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Cancels a PipelineJob. Starts asynchronous cancellation on the PipelineJob. + # The server makes a best effort to cancel the pipeline, but success is not + # guaranteed. Clients can use PipelineService.GetPipelineJob or other methods to + # check whether the cancellation succeeded or whether the pipeline completed + # despite cancellation. On successful cancellation, the PipelineJob is not + # deleted; instead it becomes a pipeline with a PipelineJob.error value with a + # google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and + # PipelineJob.state is set to `CANCELLED`. + # @param [String] name + # Required. The name of the PipelineJob to cancel. Format: `projects/`project`/ + # locations/`location`/pipelineJobs/`pipeline_job`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelPipelineJobRequest] google_cloud_aiplatform_v1beta1_cancel_pipeline_job_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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_pipeline_job(name, google_cloud_aiplatform_v1beta1_cancel_pipeline_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelPipelineJobRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_cancel_pipeline_job_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Creates a PipelineJob. A PipelineJob will run immediately when created. + # @param [String] parent + # Required. The resource name of the Location to create the PipelineJob in. # Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CopyModelRequest] google_cloud_aiplatform_v1beta1_copy_model_request_object + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob] google_cloud_aiplatform_v1beta1_pipeline_job_object + # @param [String] pipeline_job_id + # The ID to use for the PipelineJob, which will become the final component of + # the PipelineJob name. If not provided, an ID will be automatically generated. + # This value should be less than 128 characters, and valid characters are `/a-z-/ + # `. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob] + # + # @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_pipeline_job(parent, google_cloud_aiplatform_v1beta1_pipeline_job_object = nil, pipeline_job_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/pipelineJobs', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob::Representation + command.request_object = google_cloud_aiplatform_v1beta1_pipeline_job_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob + command.params['parent'] = parent unless parent.nil? + command.query['pipelineJobId'] = pipeline_job_id unless pipeline_job_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 + + # Deletes a PipelineJob. + # @param [String] name + # Required. The name of the PipelineJob resource to be deleted. Format: ` + # projects/`project`/locations/`location`/pipelineJobs/`pipeline_job`` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_pipeline_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a PipelineJob. + # @param [String] name + # Required. The name of the PipelineJob resource. Format: `projects/`project`/ + # locations/`location`/pipelineJobs/`pipeline_job`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob] + # + # @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_pipeline_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob + 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 PipelineJobs in a Location. + # @param [String] parent + # Required. The resource name of the Location to list the PipelineJobs from. + # Format: `projects/`project`/locations/`location`` + # @param [String] filter + # Lists the PipelineJobs that match the filter expression. The following fields + # are supported: * `pipeline_name`: Supports `=` and `!=` comparisons. * ` + # display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * ` + # pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. for + # example, can check if pipeline's display_name contains *step* by doing + # display_name:\"*step*\" * `state`: Supports `=` and `!=` comparisons. * ` + # create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values + # must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=` + # , and `>=` comparisons. Values must be in RFC 3339 format. * `end_time`: + # Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in + # RFC 3339 format. * `labels`: Supports key-value equality and key presence. * ` + # template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * ` + # template_metadata.version`: Supports `=`, `!=` comparisons, and `:` wildcard. + # Filter expressions can be combined together using logical operators (`AND` & ` + # OR`). For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z" + # `. The syntax to define filter expression is based on https://google.aip.dev/ + # 160. Examples: * `create_time>"2021-05-18T00:00:00Z" OR update_time>"2020-05- + # 18T00:00:00Z"` PipelineJobs created or updated after 2020-05-18 00:00:00 UTC. * + # `labels.env = "prod"` PipelineJobs with label "env" set to "prod". + # @param [String] order_by + # A comma-separated list of fields to order by. The default sort order is in + # ascending order. Use "desc" after a field name for descending. You can have + # multiple order_by fields provided e.g. "create_time desc, end_time", "end_time, + # start_time, update_time" For example, using "create_time desc, end_time" will + # order results by create time in descending order, and if there are multiple + # jobs having the same create time, order them by the end time in ascending + # order. if order_by is not specified, it will order by default order is create + # time in descending order. Supported fields: * `create_time` * `update_time` * ` + # end_time` * `start_time` + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. Typically obtained via ListPipelineJobsResponse. + # next_page_token of the previous PipelineService.ListPipelineJobs call. + # @param [String] read_mask + # Mask specifying which fields to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPipelineJobsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPipelineJobsResponse] + # + # @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_pipeline_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/pipelineJobs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPipelineJobsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPipelineJobsResponse + 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['readMask'] = read_mask unless read_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 + + # 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 @@ -18381,31 +30457,30 @@ def wait_project_location_model_monitor_operation(name, timeout: nil, fields: ni # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 copy_project_location_model(parent, google_cloud_aiplatform_v1beta1_copy_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/models:copy', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CopyModelRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_copy_model_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def cancel_project_location_pipeline_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 Model. A model cannot be deleted if any Endpoint resource has a - # DeployedModel based on the model in its deployed_models field. + # 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 - # Required. The name of the Model resource to be deleted. Format: `projects/` - # project`/locations/`location`/models/`model`` + # 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 @@ -18415,31 +30490,28 @@ def copy_project_location_model(parent, google_cloud_aiplatform_v1beta1_copy_mod # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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_model(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_pipeline_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 Model version. Model version can only be deleted if there are no - # DeployedModels created from it. Deleting the only version in the Model is not - # allowed. Use DeleteModel for deleting the Model instead. + # 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 - # Required. The name of the model version to be deleted, with a version ID - # explicitly included. Example: `projects/`project`/locations/`location`/models/` - # model`@1234` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18457,8 +30529,8 @@ def delete_project_location_model(name, fields: nil, quota_user: nil, options: n # @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_model_version(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}:deleteVersion', options) + def get_project_location_pipeline_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -18467,14 +30539,23 @@ def delete_project_location_model_version(name, fields: nil, quota_user: nil, op execute_or_queue_command(command, &block) end - # Exports a trained, exportable Model to a location specified by the user. A - # Model is considered to be exportable if it has at least one supported export - # format. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Required. The resource name of the Model to export. The resource name may - # contain version id or version alias to specify the version, if no version is - # specified, the default version will be exported. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportModelRequest] google_cloud_aiplatform_v1beta1_export_model_request_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -18484,36 +30565,42 @@ def delete_project_location_model_version(name, fields: nil, quota_user: nil, op # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 export_project_location_model(name, google_cloud_aiplatform_v1beta1_export_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:export', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportModelRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_export_model_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def list_project_location_pipeline_job_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Gets a Model. + # 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 Model resource. Format: `projects/`project`/ - # locations/`location`/models/`model`` In order to retrieve a specific version - # of the model, also provide the version ID or version alias. Example: `projects/ - # `project`/locations/`location`/models/`model`@2` or `projects/`project`/ - # locations/`location`/models/`model`@golden` If no version ID or alias is - # specified, the "default" version will be returned. The "default" version alias - # is created for the first version of the model, and can be moved to other - # versions later on. There will be exactly one default version. + # 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 @@ -18523,41 +30610,30 @@ def export_project_location_model(name, google_cloud_aiplatform_v1beta1_export_m # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] + # @return [Google::Apis::AiplatformV1beta1::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_model(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model + def wait_project_location_pipeline_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Gets the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The maximum policy version that will be used to format the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. Requests for policies with any conditional role bindings must - # specify version 3. Policies with no conditional role bindings may specify any - # valid value or leave the field unset. The policy in the response might use the - # policy version that you specified, or it might use a lower policy version. For - # example, if you specify version 3, but the policy has no conditional role - # bindings, the response uses version 1. To learn which resources support - # conditions in their IAM policies, see the [IAM documentation](https://cloud. - # google.com/iam/help/conditions/resource-policies). + # Return a list of tokens based on the input text. + # @param [String] endpoint + # Required. The name of the Endpoint requested to get lists of tokens and token + # ids. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest] google_cloud_aiplatform_v1beta1_compute_tokens_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18567,46 +30643,31 @@ def get_project_location_model(name, fields: nil, quota_user: nil, options: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] # # @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_model_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? + def compute_project_location_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1beta1_compute_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:computeTokens', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_compute_tokens_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse + command.params['endpoint'] = endpoint unless endpoint.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 Models in a Location. - # @param [String] parent - # Required. The resource name of the Location to list the Models from. Format: ` - # projects/`project`/locations/`location`` - # @param [String] filter - # An expression for filtering the results of the request. For field names both - # snake_case and camelCase are supported. * `model` supports = and !=. `model` - # represents the Model ID, i.e. the last segment of the Model's resource name. * - # `display_name` supports = and != * `labels` supports general map functions - # that is: * `labels.key=value` - key:value equality * `labels.key:* or labels: - # key - key existence * A key including a space must be quoted. `labels."a key"`. - # * `base_model_name` only supports = Some examples: * `model=1234` * ` - # displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text- - # bison"` - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. Typically obtained via ListModelsResponse. - # next_page_token of the previous ModelService.ListModels call. - # @param [String] read_mask - # Mask specifying which fields to read. + # Perform a token counting. + # @param [String] endpoint + # Required. The name of the Endpoint requested to perform token counting. Format: + # `projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest] google_cloud_aiplatform_v1beta1_count_tokens_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18616,40 +30677,31 @@ def get_project_location_model_iam_policy(resource, options_requested_policy_ver # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] # # @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_models(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/models', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelsResponse - 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['readMask'] = read_mask unless read_mask.nil? + def count_project_location_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1beta1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:countTokens', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_count_tokens_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse + command.params['endpoint'] = endpoint unless endpoint.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 checkpoints of the specified model version. - # @param [String] name - # Required. The name of the model version to list checkpoints for. `projects/` - # project`/locations/`location`/models/`model`@`version`` Example: `projects/` - # project`/locations/`location`/models/`model`@2` or `projects/`project`/ - # locations/`location`/models/`model`@golden` If no version ID or alias is - # specified, the latest version will be used. - # @param [Fixnum] page_size - # Optional. The standard list page size. - # @param [String] page_token - # Optional. The standard list page token. Typically obtained via next_page_token - # of the previous ListModelVersionCheckpoints call. + # Embed content with multimodal inputs. + # @param [String] model + # Required. The name of the publisher model requested to serve the prediction. + # Format: `projects/`project`/locations/`location`/publishers/*/models/*` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentRequest] google_cloud_aiplatform_v1beta1_embed_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18659,46 +30711,35 @@ def list_project_location_models(parent, filter: nil, page_size: nil, page_token # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionCheckpointsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionCheckpointsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentResponse] # # @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_model_checkpoints(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}:listCheckpoints', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionCheckpointsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionCheckpointsResponse - command.params['name'] = name unless name.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? + def embed_project_location_publisher_model_content(model, google_cloud_aiplatform_v1beta1_embed_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+model}:embedContent', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_embed_content_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentResponse + command.params['model'] = model unless model.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 versions of the specified model. + # Exports a publisher model to a user provided Google Cloud Storage bucket. + # @param [String] parent + # Required. The Location to export the model weights from Format: `projects/` + # project`/locations/`location`` # @param [String] name - # Required. The name of the model to list versions for. - # @param [String] filter - # An expression for filtering the results of the request. For field names both - # snake_case and camelCase are supported. * `labels` supports general map - # functions that is: * `labels.key=value` - key:value equality * `labels.key:* - # or labels:key - key existence * A key including a space must be quoted. ` - # labels."a key"`. Some examples: * `labels.myKey="myValue"` - # @param [String] order_by - # 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: `update_time asc, create_time desc`. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. Typically obtained via next_page_token of the - # previous ListModelVersions call. - # @param [String] read_mask - # Mask specifying which fields to read. + # Required. The name of the PublisherModel resource. Format: `publishers/` + # publisher`/models/`publisher_model`@`version_id``, or `publishers/hf-`hugging- + # face-author`/models/`hugging-face-model-name`@001` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportPublisherModelRequest] google_cloud_aiplatform_v1beta1_export_publisher_model_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18708,35 +30749,33 @@ def list_project_location_model_checkpoints(name, page_size: nil, page_token: ni # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_model_versions(name, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}:listVersions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelVersionsResponse + def export_project_location_publisher_model(parent, name, google_cloud_aiplatform_v1beta1_export_publisher_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/{+name}:export', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportPublisherModelRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_export_publisher_model_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['parent'] = parent unless parent.nil? command.params['name'] = name unless name.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['readMask'] = read_mask unless read_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 - # Merges a set of aliases for a Model version. - # @param [String] name - # Required. The name of the model version to merge aliases, with a version ID - # explicitly included. Example: `projects/`project`/locations/`location`/models/` - # model`@1234` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest] google_cloud_aiplatform_v1beta1_merge_version_aliases_request_object + # Fetch an asynchronous online prediction operation. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` + # project`/locations/`location`/publishers/`publisher`/models/`model`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest] google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18746,33 +30785,30 @@ def list_project_location_model_versions(name, filter: nil, order_by: nil, page_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] + # @return [Google::Apis::AiplatformV1beta1::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 merge_project_location_model_version_aliases(name, google_cloud_aiplatform_v1beta1_merge_version_aliases_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:mergeVersionAliases', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_merge_version_aliases_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model - command.params['name'] = name unless name.nil? + def fetch_project_location_publisher_model_predict_operation(endpoint, google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:fetchPredictOperation', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['endpoint'] = endpoint unless endpoint.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 a Model. + # Fetches the configs of publisher models. # @param [String] name - # The resource name of the Model. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] google_cloud_aiplatform_v1beta1_model_object - # @param [String] update_mask - # Required. The update mask applies to the resource. For the `FieldMask` - # definition, see google.protobuf.FieldMask. + # Required. The name of the publisher model, in the format of `projects/`project` + # /locations/`location`/publishers/`publisher`/models/`model``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18782,35 +30818,31 @@ def merge_project_location_model_version_aliases(name, google_cloud_aiplatform_v # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig] # # @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_model(name, google_cloud_aiplatform_v1beta1_model_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model::Representation - command.request_object = google_cloud_aiplatform_v1beta1_model_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Model + def fetch_project_location_publisher_model_publisher_model_config(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}:fetchPublisherModelConfig', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig 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 - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object + # Generate content with multimodal inputs. + # @param [String] model + # Required. The fully qualified name of the publisher model or tuned model + # endpoint to use. Publisher model format: `projects/`project`/locations/` + # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` + # project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18820,39 +30852,43 @@ def patch_project_location_model(name, google_cloud_aiplatform_v1beta1_model_obj # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] # # @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 set_project_location_model_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation - command.request_object = google_iam_v1_set_iam_policy_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? + def generate_project_location_publisher_model_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+model}:generateContent', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse + command.params['model'] = model unless model.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See [ - # Resource names](https://cloud.google.com/apis/design/resource_names) for the + # REQUIRED: The resource for which the policy is being requested. See [Resource + # names](https://cloud.google.com/apis/design/resource_names) for the # appropriate value for this field. - # @param [Array, String] permissions - # The set of permissions to check for the `resource`. Permissions with wildcards - # (such as `*` or `storage.*`) are not allowed. For more information see [IAM - # Overview](https://cloud.google.com/iam/docs/overview#permissions). + # @param [Fixnum] options_requested_policy_version + # Optional. The maximum policy version that will be used to format the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. Requests for policies with any conditional role bindings must + # specify version 3. Policies with no conditional role bindings may specify any + # valid value or leave the field unset. The policy in the response might use the + # policy version that you specified, or it might use a lower policy version. For + # example, if you specify version 3, but the policy has no conditional role + # bindings, the response uses version 1. To learn which resources support + # conditions in their IAM policies, see the [IAM documentation](https://cloud. + # google.com/iam/help/conditions/resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18862,30 +30898,30 @@ def set_project_location_model_iam_policy(resource, google_iam_v1_set_iam_policy # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] # # @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 test_project_location_model_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse + def get_project_location_publisher_model_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? - command.query['permissions'] = permissions unless permissions.nil? + command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Incrementally update the dataset used for an examples model. - # @param [String] model - # Required. The resource name of the Model to update. Format: `projects/`project` - # /locations/`location`/models/`model`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest] google_cloud_aiplatform_v1beta1_update_explanation_dataset_request_object + # Perform an online prediction. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest] google_cloud_aiplatform_v1beta1_predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18895,31 +30931,32 @@ def test_project_location_model_iam_permissions(resource, permissions: nil, fiel # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] # # @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 update_project_location_model_explanation_dataset(model, google_cloud_aiplatform_v1beta1_update_explanation_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+model}:updateExplanationDataset', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_update_explanation_dataset_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['model'] = model unless model.nil? + def predict_project_location_publisher_model(endpoint, google_cloud_aiplatform_v1beta1_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:predict', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_predict_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse + command.params['endpoint'] = endpoint unless endpoint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Uploads a Model artifact into Vertex AI. - # @param [String] parent - # Required. The resource name of the Location into which to upload the Model. - # Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadModelRequest] google_cloud_aiplatform_v1beta1_upload_model_request_object + # + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` + # project`/locations/`location`/publishers/`publisher`/models/`model`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest] google_cloud_aiplatform_v1beta1_predict_long_running_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18937,54 +30974,26 @@ def update_project_location_model_explanation_dataset(model, 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 upload_project_location_model(parent, google_cloud_aiplatform_v1beta1_upload_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/models:upload', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadModelRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_upload_model_request_object + def predict_project_location_publisher_model_long_running(endpoint, google_cloud_aiplatform_v1beta1_predict_long_running_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:predictLongRunning', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_predict_long_running_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::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 - - # Gets a ModelEvaluation. - # @param [String] name - # Required. The name of the ModelEvaluation resource. Format: `projects/`project` - # /locations/`location`/models/`model`/evaluations/`evaluation`` - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation] - # - # @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_model_evaluation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation - command.params['name'] = name unless name.nil? + command.params['endpoint'] = endpoint unless endpoint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Imports an externally generated ModelEvaluation. - # @param [String] parent - # Required. The name of the parent model resource. Format: `projects/`project`/ - # locations/`location`/models/`model`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest] google_cloud_aiplatform_v1beta1_import_model_evaluation_request_object + # Perform an online prediction with an arbitrary HTTP payload. The response + # includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the + # Endpoint that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of + # the Endpoint's DeployedModel that served this prediction. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RawPredictRequest] google_cloud_aiplatform_v1beta1_raw_predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -18994,40 +31003,32 @@ def get_project_location_model_evaluation(name, fields: nil, quota_user: nil, op # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation] + # @return [Google::Apis::AiplatformV1beta1::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 import_project_location_model_evaluation(parent, google_cloud_aiplatform_v1beta1_import_model_evaluation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/evaluations:import', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_import_model_evaluation_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluation - command.params['parent'] = parent unless parent.nil? + def raw_project_location_publisher_model_predict(endpoint, google_cloud_aiplatform_v1beta1_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:rawPredict', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RawPredictRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_raw_predict_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + command.params['endpoint'] = endpoint unless endpoint.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 ModelEvaluations in a Model. - # @param [String] parent - # Required. The resource name of the Model to list the ModelEvaluations from. - # Format: `projects/`project`/locations/`location`/models/`model`` - # @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. Typically obtained via - # ListModelEvaluationsResponse.next_page_token of the previous ModelService. - # ListModelEvaluations call. - # @param [String] read_mask - # Mask specifying which fields to read. + # Perform a server-side streaming online prediction request for Vertex LLM + # streaming. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictRequest] google_cloud_aiplatform_v1beta1_streaming_predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19037,38 +31038,32 @@ def import_project_location_model_evaluation(parent, google_cloud_aiplatform_v1b # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse] # # @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_model_evaluations(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/evaluations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse - 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['readMask'] = read_mask unless read_mask.nil? + def server_project_location_publisher_model_streaming_predict(endpoint, google_cloud_aiplatform_v1beta1_streaming_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:serverStreamingPredict', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_streaming_predict_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse + command.params['endpoint'] = endpoint unless endpoint.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`. + # Sets (creates or updates) configs of publisher models. For example, sets the + # request/response logging config. # @param [String] name - # The name of the operation resource to be cancelled. + # Required. The name of the publisher model, in the format of `projects/`project` + # /locations/`location`/publishers/`publisher`/models/`model``. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest] google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19078,30 +31073,33 @@ def list_project_location_model_evaluations(parent, filter: nil, page_size: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::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 cancel_project_location_model_evaluation_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def set_project_location_publisher_model_publisher_model_config(name, google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:setPublisherModelConfig', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # 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. + # Generate content with multimodal inputs with streaming support. + # @param [String] model + # Required. The fully qualified name of the publisher model or tuned model + # endpoint to use. Publisher model format: `projects/`project`/locations/` + # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` + # project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19111,28 +31109,31 @@ def cancel_project_location_model_evaluation_operation(name, fields: nil, quota_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] # # @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_model_evaluation_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? + def stream_project_location_publisher_model_generate_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+model}:streamGenerateContent', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse + command.params['model'] = model unless model.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. + # 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`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamRawPredictRequest] google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19142,41 +31143,31 @@ def delete_project_location_model_evaluation_operation(name, fields: nil, quota_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_model_evaluation_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + def stream_project_location_publisher_model_raw_predict(endpoint, google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:streamRawPredict', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamRawPredictRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + command.params['endpoint'] = endpoint unless endpoint.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 e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # Creates a RagCorpus. + # @param [String] parent + # Required. The resource name of the Location to create the RagCorpus in. Format: + # `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus] google_cloud_aiplatform_v1beta1_rag_corpus_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19186,42 +31177,33 @@ def get_project_location_model_evaluation_operation(name, fields: nil, quota_use # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_model_evaluation_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, 'v1beta1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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? + def create_project_location_rag_corpora(parent, google_cloud_aiplatform_v1beta1_rag_corpus_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/ragCorpora', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus::Representation + command.request_object = google_cloud_aiplatform_v1beta1_rag_corpus_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # 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. + # Deletes a RagCorpus. # @param [String] name - # 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. + # Required. The name of the RagCorpus resource to be deleted. Format: `projects/` + # project`/locations/`location`/ragCorpora/`rag_corpus`` + # @param [Boolean] force + # Optional. If set to true, any RagFiles in this RagCorpus will also be deleted. + # Otherwise, the request will only work if the RagCorpus has no RagFiles. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19239,23 +31221,21 @@ def list_project_location_model_evaluation_operations(name, filter: nil, page_si # @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_project_location_model_evaluation_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + def delete_project_location_rag_corpora(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? - command.query['timeout'] = timeout unless timeout.nil? + command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Imports a list of externally generated EvaluatedAnnotations. - # @param [String] parent - # Required. The name of the parent ModelEvaluationSlice resource. Format: ` - # projects/`project`/locations/`location`/models/`model`/evaluations/`evaluation` - # /slices/`slice`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest] google_cloud_aiplatform_v1beta1_batch_import_evaluated_annotations_request_object + # Gets a RagCorpus. + # @param [String] name + # Required. The name of the RagCorpus resource. Format: `projects/`project`/ + # locations/`location`/ragCorpora/`rag_corpus`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19265,31 +31245,34 @@ def wait_project_location_model_evaluation_operation(name, timeout: nil, fields: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus] # # @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 batch_project_location_model_evaluation_slice_import(parent, google_cloud_aiplatform_v1beta1_batch_import_evaluated_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}:batchImport', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_batch_import_evaluated_annotations_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse - command.params['parent'] = parent unless parent.nil? + def get_project_location_rag_corpora(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus + 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 ModelEvaluationSlice. - # @param [String] name - # Required. The name of the ModelEvaluationSlice resource. Format: `projects/` - # project`/locations/`location`/models/`model`/evaluations/`evaluation`/slices/` - # slice`` + # Lists RagCorpora in a Location. + # @param [String] parent + # Required. The resource name of the Location from which to list the RagCorpora. + # Format: `projects/`project`/locations/`location`` + # @param [Fixnum] page_size + # Optional. The standard list page size. + # @param [String] page_token + # Optional. The standard list page token. Typically obtained via + # ListRagCorporaResponse.next_page_token of the previous VertexRagDataService. + # ListRagCorpora call. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19299,39 +31282,30 @@ def batch_project_location_model_evaluation_slice_import(parent, google_cloud_ai # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluationSlice] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluationSlice] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse] # # @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_model_evaluation_slice(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluationSlice::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelEvaluationSlice - command.params['name'] = name unless name.nil? + def list_project_location_rag_corporas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/ragCorpora', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse + command.params['parent'] = parent unless parent.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 - # Lists ModelEvaluationSlices in a ModelEvaluation. - # @param [String] parent - # Required. The resource name of the ModelEvaluation to list the - # ModelEvaluationSlices from. Format: `projects/`project`/locations/`location`/ - # models/`model`/evaluations/`evaluation`` - # @param [String] filter - # The standard list filter. * `slice.dimension` - for =. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. Typically obtained via - # ListModelEvaluationSlicesResponse.next_page_token of the previous ModelService. - # ListModelEvaluationSlices call. - # @param [String] read_mask - # Mask specifying which fields to read. + # Updates a RagCorpus. + # @param [String] name + # Output only. The resource name of the RagCorpus. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus] google_cloud_aiplatform_v1beta1_rag_corpus_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19341,23 +31315,21 @@ def get_project_location_model_evaluation_slice(name, fields: nil, quota_user: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse] + # @return [Google::Apis::AiplatformV1beta1::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_model_evaluation_slices(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/slices', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse - 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['readMask'] = read_mask unless read_mask.nil? + def patch_project_location_rag_corpora(name, google_cloud_aiplatform_v1beta1_rag_corpus_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus::Representation + command.request_object = google_cloud_aiplatform_v1beta1_rag_corpus_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -19390,7 +31362,7 @@ def list_project_location_model_evaluation_slices(parent, filter: nil, page_size # @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_model_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_rag_corpora_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -19423,7 +31395,7 @@ def cancel_project_location_model_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_project_location_model_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_rag_corpora_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -19454,7 +31426,7 @@ def delete_project_location_model_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_project_location_model_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_rag_corpora_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -19498,7 +31470,7 @@ def get_project_location_model_operation(name, fields: nil, quota_user: nil, opt # @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_model_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_rag_corpora_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -19543,7 +31515,7 @@ def list_project_location_model_operations(name, filter: nil, page_size: nil, pa # @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_project_location_model_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_rag_corpora_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -19554,84 +31526,13 @@ def wait_project_location_model_operation(name, timeout: nil, fields: nil, quota execute_or_queue_command(command, &block) end - # Cancels a NasJob. Starts asynchronous cancellation on the NasJob. The server - # makes a best effort to cancel the job, but success is not guaranteed. Clients - # can use JobService.GetNasJob or other methods to check whether the - # cancellation succeeded or whether the job completed despite cancellation. On - # successful cancellation, the NasJob is not deleted; instead it becomes a job - # with a NasJob.error value with a google.rpc.Status.code of 1, corresponding to - # `Code.CANCELLED`, and NasJob.state is set to `CANCELLED`. - # @param [String] name - # Required. The name of the NasJob to cancel. Format: `projects/`project`/ - # locations/`location`/nasJobs/`nas_job`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelNasJobRequest] google_cloud_aiplatform_v1beta1_cancel_nas_job_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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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_nas_job(name, google_cloud_aiplatform_v1beta1_cancel_nas_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelNasJobRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_cancel_nas_job_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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 - - # Creates a NasJob - # @param [String] parent - # Required. The resource name of the Location to create the NasJob in. Format: ` - # projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob] google_cloud_aiplatform_v1beta1_nas_job_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob] - # - # @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_nas_job(parent, google_cloud_aiplatform_v1beta1_nas_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/nasJobs', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob::Representation - command.request_object = google_cloud_aiplatform_v1beta1_nas_job_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob - 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 a NasJob. + # Deletes a RagFile. # @param [String] name - # Required. The name of the NasJob resource to be deleted. Format: `projects/` - # project`/locations/`location`/nasJobs/`nas_job`` + # Required. The name of the RagFile resource to be deleted. Format: `projects/` + # project`/locations/`location`/ragCorpora/`rag_corpus`/ragFiles/`rag_file`` + # @param [Boolean] force_delete + # Optional. If set to true, any errors generated by external vector database + # during the deletion will be ignored. The default value is false. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19649,103 +31550,21 @@ def create_project_location_nas_job(parent, google_cloud_aiplatform_v1beta1_nas_ # @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_nas_job(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_rag_corpora_rag_file(name, force_delete: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? + command.query['forceDelete'] = force_delete unless force_delete.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 NasJob - # @param [String] name - # Required. The name of the NasJob resource. Format: `projects/`project`/ - # locations/`location`/nasJobs/`nas_job`` - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob] - # - # @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_nas_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasJob - 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 NasJobs in a Location. - # @param [String] parent - # Required. The resource name of the Location to list the NasJobs from. Format: ` - # projects/`project`/locations/`location`` - # @param [String] filter - # The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - # comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * ` - # create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` - # must be in RFC 3339 format. * `labels` supports general map functions that is: - # `labels.key=value` - key:value equality `labels.key:* - key existence Some - # examples of using the filter are: * `state="JOB_STATE_SUCCEEDED" AND - # display_name:"my_job_*"` * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - # * `NOT display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` * ` - # labels.keyA=valueA` * `labels.keyB:*` - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. Typically obtained via ListNasJobsResponse. - # next_page_token of the previous JobService.ListNasJobs call. - # @param [String] read_mask - # Mask specifying which fields to read. - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasJobsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasJobsResponse] - # - # @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_nas_jobs(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/nasJobs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasJobsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasJobsResponse - 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['readMask'] = read_mask unless read_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 - - # Gets a NasTrialDetail. + # Gets a RagFile. # @param [String] name - # Required. The name of the NasTrialDetail resource. Format: `projects/`project`/ - # locations/`location`/nasJobs/`nas_job`/nasTrialDetails/`nas_trial_detail`` + # Required. The name of the RagFile resource. Format: `projects/`project`/ + # locations/`location`/ragCorpora/`rag_corpus`/ragFiles/`rag_file`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19755,34 +31574,29 @@ def list_project_location_nas_jobs(parent, filter: nil, page_size: nil, page_tok # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasTrialDetail] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasTrialDetail] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile] # # @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_nas_job_nas_trial_detail(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_rag_corpora_rag_file(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasTrialDetail::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NasTrialDetail + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile 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 - # List top NasTrialDetails of a NasJob. + # Import files from Google Cloud Storage or Google Drive into a RagCorpus. # @param [String] parent - # Required. The name of the NasJob resource. Format: `projects/`project`/ - # locations/`location`/nasJobs/`nas_job`` - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. Typically obtained via - # ListNasTrialDetailsResponse.next_page_token of the previous JobService. - # ListNasTrialDetails call. + # Required. The name of the RagCorpus resource into which to import files. + # Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportRagFilesRequest] google_cloud_aiplatform_v1beta1_import_rag_files_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19792,33 +31606,36 @@ def get_project_location_nas_job_nas_trial_detail(name, fields: nil, quota_user: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_nas_job_nas_trial_details(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/nasTrialDetails', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse + def import_project_location_rag_corpora_rag_file(parent, google_cloud_aiplatform_v1beta1_import_rag_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/ragFiles:import', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportRagFilesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_import_rag_files_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.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 - # Creates a NotebookExecutionJob. + # Lists RagFiles in a RagCorpus. # @param [String] parent - # Required. The resource name of the Location to create the NotebookExecutionJob. - # Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob] google_cloud_aiplatform_v1beta1_notebook_execution_job_object - # @param [String] notebook_execution_job_id - # Optional. User specified ID for the NotebookExecutionJob. + # Required. The resource name of the RagCorpus from which to list the RagFiles. + # Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus`` + # @param [Fixnum] page_size + # Optional. The standard list page size. + # @param [String] page_token + # Optional. The standard list page token. Typically obtained via + # ListRagFilesResponse.next_page_token of the previous VertexRagDataService. + # ListRagFiles call. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19828,30 +31645,36 @@ def list_project_location_nas_job_nas_trial_details(parent, page_size: nil, page # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse] # # @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_notebook_execution_job(parent, google_cloud_aiplatform_v1beta1_notebook_execution_job_object = nil, notebook_execution_job_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/notebookExecutionJobs', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob::Representation - command.request_object = google_cloud_aiplatform_v1beta1_notebook_execution_job_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def list_project_location_rag_corpora_rag_files(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/ragFiles', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse command.params['parent'] = parent unless parent.nil? - command.query['notebookExecutionJobId'] = notebook_execution_job_id unless notebook_execution_job_id.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 - # Deletes a NotebookExecutionJob. + # 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 - # Required. The name of the NotebookExecutionJob resource to be deleted. + # 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 @@ -19861,33 +31684,30 @@ def create_project_location_notebook_execution_job(parent, google_cloud_aiplatfo # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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_notebook_execution_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def cancel_project_location_rag_corpora_rag_file_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Internal only: Called from Compute Engine instance to obtain EUC for owner - # Anonymous access: authenticates caller using VM identity JWT. Design doc: go/ - # colab-on-vertex-euc-dd + # 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 - # Required. The name of the resource requesting the OAuth2 token. Format: ` - # projects/`project`/locations/`location`/notebookRuntimes/`notebook_runtime`` ` - # projects/`project`/locations/`location`/notebookExecutionJobs/` - # notebook_execution_job`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest] google_cloud_aiplatform_v1beta1_generate_access_token_request_object + # 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 @@ -19897,31 +31717,28 @@ def delete_project_location_notebook_execution_job(name, fields: nil, quota_user # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse] + # @return [Google::Apis::AiplatformV1beta1::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 generate_project_location_notebook_execution_job_access_token(name, google_cloud_aiplatform_v1beta1_generate_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:generateAccessToken', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_access_token_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse + def delete_project_location_rag_corpora_rag_file_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a NotebookExecutionJob. + # 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 - # Required. The name of the NotebookExecutionJob resource. - # @param [String] view - # Optional. The NotebookExecutionJob view. Defaults to BASIC. + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -19931,50 +31748,41 @@ def generate_project_location_notebook_execution_job_access_token(name, google_c # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob] + # @return [Google::Apis::AiplatformV1beta1::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_notebook_execution_job(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_rag_corpora_rag_file_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? - command.query['view'] = view unless view.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 NotebookExecutionJobs in a Location. - # @param [String] parent - # Required. The resource name of the Location from which to list the - # NotebookExecutionJobs. Format: `projects/`project`/locations/`location`` + # 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 - # Optional. An expression for filtering the results of the request. For field - # names both snake_case and camelCase are supported. * `notebookExecutionJob` - # supports = and !=. `notebookExecutionJob` represents the NotebookExecutionJob - # ID. * `displayName` supports = and != and regex. * `schedule` supports = and != - # and regex. Some examples: * `notebookExecutionJob="123"` * ` - # notebookExecutionJob="my-execution-job"` * `displayName="myDisplayName"` and ` - # displayName=~"myDisplayNameRegex"` - # @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: * ` - # display_name` * `create_time` * `update_time` Example: `display_name, - # create_time desc`. + # The standard list filter. # @param [Fixnum] page_size - # Optional. The standard list page size. + # The standard list page size. # @param [String] page_token - # Optional. The standard list page token. Typically obtained via - # ListNotebookExecutionJobsResponse.next_page_token of the previous - # NotebookService.ListNotebookExecutionJobs call. - # @param [String] view - # Optional. The NotebookExecutionJob view. Defaults to BASIC. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -19984,34 +31792,42 @@ def get_project_location_notebook_execution_job(name, view: nil, fields: nil, qu # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_notebook_execution_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/notebookExecutionJobs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse - command.params['parent'] = parent unless parent.nil? + def list_project_location_rag_corpora_rag_file_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse + command.params['name'] = name unless name.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['view'] = view unless view.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 + # 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 NotebookExecutionJob resource. Format: `projects/` - # project`/locations/`location`/notebookExecutionJobs/`notebook_execution_jobs`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportExecutionEventRequest] google_cloud_aiplatform_v1beta1_report_execution_event_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 @@ -20021,21 +31837,20 @@ def list_project_location_notebook_execution_jobs(parent, filter: nil, order_by: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportExecutionEventResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportExecutionEventResponse] + # @return [Google::Apis::AiplatformV1beta1::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 report_project_location_notebook_execution_job_event(name, google_cloud_aiplatform_v1beta1_report_execution_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:reportEvent', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportExecutionEventRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_report_execution_event_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportExecutionEventResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportExecutionEventResponse + def wait_project_location_rag_corpora_rag_file_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -20068,7 +31883,7 @@ def report_project_location_notebook_execution_job_event(name, google_cloud_aipl # @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_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -20101,7 +31916,7 @@ def cancel_project_location_notebook_execution_job_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_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -20132,7 +31947,7 @@ def delete_project_location_notebook_execution_job_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_notebook_execution_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -20176,7 +31991,7 @@ def get_project_location_notebook_execution_job_operation(name, fields: nil, quo # @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_notebook_execution_job_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_rag_engine_config_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -20221,7 +32036,7 @@ def list_project_location_notebook_execution_job_operations(name, filter: 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_project_location_notebook_execution_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_rag_engine_config_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -20232,13 +32047,11 @@ def wait_project_location_notebook_execution_job_operation(name, timeout: nil, f execute_or_queue_command(command, &block) end - # Creates a NotebookRuntimeTemplate. + # Creates a reasoning engine. # @param [String] parent - # Required. The resource name of the Location to create the - # NotebookRuntimeTemplate. Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate] google_cloud_aiplatform_v1beta1_notebook_runtime_template_object - # @param [String] notebook_runtime_template_id - # Optional. User specified ID for the notebook runtime template. + # Required. The resource name of the Location to create the ReasoningEngine in. + # Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] google_cloud_aiplatform_v1beta1_reasoning_engine_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20256,24 +32069,26 @@ def wait_project_location_notebook_execution_job_operation(name, timeout: nil, f # @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_notebook_runtime_template(parent, google_cloud_aiplatform_v1beta1_notebook_runtime_template_object = nil, notebook_runtime_template_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/notebookRuntimeTemplates', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate::Representation - command.request_object = google_cloud_aiplatform_v1beta1_notebook_runtime_template_object + def create_project_location_reasoning_engine(parent, google_cloud_aiplatform_v1beta1_reasoning_engine_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/reasoningEngines', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine::Representation + command.request_object = google_cloud_aiplatform_v1beta1_reasoning_engine_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? - command.query['notebookRuntimeTemplateId'] = notebook_runtime_template_id unless notebook_runtime_template_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 - # Deletes a NotebookRuntimeTemplate. + # Deletes a reasoning engine. # @param [String] name - # Required. The name of the NotebookRuntimeTemplate resource to be deleted. - # Format: `projects/`project`/locations/`location`/notebookRuntimeTemplates/` - # notebook_runtime_template`` + # Required. The name of the ReasoningEngine resource to be deleted. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`` + # @param [Boolean] force + # Optional. If set to true, child resources of this reasoning engine will also + # be deleted. Otherwise, the request will fail with FAILED_PRECONDITION error + # when the reasoning engine has undeleted child resources. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20291,21 +32106,21 @@ def create_project_location_notebook_runtime_template(parent, google_cloud_aipla # @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_notebook_runtime_template(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_reasoning_engine(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.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 NotebookRuntimeTemplate. + # Gets a reasoning engine. # @param [String] name - # Required. The name of the NotebookRuntimeTemplate resource. Format: `projects/` - # project`/locations/`location`/notebookRuntimeTemplates/` - # notebook_runtime_template`` + # Required. The name of the ReasoningEngine resource. Format: `projects/`project` + # /locations/`location`/reasoningEngines/`reasoning_engine`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20315,41 +32130,287 @@ def delete_project_location_notebook_runtime_template(name, fields: nil, quota_u # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] # # @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_notebook_runtime_template(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_reasoning_engine(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine + 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 reasoning engines in a location. + # @param [String] parent + # Required. The resource name of the Location to list the ReasoningEngines from. + # Format: `projects/`project`/locations/`location`` + # @param [String] filter + # Optional. The standard list filter. More detail in [AIP-160](https://google. + # aip.dev/160). + # @param [Fixnum] page_size + # Optional. The standard list page size. + # @param [String] page_token + # Optional. The standard list page token. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse] + # + # @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_engines(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/reasoningEngines', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse + 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 + + # Updates a reasoning engine. + # @param [String] name + # Identifier. The resource name of the ReasoningEngine. Format: `projects/` + # project`/locations/`location`/reasoningEngines/`reasoning_engine`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] google_cloud_aiplatform_v1beta1_reasoning_engine_object + # @param [String] update_mask + # Optional. Mask specifying which fields to update. + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_reasoning_engine(name, google_cloud_aiplatform_v1beta1_reasoning_engine_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine::Representation + command.request_object = google_cloud_aiplatform_v1beta1_reasoning_engine_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + 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 + + # 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest] google_cloud_aiplatform_v1beta1_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse] + # + # @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_project_location_reasoning_engine(name, google_cloud_aiplatform_v1beta1_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:query', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_query_reasoning_engine_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse + 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest] google_cloud_aiplatform_v1beta1_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::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_project_location_reasoning_engine_query(name, google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:streamQuery', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 + + # Get request for reasoning engine instance via the A2A get protocol apis. + # @param [String] name + # Required. The full resource path of the reasoning engine, captured from the + # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` + # @param [String] a2a_endpoint + # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` + # @param [String] history_length + # Optional. The optional query parameter for the getTask endpoint. Mapped from "? + # history_length=". This indicates how many turns of history to return. If not + # set, the default value is 0, which means all the history will be returned. + # @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 [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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 card_project_location_reasoning_engine_a2a_v1(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) + command.params['name'] = name unless name.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? + command.query['historyLength'] = history_length unless history_length.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Send post request for reasoning engine instance via the A2A post protocol apis. + # @param [String] name + # Required. The full resource path of the reasoning engine, captured from the + # URL. + # @param [String] a2a_endpoint + # Required. The a2a endpoint path, captured from the URL. e.g., v1/message:send + # @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 [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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 send_project_location_reasoning_engine_a2a_v1_message(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:send', options) + command.params['name'] = name unless name.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.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 instance via the A2A streaming + # protocol apis. + # @param [String] name + # Required. The full resource path of the reasoning engine, captured from the + # URL. + # @param [String] a2a_endpoint + # Required. The http endpoint extracted from the URL path. e.g., v1/message: + # stream. + # @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::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_project_location_reasoning_engine_a2a_v1_message(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:stream', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody command.params['name'] = name unless name.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.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 access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The maximum policy version that will be used to format the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. Requests for policies with any conditional role bindings must - # specify version 3. Policies with no conditional role bindings may specify any - # valid value or leave the field unset. The policy in the response might use the - # policy version that you specified, or it might use a lower policy version. For - # example, if you specify version 3, but the policy has no conditional role - # bindings, the response uses version 1. To learn which resources support - # conditions in their IAM policies, see the [IAM documentation](https://cloud. - # google.com/iam/help/conditions/resource-policies). + # Get request for reasoning engine instance via the A2A get protocol apis. + # @param [String] name + # Required. The full resource path of the reasoning engine, captured from the + # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` + # @param [String] a2a_endpoint + # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` + # @param [String] history_length + # Optional. The optional query parameter for the getTask endpoint. Mapped from "? + # history_length=". This indicates how many turns of history to return. If not + # set, the default value is 0, which means all the history will be returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20359,56 +32420,30 @@ def get_project_location_notebook_runtime_template(name, fields: nil, quota_user # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [NilClass] No result returned for this method # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [void] # # @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_notebook_runtime_template_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? + def a2a_project_location_reasoning_engine_a2a_v1_task_get_reasoning_engine(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) + command.params['name'] = name unless name.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? + command.query['historyLength'] = history_length unless history_length.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 NotebookRuntimeTemplates in a Location. - # @param [String] parent - # Required. The resource name of the Location from which to list the - # NotebookRuntimeTemplates. Format: `projects/`project`/locations/`location`` - # @param [String] filter - # Optional. An expression for filtering the results of the request. For field - # names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` - # supports = and !=. `notebookRuntimeTemplate` represents the - # NotebookRuntimeTemplate ID, i.e. the last segment of the - # NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * ` - # labels` supports general map functions that is: * `labels.key=value` - key: - # value equality * `labels.key:* or labels:key - key existence * A key including - # a space must be quoted. `labels."a key"`. * `notebookRuntimeType` supports = - # and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. * `machineType` - # supports = and !=. * `acceleratorType` supports = and !=. Some examples: * ` - # notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName=" - # myDisplayName"` * `labels.myKey="myValue"` * `notebookRuntimeType=USER_DEFINED` - # * `machineType=e2-standard-4` * `acceleratorType=NVIDIA_TESLA_T4` - # @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: * ` - # display_name` * `create_time` * `update_time` Example: `display_name, - # create_time desc`. - # @param [Fixnum] page_size - # Optional. The standard list page size. - # @param [String] page_token - # Optional. The standard list page token. Typically obtained via - # ListNotebookRuntimeTemplatesResponse.next_page_token of the previous - # NotebookService.ListNotebookRuntimeTemplates call. - # @param [String] read_mask - # Optional. Mask specifying which fields to read. + # Send post request for reasoning engine instance via the A2A post protocol apis. + # @param [String] name + # Required. The full resource path of the reasoning engine, captured from the + # URL. + # @param [String] a2a_endpoint + # Required. The a2a endpoint path, captured from the URL. e.g., v1/message:send # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20418,37 +32453,34 @@ def get_project_location_notebook_runtime_template_iam_policy(resource, options_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse] parsed result object + # @yieldparam result [NilClass] No result returned for this method # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse] + # @return [void] # # @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_notebook_runtime_templates(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/notebookRuntimeTemplates', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse - 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['readMask'] = read_mask unless read_mask.nil? + def cancel_project_location_reasoning_engine_a2a_v1_task(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:cancel', options) + command.params['name'] = name unless name.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.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 a NotebookRuntimeTemplate. + # Get request for reasoning engine instance via the A2A get protocol apis. # @param [String] name - # The resource name of the NotebookRuntimeTemplate. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate] google_cloud_aiplatform_v1beta1_notebook_runtime_template_object - # @param [String] update_mask - # Required. The update mask applies to the resource. For the `FieldMask` - # definition, see google.protobuf.FieldMask. Input format: ``paths: "$` - # updated_filed`"`` Updatable fields: * `encryption_spec.kms_key_name` + # Required. The full resource path of the reasoning engine, captured from the + # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` + # @param [String] a2a_endpoint + # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` + # @param [String] history_length + # Optional. The optional query parameter for the getTask endpoint. Mapped from "? + # history_length=". This indicates how many turns of history to return. If not + # set, the default value is 0, which means all the history will be returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20458,35 +32490,32 @@ def list_project_location_notebook_runtime_templates(parent, filter: nil, order_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate] parsed result object + # @yieldparam result [NilClass] No result returned for this method # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate] + # @return [void] # # @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_notebook_runtime_template(name, google_cloud_aiplatform_v1beta1_notebook_runtime_template_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate::Representation - command.request_object = google_cloud_aiplatform_v1beta1_notebook_runtime_template_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate + def push_project_location_reasoning_engine_a2a_v1_task_notification_configs(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? + command.query['historyLength'] = history_length unless history_length.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object + # Stream get request for reasoning engine instance via the A2A stream get + # protocol apis. + # @param [String] name + # Required. The full resource path of the reasoning engine, captured from the + # URL. + # @param [String] a2a_endpoint + # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123: + # subscribe`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20496,39 +32525,36 @@ def patch_project_location_notebook_runtime_template(name, google_cloud_aiplatfo # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [Google::Apis::AiplatformV1beta1::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 set_project_location_notebook_runtime_template_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1SetIamPolicyRequest::Representation - command.request_object = google_iam_v1_set_iam_policy_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? + def subscribe_project_location_reasoning_engine_a2a_v1_task(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:subscribe', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + command.params['name'] = name unless name.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See [ - # Resource names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Array, String] permissions - # The set of permissions to check for the `resource`. Permissions with wildcards - # (such as `*` or `storage.*`) are not allowed. For more information see [IAM - # Overview](https://cloud.google.com/iam/docs/overview#permissions). + # Get request for reasoning engine instance via the A2A get protocol apis. + # @param [String] name + # Required. The full resource path of the reasoning engine, captured from the + # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` + # @param [String] a2a_endpoint + # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` + # @param [String] history_length + # Optional. The optional query parameter for the getTask endpoint. Mapped from "? + # history_length=". This indicates how many turns of history to return. If not + # set, the default value is 0, which means all the history will be returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20538,20 +32564,19 @@ def set_project_location_notebook_runtime_template_iam_policy(resource, google_i # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam result [NilClass] No result returned for this method # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse] + # @return [void] # # @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 test_project_location_notebook_runtime_template_iam_permissions(resource, permissions: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1TestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['permissions'] = permissions unless permissions.nil? + def a2a_project_location_reasoning_engine_a2a_v1_task_push_notification_config_get_reasoning_engine(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) + command.params['name'] = name unless name.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? + command.query['historyLength'] = history_length unless history_length.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -20584,7 +32609,7 @@ def test_project_location_notebook_runtime_template_iam_permissions(resource, pe # @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_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_reasoning_engine_example_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -20617,7 +32642,7 @@ def cancel_project_location_notebook_runtime_template_operation(name, fields: ni # @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_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_reasoning_engine_example_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -20648,7 +32673,7 @@ def delete_project_location_notebook_runtime_template_operation(name, fields: ni # @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_notebook_runtime_template_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_reasoning_engine_example_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -20658,54 +32683,6 @@ def get_project_location_notebook_runtime_template_operation(name, fields: 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 e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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_notebook_runtime_template_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, 'v1beta1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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 @@ -20737,7 +32714,7 @@ def list_project_location_notebook_runtime_template_operations(name, filter: 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 wait_project_location_notebook_runtime_template_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_reasoning_engine_example_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -20748,12 +32725,12 @@ def wait_project_location_notebook_runtime_template_operation(name, timeout: nil execute_or_queue_command(command, &block) end - # Assigns a NotebookRuntime to a user for a particular Notebook file. This - # method will either returns an existing assignment or generates a new one. + # Create a Memory. # @param [String] parent - # Required. The resource name of the Location to get the NotebookRuntime - # assignment. Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssignNotebookRuntimeRequest] google_cloud_aiplatform_v1beta1_assign_notebook_runtime_request_object + # Required. The resource name of the ReasoningEngine to create the Memory under. + # Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] google_cloud_aiplatform_v1beta1_memory_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20771,10 +32748,10 @@ def wait_project_location_notebook_runtime_template_operation(name, timeout: 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 assign_project_location_notebook_runtime(parent, google_cloud_aiplatform_v1beta1_assign_notebook_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/notebookRuntimes:assign', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AssignNotebookRuntimeRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_assign_notebook_runtime_request_object + def create_project_location_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_memory_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/memories', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory::Representation + command.request_object = google_cloud_aiplatform_v1beta1_memory_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? @@ -20783,12 +32760,11 @@ def assign_project_location_notebook_runtime(parent, google_cloud_aiplatform_v1b execute_or_queue_command(command, &block) end - # Deletes a NotebookRuntime. + # Delete a Memory. # @param [String] name - # Required. The name of the NotebookRuntime resource to be deleted. Instead of - # checking whether the name is in valid NotebookRuntime resource name format, - # directly throw NotFound exception if there is no such NotebookRuntime in - # spanner. + # Required. The resource name of the Memory to delete. Format: `projects/` + # project`/locations/`location`/reasoningEngines/`reasoning_engine`/memories/` + # memory`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20806,7 +32782,7 @@ def assign_project_location_notebook_runtime(parent, google_cloud_aiplatform_v1b # @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_notebook_runtime(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_reasoning_engine_memory(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -20816,15 +32792,12 @@ def delete_project_location_notebook_runtime(name, fields: nil, quota_user: nil, execute_or_queue_command(command, &block) end - # Internal only: Called from Compute Engine instance to obtain EUC for owner - # Anonymous access: authenticates caller using VM identity JWT. Design doc: go/ - # colab-on-vertex-euc-dd - # @param [String] name - # Required. The name of the resource requesting the OAuth2 token. Format: ` - # projects/`project`/locations/`location`/notebookRuntimes/`notebook_runtime`` ` - # projects/`project`/locations/`location`/notebookExecutionJobs/` - # notebook_execution_job`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest] google_cloud_aiplatform_v1beta1_generate_access_token_request_object + # Generate memories. + # @param [String] parent + # Required. The resource name of the ReasoningEngine to generate memories for. + # Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateMemoriesRequest] google_cloud_aiplatform_v1beta1_generate_memories_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20834,31 +32807,30 @@ def delete_project_location_notebook_runtime(name, fields: nil, quota_user: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse] + # @return [Google::Apis::AiplatformV1beta1::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 generate_project_location_notebook_runtime_access_token(name, google_cloud_aiplatform_v1beta1_generate_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:generateAccessToken', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_access_token_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse - command.params['name'] = name unless name.nil? + def generate_project_location_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_generate_memories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/memories:generate', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateMemoriesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_memories_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Gets a NotebookRuntime. + # Get a Memory. # @param [String] name - # Required. The name of the NotebookRuntime resource. Instead of checking - # whether the name is in valid NotebookRuntime resource name format, directly - # throw NotFound exception if there is no such NotebookRuntime in spanner. + # Required. The resource name of the Memory. Format: `projects/`project`/ + # locations/`location`/reasoningEngines/`reasoning_engine`/memories/`memory`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20868,65 +32840,42 @@ def generate_project_location_notebook_runtime_access_token(name, google_cloud_a # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntime] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntime] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] # # @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_notebook_runtime(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_reasoning_engine_memory(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntime::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookRuntime + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory 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 NotebookRuntimes in a Location. + # List Memories. # @param [String] parent - # Required. The resource name of the Location from which to list the - # NotebookRuntimes. Format: `projects/`project`/locations/`location`` + # Required. The resource name of the ReasoningEngine to list the Memories under. + # Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` # @param [String] filter - # Optional. An expression for filtering the results of the request. For field - # names both snake_case and camelCase are supported. * `notebookRuntime` - # supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. - # the last segment of the NotebookRuntime's resource name. * `displayName` - # supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. ` - # notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the - # last segment of the NotebookRuntimeTemplate's resource name. * `healthState` - # supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, - # HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState - # enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, - # STOPPED, BEING_UPGRADED, ERROR, INVALID]. * `runtimeUser` supports = and !=. * - # API version is UI only: `uiState` supports = and !=. uiState enum: [ - # UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, - # UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, - # UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. - # notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. * `machineType` supports = - # and !=. * `acceleratorType` supports = and !=. Some examples: * ` - # notebookRuntime="notebookRuntime123"` * `displayName="myDisplayName"` and ` - # displayName=~"myDisplayNameRegex"` * `notebookRuntimeTemplate=" - # notebookRuntimeTemplate321"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * - # `runtimeUser="test@google.com"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * - # `notebookRuntimeType=USER_DEFINED` * `machineType=e2-standard-4` * ` - # acceleratorType=NVIDIA_TESLA_T4` + # Optional. The standard list filter. More detail in [AIP-160](https://google. + # aip.dev/160). Supported fields (equality match only): * `scope` (as a JSON + # string) # @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: * ` - # display_name` * `create_time` * `update_time` Example: `display_name, - # create_time desc`. + # Optional. The standard list order by string. If not specified, the default + # order is `create_time desc`. If specified, the default sorting order of + # provided fields is ascending. More detail in [AIP-132](https://google.aip.dev/ + # 132). Supported fields: * `create_time` * `update_time` # @param [Fixnum] page_size # Optional. The standard list page size. # @param [String] page_token - # Optional. The standard list page token. Typically obtained via - # ListNotebookRuntimesResponse.next_page_token of the previous NotebookService. - # ListNotebookRuntimes call. - # @param [String] read_mask - # Optional. Mask specifying which fields to read. + # Optional. The standard list page token. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -20936,70 +32885,36 @@ def get_project_location_notebook_runtime(name, fields: nil, quota_user: nil, op # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse] # # @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_notebook_runtimes(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/notebookRuntimes', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse + def list_project_location_reasoning_engine_memories(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, 'v1beta1/{+parent}/memories', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse 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['readMask'] = read_mask unless read_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 - - # - # @param [String] name - # Required. The name of the NotebookRuntime resource. Format: `projects/`project` - # /locations/`location`/notebookRuntimes/`notebook_runtime`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest] google_cloud_aiplatform_v1beta1_report_runtime_event_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse] - # - # @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 report_project_location_notebook_runtime_event(name, google_cloud_aiplatform_v1beta1_report_runtime_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:reportEvent', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_report_runtime_event_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse - 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 a NotebookRuntime. + # Update a Memory. # @param [String] name - # Required. The name of the NotebookRuntime resource to be started. Instead of - # checking whether the name is in valid NotebookRuntime resource name format, - # directly throw NotFound exception if there is no such NotebookRuntime in - # spanner. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StartNotebookRuntimeRequest] google_cloud_aiplatform_v1beta1_start_notebook_runtime_request_object + # Identifier. The resource name of the Memory. Format: `projects/`project`/ + # locations/`location`/reasoningEngines/`reasoning_engine`/memories/`memory`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] google_cloud_aiplatform_v1beta1_memory_object + # @param [String] update_mask + # Optional. Mask specifying which fields to update. Supported fields: * ` + # display_name` * `description` * `fact` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -21017,25 +32932,25 @@ def report_project_location_notebook_runtime_event(name, google_cloud_aiplatform # @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 start_project_location_notebook_runtime(name, google_cloud_aiplatform_v1beta1_start_notebook_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:start', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StartNotebookRuntimeRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_start_notebook_runtime_request_object + def patch_project_location_reasoning_engine_memory(name, google_cloud_aiplatform_v1beta1_memory_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory::Representation + command.request_object = google_cloud_aiplatform_v1beta1_memory_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation 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 - # Stops a NotebookRuntime. - # @param [String] name - # Required. The name of the NotebookRuntime resource to be stopped. Instead of - # checking whether the name is in valid NotebookRuntime resource name format, - # directly throw NotFound exception if there is no such NotebookRuntime in - # spanner. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StopNotebookRuntimeRequest] google_cloud_aiplatform_v1beta1_stop_notebook_runtime_request_object + # Retrieve memories. + # @param [String] parent + # Required. The resource name of the ReasoningEngine to retrieve memories from. + # Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest] google_cloud_aiplatform_v1beta1_retrieve_memories_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -21045,33 +32960,32 @@ def start_project_location_notebook_runtime(name, google_cloud_aiplatform_v1beta # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse] # # @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 stop_project_location_notebook_runtime(name, google_cloud_aiplatform_v1beta1_stop_notebook_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:stop', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StopNotebookRuntimeRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_stop_notebook_runtime_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + def retrieve_project_location_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_retrieve_memories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/memories:retrieve', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_retrieve_memories_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse + 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 - # Upgrades a NotebookRuntime. + # Rollback Memory to a specific revision. # @param [String] name - # Required. The name of the NotebookRuntime resource to be upgrade. Instead of - # checking whether the name is in valid NotebookRuntime resource name format, - # directly throw NotFound exception if there is no such NotebookRuntime in - # spanner. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeRequest] google_cloud_aiplatform_v1beta1_upgrade_notebook_runtime_request_object + # Required. The resource name of the Memory to rollback. Format: `projects/` + # project`/locations/`location`/reasoningEngines/`reasoning_engine`/memories/` + # memory`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RollbackMemoryRequest] google_cloud_aiplatform_v1beta1_rollback_memory_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -21089,10 +33003,10 @@ def stop_project_location_notebook_runtime(name, google_cloud_aiplatform_v1beta1 # @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 upgrade_project_location_notebook_runtime(name, google_cloud_aiplatform_v1beta1_upgrade_notebook_runtime_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:upgrade', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_upgrade_notebook_runtime_request_object + def rollback_project_location_reasoning_engine_memory(name, google_cloud_aiplatform_v1beta1_rollback_memory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:rollback', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RollbackMemoryRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_rollback_memory_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -21128,7 +33042,7 @@ def upgrade_project_location_notebook_runtime(name, google_cloud_aiplatform_v1be # @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_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -21161,7 +33075,7 @@ def cancel_project_location_notebook_runtime_operation(name, fields: nil, quota_ # @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_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -21192,7 +33106,7 @@ def delete_project_location_notebook_runtime_operation(name, fields: nil, quota_ # @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_notebook_runtime_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -21236,7 +33150,7 @@ def get_project_location_notebook_runtime_operation(name, fields: nil, quota_use # @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_notebook_runtime_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -21281,7 +33195,7 @@ def list_project_location_notebook_runtime_operations(name, filter: nil, page_si # @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_project_location_notebook_runtime_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_reasoning_engine_memory_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -21292,6 +33206,80 @@ def wait_project_location_notebook_runtime_operation(name, timeout: nil, fields: execute_or_queue_command(command, &block) end + # Get a Memory Revision. + # @param [String] name + # Required. The resource name of the Memory Revision to retrieve. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # memories/`memory`/revisions/`revision`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision] + # + # @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_memory_revision(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision + 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 + + # List Memory Revisions for a Memory. + # @param [String] parent + # Required. The resource name of the Memory to list revisions for. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # memories/`memory`` + # @param [String] filter + # Optional. The standard list filter. More detail in [AIP-160](https://google. + # aip.dev/160). Supported fields (equality match only): * `labels` + # @param [Fixnum] page_size + # Optional. The standard list page size. + # @param [String] page_token + # Optional. The standard list page token. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse] + # + # @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_memory_revisions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/revisions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse + 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`. @@ -21319,7 +33307,7 @@ def wait_project_location_notebook_runtime_operation(name, timeout: nil, fields: # @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_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -21352,7 +33340,7 @@ def cancel_project_location_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_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -21383,7 +33371,7 @@ def delete_project_location_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_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -21427,7 +33415,7 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options: # @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_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -21472,7 +33460,7 @@ def list_project_location_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_project_location_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_reasoning_engine_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -21483,15 +33471,12 @@ def wait_project_location_operation(name, timeout: nil, fields: nil, quota_user: execute_or_queue_command(command, &block) end - # Creates a PersistentResource. + # Creates a SandboxEnvironment in a given reasoning engine. # @param [String] parent - # Required. The resource name of the Location to create the PersistentResource - # in. Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource] google_cloud_aiplatform_v1beta1_persistent_resource_object - # @param [String] persistent_resource_id - # Required. The ID to use for the PersistentResource, which become the final - # component of the PersistentResource's resource name. The maximum length is 63 - # characters, and valid characters are `/^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$/`. + # Required. The resource name of the reasoning engine to create the + # SandboxEnvironment in. Format: `projects/`project`/locations/`location`/ + # reasoningEngines/`reasoning_engine``. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment] google_cloud_aiplatform_v1beta1_sandbox_environment_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -21509,23 +33494,23 @@ def wait_project_location_operation(name, timeout: nil, fields: nil, quota_user: # @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_persistent_resource(parent, google_cloud_aiplatform_v1beta1_persistent_resource_object = nil, persistent_resource_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/persistentResources', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource::Representation - command.request_object = google_cloud_aiplatform_v1beta1_persistent_resource_object + def create_project_location_reasoning_engine_sandbox_environment(parent, google_cloud_aiplatform_v1beta1_sandbox_environment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/sandboxEnvironments', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment::Representation + command.request_object = google_cloud_aiplatform_v1beta1_sandbox_environment_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? - command.query['persistentResourceId'] = persistent_resource_id unless persistent_resource_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 - # Deletes a PersistentResource. + # Deletes the specific SandboxEnvironment. # @param [String] name - # Required. The name of the PersistentResource to be deleted. Format: `projects/` - # project`/locations/`location`/persistentResources/`persistent_resource`` + # 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 @@ -21543,7 +33528,7 @@ def create_project_location_persistent_resource(parent, google_cloud_aiplatform_ # @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_persistent_resource(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, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -21553,11 +33538,12 @@ def delete_project_location_persistent_resource(name, fields: nil, quota_user: n execute_or_queue_command(command, &block) end - # Gets a PersistentResource. + # Executes using a sandbox environment. # @param [String] name - # Required. The name of the PersistentResource resource. Format: `projects/` - # project_id_or_number`/locations/`location_id`/persistentResources/` - # persistent_resource_id`` + # Required. The resource name of the sandbox environment to execute. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # sandboxEnvironments/`sandbox_environment`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentRequest] google_cloud_aiplatform_v1beta1_execute_sandbox_environment_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -21567,70 +33553,31 @@ def delete_project_location_persistent_resource(name, fields: nil, quota_user: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse] # # @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_persistent_resource(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource + def execute_project_location_reasoning_engine_sandbox_environment(name, google_cloud_aiplatform_v1beta1_execute_sandbox_environment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:execute', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_execute_sandbox_environment_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse 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 PersistentResources in a Location. - # @param [String] parent - # Required. The resource name of the Location to list the PersistentResources - # from. Format: `projects/`project`/locations/`location`` - # @param [Fixnum] page_size - # Optional. The standard list page size. - # @param [String] page_token - # Optional. The standard list page token. Typically obtained via - # ListPersistentResourcesResponse.next_page_token of the previous - # PersistentResourceService.ListPersistentResource 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse] - # - # @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_persistent_resources(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/persistentResources', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse - command.params['parent'] = parent unless parent.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 a PersistentResource. + # Gets details of the specific SandboxEnvironment. # @param [String] name - # Immutable. Resource name of a PersistentResource. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource] google_cloud_aiplatform_v1beta1_persistent_resource_object - # @param [String] update_mask - # Required. Specify the fields to be overwritten in the PersistentResource by - # the update method. + # 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 @@ -21640,33 +33587,39 @@ def list_project_location_persistent_resources(parent, page_size: nil, page_toke # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment] # # @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_persistent_resource(name, google_cloud_aiplatform_v1beta1_persistent_resource_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PersistentResource::Representation - command.request_object = google_cloud_aiplatform_v1beta1_persistent_resource_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def get_project_location_reasoning_engine_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment 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 - # Reboots a PersistentResource. - # @param [String] name - # Required. The name of the PersistentResource resource. Format: `projects/` - # project_id_or_number`/locations/`location_id`/persistentResources/` - # persistent_resource_id`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RebootPersistentResourceRequest] google_cloud_aiplatform_v1beta1_reboot_persistent_resource_request_object + # 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 @@ -21676,21 +33629,22 @@ def patch_project_location_persistent_resource(name, google_cloud_aiplatform_v1b # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse] # # @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 reboot_project_location_persistent_resource(name, google_cloud_aiplatform_v1beta1_reboot_persistent_resource_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:reboot', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RebootPersistentResourceRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_reboot_persistent_resource_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + 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, 'v1beta1/{+parent}/sandboxEnvironments', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse + 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) @@ -21723,7 +33677,7 @@ def reboot_project_location_persistent_resource(name, google_cloud_aiplatform_v1 # @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_persistent_resource_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, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -21756,7 +33710,7 @@ def cancel_project_location_persistent_resource_operation(name, fields: nil, quo # @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_persistent_resource_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, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -21787,7 +33741,7 @@ def delete_project_location_persistent_resource_operation(name, fields: nil, quo # @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_persistent_resource_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, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -21831,7 +33785,7 @@ def get_project_location_persistent_resource_operation(name, fields: nil, quota_ # @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_persistent_resource_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_reasoning_engine_sandbox_environment_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -21876,7 +33830,7 @@ def list_project_location_persistent_resource_operations(name, filter: nil, page # @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_project_location_persistent_resource_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + 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, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -21887,15 +33841,12 @@ def wait_project_location_persistent_resource_operation(name, timeout: nil, fiel execute_or_queue_command(command, &block) end - # Batch cancel PipelineJobs. Firstly the server will check if all the jobs are - # in non-terminal states, and skip the jobs that are already terminated. If the - # operation failed, none of the pipeline jobs are cancelled. The server will - # poll the states of all the pipeline jobs periodically to check the - # cancellation status. This operation will return an LRO. - # @param [String] parent - # Required. The name of the PipelineJobs' parent resource. Format: `projects/` - # project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsRequest] google_cloud_aiplatform_v1beta1_batch_cancel_pipeline_jobs_request_object + # 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SessionEvent] google_cloud_aiplatform_v1beta1_session_event_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -21905,32 +33856,31 @@ def wait_project_location_persistent_resource_operation(name, timeout: nil, fiel # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse] # # @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 batch_project_location_pipeline_job_cancel(parent, google_cloud_aiplatform_v1beta1_batch_cancel_pipeline_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/pipelineJobs:batchCancel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_batch_cancel_pipeline_jobs_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def append_project_location_reasoning_engine_session_event(name, google_cloud_aiplatform_v1beta1_session_event_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:appendEvent', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SessionEvent::Representation + command.request_object = google_cloud_aiplatform_v1beta1_session_event_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse + 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 - # Batch deletes PipelineJobs The Operation is atomic. If it fails, none of the - # PipelineJobs are deleted. If it succeeds, all of the PipelineJobs are deleted. + # Creates a new Session. # @param [String] parent - # Required. The name of the PipelineJobs' parent resource. Format: `projects/` - # project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsRequest] google_cloud_aiplatform_v1beta1_batch_delete_pipeline_jobs_request_object + # Required. The resource name of the location to create the session in. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_session_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -21948,10 +33898,10 @@ def batch_project_location_pipeline_job_cancel(parent, google_cloud_aiplatform_v # @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 batch_project_location_pipeline_job_delete(parent, google_cloud_aiplatform_v1beta1_batch_delete_pipeline_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/pipelineJobs:batchDelete', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_batch_delete_pipeline_jobs_request_object + def create_project_location_reasoning_engine_session(parent, google_cloud_aiplatform_v1beta1_session_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/sessions', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation + command.request_object = google_cloud_aiplatform_v1beta1_session_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? @@ -21960,18 +33910,10 @@ def batch_project_location_pipeline_job_delete(parent, google_cloud_aiplatform_v execute_or_queue_command(command, &block) end - # Cancels a PipelineJob. Starts asynchronous cancellation on the PipelineJob. - # The server makes a best effort to cancel the pipeline, but success is not - # guaranteed. Clients can use PipelineService.GetPipelineJob or other methods to - # check whether the cancellation succeeded or whether the pipeline completed - # despite cancellation. On successful cancellation, the PipelineJob is not - # deleted; instead it becomes a pipeline with a PipelineJob.error value with a - # google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and - # PipelineJob.state is set to `CANCELLED`. + # Deletes details of the specific Session. # @param [String] name - # Required. The name of the PipelineJob to cancel. Format: `projects/`project`/ - # locations/`location`/pipelineJobs/`pipeline_job`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelPipelineJobRequest] google_cloud_aiplatform_v1beta1_cancel_pipeline_job_request_object + # 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 @@ -21981,36 +33923,28 @@ def batch_project_location_pipeline_job_delete(parent, google_cloud_aiplatform_v # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::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 cancel_project_location_pipeline_job(name, google_cloud_aiplatform_v1beta1_cancel_pipeline_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelPipelineJobRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_cancel_pipeline_job_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def delete_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Creates a PipelineJob. A PipelineJob will run immediately when created. - # @param [String] parent - # Required. The resource name of the Location to create the PipelineJob in. - # Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob] google_cloud_aiplatform_v1beta1_pipeline_job_object - # @param [String] pipeline_job_id - # The ID to use for the PipelineJob, which will become the final component of - # the PipelineJob name. If not provided, an ID will be automatically generated. - # This value should be less than 128 characters, and valid characters are `/a-z-/ - # `. + # 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 @@ -22020,31 +33954,41 @@ def cancel_project_location_pipeline_job(name, google_cloud_aiplatform_v1beta1_c # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] # # @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_pipeline_job(parent, google_cloud_aiplatform_v1beta1_pipeline_job_object = nil, pipeline_job_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/pipelineJobs', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob::Representation - command.request_object = google_cloud_aiplatform_v1beta1_pipeline_job_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob - command.params['parent'] = parent unless parent.nil? - command.query['pipelineJobId'] = pipeline_job_id unless pipeline_job_id.nil? + def get_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session + 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 PipelineJob. - # @param [String] name - # Required. The name of the PipelineJob resource to be deleted. Format: ` - # projects/`project`/locations/`location`/pipelineJobs/`pipeline_job`` + # 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` Example: `display_name="abc"`, `user_id="123"`. + # @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 @@ -22054,28 +33998,36 @@ def create_project_location_pipeline_job(parent, google_cloud_aiplatform_v1beta1 # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse] # # @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_pipeline_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + 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, 'v1beta1/{+parent}/sessions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse + 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 - # Gets a PipelineJob. + # Updates the specific Session. # @param [String] name - # Required. The name of the PipelineJob resource. Format: `projects/`project`/ - # locations/`location`/pipelineJobs/`pipeline_job`` + # Identifier. The resource name of the session. Format: 'projects/`project`/ + # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`'. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_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 @@ -22085,65 +34037,43 @@ def delete_project_location_pipeline_job(name, fields: nil, quota_user: nil, opt # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] # # @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_pipeline_job(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PipelineJob + def patch_project_location_reasoning_engine_session(name, google_cloud_aiplatform_v1beta1_session_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation + command.request_object = google_cloud_aiplatform_v1beta1_session_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session 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 PipelineJobs in a Location. + # Lists Events in a given session. # @param [String] parent - # Required. The resource name of the Location to list the PipelineJobs from. - # Format: `projects/`project`/locations/`location`` + # Required. The resource name of the session to list events from. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # sessions/`session`` # @param [String] filter - # Lists the PipelineJobs that match the filter expression. The following fields - # are supported: * `pipeline_name`: Supports `=` and `!=` comparisons. * ` - # display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * ` - # pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. for - # example, can check if pipeline's display_name contains *step* by doing - # display_name:\"*step*\" * `state`: Supports `=` and `!=` comparisons. * ` - # create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values - # must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=` - # , and `>=` comparisons. Values must be in RFC 3339 format. * `end_time`: - # Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in - # RFC 3339 format. * `labels`: Supports key-value equality and key presence. * ` - # template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * ` - # template_metadata.version`: Supports `=`, `!=` comparisons, and `:` wildcard. - # Filter expressions can be combined together using logical operators (`AND` & ` - # OR`). For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z" - # `. The syntax to define filter expression is based on https://google.aip.dev/ - # 160. Examples: * `create_time>"2021-05-18T00:00:00Z" OR update_time>"2020-05- - # 18T00:00:00Z"` PipelineJobs created or updated after 2020-05-18 00:00:00 UTC. * - # `labels.env = "prod"` PipelineJobs with label "env" set to "prod". - # @param [String] order_by - # A comma-separated list of fields to order by. The default sort order is in - # ascending order. Use "desc" after a field name for descending. You can have - # multiple order_by fields provided e.g. "create_time desc, end_time", "end_time, - # start_time, update_time" For example, using "create_time desc, end_time" will - # order results by create time in descending order, and if there are multiple - # jobs having the same create time, order them by the end time in ascending - # order. if order_by is not specified, it will order by default order is create - # time in descending order. Supported fields: * `create_time` * `update_time` * ` - # end_time` * `start_time` + # 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 [Fixnum] page_size - # The standard list 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 - # The standard list page token. Typically obtained via ListPipelineJobsResponse. - # next_page_token of the previous PipelineService.ListPipelineJobs call. - # @param [String] read_mask - # Mask specifying which fields to read. + # 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 @@ -22153,24 +34083,22 @@ def get_project_location_pipeline_job(name, fields: nil, quota_user: nil, option # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPipelineJobsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPipelineJobsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse] # # @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_pipeline_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/pipelineJobs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPipelineJobsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPipelineJobsResponse + def list_project_location_reasoning_engine_session_events(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/events', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse 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['readMask'] = read_mask unless read_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -22203,7 +34131,7 @@ def list_project_location_pipeline_jobs(parent, filter: nil, order_by: nil, page # @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_pipeline_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -22236,7 +34164,7 @@ def cancel_project_location_pipeline_job_operation(name, fields: nil, quota_user # @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_pipeline_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -22267,7 +34195,7 @@ def delete_project_location_pipeline_job_operation(name, fields: nil, quota_user # @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_pipeline_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -22311,7 +34239,7 @@ def get_project_location_pipeline_job_operation(name, fields: nil, quota_user: n # @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_pipeline_job_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + 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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -22356,7 +34284,7 @@ def list_project_location_pipeline_job_operations(name, filter: nil, page_size: # @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_project_location_pipeline_job_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_reasoning_engine_session_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -22367,11 +34295,11 @@ def wait_project_location_pipeline_job_operation(name, timeout: nil, fields: nil execute_or_queue_command(command, &block) end - # Return a list of tokens based on the input text. - # @param [String] endpoint - # Required. The name of the Endpoint requested to get lists of tokens and token - # ids. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest] google_cloud_aiplatform_v1beta1_compute_tokens_request_object + # Creates a Schedule. + # @param [String] parent + # Required. The resource name of the Location to create the Schedule in. Format: + # `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] google_cloud_aiplatform_v1beta1_schedule_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -22381,31 +34309,30 @@ def wait_project_location_pipeline_job_operation(name, timeout: nil, fields: nil # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] # # @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 compute_project_location_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1beta1_compute_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:computeTokens', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_compute_tokens_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + def create_project_location_schedule(parent, google_cloud_aiplatform_v1beta1_schedule_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/schedules', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule::Representation + command.request_object = google_cloud_aiplatform_v1beta1_schedule_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule + 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 - # Perform a token counting. - # @param [String] endpoint - # Required. The name of the Endpoint requested to perform token counting. Format: - # `projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest] google_cloud_aiplatform_v1beta1_count_tokens_request_object + # Deletes a Schedule. + # @param [String] name + # Required. The name of the Schedule resource to be deleted. Format: `projects/` + # project`/locations/`location`/schedules/`schedule`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -22415,31 +34342,28 @@ def compute_project_location_publisher_model_tokens(endpoint, google_cloud_aipla # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] + # @return [Google::Apis::AiplatformV1beta1::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 count_project_location_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1beta1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:countTokens', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_count_tokens_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + def delete_project_location_schedule(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Embed content with multimodal inputs. - # @param [String] model - # Required. The name of the publisher model requested to serve the prediction. - # Format: `projects/`project`/locations/`location`/publishers/*/models/*` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentRequest] google_cloud_aiplatform_v1beta1_embed_content_request_object + # Gets a Schedule. + # @param [String] name + # Required. The name of the Schedule resource. Format: `projects/`project`/ + # locations/`location`/schedules/`schedule`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -22449,35 +34373,59 @@ def count_project_location_publisher_model_tokens(endpoint, google_cloud_aiplatf # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] # # @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 embed_project_location_publisher_model_content(model, google_cloud_aiplatform_v1beta1_embed_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+model}:embedContent', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_embed_content_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EmbedContentResponse - command.params['model'] = model unless model.nil? + def get_project_location_schedule(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule + 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 - # Exports a publisher model to a user provided Google Cloud Storage bucket. + # Lists Schedules in a Location. # @param [String] parent - # Required. The Location to export the model weights from Format: `projects/` - # project`/locations/`location`` - # @param [String] name - # Required. The name of the PublisherModel resource. Format: `publishers/` - # publisher`/models/`publisher_model`@`version_id``, or `publishers/hf-`hugging- - # face-author`/models/`hugging-face-model-name`@001` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportPublisherModelRequest] google_cloud_aiplatform_v1beta1_export_publisher_model_request_object + # Required. The resource name of the Location to list the Schedules from. Format: + # `projects/`project`/locations/`location`` + # @param [String] filter + # Lists the Schedules that match the filter expression. The following fields are + # supported: * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. + # * `state`: Supports `=` and `!=` comparisons. * `request`: Supports existence + # of the check. (e.g. `create_pipeline_job_request:*` --> Schedule has + # create_pipeline_job_request). * `create_time`: Supports `=`, `!=`, `<`, `>`, `< + # =`, and `>=` comparisons. Values must be in RFC 3339 format. * `start_time`: + # Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in + # RFC 3339 format. * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, `>=` + # comparisons and `:*` existence check. Values must be in RFC 3339 format. * ` + # next_run_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. + # Values must be in RFC 3339 format. Filter expressions can be combined together + # using logical operators (`NOT`, `AND` & `OR`). The syntax to define filter + # expression is based on https://google.aip.dev/160. Examples: * `state="ACTIVE" + # AND display_name:"my_schedule_*"` * `NOT display_name="my_schedule"` * ` + # create_time>"2021-05-18T00:00:00Z"` * `end_time>"2021-05-18T00:00:00Z" OR NOT + # end_time:*` * `create_pipeline_job_request:*` + # @param [String] order_by + # A comma-separated list of fields to order by. The default sort order is in + # ascending order. Use "desc" after a field name for descending. You can have + # multiple order_by fields provided. For example, using "create_time desc, + # end_time" will order results by create time in descending order, and if there + # are multiple schedules having the same create time, order them by the end time + # in ascending order. If order_by is not specified, it will order by default + # with create_time in descending order. Supported fields: * `create_time` * ` + # start_time` * `end_time` * `next_run_time` + # @param [Fixnum] page_size + # The standard list page size. Default to 100 if not specified. + # @param [String] page_token + # The standard list page token. Typically obtained via ListSchedulesResponse. + # next_page_token of the previous ScheduleService.ListSchedules call. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -22487,33 +34435,39 @@ def embed_project_location_publisher_model_content(model, google_cloud_aiplatfor # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSchedulesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSchedulesResponse] # # @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 export_project_location_publisher_model(parent, name, google_cloud_aiplatform_v1beta1_export_publisher_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/{+name}:export', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportPublisherModelRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_export_publisher_model_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def list_project_location_schedules(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, 'v1beta1/{+parent}/schedules', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSchedulesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSchedulesResponse command.params['parent'] = parent unless parent.nil? - command.params['name'] = name unless name.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 - # Fetch an asynchronous online prediction operation. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` - # project`/locations/`location`/publishers/`publisher`/models/`model`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest] google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object + # Updates an active or paused Schedule. When the Schedule is updated, new runs + # will be scheduled starting from the updated next execution time after the + # update time based on the time_specification in the updated Schedule. All + # unstarted runs before the update time will be skipped while already created + # runs will NOT be paused or canceled. + # @param [String] name + # Immutable. The resource name of the Schedule. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] google_cloud_aiplatform_v1beta1_schedule_object + # @param [String] update_mask + # Required. The update mask applies to the resource. See google.protobuf. + # FieldMask. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -22523,30 +34477,34 @@ def export_project_location_publisher_model(parent, name, google_cloud_aiplatfor # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] # # @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 fetch_project_location_publisher_model_predict_operation(endpoint, google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:fetchPredictOperation', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['endpoint'] = endpoint unless endpoint.nil? + def patch_project_location_schedule(name, google_cloud_aiplatform_v1beta1_schedule_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule::Representation + command.request_object = google_cloud_aiplatform_v1beta1_schedule_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule + 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 - # Fetches the configs of publisher models. + # Pauses a Schedule. Will mark Schedule.state to 'PAUSED'. If the schedule is + # paused, no new runs will be created. Already created runs will NOT be paused + # or canceled. # @param [String] name - # Required. The name of the publisher model, in the format of `projects/`project` - # /locations/`location`/publishers/`publisher`/models/`model``. + # Required. The name of the Schedule resource to be paused. Format: `projects/` + # project`/locations/`location`/schedules/`schedule`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PauseScheduleRequest] google_cloud_aiplatform_v1beta1_pause_schedule_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -22556,31 +34514,36 @@ def fetch_project_location_publisher_model_predict_operation(endpoint, google_cl # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig] + # @return [Google::Apis::AiplatformV1beta1::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 fetch_project_location_publisher_model_publisher_model_config(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}:fetchPublisherModelConfig', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelConfig + def pause_project_location_schedule(name, google_cloud_aiplatform_v1beta1_pause_schedule_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:pause', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PauseScheduleRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_pause_schedule_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Generate content with multimodal inputs. - # @param [String] model - # Required. The fully qualified name of the publisher model or tuned model - # endpoint to use. Publisher model format: `projects/`project`/locations/` - # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` - # project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object + # Resumes a paused Schedule to start scheduling new runs. Will mark Schedule. + # state to 'ACTIVE'. Only paused Schedule can be resumed. When the Schedule is + # resumed, new runs will be scheduled starting from the next execution time + # after the current time based on the time_specification in the Schedule. If + # Schedule.catch_up is set up true, all missed runs will be scheduled for + # backfill first. + # @param [String] name + # Required. The name of the Schedule resource to be resumed. Format: `projects/` + # project`/locations/`location`/schedules/`schedule`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResumeScheduleRequest] google_cloud_aiplatform_v1beta1_resume_schedule_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -22590,43 +34553,36 @@ def fetch_project_location_publisher_model_publisher_model_config(name, fields: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] + # @return [Google::Apis::AiplatformV1beta1::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 generate_project_location_publisher_model_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+model}:generateContent', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse - command.params['model'] = model unless model.nil? + def resume_project_location_schedule(name, google_cloud_aiplatform_v1beta1_resume_schedule_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:resume', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResumeScheduleRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_resume_schedule_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The maximum policy version that will be used to format the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. Requests for policies with any conditional role bindings must - # specify version 3. Policies with no conditional role bindings may specify any - # valid value or leave the field unset. The policy in the response might use the - # policy version that you specified, or it might use a lower policy version. For - # example, if you specify version 3, but the policy has no conditional role - # bindings, the response uses version 1. To learn which resources support - # conditions in their IAM policies, see the [IAM documentation](https://cloud. - # google.com/iam/help/conditions/resource-policies). + # 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 @@ -22636,30 +34592,30 @@ def generate_project_location_publisher_model_content(model, google_cloud_aiplat # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleIamV1Policy] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_publisher_model_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleIamV1Policy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? + def cancel_project_location_schedule_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Perform an online prediction. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest] google_cloud_aiplatform_v1beta1_predict_request_object + # 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 @@ -22669,32 +34625,28 @@ def get_project_location_publisher_model_iam_policy(resource, options_requested_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] + # @return [Google::Apis::AiplatformV1beta1::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 predict_project_location_publisher_model(endpoint, google_cloud_aiplatform_v1beta1_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:predict', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_predict_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + def delete_project_location_schedule_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` - # project`/locations/`location`/publishers/`publisher`/models/`model`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest] google_cloud_aiplatform_v1beta1_predict_long_running_request_object + # 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 @@ -22712,26 +34664,33 @@ def predict_project_location_publisher_model(endpoint, google_cloud_aiplatform_v # @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 predict_project_location_publisher_model_long_running(endpoint, google_cloud_aiplatform_v1beta1_predict_long_running_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:predictLongRunning', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_predict_long_running_request_object + def get_project_location_schedule_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['endpoint'] = endpoint unless endpoint.nil? + 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 - # Perform an online prediction with an arbitrary HTTP payload. The response - # includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the - # Endpoint that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of - # the Endpoint's DeployedModel that served this prediction. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RawPredictRequest] google_cloud_aiplatform_v1beta1_raw_predict_request_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -22741,32 +34700,42 @@ def predict_project_location_publisher_model_long_running(endpoint, google_cloud # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] + # @return [Google::Apis::AiplatformV1beta1::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 raw_project_location_publisher_model_predict(endpoint, google_cloud_aiplatform_v1beta1_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:rawPredict', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RawPredictRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_raw_predict_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody - command.params['endpoint'] = endpoint unless endpoint.nil? + def list_project_location_schedule_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Perform a server-side streaming online prediction request for Vertex LLM - # streaming. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictRequest] google_cloud_aiplatform_v1beta1_streaming_predict_request_object + # 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 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 @@ -22776,32 +34745,31 @@ def raw_project_location_publisher_model_predict(endpoint, google_cloud_aiplatfo # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse] + # @return [Google::Apis::AiplatformV1beta1::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 server_project_location_publisher_model_streaming_predict(endpoint, google_cloud_aiplatform_v1beta1_streaming_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:serverStreamingPredict', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_streaming_predict_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingPredictResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + def wait_project_location_schedule_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Sets (creates or updates) configs of publisher models. For example, sets the - # request/response logging config. + # 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 - # Required. The name of the publisher model, in the format of `projects/`project` - # /locations/`location`/publishers/`publisher`/models/`model``. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest] google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object + # 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 @@ -22811,33 +34779,28 @@ def server_project_location_publisher_model_streaming_predict(endpoint, google_c # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 set_project_location_publisher_model_publisher_model_config(name, google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:setPublisherModelConfig', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SetPublisherModelConfigRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_set_publisher_model_config_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def delete_project_location_solver_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Generate content with multimodal inputs with streaming support. - # @param [String] model - # Required. The fully qualified name of the publisher model or tuned model - # endpoint to use. Publisher model format: `projects/`project`/locations/` - # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` - # project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object + # 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 @@ -22847,31 +34810,41 @@ def set_project_location_publisher_model_publisher_model_config(name, google_clo # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] + # @return [Google::Apis::AiplatformV1beta1::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_project_location_publisher_model_generate_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+model}:streamGenerateContent', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse - command.params['model'] = model unless model.nil? + def get_project_location_solver_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # 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`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamRawPredictRequest] google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -22881,31 +34854,33 @@ def stream_project_location_publisher_model_generate_content(model, google_cloud # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] + # @return [Google::Apis::AiplatformV1beta1::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 stream_project_location_publisher_model_raw_predict(endpoint, google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:streamRawPredict', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamRawPredictRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_stream_raw_predict_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody - command.params['endpoint'] = endpoint unless endpoint.nil? + def list_project_location_solver_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Creates a RagCorpus. + # Creates a SpecialistPool. # @param [String] parent - # Required. The resource name of the Location to create the RagCorpus in. Format: - # `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus] google_cloud_aiplatform_v1beta1_rag_corpus_object + # Required. The parent Project name for the new SpecialistPool. The form is ` + # projects/`project`/locations/`location``. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool] google_cloud_aiplatform_v1beta1_specialist_pool_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -22923,10 +34898,10 @@ def stream_project_location_publisher_model_raw_predict(endpoint, google_cloud_a # @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_rag_corpora(parent, google_cloud_aiplatform_v1beta1_rag_corpus_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/ragCorpora', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus::Representation - command.request_object = google_cloud_aiplatform_v1beta1_rag_corpus_object + def create_project_location_specialist_pool(parent, google_cloud_aiplatform_v1beta1_specialist_pool_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/specialistPools', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool::Representation + command.request_object = google_cloud_aiplatform_v1beta1_specialist_pool_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? @@ -22935,13 +34910,14 @@ def create_project_location_rag_corpora(parent, google_cloud_aiplatform_v1beta1_ execute_or_queue_command(command, &block) end - # Deletes a RagCorpus. + # Deletes a SpecialistPool as well as all Specialists in the pool. # @param [String] name - # Required. The name of the RagCorpus resource to be deleted. Format: `projects/` - # project`/locations/`location`/ragCorpora/`rag_corpus`` + # Required. The resource name of the SpecialistPool to delete. Format: `projects/ + # `project`/locations/`location`/specialistPools/`specialist_pool`` # @param [Boolean] force - # Optional. If set to true, any RagFiles in this RagCorpus will also be deleted. - # Otherwise, the request will only work if the RagCorpus has no RagFiles. + # If set to true, any specialist managers in this SpecialistPool will also be + # deleted. (Otherwise, the request will only work if the SpecialistPool has no + # specialist managers.) # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -22959,7 +34935,7 @@ def create_project_location_rag_corpora(parent, google_cloud_aiplatform_v1beta1_ # @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_rag_corpora(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_specialist_pool(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -22970,10 +34946,10 @@ def delete_project_location_rag_corpora(name, force: nil, fields: nil, quota_use execute_or_queue_command(command, &block) end - # Gets a RagCorpus. + # Gets a SpecialistPool. # @param [String] name - # Required. The name of the RagCorpus resource. Format: `projects/`project`/ - # locations/`location`/ragCorpora/`rag_corpus`` + # Required. The name of the SpecialistPool resource. The form is `projects/` + # project`/locations/`location`/specialistPools/`specialist_pool``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -22983,34 +34959,36 @@ def delete_project_location_rag_corpora(name, force: nil, fields: nil, quota_use # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool] # # @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_rag_corpora(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_specialist_pool(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool 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 RagCorpora in a Location. + # Lists SpecialistPools in a Location. # @param [String] parent - # Required. The resource name of the Location from which to list the RagCorpora. - # Format: `projects/`project`/locations/`location`` + # Required. The name of the SpecialistPool's parent resource. Format: `projects/` + # project`/locations/`location`` # @param [Fixnum] page_size - # Optional. The standard list page size. + # The standard list page size. # @param [String] page_token - # Optional. The standard list page token. Typically obtained via - # ListRagCorporaResponse.next_page_token of the previous VertexRagDataService. - # ListRagCorpora call. + # The standard list page token. Typically obtained by + # ListSpecialistPoolsResponse.next_page_token of the previous + # SpecialistPoolService.ListSpecialistPools call. Return first page if empty. + # @param [String] read_mask + # Mask specifying which fields to read. FieldMask represents a set of # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -23020,30 +34998,33 @@ def get_project_location_rag_corpora(name, fields: nil, quota_user: nil, options # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSpecialistPoolsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSpecialistPoolsResponse] # # @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_rag_corporas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/ragCorpora', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse + def list_project_location_specialist_pools(parent, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/specialistPools', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSpecialistPoolsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSpecialistPoolsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['readMask'] = read_mask unless read_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 - # Updates a RagCorpus. + # Updates a SpecialistPool. # @param [String] name - # Output only. The resource name of the RagCorpus. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus] google_cloud_aiplatform_v1beta1_rag_corpus_object + # Required. The resource name of the SpecialistPool. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool] google_cloud_aiplatform_v1beta1_specialist_pool_object + # @param [String] update_mask + # Required. The update mask applies to the resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -23061,13 +35042,14 @@ def list_project_location_rag_corporas(parent, page_size: nil, page_token: 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 patch_project_location_rag_corpora(name, google_cloud_aiplatform_v1beta1_rag_corpus_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_project_location_specialist_pool(name, google_cloud_aiplatform_v1beta1_specialist_pool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus::Representation - command.request_object = google_cloud_aiplatform_v1beta1_rag_corpus_object + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool::Representation + command.request_object = google_cloud_aiplatform_v1beta1_specialist_pool_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation 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) @@ -23100,7 +35082,7 @@ def patch_project_location_rag_corpora(name, google_cloud_aiplatform_v1beta1_rag # @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_rag_corpora_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_specialist_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -23133,7 +35115,7 @@ def cancel_project_location_rag_corpora_operation(name, fields: nil, quota_user: # @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_rag_corpora_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_specialist_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -23164,7 +35146,7 @@ def delete_project_location_rag_corpora_operation(name, fields: nil, quota_user: # @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_rag_corpora_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_specialist_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -23208,7 +35190,7 @@ def get_project_location_rag_corpora_operation(name, fields: nil, quota_user: ni # @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_rag_corpora_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_specialist_pool_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -23253,7 +35235,7 @@ def list_project_location_rag_corpora_operations(name, filter: nil, page_size: n # @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_project_location_rag_corpora_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_specialist_pool_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -23264,116 +35246,11 @@ def wait_project_location_rag_corpora_operation(name, timeout: nil, fields: nil, execute_or_queue_command(command, &block) end - # Deletes a RagFile. - # @param [String] name - # Required. The name of the RagFile resource to be deleted. Format: `projects/` - # project`/locations/`location`/ragCorpora/`rag_corpus`/ragFiles/`rag_file`` - # @param [Boolean] force_delete - # Optional. If set to true, any errors generated by external vector database - # during the deletion will be ignored. The default value is false. - # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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_rag_corpora_rag_file(name, force_delete: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? - command.query['forceDelete'] = force_delete unless force_delete.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 RagFile. - # @param [String] name - # Required. The name of the RagFile resource. Format: `projects/`project`/ - # locations/`location`/ragCorpora/`rag_corpus`/ragFiles/`rag_file`` - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile] - # - # @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_rag_corpora_rag_file(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile - 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 - - # Import files from Google Cloud Storage or Google Drive into a RagCorpus. - # @param [String] parent - # Required. The name of the RagCorpus resource into which to import files. - # Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportRagFilesRequest] google_cloud_aiplatform_v1beta1_import_rag_files_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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 import_project_location_rag_corpora_rag_file(parent, google_cloud_aiplatform_v1beta1_import_rag_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/ragFiles:import', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportRagFilesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_import_rag_files_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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 - - # Lists RagFiles in a RagCorpus. + # Creates a Study. A resource name will be generated after creation of the Study. # @param [String] parent - # Required. The resource name of the RagCorpus from which to list the RagFiles. - # Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus`` - # @param [Fixnum] page_size - # Optional. The standard list page size. - # @param [String] page_token - # Optional. The standard list page token. Typically obtained via - # ListRagFilesResponse.next_page_token of the previous VertexRagDataService. - # ListRagFiles call. + # Required. The resource name of the Location to create the CustomJob in. Format: + # `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study] google_cloud_aiplatform_v1beta1_study_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -23383,69 +35260,30 @@ def import_project_location_rag_corpora_rag_file(parent, google_cloud_aiplatform # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study] # # @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_rag_corpora_rag_files(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/ragFiles', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse + def create_project_location_study(parent, google_cloud_aiplatform_v1beta1_study_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/studies', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study::Representation + command.request_object = google_cloud_aiplatform_v1beta1_study_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study command.params['parent'] = parent unless parent.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::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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_rag_corpora_rag_file_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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`. + # Deletes a Study. # @param [String] name - # The name of the operation resource to be deleted. + # Required. The name of the Study resource to be deleted. Format: `projects/` + # project`/locations/`location`/studies/`study`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -23463,7 +35301,7 @@ def cancel_project_location_rag_corpora_rag_file_operation(name, fields: nil, qu # @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_rag_corpora_rag_file_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_study(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -23473,10 +35311,10 @@ def delete_project_location_rag_corpora_rag_file_operation(name, fields: nil, qu 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. + # Gets a Study by name. # @param [String] name - # The name of the operation resource. + # Required. The name of the Study resource. Format: `projects/`project`/ + # locations/`location`/studies/`study`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -23486,41 +35324,34 @@ def delete_project_location_rag_corpora_rag_file_operation(name, fields: nil, qu # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study] # # @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_rag_corpora_rag_file_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_study(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study 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. + # Lists all the studies in a region for an associated project. + # @param [String] parent + # Required. The resource name of the Location to list the Study from. Format: ` + # projects/`project`/locations/`location`` # @param [Fixnum] page_size - # The standard list page size. + # Optional. The maximum number of studies to return per "page" of results. If + # unspecified, service will pick an appropriate default. # @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 e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # Optional. A page token to request the next page of results. If unspecified, + # there are no subsequent pages. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -23530,42 +35361,32 @@ def get_project_location_rag_corpora_rag_file_operation(name, fields: nil, quota # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListStudiesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListStudiesResponse] # # @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_rag_corpora_rag_file_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, 'v1beta1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse - command.params['name'] = name unless name.nil? - command.query['filter'] = filter unless filter.nil? + def list_project_location_studies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/studies', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListStudiesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListStudiesResponse + command.params['parent'] = parent unless parent.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 - # 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 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. + # Looks a study up using the user-defined display_name field instead of the + # fully qualified resource name. + # @param [String] parent + # Required. The resource name of the Location to get the Study from. Format: ` + # projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LookupStudyRequest] google_cloud_aiplatform_v1beta1_lookup_study_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -23575,20 +35396,21 @@ def list_project_location_rag_corpora_rag_file_operations(name, filter: nil, pag # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study] # # @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_project_location_rag_corpora_rag_file_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? - command.query['timeout'] = timeout unless timeout.nil? + def lookup_project_location_study(parent, google_cloud_aiplatform_v1beta1_lookup_study_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/studies:lookup', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LookupStudyRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_lookup_study_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study + 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) @@ -23621,7 +35443,7 @@ def wait_project_location_rag_corpora_rag_file_operation(name, timeout: nil, fie # @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_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_study_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -23654,7 +35476,7 @@ def cancel_project_location_rag_engine_config_operation(name, fields: nil, quota # @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_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_study_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -23685,7 +35507,7 @@ def delete_project_location_rag_engine_config_operation(name, fields: nil, quota # @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_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_study_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -23729,7 +35551,7 @@ def get_project_location_rag_engine_config_operation(name, fields: nil, quota_us # @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_rag_engine_config_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_study_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -23774,7 +35596,7 @@ def list_project_location_rag_engine_config_operations(name, filter: nil, page_s # @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_project_location_rag_engine_config_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_study_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -23785,11 +35607,12 @@ def wait_project_location_rag_engine_config_operation(name, timeout: nil, fields execute_or_queue_command(command, &block) end - # Creates a reasoning engine. - # @param [String] parent - # Required. The resource name of the Location to create the ReasoningEngine in. - # Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] google_cloud_aiplatform_v1beta1_reasoning_engine_object + # Adds a measurement of the objective metrics to a Trial. This measurement is + # assumed to have been taken before the Trial is complete. + # @param [String] trial_name + # Required. The name of the trial to add measurement. Format: `projects/`project` + # /locations/`location`/studies/`study`/trials/`trial`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddTrialMeasurementRequest] google_cloud_aiplatform_v1beta1_add_trial_measurement_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -23799,34 +35622,33 @@ def wait_project_location_rag_engine_config_operation(name, timeout: nil, fields # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] # # @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(parent, google_cloud_aiplatform_v1beta1_reasoning_engine_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/reasoningEngines', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine::Representation - command.request_object = google_cloud_aiplatform_v1beta1_reasoning_engine_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def add_project_location_study_trial_trial_measurement(trial_name, google_cloud_aiplatform_v1beta1_add_trial_measurement_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+trialName}:addTrialMeasurement', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddTrialMeasurementRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_add_trial_measurement_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial + command.params['trialName'] = trial_name unless trial_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 reasoning engine. - # @param [String] name - # Required. The name of the ReasoningEngine resource to be deleted. Format: ` - # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`` - # @param [Boolean] force - # Optional. If set to true, child resources of this reasoning engine will also - # be deleted. Otherwise, the request will fail with FAILED_PRECONDITION error - # when the reasoning engine has undeleted child resources. + # Checks whether a Trial should stop or not. Returns a long-running operation. + # When the operation is successful, it will contain a + # CheckTrialEarlyStoppingStateResponse. + # @param [String] trial_name + # Required. The Trial's name. Format: `projects/`project`/locations/`location`/ + # studies/`study`/trials/`trial`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CheckTrialEarlyStoppingStateRequest] google_cloud_aiplatform_v1beta1_check_trial_early_stopping_state_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -23844,21 +35666,23 @@ def create_project_location_reasoning_engine(parent, google_cloud_aiplatform_v1b # @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(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def check_project_location_study_trial_trial_early_stopping_state(trial_name, google_cloud_aiplatform_v1beta1_check_trial_early_stopping_state_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+trialName}:checkTrialEarlyStoppingState', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CheckTrialEarlyStoppingStateRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_check_trial_early_stopping_state_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? - command.query['force'] = force unless force.nil? + command.params['trialName'] = trial_name unless trial_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. + # Marks a Trial as complete. # @param [String] name - # Required. The name of the ReasoningEngine resource. Format: `projects/`project` - # /locations/`location`/reasoningEngines/`reasoning_engine`` + # Required. The Trial's name. Format: `projects/`project`/locations/`location`/ + # studies/`study`/trials/`trial`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CompleteTrialRequest] google_cloud_aiplatform_v1beta1_complete_trial_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -23868,35 +35692,31 @@ def delete_project_location_reasoning_engine(name, force: nil, fields: nil, quot # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] # # @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(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine + def complete_project_location_study_trial(name, google_cloud_aiplatform_v1beta1_complete_trial_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:complete', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CompleteTrialRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_complete_trial_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial 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 reasoning engines in a location. + # Adds a user provided Trial to a Study. # @param [String] parent - # Required. The resource name of the Location to list the ReasoningEngines from. - # Format: `projects/`project`/locations/`location`` - # @param [String] filter - # Optional. The standard list filter. More detail in [AIP-160](https://google. - # aip.dev/160). - # @param [Fixnum] page_size - # Optional. The standard list page size. - # @param [String] page_token - # Optional. The standard list page token. + # Required. The resource name of the Study to create the Trial in. Format: ` + # projects/`project`/locations/`location`/studies/`study`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] google_cloud_aiplatform_v1beta1_trial_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -23906,210 +35726,30 @@ def get_project_location_reasoning_engine(name, fields: nil, quota_user: nil, op # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] # # @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_engines(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/reasoningEngines', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse + def create_project_location_study_trial(parent, google_cloud_aiplatform_v1beta1_trial_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/trials', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial::Representation + command.request_object = google_cloud_aiplatform_v1beta1_trial_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial 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 - - # Updates a reasoning engine. - # @param [String] name - # Identifier. The resource name of the ReasoningEngine. Format: `projects/` - # project`/locations/`location`/reasoningEngines/`reasoning_engine`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] google_cloud_aiplatform_v1beta1_reasoning_engine_object - # @param [String] update_mask - # Optional. Mask specifying which fields to update. - # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_reasoning_engine(name, google_cloud_aiplatform_v1beta1_reasoning_engine_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine::Representation - command.request_object = google_cloud_aiplatform_v1beta1_reasoning_engine_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - 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 - - # 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest] google_cloud_aiplatform_v1beta1_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse] - # - # @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_project_location_reasoning_engine(name, google_cloud_aiplatform_v1beta1_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:query', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_query_reasoning_engine_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse - 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest] google_cloud_aiplatform_v1beta1_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::AiplatformV1beta1::GoogleApiHttpBody] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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_project_location_reasoning_engine_query(name, google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:streamQuery', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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 - - # Get request for reasoning engine instance via the A2A get protocol apis. - # @param [String] name - # Required. The full resource path of the reasoning engine, captured from the - # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` - # @param [String] a2a_endpoint - # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` - # @param [String] history_length - # Optional. The optional query parameter for the getTask endpoint. Mapped from "? - # history_length=". This indicates how many turns of history to return. If not - # set, the default value is 0, which means all the history will be returned. - # @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 [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @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 card_project_location_reasoning_engine_a2a_v1(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) - command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? - command.query['historyLength'] = history_length unless history_length.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Send post request for reasoning engine instance via the A2A post protocol apis. - # @param [String] name - # Required. The full resource path of the reasoning engine, captured from the - # URL. - # @param [String] a2a_endpoint - # Required. The a2a endpoint path, captured from the URL. e.g., v1/message:send - # @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 [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @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 send_project_location_reasoning_engine_a2a_v1_message(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:send', options) - command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.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 instance via the A2A streaming - # protocol apis. + # Deletes a Trial. # @param [String] name - # Required. The full resource path of the reasoning engine, captured from the - # URL. - # @param [String] a2a_endpoint - # Required. The http endpoint extracted from the URL path. e.g., v1/message: - # stream. + # Required. The Trial's name. Format: `projects/`project`/locations/`location`/ + # studies/`study`/trials/`trial`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24119,36 +35759,28 @@ def send_project_location_reasoning_engine_a2a_v1_message(name, a2a_endpoint, fi # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] + # @return [Google::Apis::AiplatformV1beta1::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 stream_project_location_reasoning_engine_a2a_v1_message(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:stream', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + def delete_project_location_study_trial(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Get request for reasoning engine instance via the A2A get protocol apis. + # Gets a Trial. # @param [String] name - # Required. The full resource path of the reasoning engine, captured from the - # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` - # @param [String] a2a_endpoint - # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` - # @param [String] history_length - # Optional. The optional query parameter for the getTask endpoint. Mapped from "? - # history_length=". This indicates how many turns of history to return. If not - # set, the default value is 0, which means all the history will be returned. + # Required. The name of the Trial resource. Format: `projects/`project`/ + # locations/`location`/studies/`study`/trials/`trial`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24158,30 +35790,34 @@ def stream_project_location_reasoning_engine_a2a_v1_message(name, a2a_endpoint, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [void] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] # # @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 a2a_project_location_reasoning_engine_a2a_v1_task_get_reasoning_engine(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) + def get_project_location_study_trial(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? - command.query['historyLength'] = history_length unless history_length.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Send post request for reasoning engine instance via the A2A post protocol apis. - # @param [String] name - # Required. The full resource path of the reasoning engine, captured from the - # URL. - # @param [String] a2a_endpoint - # Required. The a2a endpoint path, captured from the URL. e.g., v1/message:send + # Lists the Trials associated with a Study. + # @param [String] parent + # Required. The resource name of the Study to list the Trial from. Format: ` + # projects/`project`/locations/`location`/studies/`study`` + # @param [Fixnum] page_size + # Optional. The number of Trials to retrieve per "page" of results. If + # unspecified, the service will pick an appropriate default. + # @param [String] page_token + # Optional. A page token to request the next page of results. If unspecified, + # there are no subsequent pages. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24191,34 +35827,32 @@ def a2a_project_location_reasoning_engine_a2a_v1_task_get_reasoning_engine(name, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrialsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [void] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrialsResponse] # # @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_a2a_v1_task(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:cancel', options) - command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? + def list_project_location_study_trials(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/trials', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrialsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrialsResponse + command.params['parent'] = parent unless parent.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 - # Get request for reasoning engine instance via the A2A get protocol apis. - # @param [String] name - # Required. The full resource path of the reasoning engine, captured from the - # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` - # @param [String] a2a_endpoint - # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` - # @param [String] history_length - # Optional. The optional query parameter for the getTask endpoint. Mapped from "? - # history_length=". This indicates how many turns of history to return. If not - # set, the default value is 0, which means all the history will be returned. + # Lists the pareto-optimal Trials for multi-objective Study or the optimal + # Trials for single-objective Study. The definition of pareto-optimal can be + # checked in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency + # @param [String] parent + # Required. The name of the Study that the optimal Trial belongs to. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListOptimalTrialsRequest] google_cloud_aiplatform_v1beta1_list_optimal_trials_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24228,32 +35862,31 @@ def cancel_project_location_reasoning_engine_a2a_v1_task(name, a2a_endpoint, fie # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListOptimalTrialsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [void] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListOptimalTrialsResponse] # # @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 push_project_location_reasoning_engine_a2a_v1_task_notification_configs(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) - command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? - command.query['historyLength'] = history_length unless history_length.nil? + def list_project_location_study_trial_optimal_trials(parent, google_cloud_aiplatform_v1beta1_list_optimal_trials_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/trials:listOptimalTrials', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListOptimalTrialsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_list_optimal_trials_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListOptimalTrialsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListOptimalTrialsResponse + 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 - # Stream get request for reasoning engine instance via the A2A stream get - # protocol apis. + # Stops a Trial. # @param [String] name - # Required. The full resource path of the reasoning engine, captured from the - # URL. - # @param [String] a2a_endpoint - # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123: - # subscribe`. + # Required. The Trial's name. Format: `projects/`project`/locations/`location`/ + # studies/`study`/trials/`trial`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StopTrialRequest] google_cloud_aiplatform_v1beta1_stop_trial_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24263,36 +35896,34 @@ def push_project_location_reasoning_engine_a2a_v1_task_notification_configs(name # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] # # @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 subscribe_project_location_reasoning_engine_a2a_v1_task(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:subscribe', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + def stop_project_location_study_trial(name, google_cloud_aiplatform_v1beta1_stop_trial_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:stop', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StopTrialRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_stop_trial_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Get request for reasoning engine instance via the A2A get protocol apis. - # @param [String] name - # Required. The full resource path of the reasoning engine, captured from the - # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` - # @param [String] a2a_endpoint - # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` - # @param [String] history_length - # Optional. The optional query parameter for the getTask endpoint. Mapped from "? - # history_length=". This indicates how many turns of history to return. If not - # set, the default value is 0, which means all the history will be returned. + # Adds one or more Trials to a Study, with parameter values suggested by Vertex + # AI Vizier. Returns a long-running operation associated with the generation of + # Trial suggestions. When this long-running operation succeeds, it will contain + # a SuggestTrialsResponse. + # @param [String] parent + # Required. The project and location that the Study belongs to. Format: ` + # projects/`project`/locations/`location`/studies/`study`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SuggestTrialsRequest] google_cloud_aiplatform_v1beta1_suggest_trials_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24302,19 +35933,21 @@ def subscribe_project_location_reasoning_engine_a2a_v1_task(name, a2a_endpoint, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [void] + # @return [Google::Apis::AiplatformV1beta1::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 a2a_project_location_reasoning_engine_a2a_v1_task_push_notification_config_get_reasoning_engine(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) - command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? - command.query['historyLength'] = history_length unless history_length.nil? + def suggest_project_location_study_trial(parent, google_cloud_aiplatform_v1beta1_suggest_trials_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/trials:suggest', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SuggestTrialsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_suggest_trials_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -24347,7 +35980,7 @@ def a2a_project_location_reasoning_engine_a2a_v1_task_push_notification_config_g # @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_example_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_study_trial_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -24380,7 +36013,7 @@ def cancel_project_location_reasoning_engine_example_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_example_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_study_trial_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -24411,7 +36044,7 @@ def delete_project_location_reasoning_engine_example_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_example_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_study_trial_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -24421,6 +36054,54 @@ def get_project_location_reasoning_engine_example_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`. + # @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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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_study_trial_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 @@ -24452,7 +36133,7 @@ def get_project_location_reasoning_engine_example_operation(name, fields: nil, q # @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_project_location_reasoning_engine_example_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_study_trial_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -24463,12 +36144,20 @@ def wait_project_location_reasoning_engine_example_operation(name, timeout: nil, execute_or_queue_command(command, &block) end - # Create a Memory. - # @param [String] parent - # Required. The resource name of the ReasoningEngine to create the Memory under. - # Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] google_cloud_aiplatform_v1beta1_memory_object + # Reads multiple TensorboardTimeSeries' data. The data point number limit is + # 1000 for scalars, 100 for tensors and blob references. If the number of data + # points stored is less than the limit, all data is returned. Otherwise, the + # number limit of data points is randomly selected from this time series and + # returned. + # @param [String] tensorboard + # Required. The resource name of the Tensorboard containing + # TensorboardTimeSeries to read data from. Format: `projects/`project`/locations/ + # `location`/tensorboards/`tensorboard``. The TensorboardTimeSeries referenced + # by time_series must be sub resources of this Tensorboard. + # @param [Array, String] time_series + # Required. The resource names of the TensorboardTimeSeries to read data from. + # Format: `projects/`project`/locations/`location`/tensorboards/`tensorboard`/ + # experiments/`experiment`/runs/`run`/timeSeries/`time_series`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24478,31 +36167,30 @@ def wait_project_location_reasoning_engine_example_operation(name, timeout: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse] # # @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_memory(parent, google_cloud_aiplatform_v1beta1_memory_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/memories', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory::Representation - command.request_object = google_cloud_aiplatform_v1beta1_memory_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def batch_project_location_tensorboard_read(tensorboard, time_series: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+tensorboard}:batchRead', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse + command.params['tensorboard'] = tensorboard unless tensorboard.nil? + command.query['timeSeries'] = time_series unless time_series.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Delete a Memory. - # @param [String] name - # Required. The resource name of the Memory to delete. Format: `projects/` - # project`/locations/`location`/reasoningEngines/`reasoning_engine`/memories/` - # memory`` + # Creates a Tensorboard. + # @param [String] parent + # Required. The resource name of the Location to create the Tensorboard in. + # Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard] google_cloud_aiplatform_v1beta1_tensorboard_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24520,22 +36208,22 @@ def create_project_location_reasoning_engine_memory(parent, google_cloud_aiplatf # @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_memory(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def create_project_location_tensorboard(parent, google_cloud_aiplatform_v1beta1_tensorboard_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/tensorboards', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard::Representation + command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + 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 - # Generate memories. - # @param [String] parent - # Required. The resource name of the ReasoningEngine to generate memories for. - # Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateMemoriesRequest] google_cloud_aiplatform_v1beta1_generate_memories_request_object + # Deletes a Tensorboard. + # @param [String] name + # Required. The name of the Tensorboard to be deleted. Format: `projects/` + # project`/locations/`location`/tensorboards/`tensorboard`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24553,22 +36241,20 @@ def delete_project_location_reasoning_engine_memory(name, fields: nil, quota_use # @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 generate_project_location_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_generate_memories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/memories:generate', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateMemoriesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_memories_request_object + def delete_project_location_tensorboard(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + 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 - # Get a Memory. + # Gets a Tensorboard. # @param [String] name - # Required. The resource name of the Memory. Format: `projects/`project`/ - # locations/`location`/reasoningEngines/`reasoning_engine`/memories/`memory`` + # Required. The name of the Tensorboard resource. Format: `projects/`project`/ + # locations/`location`/tensorboards/`tensorboard`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24578,42 +36264,43 @@ def generate_project_location_reasoning_engine_memory(parent, google_cloud_aipla # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard] # # @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_memory(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_tensorboard(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard 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 - # List Memories. + # Lists Tensorboards in a Location. # @param [String] parent - # Required. The resource name of the ReasoningEngine to list the Memories under. - # Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` + # Required. The resource name of the Location to list Tensorboards. Format: ` + # projects/`project`/locations/`location`` # @param [String] filter - # Optional. The standard list filter. More detail in [AIP-160](https://google. - # aip.dev/160). Supported fields (equality match only): * `scope` (as a JSON - # string) + # Lists the Tensorboards that match the filter expression. # @param [String] order_by - # Optional. The standard list order by string. If not specified, the default - # order is `create_time desc`. If specified, the default sorting order of - # provided fields is ascending. More detail in [AIP-132](https://google.aip.dev/ - # 132). Supported fields: * `create_time` * `update_time` + # Field to use to sort the list. # @param [Fixnum] page_size - # Optional. The standard list page size. + # The maximum number of Tensorboards to return. The service may return fewer + # than this value. If unspecified, at most 100 Tensorboards are returned. The + # maximum value is 100; values above 100 are coerced to 100. # @param [String] page_token - # Optional. The standard list page token. + # A page token, received from a previous TensorboardService.ListTensorboards + # call. Provide this to retrieve the subsequent page. When paginating, all other + # parameters provided to TensorboardService.ListTensorboards must match the call + # that provided the page token. + # @param [String] read_mask + # Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24623,36 +36310,40 @@ def get_project_location_reasoning_engine_memory(name, fields: nil, quota_user: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardsResponse] # # @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_memories(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, 'v1beta1/{+parent}/memories', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse + def list_project_location_tensorboards(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/tensorboards', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardsResponse 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['readMask'] = read_mask unless read_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 - # Update a Memory. + # Updates a Tensorboard. # @param [String] name - # Identifier. The resource name of the Memory. Format: `projects/`project`/ - # locations/`location`/reasoningEngines/`reasoning_engine`/memories/`memory`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] google_cloud_aiplatform_v1beta1_memory_object + # Output only. Name of the Tensorboard. Format: `projects/`project`/locations/` + # location`/tensorboards/`tensorboard`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard] google_cloud_aiplatform_v1beta1_tensorboard_object # @param [String] update_mask - # Optional. Mask specifying which fields to update. Supported fields: * ` - # display_name` * `description` * `fact` + # Required. Field mask is used to specify the fields to be overwritten in the + # Tensorboard resource by the update. The fields specified in the update_mask + # are relative to the resource, not the full request. A field is overwritten if + # it's in the mask. If the user does not provide a mask then all fields are + # overwritten if new values are specified. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24670,10 +36361,10 @@ def list_project_location_reasoning_engine_memories(parent, filter: nil, order_b # @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_memory(name, google_cloud_aiplatform_v1beta1_memory_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_project_location_tensorboard(name, google_cloud_aiplatform_v1beta1_tensorboard_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory::Representation - command.request_object = google_cloud_aiplatform_v1beta1_memory_object + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard::Representation + command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -24683,12 +36374,10 @@ def patch_project_location_reasoning_engine_memory(name, google_cloud_aiplatform execute_or_queue_command(command, &block) end - # Retrieve memories. - # @param [String] parent - # Required. The resource name of the ReasoningEngine to retrieve memories from. - # Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest] google_cloud_aiplatform_v1beta1_retrieve_memories_request_object + # Returns the storage size for a given TensorBoard instance. + # @param [String] tensorboard + # Required. The name of the Tensorboard resource. Format: `projects/`project`/ + # locations/`location`/tensorboards/`tensorboard`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24698,32 +36387,28 @@ def patch_project_location_reasoning_engine_memory(name, google_cloud_aiplatform # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardSizeResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardSizeResponse] # # @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 retrieve_project_location_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_retrieve_memories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/memories:retrieve', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_retrieve_memories_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse - command.params['parent'] = parent unless parent.nil? + def read_project_location_tensorboard_size(tensorboard, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+tensorboard}:readSize', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardSizeResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardSizeResponse + command.params['tensorboard'] = tensorboard unless tensorboard.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Rollback Memory to a specific revision. - # @param [String] name - # Required. The resource name of the Memory to rollback. Format: `projects/` - # project`/locations/`location`/reasoningEngines/`reasoning_engine`/memories/` - # memory`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RollbackMemoryRequest] google_cloud_aiplatform_v1beta1_rollback_memory_request_object + # Returns a list of monthly active users for a given TensorBoard instance. + # @param [String] tensorboard + # Required. The name of the Tensorboard resource. Format: `projects/`project`/ + # locations/`location`/tensorboards/`tensorboard`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24733,36 +36418,32 @@ def retrieve_project_location_reasoning_engine_memory(parent, google_cloud_aipla # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardUsageResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardUsageResponse] # # @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 rollback_project_location_reasoning_engine_memory(name, google_cloud_aiplatform_v1beta1_rollback_memory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:rollback', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RollbackMemoryRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_rollback_memory_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + def read_project_location_tensorboard_usage(tensorboard, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+tensorboard}:readUsage', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardUsageResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardUsageResponse + command.params['tensorboard'] = tensorboard unless tensorboard.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. + # Batch create TensorboardTimeSeries that belong to a TensorboardExperiment. + # @param [String] parent + # Required. The resource name of the TensorboardExperiment to create the + # TensorboardTimeSeries in. Format: `projects/`project`/locations/`location`/ + # tensorboards/`tensorboard`/experiments/`experiment`` The TensorboardRuns + # referenced by the parent fields in the CreateTensorboardTimeSeriesRequest + # messages must be sub resources of this TensorboardExperiment. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesRequest] google_cloud_aiplatform_v1beta1_batch_create_tensorboard_time_series_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24772,30 +36453,36 @@ def rollback_project_location_reasoning_engine_memory(name, google_cloud_aiplatf # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse] # # @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_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? + def batch_project_location_tensorboard_experiment_create(parent, google_cloud_aiplatform_v1beta1_batch_create_tensorboard_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}:batchCreate', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_batch_create_tensorboard_time_series_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse + 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 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. + # Creates a TensorboardExperiment. + # @param [String] parent + # Required. The resource name of the Tensorboard to create the + # TensorboardExperiment in. Format: `projects/`project`/locations/`location`/ + # tensorboards/`tensorboard`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] google_cloud_aiplatform_v1beta1_tensorboard_experiment_object + # @param [String] tensorboard_experiment_id + # Required. The ID to use for the Tensorboard experiment, which becomes the + # final component of the Tensorboard experiment's resource name. This value + # should be 1-128 characters, and valid characters are `/a-z-/`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24805,28 +36492,32 @@ def cancel_project_location_reasoning_engine_memory_operation(name, fields: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] # # @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_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? + def create_project_location_tensorboard_experiment(parent, google_cloud_aiplatform_v1beta1_tensorboard_experiment_object = nil, tensorboard_experiment_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/experiments', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment::Representation + command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_experiment_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment + command.params['parent'] = parent unless parent.nil? + command.query['tensorboardExperimentId'] = tensorboard_experiment_id unless tensorboard_experiment_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 - # 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. + # Deletes a TensorboardExperiment. # @param [String] name - # The name of the operation resource. + # Required. The name of the TensorboardExperiment to be deleted. Format: ` + # projects/`project`/locations/`location`/tensorboards/`tensorboard`/experiments/ + # `experiment`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24844,8 +36535,8 @@ def delete_project_location_reasoning_engine_memory_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_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) + def delete_project_location_tensorboard_experiment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -24854,23 +36545,11 @@ def get_project_location_reasoning_engine_memory_operation(name, fields: nil, qu 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`. + # Gets a TensorboardExperiment. # @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 e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # Required. The name of the TensorboardExperiment resource. Format: `projects/` + # project`/locations/`location`/tensorboards/`tensorboard`/experiments/` + # experiment`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24880,42 +36559,43 @@ def get_project_location_reasoning_engine_memory_operation(name, fields: nil, qu # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] # # @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_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, 'v1beta1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse + def get_project_location_tensorboard_experiment(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment 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 - # 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 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. + # Lists TensorboardExperiments in a Location. + # @param [String] parent + # Required. The resource name of the Tensorboard to list TensorboardExperiments. + # Format: `projects/`project`/locations/`location`/tensorboards/`tensorboard`` + # @param [String] filter + # Lists the TensorboardExperiments that match the filter expression. + # @param [String] order_by + # Field to use to sort the list. + # @param [Fixnum] page_size + # The maximum number of TensorboardExperiments to return. The service may return + # fewer than this value. If unspecified, at most 50 TensorboardExperiments are + # returned. The maximum value is 1000; values above 1000 are coerced to 1000. + # @param [String] page_token + # A page token, received from a previous TensorboardService. + # ListTensorboardExperiments call. Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to TensorboardService. + # ListTensorboardExperiments must match the call that provided the page token. + # @param [String] read_mask + # Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24925,30 +36605,40 @@ def list_project_location_reasoning_engine_memory_operations(name, filter: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardExperimentsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardExperimentsResponse] # # @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_project_location_reasoning_engine_memory_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? - command.query['timeout'] = timeout unless timeout.nil? + def list_project_location_tensorboard_experiments(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/experiments', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardExperimentsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardExperimentsResponse + 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['readMask'] = read_mask unless read_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 - # Get a Memory Revision. + # Updates a TensorboardExperiment. # @param [String] name - # Required. The resource name of the Memory Revision to retrieve. Format: ` - # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ - # memories/`memory`/revisions/`revision`` + # Output only. Name of the TensorboardExperiment. Format: `projects/`project`/ + # locations/`location`/tensorboards/`tensorboard`/experiments/`experiment`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] google_cloud_aiplatform_v1beta1_tensorboard_experiment_object + # @param [String] update_mask + # Required. Field mask is used to specify the fields to be overwritten in the + # TensorboardExperiment resource by the update. The fields specified in the + # update_mask are relative to the resource, not the full request. A field is + # overwritten if it's in the mask. If the user does not provide a mask then all + # fields are overwritten if new values are specified. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24958,36 +36648,34 @@ def wait_project_location_reasoning_engine_memory_operation(name, timeout: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] # # @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_memory_revision(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision + def patch_project_location_tensorboard_experiment(name, google_cloud_aiplatform_v1beta1_tensorboard_experiment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment::Representation + command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_experiment_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment 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 - # List Memory Revisions for a Memory. - # @param [String] parent - # Required. The resource name of the Memory to list revisions for. Format: ` - # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ - # memories/`memory`` - # @param [String] filter - # Optional. The standard list filter. More detail in [AIP-160](https://google. - # aip.dev/160). Supported fields (equality match only): * `labels` - # @param [Fixnum] page_size - # Optional. The standard list page size. - # @param [String] page_token - # Optional. The standard list page token. + # Write time series data points of multiple TensorboardTimeSeries in multiple + # TensorboardRun's. If any data fail to be ingested, an error is returned. + # @param [String] tensorboard_experiment + # Required. The resource name of the TensorboardExperiment to write data to. + # Format: `projects/`project`/locations/`location`/tensorboards/`tensorboard`/ + # experiments/`experiment`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardExperimentDataRequest] google_cloud_aiplatform_v1beta1_write_tensorboard_experiment_data_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24997,22 +36685,21 @@ def get_project_location_reasoning_engine_memory_revision(name, fields: nil, quo # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardExperimentDataResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardExperimentDataResponse] # # @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_memory_revisions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/revisions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse - 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? + def write_project_location_tensorboard_experiment(tensorboard_experiment, google_cloud_aiplatform_v1beta1_write_tensorboard_experiment_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+tensorboardExperiment}:write', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardExperimentDataRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_write_tensorboard_experiment_data_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardExperimentDataResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardExperimentDataResponse + command.params['tensorboardExperiment'] = tensorboard_experiment unless tensorboard_experiment.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -25045,7 +36732,7 @@ def list_project_location_reasoning_engine_memory_revisions(parent, filter: 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 cancel_project_location_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_tensorboard_experiment_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -25078,7 +36765,7 @@ def cancel_project_location_reasoning_engine_operation(name, fields: nil, quota_ # @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_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_tensorboard_experiment_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -25109,7 +36796,7 @@ def delete_project_location_reasoning_engine_operation(name, fields: nil, quota_ # @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_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_tensorboard_experiment_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -25153,7 +36840,7 @@ def get_project_location_reasoning_engine_operation(name, fields: nil, quota_use # @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_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_tensorboard_experiment_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -25198,7 +36885,7 @@ def list_project_location_reasoning_engine_operations(name, filter: nil, page_si # @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_project_location_reasoning_engine_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_tensorboard_experiment_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -25209,12 +36896,13 @@ def wait_project_location_reasoning_engine_operation(name, timeout: nil, fields: execute_or_queue_command(command, &block) end - # Creates a SandboxEnvironment in a given reasoning engine. + # Batch create TensorboardRuns. # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment] google_cloud_aiplatform_v1beta1_sandbox_environment_object + # Required. The resource name of the TensorboardExperiment to create the + # TensorboardRuns in. Format: `projects/`project`/locations/`location`/ + # tensorboards/`tensorboard`/experiments/`experiment`` The parent field in the + # CreateTensorboardRunRequest messages must match this field. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardRunsRequest] google_cloud_aiplatform_v1beta1_batch_create_tensorboard_runs_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -25224,31 +36912,36 @@ def wait_project_location_reasoning_engine_operation(name, timeout: nil, fields: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardRunsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardRunsResponse] # # @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_sandbox_environment(parent, google_cloud_aiplatform_v1beta1_sandbox_environment_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/sandboxEnvironments', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment::Representation - command.request_object = google_cloud_aiplatform_v1beta1_sandbox_environment_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def batch_project_location_tensorboard_experiment_run_create(parent, google_cloud_aiplatform_v1beta1_batch_create_tensorboard_runs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/runs:batchCreate', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardRunsRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_batch_create_tensorboard_runs_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardRunsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardRunsResponse 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`` + # Creates a TensorboardRun. + # @param [String] parent + # Required. The resource name of the TensorboardExperiment to create the + # TensorboardRun in. Format: `projects/`project`/locations/`location`/ + # tensorboards/`tensorboard`/experiments/`experiment`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] google_cloud_aiplatform_v1beta1_tensorboard_run_object + # @param [String] tensorboard_run_id + # Required. The ID to use for the Tensorboard run, which becomes the final + # component of the Tensorboard run's resource name. This value should be 1-128 + # characters, and valid characters are `/a-z-/`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -25258,30 +36951,32 @@ def create_project_location_reasoning_engine_sandbox_environment(parent, google_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] # # @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_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + def create_project_location_tensorboard_experiment_run(parent, google_cloud_aiplatform_v1beta1_tensorboard_run_object = nil, tensorboard_run_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/runs', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun::Representation + command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_run_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun + command.params['parent'] = parent unless parent.nil? + command.query['tensorboardRunId'] = tensorboard_run_id unless tensorboard_run_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 - # Executes using a sandbox environment. + # Deletes a TensorboardRun. # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentRequest] google_cloud_aiplatform_v1beta1_execute_sandbox_environment_request_object + # Required. The name of the TensorboardRun to be deleted. Format: `projects/` + # project`/locations/`location`/tensorboards/`tensorboard`/experiments/` + # experiment`/runs/`run`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -25291,31 +36986,29 @@ def delete_project_location_reasoning_engine_sandbox_environment(name, fields: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse] + # @return [Google::Apis::AiplatformV1beta1::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 execute_project_location_reasoning_engine_sandbox_environment(name, google_cloud_aiplatform_v1beta1_execute_sandbox_environment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:execute', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_execute_sandbox_environment_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse + def delete_project_location_tensorboard_experiment_run(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 SandboxEnvironment. + # Gets a TensorboardRun. # @param [String] name - # Required. The resource name of the sandbox environment. Format: `projects/` - # project`/locations/`location`/reasoningEngines/`reasoning_engine`/ - # sandboxEnvironments/`sandbox_environment`` + # Required. The name of the TensorboardRun resource. Format: `projects/`project`/ + # locations/`location`/tensorboards/`tensorboard`/experiments/`experiment`/runs/` + # run`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -25325,39 +37018,44 @@ def execute_project_location_reasoning_engine_sandbox_environment(name, google_c # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] # # @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_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_tensorboard_experiment_run(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun 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. + # Lists TensorboardRuns in a Location. # @param [String] parent - # Required. The resource name of the reasoning engine to list sandbox - # environments from. Format: `projects/`project`/locations/`location`/ - # reasoningEngines/`reasoning_engine`` + # Required. The resource name of the TensorboardExperiment to list + # TensorboardRuns. Format: `projects/`project`/locations/`location`/tensorboards/ + # `tensorboard`/experiments/`experiment`` # @param [String] filter - # Optional. The standard list filter. More detail in [AIP-160](https://google. - # aip.dev/160). + # Lists the TensorboardRuns that match the filter expression. + # @param [String] order_by + # Field to use to sort the list. # @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. + # The maximum number of TensorboardRuns to return. The service may return fewer + # than this value. If unspecified, at most 50 TensorboardRuns are returned. The + # maximum value is 1000; values above 1000 are coerced to 1000. # @param [String] page_token - # Optional. The standard list page token, received from a previous ` - # ListSandboxEnvironments` call. Provide this to retrieve the subsequent page. + # A page token, received from a previous TensorboardService.ListTensorboardRuns + # call. Provide this to retrieve the subsequent page. When paginating, all other + # parameters provided to TensorboardService.ListTensorboardRuns must match the + # call that provided the page token. + # @param [String] read_mask + # Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -25367,22 +37065,101 @@ def get_project_location_reasoning_engine_sandbox_environment(name, fields: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardRunsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardRunsResponse] # # @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_sandbox_environments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/sandboxEnvironments', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse + def list_project_location_tensorboard_experiment_runs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/runs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardRunsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardRunsResponse 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['readMask'] = read_mask unless read_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 + + # Updates a TensorboardRun. + # @param [String] name + # Output only. Name of the TensorboardRun. Format: `projects/`project`/locations/ + # `location`/tensorboards/`tensorboard`/experiments/`experiment`/runs/`run`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] google_cloud_aiplatform_v1beta1_tensorboard_run_object + # @param [String] update_mask + # Required. Field mask is used to specify the fields to be overwritten in the + # TensorboardRun resource by the update. The fields specified in the update_mask + # are relative to the resource, not the full request. A field is overwritten if + # it's in the mask. If the user does not provide a mask then all fields are + # overwritten if new values are specified. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] + # + # @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_tensorboard_experiment_run(name, google_cloud_aiplatform_v1beta1_tensorboard_run_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun::Representation + command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_run_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun + 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 + + # Write time series data points into multiple TensorboardTimeSeries under a + # TensorboardRun. If any data fail to be ingested, an error is returned. + # @param [String] tensorboard_run + # Required. The resource name of the TensorboardRun to write data to. Format: ` + # projects/`project`/locations/`location`/tensorboards/`tensorboard`/experiments/ + # `experiment`/runs/`run`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardRunDataRequest] google_cloud_aiplatform_v1beta1_write_tensorboard_run_data_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardRunDataResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardRunDataResponse] + # + # @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 write_project_location_tensorboard_experiment_run(tensorboard_run, google_cloud_aiplatform_v1beta1_write_tensorboard_run_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+tensorboardRun}:write', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardRunDataRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_write_tensorboard_run_data_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardRunDataResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardRunDataResponse + command.params['tensorboardRun'] = tensorboard_run unless tensorboard_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -25415,7 +37192,7 @@ def list_project_location_reasoning_engine_sandbox_environments(parent, filter: # @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_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_tensorboard_experiment_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -25448,7 +37225,7 @@ def cancel_project_location_reasoning_engine_sandbox_environment_operation(name, # @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_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_tensorboard_experiment_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -25479,7 +37256,7 @@ def delete_project_location_reasoning_engine_sandbox_environment_operation(name, # @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_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_tensorboard_experiment_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -25523,7 +37300,7 @@ def get_project_location_reasoning_engine_sandbox_environment_operation(name, fi # @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_sandbox_environment_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_tensorboard_experiment_run_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -25568,7 +37345,7 @@ def list_project_location_reasoning_engine_sandbox_environment_operations(name, # @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_project_location_reasoning_engine_sandbox_environment_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_tensorboard_experiment_run_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -25579,12 +37356,51 @@ def wait_project_location_reasoning_engine_sandbox_environment_operation(name, t execute_or_queue_command(command, &block) end - # Appends an event to a given session. + # Creates a TensorboardTimeSeries. + # @param [String] parent + # Required. The resource name of the TensorboardRun to create the + # TensorboardTimeSeries in. Format: `projects/`project`/locations/`location`/ + # tensorboards/`tensorboard`/experiments/`experiment`/runs/`run`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] google_cloud_aiplatform_v1beta1_tensorboard_time_series_object + # @param [String] tensorboard_time_series_id + # Optional. The user specified unique ID to use for the TensorboardTimeSeries, + # which becomes the final component of the TensorboardTimeSeries's resource name. + # This value should match "a-z0-9`0, 127`" + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] + # + # @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_tensorboard_experiment_run_time_series(parent, google_cloud_aiplatform_v1beta1_tensorboard_time_series_object = nil, tensorboard_time_series_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/timeSeries', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries::Representation + command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_time_series_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries + command.params['parent'] = parent unless parent.nil? + command.query['tensorboardTimeSeriesId'] = tensorboard_time_series_id unless tensorboard_time_series_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 + + # Deletes a TensorboardTimeSeries. # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SessionEvent] google_cloud_aiplatform_v1beta1_session_event_object + # Required. The name of the TensorboardTimeSeries to be deleted. Format: ` + # projects/`project`/locations/`location`/tensorboards/`tensorboard`/experiments/ + # `experiment`/runs/`run`/timeSeries/`time_series`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -25594,31 +37410,111 @@ def wait_project_location_reasoning_engine_sandbox_environment_operation(name, t # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse] + # @return [Google::Apis::AiplatformV1beta1::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 append_project_location_reasoning_engine_session_event(name, google_cloud_aiplatform_v1beta1_session_event_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:appendEvent', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SessionEvent::Representation - command.request_object = google_cloud_aiplatform_v1beta1_session_event_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse + def delete_project_location_tensorboard_experiment_run_time_series(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Creates a new Session. + # Exports a TensorboardTimeSeries' data. Data is returned in paginated responses. + # @param [String] tensorboard_time_series + # Required. The resource name of the TensorboardTimeSeries to export data from. + # Format: `projects/`project`/locations/`location`/tensorboards/`tensorboard`/ + # experiments/`experiment`/runs/`run`/timeSeries/`time_series`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportTensorboardTimeSeriesDataRequest] google_cloud_aiplatform_v1beta1_export_tensorboard_time_series_data_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportTensorboardTimeSeriesDataResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportTensorboardTimeSeriesDataResponse] + # + # @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 export_project_location_tensorboard_experiment_run_time_series_tensorboard_time_series(tensorboard_time_series, google_cloud_aiplatform_v1beta1_export_tensorboard_time_series_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+tensorboardTimeSeries}:exportTensorboardTimeSeries', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportTensorboardTimeSeriesDataRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_export_tensorboard_time_series_data_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportTensorboardTimeSeriesDataResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportTensorboardTimeSeriesDataResponse + command.params['tensorboardTimeSeries'] = tensorboard_time_series unless tensorboard_time_series.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 TensorboardTimeSeries. + # @param [String] name + # Required. The name of the TensorboardTimeSeries resource. Format: `projects/` + # project`/locations/`location`/tensorboards/`tensorboard`/experiments/` + # experiment`/runs/`run`/timeSeries/`time_series`` + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] + # + # @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_tensorboard_experiment_run_time_series(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries + 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 TensorboardTimeSeries in a Location. # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_session_object + # Required. The resource name of the TensorboardRun to list + # TensorboardTimeSeries. Format: `projects/`project`/locations/`location`/ + # tensorboards/`tensorboard`/experiments/`experiment`/runs/`run`` + # @param [String] filter + # Lists the TensorboardTimeSeries that match the filter expression. + # @param [String] order_by + # Field to use to sort the list. + # @param [Fixnum] page_size + # The maximum number of TensorboardTimeSeries to return. The service may return + # fewer than this value. If unspecified, at most 50 TensorboardTimeSeries are + # returned. The maximum value is 1000; values above 1000 are coerced to 1000. + # @param [String] page_token + # A page token, received from a previous TensorboardService. + # ListTensorboardTimeSeries call. Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to TensorboardService. + # ListTensorboardTimeSeries must match the call that provided the page token. + # @param [String] read_mask + # Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -25628,30 +37524,158 @@ def append_project_location_reasoning_engine_session_event(name, google_cloud_ai # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardTimeSeriesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardTimeSeriesResponse] + # + # @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_tensorboard_experiment_run_time_series(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/timeSeries', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardTimeSeriesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardTimeSeriesResponse + 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['readMask'] = read_mask unless read_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 + + # Updates a TensorboardTimeSeries. + # @param [String] name + # Output only. Name of the TensorboardTimeSeries. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] google_cloud_aiplatform_v1beta1_tensorboard_time_series_object + # @param [String] update_mask + # Required. Field mask is used to specify the fields to be overwritten in the + # TensorboardTimeSeries resource by the update. The fields specified in the + # update_mask are relative to the resource, not the full request. A field is + # overwritten if it's in the mask. If the user does not provide a mask then all + # fields are overwritten if new values are specified. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] + # + # @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_tensorboard_experiment_run_time_series(name, google_cloud_aiplatform_v1beta1_tensorboard_time_series_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries::Representation + command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_time_series_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries + 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 + + # Reads a TensorboardTimeSeries' data. By default, if the number of data points + # stored is less than 1000, all data is returned. Otherwise, 1000 data points is + # randomly selected from this time series and returned. This value can be + # changed by changing max_data_points, which can't be greater than 10k. + # @param [String] tensorboard_time_series + # Required. The resource name of the TensorboardTimeSeries to read data from. + # Format: `projects/`project`/locations/`location`/tensorboards/`tensorboard`/ + # experiments/`experiment`/runs/`run`/timeSeries/`time_series`` + # @param [String] filter + # Reads the TensorboardTimeSeries' data that match the filter expression. + # @param [Fixnum] max_data_points + # The maximum number of TensorboardTimeSeries' data to return. This value should + # be a positive integer. This value can be set to -1 to return all data. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardTimeSeriesDataResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardTimeSeriesDataResponse] + # + # @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 read_project_location_tensorboard_experiment_run_time_series(tensorboard_time_series, filter: nil, max_data_points: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+tensorboardTimeSeries}:read', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardTimeSeriesDataResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardTimeSeriesDataResponse + command.params['tensorboardTimeSeries'] = tensorboard_time_series unless tensorboard_time_series.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxDataPoints'] = max_data_points unless max_data_points.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 bytes of TensorboardBlobs. This is to allow reading blob data stored in + # consumer project's Cloud Storage bucket without users having to obtain Cloud + # Storage access permission. + # @param [String] time_series + # Required. The resource name of the TensorboardTimeSeries to list Blobs. Format: + # `projects/`project`/locations/`location`/tensorboards/`tensorboard`/ + # experiments/`experiment`/runs/`run`/timeSeries/`time_series`` + # @param [Array, String] blob_ids + # IDs of the blobs to read. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardBlobDataResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardBlobDataResponse] # # @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_v1beta1_session_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/sessions', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation - command.request_object = google_cloud_aiplatform_v1beta1_session_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def read_project_location_tensorboard_experiment_run_time_series_blob_data(time_series, blob_ids: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+timeSeries}:readBlobData', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardBlobDataResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardBlobDataResponse + command.params['timeSeries'] = time_series unless time_series.nil? + command.query['blobIds'] = blob_ids unless blob_ids.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. + # 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 - # Required. The resource name of the session. Format: `projects/`project`/ - # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`` + # 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 @@ -25661,28 +37685,30 @@ def create_project_location_reasoning_engine_session(parent, google_cloud_aiplat # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def cancel_project_location_tensorboard_experiment_run_time_series_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 details of the specific Session. + # 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 - # Required. The resource name of the session. Format: `projects/`project`/ - # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`` + # 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 @@ -25692,41 +37718,28 @@ 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session + def delete_project_location_tensorboard_experiment_run_time_series_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # 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` Example: - # `display_name=abc`. - # @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. + # 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 @@ -25736,36 +37749,41 @@ def get_project_location_reasoning_engine_session(name, fields: nil, quota_user: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_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, 'v1beta1/{+parent}/sessions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse - 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? + def get_project_location_tensorboard_experiment_run_time_series_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Updates the specific Session. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Identifier. The resource name of the session. Format: 'projects/`project`/ - # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`'. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_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. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -25775,43 +37793,42 @@ 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_reasoning_engine_session(name, google_cloud_aiplatform_v1beta1_session_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation - command.request_object = google_cloud_aiplatform_v1beta1_session_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session + def list_project_location_tensorboard_experiment_run_time_series_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.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 - # 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 [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. + # 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 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 @@ -25821,22 +37838,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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_events(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/events', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse - 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? + def wait_project_location_tensorboard_experiment_run_time_series_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -25869,7 +37884,7 @@ def list_project_location_reasoning_engine_session_events(parent, filter: 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 cancel_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_tensorboard_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -25902,7 +37917,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_tensorboard_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -25933,7 +37948,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_tensorboard_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -25977,7 +37992,7 @@ def get_project_location_reasoning_engine_session_operation(name, fields: nil, q # @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) + def list_project_location_tensorboard_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -26022,7 +38037,7 @@ def list_project_location_reasoning_engine_session_operations(name, filter: 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 wait_project_location_reasoning_engine_session_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_tensorboard_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -26033,75 +38048,18 @@ def wait_project_location_reasoning_engine_session_operation(name, timeout: nil, execute_or_queue_command(command, &block) end - # Creates a Schedule. - # @param [String] parent - # Required. The resource name of the Location to create the Schedule in. Format: - # `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] google_cloud_aiplatform_v1beta1_schedule_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] - # - # @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_schedule(parent, google_cloud_aiplatform_v1beta1_schedule_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/schedules', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule::Representation - command.request_object = google_cloud_aiplatform_v1beta1_schedule_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule - 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 a Schedule. - # @param [String] name - # Required. The name of the Schedule resource to be deleted. Format: `projects/` - # project`/locations/`location`/schedules/`schedule`` - # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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_schedule(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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 a Schedule. + # Cancels a TrainingPipeline. Starts asynchronous cancellation on the + # TrainingPipeline. The server makes a best effort to cancel the pipeline, but + # success is not guaranteed. Clients can use PipelineService.GetTrainingPipeline + # or other methods to check whether the cancellation succeeded or whether the + # pipeline completed despite cancellation. On successful cancellation, the + # TrainingPipeline is not deleted; instead it becomes a pipeline with a + # TrainingPipeline.error value with a google.rpc.Status.code of 1, corresponding + # to `Code.CANCELLED`, and TrainingPipeline.state is set to `CANCELLED`. # @param [String] name - # Required. The name of the Schedule resource. Format: `projects/`project`/ - # locations/`location`/schedules/`schedule`` + # Required. The name of the TrainingPipeline to cancel. Format: `projects/` + # project`/locations/`location`/trainingPipelines/`training_pipeline`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelTrainingPipelineRequest] google_cloud_aiplatform_v1beta1_cancel_training_pipeline_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26111,59 +38069,32 @@ def delete_project_location_schedule(name, fields: nil, quota_user: nil, options # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_schedule(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule + def cancel_project_location_training_pipeline(name, google_cloud_aiplatform_v1beta1_cancel_training_pipeline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelTrainingPipelineRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_cancel_training_pipeline_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Lists Schedules in a Location. + # Creates a TrainingPipeline. A created TrainingPipeline right away will be + # attempted to be run. # @param [String] parent - # Required. The resource name of the Location to list the Schedules from. Format: - # `projects/`project`/locations/`location`` - # @param [String] filter - # Lists the Schedules that match the filter expression. The following fields are - # supported: * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. - # * `state`: Supports `=` and `!=` comparisons. * `request`: Supports existence - # of the check. (e.g. `create_pipeline_job_request:*` --> Schedule has - # create_pipeline_job_request). * `create_time`: Supports `=`, `!=`, `<`, `>`, `< - # =`, and `>=` comparisons. Values must be in RFC 3339 format. * `start_time`: - # Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must be in - # RFC 3339 format. * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, `>=` - # comparisons and `:*` existence check. Values must be in RFC 3339 format. * ` - # next_run_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. - # Values must be in RFC 3339 format. Filter expressions can be combined together - # using logical operators (`NOT`, `AND` & `OR`). The syntax to define filter - # expression is based on https://google.aip.dev/160. Examples: * `state="ACTIVE" - # AND display_name:"my_schedule_*"` * `NOT display_name="my_schedule"` * ` - # create_time>"2021-05-18T00:00:00Z"` * `end_time>"2021-05-18T00:00:00Z" OR NOT - # end_time:*` * `create_pipeline_job_request:*` - # @param [String] order_by - # A comma-separated list of fields to order by. The default sort order is in - # ascending order. Use "desc" after a field name for descending. You can have - # multiple order_by fields provided. For example, using "create_time desc, - # end_time" will order results by create time in descending order, and if there - # are multiple schedules having the same create time, order them by the end time - # in ascending order. If order_by is not specified, it will order by default - # with create_time in descending order. Supported fields: * `create_time` * ` - # start_time` * `end_time` * `next_run_time` - # @param [Fixnum] page_size - # The standard list page size. Default to 100 if not specified. - # @param [String] page_token - # The standard list page token. Typically obtained via ListSchedulesResponse. - # next_page_token of the previous ScheduleService.ListSchedules call. + # Required. The resource name of the Location to create the TrainingPipeline in. + # Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline] google_cloud_aiplatform_v1beta1_training_pipeline_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26173,39 +38104,30 @@ def get_project_location_schedule(name, fields: nil, quota_user: nil, options: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSchedulesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSchedulesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline] # # @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_schedules(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, 'v1beta1/{+parent}/schedules', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSchedulesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSchedulesResponse + def create_project_location_training_pipeline(parent, google_cloud_aiplatform_v1beta1_training_pipeline_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/trainingPipelines', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline::Representation + command.request_object = google_cloud_aiplatform_v1beta1_training_pipeline_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline 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 an active or paused Schedule. When the Schedule is updated, new runs - # will be scheduled starting from the updated next execution time after the - # update time based on the time_specification in the updated Schedule. All - # unstarted runs before the update time will be skipped while already created - # runs will NOT be paused or canceled. + # Deletes a TrainingPipeline. # @param [String] name - # Immutable. The resource name of the Schedule. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] google_cloud_aiplatform_v1beta1_schedule_object - # @param [String] update_mask - # Required. The update mask applies to the resource. See google.protobuf. - # FieldMask. + # Required. The name of the TrainingPipeline resource to be deleted. Format: ` + # projects/`project`/locations/`location`/trainingPipelines/`training_pipeline`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26215,34 +38137,28 @@ def list_project_location_schedules(parent, filter: nil, order_by: nil, page_siz # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule] + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_schedule(name, google_cloud_aiplatform_v1beta1_schedule_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule::Representation - command.request_object = google_cloud_aiplatform_v1beta1_schedule_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schedule + def delete_project_location_training_pipeline(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation 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 - # Pauses a Schedule. Will mark Schedule.state to 'PAUSED'. If the schedule is - # paused, no new runs will be created. Already created runs will NOT be paused - # or canceled. + # Gets a TrainingPipeline. # @param [String] name - # Required. The name of the Schedule resource to be paused. Format: `projects/` - # project`/locations/`location`/schedules/`schedule`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PauseScheduleRequest] google_cloud_aiplatform_v1beta1_pause_schedule_request_object + # Required. The name of the TrainingPipeline resource. Format: `projects/` + # project`/locations/`location`/trainingPipelines/`training_pipeline`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26252,36 +38168,48 @@ def patch_project_location_schedule(name, google_cloud_aiplatform_v1beta1_schedu # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline] # # @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 pause_project_location_schedule(name, google_cloud_aiplatform_v1beta1_pause_schedule_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:pause', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PauseScheduleRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_pause_schedule_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def get_project_location_training_pipeline(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline 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 - # Resumes a paused Schedule to start scheduling new runs. Will mark Schedule. - # state to 'ACTIVE'. Only paused Schedule can be resumed. When the Schedule is - # resumed, new runs will be scheduled starting from the next execution time - # after the current time based on the time_specification in the Schedule. If - # Schedule.catch_up is set up true, all missed runs will be scheduled for - # backfill first. - # @param [String] name - # Required. The name of the Schedule resource to be resumed. Format: `projects/` - # project`/locations/`location`/schedules/`schedule`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResumeScheduleRequest] google_cloud_aiplatform_v1beta1_resume_schedule_request_object + # Lists TrainingPipelines in a Location. + # @param [String] parent + # Required. The resource name of the Location to list the TrainingPipelines from. + # Format: `projects/`project`/locations/`location`` + # @param [String] filter + # The standard list filter. Supported fields: * `display_name` supports `=`, `!=` + # comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * ` + # training_task_definition` `=`, `!=` comparisons, and `:` wildcard. * ` + # create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` + # must be in RFC 3339 format. * `labels` supports general map functions that is: + # `labels.key=value` - key:value equality `labels.key:* - key existence Some + # examples of using the filter are: * `state="PIPELINE_STATE_SUCCEEDED" AND + # display_name:"my_pipeline_*"` * `state!="PIPELINE_STATE_FAILED" OR + # display_name="my_pipeline"` * `NOT display_name="my_pipeline"` * `create_time>" + # 2021-05-18T00:00:00Z"` * `training_task_definition:"* + # automl_text_classification*"` + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. Typically obtained via + # ListTrainingPipelinesResponse.next_page_token of the previous PipelineService. + # ListTrainingPipelines call. + # @param [String] read_mask + # Mask specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26291,21 +38219,23 @@ def pause_project_location_schedule(name, google_cloud_aiplatform_v1beta1_pause_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrainingPipelinesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrainingPipelinesResponse] # # @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 resume_project_location_schedule(name, google_cloud_aiplatform_v1beta1_resume_schedule_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:resume', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResumeScheduleRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_resume_schedule_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? + def list_project_location_training_pipelines(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/trainingPipelines', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrainingPipelinesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrainingPipelinesResponse + 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['readMask'] = read_mask unless read_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -26338,7 +38268,7 @@ def resume_project_location_schedule(name, google_cloud_aiplatform_v1beta1_resum # @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_schedule_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_project_location_training_pipeline_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -26371,7 +38301,7 @@ def cancel_project_location_schedule_operation(name, fields: nil, quota_user: ni # @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_schedule_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_project_location_training_pipeline_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -26402,7 +38332,7 @@ def delete_project_location_schedule_operation(name, fields: nil, quota_user: ni # @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_schedule_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_training_pipeline_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -26446,7 +38376,7 @@ def get_project_location_schedule_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 list_project_location_schedule_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_training_pipeline_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -26491,7 +38421,7 @@ def list_project_location_schedule_operations(name, filter: nil, page_size: 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 wait_project_location_schedule_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_project_location_training_pipeline_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -26502,12 +38432,18 @@ def wait_project_location_schedule_operation(name, timeout: nil, fields: nil, qu 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`. + # Cancels a TuningJob. Starts asynchronous cancellation on the TuningJob. The + # server makes a best effort to cancel the job, but success is not guaranteed. + # Clients can use GenAiTuningService.GetTuningJob or other methods to check + # whether the cancellation succeeded or whether the job completed despite + # cancellation. On successful cancellation, the TuningJob is not deleted; + # instead it becomes a job with a TuningJob.error value with a google.rpc.Status. + # code of 1, corresponding to `Code.CANCELLED`, and TuningJob.state is set to ` + # CANCELLED`. # @param [String] name - # The name of the operation resource to be deleted. + # Required. The name of the TuningJob to cancel. Format: `projects/`project`/ + # locations/`location`/tuningJobs/`tuning_job`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelTuningJobRequest] google_cloud_aiplatform_v1beta1_cancel_tuning_job_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26525,8 +38461,10 @@ def wait_project_location_schedule_operation(name, timeout: nil, fields: nil, qu # @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_solver_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def cancel_project_location_tuning_job(name, google_cloud_aiplatform_v1beta1_cancel_tuning_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelTuningJobRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_cancel_tuning_job_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? @@ -26535,10 +38473,45 @@ def delete_project_location_solver_operation(name, fields: nil, 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. + # Creates a TuningJob. A created TuningJob right away will be attempted to be + # run. + # @param [String] parent + # Required. The resource name of the Location to create the TuningJob in. Format: + # `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob] google_cloud_aiplatform_v1beta1_tuning_job_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob] + # + # @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_tuning_job(parent, google_cloud_aiplatform_v1beta1_tuning_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/tuningJobs', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob::Representation + command.request_object = google_cloud_aiplatform_v1beta1_tuning_job_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob + 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 + + # Gets a TuningJob. # @param [String] name - # The name of the operation resource. + # Required. The name of the TuningJob resource. Format: `projects/`project`/ + # locations/`location`/tuningJobs/`tuning_job`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26548,41 +38521,36 @@ def delete_project_location_solver_operation(name, fields: nil, quota_user: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob] # # @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_solver_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_tuning_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob 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. + # Lists TuningJobs in a Location. + # @param [String] parent + # Required. The resource name of the Location to list the TuningJobs from. + # Format: `projects/`project`/locations/`location`` # @param [String] filter - # The standard list filter. + # Optional. The standard list filter. # @param [Fixnum] page_size - # The standard list page size. + # Optional. 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 e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # Optional. The standard list page token. Typically obtained via + # ListTuningJobsResponse.next_page_token of the previous GenAiTuningService. + # ListTuningJob][] call. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26592,33 +38560,32 @@ def get_project_location_solver_operation(name, fields: nil, quota_user: nil, op # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTuningJobsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTuningJobsResponse] # # @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_solver_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, 'v1beta1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse - command.params['name'] = name unless name.nil? + def list_project_location_tuning_jobs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/tuningJobs', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTuningJobsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTuningJobsResponse + 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['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 - # Creates a SpecialistPool. + # Optimizes a prompt. # @param [String] parent - # Required. The parent Project name for the new SpecialistPool. The form is ` - # projects/`project`/locations/`location``. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool] google_cloud_aiplatform_v1beta1_specialist_pool_object + # Required. The resource name of the Location to optimize the prompt in. Format: + # `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptRequest] google_cloud_aiplatform_v1beta1_optimize_prompt_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26628,34 +38595,31 @@ def list_project_location_solver_operations(name, filter: nil, page_size: nil, p # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse] # # @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_specialist_pool(parent, google_cloud_aiplatform_v1beta1_specialist_pool_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/specialistPools', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool::Representation - command.request_object = google_cloud_aiplatform_v1beta1_specialist_pool_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def optimize_project_location_tuning_job_prompt(parent, google_cloud_aiplatform_v1beta1_optimize_prompt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/tuningJobs:optimizePrompt', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_optimize_prompt_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse 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 a SpecialistPool as well as all Specialists in the pool. - # @param [String] name - # Required. The resource name of the SpecialistPool to delete. Format: `projects/ - # `project`/locations/`location`/specialistPools/`specialist_pool`` - # @param [Boolean] force - # If set to true, any specialist managers in this SpecialistPool will also be - # deleted. (Otherwise, the request will only work if the SpecialistPool has no - # specialist managers.) + # Rebase a TunedModel. + # @param [String] parent + # Required. The resource name of the Location into which to rebase the Model. + # Format: `projects/`project`/locations/`location`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RebaseTunedModelRequest] google_cloud_aiplatform_v1beta1_rebase_tuned_model_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26673,21 +38637,24 @@ def create_project_location_specialist_pool(parent, google_cloud_aiplatform_v1be # @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_specialist_pool(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def rebase_project_location_tuning_job_tuned_model(parent, google_cloud_aiplatform_v1beta1_rebase_tuned_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/tuningJobs:rebaseTunedModel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RebaseTunedModelRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_rebase_tuned_model_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? - command.query['force'] = force unless force.nil? + 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 - # Gets a SpecialistPool. + # 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 - # Required. The name of the SpecialistPool resource. The form is `projects/` - # project`/locations/`location`/specialistPools/`specialist_pool``. + # 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 @@ -26697,36 +38664,29 @@ def delete_project_location_specialist_pool(name, force: nil, fields: nil, quota # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool] + # @return [Google::Apis::AiplatformV1beta1::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 get_project_location_specialist_pool(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool + def delete_project_location_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Lists SpecialistPools in a Location. + # Accepts the EULA acceptance status of a publisher model. # @param [String] parent - # Required. The name of the SpecialistPool's parent resource. Format: `projects/` - # project`/locations/`location`` - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. Typically obtained by - # ListSpecialistPoolsResponse.next_page_token of the previous - # SpecialistPoolService.ListSpecialistPools call. Return first page if empty. - # @param [String] read_mask - # Mask specifying which fields to read. FieldMask represents a set of + # Required. The project requesting access for named model. The format is ` + # projects/`project``. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AcceptPublisherModelEulaRequest] google_cloud_aiplatform_v1beta1_accept_publisher_model_eula_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26736,33 +38696,31 @@ def get_project_location_specialist_pool(name, fields: nil, quota_user: nil, opt # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSpecialistPoolsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSpecialistPoolsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance] # # @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_specialist_pools(parent, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/specialistPools', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSpecialistPoolsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSpecialistPoolsResponse + def accept_project_model_garden_eula(parent, google_cloud_aiplatform_v1beta1_accept_publisher_model_eula_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/modelGardenEula:accept', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AcceptPublisherModelEulaRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_accept_publisher_model_eula_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance command.params['parent'] = parent unless parent.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['readMask'] = read_mask unless read_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 - # Updates a SpecialistPool. - # @param [String] name - # Required. The resource name of the SpecialistPool. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool] google_cloud_aiplatform_v1beta1_specialist_pool_object - # @param [String] update_mask - # Required. The update mask applies to the resource. + # Checks the EULA acceptance status of a publisher model. + # @param [String] parent + # Required. The project requesting access for named model. The format is ` + # projects/`project``. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CheckPublisherModelEulaAcceptanceRequest] google_cloud_aiplatform_v1beta1_check_publisher_model_eula_acceptance_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26772,37 +38730,35 @@ def list_project_location_specialist_pools(parent, page_size: nil, page_token: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance] # # @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_specialist_pool(name, google_cloud_aiplatform_v1beta1_specialist_pool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SpecialistPool::Representation - command.request_object = google_cloud_aiplatform_v1beta1_specialist_pool_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? + def check_project_model_garden_eula(parent, google_cloud_aiplatform_v1beta1_check_publisher_model_eula_acceptance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/modelGardenEula:check', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CheckPublisherModelEulaAcceptanceRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_check_publisher_model_eula_acceptance_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance + 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 - # 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`. + # Enables model for the project if prerequisites are met (e.g. completed + # questionnaire and consents, or an active Private Offer). + # @param [String] parent + # Required. The project requesting access for named model. Format: `projects/` + # project`` # @param [String] name - # The name of the operation resource to be cancelled. + # Required. The name of the PublisherModel resource. Format: `publishers/` + # publisher`/models/`publisher_model`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnableModelRequest] google_cloud_aiplatform_v1beta1_enable_model_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26812,30 +38768,32 @@ def patch_project_location_specialist_pool(name, google_cloud_aiplatform_v1beta1 # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnableModelResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnableModelResponse] # # @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_specialist_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def enable_project_publisher_model_model(parent, name, google_cloud_aiplatform_v1beta1_enable_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/{+name}:enableModel', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnableModelRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_enable_model_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnableModelResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnableModelResponse + command.params['parent'] = parent unless parent.nil? 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. + # Return a list of tokens based on the input text. + # @param [String] endpoint + # Required. The name of the Endpoint requested to get lists of tokens and token + # ids. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest] google_cloud_aiplatform_v1beta1_compute_tokens_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26845,28 +38803,31 @@ def cancel_project_location_specialist_pool_operation(name, fields: nil, quota_u # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] # # @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_specialist_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? + def compute_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1beta1_compute_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:computeTokens', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_compute_tokens_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse + command.params['endpoint'] = endpoint unless endpoint.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. + # Perform a token counting. + # @param [String] endpoint + # Required. The name of the Endpoint requested to perform token counting. Format: + # `projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest] google_cloud_aiplatform_v1beta1_count_tokens_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26876,41 +38837,32 @@ def delete_project_location_specialist_pool_operation(name, fields: nil, quota_u # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] # # @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_specialist_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + def count_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1beta1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:countTokens', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_count_tokens_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse + command.params['endpoint'] = endpoint unless endpoint.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 e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported and will result in an `UNIMPLEMENTED` error if set unless - # explicitly documented otherwise in service or product specific documentation. + # Fetch an asynchronous online prediction operation. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` + # project`/locations/`location`/publishers/`publisher`/models/`model`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest] google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26920,42 +38872,33 @@ def get_project_location_specialist_pool_operation(name, fields: nil, quota_user # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_specialist_pool_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, 'v1beta1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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? + def fetch_publisher_model_predict_operation(endpoint, google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:fetchPredictOperation', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['endpoint'] = endpoint unless endpoint.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 - # 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 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. + # Generate content with multimodal inputs. + # @param [String] model + # Required. The fully qualified name of the publisher model or tuned model + # endpoint to use. Publisher model format: `projects/`project`/locations/` + # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` + # project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26965,30 +38908,43 @@ def list_project_location_specialist_pool_operations(name, filter: nil, page_siz # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] # # @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_project_location_specialist_pool_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? - command.query['timeout'] = timeout unless timeout.nil? + def generate_publisher_model_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+model}:generateContent', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse + command.params['model'] = model unless model.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 Study. A resource name will be generated after creation of the Study. - # @param [String] parent - # Required. The resource name of the Location to create the CustomJob in. Format: - # `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study] google_cloud_aiplatform_v1beta1_study_object + # Gets a Model Garden publisher model. + # @param [String] name + # Required. The name of the PublisherModel resource. Format: `publishers/` + # publisher`/models/`publisher_model`` + # @param [String] hugging_face_token + # Optional. Token used to access Hugging Face gated models. + # @param [Boolean] include_equivalent_model_garden_model_deployment_configs + # Optional. Whether to cnclude the deployment configs from the equivalent Model + # Garden model if the requested model is a Hugging Face model. + # @param [Boolean] is_hugging_face_model + # Optional. Boolean indicates whether the requested model is a Hugging Face + # model. + # @param [String] language_code + # Optional. The IETF BCP-47 language code representing the language in which the + # publisher model's text information should be written in. + # @param [String] view + # Optional. PublisherModel view specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -26998,30 +38954,52 @@ def wait_project_location_specialist_pool_operation(name, timeout: nil, fields: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModel] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModel] # # @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_study(parent, google_cloud_aiplatform_v1beta1_study_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/studies', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study::Representation - command.request_object = google_cloud_aiplatform_v1beta1_study_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study - command.params['parent'] = parent unless parent.nil? + def get_publisher_model(name, hugging_face_token: nil, include_equivalent_model_garden_model_deployment_configs: nil, is_hugging_face_model: nil, language_code: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModel::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModel + command.params['name'] = name unless name.nil? + command.query['huggingFaceToken'] = hugging_face_token unless hugging_face_token.nil? + command.query['includeEquivalentModelGardenModelDeploymentConfigs'] = include_equivalent_model_garden_model_deployment_configs unless include_equivalent_model_garden_model_deployment_configs.nil? + command.query['isHuggingFaceModel'] = is_hugging_face_model unless is_hugging_face_model.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['view'] = view unless view.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 Study. - # @param [String] name - # Required. The name of the Study resource to be deleted. Format: `projects/` - # project`/locations/`location`/studies/`study`` + # Lists publisher models in Model Garden. + # @param [String] parent + # Required. The name of the Publisher from which to list the PublisherModels. + # Format: `publishers/`publisher`` + # @param [String] filter + # Optional. The standard list filter. + # @param [String] language_code + # Optional. The IETF BCP-47 language code representing the language in which the + # publisher models' text information should be written in. If not set, by + # default English (en). + # @param [Boolean] list_all_versions + # Optional. List all publisher model versions if the flag is set to true. + # @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. + # @param [Fixnum] page_size + # Optional. The standard list page size. + # @param [String] page_token + # Optional. The standard list page token. Typically obtained via + # ListPublisherModelsResponse.next_page_token of the previous ModelGardenService. + # ListPublisherModels call. + # @param [String] view + # Optional. PublisherModel view specifying which fields to read. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -27031,28 +39009,36 @@ def create_project_location_study(parent, google_cloud_aiplatform_v1beta1_study_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPublisherModelsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPublisherModelsResponse] # # @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_study(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty - command.params['name'] = name unless name.nil? + def list_publisher_models(parent, filter: nil, language_code: nil, list_all_versions: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/models', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPublisherModelsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPublisherModelsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['listAllVersions'] = list_all_versions unless list_all_versions.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['view'] = view unless view.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 Study by name. - # @param [String] name - # Required. The name of the Study resource. Format: `projects/`project`/ - # locations/`location`/studies/`study`` + # Perform an online prediction. + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest] google_cloud_aiplatform_v1beta1_predict_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -27062,34 +39048,32 @@ def delete_project_location_study(name, fields: nil, quota_user: nil, options: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] # # @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_study(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study - command.params['name'] = name unless name.nil? + def predict_publisher_model(endpoint, google_cloud_aiplatform_v1beta1_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:predict', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_predict_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse + command.params['endpoint'] = endpoint unless endpoint.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 all the studies in a region for an associated project. - # @param [String] parent - # Required. The resource name of the Location to list the Study from. Format: ` - # projects/`project`/locations/`location`` - # @param [Fixnum] page_size - # Optional. The maximum number of studies to return per "page" of results. If - # unspecified, service will pick an appropriate default. - # @param [String] page_token - # Optional. A page token to request the next page of results. If unspecified, - # there are no subsequent pages. + # + # @param [String] endpoint + # Required. The name of the Endpoint requested to serve the prediction. Format: ` + # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` + # project`/locations/`location`/publishers/`publisher`/models/`model`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest] google_cloud_aiplatform_v1beta1_predict_long_running_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -27099,32 +39083,33 @@ def get_project_location_study(name, fields: nil, quota_user: nil, options: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListStudiesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListStudiesResponse] + # @return [Google::Apis::AiplatformV1beta1::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_studies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/studies', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListStudiesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListStudiesResponse - command.params['parent'] = parent unless parent.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? + def predict_publisher_model_long_running(endpoint, google_cloud_aiplatform_v1beta1_predict_long_running_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+endpoint}:predictLongRunning', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_predict_long_running_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.params['endpoint'] = endpoint unless endpoint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Looks a study up using the user-defined display_name field instead of the - # fully qualified resource name. - # @param [String] parent - # Required. The resource name of the Location to get the Study from. Format: ` - # projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LookupStudyRequest] google_cloud_aiplatform_v1beta1_lookup_study_request_object + execute_or_queue_command(command, &block) + end + + # Generate content with multimodal inputs with streaming support. + # @param [String] model + # Required. The fully qualified name of the publisher model or tuned model + # endpoint to use. Publisher model format: `projects/`project`/locations/` + # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` + # project`/locations/`location`/endpoints/`endpoint`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -27134,21 +39119,21 @@ def list_project_location_studies(parent, page_size: nil, page_token: nil, field # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] # # @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 lookup_project_location_study(parent, google_cloud_aiplatform_v1beta1_lookup_study_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/studies:lookup', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1LookupStudyRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_lookup_study_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Study - command.params['parent'] = parent unless parent.nil? + def stream_publisher_model_generate_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+model}:streamGenerateContent', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse + command.params['model'] = model unless model.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -27181,7 +39166,7 @@ def lookup_project_location_study(parent, google_cloud_aiplatform_v1beta1_lookup # @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_study_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_rag_corpora_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -27214,7 +39199,7 @@ def cancel_project_location_study_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_project_location_study_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_rag_corpora_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -27245,7 +39230,7 @@ def delete_project_location_study_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_project_location_study_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_rag_corpora_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -27289,7 +39274,7 @@ def get_project_location_study_operation(name, fields: nil, quota_user: nil, opt # @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_study_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_rag_corpora_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -27334,7 +39319,7 @@ def list_project_location_study_operations(name, filter: nil, page_size: nil, pa # @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_project_location_study_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_rag_corpora_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -27345,82 +39330,16 @@ def wait_project_location_study_operation(name, timeout: nil, fields: nil, quota execute_or_queue_command(command, &block) end - # Adds a measurement of the objective metrics to a Trial. This measurement is - # assumed to have been taken before the Trial is complete. - # @param [String] trial_name - # Required. The name of the trial to add measurement. Format: `projects/`project` - # /locations/`location`/studies/`study`/trials/`trial`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddTrialMeasurementRequest] google_cloud_aiplatform_v1beta1_add_trial_measurement_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] - # - # @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 add_project_location_study_trial_trial_measurement(trial_name, google_cloud_aiplatform_v1beta1_add_trial_measurement_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+trialName}:addTrialMeasurement', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AddTrialMeasurementRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_add_trial_measurement_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial - command.params['trialName'] = trial_name unless trial_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 - - # Checks whether a Trial should stop or not. Returns a long-running operation. - # When the operation is successful, it will contain a - # CheckTrialEarlyStoppingStateResponse. - # @param [String] trial_name - # Required. The Trial's name. Format: `projects/`project`/locations/`location`/ - # studies/`study`/trials/`trial`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CheckTrialEarlyStoppingStateRequest] google_cloud_aiplatform_v1beta1_check_trial_early_stopping_state_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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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 check_project_location_study_trial_trial_early_stopping_state(trial_name, google_cloud_aiplatform_v1beta1_check_trial_early_stopping_state_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+trialName}:checkTrialEarlyStoppingState', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CheckTrialEarlyStoppingStateRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_check_trial_early_stopping_state_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['trialName'] = trial_name unless trial_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 - - # Marks a Trial as complete. + # 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 - # Required. The Trial's name. Format: `projects/`project`/locations/`location`/ - # studies/`study`/trials/`trial`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CompleteTrialRequest] google_cloud_aiplatform_v1beta1_complete_trial_request_object + # 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 @@ -27430,64 +39349,30 @@ def check_project_location_study_trial_trial_early_stopping_state(trial_name, go # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] + # @return [Google::Apis::AiplatformV1beta1::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 complete_project_location_study_trial(name, google_cloud_aiplatform_v1beta1_complete_trial_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:complete', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CompleteTrialRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_complete_trial_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial + def cancel_rag_corpora_rag_file_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Adds a user provided Trial to a Study. - # @param [String] parent - # Required. The resource name of the Study to create the Trial in. Format: ` - # projects/`project`/locations/`location`/studies/`study`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] google_cloud_aiplatform_v1beta1_trial_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] - # - # @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_study_trial(parent, google_cloud_aiplatform_v1beta1_trial_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/trials', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial::Representation - command.request_object = google_cloud_aiplatform_v1beta1_trial_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial - 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 a Trial. + # 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 - # Required. The Trial's name. Format: `projects/`project`/locations/`location`/ - # studies/`study`/trials/`trial`` + # 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 @@ -27505,7 +39390,7 @@ def create_project_location_study_trial(parent, google_cloud_aiplatform_v1beta1_ # @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_study_trial(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_rag_corpora_rag_file_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -27515,10 +39400,10 @@ def delete_project_location_study_trial(name, fields: nil, quota_user: nil, opti execute_or_queue_command(command, &block) end - # Gets a Trial. + # 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 - # Required. The name of the Trial resource. Format: `projects/`project`/ - # locations/`location`/studies/`study`/trials/`trial`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -27528,34 +39413,41 @@ def delete_project_location_study_trial(name, fields: nil, quota_user: nil, opti # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] + # @return [Google::Apis::AiplatformV1beta1::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_study_trial(name, fields: nil, quota_user: nil, options: nil, &block) + def get_rag_corpora_rag_file_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 the Trials associated with a Study. - # @param [String] parent - # Required. The resource name of the Study to list the Trial from. Format: ` - # projects/`project`/locations/`location`/studies/`study`` + # 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 - # Optional. The number of Trials to retrieve per "page" of results. If - # unspecified, the service will pick an appropriate default. + # The standard list page size. # @param [String] page_token - # Optional. A page token to request the next page of results. If unspecified, - # there are no subsequent pages. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -27565,103 +39457,42 @@ def get_project_location_study_trial(name, fields: nil, quota_user: nil, options # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrialsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrialsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_study_trials(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/trials', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrialsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrialsResponse - command.params['parent'] = parent unless parent.nil? + def list_rag_corpora_rag_file_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Lists the pareto-optimal Trials for multi-objective Study or the optimal - # Trials for single-objective Study. The definition of pareto-optimal can be - # checked in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency - # @param [String] parent - # Required. The name of the Study that the optimal Trial belongs to. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListOptimalTrialsRequest] google_cloud_aiplatform_v1beta1_list_optimal_trials_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListOptimalTrialsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListOptimalTrialsResponse] - # - # @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_study_trial_optimal_trials(parent, google_cloud_aiplatform_v1beta1_list_optimal_trials_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/trials:listOptimalTrials', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListOptimalTrialsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_list_optimal_trials_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListOptimalTrialsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListOptimalTrialsResponse - 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 - - # Stops a Trial. + # 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 Trial's name. Format: `projects/`project`/locations/`location`/ - # studies/`study`/trials/`trial`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StopTrialRequest] google_cloud_aiplatform_v1beta1_stop_trial_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial] - # - # @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 stop_project_location_study_trial(name, google_cloud_aiplatform_v1beta1_stop_trial_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:stop', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StopTrialRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_stop_trial_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Trial - 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 - - # Adds one or more Trials to a Study, with parameter values suggested by Vertex - # AI Vizier. Returns a long-running operation associated with the generation of - # Trial suggestions. When this long-running operation succeeds, it will contain - # a SuggestTrialsResponse. - # @param [String] parent - # Required. The project and location that the Study belongs to. Format: ` - # projects/`project`/locations/`location`/studies/`study`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SuggestTrialsRequest] google_cloud_aiplatform_v1beta1_suggest_trials_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 @@ -27679,13 +39510,12 @@ def stop_project_location_study_trial(name, google_cloud_aiplatform_v1beta1_stop # @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 suggest_project_location_study_trial(parent, google_cloud_aiplatform_v1beta1_suggest_trials_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/trials:suggest', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SuggestTrialsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_suggest_trials_request_object + def wait_rag_corpora_rag_file_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + 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) @@ -27718,7 +39548,7 @@ def suggest_project_location_study_trial(parent, google_cloud_aiplatform_v1beta1 # @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_study_trial_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -27751,7 +39581,7 @@ def cancel_project_location_study_trial_operation(name, fields: nil, quota_user: # @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_study_trial_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -27782,7 +39612,7 @@ def delete_project_location_study_trial_operation(name, fields: nil, quota_user: # @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_study_trial_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -27826,7 +39656,7 @@ def get_project_location_study_trial_operation(name, fields: nil, quota_user: ni # @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_study_trial_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_rag_engine_config_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -27871,7 +39701,7 @@ def list_project_location_study_trial_operations(name, filter: nil, page_size: n # @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_project_location_study_trial_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_rag_engine_config_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -27882,53 +39712,11 @@ def wait_project_location_study_trial_operation(name, timeout: nil, fields: nil, execute_or_queue_command(command, &block) end - # Reads multiple TensorboardTimeSeries' data. The data point number limit is - # 1000 for scalars, 100 for tensors and blob references. If the number of data - # points stored is less than the limit, all data is returned. Otherwise, the - # number limit of data points is randomly selected from this time series and - # returned. - # @param [String] tensorboard - # Required. The resource name of the Tensorboard containing - # TensorboardTimeSeries to read data from. Format: `projects/`project`/locations/ - # `location`/tensorboards/`tensorboard``. The TensorboardTimeSeries referenced - # by time_series must be sub resources of this Tensorboard. - # @param [Array, String] time_series - # Required. The resource names of the TensorboardTimeSeries to read data from. - # Format: `projects/`project`/locations/`location`/tensorboards/`tensorboard`/ - # experiments/`experiment`/runs/`run`/timeSeries/`time_series`` - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse] - # - # @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 batch_project_location_tensorboard_read(tensorboard, time_series: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+tensorboard}:batchRead', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse - command.params['tensorboard'] = tensorboard unless tensorboard.nil? - command.query['timeSeries'] = time_series unless time_series.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 Tensorboard. + # Creates a reasoning engine. + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] google_cloud_aiplatform_v1beta1_reasoning_engine_object # @param [String] parent - # Required. The resource name of the Location to create the Tensorboard in. + # Required. The resource name of the Location to create the ReasoningEngine in. # Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard] google_cloud_aiplatform_v1beta1_tensorboard_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -27946,22 +39734,26 @@ def batch_project_location_tensorboard_read(tensorboard, time_series: nil, field # @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_tensorboard(parent, google_cloud_aiplatform_v1beta1_tensorboard_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/tensorboards', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard::Representation - command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_object + def create_reasoning_engine(google_cloud_aiplatform_v1beta1_reasoning_engine_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/reasoningEngines', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine::Representation + command.request_object = google_cloud_aiplatform_v1beta1_reasoning_engine_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + command.query['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 a Tensorboard. + # Deletes a reasoning engine. # @param [String] name - # Required. The name of the Tensorboard to be deleted. Format: `projects/` - # project`/locations/`location`/tensorboards/`tensorboard`` + # Required. The name of the ReasoningEngine resource to be deleted. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`` + # @param [Boolean] force + # Optional. If set to true, child resources of this reasoning engine will also + # be deleted. Otherwise, the request will fail with FAILED_PRECONDITION error + # when the reasoning engine has undeleted child resources. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -27979,20 +39771,21 @@ def create_project_location_tensorboard(parent, google_cloud_aiplatform_v1beta1_ # @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_tensorboard(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_reasoning_engine(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.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 Tensorboard. + # Gets a reasoning engine. # @param [String] name - # Required. The name of the Tensorboard resource. Format: `projects/`project`/ - # locations/`location`/tensorboards/`tensorboard`` + # Required. The name of the ReasoningEngine resource. Format: `projects/`project` + # /locations/`location`/reasoningEngines/`reasoning_engine`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28002,43 +39795,35 @@ def delete_project_location_tensorboard(name, fields: nil, quota_user: nil, opti # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] # # @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_tensorboard(name, fields: nil, quota_user: nil, options: nil, &block) + def get_reasoning_engine(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine 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 Tensorboards in a Location. - # @param [String] parent - # Required. The resource name of the Location to list Tensorboards. Format: ` - # projects/`project`/locations/`location`` + # Lists reasoning engines in a location. # @param [String] filter - # Lists the Tensorboards that match the filter expression. - # @param [String] order_by - # Field to use to sort the list. + # Optional. The standard list filter. More detail in [AIP-160](https://google. + # aip.dev/160). # @param [Fixnum] page_size - # The maximum number of Tensorboards to return. The service may return fewer - # than this value. If unspecified, at most 100 Tensorboards are returned. The - # maximum value is 100; values above 100 are coerced to 100. + # Optional. The standard list page size. # @param [String] page_token - # A page token, received from a previous TensorboardService.ListTensorboards - # call. Provide this to retrieve the subsequent page. When paginating, all other - # parameters provided to TensorboardService.ListTensorboards must match the call - # that provided the page token. - # @param [String] read_mask - # Mask specifying which fields to read. + # Optional. The standard list page token. + # @param [String] parent + # Required. The resource name of the Location to list the ReasoningEngines from. + # Format: `projects/`project`/locations/`location`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28048,40 +39833,34 @@ def get_project_location_tensorboard(name, fields: nil, quota_user: nil, options # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse] # # @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_tensorboards(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/tensorboards', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardsResponse - command.params['parent'] = parent unless parent.nil? + def list_reasoning_engines(filter: nil, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/reasoningEngines', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse 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['readMask'] = read_mask unless read_mask.nil? + command.query['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 - # Updates a Tensorboard. + # Updates a reasoning engine. # @param [String] name - # Output only. Name of the Tensorboard. Format: `projects/`project`/locations/` - # location`/tensorboards/`tensorboard`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard] google_cloud_aiplatform_v1beta1_tensorboard_object + # Identifier. The resource name of the ReasoningEngine. Format: `projects/` + # project`/locations/`location`/reasoningEngines/`reasoning_engine`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] google_cloud_aiplatform_v1beta1_reasoning_engine_object # @param [String] update_mask - # Required. Field mask is used to specify the fields to be overwritten in the - # Tensorboard resource by the update. The fields specified in the update_mask - # are relative to the resource, not the full request. A field is overwritten if - # it's in the mask. If the user does not provide a mask then all fields are - # overwritten if new values are specified. + # Optional. Mask specifying which fields to update. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28099,10 +39878,10 @@ def list_project_location_tensorboards(parent, filter: nil, order_by: nil, page_ # @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_tensorboard(name, google_cloud_aiplatform_v1beta1_tensorboard_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_reasoning_engine(name, google_cloud_aiplatform_v1beta1_reasoning_engine_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensorboard::Representation - command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_object + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine::Representation + command.request_object = google_cloud_aiplatform_v1beta1_reasoning_engine_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? @@ -28112,10 +39891,45 @@ def patch_project_location_tensorboard(name, google_cloud_aiplatform_v1beta1_ten execute_or_queue_command(command, &block) end - # Returns the storage size for a given TensorBoard instance. - # @param [String] tensorboard - # Required. The name of the Tensorboard resource. Format: `projects/`project`/ - # locations/`location`/tensorboards/`tensorboard`` + # 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest] google_cloud_aiplatform_v1beta1_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse] + # + # @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_v1beta1_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:query', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_query_reasoning_engine_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse + 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest] google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28125,28 +39939,37 @@ def patch_project_location_tensorboard(name, google_cloud_aiplatform_v1beta1_ten # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardSizeResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardSizeResponse] + # @return [Google::Apis::AiplatformV1beta1::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 read_project_location_tensorboard_size(tensorboard, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+tensorboard}:readSize', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardSizeResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardSizeResponse - command.params['tensorboard'] = tensorboard unless tensorboard.nil? + def stream_reasoning_engine_query(name, google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:streamQuery', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Returns a list of monthly active users for a given TensorBoard instance. - # @param [String] tensorboard - # Required. The name of the Tensorboard resource. Format: `projects/`project`/ - # locations/`location`/tensorboards/`tensorboard`` + # Get request for reasoning engine instance via the A2A get protocol apis. + # @param [String] name + # Required. The full resource path of the reasoning engine, captured from the + # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` + # @param [String] a2a_endpoint + # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` + # @param [String] history_length + # Optional. The optional query parameter for the getTask endpoint. Mapped from "? + # history_length=". This indicates how many turns of history to return. If not + # set, the default value is 0, which means all the history will be returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28156,32 +39979,30 @@ def read_project_location_tensorboard_size(tensorboard, fields: nil, quota_user: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardUsageResponse] parsed result object + # @yieldparam result [NilClass] No result returned for this method # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardUsageResponse] + # @return [void] # # @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 read_project_location_tensorboard_usage(tensorboard, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+tensorboard}:readUsage', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardUsageResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardUsageResponse - command.params['tensorboard'] = tensorboard unless tensorboard.nil? + def card_reasoning_engine_a2a_v1(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) + command.params['name'] = name unless name.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? + command.query['historyLength'] = history_length unless history_length.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Batch create TensorboardTimeSeries that belong to a TensorboardExperiment. - # @param [String] parent - # Required. The resource name of the TensorboardExperiment to create the - # TensorboardTimeSeries in. Format: `projects/`project`/locations/`location`/ - # tensorboards/`tensorboard`/experiments/`experiment`` The TensorboardRuns - # referenced by the parent fields in the CreateTensorboardTimeSeriesRequest - # messages must be sub resources of this TensorboardExperiment. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesRequest] google_cloud_aiplatform_v1beta1_batch_create_tensorboard_time_series_request_object + # Send post request for reasoning engine instance via the A2A post protocol apis. + # @param [String] name + # Required. The full resource path of the reasoning engine, captured from the + # URL. + # @param [String] a2a_endpoint + # Required. The a2a endpoint path, captured from the URL. e.g., v1/message:send # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28191,36 +40012,31 @@ def read_project_location_tensorboard_usage(tensorboard, fields: nil, quota_user # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse] parsed result object + # @yieldparam result [NilClass] No result returned for this method # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse] + # @return [void] # # @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 batch_project_location_tensorboard_experiment_create(parent, google_cloud_aiplatform_v1beta1_batch_create_tensorboard_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}:batchCreate', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_batch_create_tensorboard_time_series_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse - command.params['parent'] = parent unless parent.nil? + def send_reasoning_engine_a2a_v1_message(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:send', options) + command.params['name'] = name unless name.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.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 TensorboardExperiment. - # @param [String] parent - # Required. The resource name of the Tensorboard to create the - # TensorboardExperiment in. Format: `projects/`project`/locations/`location`/ - # tensorboards/`tensorboard`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] google_cloud_aiplatform_v1beta1_tensorboard_experiment_object - # @param [String] tensorboard_experiment_id - # Required. The ID to use for the Tensorboard experiment, which becomes the - # final component of the Tensorboard experiment's resource name. This value - # should be 1-128 characters, and valid characters are `/a-z-/`. + # Streams queries using a reasoning engine instance via the A2A streaming + # protocol apis. + # @param [String] name + # Required. The full resource path of the reasoning engine, captured from the + # URL. + # @param [String] a2a_endpoint + # Required. The http endpoint extracted from the URL path. e.g., v1/message: + # stream. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28230,32 +40046,36 @@ def batch_project_location_tensorboard_experiment_create(parent, google_cloud_ai # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_tensorboard_experiment(parent, google_cloud_aiplatform_v1beta1_tensorboard_experiment_object = nil, tensorboard_experiment_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/experiments', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment::Representation - command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_experiment_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment - command.params['parent'] = parent unless parent.nil? - command.query['tensorboardExperimentId'] = tensorboard_experiment_id unless tensorboard_experiment_id.nil? + def stream_reasoning_engine_a2a_v1_message(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:stream', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + command.params['name'] = name unless name.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.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 TensorboardExperiment. + # Get request for reasoning engine instance via the A2A get protocol apis. # @param [String] name - # Required. The name of the TensorboardExperiment to be deleted. Format: ` - # projects/`project`/locations/`location`/tensorboards/`tensorboard`/experiments/ - # `experiment`` + # Required. The full resource path of the reasoning engine, captured from the + # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` + # @param [String] a2a_endpoint + # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` + # @param [String] history_length + # Optional. The optional query parameter for the getTask endpoint. Mapped from "? + # history_length=". This indicates how many turns of history to return. If not + # set, the default value is 0, which means all the history will be returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28265,29 +40085,30 @@ def create_project_location_tensorboard_experiment(parent, google_cloud_aiplatfo # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [NilClass] No result returned for this method # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [void] # # @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_tensorboard_experiment(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def a2a_reasoning_engine_a2a_v1_task_get_reasoning_engine(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) command.params['name'] = name unless name.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? + command.query['historyLength'] = history_length unless history_length.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 TensorboardExperiment. + # Send post request for reasoning engine instance via the A2A post protocol apis. # @param [String] name - # Required. The name of the TensorboardExperiment resource. Format: `projects/` - # project`/locations/`location`/tensorboards/`tensorboard`/experiments/` - # experiment`` + # Required. The full resource path of the reasoning engine, captured from the + # URL. + # @param [String] a2a_endpoint + # Required. The a2a endpoint path, captured from the URL. e.g., v1/message:send # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28297,43 +40118,34 @@ def delete_project_location_tensorboard_experiment(name, fields: nil, quota_user # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] parsed result object + # @yieldparam result [NilClass] No result returned for this method # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] + # @return [void] # # @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_tensorboard_experiment(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment + def cancel_reasoning_engine_a2a_v1_task(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:cancel', options) command.params['name'] = name unless name.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.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 TensorboardExperiments in a Location. - # @param [String] parent - # Required. The resource name of the Tensorboard to list TensorboardExperiments. - # Format: `projects/`project`/locations/`location`/tensorboards/`tensorboard`` - # @param [String] filter - # Lists the TensorboardExperiments that match the filter expression. - # @param [String] order_by - # Field to use to sort the list. - # @param [Fixnum] page_size - # The maximum number of TensorboardExperiments to return. The service may return - # fewer than this value. If unspecified, at most 50 TensorboardExperiments are - # returned. The maximum value is 1000; values above 1000 are coerced to 1000. - # @param [String] page_token - # A page token, received from a previous TensorboardService. - # ListTensorboardExperiments call. Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to TensorboardService. - # ListTensorboardExperiments must match the call that provided the page token. - # @param [String] read_mask - # Mask specifying which fields to read. + # Get request for reasoning engine instance via the A2A get protocol apis. + # @param [String] name + # Required. The full resource path of the reasoning engine, captured from the + # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` + # @param [String] a2a_endpoint + # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` + # @param [String] history_length + # Optional. The optional query parameter for the getTask endpoint. Mapped from "? + # history_length=". This indicates how many turns of history to return. If not + # set, the default value is 0, which means all the history will be returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28343,40 +40155,32 @@ def get_project_location_tensorboard_experiment(name, fields: nil, quota_user: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardExperimentsResponse] parsed result object + # @yieldparam result [NilClass] No result returned for this method # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardExperimentsResponse] + # @return [void] # # @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_tensorboard_experiments(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/experiments', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardExperimentsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardExperimentsResponse - 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['readMask'] = read_mask unless read_mask.nil? + def push_reasoning_engine_a2a_v1_task_notification_configs(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) + command.params['name'] = name unless name.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? + command.query['historyLength'] = history_length unless history_length.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 a TensorboardExperiment. + # Stream get request for reasoning engine instance via the A2A stream get + # protocol apis. # @param [String] name - # Output only. Name of the TensorboardExperiment. Format: `projects/`project`/ - # locations/`location`/tensorboards/`tensorboard`/experiments/`experiment`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] google_cloud_aiplatform_v1beta1_tensorboard_experiment_object - # @param [String] update_mask - # Required. Field mask is used to specify the fields to be overwritten in the - # TensorboardExperiment resource by the update. The fields specified in the - # update_mask are relative to the resource, not the full request. A field is - # overwritten if it's in the mask. If the user does not provide a mask then all - # fields are overwritten if new values are specified. + # Required. The full resource path of the reasoning engine, captured from the + # URL. + # @param [String] a2a_endpoint + # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123: + # subscribe`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28386,34 +40190,36 @@ def list_project_location_tensorboard_experiments(parent, filter: nil, order_by: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment] + # @return [Google::Apis::AiplatformV1beta1::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 patch_project_location_tensorboard_experiment(name, google_cloud_aiplatform_v1beta1_tensorboard_experiment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment::Representation - command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_experiment_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardExperiment + def subscribe_reasoning_engine_a2a_v1_task(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:subscribe', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Write time series data points of multiple TensorboardTimeSeries in multiple - # TensorboardRun's. If any data fail to be ingested, an error is returned. - # @param [String] tensorboard_experiment - # Required. The resource name of the TensorboardExperiment to write data to. - # Format: `projects/`project`/locations/`location`/tensorboards/`tensorboard`/ - # experiments/`experiment`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardExperimentDataRequest] google_cloud_aiplatform_v1beta1_write_tensorboard_experiment_data_request_object + # Get request for reasoning engine instance via the A2A get protocol apis. + # @param [String] name + # Required. The full resource path of the reasoning engine, captured from the + # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` + # @param [String] a2a_endpoint + # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` + # @param [String] history_length + # Optional. The optional query parameter for the getTask endpoint. Mapped from "? + # history_length=". This indicates how many turns of history to return. If not + # set, the default value is 0, which means all the history will be returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28423,21 +40229,19 @@ def patch_project_location_tensorboard_experiment(name, google_cloud_aiplatform_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardExperimentDataResponse] parsed result object + # @yieldparam result [NilClass] No result returned for this method # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardExperimentDataResponse] + # @return [void] # # @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 write_project_location_tensorboard_experiment(tensorboard_experiment, google_cloud_aiplatform_v1beta1_write_tensorboard_experiment_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+tensorboardExperiment}:write', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardExperimentDataRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_write_tensorboard_experiment_data_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardExperimentDataResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardExperimentDataResponse - command.params['tensorboardExperiment'] = tensorboard_experiment unless tensorboard_experiment.nil? + def a2a_reasoning_engine_a2a_v1_task_push_notification_config_get_reasoning_engine(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) + command.params['name'] = name unless name.nil? + command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? + command.query['historyLength'] = history_length unless history_length.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -28470,7 +40274,7 @@ def write_project_location_tensorboard_experiment(tensorboard_experiment, google # @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_tensorboard_experiment_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_reasoning_engine_example_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -28503,7 +40307,7 @@ def cancel_project_location_tensorboard_experiment_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_tensorboard_experiment_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_reasoning_engine_example_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -28534,7 +40338,7 @@ def delete_project_location_tensorboard_experiment_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_tensorboard_experiment_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_reasoning_engine_example_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -28544,54 +40348,6 @@ def get_project_location_tensorboard_experiment_operation(name, fields: nil, quo 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 e. - # g. when `parent` is set to `"projects/example/locations/-"`. This field is not - # by default supported 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::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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_tensorboard_experiment_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, 'v1beta1/{+name}/operations', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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 @@ -28623,7 +40379,7 @@ def list_project_location_tensorboard_experiment_operations(name, filter: 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_project_location_tensorboard_experiment_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_reasoning_engine_example_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -28634,13 +40390,12 @@ def wait_project_location_tensorboard_experiment_operation(name, timeout: nil, f execute_or_queue_command(command, &block) end - # Batch create TensorboardRuns. + # Create a Memory. # @param [String] parent - # Required. The resource name of the TensorboardExperiment to create the - # TensorboardRuns in. Format: `projects/`project`/locations/`location`/ - # tensorboards/`tensorboard`/experiments/`experiment`` The parent field in the - # CreateTensorboardRunRequest messages must match this field. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardRunsRequest] google_cloud_aiplatform_v1beta1_batch_create_tensorboard_runs_request_object + # Required. The resource name of the ReasoningEngine to create the Memory under. + # Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] google_cloud_aiplatform_v1beta1_memory_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28650,36 +40405,31 @@ def wait_project_location_tensorboard_experiment_operation(name, timeout: nil, f # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardRunsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardRunsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 batch_project_location_tensorboard_experiment_run_create(parent, google_cloud_aiplatform_v1beta1_batch_create_tensorboard_runs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/runs:batchCreate', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardRunsRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_batch_create_tensorboard_runs_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardRunsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchCreateTensorboardRunsResponse + def create_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_memory_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/memories', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory::Representation + command.request_object = google_cloud_aiplatform_v1beta1_memory_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Creates a TensorboardRun. - # @param [String] parent - # Required. The resource name of the TensorboardExperiment to create the - # TensorboardRun in. Format: `projects/`project`/locations/`location`/ - # tensorboards/`tensorboard`/experiments/`experiment`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] google_cloud_aiplatform_v1beta1_tensorboard_run_object - # @param [String] tensorboard_run_id - # Required. The ID to use for the Tensorboard run, which becomes the final - # component of the Tensorboard run's resource name. This value should be 1-128 - # characters, and valid characters are `/a-z-/`. + # Delete a Memory. + # @param [String] name + # Required. The resource name of the Memory to delete. Format: `projects/` + # project`/locations/`location`/reasoningEngines/`reasoning_engine`/memories/` + # memory`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28689,32 +40439,30 @@ def batch_project_location_tensorboard_experiment_run_create(parent, google_clou # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] + # @return [Google::Apis::AiplatformV1beta1::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_tensorboard_experiment_run(parent, google_cloud_aiplatform_v1beta1_tensorboard_run_object = nil, tensorboard_run_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/runs', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun::Representation - command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_run_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun - command.params['parent'] = parent unless parent.nil? - command.query['tensorboardRunId'] = tensorboard_run_id unless tensorboard_run_id.nil? + def delete_reasoning_engine_memory(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Deletes a TensorboardRun. - # @param [String] name - # Required. The name of the TensorboardRun to be deleted. Format: `projects/` - # project`/locations/`location`/tensorboards/`tensorboard`/experiments/` - # experiment`/runs/`run`` + # Generate memories. + # @param [String] parent + # Required. The resource name of the ReasoningEngine to generate memories for. + # Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateMemoriesRequest] google_cloud_aiplatform_v1beta1_generate_memories_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28732,21 +40480,22 @@ def create_project_location_tensorboard_experiment_run(parent, google_cloud_aipl # @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_tensorboard_experiment_run(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) + def generate_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_generate_memories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/memories:generate', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateMemoriesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_generate_memories_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['name'] = name unless name.nil? + 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 - # Gets a TensorboardRun. + # Get a Memory. # @param [String] name - # Required. The name of the TensorboardRun resource. Format: `projects/`project`/ - # locations/`location`/tensorboards/`tensorboard`/experiments/`experiment`/runs/` - # run`` + # Required. The resource name of the Memory. Format: `projects/`project`/ + # locations/`location`/reasoningEngines/`reasoning_engine`/memories/`memory`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28756,44 +40505,42 @@ def delete_project_location_tensorboard_experiment_run(name, fields: nil, quota_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] # # @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_tensorboard_experiment_run(name, fields: nil, quota_user: nil, options: nil, &block) + def get_reasoning_engine_memory(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory 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 TensorboardRuns in a Location. + # List Memories. # @param [String] parent - # Required. The resource name of the TensorboardExperiment to list - # TensorboardRuns. Format: `projects/`project`/locations/`location`/tensorboards/ - # `tensorboard`/experiments/`experiment`` + # Required. The resource name of the ReasoningEngine to list the Memories under. + # Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` # @param [String] filter - # Lists the TensorboardRuns that match the filter expression. + # Optional. The standard list filter. More detail in [AIP-160](https://google. + # aip.dev/160). Supported fields (equality match only): * `scope` (as a JSON + # string) # @param [String] order_by - # Field to use to sort the list. + # Optional. The standard list order by string. If not specified, the default + # order is `create_time desc`. If specified, the default sorting order of + # provided fields is ascending. More detail in [AIP-132](https://google.aip.dev/ + # 132). Supported fields: * `create_time` * `update_time` # @param [Fixnum] page_size - # The maximum number of TensorboardRuns to return. The service may return fewer - # than this value. If unspecified, at most 50 TensorboardRuns are returned. The - # maximum value is 1000; values above 1000 are coerced to 1000. + # Optional. The standard list page size. # @param [String] page_token - # A page token, received from a previous TensorboardService.ListTensorboardRuns - # call. Provide this to retrieve the subsequent page. When paginating, all other - # parameters provided to TensorboardService.ListTensorboardRuns must match the - # call that provided the page token. - # @param [String] read_mask - # Mask specifying which fields to read. + # Optional. The standard list page token. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28803,40 +40550,72 @@ def get_project_location_tensorboard_experiment_run(name, fields: nil, quota_use # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardRunsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardRunsResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse] # # @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_tensorboard_experiment_runs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/runs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardRunsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardRunsResponse + def list_reasoning_engine_memories(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, 'v1beta1/{+parent}/memories', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse 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['readMask'] = read_mask unless read_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 - # Updates a TensorboardRun. + # Update a Memory. # @param [String] name - # Output only. Name of the TensorboardRun. Format: `projects/`project`/locations/ - # `location`/tensorboards/`tensorboard`/experiments/`experiment`/runs/`run`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] google_cloud_aiplatform_v1beta1_tensorboard_run_object + # Identifier. The resource name of the Memory. Format: `projects/`project`/ + # locations/`location`/reasoningEngines/`reasoning_engine`/memories/`memory`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] google_cloud_aiplatform_v1beta1_memory_object # @param [String] update_mask - # Required. Field mask is used to specify the fields to be overwritten in the - # TensorboardRun resource by the update. The fields specified in the update_mask - # are relative to the resource, not the full request. A field is overwritten if - # it's in the mask. If the user does not provide a mask then all fields are - # overwritten if new values are specified. + # Optional. Mask specifying which fields to update. Supported fields: * ` + # display_name` * `description` * `fact` + # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::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 patch_reasoning_engine_memory(name, google_cloud_aiplatform_v1beta1_memory_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory::Representation + command.request_object = google_cloud_aiplatform_v1beta1_memory_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + 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 + + # Retrieve memories. + # @param [String] parent + # Required. The resource name of the ReasoningEngine to retrieve memories from. + # Format: `projects/`project`/locations/`location`/reasoningEngines/` + # reasoning_engine`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest] google_cloud_aiplatform_v1beta1_retrieve_memories_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28846,34 +40625,32 @@ def list_project_location_tensorboard_experiment_runs(parent, filter: nil, order # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse] # # @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_tensorboard_experiment_run(name, google_cloud_aiplatform_v1beta1_tensorboard_run_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun::Representation - command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_run_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardRun - command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? + def retrieve_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_retrieve_memories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/memories:retrieve', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_retrieve_memories_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse + 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 - # Write time series data points into multiple TensorboardTimeSeries under a - # TensorboardRun. If any data fail to be ingested, an error is returned. - # @param [String] tensorboard_run - # Required. The resource name of the TensorboardRun to write data to. Format: ` - # projects/`project`/locations/`location`/tensorboards/`tensorboard`/experiments/ - # `experiment`/runs/`run`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardRunDataRequest] google_cloud_aiplatform_v1beta1_write_tensorboard_run_data_request_object + # Rollback Memory to a specific revision. + # @param [String] name + # Required. The resource name of the Memory to rollback. Format: `projects/` + # project`/locations/`location`/reasoningEngines/`reasoning_engine`/memories/` + # memory`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RollbackMemoryRequest] google_cloud_aiplatform_v1beta1_rollback_memory_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -28883,21 +40660,21 @@ def patch_project_location_tensorboard_experiment_run(name, google_cloud_aiplatf # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardRunDataResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardRunDataResponse] + # @return [Google::Apis::AiplatformV1beta1::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 write_project_location_tensorboard_experiment_run(tensorboard_run, google_cloud_aiplatform_v1beta1_write_tensorboard_run_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+tensorboardRun}:write', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardRunDataRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_write_tensorboard_run_data_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardRunDataResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1WriteTensorboardRunDataResponse - command.params['tensorboardRun'] = tensorboard_run unless tensorboard_run.nil? + def rollback_reasoning_engine_memory(name, google_cloud_aiplatform_v1beta1_rollback_memory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:rollback', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RollbackMemoryRequest::Representation + command.request_object = google_cloud_aiplatform_v1beta1_rollback_memory_request_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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) @@ -28930,7 +40707,7 @@ def write_project_location_tensorboard_experiment_run(tensorboard_run, google_cl # @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_tensorboard_experiment_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -28963,7 +40740,7 @@ def cancel_project_location_tensorboard_experiment_run_operation(name, fields: n # @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_tensorboard_experiment_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -28994,7 +40771,7 @@ def delete_project_location_tensorboard_experiment_run_operation(name, fields: n # @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_tensorboard_experiment_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -29038,7 +40815,7 @@ def get_project_location_tensorboard_experiment_run_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 list_project_location_tensorboard_experiment_run_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_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -29083,7 +40860,7 @@ def list_project_location_tensorboard_experiment_run_operations(name, filter: ni # @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_project_location_tensorboard_experiment_run_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_reasoning_engine_memory_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -29094,118 +40871,11 @@ def wait_project_location_tensorboard_experiment_run_operation(name, timeout: ni execute_or_queue_command(command, &block) end - # Creates a TensorboardTimeSeries. - # @param [String] parent - # Required. The resource name of the TensorboardRun to create the - # TensorboardTimeSeries in. Format: `projects/`project`/locations/`location`/ - # tensorboards/`tensorboard`/experiments/`experiment`/runs/`run`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] google_cloud_aiplatform_v1beta1_tensorboard_time_series_object - # @param [String] tensorboard_time_series_id - # Optional. The user specified unique ID to use for the TensorboardTimeSeries, - # which becomes the final component of the TensorboardTimeSeries's resource name. - # This value should match "a-z0-9`0, 127`" - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] - # - # @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_tensorboard_experiment_run_time_series(parent, google_cloud_aiplatform_v1beta1_tensorboard_time_series_object = nil, tensorboard_time_series_id: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/timeSeries', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries::Representation - command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_time_series_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries - command.params['parent'] = parent unless parent.nil? - command.query['tensorboardTimeSeriesId'] = tensorboard_time_series_id unless tensorboard_time_series_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 - - # Deletes a TensorboardTimeSeries. - # @param [String] name - # Required. The name of the TensorboardTimeSeries to be deleted. Format: ` - # projects/`project`/locations/`location`/tensorboards/`tensorboard`/experiments/ - # `experiment`/runs/`run`/timeSeries/`time_series`` - # @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::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::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_tensorboard_experiment_run_time_series(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::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 - - # Exports a TensorboardTimeSeries' data. Data is returned in paginated responses. - # @param [String] tensorboard_time_series - # Required. The resource name of the TensorboardTimeSeries to export data from. - # Format: `projects/`project`/locations/`location`/tensorboards/`tensorboard`/ - # experiments/`experiment`/runs/`run`/timeSeries/`time_series`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportTensorboardTimeSeriesDataRequest] google_cloud_aiplatform_v1beta1_export_tensorboard_time_series_data_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportTensorboardTimeSeriesDataResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportTensorboardTimeSeriesDataResponse] - # - # @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 export_project_location_tensorboard_experiment_run_time_series_tensorboard_time_series(tensorboard_time_series, google_cloud_aiplatform_v1beta1_export_tensorboard_time_series_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+tensorboardTimeSeries}:exportTensorboardTimeSeries', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportTensorboardTimeSeriesDataRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_export_tensorboard_time_series_data_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportTensorboardTimeSeriesDataResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExportTensorboardTimeSeriesDataResponse - command.params['tensorboardTimeSeries'] = tensorboard_time_series unless tensorboard_time_series.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 TensorboardTimeSeries. + # Get a Memory Revision. # @param [String] name - # Required. The name of the TensorboardTimeSeries resource. Format: `projects/` - # project`/locations/`location`/tensorboards/`tensorboard`/experiments/` - # experiment`/runs/`run`/timeSeries/`time_series`` + # Required. The resource name of the Memory Revision to retrieve. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # memories/`memory`/revisions/`revision`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -29215,44 +40885,36 @@ def export_project_location_tensorboard_experiment_run_time_series_tensorboard_t # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision] # # @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_tensorboard_experiment_run_time_series(name, fields: nil, quota_user: nil, options: nil, &block) + def get_reasoning_engine_memory_revision(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision 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 TensorboardTimeSeries in a Location. + # List Memory Revisions for a Memory. # @param [String] parent - # Required. The resource name of the TensorboardRun to list - # TensorboardTimeSeries. Format: `projects/`project`/locations/`location`/ - # tensorboards/`tensorboard`/experiments/`experiment`/runs/`run`` + # Required. The resource name of the Memory to list revisions for. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # memories/`memory`` # @param [String] filter - # Lists the TensorboardTimeSeries that match the filter expression. - # @param [String] order_by - # Field to use to sort the list. + # Optional. The standard list filter. More detail in [AIP-160](https://google. + # aip.dev/160). Supported fields (equality match only): * `labels` # @param [Fixnum] page_size - # The maximum number of TensorboardTimeSeries to return. The service may return - # fewer than this value. If unspecified, at most 50 TensorboardTimeSeries are - # returned. The maximum value is 1000; values above 1000 are coerced to 1000. + # Optional. The standard list page size. # @param [String] page_token - # A page token, received from a previous TensorboardService. - # ListTensorboardTimeSeries call. Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to TensorboardService. - # ListTensorboardTimeSeries must match the call that provided the page token. - # @param [String] read_mask - # Mask specifying which fields to read. + # Optional. The standard list page token. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -29262,143 +40924,22 @@ def get_project_location_tensorboard_experiment_run_time_series(name, fields: ni # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardTimeSeriesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardTimeSeriesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse] # # @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_tensorboard_experiment_run_time_series(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/timeSeries', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardTimeSeriesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTensorboardTimeSeriesResponse + def list_reasoning_engine_memory_revisions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/revisions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse 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['readMask'] = read_mask unless read_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 - - # Updates a TensorboardTimeSeries. - # @param [String] name - # Output only. Name of the TensorboardTimeSeries. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] google_cloud_aiplatform_v1beta1_tensorboard_time_series_object - # @param [String] update_mask - # Required. Field mask is used to specify the fields to be overwritten in the - # TensorboardTimeSeries resource by the update. The fields specified in the - # update_mask are relative to the resource, not the full request. A field is - # overwritten if it's in the mask. If the user does not provide a mask then all - # fields are overwritten if new values are specified. - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries] - # - # @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_tensorboard_experiment_run_time_series(name, google_cloud_aiplatform_v1beta1_tensorboard_time_series_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries::Representation - command.request_object = google_cloud_aiplatform_v1beta1_tensorboard_time_series_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TensorboardTimeSeries - 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 - - # Reads a TensorboardTimeSeries' data. By default, if the number of data points - # stored is less than 1000, all data is returned. Otherwise, 1000 data points is - # randomly selected from this time series and returned. This value can be - # changed by changing max_data_points, which can't be greater than 10k. - # @param [String] tensorboard_time_series - # Required. The resource name of the TensorboardTimeSeries to read data from. - # Format: `projects/`project`/locations/`location`/tensorboards/`tensorboard`/ - # experiments/`experiment`/runs/`run`/timeSeries/`time_series`` - # @param [String] filter - # Reads the TensorboardTimeSeries' data that match the filter expression. - # @param [Fixnum] max_data_points - # The maximum number of TensorboardTimeSeries' data to return. This value should - # be a positive integer. This value can be set to -1 to return all data. - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardTimeSeriesDataResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardTimeSeriesDataResponse] - # - # @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 read_project_location_tensorboard_experiment_run_time_series(tensorboard_time_series, filter: nil, max_data_points: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+tensorboardTimeSeries}:read', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardTimeSeriesDataResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardTimeSeriesDataResponse - command.params['tensorboardTimeSeries'] = tensorboard_time_series unless tensorboard_time_series.nil? - command.query['filter'] = filter unless filter.nil? - command.query['maxDataPoints'] = max_data_points unless max_data_points.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 bytes of TensorboardBlobs. This is to allow reading blob data stored in - # consumer project's Cloud Storage bucket without users having to obtain Cloud - # Storage access permission. - # @param [String] time_series - # Required. The resource name of the TensorboardTimeSeries to list Blobs. Format: - # `projects/`project`/locations/`location`/tensorboards/`tensorboard`/ - # experiments/`experiment`/runs/`run`/timeSeries/`time_series`` - # @param [Array, String] blob_ids - # IDs of the blobs to read. - # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardBlobDataResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardBlobDataResponse] - # - # @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 read_project_location_tensorboard_experiment_run_time_series_blob_data(time_series, blob_ids: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+timeSeries}:readBlobData', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardBlobDataResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReadTensorboardBlobDataResponse - command.params['timeSeries'] = time_series unless time_series.nil? - command.query['blobIds'] = blob_ids unless blob_ids.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -29431,7 +40972,7 @@ def read_project_location_tensorboard_experiment_run_time_series_blob_data(time_ # @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_tensorboard_experiment_run_time_series_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, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -29464,7 +41005,7 @@ def cancel_project_location_tensorboard_experiment_run_time_series_operation(nam # @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_tensorboard_experiment_run_time_series_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, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -29495,7 +41036,7 @@ def delete_project_location_tensorboard_experiment_run_time_series_operation(nam # @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_tensorboard_experiment_run_time_series_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, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -29539,7 +41080,7 @@ def get_project_location_tensorboard_experiment_run_time_series_operation(name, # @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_tensorboard_experiment_run_time_series_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -29584,7 +41125,7 @@ def list_project_location_tensorboard_experiment_run_time_series_operations(name # @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_project_location_tensorboard_experiment_run_time_series_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, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -29622,7 +41163,7 @@ def wait_project_location_tensorboard_experiment_run_time_series_operation(name, # @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_tensorboard_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, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -29655,7 +41196,7 @@ def cancel_project_location_tensorboard_operation(name, fields: nil, quota_user: # @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_tensorboard_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, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -29686,7 +41227,7 @@ def delete_project_location_tensorboard_operation(name, fields: nil, quota_user: # @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_tensorboard_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, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -29730,7 +41271,7 @@ def get_project_location_tensorboard_operation(name, fields: nil, quota_user: ni # @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_tensorboard_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_sandbox_environment_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -29775,7 +41316,7 @@ def list_project_location_tensorboard_operations(name, filter: nil, page_size: n # @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_project_location_tensorboard_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, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -29786,18 +41327,12 @@ def wait_project_location_tensorboard_operation(name, timeout: nil, fields: nil, execute_or_queue_command(command, &block) end - # Cancels a TrainingPipeline. Starts asynchronous cancellation on the - # TrainingPipeline. The server makes a best effort to cancel the pipeline, but - # success is not guaranteed. Clients can use PipelineService.GetTrainingPipeline - # or other methods to check whether the cancellation succeeded or whether the - # pipeline completed despite cancellation. On successful cancellation, the - # TrainingPipeline is not deleted; instead it becomes a pipeline with a - # TrainingPipeline.error value with a google.rpc.Status.code of 1, corresponding - # to `Code.CANCELLED`, and TrainingPipeline.state is set to `CANCELLED`. + # Appends an event to a given session. # @param [String] name - # Required. The name of the TrainingPipeline to cancel. Format: `projects/` - # project`/locations/`location`/trainingPipelines/`training_pipeline`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelTrainingPipelineRequest] google_cloud_aiplatform_v1beta1_cancel_training_pipeline_request_object + # Required. The resource name of the session to append event to. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # sessions/`session`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SessionEvent] google_cloud_aiplatform_v1beta1_session_event_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -29807,32 +41342,31 @@ def wait_project_location_tensorboard_operation(name, timeout: nil, fields: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse] # # @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_training_pipeline(name, google_cloud_aiplatform_v1beta1_cancel_training_pipeline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelTrainingPipelineRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_cancel_training_pipeline_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty + def append_reasoning_engine_session_event(name, google_cloud_aiplatform_v1beta1_session_event_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:appendEvent', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SessionEvent::Representation + command.request_object = google_cloud_aiplatform_v1beta1_session_event_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse 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 TrainingPipeline. A created TrainingPipeline right away will be - # attempted to be run. + # Creates a new Session. # @param [String] parent - # Required. The resource name of the Location to create the TrainingPipeline in. - # Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline] google_cloud_aiplatform_v1beta1_training_pipeline_object + # Required. The resource name of the location to create the session in. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`` + # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_session_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -29842,30 +41376,30 @@ def cancel_project_location_training_pipeline(name, google_cloud_aiplatform_v1be # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline] + # @return [Google::Apis::AiplatformV1beta1::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_training_pipeline(parent, google_cloud_aiplatform_v1beta1_training_pipeline_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/trainingPipelines', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline::Representation - command.request_object = google_cloud_aiplatform_v1beta1_training_pipeline_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline + def create_reasoning_engine_session(parent, google_cloud_aiplatform_v1beta1_session_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/sessions', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation + command.request_object = google_cloud_aiplatform_v1beta1_session_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a TrainingPipeline. + # Deletes details of the specific Session. # @param [String] name - # Required. The name of the TrainingPipeline resource to be deleted. Format: ` - # projects/`project`/locations/`location`/trainingPipelines/`training_pipeline`` + # 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 @@ -29883,7 +41417,7 @@ def create_project_location_training_pipeline(parent, google_cloud_aiplatform_v1 # @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_training_pipeline(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -29893,10 +41427,10 @@ def delete_project_location_training_pipeline(name, fields: nil, quota_user: nil execute_or_queue_command(command, &block) end - # Gets a TrainingPipeline. + # Gets details of the specific Session. # @param [String] name - # Required. The name of the TrainingPipeline resource. Format: `projects/` - # project`/locations/`location`/trainingPipelines/`training_pipeline`` + # 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 @@ -29906,48 +41440,126 @@ def delete_project_location_training_pipeline(name, fields: nil, quota_user: nil # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] # # @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_training_pipeline(name, fields: nil, quota_user: nil, options: nil, &block) + def get_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TrainingPipeline + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session + 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` Example: `display_name="abc"`, `user_id="123"`. + # @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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse] + # + # @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_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, 'v1beta1/{+parent}/sessions', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse + 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] + # + # @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_reasoning_engine_session(name, google_cloud_aiplatform_v1beta1_session_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation + command.request_object = google_cloud_aiplatform_v1beta1_session_object + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session 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 TrainingPipelines in a Location. + # Lists Events in a given session. # @param [String] parent - # Required. The resource name of the Location to list the TrainingPipelines from. - # Format: `projects/`project`/locations/`location`` + # Required. The resource name of the session to list events from. Format: ` + # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ + # sessions/`session`` # @param [String] filter - # The standard list filter. Supported fields: * `display_name` supports `=`, `!=` - # comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * ` - # training_task_definition` `=`, `!=` comparisons, and `:` wildcard. * ` - # create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time` - # must be in RFC 3339 format. * `labels` supports general map functions that is: - # `labels.key=value` - key:value equality `labels.key:* - key existence Some - # examples of using the filter are: * `state="PIPELINE_STATE_SUCCEEDED" AND - # display_name:"my_pipeline_*"` * `state!="PIPELINE_STATE_FAILED" OR - # display_name="my_pipeline"` * `NOT display_name="my_pipeline"` * `create_time>" - # 2021-05-18T00:00:00Z"` * `training_task_definition:"* - # automl_text_classification*"` + # 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 [Fixnum] page_size - # The standard list 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 - # The standard list page token. Typically obtained via - # ListTrainingPipelinesResponse.next_page_token of the previous PipelineService. - # ListTrainingPipelines call. - # @param [String] read_mask - # Mask specifying which fields to read. + # 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 @@ -29957,23 +41569,22 @@ def get_project_location_training_pipeline(name, fields: nil, quota_user: nil, o # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrainingPipelinesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrainingPipelinesResponse] + # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse] # # @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_training_pipelines(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/trainingPipelines', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrainingPipelinesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTrainingPipelinesResponse + def list_reasoning_engine_session_events(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/events', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse 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['readMask'] = read_mask unless read_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -30006,7 +41617,7 @@ def list_project_location_training_pipelines(parent, filter: nil, page_size: 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 cancel_project_location_training_pipeline_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def cancel_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -30039,7 +41650,7 @@ def cancel_project_location_training_pipeline_operation(name, fields: nil, quota # @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_training_pipeline_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -30070,7 +41681,7 @@ def delete_project_location_training_pipeline_operation(name, fields: nil, quota # @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_training_pipeline_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def get_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -30114,7 +41725,7 @@ def get_project_location_training_pipeline_operation(name, fields: nil, quota_us # @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_training_pipeline_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_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, 'v1beta1/{+name}/operations', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse @@ -30159,7 +41770,7 @@ def list_project_location_training_pipeline_operations(name, filter: nil, page_s # @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_project_location_training_pipeline_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + def wait_reasoning_engine_session_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation @@ -30170,18 +41781,16 @@ def wait_project_location_training_pipeline_operation(name, timeout: nil, fields execute_or_queue_command(command, &block) end - # Cancels a TuningJob. Starts asynchronous cancellation on the TuningJob. The - # server makes a best effort to cancel the job, but success is not guaranteed. - # Clients can use GenAiTuningService.GetTuningJob or other methods to check - # whether the cancellation succeeded or whether the job completed despite - # cancellation. On successful cancellation, the TuningJob is not deleted; - # instead it becomes a job with a TuningJob.error value with a google.rpc.Status. - # code of 1, corresponding to `Code.CANCELLED`, and TuningJob.state is set to ` - # CANCELLED`. + # 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 - # Required. The name of the TuningJob to cancel. Format: `projects/`project`/ - # locations/`location`/tuningJobs/`tuning_job`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelTuningJobRequest] google_cloud_aiplatform_v1beta1_cancel_tuning_job_request_object + # 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 @@ -30199,10 +41808,8 @@ def wait_project_location_training_pipeline_operation(name, timeout: nil, fields # @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_tuning_job(name, google_cloud_aiplatform_v1beta1_cancel_tuning_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def cancel_schedule_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelTuningJobRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_cancel_tuning_job_request_object command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? @@ -30211,12 +41818,12 @@ def cancel_project_location_tuning_job(name, google_cloud_aiplatform_v1beta1_can execute_or_queue_command(command, &block) end - # Creates a TuningJob. A created TuningJob right away will be attempted to be - # run. - # @param [String] parent - # Required. The resource name of the Location to create the TuningJob in. Format: - # `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob] google_cloud_aiplatform_v1beta1_tuning_job_object + # 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 @@ -30226,30 +41833,28 @@ def cancel_project_location_tuning_job(name, google_cloud_aiplatform_v1beta1_can # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob] + # @return [Google::Apis::AiplatformV1beta1::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 create_project_location_tuning_job(parent, google_cloud_aiplatform_v1beta1_tuning_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/tuningJobs', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob::Representation - command.request_object = google_cloud_aiplatform_v1beta1_tuning_job_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob - command.params['parent'] = parent unless parent.nil? + def delete_schedule_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 a TuningJob. + # 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 - # Required. The name of the TuningJob resource. Format: `projects/`project`/ - # locations/`location`/tuningJobs/`tuning_job`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -30259,36 +41864,41 @@ def create_project_location_tuning_job(parent, google_cloud_aiplatform_v1beta1_t # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob] + # @return [Google::Apis::AiplatformV1beta1::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_tuning_job(name, fields: nil, quota_user: nil, options: nil, &block) + def get_schedule_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TuningJob + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 TuningJobs in a Location. - # @param [String] parent - # Required. The resource name of the Location to list the TuningJobs from. - # Format: `projects/`project`/locations/`location`` + # 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 - # Optional. The standard list filter. + # The standard list filter. # @param [Fixnum] page_size - # Optional. The standard list page size. + # The standard list page size. # @param [String] page_token - # Optional. The standard list page token. Typically obtained via - # ListTuningJobsResponse.next_page_token of the previous GenAiTuningService. - # ListTuningJob][] call. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -30298,66 +41908,42 @@ def get_project_location_tuning_job(name, fields: nil, quota_user: nil, options: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTuningJobsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTuningJobsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_tuning_jobs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/tuningJobs', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTuningJobsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListTuningJobsResponse - command.params['parent'] = parent unless parent.nil? + def list_schedule_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Optimizes a prompt. - # @param [String] parent - # Required. The resource name of the Location to optimize the prompt in. Format: - # `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptRequest] google_cloud_aiplatform_v1beta1_optimize_prompt_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse] - # - # @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 optimize_project_location_tuning_job_prompt(parent, google_cloud_aiplatform_v1beta1_optimize_prompt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/tuningJobs:optimizePrompt', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_optimize_prompt_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse - 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 - - # Rebase a TunedModel. - # @param [String] parent - # Required. The resource name of the Location into which to rebase the Model. - # Format: `projects/`project`/locations/`location`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RebaseTunedModelRequest] google_cloud_aiplatform_v1beta1_rebase_tuned_model_request_object + # 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 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 @@ -30375,13 +41961,12 @@ def optimize_project_location_tuning_job_prompt(parent, google_cloud_aiplatform_ # @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 rebase_project_location_tuning_job_tuned_model(parent, google_cloud_aiplatform_v1beta1_rebase_tuned_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/tuningJobs:rebaseTunedModel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RebaseTunedModelRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_rebase_tuned_model_request_object + def wait_schedule_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + 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) @@ -30410,7 +41995,7 @@ def rebase_project_location_tuning_job_tuned_model(parent, google_cloud_aiplatfo # @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_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_solver_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty @@ -30420,45 +42005,10 @@ def delete_project_location_tuning_job_operation(name, fields: nil, quota_user: execute_or_queue_command(command, &block) end - # Accepts the EULA acceptance status of a publisher model. - # @param [String] parent - # Required. The project requesting access for named model. The format is ` - # projects/`project``. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AcceptPublisherModelEulaRequest] google_cloud_aiplatform_v1beta1_accept_publisher_model_eula_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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance] - # - # @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 accept_project_model_garden_eula(parent, google_cloud_aiplatform_v1beta1_accept_publisher_model_eula_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/modelGardenEula:accept', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AcceptPublisherModelEulaRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_accept_publisher_model_eula_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance - 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 - - # Checks the EULA acceptance status of a publisher model. - # @param [String] parent - # Required. The project requesting access for named model. The format is ` - # projects/`project``. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CheckPublisherModelEulaAcceptanceRequest] google_cloud_aiplatform_v1beta1_check_publisher_model_eula_acceptance_request_object + # 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 @@ -30468,35 +42018,41 @@ def accept_project_model_garden_eula(parent, google_cloud_aiplatform_v1beta1_acc # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance] + # @return [Google::Apis::AiplatformV1beta1::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 check_project_model_garden_eula(parent, google_cloud_aiplatform_v1beta1_check_publisher_model_eula_acceptance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/modelGardenEula:check', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CheckPublisherModelEulaAcceptanceRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_check_publisher_model_eula_acceptance_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModelEulaAcceptance - command.params['parent'] = parent unless parent.nil? + def get_solver_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Enables model for the project if prerequisites are met (e.g. completed - # questionnaire and consents, or an active Private Offer). - # @param [String] parent - # Required. The project requesting access for named model. Format: `projects/` - # project`` + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Required. The name of the PublisherModel resource. Format: `publishers/` - # publisher`/models/`publisher_model`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnableModelRequest] google_cloud_aiplatform_v1beta1_enable_model_request_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -30506,32 +42062,38 @@ def check_project_model_garden_eula(parent, google_cloud_aiplatform_v1beta1_chec # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnableModelResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnableModelResponse] + # @return [Google::Apis::AiplatformV1beta1::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 enable_project_publisher_model_model(parent, name, google_cloud_aiplatform_v1beta1_enable_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/{+name}:enableModel', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnableModelRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_enable_model_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnableModelResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnableModelResponse - command.params['parent'] = parent unless parent.nil? + def list_solver_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Return a list of tokens based on the input text. - # @param [String] endpoint - # Required. The name of the Endpoint requested to get lists of tokens and token - # ids. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest] google_cloud_aiplatform_v1beta1_compute_tokens_request_object + # 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 @@ -30541,31 +42103,30 @@ def enable_project_publisher_model_model(parent, name, google_cloud_aiplatform_v # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse] + # @return [Google::Apis::AiplatformV1beta1::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 compute_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1beta1_compute_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:computeTokens', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_compute_tokens_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ComputeTokensResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + def cancel_specialist_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Perform a token counting. - # @param [String] endpoint - # Required. The name of the Endpoint requested to perform token counting. Format: - # `projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest] google_cloud_aiplatform_v1beta1_count_tokens_request_object + # 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 @@ -30575,32 +42136,28 @@ def compute_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1beta1_com # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse] + # @return [Google::Apis::AiplatformV1beta1::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 count_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1beta1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:countTokens', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_count_tokens_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CountTokensResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + def delete_specialist_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Fetch an asynchronous online prediction operation. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` - # project`/locations/`location`/publishers/`publisher`/models/`model`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest] google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object + # 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 @@ -30618,25 +42175,33 @@ def count_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1beta1_count # @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 fetch_publisher_model_predict_operation(endpoint, google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:fetchPredictOperation', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FetchPredictOperationRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_fetch_predict_operation_request_object + def get_specialist_pool_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['endpoint'] = endpoint unless endpoint.nil? + 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 - # Generate content with multimodal inputs. - # @param [String] model - # Required. The fully qualified name of the publisher model or tuned model - # endpoint to use. Publisher model format: `projects/`project`/locations/` - # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` - # project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -30646,43 +42211,42 @@ def fetch_publisher_model_predict_operation(endpoint, google_cloud_aiplatform_v1 # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] + # @return [Google::Apis::AiplatformV1beta1::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 generate_publisher_model_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+model}:generateContent', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse - command.params['model'] = model unless model.nil? + def list_specialist_pool_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Gets a Model Garden publisher model. + # 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 PublisherModel resource. Format: `publishers/` - # publisher`/models/`publisher_model`` - # @param [String] hugging_face_token - # Optional. Token used to access Hugging Face gated models. - # @param [Boolean] include_equivalent_model_garden_model_deployment_configs - # Optional. Whether to cnclude the deployment configs from the equivalent Model - # Garden model if the requested model is a Hugging Face model. - # @param [Boolean] is_hugging_face_model - # Optional. Boolean indicates whether the requested model is a Hugging Face - # model. - # @param [String] language_code - # Optional. The IETF BCP-47 language code representing the language in which the - # publisher model's text information should be written in. - # @param [String] view - # Optional. PublisherModel view specifying which fields to read. + # 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 @@ -30692,52 +42256,35 @@ def generate_publisher_model_content(model, google_cloud_aiplatform_v1beta1_gene # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModel] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModel] + # @return [Google::Apis::AiplatformV1beta1::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_publisher_model(name, hugging_face_token: nil, include_equivalent_model_garden_model_deployment_configs: nil, is_hugging_face_model: nil, language_code: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModel::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModel + def wait_specialist_pool_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? - command.query['huggingFaceToken'] = hugging_face_token unless hugging_face_token.nil? - command.query['includeEquivalentModelGardenModelDeploymentConfigs'] = include_equivalent_model_garden_model_deployment_configs unless include_equivalent_model_garden_model_deployment_configs.nil? - command.query['isHuggingFaceModel'] = is_hugging_face_model unless is_hugging_face_model.nil? - command.query['languageCode'] = language_code unless language_code.nil? - command.query['view'] = view unless view.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 - # Lists publisher models in Model Garden. - # @param [String] parent - # Required. The name of the Publisher from which to list the PublisherModels. - # Format: `publishers/`publisher`` - # @param [String] filter - # Optional. The standard list filter. - # @param [String] language_code - # Optional. The IETF BCP-47 language code representing the language in which the - # publisher models' text information should be written in. If not set, by - # default English (en). - # @param [Boolean] list_all_versions - # Optional. List all publisher model versions if the flag is set to true. - # @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. - # @param [Fixnum] page_size - # Optional. The standard list page size. - # @param [String] page_token - # Optional. The standard list page token. Typically obtained via - # ListPublisherModelsResponse.next_page_token of the previous ModelGardenService. - # ListPublisherModels call. - # @param [String] view - # Optional. PublisherModel view specifying which fields to read. + # 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 @@ -30747,36 +42294,30 @@ def get_publisher_model(name, hugging_face_token: nil, include_equivalent_model_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPublisherModelsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPublisherModelsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 list_publisher_models(parent, filter: nil, language_code: nil, list_all_versions: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/models', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPublisherModelsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListPublisherModelsResponse - command.params['parent'] = parent unless parent.nil? - command.query['filter'] = filter unless filter.nil? - command.query['languageCode'] = language_code unless language_code.nil? - command.query['listAllVersions'] = list_all_versions unless list_all_versions.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['view'] = view unless view.nil? + def cancel_study_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Perform an online prediction. - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest] google_cloud_aiplatform_v1beta1_predict_request_object + # 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 @@ -30786,32 +42327,28 @@ def list_publisher_models(parent, filter: nil, language_code: nil, list_all_vers # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse] + # @return [Google::Apis::AiplatformV1beta1::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 predict_publisher_model(endpoint, google_cloud_aiplatform_v1beta1_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:predict', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_predict_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictResponse - command.params['endpoint'] = endpoint unless endpoint.nil? + def delete_study_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # - # @param [String] endpoint - # Required. The name of the Endpoint requested to serve the prediction. Format: ` - # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/` - # project`/locations/`location`/publishers/`publisher`/models/`model`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest] google_cloud_aiplatform_v1beta1_predict_long_running_request_object + # 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 @@ -30829,25 +42366,33 @@ def predict_publisher_model(endpoint, google_cloud_aiplatform_v1beta1_predict_re # @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 predict_publisher_model_long_running(endpoint, google_cloud_aiplatform_v1beta1_predict_long_running_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+endpoint}:predictLongRunning', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictLongRunningRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_predict_long_running_request_object + def get_study_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['endpoint'] = endpoint unless endpoint.nil? + 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 - # Generate content with multimodal inputs with streaming support. - # @param [String] model - # Required. The fully qualified name of the publisher model or tuned model - # endpoint to use. Publisher model format: `projects/`project`/locations/` - # location`/publishers/*/models/*` Tuned model endpoint format: `projects/` - # project`/locations/`location`/endpoints/`endpoint`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest] google_cloud_aiplatform_v1beta1_generate_content_request_object + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -30857,31 +42402,42 @@ def predict_publisher_model_long_running(endpoint, google_cloud_aiplatform_v1bet # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse] + # @return [Google::Apis::AiplatformV1beta1::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 stream_publisher_model_generate_content(model, google_cloud_aiplatform_v1beta1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+model}:streamGenerateContent', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_content_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponse - command.params['model'] = model unless model.nil? + def list_study_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Creates a reasoning engine. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] google_cloud_aiplatform_v1beta1_reasoning_engine_object - # @param [String] parent - # Required. The resource name of the Location to create the ReasoningEngine in. - # Format: `projects/`project`/locations/`location`` + # 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 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 @@ -30899,26 +42455,27 @@ def stream_publisher_model_generate_content(model, google_cloud_aiplatform_v1bet # @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(google_cloud_aiplatform_v1beta1_reasoning_engine_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/reasoningEngines', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine::Representation - command.request_object = google_cloud_aiplatform_v1beta1_reasoning_engine_object + def wait_study_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.query['parent'] = parent unless parent.nil? + 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 - # Deletes a reasoning engine. + # 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 - # Required. The name of the ReasoningEngine resource to be deleted. Format: ` - # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`` - # @param [Boolean] force - # Optional. If set to true, child resources of this reasoning engine will also - # be deleted. Otherwise, the request will fail with FAILED_PRECONDITION error - # when the reasoning engine has undeleted child resources. + # 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 @@ -30928,29 +42485,30 @@ def create_reasoning_engine(google_cloud_aiplatform_v1beta1_reasoning_engine_obj # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def cancel_study_trial_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? - command.query['force'] = force unless force.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. + # 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 - # Required. The name of the ReasoningEngine resource. Format: `projects/`project` - # /locations/`location`/reasoningEngines/`reasoning_engine`` + # 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 @@ -30960,35 +42518,28 @@ def delete_reasoning_engine(name, force: nil, fields: nil, quota_user: nil, opti # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] + # @return [Google::Apis::AiplatformV1beta1::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 get_reasoning_engine(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine + def delete_study_trial_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Lists reasoning engines in a location. - # @param [String] filter - # Optional. The standard list filter. More detail in [AIP-160](https://google. - # aip.dev/160). - # @param [Fixnum] page_size - # Optional. The standard list page size. - # @param [String] page_token - # Optional. The standard list page token. - # @param [String] parent - # Required. The resource name of the Location to list the ReasoningEngines from. - # Format: `projects/`project`/locations/`location`` + # 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 @@ -30998,34 +42549,41 @@ def get_reasoning_engine(name, fields: nil, quota_user: nil, options: nil, &bloc # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse] + # @return [Google::Apis::AiplatformV1beta1::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_reasoning_engines(filter: nil, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/reasoningEngines', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse - 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['parent'] = parent unless parent.nil? + def get_study_trial_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Updates a reasoning engine. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Identifier. The resource name of the ReasoningEngine. Format: `projects/` - # project`/locations/`location`/reasoningEngines/`reasoning_engine`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] google_cloud_aiplatform_v1beta1_reasoning_engine_object - # @param [String] update_mask - # Optional. Mask specifying which fields to update. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -31035,32 +42593,42 @@ def list_reasoning_engines(filter: nil, page_size: nil, page_token: nil, parent: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 patch_reasoning_engine(name, google_cloud_aiplatform_v1beta1_reasoning_engine_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine::Representation - command.request_object = google_cloud_aiplatform_v1beta1_reasoning_engine_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def list_study_trial_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.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 - # 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest] google_cloud_aiplatform_v1beta1_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 @@ -31070,31 +42638,35 @@ def patch_reasoning_engine(name, google_cloud_aiplatform_v1beta1_reasoning_engin # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse] + # @return [Google::Apis::AiplatformV1beta1::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 query_reasoning_engine(name, google_cloud_aiplatform_v1beta1_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:query', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_query_reasoning_engine_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse + def wait_study_trial_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Streams queries using a reasoning engine. + # 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 - # Required. The name of the ReasoningEngine resource to use. Format: `projects/` - # project`/locations/`location`/reasoningEngines/`reasoning_engine`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest] google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object + # 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 @@ -31104,37 +42676,30 @@ def query_reasoning_engine(name, google_cloud_aiplatform_v1beta1_query_reasoning # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] + # @return [Google::Apis::AiplatformV1beta1::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 stream_reasoning_engine_query(name, google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:streamQuery', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_stream_query_reasoning_engine_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + def cancel_tensorboard_experiment_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Get request for reasoning engine instance via the A2A get protocol apis. + # 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 - # Required. The full resource path of the reasoning engine, captured from the - # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` - # @param [String] a2a_endpoint - # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` - # @param [String] history_length - # Optional. The optional query parameter for the getTask endpoint. Mapped from "? - # history_length=". This indicates how many turns of history to return. If not - # set, the default value is 0, which means all the history will be returned. + # 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 @@ -31144,30 +42709,28 @@ def stream_reasoning_engine_query(name, google_cloud_aiplatform_v1beta1_stream_q # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [void] + # @return [Google::Apis::AiplatformV1beta1::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 card_reasoning_engine_a2a_v1(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) + def delete_tensorboard_experiment_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? - command.query['historyLength'] = history_length unless history_length.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Send post request for reasoning engine instance via the A2A post protocol apis. + # 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 - # Required. The full resource path of the reasoning engine, captured from the - # URL. - # @param [String] a2a_endpoint - # Required. The a2a endpoint path, captured from the URL. e.g., v1/message:send + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -31177,31 +42740,41 @@ def card_reasoning_engine_a2a_v1(name, a2a_endpoint, history_length: nil, fields # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [void] + # @return [Google::Apis::AiplatformV1beta1::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 send_reasoning_engine_a2a_v1_message(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:send', options) + def get_tensorboard_experiment_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.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 instance via the A2A streaming - # protocol apis. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name - # Required. The full resource path of the reasoning engine, captured from the - # URL. - # @param [String] a2a_endpoint - # Required. The http endpoint extracted from the URL path. e.g., v1/message: - # stream. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -31211,36 +42784,42 @@ def send_reasoning_engine_a2a_v1_message(name, a2a_endpoint, fields: nil, quota_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] + # @return [Google::Apis::AiplatformV1beta1::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 stream_reasoning_engine_a2a_v1_message(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:stream', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + def list_tensorboard_experiment_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.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 - # Get request for reasoning engine instance via the A2A get protocol apis. + # 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 full resource path of the reasoning engine, captured from the - # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` - # @param [String] a2a_endpoint - # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` - # @param [String] history_length - # Optional. The optional query parameter for the getTask endpoint. Mapped from "? - # history_length=". This indicates how many turns of history to return. If not - # set, the default value is 0, which means all the history will be returned. + # 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 @@ -31250,30 +42829,35 @@ def stream_reasoning_engine_a2a_v1_message(name, a2a_endpoint, fields: nil, quot # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [void] + # @return [Google::Apis::AiplatformV1beta1::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 a2a_reasoning_engine_a2a_v1_task_get_reasoning_engine(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) + def wait_tensorboard_experiment_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? - command.query['historyLength'] = history_length unless history_length.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 - # Send post request for reasoning engine instance via the A2A post protocol apis. + # 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 - # Required. The full resource path of the reasoning engine, captured from the - # URL. - # @param [String] a2a_endpoint - # Required. The a2a endpoint path, captured from the URL. e.g., v1/message:send + # 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 @@ -31283,34 +42867,30 @@ def a2a_reasoning_engine_a2a_v1_task_get_reasoning_engine(name, a2a_endpoint, hi # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [void] + # @return [Google::Apis::AiplatformV1beta1::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_a2a_v1_task(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:cancel', options) + def cancel_tensorboard_experiment_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Get request for reasoning engine instance via the A2A get protocol apis. + # 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 - # Required. The full resource path of the reasoning engine, captured from the - # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` - # @param [String] a2a_endpoint - # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` - # @param [String] history_length - # Optional. The optional query parameter for the getTask endpoint. Mapped from "? - # history_length=". This indicates how many turns of history to return. If not - # set, the default value is 0, which means all the history will be returned. + # 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 @@ -31320,32 +42900,28 @@ def cancel_reasoning_engine_a2a_v1_task(name, a2a_endpoint, fields: nil, quota_u # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [void] + # @return [Google::Apis::AiplatformV1beta1::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 push_reasoning_engine_a2a_v1_task_notification_configs(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) + def delete_tensorboard_experiment_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? - command.query['historyLength'] = history_length unless history_length.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Stream get request for reasoning engine instance via the A2A stream get - # protocol apis. + # 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 - # Required. The full resource path of the reasoning engine, captured from the - # URL. - # @param [String] a2a_endpoint - # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123: - # subscribe`. + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -31355,36 +42931,41 @@ def push_reasoning_engine_a2a_v1_task_notification_configs(name, a2a_endpoint, h # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] + # @return [Google::Apis::AiplatformV1beta1::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 subscribe_reasoning_engine_a2a_v1_task(name, a2a_endpoint, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}:subscribe', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody + def get_tensorboard_experiment_run_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - # Get request for reasoning engine instance via the A2A get protocol apis. - # @param [String] name - # Required. The full resource path of the reasoning engine, captured from the - # URL. Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` - # @param [String] a2a_endpoint - # Required. The http endpoint extracted from the URL path. i.e. `v1/tasks/123` - # @param [String] history_length - # Optional. The optional query parameter for the getTask endpoint. Mapped from "? - # history_length=". This indicates how many turns of history to return. If not - # set, the default value is 0, which means all the history will be returned. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -31394,30 +42975,42 @@ def subscribe_reasoning_engine_a2a_v1_task(name, a2a_endpoint, fields: nil, quot # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [void] + # @return [Google::Apis::AiplatformV1beta1::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 a2a_reasoning_engine_a2a_v1_task_push_notification_config_get_reasoning_engine(name, a2a_endpoint, history_length: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}/a2a/{+a2aEndpoint}', options) + def list_tensorboard_experiment_run_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? - command.params['a2aEndpoint'] = a2a_endpoint unless a2a_endpoint.nil? - command.query['historyLength'] = history_length unless history_length.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 - # Create a Memory. - # @param [String] parent - # Required. The resource name of the ReasoningEngine to create the Memory under. - # Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] google_cloud_aiplatform_v1beta1_memory_object + # 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 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 @@ -31435,23 +43028,27 @@ def a2a_reasoning_engine_a2a_v1_task_push_notification_config_get_reasoning_engi # @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_memory(parent, google_cloud_aiplatform_v1beta1_memory_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/memories', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory::Representation - command.request_object = google_cloud_aiplatform_v1beta1_memory_object + def wait_tensorboard_experiment_run_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + 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 - # Delete a Memory. + # 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 - # Required. The resource name of the Memory to delete. Format: `projects/` - # project`/locations/`location`/reasoningEngines/`reasoning_engine`/memories/` - # memory`` + # 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 @@ -31461,30 +43058,30 @@ def create_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_memor # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def cancel_tensorboard_experiment_run_time_series_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Generate memories. - # @param [String] parent - # Required. The resource name of the ReasoningEngine to generate memories for. - # Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateMemoriesRequest] google_cloud_aiplatform_v1beta1_generate_memories_request_object + # 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 @@ -31494,30 +43091,28 @@ def delete_reasoning_engine_memory(name, fields: nil, quota_user: nil, options: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 generate_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_generate_memories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/memories:generate', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateMemoriesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_generate_memories_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def delete_tensorboard_experiment_run_time_series_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Get a Memory. + # 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 - # Required. The resource name of the Memory. Format: `projects/`project`/ - # locations/`location`/reasoningEngines/`reasoning_engine`/memories/`memory`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -31527,42 +43122,41 @@ def generate_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_gen # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] + # @return [Google::Apis::AiplatformV1beta1::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(name, fields: nil, quota_user: nil, options: nil, &block) + def get_tensorboard_experiment_run_time_series_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # List Memories. - # @param [String] parent - # Required. The resource name of the ReasoningEngine to list the Memories under. - # Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` + # 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 - # Optional. The standard list filter. More detail in [AIP-160](https://google. - # aip.dev/160). Supported fields (equality match only): * `scope` (as a JSON - # string) - # @param [String] order_by - # Optional. The standard list order by string. If not specified, the default - # order is `create_time desc`. If specified, the default sorting order of - # provided fields is ascending. More detail in [AIP-132](https://google.aip.dev/ - # 132). Supported fields: * `create_time` * `update_time` + # The standard list filter. # @param [Fixnum] page_size - # Optional. The standard list page size. + # The standard list page size. # @param [String] page_token - # Optional. The standard list 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -31572,36 +43166,42 @@ def get_reasoning_engine_memory(name, fields: nil, quota_user: nil, options: nil # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse] + # @return [Google::Apis::AiplatformV1beta1::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_memories(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, 'v1beta1/{+parent}/memories', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoriesResponse - command.params['parent'] = parent unless parent.nil? + def list_tensorboard_experiment_run_time_series_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse + command.params['name'] = name unless name.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['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 - # Update a Memory. + # 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 - # Identifier. The resource name of the Memory. Format: `projects/`project`/ - # locations/`location`/reasoningEngines/`reasoning_engine`/memories/`memory`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory] google_cloud_aiplatform_v1beta1_memory_object - # @param [String] update_mask - # Optional. Mask specifying which fields to update. Supported fields: * ` - # display_name` * `description` * `fact` + # 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 @@ -31619,25 +43219,27 @@ def list_reasoning_engine_memories(parent, filter: nil, order_by: nil, page_size # @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_reasoning_engine_memory(name, google_cloud_aiplatform_v1beta1_memory_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Memory::Representation - command.request_object = google_cloud_aiplatform_v1beta1_memory_object + def wait_tensorboard_experiment_run_time_series_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.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 - # Retrieve memories. - # @param [String] parent - # Required. The resource name of the ReasoningEngine to retrieve memories from. - # Format: `projects/`project`/locations/`location`/reasoningEngines/` - # reasoning_engine`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest] google_cloud_aiplatform_v1beta1_retrieve_memories_request_object + # 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 @@ -31647,32 +43249,30 @@ def patch_reasoning_engine_memory(name, google_cloud_aiplatform_v1beta1_memory_o # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse] + # @return [Google::Apis::AiplatformV1beta1::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 retrieve_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_retrieve_memories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/memories:retrieve', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_retrieve_memories_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesResponse - command.params['parent'] = parent unless parent.nil? + def cancel_tensorboard_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Rollback Memory to a specific revision. + # 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 - # Required. The resource name of the Memory to rollback. Format: `projects/` - # project`/locations/`location`/reasoningEngines/`reasoning_engine`/memories/` - # memory`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RollbackMemoryRequest] google_cloud_aiplatform_v1beta1_rollback_memory_request_object + # 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 @@ -31682,31 +43282,28 @@ def retrieve_reasoning_engine_memory(parent, google_cloud_aiplatform_v1beta1_ret # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 rollback_reasoning_engine_memory(name, google_cloud_aiplatform_v1beta1_rollback_memory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:rollback', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RollbackMemoryRequest::Representation - command.request_object = google_cloud_aiplatform_v1beta1_rollback_memory_request_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + def delete_tensorboard_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Get a Memory Revision. + # 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 - # Required. The resource name of the Memory Revision to retrieve. Format: ` - # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ - # memories/`memory`/revisions/`revision`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -31716,36 +43313,41 @@ def rollback_reasoning_engine_memory(name, google_cloud_aiplatform_v1beta1_rollb # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision] + # @return [Google::Apis::AiplatformV1beta1::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_revision(name, fields: nil, quota_user: nil, options: nil, &block) + def get_tensorboard_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1MemoryRevision + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # List Memory Revisions for a Memory. - # @param [String] parent - # Required. The resource name of the Memory to list revisions for. Format: ` - # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ - # memories/`memory`` + # 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 - # Optional. The standard list filter. More detail in [AIP-160](https://google. - # aip.dev/160). Supported fields (equality match only): * `labels` + # The standard list filter. # @param [Fixnum] page_size - # Optional. The standard list page size. + # The standard list page size. # @param [String] page_token - # Optional. The standard list 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -31755,33 +43357,42 @@ def get_reasoning_engine_memory_revision(name, fields: nil, quota_user: nil, opt # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_memory_revisions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/revisions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListMemoryRevisionsResponse - command.params['parent'] = parent unless parent.nil? + def list_tensorboard_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # Appends an event to a given session. + # 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 resource name of the session to append event to. Format: ` - # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/ - # sessions/`session`` - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SessionEvent] google_cloud_aiplatform_v1beta1_session_event_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 @@ -31791,31 +43402,35 @@ def list_reasoning_engine_memory_revisions(parent, filter: nil, page_size: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse] + # @return [Google::Apis::AiplatformV1beta1::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 append_reasoning_engine_session_event(name, google_cloud_aiplatform_v1beta1_session_event_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:appendEvent', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SessionEvent::Representation - command.request_object = google_cloud_aiplatform_v1beta1_session_event_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendEventResponse + def wait_tensorboard_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 - # 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_session_object + # 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 @@ -31825,30 +43440,30 @@ def append_reasoning_engine_session_event(name, google_cloud_aiplatform_v1beta1_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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 create_reasoning_engine_session(parent, google_cloud_aiplatform_v1beta1_session_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+parent}/sessions', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation - command.request_object = google_cloud_aiplatform_v1beta1_session_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation - command.params['parent'] = parent unless parent.nil? + def cancel_training_pipeline_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 details of the specific Session. + # 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 - # Required. The resource name of the session. Format: `projects/`project`/ - # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`` + # 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 @@ -31858,28 +43473,28 @@ def create_reasoning_engine_session(parent, google_cloud_aiplatform_v1beta1_sess # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] + # @return [Google::Apis::AiplatformV1beta1::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_session(name, fields: nil, quota_user: nil, options: nil, &block) + def delete_training_pipeline_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 details of the specific Session. + # 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 - # Required. The resource name of the session. Format: `projects/`project`/ - # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`` + # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -31889,41 +43504,41 @@ def delete_reasoning_engine_session(name, fields: nil, quota_user: nil, options: # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] + # @return [Google::Apis::AiplatformV1beta1::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_session(name, fields: nil, quota_user: nil, options: nil, &block) + def get_training_pipeline_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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 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`` + # 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 - # Optional. The standard list filter. Supported fields: * `display_name` Example: - # `display_name=abc`. - # @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`. + # The standard list filter. # @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. + # The standard list page size. # @param [String] page_token - # Optional. The next_page_token value returned from a previous list - # SessionService.ListSessions call. + # 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 e. + # g. when `parent` is set to `"projects/example/locations/-"`. This field is not + # by default supported 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 @@ -31933,36 +43548,42 @@ def get_reasoning_engine_session(name, fields: nil, quota_user: nil, options: ni # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse] + # @return [Google::Apis::AiplatformV1beta1::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_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, 'v1beta1/{+parent}/sessions', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSessionsResponse - command.params['parent'] = parent unless parent.nil? + def list_training_pipeline_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, 'v1beta1/{+name}/operations', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse + command.params['name'] = name unless name.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['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 - # Updates the specific Session. + # 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 - # Identifier. The resource name of the session. Format: 'projects/`project`/ - # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`'. - # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] google_cloud_aiplatform_v1beta1_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. + # 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 @@ -31972,43 +43593,31 @@ def list_reasoning_engine_sessions(parent, filter: nil, order_by: nil, page_size # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session] + # @return [Google::Apis::AiplatformV1beta1::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 patch_reasoning_engine_session(name, google_cloud_aiplatform_v1beta1_session_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation - command.request_object = google_cloud_aiplatform_v1beta1_session_object - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Session + def wait_training_pipeline_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:wait', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.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 - # 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 [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. + # 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 @@ -32018,22 +43627,19 @@ def patch_reasoning_engine_session(name, google_cloud_aiplatform_v1beta1_session # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse] parsed result object + # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse] + # @return [Google::Apis::AiplatformV1beta1::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 list_reasoning_engine_session_events(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/events', options) - command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse::Representation - command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEventsResponse - 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? + def delete_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::AiplatformV1beta1::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)