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,826 @@
|
|
|
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/specialist_pool_service_pb"
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module AIPlatform
|
|
25
|
+
module V1
|
|
26
|
+
module SpecialistPoolService
|
|
27
|
+
##
|
|
28
|
+
# Client for the SpecialistPoolService service.
|
|
29
|
+
#
|
|
30
|
+
# A service for creating and managing Customer SpecialistPools.
|
|
31
|
+
# When customers start Data Labeling jobs, they can reuse/create Specialist
|
|
32
|
+
# Pools to bring their own Specialists to label the data.
|
|
33
|
+
# Customers can add/remove Managers for the Specialist Pool on Cloud console,
|
|
34
|
+
# then Managers will get email notifications to manage Specialists and tasks on
|
|
35
|
+
# CrowdCompute console.
|
|
36
|
+
#
|
|
37
|
+
class Client
|
|
38
|
+
include Paths
|
|
39
|
+
|
|
40
|
+
# @private
|
|
41
|
+
attr_reader :specialist_pool_service_stub
|
|
42
|
+
|
|
43
|
+
##
|
|
44
|
+
# Configure the SpecialistPoolService Client class.
|
|
45
|
+
#
|
|
46
|
+
# See {::Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client::Configuration}
|
|
47
|
+
# for a description of the configuration fields.
|
|
48
|
+
#
|
|
49
|
+
# @example
|
|
50
|
+
#
|
|
51
|
+
# # Modify the configuration for all SpecialistPoolService clients
|
|
52
|
+
# ::Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client.configure do |config|
|
|
53
|
+
# config.timeout = 10.0
|
|
54
|
+
# end
|
|
55
|
+
#
|
|
56
|
+
# @yield [config] Configure the Client client.
|
|
57
|
+
# @yieldparam config [Client::Configuration]
|
|
58
|
+
#
|
|
59
|
+
# @return [Client::Configuration]
|
|
60
|
+
#
|
|
61
|
+
def self.configure
|
|
62
|
+
@configure ||= begin
|
|
63
|
+
namespace = ["Google", "Cloud", "AIPlatform", "V1"]
|
|
64
|
+
parent_config = while namespace.any?
|
|
65
|
+
parent_name = namespace.join "::"
|
|
66
|
+
parent_const = const_get parent_name
|
|
67
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
|
68
|
+
namespace.pop
|
|
69
|
+
end
|
|
70
|
+
default_config = Client::Configuration.new parent_config
|
|
71
|
+
|
|
72
|
+
default_config
|
|
73
|
+
end
|
|
74
|
+
yield @configure if block_given?
|
|
75
|
+
@configure
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
##
|
|
79
|
+
# Configure the SpecialistPoolService Client instance.
|
|
80
|
+
#
|
|
81
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
|
82
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
|
83
|
+
# should be made on {Client.configure}.
|
|
84
|
+
#
|
|
85
|
+
# See {::Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client::Configuration}
|
|
86
|
+
# for a description of the configuration fields.
|
|
87
|
+
#
|
|
88
|
+
# @yield [config] Configure the Client client.
|
|
89
|
+
# @yieldparam config [Client::Configuration]
|
|
90
|
+
#
|
|
91
|
+
# @return [Client::Configuration]
|
|
92
|
+
#
|
|
93
|
+
def configure
|
|
94
|
+
yield @config if block_given?
|
|
95
|
+
@config
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
##
|
|
99
|
+
# Create a new SpecialistPoolService client object.
|
|
100
|
+
#
|
|
101
|
+
# @example
|
|
102
|
+
#
|
|
103
|
+
# # Create a client using the default configuration
|
|
104
|
+
# client = ::Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client.new
|
|
105
|
+
#
|
|
106
|
+
# # Create a client using a custom configuration
|
|
107
|
+
# client = ::Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client.new do |config|
|
|
108
|
+
# config.timeout = 10.0
|
|
109
|
+
# end
|
|
110
|
+
#
|
|
111
|
+
# @yield [config] Configure the SpecialistPoolService client.
|
|
112
|
+
# @yieldparam config [Client::Configuration]
|
|
113
|
+
#
|
|
114
|
+
def initialize
|
|
115
|
+
# These require statements are intentionally placed here to initialize
|
|
116
|
+
# the gRPC module only when it's required.
|
|
117
|
+
# See https://github.com/googleapis/toolkit/issues/446
|
|
118
|
+
require "gapic/grpc"
|
|
119
|
+
require "google/cloud/aiplatform/v1/specialist_pool_service_services_pb"
|
|
120
|
+
|
|
121
|
+
# Create the configuration object
|
|
122
|
+
@config = Configuration.new Client.configure
|
|
123
|
+
|
|
124
|
+
# Yield the configuration if needed
|
|
125
|
+
yield @config if block_given?
|
|
126
|
+
|
|
127
|
+
# Create credentials
|
|
128
|
+
credentials = @config.credentials
|
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
130
|
+
# but only if the default endpoint does not have a region prefix.
|
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
|
132
|
+
!@config.endpoint.split(".").first.include?("-")
|
|
133
|
+
credentials ||= Credentials.default scope: @config.scope,
|
|
134
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
|
135
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
136
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
|
137
|
+
end
|
|
138
|
+
@quota_project_id = @config.quota_project
|
|
139
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
140
|
+
|
|
141
|
+
@operations_client = Operations.new do |config|
|
|
142
|
+
config.credentials = credentials
|
|
143
|
+
config.quota_project = @quota_project_id
|
|
144
|
+
config.endpoint = @config.endpoint
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
@specialist_pool_service_stub = ::Gapic::ServiceStub.new(
|
|
148
|
+
::Google::Cloud::AIPlatform::V1::SpecialistPoolService::Stub,
|
|
149
|
+
credentials: credentials,
|
|
150
|
+
endpoint: @config.endpoint,
|
|
151
|
+
channel_args: @config.channel_args,
|
|
152
|
+
interceptors: @config.interceptors
|
|
153
|
+
)
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
##
|
|
157
|
+
# Get the associated client for long-running operations.
|
|
158
|
+
#
|
|
159
|
+
# @return [::Google::Cloud::AIPlatform::V1::SpecialistPoolService::Operations]
|
|
160
|
+
#
|
|
161
|
+
attr_reader :operations_client
|
|
162
|
+
|
|
163
|
+
# Service calls
|
|
164
|
+
|
|
165
|
+
##
|
|
166
|
+
# Creates a SpecialistPool.
|
|
167
|
+
#
|
|
168
|
+
# @overload create_specialist_pool(request, options = nil)
|
|
169
|
+
# Pass arguments to `create_specialist_pool` via a request object, either of type
|
|
170
|
+
# {::Google::Cloud::AIPlatform::V1::CreateSpecialistPoolRequest} or an equivalent Hash.
|
|
171
|
+
#
|
|
172
|
+
# @param request [::Google::Cloud::AIPlatform::V1::CreateSpecialistPoolRequest, ::Hash]
|
|
173
|
+
# A request object representing the call parameters. Required. To specify no
|
|
174
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
175
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
176
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
177
|
+
#
|
|
178
|
+
# @overload create_specialist_pool(parent: nil, specialist_pool: nil)
|
|
179
|
+
# Pass arguments to `create_specialist_pool` via keyword arguments. Note that at
|
|
180
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
181
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
182
|
+
#
|
|
183
|
+
# @param parent [::String]
|
|
184
|
+
# Required. The parent Project name for the new SpecialistPool.
|
|
185
|
+
# The form is `projects/{project}/locations/{location}`.
|
|
186
|
+
# @param specialist_pool [::Google::Cloud::AIPlatform::V1::SpecialistPool, ::Hash]
|
|
187
|
+
# Required. The SpecialistPool to create.
|
|
188
|
+
#
|
|
189
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
190
|
+
# @yieldparam response [::Gapic::Operation]
|
|
191
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
192
|
+
#
|
|
193
|
+
# @return [::Gapic::Operation]
|
|
194
|
+
#
|
|
195
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
196
|
+
#
|
|
197
|
+
# @example Basic example
|
|
198
|
+
# require "google/cloud/ai_platform/v1"
|
|
199
|
+
#
|
|
200
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
201
|
+
# client = Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client.new
|
|
202
|
+
#
|
|
203
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
204
|
+
# request = Google::Cloud::AIPlatform::V1::CreateSpecialistPoolRequest.new
|
|
205
|
+
#
|
|
206
|
+
# # Call the create_specialist_pool method.
|
|
207
|
+
# result = client.create_specialist_pool request
|
|
208
|
+
#
|
|
209
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
210
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
211
|
+
# # for results. Here is how to block until completion:
|
|
212
|
+
# result.wait_until_done! timeout: 60
|
|
213
|
+
# if result.response?
|
|
214
|
+
# p result.response
|
|
215
|
+
# else
|
|
216
|
+
# puts "Error!"
|
|
217
|
+
# end
|
|
218
|
+
#
|
|
219
|
+
def create_specialist_pool request, options = nil
|
|
220
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
221
|
+
|
|
222
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateSpecialistPoolRequest
|
|
223
|
+
|
|
224
|
+
# Converts hash and nil to an options object
|
|
225
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
226
|
+
|
|
227
|
+
# Customize the options with defaults
|
|
228
|
+
metadata = @config.rpcs.create_specialist_pool.metadata.to_h
|
|
229
|
+
|
|
230
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
231
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
232
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
233
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
234
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
235
|
+
|
|
236
|
+
header_params = {}
|
|
237
|
+
if request.parent
|
|
238
|
+
header_params["parent"] = request.parent
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
242
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
243
|
+
|
|
244
|
+
options.apply_defaults timeout: @config.rpcs.create_specialist_pool.timeout,
|
|
245
|
+
metadata: metadata,
|
|
246
|
+
retry_policy: @config.rpcs.create_specialist_pool.retry_policy
|
|
247
|
+
|
|
248
|
+
options.apply_defaults timeout: @config.timeout,
|
|
249
|
+
metadata: @config.metadata,
|
|
250
|
+
retry_policy: @config.retry_policy
|
|
251
|
+
|
|
252
|
+
@specialist_pool_service_stub.call_rpc :create_specialist_pool, request, options: options do |response, operation|
|
|
253
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
254
|
+
yield response, operation if block_given?
|
|
255
|
+
return response
|
|
256
|
+
end
|
|
257
|
+
rescue ::GRPC::BadStatus => e
|
|
258
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
##
|
|
262
|
+
# Gets a SpecialistPool.
|
|
263
|
+
#
|
|
264
|
+
# @overload get_specialist_pool(request, options = nil)
|
|
265
|
+
# Pass arguments to `get_specialist_pool` via a request object, either of type
|
|
266
|
+
# {::Google::Cloud::AIPlatform::V1::GetSpecialistPoolRequest} or an equivalent Hash.
|
|
267
|
+
#
|
|
268
|
+
# @param request [::Google::Cloud::AIPlatform::V1::GetSpecialistPoolRequest, ::Hash]
|
|
269
|
+
# A request object representing the call parameters. Required. To specify no
|
|
270
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
271
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
272
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
273
|
+
#
|
|
274
|
+
# @overload get_specialist_pool(name: nil)
|
|
275
|
+
# Pass arguments to `get_specialist_pool` via keyword arguments. Note that at
|
|
276
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
277
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
278
|
+
#
|
|
279
|
+
# @param name [::String]
|
|
280
|
+
# Required. The name of the SpecialistPool resource.
|
|
281
|
+
# The form is
|
|
282
|
+
# `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`.
|
|
283
|
+
#
|
|
284
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
285
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::SpecialistPool]
|
|
286
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
287
|
+
#
|
|
288
|
+
# @return [::Google::Cloud::AIPlatform::V1::SpecialistPool]
|
|
289
|
+
#
|
|
290
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
291
|
+
#
|
|
292
|
+
# @example Basic example
|
|
293
|
+
# require "google/cloud/ai_platform/v1"
|
|
294
|
+
#
|
|
295
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
296
|
+
# client = Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client.new
|
|
297
|
+
#
|
|
298
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
299
|
+
# request = Google::Cloud::AIPlatform::V1::GetSpecialistPoolRequest.new
|
|
300
|
+
#
|
|
301
|
+
# # Call the get_specialist_pool method.
|
|
302
|
+
# result = client.get_specialist_pool request
|
|
303
|
+
#
|
|
304
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::SpecialistPool.
|
|
305
|
+
# p result
|
|
306
|
+
#
|
|
307
|
+
def get_specialist_pool request, options = nil
|
|
308
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
309
|
+
|
|
310
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetSpecialistPoolRequest
|
|
311
|
+
|
|
312
|
+
# Converts hash and nil to an options object
|
|
313
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
314
|
+
|
|
315
|
+
# Customize the options with defaults
|
|
316
|
+
metadata = @config.rpcs.get_specialist_pool.metadata.to_h
|
|
317
|
+
|
|
318
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
319
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
320
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
321
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
322
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
323
|
+
|
|
324
|
+
header_params = {}
|
|
325
|
+
if request.name
|
|
326
|
+
header_params["name"] = request.name
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
330
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
331
|
+
|
|
332
|
+
options.apply_defaults timeout: @config.rpcs.get_specialist_pool.timeout,
|
|
333
|
+
metadata: metadata,
|
|
334
|
+
retry_policy: @config.rpcs.get_specialist_pool.retry_policy
|
|
335
|
+
|
|
336
|
+
options.apply_defaults timeout: @config.timeout,
|
|
337
|
+
metadata: @config.metadata,
|
|
338
|
+
retry_policy: @config.retry_policy
|
|
339
|
+
|
|
340
|
+
@specialist_pool_service_stub.call_rpc :get_specialist_pool, request, options: options do |response, operation|
|
|
341
|
+
yield response, operation if block_given?
|
|
342
|
+
return response
|
|
343
|
+
end
|
|
344
|
+
rescue ::GRPC::BadStatus => e
|
|
345
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
##
|
|
349
|
+
# Lists SpecialistPools in a Location.
|
|
350
|
+
#
|
|
351
|
+
# @overload list_specialist_pools(request, options = nil)
|
|
352
|
+
# Pass arguments to `list_specialist_pools` via a request object, either of type
|
|
353
|
+
# {::Google::Cloud::AIPlatform::V1::ListSpecialistPoolsRequest} or an equivalent Hash.
|
|
354
|
+
#
|
|
355
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ListSpecialistPoolsRequest, ::Hash]
|
|
356
|
+
# A request object representing the call parameters. Required. To specify no
|
|
357
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
358
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
359
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
360
|
+
#
|
|
361
|
+
# @overload list_specialist_pools(parent: nil, page_size: nil, page_token: nil, read_mask: nil)
|
|
362
|
+
# Pass arguments to `list_specialist_pools` via keyword arguments. Note that at
|
|
363
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
364
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
365
|
+
#
|
|
366
|
+
# @param parent [::String]
|
|
367
|
+
# Required. The name of the SpecialistPool's parent resource.
|
|
368
|
+
# Format: `projects/{project}/locations/{location}`
|
|
369
|
+
# @param page_size [::Integer]
|
|
370
|
+
# The standard list page size.
|
|
371
|
+
# @param page_token [::String]
|
|
372
|
+
# The standard list page token.
|
|
373
|
+
# Typically obtained by {::Google::Cloud::AIPlatform::V1::ListSpecialistPoolsResponse#next_page_token ListSpecialistPoolsResponse.next_page_token} of
|
|
374
|
+
# the previous {::Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client#list_specialist_pools SpecialistPoolService.ListSpecialistPools} call. Return
|
|
375
|
+
# first page if empty.
|
|
376
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
377
|
+
# Mask specifying which fields to read. FieldMask represents a set of
|
|
378
|
+
#
|
|
379
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
380
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::SpecialistPool>]
|
|
381
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
382
|
+
#
|
|
383
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::SpecialistPool>]
|
|
384
|
+
#
|
|
385
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
386
|
+
#
|
|
387
|
+
# @example Basic example
|
|
388
|
+
# require "google/cloud/ai_platform/v1"
|
|
389
|
+
#
|
|
390
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
391
|
+
# client = Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client.new
|
|
392
|
+
#
|
|
393
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
394
|
+
# request = Google::Cloud::AIPlatform::V1::ListSpecialistPoolsRequest.new
|
|
395
|
+
#
|
|
396
|
+
# # Call the list_specialist_pools method.
|
|
397
|
+
# result = client.list_specialist_pools request
|
|
398
|
+
#
|
|
399
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
400
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
401
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
402
|
+
# # methods are also available for managing paging directly.
|
|
403
|
+
# result.each do |response|
|
|
404
|
+
# # Each element is of type ::Google::Cloud::AIPlatform::V1::SpecialistPool.
|
|
405
|
+
# p response
|
|
406
|
+
# end
|
|
407
|
+
#
|
|
408
|
+
def list_specialist_pools request, options = nil
|
|
409
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
410
|
+
|
|
411
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListSpecialistPoolsRequest
|
|
412
|
+
|
|
413
|
+
# Converts hash and nil to an options object
|
|
414
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
415
|
+
|
|
416
|
+
# Customize the options with defaults
|
|
417
|
+
metadata = @config.rpcs.list_specialist_pools.metadata.to_h
|
|
418
|
+
|
|
419
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
420
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
421
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
422
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
423
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
424
|
+
|
|
425
|
+
header_params = {}
|
|
426
|
+
if request.parent
|
|
427
|
+
header_params["parent"] = request.parent
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
431
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
432
|
+
|
|
433
|
+
options.apply_defaults timeout: @config.rpcs.list_specialist_pools.timeout,
|
|
434
|
+
metadata: metadata,
|
|
435
|
+
retry_policy: @config.rpcs.list_specialist_pools.retry_policy
|
|
436
|
+
|
|
437
|
+
options.apply_defaults timeout: @config.timeout,
|
|
438
|
+
metadata: @config.metadata,
|
|
439
|
+
retry_policy: @config.retry_policy
|
|
440
|
+
|
|
441
|
+
@specialist_pool_service_stub.call_rpc :list_specialist_pools, request, options: options do |response, operation|
|
|
442
|
+
response = ::Gapic::PagedEnumerable.new @specialist_pool_service_stub, :list_specialist_pools, request, response, operation, options
|
|
443
|
+
yield response, operation if block_given?
|
|
444
|
+
return response
|
|
445
|
+
end
|
|
446
|
+
rescue ::GRPC::BadStatus => e
|
|
447
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
##
|
|
451
|
+
# Deletes a SpecialistPool as well as all Specialists in the pool.
|
|
452
|
+
#
|
|
453
|
+
# @overload delete_specialist_pool(request, options = nil)
|
|
454
|
+
# Pass arguments to `delete_specialist_pool` via a request object, either of type
|
|
455
|
+
# {::Google::Cloud::AIPlatform::V1::DeleteSpecialistPoolRequest} or an equivalent Hash.
|
|
456
|
+
#
|
|
457
|
+
# @param request [::Google::Cloud::AIPlatform::V1::DeleteSpecialistPoolRequest, ::Hash]
|
|
458
|
+
# A request object representing the call parameters. Required. To specify no
|
|
459
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
460
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
461
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
462
|
+
#
|
|
463
|
+
# @overload delete_specialist_pool(name: nil, force: nil)
|
|
464
|
+
# Pass arguments to `delete_specialist_pool` via keyword arguments. Note that at
|
|
465
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
466
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
467
|
+
#
|
|
468
|
+
# @param name [::String]
|
|
469
|
+
# Required. The resource name of the SpecialistPool to delete. Format:
|
|
470
|
+
# `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`
|
|
471
|
+
# @param force [::Boolean]
|
|
472
|
+
# If set to true, any specialist managers in this SpecialistPool will also be
|
|
473
|
+
# deleted. (Otherwise, the request will only work if the SpecialistPool has
|
|
474
|
+
# no specialist managers.)
|
|
475
|
+
#
|
|
476
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
477
|
+
# @yieldparam response [::Gapic::Operation]
|
|
478
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
479
|
+
#
|
|
480
|
+
# @return [::Gapic::Operation]
|
|
481
|
+
#
|
|
482
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
483
|
+
#
|
|
484
|
+
# @example Basic example
|
|
485
|
+
# require "google/cloud/ai_platform/v1"
|
|
486
|
+
#
|
|
487
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
488
|
+
# client = Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client.new
|
|
489
|
+
#
|
|
490
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
491
|
+
# request = Google::Cloud::AIPlatform::V1::DeleteSpecialistPoolRequest.new
|
|
492
|
+
#
|
|
493
|
+
# # Call the delete_specialist_pool method.
|
|
494
|
+
# result = client.delete_specialist_pool request
|
|
495
|
+
#
|
|
496
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
497
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
498
|
+
# # for results. Here is how to block until completion:
|
|
499
|
+
# result.wait_until_done! timeout: 60
|
|
500
|
+
# if result.response?
|
|
501
|
+
# p result.response
|
|
502
|
+
# else
|
|
503
|
+
# puts "Error!"
|
|
504
|
+
# end
|
|
505
|
+
#
|
|
506
|
+
def delete_specialist_pool request, options = nil
|
|
507
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
508
|
+
|
|
509
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteSpecialistPoolRequest
|
|
510
|
+
|
|
511
|
+
# Converts hash and nil to an options object
|
|
512
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
513
|
+
|
|
514
|
+
# Customize the options with defaults
|
|
515
|
+
metadata = @config.rpcs.delete_specialist_pool.metadata.to_h
|
|
516
|
+
|
|
517
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
518
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
519
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
520
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
521
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
522
|
+
|
|
523
|
+
header_params = {}
|
|
524
|
+
if request.name
|
|
525
|
+
header_params["name"] = request.name
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
529
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
530
|
+
|
|
531
|
+
options.apply_defaults timeout: @config.rpcs.delete_specialist_pool.timeout,
|
|
532
|
+
metadata: metadata,
|
|
533
|
+
retry_policy: @config.rpcs.delete_specialist_pool.retry_policy
|
|
534
|
+
|
|
535
|
+
options.apply_defaults timeout: @config.timeout,
|
|
536
|
+
metadata: @config.metadata,
|
|
537
|
+
retry_policy: @config.retry_policy
|
|
538
|
+
|
|
539
|
+
@specialist_pool_service_stub.call_rpc :delete_specialist_pool, request, options: options do |response, operation|
|
|
540
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
541
|
+
yield response, operation if block_given?
|
|
542
|
+
return response
|
|
543
|
+
end
|
|
544
|
+
rescue ::GRPC::BadStatus => e
|
|
545
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
##
|
|
549
|
+
# Updates a SpecialistPool.
|
|
550
|
+
#
|
|
551
|
+
# @overload update_specialist_pool(request, options = nil)
|
|
552
|
+
# Pass arguments to `update_specialist_pool` via a request object, either of type
|
|
553
|
+
# {::Google::Cloud::AIPlatform::V1::UpdateSpecialistPoolRequest} or an equivalent Hash.
|
|
554
|
+
#
|
|
555
|
+
# @param request [::Google::Cloud::AIPlatform::V1::UpdateSpecialistPoolRequest, ::Hash]
|
|
556
|
+
# A request object representing the call parameters. Required. To specify no
|
|
557
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
558
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
559
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
560
|
+
#
|
|
561
|
+
# @overload update_specialist_pool(specialist_pool: nil, update_mask: nil)
|
|
562
|
+
# Pass arguments to `update_specialist_pool` via keyword arguments. Note that at
|
|
563
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
564
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
565
|
+
#
|
|
566
|
+
# @param specialist_pool [::Google::Cloud::AIPlatform::V1::SpecialistPool, ::Hash]
|
|
567
|
+
# Required. The SpecialistPool which replaces the resource on the server.
|
|
568
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
569
|
+
# Required. The update mask applies to the resource.
|
|
570
|
+
#
|
|
571
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
572
|
+
# @yieldparam response [::Gapic::Operation]
|
|
573
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
574
|
+
#
|
|
575
|
+
# @return [::Gapic::Operation]
|
|
576
|
+
#
|
|
577
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
578
|
+
#
|
|
579
|
+
# @example Basic example
|
|
580
|
+
# require "google/cloud/ai_platform/v1"
|
|
581
|
+
#
|
|
582
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
583
|
+
# client = Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client.new
|
|
584
|
+
#
|
|
585
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
586
|
+
# request = Google::Cloud::AIPlatform::V1::UpdateSpecialistPoolRequest.new
|
|
587
|
+
#
|
|
588
|
+
# # Call the update_specialist_pool method.
|
|
589
|
+
# result = client.update_specialist_pool request
|
|
590
|
+
#
|
|
591
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
592
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
593
|
+
# # for results. Here is how to block until completion:
|
|
594
|
+
# result.wait_until_done! timeout: 60
|
|
595
|
+
# if result.response?
|
|
596
|
+
# p result.response
|
|
597
|
+
# else
|
|
598
|
+
# puts "Error!"
|
|
599
|
+
# end
|
|
600
|
+
#
|
|
601
|
+
def update_specialist_pool request, options = nil
|
|
602
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
603
|
+
|
|
604
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateSpecialistPoolRequest
|
|
605
|
+
|
|
606
|
+
# Converts hash and nil to an options object
|
|
607
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
608
|
+
|
|
609
|
+
# Customize the options with defaults
|
|
610
|
+
metadata = @config.rpcs.update_specialist_pool.metadata.to_h
|
|
611
|
+
|
|
612
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
|
613
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
614
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
615
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
616
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
617
|
+
|
|
618
|
+
header_params = {}
|
|
619
|
+
if request.specialist_pool&.name
|
|
620
|
+
header_params["specialist_pool.name"] = request.specialist_pool.name
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
624
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
625
|
+
|
|
626
|
+
options.apply_defaults timeout: @config.rpcs.update_specialist_pool.timeout,
|
|
627
|
+
metadata: metadata,
|
|
628
|
+
retry_policy: @config.rpcs.update_specialist_pool.retry_policy
|
|
629
|
+
|
|
630
|
+
options.apply_defaults timeout: @config.timeout,
|
|
631
|
+
metadata: @config.metadata,
|
|
632
|
+
retry_policy: @config.retry_policy
|
|
633
|
+
|
|
634
|
+
@specialist_pool_service_stub.call_rpc :update_specialist_pool, request, options: options do |response, operation|
|
|
635
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
636
|
+
yield response, operation if block_given?
|
|
637
|
+
return response
|
|
638
|
+
end
|
|
639
|
+
rescue ::GRPC::BadStatus => e
|
|
640
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
##
|
|
644
|
+
# Configuration class for the SpecialistPoolService API.
|
|
645
|
+
#
|
|
646
|
+
# This class represents the configuration for SpecialistPoolService,
|
|
647
|
+
# providing control over timeouts, retry behavior, logging, transport
|
|
648
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
|
649
|
+
# applied individually to specific RPCs. See
|
|
650
|
+
# {::Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client::Configuration::Rpcs}
|
|
651
|
+
# for a list of RPCs that can be configured independently.
|
|
652
|
+
#
|
|
653
|
+
# Configuration can be applied globally to all clients, or to a single client
|
|
654
|
+
# on construction.
|
|
655
|
+
#
|
|
656
|
+
# @example
|
|
657
|
+
#
|
|
658
|
+
# # Modify the global config, setting the timeout for
|
|
659
|
+
# # create_specialist_pool to 20 seconds,
|
|
660
|
+
# # and all remaining timeouts to 10 seconds.
|
|
661
|
+
# ::Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client.configure do |config|
|
|
662
|
+
# config.timeout = 10.0
|
|
663
|
+
# config.rpcs.create_specialist_pool.timeout = 20.0
|
|
664
|
+
# end
|
|
665
|
+
#
|
|
666
|
+
# # Apply the above configuration only to a new client.
|
|
667
|
+
# client = ::Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client.new do |config|
|
|
668
|
+
# config.timeout = 10.0
|
|
669
|
+
# config.rpcs.create_specialist_pool.timeout = 20.0
|
|
670
|
+
# end
|
|
671
|
+
#
|
|
672
|
+
# @!attribute [rw] endpoint
|
|
673
|
+
# The hostname or hostname:port of the service endpoint.
|
|
674
|
+
# Defaults to `"aiplatform.googleapis.com"`.
|
|
675
|
+
# @return [::String]
|
|
676
|
+
# @!attribute [rw] credentials
|
|
677
|
+
# Credentials to send with calls. You may provide any of the following types:
|
|
678
|
+
# * (`String`) The path to a service account key file in JSON format
|
|
679
|
+
# * (`Hash`) A service account key as a Hash
|
|
680
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
681
|
+
# (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
|
|
682
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
683
|
+
# (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
|
|
684
|
+
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
685
|
+
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
686
|
+
# * (`nil`) indicating no credentials
|
|
687
|
+
# @return [::Object]
|
|
688
|
+
# @!attribute [rw] scope
|
|
689
|
+
# The OAuth scopes
|
|
690
|
+
# @return [::Array<::String>]
|
|
691
|
+
# @!attribute [rw] lib_name
|
|
692
|
+
# The library name as recorded in instrumentation and logging
|
|
693
|
+
# @return [::String]
|
|
694
|
+
# @!attribute [rw] lib_version
|
|
695
|
+
# The library version as recorded in instrumentation and logging
|
|
696
|
+
# @return [::String]
|
|
697
|
+
# @!attribute [rw] channel_args
|
|
698
|
+
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
|
699
|
+
# `GRPC::Core::Channel` object is provided as the credential.
|
|
700
|
+
# @return [::Hash]
|
|
701
|
+
# @!attribute [rw] interceptors
|
|
702
|
+
# An array of interceptors that are run before calls are executed.
|
|
703
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
|
704
|
+
# @!attribute [rw] timeout
|
|
705
|
+
# The call timeout in seconds.
|
|
706
|
+
# @return [::Numeric]
|
|
707
|
+
# @!attribute [rw] metadata
|
|
708
|
+
# Additional gRPC headers to be sent with the call.
|
|
709
|
+
# @return [::Hash{::Symbol=>::String}]
|
|
710
|
+
# @!attribute [rw] retry_policy
|
|
711
|
+
# The retry policy. The value is a hash with the following keys:
|
|
712
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
713
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
714
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
715
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
716
|
+
# trigger a retry.
|
|
717
|
+
# @return [::Hash]
|
|
718
|
+
# @!attribute [rw] quota_project
|
|
719
|
+
# A separate project against which to charge quota.
|
|
720
|
+
# @return [::String]
|
|
721
|
+
#
|
|
722
|
+
class Configuration
|
|
723
|
+
extend ::Gapic::Config
|
|
724
|
+
|
|
725
|
+
config_attr :endpoint, "aiplatform.googleapis.com", ::String
|
|
726
|
+
config_attr :credentials, nil do |value|
|
|
727
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
728
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
729
|
+
allowed.any? { |klass| klass === value }
|
|
730
|
+
end
|
|
731
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
732
|
+
config_attr :lib_name, nil, ::String, nil
|
|
733
|
+
config_attr :lib_version, nil, ::String, nil
|
|
734
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
|
735
|
+
config_attr :interceptors, nil, ::Array, nil
|
|
736
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
737
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
738
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
739
|
+
config_attr :quota_project, nil, ::String, nil
|
|
740
|
+
|
|
741
|
+
# @private
|
|
742
|
+
def initialize parent_config = nil
|
|
743
|
+
@parent_config = parent_config unless parent_config.nil?
|
|
744
|
+
|
|
745
|
+
yield self if block_given?
|
|
746
|
+
end
|
|
747
|
+
|
|
748
|
+
##
|
|
749
|
+
# Configurations for individual RPCs
|
|
750
|
+
# @return [Rpcs]
|
|
751
|
+
#
|
|
752
|
+
def rpcs
|
|
753
|
+
@rpcs ||= begin
|
|
754
|
+
parent_rpcs = nil
|
|
755
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
|
756
|
+
Rpcs.new parent_rpcs
|
|
757
|
+
end
|
|
758
|
+
end
|
|
759
|
+
|
|
760
|
+
##
|
|
761
|
+
# Configuration RPC class for the SpecialistPoolService API.
|
|
762
|
+
#
|
|
763
|
+
# Includes fields providing the configuration for each RPC in this service.
|
|
764
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
|
765
|
+
# the following configuration fields:
|
|
766
|
+
#
|
|
767
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
|
768
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
|
769
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
|
770
|
+
# include the following keys:
|
|
771
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
772
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
773
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
774
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
775
|
+
# trigger a retry.
|
|
776
|
+
#
|
|
777
|
+
class Rpcs
|
|
778
|
+
##
|
|
779
|
+
# RPC-specific configuration for `create_specialist_pool`
|
|
780
|
+
# @return [::Gapic::Config::Method]
|
|
781
|
+
#
|
|
782
|
+
attr_reader :create_specialist_pool
|
|
783
|
+
##
|
|
784
|
+
# RPC-specific configuration for `get_specialist_pool`
|
|
785
|
+
# @return [::Gapic::Config::Method]
|
|
786
|
+
#
|
|
787
|
+
attr_reader :get_specialist_pool
|
|
788
|
+
##
|
|
789
|
+
# RPC-specific configuration for `list_specialist_pools`
|
|
790
|
+
# @return [::Gapic::Config::Method]
|
|
791
|
+
#
|
|
792
|
+
attr_reader :list_specialist_pools
|
|
793
|
+
##
|
|
794
|
+
# RPC-specific configuration for `delete_specialist_pool`
|
|
795
|
+
# @return [::Gapic::Config::Method]
|
|
796
|
+
#
|
|
797
|
+
attr_reader :delete_specialist_pool
|
|
798
|
+
##
|
|
799
|
+
# RPC-specific configuration for `update_specialist_pool`
|
|
800
|
+
# @return [::Gapic::Config::Method]
|
|
801
|
+
#
|
|
802
|
+
attr_reader :update_specialist_pool
|
|
803
|
+
|
|
804
|
+
# @private
|
|
805
|
+
def initialize parent_rpcs = nil
|
|
806
|
+
create_specialist_pool_config = parent_rpcs.create_specialist_pool if parent_rpcs.respond_to? :create_specialist_pool
|
|
807
|
+
@create_specialist_pool = ::Gapic::Config::Method.new create_specialist_pool_config
|
|
808
|
+
get_specialist_pool_config = parent_rpcs.get_specialist_pool if parent_rpcs.respond_to? :get_specialist_pool
|
|
809
|
+
@get_specialist_pool = ::Gapic::Config::Method.new get_specialist_pool_config
|
|
810
|
+
list_specialist_pools_config = parent_rpcs.list_specialist_pools if parent_rpcs.respond_to? :list_specialist_pools
|
|
811
|
+
@list_specialist_pools = ::Gapic::Config::Method.new list_specialist_pools_config
|
|
812
|
+
delete_specialist_pool_config = parent_rpcs.delete_specialist_pool if parent_rpcs.respond_to? :delete_specialist_pool
|
|
813
|
+
@delete_specialist_pool = ::Gapic::Config::Method.new delete_specialist_pool_config
|
|
814
|
+
update_specialist_pool_config = parent_rpcs.update_specialist_pool if parent_rpcs.respond_to? :update_specialist_pool
|
|
815
|
+
@update_specialist_pool = ::Gapic::Config::Method.new update_specialist_pool_config
|
|
816
|
+
|
|
817
|
+
yield self if block_given?
|
|
818
|
+
end
|
|
819
|
+
end
|
|
820
|
+
end
|
|
821
|
+
end
|
|
822
|
+
end
|
|
823
|
+
end
|
|
824
|
+
end
|
|
825
|
+
end
|
|
826
|
+
end
|