google-cloud-ai_platform-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (289) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +1364 -0
  7. data/lib/google/cloud/ai_platform/v1/dataset_service/credentials.rb +47 -0
  8. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +767 -0
  9. data/lib/google/cloud/ai_platform/v1/dataset_service/paths.rb +111 -0
  10. data/lib/google/cloud/ai_platform/v1/dataset_service.rb +51 -0
  11. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +1076 -0
  12. data/lib/google/cloud/ai_platform/v1/endpoint_service/credentials.rb +47 -0
  13. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +767 -0
  14. data/lib/google/cloud/ai_platform/v1/endpoint_service/paths.rb +124 -0
  15. data/lib/google/cloud/ai_platform/v1/endpoint_service.rb +50 -0
  16. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +508 -0
  17. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/credentials.rb +47 -0
  18. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/paths.rb +54 -0
  19. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service.rb +49 -0
  20. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +2707 -0
  21. data/lib/google/cloud/ai_platform/v1/featurestore_service/credentials.rb +47 -0
  22. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +767 -0
  23. data/lib/google/cloud/ai_platform/v1/featurestore_service/paths.rb +113 -0
  24. data/lib/google/cloud/ai_platform/v1/featurestore_service.rb +50 -0
  25. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +1146 -0
  26. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/credentials.rb +47 -0
  27. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +767 -0
  28. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/paths.rb +88 -0
  29. data/lib/google/cloud/ai_platform/v1/index_endpoint_service.rb +50 -0
  30. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +823 -0
  31. data/lib/google/cloud/ai_platform/v1/index_service/credentials.rb +47 -0
  32. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +767 -0
  33. data/lib/google/cloud/ai_platform/v1/index_service/paths.rb +88 -0
  34. data/lib/google/cloud/ai_platform/v1/index_service.rb +50 -0
  35. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +3236 -0
  36. data/lib/google/cloud/ai_platform/v1/job_service/credentials.rb +47 -0
  37. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +767 -0
  38. data/lib/google/cloud/ai_platform/v1/job_service/paths.rb +259 -0
  39. data/lib/google/cloud/ai_platform/v1/job_service.rb +50 -0
  40. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +3654 -0
  41. data/lib/google/cloud/ai_platform/v1/metadata_service/credentials.rb +47 -0
  42. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +767 -0
  43. data/lib/google/cloud/ai_platform/v1/metadata_service/paths.rb +153 -0
  44. data/lib/google/cloud/ai_platform/v1/metadata_service.rb +50 -0
  45. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +538 -0
  46. data/lib/google/cloud/ai_platform/v1/migration_service/credentials.rb +47 -0
  47. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +767 -0
  48. data/lib/google/cloud/ai_platform/v1/migration_service/paths.rb +148 -0
  49. data/lib/google/cloud/ai_platform/v1/migration_service.rb +51 -0
  50. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +1355 -0
  51. data/lib/google/cloud/ai_platform/v1/model_service/credentials.rb +47 -0
  52. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +767 -0
  53. data/lib/google/cloud/ai_platform/v1/model_service/paths.rb +151 -0
  54. data/lib/google/cloud/ai_platform/v1/model_service.rb +50 -0
  55. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +1384 -0
  56. data/lib/google/cloud/ai_platform/v1/pipeline_service/credentials.rb +47 -0
  57. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +767 -0
  58. data/lib/google/cloud/ai_platform/v1/pipeline_service/paths.rb +225 -0
  59. data/lib/google/cloud/ai_platform/v1/pipeline_service.rb +52 -0
  60. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +650 -0
  61. data/lib/google/cloud/ai_platform/v1/prediction_service/credentials.rb +47 -0
  62. data/lib/google/cloud/ai_platform/v1/prediction_service/paths.rb +52 -0
  63. data/lib/google/cloud/ai_platform/v1/prediction_service.rb +49 -0
  64. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +826 -0
  65. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/credentials.rb +47 -0
  66. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +767 -0
  67. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/paths.rb +69 -0
  68. data/lib/google/cloud/ai_platform/v1/specialist_pool_service.rb +55 -0
  69. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +3224 -0
  70. data/lib/google/cloud/ai_platform/v1/tensorboard_service/credentials.rb +48 -0
  71. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +767 -0
  72. data/lib/google/cloud/ai_platform/v1/tensorboard_service/paths.rb +138 -0
  73. data/lib/google/cloud/ai_platform/v1/tensorboard_service.rb +50 -0
  74. data/lib/google/cloud/ai_platform/v1/version.rb +28 -0
  75. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +1793 -0
  76. data/lib/google/cloud/ai_platform/v1/vizier_service/credentials.rb +47 -0
  77. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +767 -0
  78. data/lib/google/cloud/ai_platform/v1/vizier_service/paths.rb +109 -0
  79. data/lib/google/cloud/ai_platform/v1/vizier_service.rb +54 -0
  80. data/lib/google/cloud/ai_platform/v1.rb +52 -0
  81. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +29 -0
  82. data/lib/google/cloud/aiplatform/v1/annotation_pb.rb +35 -0
  83. data/lib/google/cloud/aiplatform/v1/annotation_spec_pb.rb +30 -0
  84. data/lib/google/cloud/aiplatform/v1/artifact_pb.rb +45 -0
  85. data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +83 -0
  86. data/lib/google/cloud/aiplatform/v1/completion_stats_pb.rb +27 -0
  87. data/lib/google/cloud/aiplatform/v1/context_pb.rb +38 -0
  88. data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +84 -0
  89. data/lib/google/cloud/aiplatform/v1/data_item_pb.rb +32 -0
  90. data/lib/google/cloud/aiplatform/v1/data_labeling_job_pb.rb +78 -0
  91. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +53 -0
  92. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +126 -0
  93. data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +64 -0
  94. data/lib/google/cloud/aiplatform/v1/deployed_index_ref_pb.rb +26 -0
  95. data/lib/google/cloud/aiplatform/v1/deployed_model_ref_pb.rb +26 -0
  96. data/lib/google/cloud/aiplatform/v1/encryption_spec_pb.rb +24 -0
  97. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +67 -0
  98. data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +90 -0
  99. data/lib/google/cloud/aiplatform/v1/endpoint_service_services_pb.rb +58 -0
  100. data/lib/google/cloud/aiplatform/v1/entity_type_pb.rb +32 -0
  101. data/lib/google/cloud/aiplatform/v1/env_var_pb.rb +25 -0
  102. data/lib/google/cloud/aiplatform/v1/event_pb.rb +36 -0
  103. data/lib/google/cloud/aiplatform/v1/execution_pb.rb +48 -0
  104. data/lib/google/cloud/aiplatform/v1/explanation_metadata_pb.rb +107 -0
  105. data/lib/google/cloud/aiplatform/v1/explanation_pb.rb +106 -0
  106. data/lib/google/cloud/aiplatform/v1/feature_monitoring_stats_pb.rb +30 -0
  107. data/lib/google/cloud/aiplatform/v1/feature_pb.rb +46 -0
  108. data/lib/google/cloud/aiplatform/v1/feature_selector_pb.rb +28 -0
  109. data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +86 -0
  110. data/lib/google/cloud/aiplatform/v1/featurestore_online_service_services_pb.rb +51 -0
  111. data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +44 -0
  112. data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +280 -0
  113. data/lib/google/cloud/aiplatform/v1/featurestore_service_services_pb.rb +109 -0
  114. data/lib/google/cloud/aiplatform/v1/hyperparameter_tuning_job_pb.rb +46 -0
  115. data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +66 -0
  116. data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +101 -0
  117. data/lib/google/cloud/aiplatform/v1/index_endpoint_service_services_pb.rb +62 -0
  118. data/lib/google/cloud/aiplatform/v1/index_pb.rb +38 -0
  119. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +98 -0
  120. data/lib/google/cloud/aiplatform/v1/index_service_services_pb.rb +55 -0
  121. data/lib/google/cloud/aiplatform/v1/io_pb.rb +56 -0
  122. data/lib/google/cloud/aiplatform/v1/job_service_pb.rb +217 -0
  123. data/lib/google/cloud/aiplatform/v1/job_service_services_pb.rb +134 -0
  124. data/lib/google/cloud/aiplatform/v1/job_state_pb.rb +32 -0
  125. data/lib/google/cloud/aiplatform/v1/lineage_subgraph_pb.rb +28 -0
  126. data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +59 -0
  127. data/lib/google/cloud/aiplatform/v1/manual_batch_tuning_parameters_pb.rb +24 -0
  128. data/lib/google/cloud/aiplatform/v1/metadata_schema_pb.rb +38 -0
  129. data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +272 -0
  130. data/lib/google/cloud/aiplatform/v1/metadata_service_services_pb.rb +119 -0
  131. data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +36 -0
  132. data/lib/google/cloud/aiplatform/v1/migratable_resource_pb.rb +59 -0
  133. data/lib/google/cloud/aiplatform/v1/migration_service_pb.rb +106 -0
  134. data/lib/google/cloud/aiplatform/v1/migration_service_services_pb.rb +51 -0
  135. data/lib/google/cloud/aiplatform/v1/model_deployment_monitoring_job_pb.rb +111 -0
  136. data/lib/google/cloud/aiplatform/v1/model_evaluation_pb.rb +33 -0
  137. data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +36 -0
  138. data/lib/google/cloud/aiplatform/v1/model_monitoring_pb.rb +93 -0
  139. data/lib/google/cloud/aiplatform/v1/model_pb.rb +88 -0
  140. data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +129 -0
  141. data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +69 -0
  142. data/lib/google/cloud/aiplatform/v1/operation_pb.rb +32 -0
  143. data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +115 -0
  144. data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +88 -0
  145. data/lib/google/cloud/aiplatform/v1/pipeline_service_services_pb.rb +84 -0
  146. data/lib/google/cloud/aiplatform/v1/pipeline_state_pb.rb +31 -0
  147. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +57 -0
  148. data/lib/google/cloud/aiplatform/v1/prediction_service_services_pb.rb +66 -0
  149. data/lib/google/cloud/aiplatform/v1/specialist_pool_pb.rb +30 -0
  150. data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +66 -0
  151. data/lib/google/cloud/aiplatform/v1/specialist_pool_service_services_pb.rb +58 -0
  152. data/lib/google/cloud/aiplatform/v1/study_pb.rb +191 -0
  153. data/lib/google/cloud/aiplatform/v1/tensorboard_data_pb.rb +56 -0
  154. data/lib/google/cloud/aiplatform/v1/tensorboard_experiment_pb.rb +33 -0
  155. data/lib/google/cloud/aiplatform/v1/tensorboard_pb.rb +36 -0
  156. data/lib/google/cloud/aiplatform/v1/tensorboard_run_pb.rb +32 -0
  157. data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +244 -0
  158. data/lib/google/cloud/aiplatform/v1/tensorboard_service_services_pb.rb +115 -0
  159. data/lib/google/cloud/aiplatform/v1/tensorboard_time_series_pb.rb +48 -0
  160. data/lib/google/cloud/aiplatform/v1/training_pipeline_pb.rb +95 -0
  161. data/lib/google/cloud/aiplatform/v1/types_pb.rb +35 -0
  162. data/lib/google/cloud/aiplatform/v1/unmanaged_container_model_pb.rb +27 -0
  163. data/lib/google/cloud/aiplatform/v1/user_action_reference_pb.rb +27 -0
  164. data/lib/google/cloud/aiplatform/v1/value_pb.rb +27 -0
  165. data/lib/google/cloud/aiplatform/v1/vizier_service_pb.rb +136 -0
  166. data/lib/google/cloud/aiplatform/v1/vizier_service_services_pb.rb +90 -0
  167. data/lib/google-cloud-ai_platform-v1.rb +21 -0
  168. data/proto_docs/README.md +4 -0
  169. data/proto_docs/google/api/field_behavior.rb +71 -0
  170. data/proto_docs/google/api/httpbody.rb +80 -0
  171. data/proto_docs/google/api/resource.rb +222 -0
  172. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +50 -0
  173. data/proto_docs/google/cloud/aiplatform/v1/annotation.rb +92 -0
  174. data/proto_docs/google/cloud/aiplatform/v1/annotation_spec.rb +50 -0
  175. data/proto_docs/google/cloud/aiplatform/v1/artifact.rb +112 -0
  176. data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +278 -0
  177. data/proto_docs/google/cloud/aiplatform/v1/completion_stats.rb +46 -0
  178. data/proto_docs/google/cloud/aiplatform/v1/context.rb +92 -0
  179. data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +272 -0
  180. data/proto_docs/google/cloud/aiplatform/v1/data_item.rb +73 -0
  181. data/proto_docs/google/cloud/aiplatform/v1/data_labeling_job.rb +207 -0
  182. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +154 -0
  183. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +301 -0
  184. data/proto_docs/google/cloud/aiplatform/v1/deployed_index_ref.rb +38 -0
  185. data/proto_docs/google/cloud/aiplatform/v1/deployed_model_ref.rb +38 -0
  186. data/proto_docs/google/cloud/aiplatform/v1/encryption_spec.rb +40 -0
  187. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +227 -0
  188. data/proto_docs/google/cloud/aiplatform/v1/endpoint_service.rb +258 -0
  189. data/proto_docs/google/cloud/aiplatform/v1/entity_type.rb +79 -0
  190. data/proto_docs/google/cloud/aiplatform/v1/env_var.rb +44 -0
  191. data/proto_docs/google/cloud/aiplatform/v1/event.rb +79 -0
  192. data/proto_docs/google/cloud/aiplatform/v1/execution.rb +118 -0
  193. data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +445 -0
  194. data/proto_docs/google/cloud/aiplatform/v1/explanation_metadata.rb +419 -0
  195. data/proto_docs/google/cloud/aiplatform/v1/feature.rb +115 -0
  196. data/proto_docs/google/cloud/aiplatform/v1/feature_monitoring_stats.rb +88 -0
  197. data/proto_docs/google/cloud/aiplatform/v1/feature_selector.rb +49 -0
  198. data/proto_docs/google/cloud/aiplatform/v1/featurestore.rb +115 -0
  199. data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +203 -0
  200. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +978 -0
  201. data/proto_docs/google/cloud/aiplatform/v1/hyperparameter_tuning_job.rb +109 -0
  202. data/proto_docs/google/cloud/aiplatform/v1/index.rb +98 -0
  203. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +252 -0
  204. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint_service.rb +240 -0
  205. data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +220 -0
  206. data/proto_docs/google/cloud/aiplatform/v1/io.rb +134 -0
  207. data/proto_docs/google/cloud/aiplatform/v1/job_service.rb +660 -0
  208. data/proto_docs/google/cloud/aiplatform/v1/job_state.rb +60 -0
  209. data/proto_docs/google/cloud/aiplatform/v1/lineage_subgraph.rb +42 -0
  210. data/proto_docs/google/cloud/aiplatform/v1/machine_resources.rb +194 -0
  211. data/proto_docs/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.rb +41 -0
  212. data/proto_docs/google/cloud/aiplatform/v1/metadata_schema.rb +74 -0
  213. data/proto_docs/google/cloud/aiplatform/v1/metadata_service.rb +912 -0
  214. data/proto_docs/google/cloud/aiplatform/v1/metadata_store.rb +62 -0
  215. data/proto_docs/google/cloud/aiplatform/v1/migratable_resource.rb +133 -0
  216. data/proto_docs/google/cloud/aiplatform/v1/migration_service.rb +260 -0
  217. data/proto_docs/google/cloud/aiplatform/v1/model.rb +562 -0
  218. data/proto_docs/google/cloud/aiplatform/v1/model_deployment_monitoring_job.rb +293 -0
  219. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +60 -0
  220. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation_slice.rb +68 -0
  221. data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +257 -0
  222. data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +329 -0
  223. data/proto_docs/google/cloud/aiplatform/v1/operation.rb +55 -0
  224. data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +347 -0
  225. data/proto_docs/google/cloud/aiplatform/v1/pipeline_service.rb +258 -0
  226. data/proto_docs/google/cloud/aiplatform/v1/pipeline_state.rb +59 -0
  227. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +165 -0
  228. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.rb +52 -0
  229. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.rb +52 -0
  230. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.rb +47 -0
  231. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.rb +46 -0
  232. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.rb +53 -0
  233. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.rb +46 -0
  234. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.rb +59 -0
  235. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.rb +59 -0
  236. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.rb +59 -0
  237. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/params/image_classification.rb +47 -0
  238. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.rb +47 -0
  239. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.rb +44 -0
  240. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.rb +47 -0
  241. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/params/video_classification.rb +72 -0
  242. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.rb +51 -0
  243. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/classification.rb +49 -0
  244. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.rb +58 -0
  245. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.rb +53 -0
  246. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.rb +47 -0
  247. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.rb +47 -0
  248. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.rb +60 -0
  249. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.rb +45 -0
  250. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.rb +60 -0
  251. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.rb +73 -0
  252. data/proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.rb +91 -0
  253. data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.rb +142 -0
  254. data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.rb +134 -0
  255. data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.rb +120 -0
  256. data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.rb +315 -0
  257. data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.rb +48 -0
  258. data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.rb +46 -0
  259. data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.rb +55 -0
  260. data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.rb +73 -0
  261. data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.rb +67 -0
  262. data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.rb +78 -0
  263. data/proto_docs/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.rb +51 -0
  264. data/proto_docs/google/cloud/aiplatform/v1/specialist_pool.rb +58 -0
  265. data/proto_docs/google/cloud/aiplatform/v1/specialist_pool_service.rb +136 -0
  266. data/proto_docs/google/cloud/aiplatform/v1/study.rb +543 -0
  267. data/proto_docs/google/cloud/aiplatform/v1/tensorboard.rb +89 -0
  268. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_data.rb +110 -0
  269. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_experiment.rb +82 -0
  270. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_run.rb +85 -0
  271. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +706 -0
  272. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_time_series.rb +101 -0
  273. data/proto_docs/google/cloud/aiplatform/v1/training_pipeline.rb +381 -0
  274. data/proto_docs/google/cloud/aiplatform/v1/types.rb +62 -0
  275. data/proto_docs/google/cloud/aiplatform/v1/unmanaged_container_model.rb +44 -0
  276. data/proto_docs/google/cloud/aiplatform/v1/user_action_reference.rb +49 -0
  277. data/proto_docs/google/cloud/aiplatform/v1/value.rb +41 -0
  278. data/proto_docs/google/cloud/aiplatform/v1/vizier_service.rb +332 -0
  279. data/proto_docs/google/longrunning/operations.rb +164 -0
  280. data/proto_docs/google/protobuf/any.rb +141 -0
  281. data/proto_docs/google/protobuf/duration.rb +98 -0
  282. data/proto_docs/google/protobuf/empty.rb +36 -0
  283. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  284. data/proto_docs/google/protobuf/struct.rb +96 -0
  285. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  286. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  287. data/proto_docs/google/rpc/status.rb +46 -0
  288. data/proto_docs/google/type/money.rb +43 -0
  289. metadata +479 -0
