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.
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,1076 @@
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/endpoint_service_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module AIPlatform
25
+ module V1
26
+ module EndpointService
27
+ ##
28
+ # Client for the EndpointService service.
29
+ #
30
+ # A service for managing Vertex AI's Endpoints.
31
+ #
32
+ class Client
33
+ include Paths
34
+
35
+ # @private
36
+ attr_reader :endpoint_service_stub
37
+
38
+ ##
39
+ # Configure the EndpointService Client class.
40
+ #
41
+ # See {::Google::Cloud::AIPlatform::V1::EndpointService::Client::Configuration}
42
+ # for a description of the configuration fields.
43
+ #
44
+ # @example
45
+ #
46
+ # # Modify the configuration for all EndpointService clients
47
+ # ::Google::Cloud::AIPlatform::V1::EndpointService::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 EndpointService 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::EndpointService::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 EndpointService client object.
95
+ #
96
+ # @example
97
+ #
98
+ # # Create a client using the default configuration
99
+ # client = ::Google::Cloud::AIPlatform::V1::EndpointService::Client.new
100
+ #
101
+ # # Create a client using a custom configuration
102
+ # client = ::Google::Cloud::AIPlatform::V1::EndpointService::Client.new do |config|
103
+ # config.timeout = 10.0
104
+ # end
105
+ #
106
+ # @yield [config] Configure the EndpointService 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/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
+ @endpoint_service_stub = ::Gapic::ServiceStub.new(
143
+ ::Google::Cloud::AIPlatform::V1::EndpointService::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::EndpointService::Operations]
155
+ #
156
+ attr_reader :operations_client
157
+
158
+ # Service calls
159
+
160
+ ##
161
+ # Creates an Endpoint.
162
+ #
163
+ # @overload create_endpoint(request, options = nil)
164
+ # Pass arguments to `create_endpoint` via a request object, either of type
165
+ # {::Google::Cloud::AIPlatform::V1::CreateEndpointRequest} or an equivalent Hash.
166
+ #
167
+ # @param request [::Google::Cloud::AIPlatform::V1::CreateEndpointRequest, ::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_endpoint(parent: nil, endpoint: nil, endpoint_id: nil)
174
+ # Pass arguments to `create_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 Endpoint in.
180
+ # Format: `projects/{project}/locations/{location}`
181
+ # @param endpoint [::Google::Cloud::AIPlatform::V1::Endpoint, ::Hash]
182
+ # Required. The Endpoint to create.
183
+ # @param endpoint_id [::String]
184
+ # Immutable. The ID to use for endpoint, which will become the final
185
+ # component of the endpoint resource name.
186
+ # If not provided, Vertex AI will generate a value for this ID.
187
+ #
188
+ # This value should be 1-10 characters, and valid characters are /[0-9]/.
189
+ # When using HTTP/JSON, this field is populated based on a query string
190
+ # argument, such as `?endpoint_id=12345`. This is the fallback for fields
191
+ # that are not included in either the URI or the body.
192
+ #
193
+ # @yield [response, operation] Access the result along with the RPC operation
194
+ # @yieldparam response [::Gapic::Operation]
195
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
196
+ #
197
+ # @return [::Gapic::Operation]
198
+ #
199
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
200
+ #
201
+ # @example Basic example
202
+ # require "google/cloud/ai_platform/v1"
203
+ #
204
+ # # Create a client object. The client can be reused for multiple calls.
205
+ # client = Google::Cloud::AIPlatform::V1::EndpointService::Client.new
206
+ #
207
+ # # Create a request. To set request fields, pass in keyword arguments.
208
+ # request = Google::Cloud::AIPlatform::V1::CreateEndpointRequest.new
209
+ #
210
+ # # Call the create_endpoint method.
211
+ # result = client.create_endpoint request
212
+ #
213
+ # # The returned object is of type Gapic::Operation. You can use this
214
+ # # object to check the status of an operation, cancel it, or wait
215
+ # # for results. Here is how to block until completion:
216
+ # result.wait_until_done! timeout: 60
217
+ # if result.response?
218
+ # p result.response
219
+ # else
220
+ # puts "Error!"
221
+ # end
222
+ #
223
+ def create_endpoint request, options = nil
224
+ raise ::ArgumentError, "request must be provided" if request.nil?
225
+
226
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateEndpointRequest
227
+
228
+ # Converts hash and nil to an options object
229
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
230
+
231
+ # Customize the options with defaults
232
+ metadata = @config.rpcs.create_endpoint.metadata.to_h
233
+
234
+ # Set x-goog-api-client and x-goog-user-project headers
235
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
236
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
237
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
238
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
239
+
240
+ header_params = {}
241
+ if request.parent
242
+ header_params["parent"] = request.parent
243
+ end
244
+
245
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
246
+ metadata[:"x-goog-request-params"] ||= request_params_header
247
+
248
+ options.apply_defaults timeout: @config.rpcs.create_endpoint.timeout,
249
+ metadata: metadata,
250
+ retry_policy: @config.rpcs.create_endpoint.retry_policy
251
+
252
+ options.apply_defaults timeout: @config.timeout,
253
+ metadata: @config.metadata,
254
+ retry_policy: @config.retry_policy
255
+
256
+ @endpoint_service_stub.call_rpc :create_endpoint, request, options: options do |response, operation|
257
+ response = ::Gapic::Operation.new response, @operations_client, options: options
258
+ yield response, operation if block_given?
259
+ return response
260
+ end
261
+ rescue ::GRPC::BadStatus => e
262
+ raise ::Google::Cloud::Error.from_error(e)
263
+ end
264
+
265
+ ##
266
+ # Gets an Endpoint.
267
+ #
268
+ # @overload get_endpoint(request, options = nil)
269
+ # Pass arguments to `get_endpoint` via a request object, either of type
270
+ # {::Google::Cloud::AIPlatform::V1::GetEndpointRequest} or an equivalent Hash.
271
+ #
272
+ # @param request [::Google::Cloud::AIPlatform::V1::GetEndpointRequest, ::Hash]
273
+ # A request object representing the call parameters. Required. To specify no
274
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
275
+ # @param options [::Gapic::CallOptions, ::Hash]
276
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
277
+ #
278
+ # @overload get_endpoint(name: nil)
279
+ # Pass arguments to `get_endpoint` via keyword arguments. Note that at
280
+ # least one keyword argument is required. To specify no parameters, or to keep all
281
+ # the default parameter values, pass an empty Hash as a request object (see above).
282
+ #
283
+ # @param name [::String]
284
+ # Required. The name of the Endpoint resource.
285
+ # Format:
286
+ # `projects/{project}/locations/{location}/endpoints/{endpoint}`
287
+ #
288
+ # @yield [response, operation] Access the result along with the RPC operation
289
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::Endpoint]
290
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
291
+ #
292
+ # @return [::Google::Cloud::AIPlatform::V1::Endpoint]
293
+ #
294
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
295
+ #
296
+ # @example Basic example
297
+ # require "google/cloud/ai_platform/v1"
298
+ #
299
+ # # Create a client object. The client can be reused for multiple calls.
300
+ # client = Google::Cloud::AIPlatform::V1::EndpointService::Client.new
301
+ #
302
+ # # Create a request. To set request fields, pass in keyword arguments.
303
+ # request = Google::Cloud::AIPlatform::V1::GetEndpointRequest.new
304
+ #
305
+ # # Call the get_endpoint method.
306
+ # result = client.get_endpoint request
307
+ #
308
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::Endpoint.
309
+ # p result
310
+ #
311
+ def get_endpoint request, options = nil
312
+ raise ::ArgumentError, "request must be provided" if request.nil?
313
+
314
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetEndpointRequest
315
+
316
+ # Converts hash and nil to an options object
317
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
318
+
319
+ # Customize the options with defaults
320
+ metadata = @config.rpcs.get_endpoint.metadata.to_h
321
+
322
+ # Set x-goog-api-client and x-goog-user-project headers
323
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
324
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
325
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
326
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
327
+
328
+ header_params = {}
329
+ if request.name
330
+ header_params["name"] = request.name
331
+ end
332
+
333
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
334
+ metadata[:"x-goog-request-params"] ||= request_params_header
335
+
336
+ options.apply_defaults timeout: @config.rpcs.get_endpoint.timeout,
337
+ metadata: metadata,
338
+ retry_policy: @config.rpcs.get_endpoint.retry_policy
339
+
340
+ options.apply_defaults timeout: @config.timeout,
341
+ metadata: @config.metadata,
342
+ retry_policy: @config.retry_policy
343
+
344
+ @endpoint_service_stub.call_rpc :get_endpoint, request, options: options do |response, operation|
345
+ yield response, operation if block_given?
346
+ return response
347
+ end
348
+ rescue ::GRPC::BadStatus => e
349
+ raise ::Google::Cloud::Error.from_error(e)
350
+ end
351
+
352
+ ##
353
+ # Lists Endpoints in a Location.
354
+ #
355
+ # @overload list_endpoints(request, options = nil)
356
+ # Pass arguments to `list_endpoints` via a request object, either of type
357
+ # {::Google::Cloud::AIPlatform::V1::ListEndpointsRequest} or an equivalent Hash.
358
+ #
359
+ # @param request [::Google::Cloud::AIPlatform::V1::ListEndpointsRequest, ::Hash]
360
+ # A request object representing the call parameters. Required. To specify no
361
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
362
+ # @param options [::Gapic::CallOptions, ::Hash]
363
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
364
+ #
365
+ # @overload list_endpoints(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil)
366
+ # Pass arguments to `list_endpoints` via keyword arguments. Note that at
367
+ # least one keyword argument is required. To specify no parameters, or to keep all
368
+ # the default parameter values, pass an empty Hash as a request object (see above).
369
+ #
370
+ # @param parent [::String]
371
+ # Required. The resource name of the Location from which to list the Endpoints.
372
+ # Format: `projects/{project}/locations/{location}`
373
+ # @param filter [::String]
374
+ # Optional. An expression for filtering the results of the request. For field names
375
+ # both snake_case and camelCase are supported.
376
+ #
377
+ # * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID,
378
+ # i.e. the last segment of the Endpoint's {::Google::Cloud::AIPlatform::V1::Endpoint#name resource name}.
379
+ # * `display_name` supports = and, !=
380
+ # * `labels` supports general map functions that is:
381
+ # * `labels.key=value` - key:value equality
382
+ # * `labels.key:* or labels:key - key existence
383
+ # * A key including a space must be quoted. `labels."a key"`.
384
+ #
385
+ # Some examples:
386
+ # * `endpoint=1`
387
+ # * `displayName="myDisplayName"`
388
+ # * `labels.myKey="myValue"`
389
+ # @param page_size [::Integer]
390
+ # Optional. The standard list page size.
391
+ # @param page_token [::String]
392
+ # Optional. The standard list page token.
393
+ # Typically obtained via
394
+ # {::Google::Cloud::AIPlatform::V1::ListEndpointsResponse#next_page_token ListEndpointsResponse.next_page_token} of the previous
395
+ # {::Google::Cloud::AIPlatform::V1::EndpointService::Client#list_endpoints EndpointService.ListEndpoints} call.
396
+ # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
397
+ # Optional. Mask specifying which fields to read.
398
+ # @param order_by [::String]
399
+ # A comma-separated list of fields to order by, sorted in ascending order.
400
+ # Use "desc" after a field name for descending.
401
+ # Supported fields:
402
+ # * `display_name`
403
+ # * `create_time`
404
+ # * `update_time`
405
+ #
406
+ # Example: `display_name, create_time desc`.
407
+ #
408
+ # @yield [response, operation] Access the result along with the RPC operation
409
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::Endpoint>]
410
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
411
+ #
412
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::Endpoint>]
413
+ #
414
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
415
+ #
416
+ # @example Basic example
417
+ # require "google/cloud/ai_platform/v1"
418
+ #
419
+ # # Create a client object. The client can be reused for multiple calls.
420
+ # client = Google::Cloud::AIPlatform::V1::EndpointService::Client.new
421
+ #
422
+ # # Create a request. To set request fields, pass in keyword arguments.
423
+ # request = Google::Cloud::AIPlatform::V1::ListEndpointsRequest.new
424
+ #
425
+ # # Call the list_endpoints method.
426
+ # result = client.list_endpoints request
427
+ #
428
+ # # The returned object is of type Gapic::PagedEnumerable. You can
429
+ # # iterate over all elements by calling #each, and the enumerable
430
+ # # will lazily make API calls to fetch subsequent pages. Other
431
+ # # methods are also available for managing paging directly.
432
+ # result.each do |response|
433
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::Endpoint.
434
+ # p response
435
+ # end
436
+ #
437
+ def list_endpoints request, options = nil
438
+ raise ::ArgumentError, "request must be provided" if request.nil?
439
+
440
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListEndpointsRequest
441
+
442
+ # Converts hash and nil to an options object
443
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
444
+
445
+ # Customize the options with defaults
446
+ metadata = @config.rpcs.list_endpoints.metadata.to_h
447
+
448
+ # Set x-goog-api-client and x-goog-user-project headers
449
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
450
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
451
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
452
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
453
+
454
+ header_params = {}
455
+ if request.parent
456
+ header_params["parent"] = request.parent
457
+ end
458
+
459
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
460
+ metadata[:"x-goog-request-params"] ||= request_params_header
461
+
462
+ options.apply_defaults timeout: @config.rpcs.list_endpoints.timeout,
463
+ metadata: metadata,
464
+ retry_policy: @config.rpcs.list_endpoints.retry_policy
465
+
466
+ options.apply_defaults timeout: @config.timeout,
467
+ metadata: @config.metadata,
468
+ retry_policy: @config.retry_policy
469
+
470
+ @endpoint_service_stub.call_rpc :list_endpoints, request, options: options do |response, operation|
471
+ response = ::Gapic::PagedEnumerable.new @endpoint_service_stub, :list_endpoints, request, response, operation, options
472
+ yield response, operation if block_given?
473
+ return response
474
+ end
475
+ rescue ::GRPC::BadStatus => e
476
+ raise ::Google::Cloud::Error.from_error(e)
477
+ end
478
+
479
+ ##
480
+ # Updates an Endpoint.
481
+ #
482
+ # @overload update_endpoint(request, options = nil)
483
+ # Pass arguments to `update_endpoint` via a request object, either of type
484
+ # {::Google::Cloud::AIPlatform::V1::UpdateEndpointRequest} or an equivalent Hash.
485
+ #
486
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateEndpointRequest, ::Hash]
487
+ # A request object representing the call parameters. Required. To specify no
488
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
489
+ # @param options [::Gapic::CallOptions, ::Hash]
490
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
491
+ #
492
+ # @overload update_endpoint(endpoint: nil, update_mask: nil)
493
+ # Pass arguments to `update_endpoint` via keyword arguments. Note that at
494
+ # least one keyword argument is required. To specify no parameters, or to keep all
495
+ # the default parameter values, pass an empty Hash as a request object (see above).
496
+ #
497
+ # @param endpoint [::Google::Cloud::AIPlatform::V1::Endpoint, ::Hash]
498
+ # Required. The Endpoint which replaces the resource on the server.
499
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
500
+ # Required. The update mask applies to the resource. See {::Google::Protobuf::FieldMask google.protobuf.FieldMask}.
501
+ #
502
+ # @yield [response, operation] Access the result along with the RPC operation
503
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::Endpoint]
504
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
505
+ #
506
+ # @return [::Google::Cloud::AIPlatform::V1::Endpoint]
507
+ #
508
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
509
+ #
510
+ # @example Basic example
511
+ # require "google/cloud/ai_platform/v1"
512
+ #
513
+ # # Create a client object. The client can be reused for multiple calls.
514
+ # client = Google::Cloud::AIPlatform::V1::EndpointService::Client.new
515
+ #
516
+ # # Create a request. To set request fields, pass in keyword arguments.
517
+ # request = Google::Cloud::AIPlatform::V1::UpdateEndpointRequest.new
518
+ #
519
+ # # Call the update_endpoint method.
520
+ # result = client.update_endpoint request
521
+ #
522
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::Endpoint.
523
+ # p result
524
+ #
525
+ def update_endpoint request, options = nil
526
+ raise ::ArgumentError, "request must be provided" if request.nil?
527
+
528
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateEndpointRequest
529
+
530
+ # Converts hash and nil to an options object
531
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
532
+
533
+ # Customize the options with defaults
534
+ metadata = @config.rpcs.update_endpoint.metadata.to_h
535
+
536
+ # Set x-goog-api-client and x-goog-user-project headers
537
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
538
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
539
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
540
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
541
+
542
+ header_params = {}
543
+ if request.endpoint&.name
544
+ header_params["endpoint.name"] = request.endpoint.name
545
+ end
546
+
547
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
548
+ metadata[:"x-goog-request-params"] ||= request_params_header
549
+
550
+ options.apply_defaults timeout: @config.rpcs.update_endpoint.timeout,
551
+ metadata: metadata,
552
+ retry_policy: @config.rpcs.update_endpoint.retry_policy
553
+
554
+ options.apply_defaults timeout: @config.timeout,
555
+ metadata: @config.metadata,
556
+ retry_policy: @config.retry_policy
557
+
558
+ @endpoint_service_stub.call_rpc :update_endpoint, request, options: options do |response, operation|
559
+ yield response, operation if block_given?
560
+ return response
561
+ end
562
+ rescue ::GRPC::BadStatus => e
563
+ raise ::Google::Cloud::Error.from_error(e)
564
+ end
565
+
566
+ ##
567
+ # Deletes an Endpoint.
568
+ #
569
+ # @overload delete_endpoint(request, options = nil)
570
+ # Pass arguments to `delete_endpoint` via a request object, either of type
571
+ # {::Google::Cloud::AIPlatform::V1::DeleteEndpointRequest} or an equivalent Hash.
572
+ #
573
+ # @param request [::Google::Cloud::AIPlatform::V1::DeleteEndpointRequest, ::Hash]
574
+ # A request object representing the call parameters. Required. To specify no
575
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
576
+ # @param options [::Gapic::CallOptions, ::Hash]
577
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
578
+ #
579
+ # @overload delete_endpoint(name: nil)
580
+ # Pass arguments to `delete_endpoint` via keyword arguments. Note that at
581
+ # least one keyword argument is required. To specify no parameters, or to keep all
582
+ # the default parameter values, pass an empty Hash as a request object (see above).
583
+ #
584
+ # @param name [::String]
585
+ # Required. The name of the Endpoint resource to be deleted.
586
+ # Format:
587
+ # `projects/{project}/locations/{location}/endpoints/{endpoint}`
588
+ #
589
+ # @yield [response, operation] Access the result along with the RPC operation
590
+ # @yieldparam response [::Gapic::Operation]
591
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
592
+ #
593
+ # @return [::Gapic::Operation]
594
+ #
595
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
596
+ #
597
+ # @example Basic example
598
+ # require "google/cloud/ai_platform/v1"
599
+ #
600
+ # # Create a client object. The client can be reused for multiple calls.
601
+ # client = Google::Cloud::AIPlatform::V1::EndpointService::Client.new
602
+ #
603
+ # # Create a request. To set request fields, pass in keyword arguments.
604
+ # request = Google::Cloud::AIPlatform::V1::DeleteEndpointRequest.new
605
+ #
606
+ # # Call the delete_endpoint method.
607
+ # result = client.delete_endpoint request
608
+ #
609
+ # # The returned object is of type Gapic::Operation. You can use this
610
+ # # object to check the status of an operation, cancel it, or wait
611
+ # # for results. Here is how to block until completion:
612
+ # result.wait_until_done! timeout: 60
613
+ # if result.response?
614
+ # p result.response
615
+ # else
616
+ # puts "Error!"
617
+ # end
618
+ #
619
+ def delete_endpoint request, options = nil
620
+ raise ::ArgumentError, "request must be provided" if request.nil?
621
+
622
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteEndpointRequest
623
+
624
+ # Converts hash and nil to an options object
625
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
626
+
627
+ # Customize the options with defaults
628
+ metadata = @config.rpcs.delete_endpoint.metadata.to_h
629
+
630
+ # Set x-goog-api-client and x-goog-user-project headers
631
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
632
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
633
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
634
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
635
+
636
+ header_params = {}
637
+ if request.name
638
+ header_params["name"] = request.name
639
+ end
640
+
641
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
642
+ metadata[:"x-goog-request-params"] ||= request_params_header
643
+
644
+ options.apply_defaults timeout: @config.rpcs.delete_endpoint.timeout,
645
+ metadata: metadata,
646
+ retry_policy: @config.rpcs.delete_endpoint.retry_policy
647
+
648
+ options.apply_defaults timeout: @config.timeout,
649
+ metadata: @config.metadata,
650
+ retry_policy: @config.retry_policy
651
+
652
+ @endpoint_service_stub.call_rpc :delete_endpoint, request, options: options do |response, operation|
653
+ response = ::Gapic::Operation.new response, @operations_client, options: options
654
+ yield response, operation if block_given?
655
+ return response
656
+ end
657
+ rescue ::GRPC::BadStatus => e
658
+ raise ::Google::Cloud::Error.from_error(e)
659
+ end
660
+
661
+ ##
662
+ # Deploys a Model into this Endpoint, creating a DeployedModel within it.
663
+ #
664
+ # @overload deploy_model(request, options = nil)
665
+ # Pass arguments to `deploy_model` via a request object, either of type
666
+ # {::Google::Cloud::AIPlatform::V1::DeployModelRequest} or an equivalent Hash.
667
+ #
668
+ # @param request [::Google::Cloud::AIPlatform::V1::DeployModelRequest, ::Hash]
669
+ # A request object representing the call parameters. Required. To specify no
670
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
671
+ # @param options [::Gapic::CallOptions, ::Hash]
672
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
673
+ #
674
+ # @overload deploy_model(endpoint: nil, deployed_model: nil, traffic_split: nil)
675
+ # Pass arguments to `deploy_model` via keyword arguments. Note that at
676
+ # least one keyword argument is required. To specify no parameters, or to keep all
677
+ # the default parameter values, pass an empty Hash as a request object (see above).
678
+ #
679
+ # @param endpoint [::String]
680
+ # Required. The name of the Endpoint resource into which to deploy a Model.
681
+ # Format:
682
+ # `projects/{project}/locations/{location}/endpoints/{endpoint}`
683
+ # @param deployed_model [::Google::Cloud::AIPlatform::V1::DeployedModel, ::Hash]
684
+ # Required. The DeployedModel to be created within the Endpoint. Note that
685
+ # {::Google::Cloud::AIPlatform::V1::Endpoint#traffic_split Endpoint.traffic_split} must be updated for the DeployedModel to start
686
+ # receiving traffic, either as part of this call, or via
687
+ # {::Google::Cloud::AIPlatform::V1::EndpointService::Client#update_endpoint EndpointService.UpdateEndpoint}.
688
+ # @param traffic_split [::Hash{::String => ::Integer}]
689
+ # A map from a DeployedModel's ID to the percentage of this Endpoint's
690
+ # traffic that should be forwarded to that DeployedModel.
691
+ #
692
+ # If this field is non-empty, then the Endpoint's
693
+ # {::Google::Cloud::AIPlatform::V1::Endpoint#traffic_split traffic_split} will be overwritten with it.
694
+ # To refer to the ID of the just being deployed Model, a "0" should be used,
695
+ # and the actual ID of the new DeployedModel will be filled in its place by
696
+ # this method. The traffic percentage values must add up to 100.
697
+ #
698
+ # If this field is empty, then the Endpoint's
699
+ # {::Google::Cloud::AIPlatform::V1::Endpoint#traffic_split traffic_split} is not updated.
700
+ #
701
+ # @yield [response, operation] Access the result along with the RPC operation
702
+ # @yieldparam response [::Gapic::Operation]
703
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
704
+ #
705
+ # @return [::Gapic::Operation]
706
+ #
707
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
708
+ #
709
+ # @example Basic example
710
+ # require "google/cloud/ai_platform/v1"
711
+ #
712
+ # # Create a client object. The client can be reused for multiple calls.
713
+ # client = Google::Cloud::AIPlatform::V1::EndpointService::Client.new
714
+ #
715
+ # # Create a request. To set request fields, pass in keyword arguments.
716
+ # request = Google::Cloud::AIPlatform::V1::DeployModelRequest.new
717
+ #
718
+ # # Call the deploy_model method.
719
+ # result = client.deploy_model request
720
+ #
721
+ # # The returned object is of type Gapic::Operation. You can use this
722
+ # # object to check the status of an operation, cancel it, or wait
723
+ # # for results. Here is how to block until completion:
724
+ # result.wait_until_done! timeout: 60
725
+ # if result.response?
726
+ # p result.response
727
+ # else
728
+ # puts "Error!"
729
+ # end
730
+ #
731
+ def deploy_model request, options = nil
732
+ raise ::ArgumentError, "request must be provided" if request.nil?
733
+
734
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeployModelRequest
735
+
736
+ # Converts hash and nil to an options object
737
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
738
+
739
+ # Customize the options with defaults
740
+ metadata = @config.rpcs.deploy_model.metadata.to_h
741
+
742
+ # Set x-goog-api-client and x-goog-user-project headers
743
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
744
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
745
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
746
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
747
+
748
+ header_params = {}
749
+ if request.endpoint
750
+ header_params["endpoint"] = request.endpoint
751
+ end
752
+
753
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
754
+ metadata[:"x-goog-request-params"] ||= request_params_header
755
+
756
+ options.apply_defaults timeout: @config.rpcs.deploy_model.timeout,
757
+ metadata: metadata,
758
+ retry_policy: @config.rpcs.deploy_model.retry_policy
759
+
760
+ options.apply_defaults timeout: @config.timeout,
761
+ metadata: @config.metadata,
762
+ retry_policy: @config.retry_policy
763
+
764
+ @endpoint_service_stub.call_rpc :deploy_model, request, options: options do |response, operation|
765
+ response = ::Gapic::Operation.new response, @operations_client, options: options
766
+ yield response, operation if block_given?
767
+ return response
768
+ end
769
+ rescue ::GRPC::BadStatus => e
770
+ raise ::Google::Cloud::Error.from_error(e)
771
+ end
772
+
773
+ ##
774
+ # Undeploys a Model from an Endpoint, removing a DeployedModel from it, and
775
+ # freeing all resources it's using.
776
+ #
777
+ # @overload undeploy_model(request, options = nil)
778
+ # Pass arguments to `undeploy_model` via a request object, either of type
779
+ # {::Google::Cloud::AIPlatform::V1::UndeployModelRequest} or an equivalent Hash.
780
+ #
781
+ # @param request [::Google::Cloud::AIPlatform::V1::UndeployModelRequest, ::Hash]
782
+ # A request object representing the call parameters. Required. To specify no
783
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
784
+ # @param options [::Gapic::CallOptions, ::Hash]
785
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
786
+ #
787
+ # @overload undeploy_model(endpoint: nil, deployed_model_id: nil, traffic_split: nil)
788
+ # Pass arguments to `undeploy_model` via keyword arguments. Note that at
789
+ # least one keyword argument is required. To specify no parameters, or to keep all
790
+ # the default parameter values, pass an empty Hash as a request object (see above).
791
+ #
792
+ # @param endpoint [::String]
793
+ # Required. The name of the Endpoint resource from which to undeploy a Model.
794
+ # Format:
795
+ # `projects/{project}/locations/{location}/endpoints/{endpoint}`
796
+ # @param deployed_model_id [::String]
797
+ # Required. The ID of the DeployedModel to be undeployed from the Endpoint.
798
+ # @param traffic_split [::Hash{::String => ::Integer}]
799
+ # If this field is provided, then the Endpoint's
800
+ # {::Google::Cloud::AIPlatform::V1::Endpoint#traffic_split traffic_split} will be overwritten with it. If
801
+ # last DeployedModel is being undeployed from the Endpoint, the
802
+ # [Endpoint.traffic_split] will always end up empty when this call returns.
803
+ # A DeployedModel will be successfully undeployed only if it doesn't have
804
+ # any traffic assigned to it when this method executes, or if this field
805
+ # unassigns any traffic to it.
806
+ #
807
+ # @yield [response, operation] Access the result along with the RPC operation
808
+ # @yieldparam response [::Gapic::Operation]
809
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
810
+ #
811
+ # @return [::Gapic::Operation]
812
+ #
813
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
814
+ #
815
+ # @example Basic example
816
+ # require "google/cloud/ai_platform/v1"
817
+ #
818
+ # # Create a client object. The client can be reused for multiple calls.
819
+ # client = Google::Cloud::AIPlatform::V1::EndpointService::Client.new
820
+ #
821
+ # # Create a request. To set request fields, pass in keyword arguments.
822
+ # request = Google::Cloud::AIPlatform::V1::UndeployModelRequest.new
823
+ #
824
+ # # Call the undeploy_model method.
825
+ # result = client.undeploy_model request
826
+ #
827
+ # # The returned object is of type Gapic::Operation. You can use this
828
+ # # object to check the status of an operation, cancel it, or wait
829
+ # # for results. Here is how to block until completion:
830
+ # result.wait_until_done! timeout: 60
831
+ # if result.response?
832
+ # p result.response
833
+ # else
834
+ # puts "Error!"
835
+ # end
836
+ #
837
+ def undeploy_model request, options = nil
838
+ raise ::ArgumentError, "request must be provided" if request.nil?
839
+
840
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UndeployModelRequest
841
+
842
+ # Converts hash and nil to an options object
843
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
844
+
845
+ # Customize the options with defaults
846
+ metadata = @config.rpcs.undeploy_model.metadata.to_h
847
+
848
+ # Set x-goog-api-client and x-goog-user-project headers
849
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
850
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
851
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
852
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
853
+
854
+ header_params = {}
855
+ if request.endpoint
856
+ header_params["endpoint"] = request.endpoint
857
+ end
858
+
859
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
860
+ metadata[:"x-goog-request-params"] ||= request_params_header
861
+
862
+ options.apply_defaults timeout: @config.rpcs.undeploy_model.timeout,
863
+ metadata: metadata,
864
+ retry_policy: @config.rpcs.undeploy_model.retry_policy
865
+
866
+ options.apply_defaults timeout: @config.timeout,
867
+ metadata: @config.metadata,
868
+ retry_policy: @config.retry_policy
869
+
870
+ @endpoint_service_stub.call_rpc :undeploy_model, request, options: options do |response, operation|
871
+ response = ::Gapic::Operation.new response, @operations_client, options: options
872
+ yield response, operation if block_given?
873
+ return response
874
+ end
875
+ rescue ::GRPC::BadStatus => e
876
+ raise ::Google::Cloud::Error.from_error(e)
877
+ end
878
+
879
+ ##
880
+ # Configuration class for the EndpointService API.
881
+ #
882
+ # This class represents the configuration for EndpointService,
883
+ # providing control over timeouts, retry behavior, logging, transport
884
+ # parameters, and other low-level controls. Certain parameters can also be
885
+ # applied individually to specific RPCs. See
886
+ # {::Google::Cloud::AIPlatform::V1::EndpointService::Client::Configuration::Rpcs}
887
+ # for a list of RPCs that can be configured independently.
888
+ #
889
+ # Configuration can be applied globally to all clients, or to a single client
890
+ # on construction.
891
+ #
892
+ # @example
893
+ #
894
+ # # Modify the global config, setting the timeout for
895
+ # # create_endpoint to 20 seconds,
896
+ # # and all remaining timeouts to 10 seconds.
897
+ # ::Google::Cloud::AIPlatform::V1::EndpointService::Client.configure do |config|
898
+ # config.timeout = 10.0
899
+ # config.rpcs.create_endpoint.timeout = 20.0
900
+ # end
901
+ #
902
+ # # Apply the above configuration only to a new client.
903
+ # client = ::Google::Cloud::AIPlatform::V1::EndpointService::Client.new do |config|
904
+ # config.timeout = 10.0
905
+ # config.rpcs.create_endpoint.timeout = 20.0
906
+ # end
907
+ #
908
+ # @!attribute [rw] endpoint
909
+ # The hostname or hostname:port of the service endpoint.
910
+ # Defaults to `"aiplatform.googleapis.com"`.
911
+ # @return [::String]
912
+ # @!attribute [rw] credentials
913
+ # Credentials to send with calls. You may provide any of the following types:
914
+ # * (`String`) The path to a service account key file in JSON format
915
+ # * (`Hash`) A service account key as a Hash
916
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
917
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
918
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
919
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
920
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
921
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
922
+ # * (`nil`) indicating no credentials
923
+ # @return [::Object]
924
+ # @!attribute [rw] scope
925
+ # The OAuth scopes
926
+ # @return [::Array<::String>]
927
+ # @!attribute [rw] lib_name
928
+ # The library name as recorded in instrumentation and logging
929
+ # @return [::String]
930
+ # @!attribute [rw] lib_version
931
+ # The library version as recorded in instrumentation and logging
932
+ # @return [::String]
933
+ # @!attribute [rw] channel_args
934
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
935
+ # `GRPC::Core::Channel` object is provided as the credential.
936
+ # @return [::Hash]
937
+ # @!attribute [rw] interceptors
938
+ # An array of interceptors that are run before calls are executed.
939
+ # @return [::Array<::GRPC::ClientInterceptor>]
940
+ # @!attribute [rw] timeout
941
+ # The call timeout in seconds.
942
+ # @return [::Numeric]
943
+ # @!attribute [rw] metadata
944
+ # Additional gRPC headers to be sent with the call.
945
+ # @return [::Hash{::Symbol=>::String}]
946
+ # @!attribute [rw] retry_policy
947
+ # The retry policy. The value is a hash with the following keys:
948
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
949
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
950
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
951
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
952
+ # trigger a retry.
953
+ # @return [::Hash]
954
+ # @!attribute [rw] quota_project
955
+ # A separate project against which to charge quota.
956
+ # @return [::String]
957
+ #
958
+ class Configuration
959
+ extend ::Gapic::Config
960
+
961
+ config_attr :endpoint, "aiplatform.googleapis.com", ::String
962
+ config_attr :credentials, nil do |value|
963
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
964
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
965
+ allowed.any? { |klass| klass === value }
966
+ end
967
+ config_attr :scope, nil, ::String, ::Array, nil
968
+ config_attr :lib_name, nil, ::String, nil
969
+ config_attr :lib_version, nil, ::String, nil
970
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
971
+ config_attr :interceptors, nil, ::Array, nil
972
+ config_attr :timeout, nil, ::Numeric, nil
973
+ config_attr :metadata, nil, ::Hash, nil
974
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
975
+ config_attr :quota_project, nil, ::String, nil
976
+
977
+ # @private
978
+ def initialize parent_config = nil
979
+ @parent_config = parent_config unless parent_config.nil?
980
+
981
+ yield self if block_given?
982
+ end
983
+
984
+ ##
985
+ # Configurations for individual RPCs
986
+ # @return [Rpcs]
987
+ #
988
+ def rpcs
989
+ @rpcs ||= begin
990
+ parent_rpcs = nil
991
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
992
+ Rpcs.new parent_rpcs
993
+ end
994
+ end
995
+
996
+ ##
997
+ # Configuration RPC class for the EndpointService API.
998
+ #
999
+ # Includes fields providing the configuration for each RPC in this service.
1000
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1001
+ # the following configuration fields:
1002
+ #
1003
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1004
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1005
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1006
+ # include the following keys:
1007
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1008
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1009
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1010
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1011
+ # trigger a retry.
1012
+ #
1013
+ class Rpcs
1014
+ ##
1015
+ # RPC-specific configuration for `create_endpoint`
1016
+ # @return [::Gapic::Config::Method]
1017
+ #
1018
+ attr_reader :create_endpoint
1019
+ ##
1020
+ # RPC-specific configuration for `get_endpoint`
1021
+ # @return [::Gapic::Config::Method]
1022
+ #
1023
+ attr_reader :get_endpoint
1024
+ ##
1025
+ # RPC-specific configuration for `list_endpoints`
1026
+ # @return [::Gapic::Config::Method]
1027
+ #
1028
+ attr_reader :list_endpoints
1029
+ ##
1030
+ # RPC-specific configuration for `update_endpoint`
1031
+ # @return [::Gapic::Config::Method]
1032
+ #
1033
+ attr_reader :update_endpoint
1034
+ ##
1035
+ # RPC-specific configuration for `delete_endpoint`
1036
+ # @return [::Gapic::Config::Method]
1037
+ #
1038
+ attr_reader :delete_endpoint
1039
+ ##
1040
+ # RPC-specific configuration for `deploy_model`
1041
+ # @return [::Gapic::Config::Method]
1042
+ #
1043
+ attr_reader :deploy_model
1044
+ ##
1045
+ # RPC-specific configuration for `undeploy_model`
1046
+ # @return [::Gapic::Config::Method]
1047
+ #
1048
+ attr_reader :undeploy_model
1049
+
1050
+ # @private
1051
+ def initialize parent_rpcs = nil
1052
+ create_endpoint_config = parent_rpcs.create_endpoint if parent_rpcs.respond_to? :create_endpoint
1053
+ @create_endpoint = ::Gapic::Config::Method.new create_endpoint_config
1054
+ get_endpoint_config = parent_rpcs.get_endpoint if parent_rpcs.respond_to? :get_endpoint
1055
+ @get_endpoint = ::Gapic::Config::Method.new get_endpoint_config
1056
+ list_endpoints_config = parent_rpcs.list_endpoints if parent_rpcs.respond_to? :list_endpoints
1057
+ @list_endpoints = ::Gapic::Config::Method.new list_endpoints_config
1058
+ update_endpoint_config = parent_rpcs.update_endpoint if parent_rpcs.respond_to? :update_endpoint
1059
+ @update_endpoint = ::Gapic::Config::Method.new update_endpoint_config
1060
+ delete_endpoint_config = parent_rpcs.delete_endpoint if parent_rpcs.respond_to? :delete_endpoint
1061
+ @delete_endpoint = ::Gapic::Config::Method.new delete_endpoint_config
1062
+ deploy_model_config = parent_rpcs.deploy_model if parent_rpcs.respond_to? :deploy_model
1063
+ @deploy_model = ::Gapic::Config::Method.new deploy_model_config
1064
+ undeploy_model_config = parent_rpcs.undeploy_model if parent_rpcs.respond_to? :undeploy_model
1065
+ @undeploy_model = ::Gapic::Config::Method.new undeploy_model_config
1066
+
1067
+ yield self if block_given?
1068
+ end
1069
+ end
1070
+ end
1071
+ end
1072
+ end
1073
+ end
1074
+ end
1075
+ end
1076
+ end