google-cloud-ai_platform-v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +1364 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +767 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/paths.rb +111 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service.rb +51 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +1076 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +767 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/paths.rb +124 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service.rb +50 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +508 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/paths.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service.rb +49 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +2707 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +767 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/paths.rb +113 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service.rb +50 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +1146 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +767 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/paths.rb +88 -0
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service.rb +50 -0
- data/lib/google/cloud/ai_platform/v1/index_service/client.rb +823 -0
- data/lib/google/cloud/ai_platform/v1/index_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +767 -0
- data/lib/google/cloud/ai_platform/v1/index_service/paths.rb +88 -0
- data/lib/google/cloud/ai_platform/v1/index_service.rb +50 -0
- data/lib/google/cloud/ai_platform/v1/job_service/client.rb +3236 -0
- data/lib/google/cloud/ai_platform/v1/job_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +767 -0
- data/lib/google/cloud/ai_platform/v1/job_service/paths.rb +259 -0
- data/lib/google/cloud/ai_platform/v1/job_service.rb +50 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +3654 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +767 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/paths.rb +153 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service.rb +50 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +538 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +767 -0
- data/lib/google/cloud/ai_platform/v1/migration_service/paths.rb +148 -0
- data/lib/google/cloud/ai_platform/v1/migration_service.rb +51 -0
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +1355 -0
- data/lib/google/cloud/ai_platform/v1/model_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +767 -0
- data/lib/google/cloud/ai_platform/v1/model_service/paths.rb +151 -0
- data/lib/google/cloud/ai_platform/v1/model_service.rb +50 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +1384 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +767 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/paths.rb +225 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service.rb +52 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +650 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service/paths.rb +52 -0
- data/lib/google/cloud/ai_platform/v1/prediction_service.rb +49 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +826 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +767 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/paths.rb +69 -0
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service.rb +55 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +3224 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/credentials.rb +48 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +767 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/paths.rb +138 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service.rb +50 -0
- data/lib/google/cloud/ai_platform/v1/version.rb +28 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +1793 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +767 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service/paths.rb +109 -0
- data/lib/google/cloud/ai_platform/v1/vizier_service.rb +54 -0
- data/lib/google/cloud/ai_platform/v1.rb +52 -0
- data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +29 -0
- data/lib/google/cloud/aiplatform/v1/annotation_pb.rb +35 -0
- data/lib/google/cloud/aiplatform/v1/annotation_spec_pb.rb +30 -0
- data/lib/google/cloud/aiplatform/v1/artifact_pb.rb +45 -0
- data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +83 -0
- data/lib/google/cloud/aiplatform/v1/completion_stats_pb.rb +27 -0
- data/lib/google/cloud/aiplatform/v1/context_pb.rb +38 -0
- data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +84 -0
- data/lib/google/cloud/aiplatform/v1/data_item_pb.rb +32 -0
- data/lib/google/cloud/aiplatform/v1/data_labeling_job_pb.rb +78 -0
- data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +53 -0
- data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +126 -0
- data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +64 -0
- data/lib/google/cloud/aiplatform/v1/deployed_index_ref_pb.rb +26 -0
- data/lib/google/cloud/aiplatform/v1/deployed_model_ref_pb.rb +26 -0
- data/lib/google/cloud/aiplatform/v1/encryption_spec_pb.rb +24 -0
- data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +67 -0
- data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +90 -0
- data/lib/google/cloud/aiplatform/v1/endpoint_service_services_pb.rb +58 -0
- data/lib/google/cloud/aiplatform/v1/entity_type_pb.rb +32 -0
- data/lib/google/cloud/aiplatform/v1/env_var_pb.rb +25 -0
- data/lib/google/cloud/aiplatform/v1/event_pb.rb +36 -0
- data/lib/google/cloud/aiplatform/v1/execution_pb.rb +48 -0
- data/lib/google/cloud/aiplatform/v1/explanation_metadata_pb.rb +107 -0
- data/lib/google/cloud/aiplatform/v1/explanation_pb.rb +106 -0
- data/lib/google/cloud/aiplatform/v1/feature_monitoring_stats_pb.rb +30 -0
- data/lib/google/cloud/aiplatform/v1/feature_pb.rb +46 -0
- data/lib/google/cloud/aiplatform/v1/feature_selector_pb.rb +28 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +86 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_online_service_services_pb.rb +51 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +44 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +280 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_service_services_pb.rb +109 -0
- data/lib/google/cloud/aiplatform/v1/hyperparameter_tuning_job_pb.rb +46 -0
- data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +66 -0
- data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +101 -0
- data/lib/google/cloud/aiplatform/v1/index_endpoint_service_services_pb.rb +62 -0
- data/lib/google/cloud/aiplatform/v1/index_pb.rb +38 -0
- data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +98 -0
- data/lib/google/cloud/aiplatform/v1/index_service_services_pb.rb +55 -0
- data/lib/google/cloud/aiplatform/v1/io_pb.rb +56 -0
- data/lib/google/cloud/aiplatform/v1/job_service_pb.rb +217 -0
- data/lib/google/cloud/aiplatform/v1/job_service_services_pb.rb +134 -0
- data/lib/google/cloud/aiplatform/v1/job_state_pb.rb +32 -0
- data/lib/google/cloud/aiplatform/v1/lineage_subgraph_pb.rb +28 -0
- data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +59 -0
- data/lib/google/cloud/aiplatform/v1/manual_batch_tuning_parameters_pb.rb +24 -0
- data/lib/google/cloud/aiplatform/v1/metadata_schema_pb.rb +38 -0
- data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +272 -0
- data/lib/google/cloud/aiplatform/v1/metadata_service_services_pb.rb +119 -0
- data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +36 -0
- data/lib/google/cloud/aiplatform/v1/migratable_resource_pb.rb +59 -0
- data/lib/google/cloud/aiplatform/v1/migration_service_pb.rb +106 -0
- data/lib/google/cloud/aiplatform/v1/migration_service_services_pb.rb +51 -0
- data/lib/google/cloud/aiplatform/v1/model_deployment_monitoring_job_pb.rb +111 -0
- data/lib/google/cloud/aiplatform/v1/model_evaluation_pb.rb +33 -0
- data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +36 -0
- data/lib/google/cloud/aiplatform/v1/model_monitoring_pb.rb +93 -0
- data/lib/google/cloud/aiplatform/v1/model_pb.rb +88 -0
- data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +129 -0
- data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +69 -0
- data/lib/google/cloud/aiplatform/v1/operation_pb.rb +32 -0
- data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +115 -0
- data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +88 -0
- data/lib/google/cloud/aiplatform/v1/pipeline_service_services_pb.rb +84 -0
- data/lib/google/cloud/aiplatform/v1/pipeline_state_pb.rb +31 -0
- data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +57 -0
- data/lib/google/cloud/aiplatform/v1/prediction_service_services_pb.rb +66 -0
- data/lib/google/cloud/aiplatform/v1/specialist_pool_pb.rb +30 -0
- data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +66 -0
- data/lib/google/cloud/aiplatform/v1/specialist_pool_service_services_pb.rb +58 -0
- data/lib/google/cloud/aiplatform/v1/study_pb.rb +191 -0
- data/lib/google/cloud/aiplatform/v1/tensorboard_data_pb.rb +56 -0
- data/lib/google/cloud/aiplatform/v1/tensorboard_experiment_pb.rb +33 -0
- data/lib/google/cloud/aiplatform/v1/tensorboard_pb.rb +36 -0
- data/lib/google/cloud/aiplatform/v1/tensorboard_run_pb.rb +32 -0
- data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +244 -0
- data/lib/google/cloud/aiplatform/v1/tensorboard_service_services_pb.rb +115 -0
- data/lib/google/cloud/aiplatform/v1/tensorboard_time_series_pb.rb +48 -0
- data/lib/google/cloud/aiplatform/v1/training_pipeline_pb.rb +95 -0
- data/lib/google/cloud/aiplatform/v1/types_pb.rb +35 -0
- data/lib/google/cloud/aiplatform/v1/unmanaged_container_model_pb.rb +27 -0
- data/lib/google/cloud/aiplatform/v1/user_action_reference_pb.rb +27 -0
- data/lib/google/cloud/aiplatform/v1/value_pb.rb +27 -0
- data/lib/google/cloud/aiplatform/v1/vizier_service_pb.rb +136 -0
- data/lib/google/cloud/aiplatform/v1/vizier_service_services_pb.rb +90 -0
- data/lib/google-cloud-ai_platform-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/httpbody.rb +80 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +50 -0
- data/proto_docs/google/cloud/aiplatform/v1/annotation.rb +92 -0
- data/proto_docs/google/cloud/aiplatform/v1/annotation_spec.rb +50 -0
- data/proto_docs/google/cloud/aiplatform/v1/artifact.rb +112 -0
- data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +278 -0
- data/proto_docs/google/cloud/aiplatform/v1/completion_stats.rb +46 -0
- data/proto_docs/google/cloud/aiplatform/v1/context.rb +92 -0
- data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +272 -0
- data/proto_docs/google/cloud/aiplatform/v1/data_item.rb +73 -0
- data/proto_docs/google/cloud/aiplatform/v1/data_labeling_job.rb +207 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +154 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +301 -0
- data/proto_docs/google/cloud/aiplatform/v1/deployed_index_ref.rb +38 -0
- data/proto_docs/google/cloud/aiplatform/v1/deployed_model_ref.rb +38 -0
- data/proto_docs/google/cloud/aiplatform/v1/encryption_spec.rb +40 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +227 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint_service.rb +258 -0
- data/proto_docs/google/cloud/aiplatform/v1/entity_type.rb +79 -0
- data/proto_docs/google/cloud/aiplatform/v1/env_var.rb +44 -0
- data/proto_docs/google/cloud/aiplatform/v1/event.rb +79 -0
- data/proto_docs/google/cloud/aiplatform/v1/execution.rb +118 -0
- data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +445 -0
- data/proto_docs/google/cloud/aiplatform/v1/explanation_metadata.rb +419 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature.rb +115 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_monitoring_stats.rb +88 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_selector.rb +49 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore.rb +115 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +203 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +978 -0
- data/proto_docs/google/cloud/aiplatform/v1/hyperparameter_tuning_job.rb +109 -0
- data/proto_docs/google/cloud/aiplatform/v1/index.rb +98 -0
- data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +252 -0
- data/proto_docs/google/cloud/aiplatform/v1/index_endpoint_service.rb +240 -0
- data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +220 -0
- data/proto_docs/google/cloud/aiplatform/v1/io.rb +134 -0
- data/proto_docs/google/cloud/aiplatform/v1/job_service.rb +660 -0
- data/proto_docs/google/cloud/aiplatform/v1/job_state.rb +60 -0
- data/proto_docs/google/cloud/aiplatform/v1/lineage_subgraph.rb +42 -0
- data/proto_docs/google/cloud/aiplatform/v1/machine_resources.rb +194 -0
- data/proto_docs/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.rb +41 -0
- data/proto_docs/google/cloud/aiplatform/v1/metadata_schema.rb +74 -0
- data/proto_docs/google/cloud/aiplatform/v1/metadata_service.rb +912 -0
- data/proto_docs/google/cloud/aiplatform/v1/metadata_store.rb +62 -0
- data/proto_docs/google/cloud/aiplatform/v1/migratable_resource.rb +133 -0
- data/proto_docs/google/cloud/aiplatform/v1/migration_service.rb +260 -0
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +562 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_deployment_monitoring_job.rb +293 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +60 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_evaluation_slice.rb +68 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +257 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +329 -0
- data/proto_docs/google/cloud/aiplatform/v1/operation.rb +55 -0
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +347 -0
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_service.rb +258 -0
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_state.rb +59 -0
- data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +165 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.rb +52 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.rb +52 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.rb +47 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.rb +46 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.rb +53 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.rb +46 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.rb +59 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.rb +59 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.rb +59 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/params/image_classification.rb +47 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.rb +47 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.rb +44 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.rb +47 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/params/video_classification.rb +72 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.rb +51 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/classification.rb +49 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.rb +58 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.rb +53 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.rb +47 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.rb +47 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.rb +60 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.rb +45 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.rb +60 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.rb +73 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.rb +91 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.rb +142 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.rb +134 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.rb +120 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.rb +315 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.rb +48 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.rb +46 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.rb +55 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.rb +73 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.rb +67 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.rb +78 -0
- data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.rb +51 -0
- data/proto_docs/google/cloud/aiplatform/v1/specialist_pool.rb +58 -0
- data/proto_docs/google/cloud/aiplatform/v1/specialist_pool_service.rb +136 -0
- data/proto_docs/google/cloud/aiplatform/v1/study.rb +543 -0
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard.rb +89 -0
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_data.rb +110 -0
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_experiment.rb +82 -0
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_run.rb +85 -0
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +706 -0
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_time_series.rb +101 -0
- data/proto_docs/google/cloud/aiplatform/v1/training_pipeline.rb +381 -0
- data/proto_docs/google/cloud/aiplatform/v1/types.rb +62 -0
- data/proto_docs/google/cloud/aiplatform/v1/unmanaged_container_model.rb +44 -0
- data/proto_docs/google/cloud/aiplatform/v1/user_action_reference.rb +49 -0
- data/proto_docs/google/cloud/aiplatform/v1/value.rb +41 -0
- data/proto_docs/google/cloud/aiplatform/v1/vizier_service.rb +332 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/money.rb +43 -0
- metadata +479 -0
|
@@ -0,0 +1,1364 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2022 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/errors"
|
|
20
|
+
require "google/cloud/aiplatform/v1/dataset_service_pb"
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module AIPlatform
|
|
25
|
+
module V1
|
|
26
|
+
module DatasetService
|
|
27
|
+
##
|
|
28
|
+
# Client for the DatasetService service.
|
|
29
|
+
#
|
|
30
|
+
# The service that handles the CRUD of Vertex AI Dataset and its child
|
|
31
|
+
# resources.
|
|
32
|
+
#
|
|
33
|
+
class Client
|
|
34
|
+
include Paths
|
|
35
|
+
|
|
36
|
+
# @private
|
|
37
|
+
attr_reader :dataset_service_stub
|
|
38
|
+
|
|
39
|
+
##
|
|
40
|
+
# Configure the DatasetService Client class.
|
|
41
|
+
#
|
|
42
|
+
# See {::Google::Cloud::AIPlatform::V1::DatasetService::Client::Configuration}
|
|
43
|
+
# for a description of the configuration fields.
|
|
44
|
+
#
|
|
45
|
+
# @example
|
|
46
|
+
#
|
|
47
|
+
# # Modify the configuration for all DatasetService clients
|
|
48
|
+
# ::Google::Cloud::AIPlatform::V1::DatasetService::Client.configure do |config|
|
|
49
|
+
# config.timeout = 10.0
|
|
50
|
+
# end
|
|
51
|
+
#
|
|
52
|
+
# @yield [config] Configure the Client client.
|
|
53
|
+
# @yieldparam config [Client::Configuration]
|
|
54
|
+
#
|
|
55
|
+
# @return [Client::Configuration]
|
|
56
|
+
#
|
|
57
|
+
def self.configure
|
|
58
|
+
@configure ||= begin
|
|
59
|
+
namespace = ["Google", "Cloud", "AIPlatform", "V1"]
|
|
60
|
+
parent_config = while namespace.any?
|
|
61
|
+
parent_name = namespace.join "::"
|
|
62
|
+
parent_const = const_get parent_name
|
|
63
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
|
64
|
+
namespace.pop
|
|
65
|
+
end
|
|
66
|
+
default_config = Client::Configuration.new parent_config
|
|
67
|
+
|
|
68
|
+
default_config
|
|
69
|
+
end
|
|
70
|
+
yield @configure if block_given?
|
|
71
|
+
@configure
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
##
|
|
75
|
+
# Configure the DatasetService Client instance.
|
|
76
|
+
#
|
|
77
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
|
78
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
|
79
|
+
# should be made on {Client.configure}.
|
|
80
|
+
#
|
|
81
|
+
# See {::Google::Cloud::AIPlatform::V1::DatasetService::Client::Configuration}
|
|
82
|
+
# for a description of the configuration fields.
|
|
83
|
+
#
|
|
84
|
+
# @yield [config] Configure the Client client.
|
|
85
|
+
# @yieldparam config [Client::Configuration]
|
|
86
|
+
#
|
|
87
|
+
# @return [Client::Configuration]
|
|
88
|
+
#
|
|
89
|
+
def configure
|
|
90
|
+
yield @config if block_given?
|
|
91
|
+
@config
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
##
|
|
95
|
+
# Create a new DatasetService client object.
|
|
96
|
+
#
|
|
97
|
+
# @example
|
|
98
|
+
#
|
|
99
|
+
# # Create a client using the default configuration
|
|
100
|
+
# client = ::Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
|
101
|
+
#
|
|
102
|
+
# # Create a client using a custom configuration
|
|
103
|
+
# client = ::Google::Cloud::AIPlatform::V1::DatasetService::Client.new do |config|
|
|
104
|
+
# config.timeout = 10.0
|
|
105
|
+
# end
|
|
106
|
+
#
|
|
107
|
+
# @yield [config] Configure the DatasetService client.
|
|
108
|
+
# @yieldparam config [Client::Configuration]
|
|
109
|
+
#
|
|
110
|
+
def initialize
|
|
111
|
+
# These require statements are intentionally placed here to initialize
|
|
112
|
+
# the gRPC module only when it's required.
|
|
113
|
+
# See https://github.com/googleapis/toolkit/issues/446
|
|
114
|
+
require "gapic/grpc"
|
|
115
|
+
require "google/cloud/aiplatform/v1/dataset_service_services_pb"
|
|
116
|
+
|
|
117
|
+
# Create the configuration object
|
|
118
|
+
@config = Configuration.new Client.configure
|
|
119
|
+
|
|
120
|
+
# Yield the configuration if needed
|
|
121
|
+
yield @config if block_given?
|
|
122
|
+
|
|
123
|
+
# Create credentials
|
|
124
|
+
credentials = @config.credentials
|
|
125
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
126
|
+
# but only if the default endpoint does not have a region prefix.
|
|
127
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
|
128
|
+
!@config.endpoint.split(".").first.include?("-")
|
|
129
|
+
credentials ||= Credentials.default scope: @config.scope,
|
|
130
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
|
131
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
132
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
|
133
|
+
end
|
|
134
|
+
@quota_project_id = @config.quota_project
|
|
135
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
136
|
+
|
|
137
|
+
@operations_client = Operations.new do |config|
|
|
138
|
+
config.credentials = credentials
|
|
139
|
+
config.quota_project = @quota_project_id
|
|
140
|
+
config.endpoint = @config.endpoint
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
@dataset_service_stub = ::Gapic::ServiceStub.new(
|
|
144
|
+
::Google::Cloud::AIPlatform::V1::DatasetService::Stub,
|
|
145
|
+
credentials: credentials,
|
|
146
|
+
endpoint: @config.endpoint,
|
|
147
|
+
channel_args: @config.channel_args,
|
|
148
|
+
interceptors: @config.interceptors
|
|
149
|
+
)
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
##
|
|
153
|
+
# Get the associated client for long-running operations.
|
|
154
|
+
#
|
|
155
|
+
# @return [::Google::Cloud::AIPlatform::V1::DatasetService::Operations]
|
|
156
|
+
#
|
|
157
|
+
attr_reader :operations_client
|
|
158
|
+
|
|
159
|
+
# Service calls
|
|
160
|
+
|
|
161
|
+
##
|
|
162
|
+
# Creates a Dataset.
|
|
163
|
+
#
|
|
164
|
+
# @overload create_dataset(request, options = nil)
|
|
165
|
+
# Pass arguments to `create_dataset` via a request object, either of type
|
|
166
|
+
# {::Google::Cloud::AIPlatform::V1::CreateDatasetRequest} or an equivalent Hash.
|
|
167
|
+
#
|
|
168
|
+
# @param request [::Google::Cloud::AIPlatform::V1::CreateDatasetRequest, ::Hash]
|
|
169
|
+
# A request object representing the call parameters. Required. To specify no
|
|
170
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
171
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
172
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
173
|
+
#
|
|
174
|
+
# @overload create_dataset(parent: nil, dataset: nil)
|
|
175
|
+
# Pass arguments to `create_dataset` via keyword arguments. Note that at
|
|
176
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
177
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
178
|
+
#
|
|
179
|
+
# @param parent [::String]
|
|
180
|
+
# Required. The resource name of the Location to create the Dataset in.
|
|
181
|
+
# Format: `projects/{project}/locations/{location}`
|
|
182
|
+
# @param dataset [::Google::Cloud::AIPlatform::V1::Dataset, ::Hash]
|
|
183
|
+
# Required. The Dataset to create.
|
|
184
|
+
#
|
|
185
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
186
|
+
# @yieldparam response [::Gapic::Operation]
|
|
187
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
188
|
+
#
|
|
189
|
+
# @return [::Gapic::Operation]
|
|
190
|
+
#
|
|
191
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
192
|
+
#
|
|
193
|
+
# @example Basic example
|
|
194
|
+
# require "google/cloud/ai_platform/v1"
|
|
195
|
+
#
|
|
196
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
197
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
|
198
|
+
#
|
|
199
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
200
|
+
# request = Google::Cloud::AIPlatform::V1::CreateDatasetRequest.new
|
|
201
|
+
#
|
|
202
|
+
# # Call the create_dataset method.
|
|
203
|
+
# result = client.create_dataset request
|
|
204
|
+
#
|
|
205
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
206
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
207
|
+
# # for results. Here is how to block until completion:
|
|
208
|
+
# result.wait_until_done! timeout: 60
|
|
209
|
+
# if result.response?
|
|
210
|
+
# p result.response
|
|
211
|
+
# else
|
|
212
|
+
# puts "Error!"
|
|
213
|
+
# end
|
|
214
|
+
#
|
|
215
|
+
def create_dataset request, options = nil
|
|
216
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
217
|
+
|
|
218
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateDatasetRequest
|
|
219
|
+
|
|
220
|
+
# Converts hash and nil to an options object
|
|
221
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
222
|
+
|
|
223
|
+
# Customize the options with defaults
|
|
224
|
+
metadata = @config.rpcs.create_dataset.metadata.to_h
|
|
225
|
+
|
|
226
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
227
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
228
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
229
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
230
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
231
|
+
|
|
232
|
+
header_params = {}
|
|
233
|
+
if request.parent
|
|
234
|
+
header_params["parent"] = request.parent
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
238
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
239
|
+
|
|
240
|
+
options.apply_defaults timeout: @config.rpcs.create_dataset.timeout,
|
|
241
|
+
metadata: metadata,
|
|
242
|
+
retry_policy: @config.rpcs.create_dataset.retry_policy
|
|
243
|
+
|
|
244
|
+
options.apply_defaults timeout: @config.timeout,
|
|
245
|
+
metadata: @config.metadata,
|
|
246
|
+
retry_policy: @config.retry_policy
|
|
247
|
+
|
|
248
|
+
@dataset_service_stub.call_rpc :create_dataset, request, options: options do |response, operation|
|
|
249
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
250
|
+
yield response, operation if block_given?
|
|
251
|
+
return response
|
|
252
|
+
end
|
|
253
|
+
rescue ::GRPC::BadStatus => e
|
|
254
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
##
|
|
258
|
+
# Gets a Dataset.
|
|
259
|
+
#
|
|
260
|
+
# @overload get_dataset(request, options = nil)
|
|
261
|
+
# Pass arguments to `get_dataset` via a request object, either of type
|
|
262
|
+
# {::Google::Cloud::AIPlatform::V1::GetDatasetRequest} or an equivalent Hash.
|
|
263
|
+
#
|
|
264
|
+
# @param request [::Google::Cloud::AIPlatform::V1::GetDatasetRequest, ::Hash]
|
|
265
|
+
# A request object representing the call parameters. Required. To specify no
|
|
266
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
267
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
268
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
269
|
+
#
|
|
270
|
+
# @overload get_dataset(name: nil, read_mask: nil)
|
|
271
|
+
# Pass arguments to `get_dataset` via keyword arguments. Note that at
|
|
272
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
273
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
274
|
+
#
|
|
275
|
+
# @param name [::String]
|
|
276
|
+
# Required. The name of the Dataset resource.
|
|
277
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
278
|
+
# Mask specifying which fields to read.
|
|
279
|
+
#
|
|
280
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
281
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::Dataset]
|
|
282
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
283
|
+
#
|
|
284
|
+
# @return [::Google::Cloud::AIPlatform::V1::Dataset]
|
|
285
|
+
#
|
|
286
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
287
|
+
#
|
|
288
|
+
# @example Basic example
|
|
289
|
+
# require "google/cloud/ai_platform/v1"
|
|
290
|
+
#
|
|
291
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
292
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
|
293
|
+
#
|
|
294
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
295
|
+
# request = Google::Cloud::AIPlatform::V1::GetDatasetRequest.new
|
|
296
|
+
#
|
|
297
|
+
# # Call the get_dataset method.
|
|
298
|
+
# result = client.get_dataset request
|
|
299
|
+
#
|
|
300
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::Dataset.
|
|
301
|
+
# p result
|
|
302
|
+
#
|
|
303
|
+
def get_dataset request, options = nil
|
|
304
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
305
|
+
|
|
306
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetDatasetRequest
|
|
307
|
+
|
|
308
|
+
# Converts hash and nil to an options object
|
|
309
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
310
|
+
|
|
311
|
+
# Customize the options with defaults
|
|
312
|
+
metadata = @config.rpcs.get_dataset.metadata.to_h
|
|
313
|
+
|
|
314
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
315
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
316
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
317
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
318
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
319
|
+
|
|
320
|
+
header_params = {}
|
|
321
|
+
if request.name
|
|
322
|
+
header_params["name"] = request.name
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
326
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
327
|
+
|
|
328
|
+
options.apply_defaults timeout: @config.rpcs.get_dataset.timeout,
|
|
329
|
+
metadata: metadata,
|
|
330
|
+
retry_policy: @config.rpcs.get_dataset.retry_policy
|
|
331
|
+
|
|
332
|
+
options.apply_defaults timeout: @config.timeout,
|
|
333
|
+
metadata: @config.metadata,
|
|
334
|
+
retry_policy: @config.retry_policy
|
|
335
|
+
|
|
336
|
+
@dataset_service_stub.call_rpc :get_dataset, request, options: options do |response, operation|
|
|
337
|
+
yield response, operation if block_given?
|
|
338
|
+
return response
|
|
339
|
+
end
|
|
340
|
+
rescue ::GRPC::BadStatus => e
|
|
341
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
##
|
|
345
|
+
# Updates a Dataset.
|
|
346
|
+
#
|
|
347
|
+
# @overload update_dataset(request, options = nil)
|
|
348
|
+
# Pass arguments to `update_dataset` via a request object, either of type
|
|
349
|
+
# {::Google::Cloud::AIPlatform::V1::UpdateDatasetRequest} or an equivalent Hash.
|
|
350
|
+
#
|
|
351
|
+
# @param request [::Google::Cloud::AIPlatform::V1::UpdateDatasetRequest, ::Hash]
|
|
352
|
+
# A request object representing the call parameters. Required. To specify no
|
|
353
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
354
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
355
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
356
|
+
#
|
|
357
|
+
# @overload update_dataset(dataset: nil, update_mask: nil)
|
|
358
|
+
# Pass arguments to `update_dataset` via keyword arguments. Note that at
|
|
359
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
360
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
361
|
+
#
|
|
362
|
+
# @param dataset [::Google::Cloud::AIPlatform::V1::Dataset, ::Hash]
|
|
363
|
+
# Required. The Dataset which replaces the resource on the server.
|
|
364
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
365
|
+
# Required. The update mask applies to the resource.
|
|
366
|
+
# For the `FieldMask` definition, see {::Google::Protobuf::FieldMask google.protobuf.FieldMask}.
|
|
367
|
+
# Updatable fields:
|
|
368
|
+
#
|
|
369
|
+
# * `display_name`
|
|
370
|
+
# * `description`
|
|
371
|
+
# * `labels`
|
|
372
|
+
#
|
|
373
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
374
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::Dataset]
|
|
375
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
376
|
+
#
|
|
377
|
+
# @return [::Google::Cloud::AIPlatform::V1::Dataset]
|
|
378
|
+
#
|
|
379
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
380
|
+
#
|
|
381
|
+
# @example Basic example
|
|
382
|
+
# require "google/cloud/ai_platform/v1"
|
|
383
|
+
#
|
|
384
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
385
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
|
386
|
+
#
|
|
387
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
388
|
+
# request = Google::Cloud::AIPlatform::V1::UpdateDatasetRequest.new
|
|
389
|
+
#
|
|
390
|
+
# # Call the update_dataset method.
|
|
391
|
+
# result = client.update_dataset request
|
|
392
|
+
#
|
|
393
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::Dataset.
|
|
394
|
+
# p result
|
|
395
|
+
#
|
|
396
|
+
def update_dataset request, options = nil
|
|
397
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
398
|
+
|
|
399
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateDatasetRequest
|
|
400
|
+
|
|
401
|
+
# Converts hash and nil to an options object
|
|
402
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
403
|
+
|
|
404
|
+
# Customize the options with defaults
|
|
405
|
+
metadata = @config.rpcs.update_dataset.metadata.to_h
|
|
406
|
+
|
|
407
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
408
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
409
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
410
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
411
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
412
|
+
|
|
413
|
+
header_params = {}
|
|
414
|
+
if request.dataset&.name
|
|
415
|
+
header_params["dataset.name"] = request.dataset.name
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
419
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
420
|
+
|
|
421
|
+
options.apply_defaults timeout: @config.rpcs.update_dataset.timeout,
|
|
422
|
+
metadata: metadata,
|
|
423
|
+
retry_policy: @config.rpcs.update_dataset.retry_policy
|
|
424
|
+
|
|
425
|
+
options.apply_defaults timeout: @config.timeout,
|
|
426
|
+
metadata: @config.metadata,
|
|
427
|
+
retry_policy: @config.retry_policy
|
|
428
|
+
|
|
429
|
+
@dataset_service_stub.call_rpc :update_dataset, request, options: options do |response, operation|
|
|
430
|
+
yield response, operation if block_given?
|
|
431
|
+
return response
|
|
432
|
+
end
|
|
433
|
+
rescue ::GRPC::BadStatus => e
|
|
434
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
##
|
|
438
|
+
# Lists Datasets in a Location.
|
|
439
|
+
#
|
|
440
|
+
# @overload list_datasets(request, options = nil)
|
|
441
|
+
# Pass arguments to `list_datasets` via a request object, either of type
|
|
442
|
+
# {::Google::Cloud::AIPlatform::V1::ListDatasetsRequest} or an equivalent Hash.
|
|
443
|
+
#
|
|
444
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ListDatasetsRequest, ::Hash]
|
|
445
|
+
# A request object representing the call parameters. Required. To specify no
|
|
446
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
447
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
448
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
449
|
+
#
|
|
450
|
+
# @overload list_datasets(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil)
|
|
451
|
+
# Pass arguments to `list_datasets` via keyword arguments. Note that at
|
|
452
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
453
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
454
|
+
#
|
|
455
|
+
# @param parent [::String]
|
|
456
|
+
# Required. The name of the Dataset's parent resource.
|
|
457
|
+
# Format: `projects/{project}/locations/{location}`
|
|
458
|
+
# @param filter [::String]
|
|
459
|
+
# An expression for filtering the results of the request. For field names
|
|
460
|
+
# both snake_case and camelCase are supported.
|
|
461
|
+
#
|
|
462
|
+
# * `display_name`: supports = and !=
|
|
463
|
+
# * `metadata_schema_uri`: supports = and !=
|
|
464
|
+
# * `labels` supports general map functions that is:
|
|
465
|
+
# * `labels.key=value` - key:value equality
|
|
466
|
+
# * `labels.key:* or labels:key - key existence
|
|
467
|
+
# * A key including a space must be quoted. `labels."a key"`.
|
|
468
|
+
#
|
|
469
|
+
# Some examples:
|
|
470
|
+
# * `displayName="myDisplayName"`
|
|
471
|
+
# * `labels.myKey="myValue"`
|
|
472
|
+
# @param page_size [::Integer]
|
|
473
|
+
# The standard list page size.
|
|
474
|
+
# @param page_token [::String]
|
|
475
|
+
# The standard list page token.
|
|
476
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
477
|
+
# Mask specifying which fields to read.
|
|
478
|
+
# @param order_by [::String]
|
|
479
|
+
# A comma-separated list of fields to order by, sorted in ascending order.
|
|
480
|
+
# Use "desc" after a field name for descending.
|
|
481
|
+
# Supported fields:
|
|
482
|
+
# * `display_name`
|
|
483
|
+
# * `create_time`
|
|
484
|
+
# * `update_time`
|
|
485
|
+
#
|
|
486
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
487
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::Dataset>]
|
|
488
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
489
|
+
#
|
|
490
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::Dataset>]
|
|
491
|
+
#
|
|
492
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
493
|
+
#
|
|
494
|
+
# @example Basic example
|
|
495
|
+
# require "google/cloud/ai_platform/v1"
|
|
496
|
+
#
|
|
497
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
498
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
|
499
|
+
#
|
|
500
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
501
|
+
# request = Google::Cloud::AIPlatform::V1::ListDatasetsRequest.new
|
|
502
|
+
#
|
|
503
|
+
# # Call the list_datasets method.
|
|
504
|
+
# result = client.list_datasets request
|
|
505
|
+
#
|
|
506
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
507
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
508
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
509
|
+
# # methods are also available for managing paging directly.
|
|
510
|
+
# result.each do |response|
|
|
511
|
+
# # Each element is of type ::Google::Cloud::AIPlatform::V1::Dataset.
|
|
512
|
+
# p response
|
|
513
|
+
# end
|
|
514
|
+
#
|
|
515
|
+
def list_datasets request, options = nil
|
|
516
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
517
|
+
|
|
518
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListDatasetsRequest
|
|
519
|
+
|
|
520
|
+
# Converts hash and nil to an options object
|
|
521
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
522
|
+
|
|
523
|
+
# Customize the options with defaults
|
|
524
|
+
metadata = @config.rpcs.list_datasets.metadata.to_h
|
|
525
|
+
|
|
526
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
527
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
528
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
529
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
530
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
531
|
+
|
|
532
|
+
header_params = {}
|
|
533
|
+
if request.parent
|
|
534
|
+
header_params["parent"] = request.parent
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
538
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
539
|
+
|
|
540
|
+
options.apply_defaults timeout: @config.rpcs.list_datasets.timeout,
|
|
541
|
+
metadata: metadata,
|
|
542
|
+
retry_policy: @config.rpcs.list_datasets.retry_policy
|
|
543
|
+
|
|
544
|
+
options.apply_defaults timeout: @config.timeout,
|
|
545
|
+
metadata: @config.metadata,
|
|
546
|
+
retry_policy: @config.retry_policy
|
|
547
|
+
|
|
548
|
+
@dataset_service_stub.call_rpc :list_datasets, request, options: options do |response, operation|
|
|
549
|
+
response = ::Gapic::PagedEnumerable.new @dataset_service_stub, :list_datasets, request, response, operation, options
|
|
550
|
+
yield response, operation if block_given?
|
|
551
|
+
return response
|
|
552
|
+
end
|
|
553
|
+
rescue ::GRPC::BadStatus => e
|
|
554
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
##
|
|
558
|
+
# Deletes a Dataset.
|
|
559
|
+
#
|
|
560
|
+
# @overload delete_dataset(request, options = nil)
|
|
561
|
+
# Pass arguments to `delete_dataset` via a request object, either of type
|
|
562
|
+
# {::Google::Cloud::AIPlatform::V1::DeleteDatasetRequest} or an equivalent Hash.
|
|
563
|
+
#
|
|
564
|
+
# @param request [::Google::Cloud::AIPlatform::V1::DeleteDatasetRequest, ::Hash]
|
|
565
|
+
# A request object representing the call parameters. Required. To specify no
|
|
566
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
567
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
568
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
569
|
+
#
|
|
570
|
+
# @overload delete_dataset(name: nil)
|
|
571
|
+
# Pass arguments to `delete_dataset` via keyword arguments. Note that at
|
|
572
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
573
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
574
|
+
#
|
|
575
|
+
# @param name [::String]
|
|
576
|
+
# Required. The resource name of the Dataset to delete.
|
|
577
|
+
# Format:
|
|
578
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}`
|
|
579
|
+
#
|
|
580
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
581
|
+
# @yieldparam response [::Gapic::Operation]
|
|
582
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
583
|
+
#
|
|
584
|
+
# @return [::Gapic::Operation]
|
|
585
|
+
#
|
|
586
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
587
|
+
#
|
|
588
|
+
# @example Basic example
|
|
589
|
+
# require "google/cloud/ai_platform/v1"
|
|
590
|
+
#
|
|
591
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
592
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
|
593
|
+
#
|
|
594
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
595
|
+
# request = Google::Cloud::AIPlatform::V1::DeleteDatasetRequest.new
|
|
596
|
+
#
|
|
597
|
+
# # Call the delete_dataset method.
|
|
598
|
+
# result = client.delete_dataset request
|
|
599
|
+
#
|
|
600
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
601
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
602
|
+
# # for results. Here is how to block until completion:
|
|
603
|
+
# result.wait_until_done! timeout: 60
|
|
604
|
+
# if result.response?
|
|
605
|
+
# p result.response
|
|
606
|
+
# else
|
|
607
|
+
# puts "Error!"
|
|
608
|
+
# end
|
|
609
|
+
#
|
|
610
|
+
def delete_dataset request, options = nil
|
|
611
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
612
|
+
|
|
613
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteDatasetRequest
|
|
614
|
+
|
|
615
|
+
# Converts hash and nil to an options object
|
|
616
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
617
|
+
|
|
618
|
+
# Customize the options with defaults
|
|
619
|
+
metadata = @config.rpcs.delete_dataset.metadata.to_h
|
|
620
|
+
|
|
621
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
622
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
623
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
624
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
625
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
626
|
+
|
|
627
|
+
header_params = {}
|
|
628
|
+
if request.name
|
|
629
|
+
header_params["name"] = request.name
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
633
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
634
|
+
|
|
635
|
+
options.apply_defaults timeout: @config.rpcs.delete_dataset.timeout,
|
|
636
|
+
metadata: metadata,
|
|
637
|
+
retry_policy: @config.rpcs.delete_dataset.retry_policy
|
|
638
|
+
|
|
639
|
+
options.apply_defaults timeout: @config.timeout,
|
|
640
|
+
metadata: @config.metadata,
|
|
641
|
+
retry_policy: @config.retry_policy
|
|
642
|
+
|
|
643
|
+
@dataset_service_stub.call_rpc :delete_dataset, request, options: options do |response, operation|
|
|
644
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
645
|
+
yield response, operation if block_given?
|
|
646
|
+
return response
|
|
647
|
+
end
|
|
648
|
+
rescue ::GRPC::BadStatus => e
|
|
649
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
650
|
+
end
|
|
651
|
+
|
|
652
|
+
##
|
|
653
|
+
# Imports data into a Dataset.
|
|
654
|
+
#
|
|
655
|
+
# @overload import_data(request, options = nil)
|
|
656
|
+
# Pass arguments to `import_data` via a request object, either of type
|
|
657
|
+
# {::Google::Cloud::AIPlatform::V1::ImportDataRequest} or an equivalent Hash.
|
|
658
|
+
#
|
|
659
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ImportDataRequest, ::Hash]
|
|
660
|
+
# A request object representing the call parameters. Required. To specify no
|
|
661
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
662
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
663
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
664
|
+
#
|
|
665
|
+
# @overload import_data(name: nil, import_configs: nil)
|
|
666
|
+
# Pass arguments to `import_data` via keyword arguments. Note that at
|
|
667
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
668
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
669
|
+
#
|
|
670
|
+
# @param name [::String]
|
|
671
|
+
# Required. The name of the Dataset resource.
|
|
672
|
+
# Format:
|
|
673
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}`
|
|
674
|
+
# @param import_configs [::Array<::Google::Cloud::AIPlatform::V1::ImportDataConfig, ::Hash>]
|
|
675
|
+
# Required. The desired input locations. The contents of all input locations will be
|
|
676
|
+
# imported in one batch.
|
|
677
|
+
#
|
|
678
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
679
|
+
# @yieldparam response [::Gapic::Operation]
|
|
680
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
681
|
+
#
|
|
682
|
+
# @return [::Gapic::Operation]
|
|
683
|
+
#
|
|
684
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
685
|
+
#
|
|
686
|
+
# @example Basic example
|
|
687
|
+
# require "google/cloud/ai_platform/v1"
|
|
688
|
+
#
|
|
689
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
690
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
|
691
|
+
#
|
|
692
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
693
|
+
# request = Google::Cloud::AIPlatform::V1::ImportDataRequest.new
|
|
694
|
+
#
|
|
695
|
+
# # Call the import_data method.
|
|
696
|
+
# result = client.import_data request
|
|
697
|
+
#
|
|
698
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
699
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
700
|
+
# # for results. Here is how to block until completion:
|
|
701
|
+
# result.wait_until_done! timeout: 60
|
|
702
|
+
# if result.response?
|
|
703
|
+
# p result.response
|
|
704
|
+
# else
|
|
705
|
+
# puts "Error!"
|
|
706
|
+
# end
|
|
707
|
+
#
|
|
708
|
+
def import_data request, options = nil
|
|
709
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
710
|
+
|
|
711
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ImportDataRequest
|
|
712
|
+
|
|
713
|
+
# Converts hash and nil to an options object
|
|
714
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
715
|
+
|
|
716
|
+
# Customize the options with defaults
|
|
717
|
+
metadata = @config.rpcs.import_data.metadata.to_h
|
|
718
|
+
|
|
719
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
720
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
721
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
722
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
723
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
724
|
+
|
|
725
|
+
header_params = {}
|
|
726
|
+
if request.name
|
|
727
|
+
header_params["name"] = request.name
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
731
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
732
|
+
|
|
733
|
+
options.apply_defaults timeout: @config.rpcs.import_data.timeout,
|
|
734
|
+
metadata: metadata,
|
|
735
|
+
retry_policy: @config.rpcs.import_data.retry_policy
|
|
736
|
+
|
|
737
|
+
options.apply_defaults timeout: @config.timeout,
|
|
738
|
+
metadata: @config.metadata,
|
|
739
|
+
retry_policy: @config.retry_policy
|
|
740
|
+
|
|
741
|
+
@dataset_service_stub.call_rpc :import_data, request, options: options do |response, operation|
|
|
742
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
743
|
+
yield response, operation if block_given?
|
|
744
|
+
return response
|
|
745
|
+
end
|
|
746
|
+
rescue ::GRPC::BadStatus => e
|
|
747
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
748
|
+
end
|
|
749
|
+
|
|
750
|
+
##
|
|
751
|
+
# Exports data from a Dataset.
|
|
752
|
+
#
|
|
753
|
+
# @overload export_data(request, options = nil)
|
|
754
|
+
# Pass arguments to `export_data` via a request object, either of type
|
|
755
|
+
# {::Google::Cloud::AIPlatform::V1::ExportDataRequest} or an equivalent Hash.
|
|
756
|
+
#
|
|
757
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ExportDataRequest, ::Hash]
|
|
758
|
+
# A request object representing the call parameters. Required. To specify no
|
|
759
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
760
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
761
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
762
|
+
#
|
|
763
|
+
# @overload export_data(name: nil, export_config: nil)
|
|
764
|
+
# Pass arguments to `export_data` via keyword arguments. Note that at
|
|
765
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
766
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
767
|
+
#
|
|
768
|
+
# @param name [::String]
|
|
769
|
+
# Required. The name of the Dataset resource.
|
|
770
|
+
# Format:
|
|
771
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}`
|
|
772
|
+
# @param export_config [::Google::Cloud::AIPlatform::V1::ExportDataConfig, ::Hash]
|
|
773
|
+
# Required. The desired output location.
|
|
774
|
+
#
|
|
775
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
776
|
+
# @yieldparam response [::Gapic::Operation]
|
|
777
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
778
|
+
#
|
|
779
|
+
# @return [::Gapic::Operation]
|
|
780
|
+
#
|
|
781
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
782
|
+
#
|
|
783
|
+
# @example Basic example
|
|
784
|
+
# require "google/cloud/ai_platform/v1"
|
|
785
|
+
#
|
|
786
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
787
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
|
788
|
+
#
|
|
789
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
790
|
+
# request = Google::Cloud::AIPlatform::V1::ExportDataRequest.new
|
|
791
|
+
#
|
|
792
|
+
# # Call the export_data method.
|
|
793
|
+
# result = client.export_data request
|
|
794
|
+
#
|
|
795
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
796
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
797
|
+
# # for results. Here is how to block until completion:
|
|
798
|
+
# result.wait_until_done! timeout: 60
|
|
799
|
+
# if result.response?
|
|
800
|
+
# p result.response
|
|
801
|
+
# else
|
|
802
|
+
# puts "Error!"
|
|
803
|
+
# end
|
|
804
|
+
#
|
|
805
|
+
def export_data request, options = nil
|
|
806
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
807
|
+
|
|
808
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ExportDataRequest
|
|
809
|
+
|
|
810
|
+
# Converts hash and nil to an options object
|
|
811
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
812
|
+
|
|
813
|
+
# Customize the options with defaults
|
|
814
|
+
metadata = @config.rpcs.export_data.metadata.to_h
|
|
815
|
+
|
|
816
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
817
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
818
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
819
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
820
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
821
|
+
|
|
822
|
+
header_params = {}
|
|
823
|
+
if request.name
|
|
824
|
+
header_params["name"] = request.name
|
|
825
|
+
end
|
|
826
|
+
|
|
827
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
828
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
829
|
+
|
|
830
|
+
options.apply_defaults timeout: @config.rpcs.export_data.timeout,
|
|
831
|
+
metadata: metadata,
|
|
832
|
+
retry_policy: @config.rpcs.export_data.retry_policy
|
|
833
|
+
|
|
834
|
+
options.apply_defaults timeout: @config.timeout,
|
|
835
|
+
metadata: @config.metadata,
|
|
836
|
+
retry_policy: @config.retry_policy
|
|
837
|
+
|
|
838
|
+
@dataset_service_stub.call_rpc :export_data, request, options: options do |response, operation|
|
|
839
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
840
|
+
yield response, operation if block_given?
|
|
841
|
+
return response
|
|
842
|
+
end
|
|
843
|
+
rescue ::GRPC::BadStatus => e
|
|
844
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
845
|
+
end
|
|
846
|
+
|
|
847
|
+
##
|
|
848
|
+
# Lists DataItems in a Dataset.
|
|
849
|
+
#
|
|
850
|
+
# @overload list_data_items(request, options = nil)
|
|
851
|
+
# Pass arguments to `list_data_items` via a request object, either of type
|
|
852
|
+
# {::Google::Cloud::AIPlatform::V1::ListDataItemsRequest} or an equivalent Hash.
|
|
853
|
+
#
|
|
854
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ListDataItemsRequest, ::Hash]
|
|
855
|
+
# A request object representing the call parameters. Required. To specify no
|
|
856
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
857
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
858
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
859
|
+
#
|
|
860
|
+
# @overload list_data_items(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil)
|
|
861
|
+
# Pass arguments to `list_data_items` via keyword arguments. Note that at
|
|
862
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
863
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
864
|
+
#
|
|
865
|
+
# @param parent [::String]
|
|
866
|
+
# Required. The resource name of the Dataset to list DataItems from.
|
|
867
|
+
# Format:
|
|
868
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}`
|
|
869
|
+
# @param filter [::String]
|
|
870
|
+
# The standard list filter.
|
|
871
|
+
# @param page_size [::Integer]
|
|
872
|
+
# The standard list page size.
|
|
873
|
+
# @param page_token [::String]
|
|
874
|
+
# The standard list page token.
|
|
875
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
876
|
+
# Mask specifying which fields to read.
|
|
877
|
+
# @param order_by [::String]
|
|
878
|
+
# A comma-separated list of fields to order by, sorted in ascending order.
|
|
879
|
+
# Use "desc" after a field name for descending.
|
|
880
|
+
#
|
|
881
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
882
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DataItem>]
|
|
883
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
884
|
+
#
|
|
885
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DataItem>]
|
|
886
|
+
#
|
|
887
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
888
|
+
#
|
|
889
|
+
# @example Basic example
|
|
890
|
+
# require "google/cloud/ai_platform/v1"
|
|
891
|
+
#
|
|
892
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
893
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
|
894
|
+
#
|
|
895
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
896
|
+
# request = Google::Cloud::AIPlatform::V1::ListDataItemsRequest.new
|
|
897
|
+
#
|
|
898
|
+
# # Call the list_data_items method.
|
|
899
|
+
# result = client.list_data_items request
|
|
900
|
+
#
|
|
901
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
902
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
903
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
904
|
+
# # methods are also available for managing paging directly.
|
|
905
|
+
# result.each do |response|
|
|
906
|
+
# # Each element is of type ::Google::Cloud::AIPlatform::V1::DataItem.
|
|
907
|
+
# p response
|
|
908
|
+
# end
|
|
909
|
+
#
|
|
910
|
+
def list_data_items request, options = nil
|
|
911
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
912
|
+
|
|
913
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListDataItemsRequest
|
|
914
|
+
|
|
915
|
+
# Converts hash and nil to an options object
|
|
916
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
917
|
+
|
|
918
|
+
# Customize the options with defaults
|
|
919
|
+
metadata = @config.rpcs.list_data_items.metadata.to_h
|
|
920
|
+
|
|
921
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
922
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
923
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
924
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
925
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
926
|
+
|
|
927
|
+
header_params = {}
|
|
928
|
+
if request.parent
|
|
929
|
+
header_params["parent"] = request.parent
|
|
930
|
+
end
|
|
931
|
+
|
|
932
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
933
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
934
|
+
|
|
935
|
+
options.apply_defaults timeout: @config.rpcs.list_data_items.timeout,
|
|
936
|
+
metadata: metadata,
|
|
937
|
+
retry_policy: @config.rpcs.list_data_items.retry_policy
|
|
938
|
+
|
|
939
|
+
options.apply_defaults timeout: @config.timeout,
|
|
940
|
+
metadata: @config.metadata,
|
|
941
|
+
retry_policy: @config.retry_policy
|
|
942
|
+
|
|
943
|
+
@dataset_service_stub.call_rpc :list_data_items, request, options: options do |response, operation|
|
|
944
|
+
response = ::Gapic::PagedEnumerable.new @dataset_service_stub, :list_data_items, request, response, operation, options
|
|
945
|
+
yield response, operation if block_given?
|
|
946
|
+
return response
|
|
947
|
+
end
|
|
948
|
+
rescue ::GRPC::BadStatus => e
|
|
949
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
950
|
+
end
|
|
951
|
+
|
|
952
|
+
##
|
|
953
|
+
# Gets an AnnotationSpec.
|
|
954
|
+
#
|
|
955
|
+
# @overload get_annotation_spec(request, options = nil)
|
|
956
|
+
# Pass arguments to `get_annotation_spec` via a request object, either of type
|
|
957
|
+
# {::Google::Cloud::AIPlatform::V1::GetAnnotationSpecRequest} or an equivalent Hash.
|
|
958
|
+
#
|
|
959
|
+
# @param request [::Google::Cloud::AIPlatform::V1::GetAnnotationSpecRequest, ::Hash]
|
|
960
|
+
# A request object representing the call parameters. Required. To specify no
|
|
961
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
962
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
963
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
964
|
+
#
|
|
965
|
+
# @overload get_annotation_spec(name: nil, read_mask: nil)
|
|
966
|
+
# Pass arguments to `get_annotation_spec` via keyword arguments. Note that at
|
|
967
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
968
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
969
|
+
#
|
|
970
|
+
# @param name [::String]
|
|
971
|
+
# Required. The name of the AnnotationSpec resource.
|
|
972
|
+
# Format:
|
|
973
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`
|
|
974
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
975
|
+
# Mask specifying which fields to read.
|
|
976
|
+
#
|
|
977
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
978
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::AnnotationSpec]
|
|
979
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
980
|
+
#
|
|
981
|
+
# @return [::Google::Cloud::AIPlatform::V1::AnnotationSpec]
|
|
982
|
+
#
|
|
983
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
984
|
+
#
|
|
985
|
+
# @example Basic example
|
|
986
|
+
# require "google/cloud/ai_platform/v1"
|
|
987
|
+
#
|
|
988
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
989
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
|
990
|
+
#
|
|
991
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
992
|
+
# request = Google::Cloud::AIPlatform::V1::GetAnnotationSpecRequest.new
|
|
993
|
+
#
|
|
994
|
+
# # Call the get_annotation_spec method.
|
|
995
|
+
# result = client.get_annotation_spec request
|
|
996
|
+
#
|
|
997
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::AnnotationSpec.
|
|
998
|
+
# p result
|
|
999
|
+
#
|
|
1000
|
+
def get_annotation_spec request, options = nil
|
|
1001
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1002
|
+
|
|
1003
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetAnnotationSpecRequest
|
|
1004
|
+
|
|
1005
|
+
# Converts hash and nil to an options object
|
|
1006
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1007
|
+
|
|
1008
|
+
# Customize the options with defaults
|
|
1009
|
+
metadata = @config.rpcs.get_annotation_spec.metadata.to_h
|
|
1010
|
+
|
|
1011
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
1012
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1013
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1014
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
1015
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1016
|
+
|
|
1017
|
+
header_params = {}
|
|
1018
|
+
if request.name
|
|
1019
|
+
header_params["name"] = request.name
|
|
1020
|
+
end
|
|
1021
|
+
|
|
1022
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1023
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1024
|
+
|
|
1025
|
+
options.apply_defaults timeout: @config.rpcs.get_annotation_spec.timeout,
|
|
1026
|
+
metadata: metadata,
|
|
1027
|
+
retry_policy: @config.rpcs.get_annotation_spec.retry_policy
|
|
1028
|
+
|
|
1029
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1030
|
+
metadata: @config.metadata,
|
|
1031
|
+
retry_policy: @config.retry_policy
|
|
1032
|
+
|
|
1033
|
+
@dataset_service_stub.call_rpc :get_annotation_spec, request, options: options do |response, operation|
|
|
1034
|
+
yield response, operation if block_given?
|
|
1035
|
+
return response
|
|
1036
|
+
end
|
|
1037
|
+
rescue ::GRPC::BadStatus => e
|
|
1038
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1039
|
+
end
|
|
1040
|
+
|
|
1041
|
+
##
|
|
1042
|
+
# Lists Annotations belongs to a dataitem
|
|
1043
|
+
#
|
|
1044
|
+
# @overload list_annotations(request, options = nil)
|
|
1045
|
+
# Pass arguments to `list_annotations` via a request object, either of type
|
|
1046
|
+
# {::Google::Cloud::AIPlatform::V1::ListAnnotationsRequest} or an equivalent Hash.
|
|
1047
|
+
#
|
|
1048
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ListAnnotationsRequest, ::Hash]
|
|
1049
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1050
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1051
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1052
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1053
|
+
#
|
|
1054
|
+
# @overload list_annotations(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil)
|
|
1055
|
+
# Pass arguments to `list_annotations` via keyword arguments. Note that at
|
|
1056
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1057
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1058
|
+
#
|
|
1059
|
+
# @param parent [::String]
|
|
1060
|
+
# Required. The resource name of the DataItem to list Annotations from.
|
|
1061
|
+
# Format:
|
|
1062
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`
|
|
1063
|
+
# @param filter [::String]
|
|
1064
|
+
# The standard list filter.
|
|
1065
|
+
# @param page_size [::Integer]
|
|
1066
|
+
# The standard list page size.
|
|
1067
|
+
# @param page_token [::String]
|
|
1068
|
+
# The standard list page token.
|
|
1069
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
1070
|
+
# Mask specifying which fields to read.
|
|
1071
|
+
# @param order_by [::String]
|
|
1072
|
+
# A comma-separated list of fields to order by, sorted in ascending order.
|
|
1073
|
+
# Use "desc" after a field name for descending.
|
|
1074
|
+
#
|
|
1075
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1076
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::Annotation>]
|
|
1077
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1078
|
+
#
|
|
1079
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::Annotation>]
|
|
1080
|
+
#
|
|
1081
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1082
|
+
#
|
|
1083
|
+
# @example Basic example
|
|
1084
|
+
# require "google/cloud/ai_platform/v1"
|
|
1085
|
+
#
|
|
1086
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1087
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
|
1088
|
+
#
|
|
1089
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1090
|
+
# request = Google::Cloud::AIPlatform::V1::ListAnnotationsRequest.new
|
|
1091
|
+
#
|
|
1092
|
+
# # Call the list_annotations method.
|
|
1093
|
+
# result = client.list_annotations request
|
|
1094
|
+
#
|
|
1095
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
1096
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
1097
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
1098
|
+
# # methods are also available for managing paging directly.
|
|
1099
|
+
# result.each do |response|
|
|
1100
|
+
# # Each element is of type ::Google::Cloud::AIPlatform::V1::Annotation.
|
|
1101
|
+
# p response
|
|
1102
|
+
# end
|
|
1103
|
+
#
|
|
1104
|
+
def list_annotations request, options = nil
|
|
1105
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1106
|
+
|
|
1107
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListAnnotationsRequest
|
|
1108
|
+
|
|
1109
|
+
# Converts hash and nil to an options object
|
|
1110
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1111
|
+
|
|
1112
|
+
# Customize the options with defaults
|
|
1113
|
+
metadata = @config.rpcs.list_annotations.metadata.to_h
|
|
1114
|
+
|
|
1115
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
1116
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1117
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1118
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
1119
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1120
|
+
|
|
1121
|
+
header_params = {}
|
|
1122
|
+
if request.parent
|
|
1123
|
+
header_params["parent"] = request.parent
|
|
1124
|
+
end
|
|
1125
|
+
|
|
1126
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1127
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1128
|
+
|
|
1129
|
+
options.apply_defaults timeout: @config.rpcs.list_annotations.timeout,
|
|
1130
|
+
metadata: metadata,
|
|
1131
|
+
retry_policy: @config.rpcs.list_annotations.retry_policy
|
|
1132
|
+
|
|
1133
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1134
|
+
metadata: @config.metadata,
|
|
1135
|
+
retry_policy: @config.retry_policy
|
|
1136
|
+
|
|
1137
|
+
@dataset_service_stub.call_rpc :list_annotations, request, options: options do |response, operation|
|
|
1138
|
+
response = ::Gapic::PagedEnumerable.new @dataset_service_stub, :list_annotations, request, response, operation, options
|
|
1139
|
+
yield response, operation if block_given?
|
|
1140
|
+
return response
|
|
1141
|
+
end
|
|
1142
|
+
rescue ::GRPC::BadStatus => e
|
|
1143
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1144
|
+
end
|
|
1145
|
+
|
|
1146
|
+
##
|
|
1147
|
+
# Configuration class for the DatasetService API.
|
|
1148
|
+
#
|
|
1149
|
+
# This class represents the configuration for DatasetService,
|
|
1150
|
+
# providing control over timeouts, retry behavior, logging, transport
|
|
1151
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
|
1152
|
+
# applied individually to specific RPCs. See
|
|
1153
|
+
# {::Google::Cloud::AIPlatform::V1::DatasetService::Client::Configuration::Rpcs}
|
|
1154
|
+
# for a list of RPCs that can be configured independently.
|
|
1155
|
+
#
|
|
1156
|
+
# Configuration can be applied globally to all clients, or to a single client
|
|
1157
|
+
# on construction.
|
|
1158
|
+
#
|
|
1159
|
+
# @example
|
|
1160
|
+
#
|
|
1161
|
+
# # Modify the global config, setting the timeout for
|
|
1162
|
+
# # create_dataset to 20 seconds,
|
|
1163
|
+
# # and all remaining timeouts to 10 seconds.
|
|
1164
|
+
# ::Google::Cloud::AIPlatform::V1::DatasetService::Client.configure do |config|
|
|
1165
|
+
# config.timeout = 10.0
|
|
1166
|
+
# config.rpcs.create_dataset.timeout = 20.0
|
|
1167
|
+
# end
|
|
1168
|
+
#
|
|
1169
|
+
# # Apply the above configuration only to a new client.
|
|
1170
|
+
# client = ::Google::Cloud::AIPlatform::V1::DatasetService::Client.new do |config|
|
|
1171
|
+
# config.timeout = 10.0
|
|
1172
|
+
# config.rpcs.create_dataset.timeout = 20.0
|
|
1173
|
+
# end
|
|
1174
|
+
#
|
|
1175
|
+
# @!attribute [rw] endpoint
|
|
1176
|
+
# The hostname or hostname:port of the service endpoint.
|
|
1177
|
+
# Defaults to `"aiplatform.googleapis.com"`.
|
|
1178
|
+
# @return [::String]
|
|
1179
|
+
# @!attribute [rw] credentials
|
|
1180
|
+
# Credentials to send with calls. You may provide any of the following types:
|
|
1181
|
+
# * (`String`) The path to a service account key file in JSON format
|
|
1182
|
+
# * (`Hash`) A service account key as a Hash
|
|
1183
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1184
|
+
# (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
|
|
1185
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
1186
|
+
# (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
|
|
1187
|
+
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
1188
|
+
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
1189
|
+
# * (`nil`) indicating no credentials
|
|
1190
|
+
# @return [::Object]
|
|
1191
|
+
# @!attribute [rw] scope
|
|
1192
|
+
# The OAuth scopes
|
|
1193
|
+
# @return [::Array<::String>]
|
|
1194
|
+
# @!attribute [rw] lib_name
|
|
1195
|
+
# The library name as recorded in instrumentation and logging
|
|
1196
|
+
# @return [::String]
|
|
1197
|
+
# @!attribute [rw] lib_version
|
|
1198
|
+
# The library version as recorded in instrumentation and logging
|
|
1199
|
+
# @return [::String]
|
|
1200
|
+
# @!attribute [rw] channel_args
|
|
1201
|
+
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
|
1202
|
+
# `GRPC::Core::Channel` object is provided as the credential.
|
|
1203
|
+
# @return [::Hash]
|
|
1204
|
+
# @!attribute [rw] interceptors
|
|
1205
|
+
# An array of interceptors that are run before calls are executed.
|
|
1206
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
|
1207
|
+
# @!attribute [rw] timeout
|
|
1208
|
+
# The call timeout in seconds.
|
|
1209
|
+
# @return [::Numeric]
|
|
1210
|
+
# @!attribute [rw] metadata
|
|
1211
|
+
# Additional gRPC headers to be sent with the call.
|
|
1212
|
+
# @return [::Hash{::Symbol=>::String}]
|
|
1213
|
+
# @!attribute [rw] retry_policy
|
|
1214
|
+
# The retry policy. The value is a hash with the following keys:
|
|
1215
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1216
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1217
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1218
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1219
|
+
# trigger a retry.
|
|
1220
|
+
# @return [::Hash]
|
|
1221
|
+
# @!attribute [rw] quota_project
|
|
1222
|
+
# A separate project against which to charge quota.
|
|
1223
|
+
# @return [::String]
|
|
1224
|
+
#
|
|
1225
|
+
class Configuration
|
|
1226
|
+
extend ::Gapic::Config
|
|
1227
|
+
|
|
1228
|
+
config_attr :endpoint, "aiplatform.googleapis.com", ::String
|
|
1229
|
+
config_attr :credentials, nil do |value|
|
|
1230
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1231
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
1232
|
+
allowed.any? { |klass| klass === value }
|
|
1233
|
+
end
|
|
1234
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
1235
|
+
config_attr :lib_name, nil, ::String, nil
|
|
1236
|
+
config_attr :lib_version, nil, ::String, nil
|
|
1237
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
|
1238
|
+
config_attr :interceptors, nil, ::Array, nil
|
|
1239
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
1240
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
1241
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
1242
|
+
config_attr :quota_project, nil, ::String, nil
|
|
1243
|
+
|
|
1244
|
+
# @private
|
|
1245
|
+
def initialize parent_config = nil
|
|
1246
|
+
@parent_config = parent_config unless parent_config.nil?
|
|
1247
|
+
|
|
1248
|
+
yield self if block_given?
|
|
1249
|
+
end
|
|
1250
|
+
|
|
1251
|
+
##
|
|
1252
|
+
# Configurations for individual RPCs
|
|
1253
|
+
# @return [Rpcs]
|
|
1254
|
+
#
|
|
1255
|
+
def rpcs
|
|
1256
|
+
@rpcs ||= begin
|
|
1257
|
+
parent_rpcs = nil
|
|
1258
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
|
1259
|
+
Rpcs.new parent_rpcs
|
|
1260
|
+
end
|
|
1261
|
+
end
|
|
1262
|
+
|
|
1263
|
+
##
|
|
1264
|
+
# Configuration RPC class for the DatasetService API.
|
|
1265
|
+
#
|
|
1266
|
+
# Includes fields providing the configuration for each RPC in this service.
|
|
1267
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
|
1268
|
+
# the following configuration fields:
|
|
1269
|
+
#
|
|
1270
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
|
1271
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
|
1272
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
|
1273
|
+
# include the following keys:
|
|
1274
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1275
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1276
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1277
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1278
|
+
# trigger a retry.
|
|
1279
|
+
#
|
|
1280
|
+
class Rpcs
|
|
1281
|
+
##
|
|
1282
|
+
# RPC-specific configuration for `create_dataset`
|
|
1283
|
+
# @return [::Gapic::Config::Method]
|
|
1284
|
+
#
|
|
1285
|
+
attr_reader :create_dataset
|
|
1286
|
+
##
|
|
1287
|
+
# RPC-specific configuration for `get_dataset`
|
|
1288
|
+
# @return [::Gapic::Config::Method]
|
|
1289
|
+
#
|
|
1290
|
+
attr_reader :get_dataset
|
|
1291
|
+
##
|
|
1292
|
+
# RPC-specific configuration for `update_dataset`
|
|
1293
|
+
# @return [::Gapic::Config::Method]
|
|
1294
|
+
#
|
|
1295
|
+
attr_reader :update_dataset
|
|
1296
|
+
##
|
|
1297
|
+
# RPC-specific configuration for `list_datasets`
|
|
1298
|
+
# @return [::Gapic::Config::Method]
|
|
1299
|
+
#
|
|
1300
|
+
attr_reader :list_datasets
|
|
1301
|
+
##
|
|
1302
|
+
# RPC-specific configuration for `delete_dataset`
|
|
1303
|
+
# @return [::Gapic::Config::Method]
|
|
1304
|
+
#
|
|
1305
|
+
attr_reader :delete_dataset
|
|
1306
|
+
##
|
|
1307
|
+
# RPC-specific configuration for `import_data`
|
|
1308
|
+
# @return [::Gapic::Config::Method]
|
|
1309
|
+
#
|
|
1310
|
+
attr_reader :import_data
|
|
1311
|
+
##
|
|
1312
|
+
# RPC-specific configuration for `export_data`
|
|
1313
|
+
# @return [::Gapic::Config::Method]
|
|
1314
|
+
#
|
|
1315
|
+
attr_reader :export_data
|
|
1316
|
+
##
|
|
1317
|
+
# RPC-specific configuration for `list_data_items`
|
|
1318
|
+
# @return [::Gapic::Config::Method]
|
|
1319
|
+
#
|
|
1320
|
+
attr_reader :list_data_items
|
|
1321
|
+
##
|
|
1322
|
+
# RPC-specific configuration for `get_annotation_spec`
|
|
1323
|
+
# @return [::Gapic::Config::Method]
|
|
1324
|
+
#
|
|
1325
|
+
attr_reader :get_annotation_spec
|
|
1326
|
+
##
|
|
1327
|
+
# RPC-specific configuration for `list_annotations`
|
|
1328
|
+
# @return [::Gapic::Config::Method]
|
|
1329
|
+
#
|
|
1330
|
+
attr_reader :list_annotations
|
|
1331
|
+
|
|
1332
|
+
# @private
|
|
1333
|
+
def initialize parent_rpcs = nil
|
|
1334
|
+
create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
|
|
1335
|
+
@create_dataset = ::Gapic::Config::Method.new create_dataset_config
|
|
1336
|
+
get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
|
|
1337
|
+
@get_dataset = ::Gapic::Config::Method.new get_dataset_config
|
|
1338
|
+
update_dataset_config = parent_rpcs.update_dataset if parent_rpcs.respond_to? :update_dataset
|
|
1339
|
+
@update_dataset = ::Gapic::Config::Method.new update_dataset_config
|
|
1340
|
+
list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
|
|
1341
|
+
@list_datasets = ::Gapic::Config::Method.new list_datasets_config
|
|
1342
|
+
delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
|
|
1343
|
+
@delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
|
|
1344
|
+
import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
|
|
1345
|
+
@import_data = ::Gapic::Config::Method.new import_data_config
|
|
1346
|
+
export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
|
|
1347
|
+
@export_data = ::Gapic::Config::Method.new export_data_config
|
|
1348
|
+
list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
|
|
1349
|
+
@list_data_items = ::Gapic::Config::Method.new list_data_items_config
|
|
1350
|
+
get_annotation_spec_config = parent_rpcs.get_annotation_spec if parent_rpcs.respond_to? :get_annotation_spec
|
|
1351
|
+
@get_annotation_spec = ::Gapic::Config::Method.new get_annotation_spec_config
|
|
1352
|
+
list_annotations_config = parent_rpcs.list_annotations if parent_rpcs.respond_to? :list_annotations
|
|
1353
|
+
@list_annotations = ::Gapic::Config::Method.new list_annotations_config
|
|
1354
|
+
|
|
1355
|
+
yield self if block_given?
|
|
1356
|
+
end
|
|
1357
|
+
end
|
|
1358
|
+
end
|
|
1359
|
+
end
|
|
1360
|
+
end
|
|
1361
|
+
end
|
|
1362
|
+
end
|
|
1363
|
+
end
|
|
1364
|
+
end
|