@@ -0,0 +1,1146 @@
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/index_endpoint_service_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module AIPlatform
25
+ module V1
26
+ module IndexEndpointService
27
+ ##
28
+ # Client for the IndexEndpointService service.
29
+ #
30
+ # A service for managing Vertex AI's IndexEndpoints.
31
+ #
32
+ class Client
33
+ include Paths
34
+
35
+ # @private
36
+ attr_reader :index_endpoint_service_stub
37
+
38
+ ##
39
+ # Configure the IndexEndpointService Client class.
40
+ #
41
+ # See {::Google::Cloud::AIPlatform::V1::IndexEndpointService::Client::Configuration}
42
+ # for a description of the configuration fields.
43
+ #
44
+ # @example
45
+ #
46
+ # # Modify the configuration for all IndexEndpointService clients
47
+ # ::Google::Cloud::AIPlatform::V1::IndexEndpointService::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 IndexEndpointService 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::IndexEndpointService::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 IndexEndpointService client object.
95
+ #
96
+ # @example
97
+ #
98
+ # # Create a client using the default configuration
99
+ # client = ::Google::Cloud::AIPlatform::V1::IndexEndpointService::Client.new
100
+ #
101
+ # # Create a client using a custom configuration
102
+ # client = ::Google::Cloud::AIPlatform::V1::IndexEndpointService::Client.new do |config|
103
+ # config.timeout = 10.0
104
+ # end
105
+ #
106
+ # @yield [config] Configure the IndexEndpointService 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/index_endpoint_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
+ @operations_client = Operations.new do |config|
137
+ config.credentials = credentials
138
+ config.quota_project = @quota_project_id
139
+ config.endpoint = @config.endpoint
140
+ end
141
+
142
+ @index_endpoint_service_stub = ::Gapic::ServiceStub.new(
143
+ ::Google::Cloud::AIPlatform::V1::IndexEndpointService::Stub,
144
+ credentials: credentials,
145
+ endpoint: @config.endpoint,
146
+ channel_args: @config.channel_args,
147
+ interceptors: @config.interceptors
148
+ )
149
+ end
150
+
151
+ ##
152
+ # Get the associated client for long-running operations.
153
+ #
154
+ # @return [::Google::Cloud::AIPlatform::V1::IndexEndpointService::Operations]
155
+ #
156
+ attr_reader :operations_client
157
+
158
+ # Service calls
159
+
160
+ ##
161
+ # Creates an IndexEndpoint.
162
+ #
163
+ # @overload create_index_endpoint(request, options = nil)
164
+ # Pass arguments to `create_index_endpoint` via a request object, either of type
165
+ # {::Google::Cloud::AIPlatform::V1::CreateIndexEndpointRequest} or an equivalent Hash.
166
+ #
167
+ # @param request [::Google::Cloud::AIPlatform::V1::CreateIndexEndpointRequest, ::Hash]
168
+ # A request object representing the call parameters. Required. To specify no
169
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
170
+ # @param options [::Gapic::CallOptions, ::Hash]
171
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
172
+ #
173
+ # @overload create_index_endpoint(parent: nil, index_endpoint: nil)
174
+ # Pass arguments to `create_index_endpoint` via keyword arguments. Note that at
175
+ # least one keyword argument is required. To specify no parameters, or to keep all
176
+ # the default parameter values, pass an empty Hash as a request object (see above).
177
+ #
178
+ # @param parent [::String]
179
+ # Required. The resource name of the Location to create the IndexEndpoint in.
180
+ # Format: `projects/{project}/locations/{location}`
181
+ # @param index_endpoint [::Google::Cloud::AIPlatform::V1::IndexEndpoint, ::Hash]
182
+ # Required. The IndexEndpoint to create.
183
+ #
184
+ # @yield [response, operation] Access the result along with the RPC operation
185
+ # @yieldparam response [::Gapic::Operation]
186
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
187
+ #
188
+ # @return [::Gapic::Operation]
189
+ #
190
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
191
+ #
192
+ # @example Basic example
193
+ # require "google/cloud/ai_platform/v1"
194
+ #
195
+ # # Create a client object. The client can be reused for multiple calls.
196
+ # client = Google::Cloud::AIPlatform::V1::IndexEndpointService::Client.new
197
+ #
198
+ # # Create a request. To set request fields, pass in keyword arguments.
199
+ # request = Google::Cloud::AIPlatform::V1::CreateIndexEndpointRequest.new
200
+ #
201
+ # # Call the create_index_endpoint method.
202
+ # result = client.create_index_endpoint request
203
+ #
204
+ # # The returned object is of type Gapic::Operation. You can use this
205
+ # # object to check the status of an operation, cancel it, or wait
206
+ # # for results. Here is how to block until completion:
207
+ # result.wait_until_done! timeout: 60
208
+ # if result.response?
209
+ # p result.response
210
+ # else
211
+ # puts "Error!"
212
+ # end
213
+ #
214
+ def create_index_endpoint request, options = nil
215
+ raise ::ArgumentError, "request must be provided" if request.nil?
216
+
217
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateIndexEndpointRequest
218
+
219
+ # Converts hash and nil to an options object
220
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
221
+
222
+ # Customize the options with defaults
223
+ metadata = @config.rpcs.create_index_endpoint.metadata.to_h
224
+
225
+ # Set x-goog-api-client and x-goog-user-project headers
226
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
227
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
228
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
229
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
230
+
231
+ header_params = {}
232
+ if request.parent
233
+ header_params["parent"] = request.parent
234
+ end
235
+
236
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
237
+ metadata[:"x-goog-request-params"] ||= request_params_header
238
+
239
+ options.apply_defaults timeout: @config.rpcs.create_index_endpoint.timeout,
240
+ metadata: metadata,
241
+ retry_policy: @config.rpcs.create_index_endpoint.retry_policy
242
+
243
+ options.apply_defaults timeout: @config.timeout,
244
+ metadata: @config.metadata,
245
+ retry_policy: @config.retry_policy
246
+
247
+ @index_endpoint_service_stub.call_rpc :create_index_endpoint, request, options: options do |response, operation|
248
+ response = ::Gapic::Operation.new response, @operations_client, options: options
249
+ yield response, operation if block_given?
250
+ return response
251
+ end
252
+ rescue ::GRPC::BadStatus => e
253
+ raise ::Google::Cloud::Error.from_error(e)
254
+ end
255
+
256
+ ##
257
+ # Gets an IndexEndpoint.
258
+ #
259
+ # @overload get_index_endpoint(request, options = nil)
260
+ # Pass arguments to `get_index_endpoint` via a request object, either of type
261
+ # {::Google::Cloud::AIPlatform::V1::GetIndexEndpointRequest} or an equivalent Hash.
262
+ #
263
+ # @param request [::Google::Cloud::AIPlatform::V1::GetIndexEndpointRequest, ::Hash]
264
+ # A request object representing the call parameters. Required. To specify no
265
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
266
+ # @param options [::Gapic::CallOptions, ::Hash]
267
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
268
+ #
269
+ # @overload get_index_endpoint(name: nil)
270
+ # Pass arguments to `get_index_endpoint` via keyword arguments. Note that at
271
+ # least one keyword argument is required. To specify no parameters, or to keep all
272
+ # the default parameter values, pass an empty Hash as a request object (see above).
273
+ #
274
+ # @param name [::String]
275
+ # Required. The name of the IndexEndpoint resource.
276
+ # Format:
277
+ # `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
278
+ #
279
+ # @yield [response, operation] Access the result along with the RPC operation
280
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::IndexEndpoint]
281
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
282
+ #
283
+ # @return [::Google::Cloud::AIPlatform::V1::IndexEndpoint]
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::IndexEndpointService::Client.new
292
+ #
293
+ # # Create a request. To set request fields, pass in keyword arguments.
294
+ # request = Google::Cloud::AIPlatform::V1::GetIndexEndpointRequest.new
295
+ #
296
+ # # Call the get_index_endpoint method.
297
+ # result = client.get_index_endpoint request
298
+ #
299
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::IndexEndpoint.
300
+ # p result
301
+ #
302
+ def get_index_endpoint request, options = nil
303
+ raise ::ArgumentError, "request must be provided" if request.nil?
304
+
305
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetIndexEndpointRequest
306
+
307
+ # Converts hash and nil to an options object
308
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
309
+
310
+ # Customize the options with defaults
311
+ metadata = @config.rpcs.get_index_endpoint.metadata.to_h
312
+
313
+ # Set x-goog-api-client and x-goog-user-project headers
314
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
315
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
316
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
317
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
318
+
319
+ header_params = {}
320
+ if request.name
321
+ header_params["name"] = request.name
322
+ end
323
+
324
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
325
+ metadata[:"x-goog-request-params"] ||= request_params_header
326
+
327
+ options.apply_defaults timeout: @config.rpcs.get_index_endpoint.timeout,
328
+ metadata: metadata,
329
+ retry_policy: @config.rpcs.get_index_endpoint.retry_policy
330
+
331
+ options.apply_defaults timeout: @config.timeout,
332
+ metadata: @config.metadata,
333
+ retry_policy: @config.retry_policy
334
+
335
+ @index_endpoint_service_stub.call_rpc :get_index_endpoint, request, options: options do |response, operation|
336
+ yield response, operation if block_given?
337
+ return response
338
+ end
339
+ rescue ::GRPC::BadStatus => e
340
+ raise ::Google::Cloud::Error.from_error(e)
341
+ end
342
+
343
+ ##
344
+ # Lists IndexEndpoints in a Location.
345
+ #
346
+ # @overload list_index_endpoints(request, options = nil)
347
+ # Pass arguments to `list_index_endpoints` via a request object, either of type
348
+ # {::Google::Cloud::AIPlatform::V1::ListIndexEndpointsRequest} or an equivalent Hash.
349
+ #
350
+ # @param request [::Google::Cloud::AIPlatform::V1::ListIndexEndpointsRequest, ::Hash]
351
+ # A request object representing the call parameters. Required. To specify no
352
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
353
+ # @param options [::Gapic::CallOptions, ::Hash]
354
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
355
+ #
356
+ # @overload list_index_endpoints(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil)
357
+ # Pass arguments to `list_index_endpoints` via keyword arguments. Note that at
358
+ # least one keyword argument is required. To specify no parameters, or to keep all
359
+ # the default parameter values, pass an empty Hash as a request object (see above).
360
+ #
361
+ # @param parent [::String]
362
+ # Required. The resource name of the Location from which to list the IndexEndpoints.
363
+ # Format: `projects/{project}/locations/{location}`
364
+ # @param filter [::String]
365
+ # Optional. An expression for filtering the results of the request. For field names
366
+ # both snake_case and camelCase are supported.
367
+ #
368
+ # * `index_endpoint` supports = and !=. `index_endpoint` represents the
369
+ # IndexEndpoint ID, ie. the last segment of the IndexEndpoint's
370
+ # {::Google::Cloud::AIPlatform::V1::IndexEndpoint#name resourcename}.
371
+ # * `display_name` supports =, != and regex()
372
+ # (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax)
373
+ # * `labels` supports general map functions that is:
374
+ # `labels.key=value` - key:value equality
375
+ # `labels.key:* or labels:key - key existence
376
+ # A key including a space must be quoted. `labels."a key"`.
377
+ #
378
+ # Some examples:
379
+ # * `index_endpoint="1"`
380
+ # * `display_name="myDisplayName"`
381
+ # * `regex(display_name, "^A") -> The display name starts with an A.
382
+ # * `labels.myKey="myValue"`
383
+ # @param page_size [::Integer]
384
+ # Optional. The standard list page size.
385
+ # @param page_token [::String]
386
+ # Optional. The standard list page token.
387
+ # Typically obtained via
388
+ # {::Google::Cloud::AIPlatform::V1::ListIndexEndpointsResponse#next_page_token ListIndexEndpointsResponse.next_page_token} of the previous
389
+ # {::Google::Cloud::AIPlatform::V1::IndexEndpointService::Client#list_index_endpoints IndexEndpointService.ListIndexEndpoints} call.
390
+ # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
391
+ # Optional. Mask specifying which fields to read.
392
+ #
393
+ # @yield [response, operation] Access the result along with the RPC operation
394
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::IndexEndpoint>]
395
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
396
+ #
397
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::IndexEndpoint>]
398
+ #
399
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/cloud/ai_platform/v1"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Cloud::AIPlatform::V1::IndexEndpointService::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Cloud::AIPlatform::V1::ListIndexEndpointsRequest.new
409
+ #
410
+ # # Call the list_index_endpoints method.
411
+ # result = client.list_index_endpoints request
412
+ #
413
+ # # The returned object is of type Gapic::PagedEnumerable. You can
414
+ # # iterate over all elements by calling #each, and the enumerable
415
+ # # will lazily make API calls to fetch subsequent pages. Other
416
+ # # methods are also available for managing paging directly.
417
+ # result.each do |response|
418
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::IndexEndpoint.
419
+ # p response
420
+ # end
421
+ #
422
+ def list_index_endpoints request, options = nil
423
+ raise ::ArgumentError, "request must be provided" if request.nil?
424
+
425
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListIndexEndpointsRequest
426
+
427
+ # Converts hash and nil to an options object
428
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
429
+
430
+ # Customize the options with defaults
431
+ metadata = @config.rpcs.list_index_endpoints.metadata.to_h
432
+
433
+ # Set x-goog-api-client and x-goog-user-project headers
434
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
435
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
436
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
437
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
438
+
439
+ header_params = {}
440
+ if request.parent
441
+ header_params["parent"] = request.parent
442
+ end
443
+
444
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
445
+ metadata[:"x-goog-request-params"] ||= request_params_header
446
+
447
+ options.apply_defaults timeout: @config.rpcs.list_index_endpoints.timeout,
448
+ metadata: metadata,
449
+ retry_policy: @config.rpcs.list_index_endpoints.retry_policy
450
+
451
+ options.apply_defaults timeout: @config.timeout,
452
+ metadata: @config.metadata,
453
+ retry_policy: @config.retry_policy
454
+
455
+ @index_endpoint_service_stub.call_rpc :list_index_endpoints, request, options: options do |response, operation|
456
+ response = ::Gapic::PagedEnumerable.new @index_endpoint_service_stub, :list_index_endpoints, request, response, operation, options
457
+ yield response, operation if block_given?
458
+ return response
459
+ end
460
+ rescue ::GRPC::BadStatus => e
461
+ raise ::Google::Cloud::Error.from_error(e)
462
+ end
463
+
464
+ ##
465
+ # Updates an IndexEndpoint.
466
+ #
467
+ # @overload update_index_endpoint(request, options = nil)
468
+ # Pass arguments to `update_index_endpoint` via a request object, either of type
469
+ # {::Google::Cloud::AIPlatform::V1::UpdateIndexEndpointRequest} or an equivalent Hash.
470
+ #
471
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateIndexEndpointRequest, ::Hash]
472
+ # A request object representing the call parameters. Required. To specify no
473
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
474
+ # @param options [::Gapic::CallOptions, ::Hash]
475
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
476
+ #
477
+ # @overload update_index_endpoint(index_endpoint: nil, update_mask: nil)
478
+ # Pass arguments to `update_index_endpoint` via keyword arguments. Note that at
479
+ # least one keyword argument is required. To specify no parameters, or to keep all
480
+ # the default parameter values, pass an empty Hash as a request object (see above).
481
+ #
482
+ # @param index_endpoint [::Google::Cloud::AIPlatform::V1::IndexEndpoint, ::Hash]
483
+ # Required. The IndexEndpoint which replaces the resource on the server.
484
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
485
+ # Required. The update mask applies to the resource. See {::Google::Protobuf::FieldMask google.protobuf.FieldMask}.
486
+ #
487
+ # @yield [response, operation] Access the result along with the RPC operation
488
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::IndexEndpoint]
489
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
490
+ #
491
+ # @return [::Google::Cloud::AIPlatform::V1::IndexEndpoint]
492
+ #
493
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
494
+ #
495
+ # @example Basic example
496
+ # require "google/cloud/ai_platform/v1"
497
+ #
498
+ # # Create a client object. The client can be reused for multiple calls.
499
+ # client = Google::Cloud::AIPlatform::V1::IndexEndpointService::Client.new
500
+ #
501
+ # # Create a request. To set request fields, pass in keyword arguments.
502
+ # request = Google::Cloud::AIPlatform::V1::UpdateIndexEndpointRequest.new
503
+ #
504
+ # # Call the update_index_endpoint method.
505
+ # result = client.update_index_endpoint request
506
+ #
507
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::IndexEndpoint.
508
+ # p result
509
+ #
510
+ def update_index_endpoint request, options = nil
511
+ raise ::ArgumentError, "request must be provided" if request.nil?
512
+
513
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateIndexEndpointRequest
514
+
515
+ # Converts hash and nil to an options object
516
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
517
+
518
+ # Customize the options with defaults
519
+ metadata = @config.rpcs.update_index_endpoint.metadata.to_h
520
+
521
+ # Set x-goog-api-client and x-goog-user-project headers
522
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
523
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
524
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
525
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
526
+
527
+ header_params = {}
528
+ if request.index_endpoint&.name
529
+ header_params["index_endpoint.name"] = request.index_endpoint.name
530
+ end
531
+
532
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
533
+ metadata[:"x-goog-request-params"] ||= request_params_header
534
+
535
+ options.apply_defaults timeout: @config.rpcs.update_index_endpoint.timeout,
536
+ metadata: metadata,
537
+ retry_policy: @config.rpcs.update_index_endpoint.retry_policy
538
+
539
+ options.apply_defaults timeout: @config.timeout,
540
+ metadata: @config.metadata,
541
+ retry_policy: @config.retry_policy
542
+
543
+ @index_endpoint_service_stub.call_rpc :update_index_endpoint, request, options: options do |response, operation|
544
+ yield response, operation if block_given?
545
+ return response
546
+ end
547
+ rescue ::GRPC::BadStatus => e
548
+ raise ::Google::Cloud::Error.from_error(e)
549
+ end
550
+
551
+ ##
552
+ # Deletes an IndexEndpoint.
553
+ #
554
+ # @overload delete_index_endpoint(request, options = nil)
555
+ # Pass arguments to `delete_index_endpoint` via a request object, either of type
556
+ # {::Google::Cloud::AIPlatform::V1::DeleteIndexEndpointRequest} or an equivalent Hash.
557
+ #
558
+ # @param request [::Google::Cloud::AIPlatform::V1::DeleteIndexEndpointRequest, ::Hash]
559
+ # A request object representing the call parameters. Required. To specify no
560
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
561
+ # @param options [::Gapic::CallOptions, ::Hash]
562
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
563
+ #
564
+ # @overload delete_index_endpoint(name: nil)
565
+ # Pass arguments to `delete_index_endpoint` via keyword arguments. Note that at
566
+ # least one keyword argument is required. To specify no parameters, or to keep all
567
+ # the default parameter values, pass an empty Hash as a request object (see above).
568
+ #
569
+ # @param name [::String]
570
+ # Required. The name of the IndexEndpoint resource to be deleted.
571
+ # Format:
572
+ # `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
573
+ #
574
+ # @yield [response, operation] Access the result along with the RPC operation
575
+ # @yieldparam response [::Gapic::Operation]
576
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
577
+ #
578
+ # @return [::Gapic::Operation]
579
+ #
580
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
581
+ #
582
+ # @example Basic example
583
+ # require "google/cloud/ai_platform/v1"
584
+ #
585
+ # # Create a client object. The client can be reused for multiple calls.
586
+ # client = Google::Cloud::AIPlatform::V1::IndexEndpointService::Client.new
587
+ #
588
+ # # Create a request. To set request fields, pass in keyword arguments.
589
+ # request = Google::Cloud::AIPlatform::V1::DeleteIndexEndpointRequest.new
590
+ #
591
+ # # Call the delete_index_endpoint method.
592
+ # result = client.delete_index_endpoint request
593
+ #
594
+ # # The returned object is of type Gapic::Operation. You can use this
595
+ # # object to check the status of an operation, cancel it, or wait
596
+ # # for results. Here is how to block until completion:
597
+ # result.wait_until_done! timeout: 60
598
+ # if result.response?
599
+ # p result.response
600
+ # else
601
+ # puts "Error!"
602
+ # end
603
+ #
604
+ def delete_index_endpoint request, options = nil
605
+ raise ::ArgumentError, "request must be provided" if request.nil?
606
+
607
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteIndexEndpointRequest
608
+
609
+ # Converts hash and nil to an options object
610
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
611
+
612
+ # Customize the options with defaults
613
+ metadata = @config.rpcs.delete_index_endpoint.metadata.to_h
614
+
615
+ # Set x-goog-api-client and x-goog-user-project headers
616
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
617
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
618
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
619
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
620
+
621
+ header_params = {}
622
+ if request.name
623
+ header_params["name"] = request.name
624
+ end
625
+
626
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
627
+ metadata[:"x-goog-request-params"] ||= request_params_header
628
+
629
+ options.apply_defaults timeout: @config.rpcs.delete_index_endpoint.timeout,
630
+ metadata: metadata,
631
+ retry_policy: @config.rpcs.delete_index_endpoint.retry_policy
632
+
633
+ options.apply_defaults timeout: @config.timeout,
634
+ metadata: @config.metadata,
635
+ retry_policy: @config.retry_policy
636
+
637
+ @index_endpoint_service_stub.call_rpc :delete_index_endpoint, request, options: options do |response, operation|
638
+ response = ::Gapic::Operation.new response, @operations_client, options: options
639
+ yield response, operation if block_given?
640
+ return response
641
+ end
642
+ rescue ::GRPC::BadStatus => e
643
+ raise ::Google::Cloud::Error.from_error(e)
644
+ end
645
+
646
+ ##
647
+ # Deploys an Index into this IndexEndpoint, creating a DeployedIndex within
648
+ # it.
649
+ # Only non-empty Indexes can be deployed.
650
+ #
651
+ # @overload deploy_index(request, options = nil)
652
+ # Pass arguments to `deploy_index` via a request object, either of type
653
+ # {::Google::Cloud::AIPlatform::V1::DeployIndexRequest} or an equivalent Hash.
654
+ #
655
+ # @param request [::Google::Cloud::AIPlatform::V1::DeployIndexRequest, ::Hash]
656
+ # A request object representing the call parameters. Required. To specify no
657
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
658
+ # @param options [::Gapic::CallOptions, ::Hash]
659
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
660
+ #
661
+ # @overload deploy_index(index_endpoint: nil, deployed_index: nil)
662
+ # Pass arguments to `deploy_index` via keyword arguments. Note that at
663
+ # least one keyword argument is required. To specify no parameters, or to keep all
664
+ # the default parameter values, pass an empty Hash as a request object (see above).
665
+ #
666
+ # @param index_endpoint [::String]
667
+ # Required. The name of the IndexEndpoint resource into which to deploy an Index.
668
+ # Format:
669
+ # `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
670
+ # @param deployed_index [::Google::Cloud::AIPlatform::V1::DeployedIndex, ::Hash]
671
+ # Required. The DeployedIndex to be created within the IndexEndpoint.
672
+ #
673
+ # @yield [response, operation] Access the result along with the RPC operation
674
+ # @yieldparam response [::Gapic::Operation]
675
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
676
+ #
677
+ # @return [::Gapic::Operation]
678
+ #
679
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
680
+ #
681
+ # @example Basic example
682
+ # require "google/cloud/ai_platform/v1"
683
+ #
684
+ # # Create a client object. The client can be reused for multiple calls.
685
+ # client = Google::Cloud::AIPlatform::V1::IndexEndpointService::Client.new
686
+ #
687
+ # # Create a request. To set request fields, pass in keyword arguments.
688
+ # request = Google::Cloud::AIPlatform::V1::DeployIndexRequest.new
689
+ #
690
+ # # Call the deploy_index method.
691
+ # result = client.deploy_index request
692
+ #
693
+ # # The returned object is of type Gapic::Operation. You can use this
694
+ # # object to check the status of an operation, cancel it, or wait
695
+ # # for results. Here is how to block until completion:
696
+ # result.wait_until_done! timeout: 60
697
+ # if result.response?
698
+ # p result.response
699
+ # else
700
+ # puts "Error!"
701
+ # end
702
+ #
703
+ def deploy_index request, options = nil
704
+ raise ::ArgumentError, "request must be provided" if request.nil?
705
+
706
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeployIndexRequest
707
+
708
+ # Converts hash and nil to an options object
709
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
710
+
711
+ # Customize the options with defaults
712
+ metadata = @config.rpcs.deploy_index.metadata.to_h
713
+
714
+ # Set x-goog-api-client and x-goog-user-project headers
715
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
716
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
717
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
718
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
719
+
720
+ header_params = {}
721
+ if request.index_endpoint
722
+ header_params["index_endpoint"] = request.index_endpoint
723
+ end
724
+
725
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
726
+ metadata[:"x-goog-request-params"] ||= request_params_header
727
+
728
+ options.apply_defaults timeout: @config.rpcs.deploy_index.timeout,
729
+ metadata: metadata,
730
+ retry_policy: @config.rpcs.deploy_index.retry_policy
731
+
732
+ options.apply_defaults timeout: @config.timeout,
733
+ metadata: @config.metadata,
734
+ retry_policy: @config.retry_policy
735
+
736
+ @index_endpoint_service_stub.call_rpc :deploy_index, request, options: options do |response, operation|
737
+ response = ::Gapic::Operation.new response, @operations_client, options: options
738
+ yield response, operation if block_given?
739
+ return response
740
+ end
741
+ rescue ::GRPC::BadStatus => e
742
+ raise ::Google::Cloud::Error.from_error(e)
743
+ end
744
+
745
+ ##
746
+ # Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it,
747
+ # and freeing all resources it's using.
748
+ #
749
+ # @overload undeploy_index(request, options = nil)
750
+ # Pass arguments to `undeploy_index` via a request object, either of type
751
+ # {::Google::Cloud::AIPlatform::V1::UndeployIndexRequest} or an equivalent Hash.
752
+ #
753
+ # @param request [::Google::Cloud::AIPlatform::V1::UndeployIndexRequest, ::Hash]
754
+ # A request object representing the call parameters. Required. To specify no
755
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
756
+ # @param options [::Gapic::CallOptions, ::Hash]
757
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
758
+ #
759
+ # @overload undeploy_index(index_endpoint: nil, deployed_index_id: nil)
760
+ # Pass arguments to `undeploy_index` via keyword arguments. Note that at
761
+ # least one keyword argument is required. To specify no parameters, or to keep all
762
+ # the default parameter values, pass an empty Hash as a request object (see above).
763
+ #
764
+ # @param index_endpoint [::String]
765
+ # Required. The name of the IndexEndpoint resource from which to undeploy an Index.
766
+ # Format:
767
+ # `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
768
+ # @param deployed_index_id [::String]
769
+ # Required. The ID of the DeployedIndex to be undeployed from the IndexEndpoint.
770
+ #
771
+ # @yield [response, operation] Access the result along with the RPC operation
772
+ # @yieldparam response [::Gapic::Operation]
773
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
774
+ #
775
+ # @return [::Gapic::Operation]
776
+ #
777
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
778
+ #
779
+ # @example Basic example
780
+ # require "google/cloud/ai_platform/v1"
781
+ #
782
+ # # Create a client object. The client can be reused for multiple calls.
783
+ # client = Google::Cloud::AIPlatform::V1::IndexEndpointService::Client.new
784
+ #
785
+ # # Create a request. To set request fields, pass in keyword arguments.
786
+ # request = Google::Cloud::AIPlatform::V1::UndeployIndexRequest.new
787
+ #
788
+ # # Call the undeploy_index method.
789
+ # result = client.undeploy_index request
790
+ #
791
+ # # The returned object is of type Gapic::Operation. You can use this
792
+ # # object to check the status of an operation, cancel it, or wait
793
+ # # for results. Here is how to block until completion:
794
+ # result.wait_until_done! timeout: 60
795
+ # if result.response?
796
+ # p result.response
797
+ # else
798
+ # puts "Error!"
799
+ # end
800
+ #
801
+ def undeploy_index request, options = nil
802
+ raise ::ArgumentError, "request must be provided" if request.nil?
803
+
804
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UndeployIndexRequest
805
+
806
+ # Converts hash and nil to an options object
807
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
808
+
809
+ # Customize the options with defaults
810
+ metadata = @config.rpcs.undeploy_index.metadata.to_h
811
+
812
+ # Set x-goog-api-client and x-goog-user-project headers
813
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
814
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
815
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
816
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
817
+
818
+ header_params = {}
819
+ if request.index_endpoint
820
+ header_params["index_endpoint"] = request.index_endpoint
821
+ end
822
+
823
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
824
+ metadata[:"x-goog-request-params"] ||= request_params_header
825
+
826
+ options.apply_defaults timeout: @config.rpcs.undeploy_index.timeout,
827
+ metadata: metadata,
828
+ retry_policy: @config.rpcs.undeploy_index.retry_policy
829
+
830
+ options.apply_defaults timeout: @config.timeout,
831
+ metadata: @config.metadata,
832
+ retry_policy: @config.retry_policy
833
+
834
+ @index_endpoint_service_stub.call_rpc :undeploy_index, request, options: options do |response, operation|
835
+ response = ::Gapic::Operation.new response, @operations_client, options: options
836
+ yield response, operation if block_given?
837
+ return response
838
+ end
839
+ rescue ::GRPC::BadStatus => e
840
+ raise ::Google::Cloud::Error.from_error(e)
841
+ end
842
+
843
+ ##
844
+ # Update an existing DeployedIndex under an IndexEndpoint.
845
+ #
846
+ # @overload mutate_deployed_index(request, options = nil)
847
+ # Pass arguments to `mutate_deployed_index` via a request object, either of type
848
+ # {::Google::Cloud::AIPlatform::V1::MutateDeployedIndexRequest} or an equivalent Hash.
849
+ #
850
+ # @param request [::Google::Cloud::AIPlatform::V1::MutateDeployedIndexRequest, ::Hash]
851
+ # A request object representing the call parameters. Required. To specify no
852
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
853
+ # @param options [::Gapic::CallOptions, ::Hash]
854
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
855
+ #
856
+ # @overload mutate_deployed_index(index_endpoint: nil, deployed_index: nil)
857
+ # Pass arguments to `mutate_deployed_index` via keyword arguments. Note that at
858
+ # least one keyword argument is required. To specify no parameters, or to keep all
859
+ # the default parameter values, pass an empty Hash as a request object (see above).
860
+ #
861
+ # @param index_endpoint [::String]
862
+ # Required. The name of the IndexEndpoint resource into which to deploy an Index.
863
+ # Format:
864
+ # `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
865
+ # @param deployed_index [::Google::Cloud::AIPlatform::V1::DeployedIndex, ::Hash]
866
+ # Required. The DeployedIndex to be updated within the IndexEndpoint.
867
+ # Currently, the updatable fields are [DeployedIndex][automatic_resources]
868
+ # and [DeployedIndex][dedicated_resources]
869
+ #
870
+ # @yield [response, operation] Access the result along with the RPC operation
871
+ # @yieldparam response [::Gapic::Operation]
872
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
873
+ #
874
+ # @return [::Gapic::Operation]
875
+ #
876
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
877
+ #
878
+ # @example Basic example
879
+ # require "google/cloud/ai_platform/v1"
880
+ #
881
+ # # Create a client object. The client can be reused for multiple calls.
882
+ # client = Google::Cloud::AIPlatform::V1::IndexEndpointService::Client.new
883
+ #
884
+ # # Create a request. To set request fields, pass in keyword arguments.
885
+ # request = Google::Cloud::AIPlatform::V1::MutateDeployedIndexRequest.new
886
+ #
887
+ # # Call the mutate_deployed_index method.
888
+ # result = client.mutate_deployed_index request
889
+ #
890
+ # # The returned object is of type Gapic::Operation. You can use this
891
+ # # object to check the status of an operation, cancel it, or wait
892
+ # # for results. Here is how to block until completion:
893
+ # result.wait_until_done! timeout: 60
894
+ # if result.response?
895
+ # p result.response
896
+ # else
897
+ # puts "Error!"
898
+ # end
899
+ #
900
+ def mutate_deployed_index request, options = nil
901
+ raise ::ArgumentError, "request must be provided" if request.nil?
902
+
903
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::MutateDeployedIndexRequest
904
+
905
+ # Converts hash and nil to an options object
906
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
907
+
908
+ # Customize the options with defaults
909
+ metadata = @config.rpcs.mutate_deployed_index.metadata.to_h
910
+
911
+ # Set x-goog-api-client and x-goog-user-project headers
912
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
913
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
914
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
915
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
916
+
917
+ header_params = {}
918
+ if request.index_endpoint
919
+ header_params["index_endpoint"] = request.index_endpoint
920
+ end
921
+
922
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
923
+ metadata[:"x-goog-request-params"] ||= request_params_header
924
+
925
+ options.apply_defaults timeout: @config.rpcs.mutate_deployed_index.timeout,
926
+ metadata: metadata,
927
+ retry_policy: @config.rpcs.mutate_deployed_index.retry_policy
928
+
929
+ options.apply_defaults timeout: @config.timeout,
930
+ metadata: @config.metadata,
931
+ retry_policy: @config.retry_policy
932
+
933
+ @index_endpoint_service_stub.call_rpc :mutate_deployed_index, request, options: options do |response, operation|
934
+ response = ::Gapic::Operation.new response, @operations_client, options: options
935
+ yield response, operation if block_given?
936
+ return response
937
+ end
938
+ rescue ::GRPC::BadStatus => e
939
+ raise ::Google::Cloud::Error.from_error(e)
940
+ end
941
+
942
+ ##
943
+ # Configuration class for the IndexEndpointService API.
944
+ #
945
+ # This class represents the configuration for IndexEndpointService,
946
+ # providing control over timeouts, retry behavior, logging, transport
947
+ # parameters, and other low-level controls. Certain parameters can also be
948
+ # applied individually to specific RPCs. See
949
+ # {::Google::Cloud::AIPlatform::V1::IndexEndpointService::Client::Configuration::Rpcs}
950
+ # for a list of RPCs that can be configured independently.
951
+ #
952
+ # Configuration can be applied globally to all clients, or to a single client
953
+ # on construction.
954
+ #
955
+ # @example
956
+ #
957
+ # # Modify the global config, setting the timeout for
958
+ # # create_index_endpoint to 20 seconds,
959
+ # # and all remaining timeouts to 10 seconds.
960
+ # ::Google::Cloud::AIPlatform::V1::IndexEndpointService::Client.configure do |config|
961
+ # config.timeout = 10.0
962
+ # config.rpcs.create_index_endpoint.timeout = 20.0
963
+ # end
964
+ #
965
+ # # Apply the above configuration only to a new client.
966
+ # client = ::Google::Cloud::AIPlatform::V1::IndexEndpointService::Client.new do |config|
967
+ # config.timeout = 10.0
968
+ # config.rpcs.create_index_endpoint.timeout = 20.0
969
+ # end
970
+ #
971
+ # @!attribute [rw] endpoint
972
+ # The hostname or hostname:port of the service endpoint.
973
+ # Defaults to `"aiplatform.googleapis.com"`.
974
+ # @return [::String]
975
+ # @!attribute [rw] credentials
976
+ # Credentials to send with calls. You may provide any of the following types:
977
+ # * (`String`) The path to a service account key file in JSON format
978
+ # * (`Hash`) A service account key as a Hash
979
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
980
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
981
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
982
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
983
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
984
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
985
+ # * (`nil`) indicating no credentials
986
+ # @return [::Object]
987
+ # @!attribute [rw] scope
988
+ # The OAuth scopes
989
+ # @return [::Array<::String>]
990
+ # @!attribute [rw] lib_name
991
+ # The library name as recorded in instrumentation and logging
992
+ # @return [::String]
993
+ # @!attribute [rw] lib_version
994
+ # The library version as recorded in instrumentation and logging
995
+ # @return [::String]
996
+ # @!attribute [rw] channel_args
997
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
998
+ # `GRPC::Core::Channel` object is provided as the credential.
999
+ # @return [::Hash]
1000
+ # @!attribute [rw] interceptors
1001
+ # An array of interceptors that are run before calls are executed.
1002
+ # @return [::Array<::GRPC::ClientInterceptor>]
1003
+ # @!attribute [rw] timeout
1004
+ # The call timeout in seconds.
1005
+ # @return [::Numeric]
1006
+ # @!attribute [rw] metadata
1007
+ # Additional gRPC headers to be sent with the call.
1008
+ # @return [::Hash{::Symbol=>::String}]
1009
+ # @!attribute [rw] retry_policy
1010
+ # The retry policy. The value is a hash with the following keys:
1011
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1012
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1013
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1014
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1015
+ # trigger a retry.
1016
+ # @return [::Hash]
1017
+ # @!attribute [rw] quota_project
1018
+ # A separate project against which to charge quota.
1019
+ # @return [::String]
1020
+ #
1021
+ class Configuration
1022
+ extend ::Gapic::Config
1023
+
1024
+ config_attr :endpoint, "aiplatform.googleapis.com", ::String
1025
+ config_attr :credentials, nil do |value|
1026
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1027
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1028
+ allowed.any? { |klass| klass === value }
1029
+ end
1030
+ config_attr :scope, nil, ::String, ::Array, nil
1031
+ config_attr :lib_name, nil, ::String, nil
1032
+ config_attr :lib_version, nil, ::String, nil
1033
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
1034
+ config_attr :interceptors, nil, ::Array, nil
1035
+ config_attr :timeout, nil, ::Numeric, nil
1036
+ config_attr :metadata, nil, ::Hash, nil
1037
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1038
+ config_attr :quota_project, nil, ::String, nil
1039
+
1040
+ # @private
1041
+ def initialize parent_config = nil
1042
+ @parent_config = parent_config unless parent_config.nil?
1043
+
1044
+ yield self if block_given?
1045
+ end
1046
+
1047
+ ##
1048
+ # Configurations for individual RPCs
1049
+ # @return [Rpcs]
1050
+ #
1051
+ def rpcs
1052
+ @rpcs ||= begin
1053
+ parent_rpcs = nil
1054
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1055
+ Rpcs.new parent_rpcs
1056
+ end
1057
+ end
1058
+
1059
+ ##
1060
+ # Configuration RPC class for the IndexEndpointService API.
1061
+ #
1062
+ # Includes fields providing the configuration for each RPC in this service.
1063
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1064
+ # the following configuration fields:
1065
+ #
1066
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1067
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1068
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1069
+ # include the following keys:
1070
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1071
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1072
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1073
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1074
+ # trigger a retry.
1075
+ #
1076
+ class Rpcs
1077
+ ##
1078
+ # RPC-specific configuration for `create_index_endpoint`
1079
+ # @return [::Gapic::Config::Method]
1080
+ #
1081
+ attr_reader :create_index_endpoint
1082
+ ##
1083
+ # RPC-specific configuration for `get_index_endpoint`
1084
+ # @return [::Gapic::Config::Method]
1085
+ #
1086
+ attr_reader :get_index_endpoint
1087
+ ##
1088
+ # RPC-specific configuration for `list_index_endpoints`
1089
+ # @return [::Gapic::Config::Method]
1090
+ #
1091
+ attr_reader :list_index_endpoints
1092
+ ##
1093
+ # RPC-specific configuration for `update_index_endpoint`
1094
+ # @return [::Gapic::Config::Method]
1095
+ #
1096
+ attr_reader :update_index_endpoint
1097
+ ##
1098
+ # RPC-specific configuration for `delete_index_endpoint`
1099
+ # @return [::Gapic::Config::Method]
1100
+ #
1101
+ attr_reader :delete_index_endpoint
1102
+ ##
1103
+ # RPC-specific configuration for `deploy_index`
1104
+ # @return [::Gapic::Config::Method]
1105
+ #
1106
+ attr_reader :deploy_index
1107
+ ##
1108
+ # RPC-specific configuration for `undeploy_index`
1109
+ # @return [::Gapic::Config::Method]
1110
+ #
1111
+ attr_reader :undeploy_index
1112
+ ##
1113
+ # RPC-specific configuration for `mutate_deployed_index`
1114
+ # @return [::Gapic::Config::Method]
1115
+ #
1116
+ attr_reader :mutate_deployed_index
1117
+
1118
+ # @private
1119
+ def initialize parent_rpcs = nil
1120
+ create_index_endpoint_config = parent_rpcs.create_index_endpoint if parent_rpcs.respond_to? :create_index_endpoint
1121
+ @create_index_endpoint = ::Gapic::Config::Method.new create_index_endpoint_config
1122
+ get_index_endpoint_config = parent_rpcs.get_index_endpoint if parent_rpcs.respond_to? :get_index_endpoint
1123
+ @get_index_endpoint = ::Gapic::Config::Method.new get_index_endpoint_config
1124
+ list_index_endpoints_config = parent_rpcs.list_index_endpoints if parent_rpcs.respond_to? :list_index_endpoints
1125
+ @list_index_endpoints = ::Gapic::Config::Method.new list_index_endpoints_config
1126
+ update_index_endpoint_config = parent_rpcs.update_index_endpoint if parent_rpcs.respond_to? :update_index_endpoint
1127
+ @update_index_endpoint = ::Gapic::Config::Method.new update_index_endpoint_config
1128
+ delete_index_endpoint_config = parent_rpcs.delete_index_endpoint if parent_rpcs.respond_to? :delete_index_endpoint
1129
+ @delete_index_endpoint = ::Gapic::Config::Method.new delete_index_endpoint_config
1130
+ deploy_index_config = parent_rpcs.deploy_index if parent_rpcs.respond_to? :deploy_index
1131
+ @deploy_index = ::Gapic::Config::Method.new deploy_index_config
1132
+ undeploy_index_config = parent_rpcs.undeploy_index if parent_rpcs.respond_to? :undeploy_index
1133
+ @undeploy_index = ::Gapic::Config::Method.new undeploy_index_config
1134
+ mutate_deployed_index_config = parent_rpcs.mutate_deployed_index if parent_rpcs.respond_to? :mutate_deployed_index
1135
+ @mutate_deployed_index = ::Gapic::Config::Method.new mutate_deployed_index_config
1136
+
1137
+ yield self if block_given?
1138
+ end
1139
+ end
1140
+ end
1141
+ end
1142
+ end
1143
+ end
1144
+ end
1145
+ end
1146
+ end