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,124 @@
|
|
|
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
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module AIPlatform
|
|
23
|
+
module V1
|
|
24
|
+
module EndpointService
|
|
25
|
+
# Path helper methods for the EndpointService API.
|
|
26
|
+
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified Endpoint resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/endpoints/{endpoint}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param endpoint [String]
|
|
37
|
+
#
|
|
38
|
+
# @return [::String]
|
|
39
|
+
def endpoint_path project:, location:, endpoint:
|
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
42
|
+
|
|
43
|
+
"projects/#{project}/locations/#{location}/endpoints/#{endpoint}"
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
##
|
|
47
|
+
# Create a fully-qualified Location resource string.
|
|
48
|
+
#
|
|
49
|
+
# The resource will be in the following format:
|
|
50
|
+
#
|
|
51
|
+
# `projects/{project}/locations/{location}`
|
|
52
|
+
#
|
|
53
|
+
# @param project [String]
|
|
54
|
+
# @param location [String]
|
|
55
|
+
#
|
|
56
|
+
# @return [::String]
|
|
57
|
+
def location_path project:, location:
|
|
58
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
59
|
+
|
|
60
|
+
"projects/#{project}/locations/#{location}"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
##
|
|
64
|
+
# Create a fully-qualified Model resource string.
|
|
65
|
+
#
|
|
66
|
+
# The resource will be in the following format:
|
|
67
|
+
#
|
|
68
|
+
# `projects/{project}/locations/{location}/models/{model}`
|
|
69
|
+
#
|
|
70
|
+
# @param project [String]
|
|
71
|
+
# @param location [String]
|
|
72
|
+
# @param model [String]
|
|
73
|
+
#
|
|
74
|
+
# @return [::String]
|
|
75
|
+
def model_path project:, location:, model:
|
|
76
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
77
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
78
|
+
|
|
79
|
+
"projects/#{project}/locations/#{location}/models/#{model}"
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
##
|
|
83
|
+
# Create a fully-qualified ModelDeploymentMonitoringJob resource string.
|
|
84
|
+
#
|
|
85
|
+
# The resource will be in the following format:
|
|
86
|
+
#
|
|
87
|
+
# `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
|
|
88
|
+
#
|
|
89
|
+
# @param project [String]
|
|
90
|
+
# @param location [String]
|
|
91
|
+
# @param model_deployment_monitoring_job [String]
|
|
92
|
+
#
|
|
93
|
+
# @return [::String]
|
|
94
|
+
def model_deployment_monitoring_job_path project:, location:, model_deployment_monitoring_job:
|
|
95
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
96
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
97
|
+
|
|
98
|
+
"projects/#{project}/locations/#{location}/modelDeploymentMonitoringJobs/#{model_deployment_monitoring_job}"
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
##
|
|
102
|
+
# Create a fully-qualified Network resource string.
|
|
103
|
+
#
|
|
104
|
+
# The resource will be in the following format:
|
|
105
|
+
#
|
|
106
|
+
# `projects/{project}/global/networks/{network}`
|
|
107
|
+
#
|
|
108
|
+
# @param project [String]
|
|
109
|
+
# @param network [String]
|
|
110
|
+
#
|
|
111
|
+
# @return [::String]
|
|
112
|
+
def network_path project:, network:
|
|
113
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
114
|
+
|
|
115
|
+
"projects/#{project}/global/networks/#{network}"
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
extend self
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
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 "gapic/common"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/ai_platform/v1/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/ai_platform/v1/endpoint_service/credentials"
|
|
26
|
+
require "google/cloud/ai_platform/v1/endpoint_service/paths"
|
|
27
|
+
require "google/cloud/ai_platform/v1/endpoint_service/operations"
|
|
28
|
+
require "google/cloud/ai_platform/v1/endpoint_service/client"
|
|
29
|
+
|
|
30
|
+
module Google
|
|
31
|
+
module Cloud
|
|
32
|
+
module AIPlatform
|
|
33
|
+
module V1
|
|
34
|
+
##
|
|
35
|
+
# A service for managing Vertex AI's Endpoints.
|
|
36
|
+
#
|
|
37
|
+
# To load this service and instantiate a client:
|
|
38
|
+
#
|
|
39
|
+
# require "google/cloud/ai_platform/v1/endpoint_service"
|
|
40
|
+
# client = ::Google::Cloud::AIPlatform::V1::EndpointService::Client.new
|
|
41
|
+
#
|
|
42
|
+
module EndpointService
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
helper_path = ::File.join __dir__, "endpoint_service", "helpers.rb"
|
|
50
|
+
require "google/cloud/ai_platform/v1/endpoint_service/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,508 @@
|
|
|
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/featurestore_online_service_pb"
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module AIPlatform
|
|
25
|
+
module V1
|
|
26
|
+
module FeaturestoreOnlineServingService
|
|
27
|
+
##
|
|
28
|
+
# Client for the FeaturestoreOnlineServingService service.
|
|
29
|
+
#
|
|
30
|
+
# A service for serving online feature values.
|
|
31
|
+
#
|
|
32
|
+
class Client
|
|
33
|
+
include Paths
|
|
34
|
+
|
|
35
|
+
# @private
|
|
36
|
+
attr_reader :featurestore_online_serving_service_stub
|
|
37
|
+
|
|
38
|
+
##
|
|
39
|
+
# Configure the FeaturestoreOnlineServingService Client class.
|
|
40
|
+
#
|
|
41
|
+
# See {::Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client::Configuration}
|
|
42
|
+
# for a description of the configuration fields.
|
|
43
|
+
#
|
|
44
|
+
# @example
|
|
45
|
+
#
|
|
46
|
+
# # Modify the configuration for all FeaturestoreOnlineServingService clients
|
|
47
|
+
# ::Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client.configure do |config|
|
|
48
|
+
# config.timeout = 10.0
|
|
49
|
+
# end
|
|
50
|
+
#
|
|
51
|
+
# @yield [config] Configure the Client client.
|
|
52
|
+
# @yieldparam config [Client::Configuration]
|
|
53
|
+
#
|
|
54
|
+
# @return [Client::Configuration]
|
|
55
|
+
#
|
|
56
|
+
def self.configure
|
|
57
|
+
@configure ||= begin
|
|
58
|
+
namespace = ["Google", "Cloud", "AIPlatform", "V1"]
|
|
59
|
+
parent_config = while namespace.any?
|
|
60
|
+
parent_name = namespace.join "::"
|
|
61
|
+
parent_const = const_get parent_name
|
|
62
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
|
63
|
+
namespace.pop
|
|
64
|
+
end
|
|
65
|
+
default_config = Client::Configuration.new parent_config
|
|
66
|
+
|
|
67
|
+
default_config
|
|
68
|
+
end
|
|
69
|
+
yield @configure if block_given?
|
|
70
|
+
@configure
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
##
|
|
74
|
+
# Configure the FeaturestoreOnlineServingService Client instance.
|
|
75
|
+
#
|
|
76
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
|
77
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
|
78
|
+
# should be made on {Client.configure}.
|
|
79
|
+
#
|
|
80
|
+
# See {::Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client::Configuration}
|
|
81
|
+
# for a description of the configuration fields.
|
|
82
|
+
#
|
|
83
|
+
# @yield [config] Configure the Client client.
|
|
84
|
+
# @yieldparam config [Client::Configuration]
|
|
85
|
+
#
|
|
86
|
+
# @return [Client::Configuration]
|
|
87
|
+
#
|
|
88
|
+
def configure
|
|
89
|
+
yield @config if block_given?
|
|
90
|
+
@config
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
##
|
|
94
|
+
# Create a new FeaturestoreOnlineServingService client object.
|
|
95
|
+
#
|
|
96
|
+
# @example
|
|
97
|
+
#
|
|
98
|
+
# # Create a client using the default configuration
|
|
99
|
+
# client = ::Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client.new
|
|
100
|
+
#
|
|
101
|
+
# # Create a client using a custom configuration
|
|
102
|
+
# client = ::Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client.new do |config|
|
|
103
|
+
# config.timeout = 10.0
|
|
104
|
+
# end
|
|
105
|
+
#
|
|
106
|
+
# @yield [config] Configure the FeaturestoreOnlineServingService client.
|
|
107
|
+
# @yieldparam config [Client::Configuration]
|
|
108
|
+
#
|
|
109
|
+
def initialize
|
|
110
|
+
# These require statements are intentionally placed here to initialize
|
|
111
|
+
# the gRPC module only when it's required.
|
|
112
|
+
# See https://github.com/googleapis/toolkit/issues/446
|
|
113
|
+
require "gapic/grpc"
|
|
114
|
+
require "google/cloud/aiplatform/v1/featurestore_online_service_services_pb"
|
|
115
|
+
|
|
116
|
+
# Create the configuration object
|
|
117
|
+
@config = Configuration.new Client.configure
|
|
118
|
+
|
|
119
|
+
# Yield the configuration if needed
|
|
120
|
+
yield @config if block_given?
|
|
121
|
+
|
|
122
|
+
# Create credentials
|
|
123
|
+
credentials = @config.credentials
|
|
124
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
125
|
+
# but only if the default endpoint does not have a region prefix.
|
|
126
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
|
127
|
+
!@config.endpoint.split(".").first.include?("-")
|
|
128
|
+
credentials ||= Credentials.default scope: @config.scope,
|
|
129
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
|
130
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
131
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
|
132
|
+
end
|
|
133
|
+
@quota_project_id = @config.quota_project
|
|
134
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
135
|
+
|
|
136
|
+
@featurestore_online_serving_service_stub = ::Gapic::ServiceStub.new(
|
|
137
|
+
::Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Stub,
|
|
138
|
+
credentials: credentials,
|
|
139
|
+
endpoint: @config.endpoint,
|
|
140
|
+
channel_args: @config.channel_args,
|
|
141
|
+
interceptors: @config.interceptors
|
|
142
|
+
)
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Service calls
|
|
146
|
+
|
|
147
|
+
##
|
|
148
|
+
# Reads Feature values of a specific entity of an EntityType. For reading
|
|
149
|
+
# feature values of multiple entities of an EntityType, please use
|
|
150
|
+
# StreamingReadFeatureValues.
|
|
151
|
+
#
|
|
152
|
+
# @overload read_feature_values(request, options = nil)
|
|
153
|
+
# Pass arguments to `read_feature_values` via a request object, either of type
|
|
154
|
+
# {::Google::Cloud::AIPlatform::V1::ReadFeatureValuesRequest} or an equivalent Hash.
|
|
155
|
+
#
|
|
156
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ReadFeatureValuesRequest, ::Hash]
|
|
157
|
+
# A request object representing the call parameters. Required. To specify no
|
|
158
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
159
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
160
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
161
|
+
#
|
|
162
|
+
# @overload read_feature_values(entity_type: nil, entity_id: nil, feature_selector: nil)
|
|
163
|
+
# Pass arguments to `read_feature_values` via keyword arguments. Note that at
|
|
164
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
165
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
166
|
+
#
|
|
167
|
+
# @param entity_type [::String]
|
|
168
|
+
# Required. The resource name of the EntityType for the entity being read.
|
|
169
|
+
# Value format:
|
|
170
|
+
# `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`.
|
|
171
|
+
# For example, for a machine learning model predicting user clicks on a
|
|
172
|
+
# website, an EntityType ID could be `user`.
|
|
173
|
+
# @param entity_id [::String]
|
|
174
|
+
# Required. ID for a specific entity. For example,
|
|
175
|
+
# for a machine learning model predicting user clicks on a website, an entity
|
|
176
|
+
# ID could be `user_123`.
|
|
177
|
+
# @param feature_selector [::Google::Cloud::AIPlatform::V1::FeatureSelector, ::Hash]
|
|
178
|
+
# Required. Selector choosing Features of the target EntityType.
|
|
179
|
+
#
|
|
180
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
181
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::ReadFeatureValuesResponse]
|
|
182
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
183
|
+
#
|
|
184
|
+
# @return [::Google::Cloud::AIPlatform::V1::ReadFeatureValuesResponse]
|
|
185
|
+
#
|
|
186
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
187
|
+
#
|
|
188
|
+
# @example Basic example
|
|
189
|
+
# require "google/cloud/ai_platform/v1"
|
|
190
|
+
#
|
|
191
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
192
|
+
# client = Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client.new
|
|
193
|
+
#
|
|
194
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
195
|
+
# request = Google::Cloud::AIPlatform::V1::ReadFeatureValuesRequest.new
|
|
196
|
+
#
|
|
197
|
+
# # Call the read_feature_values method.
|
|
198
|
+
# result = client.read_feature_values request
|
|
199
|
+
#
|
|
200
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::ReadFeatureValuesResponse.
|
|
201
|
+
# p result
|
|
202
|
+
#
|
|
203
|
+
def read_feature_values request, options = nil
|
|
204
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
205
|
+
|
|
206
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ReadFeatureValuesRequest
|
|
207
|
+
|
|
208
|
+
# Converts hash and nil to an options object
|
|
209
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
210
|
+
|
|
211
|
+
# Customize the options with defaults
|
|
212
|
+
metadata = @config.rpcs.read_feature_values.metadata.to_h
|
|
213
|
+
|
|
214
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
215
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
216
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
217
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
218
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
219
|
+
|
|
220
|
+
header_params = {}
|
|
221
|
+
if request.entity_type
|
|
222
|
+
header_params["entity_type"] = request.entity_type
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
226
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
227
|
+
|
|
228
|
+
options.apply_defaults timeout: @config.rpcs.read_feature_values.timeout,
|
|
229
|
+
metadata: metadata,
|
|
230
|
+
retry_policy: @config.rpcs.read_feature_values.retry_policy
|
|
231
|
+
|
|
232
|
+
options.apply_defaults timeout: @config.timeout,
|
|
233
|
+
metadata: @config.metadata,
|
|
234
|
+
retry_policy: @config.retry_policy
|
|
235
|
+
|
|
236
|
+
@featurestore_online_serving_service_stub.call_rpc :read_feature_values, request, options: options do |response, operation|
|
|
237
|
+
yield response, operation if block_given?
|
|
238
|
+
return response
|
|
239
|
+
end
|
|
240
|
+
rescue ::GRPC::BadStatus => e
|
|
241
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
##
|
|
245
|
+
# Reads Feature values for multiple entities. Depending on their size, data
|
|
246
|
+
# for different entities may be broken
|
|
247
|
+
# up across multiple responses.
|
|
248
|
+
#
|
|
249
|
+
# @overload streaming_read_feature_values(request, options = nil)
|
|
250
|
+
# Pass arguments to `streaming_read_feature_values` via a request object, either of type
|
|
251
|
+
# {::Google::Cloud::AIPlatform::V1::StreamingReadFeatureValuesRequest} or an equivalent Hash.
|
|
252
|
+
#
|
|
253
|
+
# @param request [::Google::Cloud::AIPlatform::V1::StreamingReadFeatureValuesRequest, ::Hash]
|
|
254
|
+
# A request object representing the call parameters. Required. To specify no
|
|
255
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
256
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
257
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
258
|
+
#
|
|
259
|
+
# @overload streaming_read_feature_values(entity_type: nil, entity_ids: nil, feature_selector: nil)
|
|
260
|
+
# Pass arguments to `streaming_read_feature_values` via keyword arguments. Note that at
|
|
261
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
262
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
263
|
+
#
|
|
264
|
+
# @param entity_type [::String]
|
|
265
|
+
# Required. The resource name of the entities' type.
|
|
266
|
+
# Value format:
|
|
267
|
+
# `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`.
|
|
268
|
+
# For example,
|
|
269
|
+
# for a machine learning model predicting user clicks on a website, an
|
|
270
|
+
# EntityType ID could be `user`.
|
|
271
|
+
# @param entity_ids [::Array<::String>]
|
|
272
|
+
# Required. IDs of entities to read Feature values of. The maximum number of IDs is
|
|
273
|
+
# 100. For example, for a machine learning model predicting user clicks on a
|
|
274
|
+
# website, an entity ID could be `user_123`.
|
|
275
|
+
# @param feature_selector [::Google::Cloud::AIPlatform::V1::FeatureSelector, ::Hash]
|
|
276
|
+
# Required. Selector choosing Features of the target EntityType. Feature IDs will be
|
|
277
|
+
# deduplicated.
|
|
278
|
+
#
|
|
279
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
280
|
+
# @yieldparam response [::Enumerable<::Google::Cloud::AIPlatform::V1::ReadFeatureValuesResponse>]
|
|
281
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
282
|
+
#
|
|
283
|
+
# @return [::Enumerable<::Google::Cloud::AIPlatform::V1::ReadFeatureValuesResponse>]
|
|
284
|
+
#
|
|
285
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
286
|
+
#
|
|
287
|
+
# @example Basic example
|
|
288
|
+
# require "google/cloud/ai_platform/v1"
|
|
289
|
+
#
|
|
290
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
291
|
+
# client = Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client.new
|
|
292
|
+
#
|
|
293
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
294
|
+
# request = Google::Cloud::AIPlatform::V1::StreamingReadFeatureValuesRequest.new
|
|
295
|
+
#
|
|
296
|
+
# # Call the streaming_read_feature_values method.
|
|
297
|
+
# result = client.streaming_read_feature_values request
|
|
298
|
+
#
|
|
299
|
+
# # The returned object is a streamed enumerable yielding elements of
|
|
300
|
+
# # type ::Google::Cloud::AIPlatform::V1::ReadFeatureValuesResponse.
|
|
301
|
+
# result.each do |response|
|
|
302
|
+
# p response
|
|
303
|
+
# end
|
|
304
|
+
#
|
|
305
|
+
def streaming_read_feature_values request, options = nil
|
|
306
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
307
|
+
|
|
308
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::StreamingReadFeatureValuesRequest
|
|
309
|
+
|
|
310
|
+
# Converts hash and nil to an options object
|
|
311
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
312
|
+
|
|
313
|
+
# Customize the options with defaults
|
|
314
|
+
metadata = @config.rpcs.streaming_read_feature_values.metadata.to_h
|
|
315
|
+
|
|
316
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
317
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
318
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
319
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
320
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
321
|
+
|
|
322
|
+
header_params = {}
|
|
323
|
+
if request.entity_type
|
|
324
|
+
header_params["entity_type"] = request.entity_type
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
328
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
329
|
+
|
|
330
|
+
options.apply_defaults timeout: @config.rpcs.streaming_read_feature_values.timeout,
|
|
331
|
+
metadata: metadata,
|
|
332
|
+
retry_policy: @config.rpcs.streaming_read_feature_values.retry_policy
|
|
333
|
+
|
|
334
|
+
options.apply_defaults timeout: @config.timeout,
|
|
335
|
+
metadata: @config.metadata,
|
|
336
|
+
retry_policy: @config.retry_policy
|
|
337
|
+
|
|
338
|
+
@featurestore_online_serving_service_stub.call_rpc :streaming_read_feature_values, request, options: options do |response, operation|
|
|
339
|
+
yield response, operation if block_given?
|
|
340
|
+
return response
|
|
341
|
+
end
|
|
342
|
+
rescue ::GRPC::BadStatus => e
|
|
343
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
##
|
|
347
|
+
# Configuration class for the FeaturestoreOnlineServingService API.
|
|
348
|
+
#
|
|
349
|
+
# This class represents the configuration for FeaturestoreOnlineServingService,
|
|
350
|
+
# providing control over timeouts, retry behavior, logging, transport
|
|
351
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
|
352
|
+
# applied individually to specific RPCs. See
|
|
353
|
+
# {::Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client::Configuration::Rpcs}
|
|
354
|
+
# for a list of RPCs that can be configured independently.
|
|
355
|
+
#
|
|
356
|
+
# Configuration can be applied globally to all clients, or to a single client
|
|
357
|
+
# on construction.
|
|
358
|
+
#
|
|
359
|
+
# @example
|
|
360
|
+
#
|
|
361
|
+
# # Modify the global config, setting the timeout for
|
|
362
|
+
# # read_feature_values to 20 seconds,
|
|
363
|
+
# # and all remaining timeouts to 10 seconds.
|
|
364
|
+
# ::Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client.configure do |config|
|
|
365
|
+
# config.timeout = 10.0
|
|
366
|
+
# config.rpcs.read_feature_values.timeout = 20.0
|
|
367
|
+
# end
|
|
368
|
+
#
|
|
369
|
+
# # Apply the above configuration only to a new client.
|
|
370
|
+
# client = ::Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client.new do |config|
|
|
371
|
+
# config.timeout = 10.0
|
|
372
|
+
# config.rpcs.read_feature_values.timeout = 20.0
|
|
373
|
+
# end
|
|
374
|
+
#
|
|
375
|
+
# @!attribute [rw] endpoint
|
|
376
|
+
# The hostname or hostname:port of the service endpoint.
|
|
377
|
+
# Defaults to `"aiplatform.googleapis.com"`.
|
|
378
|
+
# @return [::String]
|
|
379
|
+
# @!attribute [rw] credentials
|
|
380
|
+
# Credentials to send with calls. You may provide any of the following types:
|
|
381
|
+
# * (`String`) The path to a service account key file in JSON format
|
|
382
|
+
# * (`Hash`) A service account key as a Hash
|
|
383
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
384
|
+
# (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
|
|
385
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
386
|
+
# (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
|
|
387
|
+
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
388
|
+
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
389
|
+
# * (`nil`) indicating no credentials
|
|
390
|
+
# @return [::Object]
|
|
391
|
+
# @!attribute [rw] scope
|
|
392
|
+
# The OAuth scopes
|
|
393
|
+
# @return [::Array<::String>]
|
|
394
|
+
# @!attribute [rw] lib_name
|
|
395
|
+
# The library name as recorded in instrumentation and logging
|
|
396
|
+
# @return [::String]
|
|
397
|
+
# @!attribute [rw] lib_version
|
|
398
|
+
# The library version as recorded in instrumentation and logging
|
|
399
|
+
# @return [::String]
|
|
400
|
+
# @!attribute [rw] channel_args
|
|
401
|
+
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
|
402
|
+
# `GRPC::Core::Channel` object is provided as the credential.
|
|
403
|
+
# @return [::Hash]
|
|
404
|
+
# @!attribute [rw] interceptors
|
|
405
|
+
# An array of interceptors that are run before calls are executed.
|
|
406
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
|
407
|
+
# @!attribute [rw] timeout
|
|
408
|
+
# The call timeout in seconds.
|
|
409
|
+
# @return [::Numeric]
|
|
410
|
+
# @!attribute [rw] metadata
|
|
411
|
+
# Additional gRPC headers to be sent with the call.
|
|
412
|
+
# @return [::Hash{::Symbol=>::String}]
|
|
413
|
+
# @!attribute [rw] retry_policy
|
|
414
|
+
# The retry policy. The value is a hash with the following keys:
|
|
415
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
416
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
417
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
418
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
419
|
+
# trigger a retry.
|
|
420
|
+
# @return [::Hash]
|
|
421
|
+
# @!attribute [rw] quota_project
|
|
422
|
+
# A separate project against which to charge quota.
|
|
423
|
+
# @return [::String]
|
|
424
|
+
#
|
|
425
|
+
class Configuration
|
|
426
|
+
extend ::Gapic::Config
|
|
427
|
+
|
|
428
|
+
config_attr :endpoint, "aiplatform.googleapis.com", ::String
|
|
429
|
+
config_attr :credentials, nil do |value|
|
|
430
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
431
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
432
|
+
allowed.any? { |klass| klass === value }
|
|
433
|
+
end
|
|
434
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
435
|
+
config_attr :lib_name, nil, ::String, nil
|
|
436
|
+
config_attr :lib_version, nil, ::String, nil
|
|
437
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
|
438
|
+
config_attr :interceptors, nil, ::Array, nil
|
|
439
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
440
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
441
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
442
|
+
config_attr :quota_project, nil, ::String, nil
|
|
443
|
+
|
|
444
|
+
# @private
|
|
445
|
+
def initialize parent_config = nil
|
|
446
|
+
@parent_config = parent_config unless parent_config.nil?
|
|
447
|
+
|
|
448
|
+
yield self if block_given?
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
##
|
|
452
|
+
# Configurations for individual RPCs
|
|
453
|
+
# @return [Rpcs]
|
|
454
|
+
#
|
|
455
|
+
def rpcs
|
|
456
|
+
@rpcs ||= begin
|
|
457
|
+
parent_rpcs = nil
|
|
458
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
|
459
|
+
Rpcs.new parent_rpcs
|
|
460
|
+
end
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
##
|
|
464
|
+
# Configuration RPC class for the FeaturestoreOnlineServingService API.
|
|
465
|
+
#
|
|
466
|
+
# Includes fields providing the configuration for each RPC in this service.
|
|
467
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
|
468
|
+
# the following configuration fields:
|
|
469
|
+
#
|
|
470
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
|
471
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
|
472
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
|
473
|
+
# include the following keys:
|
|
474
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
475
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
476
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
477
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
478
|
+
# trigger a retry.
|
|
479
|
+
#
|
|
480
|
+
class Rpcs
|
|
481
|
+
##
|
|
482
|
+
# RPC-specific configuration for `read_feature_values`
|
|
483
|
+
# @return [::Gapic::Config::Method]
|
|
484
|
+
#
|
|
485
|
+
attr_reader :read_feature_values
|
|
486
|
+
##
|
|
487
|
+
# RPC-specific configuration for `streaming_read_feature_values`
|
|
488
|
+
# @return [::Gapic::Config::Method]
|
|
489
|
+
#
|
|
490
|
+
attr_reader :streaming_read_feature_values
|
|
491
|
+
|
|
492
|
+
# @private
|
|
493
|
+
def initialize parent_rpcs = nil
|
|
494
|
+
read_feature_values_config = parent_rpcs.read_feature_values if parent_rpcs.respond_to? :read_feature_values
|
|
495
|
+
@read_feature_values = ::Gapic::Config::Method.new read_feature_values_config
|
|
496
|
+
streaming_read_feature_values_config = parent_rpcs.streaming_read_feature_values if parent_rpcs.respond_to? :streaming_read_feature_values
|
|
497
|
+
@streaming_read_feature_values = ::Gapic::Config::Method.new streaming_read_feature_values_config
|
|
498
|
+
|
|
499
|
+
yield self if block_given?
|
|
500
|
+
end
|
|
501
|
+
end
|
|
502
|
+
end
|
|
503
|
+
end
|
|
504
|
+
end
|
|
505
|
+
end
|
|
506
|
+
end
|
|
507
|
+
end
|
|
508
|
+
end
|