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,3236 @@
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/job_service_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module AIPlatform
25
+ module V1
26
+ module JobService
27
+ ##
28
+ # Client for the JobService service.
29
+ #
30
+ # A service for creating and managing Vertex AI's jobs.
31
+ #
32
+ class Client
33
+ include Paths
34
+
35
+ # @private
36
+ attr_reader :job_service_stub
37
+
38
+ ##
39
+ # Configure the JobService Client class.
40
+ #
41
+ # See {::Google::Cloud::AIPlatform::V1::JobService::Client::Configuration}
42
+ # for a description of the configuration fields.
43
+ #
44
+ # @example
45
+ #
46
+ # # Modify the configuration for all JobService clients
47
+ # ::Google::Cloud::AIPlatform::V1::JobService::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 JobService 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::JobService::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 JobService client object.
95
+ #
96
+ # @example
97
+ #
98
+ # # Create a client using the default configuration
99
+ # client = ::Google::Cloud::AIPlatform::V1::JobService::Client.new
100
+ #
101
+ # # Create a client using a custom configuration
102
+ # client = ::Google::Cloud::AIPlatform::V1::JobService::Client.new do |config|
103
+ # config.timeout = 10.0
104
+ # end
105
+ #
106
+ # @yield [config] Configure the JobService 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/job_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
+ @job_service_stub = ::Gapic::ServiceStub.new(
143
+ ::Google::Cloud::AIPlatform::V1::JobService::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::JobService::Operations]
155
+ #
156
+ attr_reader :operations_client
157
+
158
+ # Service calls
159
+
160
+ ##
161
+ # Creates a CustomJob. A created CustomJob right away
162
+ # will be attempted to be run.
163
+ #
164
+ # @overload create_custom_job(request, options = nil)
165
+ # Pass arguments to `create_custom_job` via a request object, either of type
166
+ # {::Google::Cloud::AIPlatform::V1::CreateCustomJobRequest} or an equivalent Hash.
167
+ #
168
+ # @param request [::Google::Cloud::AIPlatform::V1::CreateCustomJobRequest, ::Hash]
169
+ # A request object representing the call parameters. Required. To specify no
170
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
171
+ # @param options [::Gapic::CallOptions, ::Hash]
172
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
173
+ #
174
+ # @overload create_custom_job(parent: nil, custom_job: nil)
175
+ # Pass arguments to `create_custom_job` via keyword arguments. Note that at
176
+ # least one keyword argument is required. To specify no parameters, or to keep all
177
+ # the default parameter values, pass an empty Hash as a request object (see above).
178
+ #
179
+ # @param parent [::String]
180
+ # Required. The resource name of the Location to create the CustomJob in.
181
+ # Format: `projects/{project}/locations/{location}`
182
+ # @param custom_job [::Google::Cloud::AIPlatform::V1::CustomJob, ::Hash]
183
+ # Required. The CustomJob to create.
184
+ #
185
+ # @yield [response, operation] Access the result along with the RPC operation
186
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::CustomJob]
187
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
188
+ #
189
+ # @return [::Google::Cloud::AIPlatform::V1::CustomJob]
190
+ #
191
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
192
+ #
193
+ # @example Basic example
194
+ # require "google/cloud/ai_platform/v1"
195
+ #
196
+ # # Create a client object. The client can be reused for multiple calls.
197
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
198
+ #
199
+ # # Create a request. To set request fields, pass in keyword arguments.
200
+ # request = Google::Cloud::AIPlatform::V1::CreateCustomJobRequest.new
201
+ #
202
+ # # Call the create_custom_job method.
203
+ # result = client.create_custom_job request
204
+ #
205
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::CustomJob.
206
+ # p result
207
+ #
208
+ def create_custom_job request, options = nil
209
+ raise ::ArgumentError, "request must be provided" if request.nil?
210
+
211
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateCustomJobRequest
212
+
213
+ # Converts hash and nil to an options object
214
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
215
+
216
+ # Customize the options with defaults
217
+ metadata = @config.rpcs.create_custom_job.metadata.to_h
218
+
219
+ # Set x-goog-api-client and x-goog-user-project headers
220
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
221
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
222
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
223
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
224
+
225
+ header_params = {}
226
+ if request.parent
227
+ header_params["parent"] = request.parent
228
+ end
229
+
230
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
231
+ metadata[:"x-goog-request-params"] ||= request_params_header
232
+
233
+ options.apply_defaults timeout: @config.rpcs.create_custom_job.timeout,
234
+ metadata: metadata,
235
+ retry_policy: @config.rpcs.create_custom_job.retry_policy
236
+
237
+ options.apply_defaults timeout: @config.timeout,
238
+ metadata: @config.metadata,
239
+ retry_policy: @config.retry_policy
240
+
241
+ @job_service_stub.call_rpc :create_custom_job, request, options: options do |response, operation|
242
+ yield response, operation if block_given?
243
+ return response
244
+ end
245
+ rescue ::GRPC::BadStatus => e
246
+ raise ::Google::Cloud::Error.from_error(e)
247
+ end
248
+
249
+ ##
250
+ # Gets a CustomJob.
251
+ #
252
+ # @overload get_custom_job(request, options = nil)
253
+ # Pass arguments to `get_custom_job` via a request object, either of type
254
+ # {::Google::Cloud::AIPlatform::V1::GetCustomJobRequest} or an equivalent Hash.
255
+ #
256
+ # @param request [::Google::Cloud::AIPlatform::V1::GetCustomJobRequest, ::Hash]
257
+ # A request object representing the call parameters. Required. To specify no
258
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
259
+ # @param options [::Gapic::CallOptions, ::Hash]
260
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
261
+ #
262
+ # @overload get_custom_job(name: nil)
263
+ # Pass arguments to `get_custom_job` via keyword arguments. Note that at
264
+ # least one keyword argument is required. To specify no parameters, or to keep all
265
+ # the default parameter values, pass an empty Hash as a request object (see above).
266
+ #
267
+ # @param name [::String]
268
+ # Required. The name of the CustomJob resource.
269
+ # Format:
270
+ # `projects/{project}/locations/{location}/customJobs/{custom_job}`
271
+ #
272
+ # @yield [response, operation] Access the result along with the RPC operation
273
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::CustomJob]
274
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
275
+ #
276
+ # @return [::Google::Cloud::AIPlatform::V1::CustomJob]
277
+ #
278
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
279
+ #
280
+ # @example Basic example
281
+ # require "google/cloud/ai_platform/v1"
282
+ #
283
+ # # Create a client object. The client can be reused for multiple calls.
284
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
285
+ #
286
+ # # Create a request. To set request fields, pass in keyword arguments.
287
+ # request = Google::Cloud::AIPlatform::V1::GetCustomJobRequest.new
288
+ #
289
+ # # Call the get_custom_job method.
290
+ # result = client.get_custom_job request
291
+ #
292
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::CustomJob.
293
+ # p result
294
+ #
295
+ def get_custom_job request, options = nil
296
+ raise ::ArgumentError, "request must be provided" if request.nil?
297
+
298
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetCustomJobRequest
299
+
300
+ # Converts hash and nil to an options object
301
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
302
+
303
+ # Customize the options with defaults
304
+ metadata = @config.rpcs.get_custom_job.metadata.to_h
305
+
306
+ # Set x-goog-api-client and x-goog-user-project headers
307
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
308
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
309
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
310
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
311
+
312
+ header_params = {}
313
+ if request.name
314
+ header_params["name"] = request.name
315
+ end
316
+
317
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
318
+ metadata[:"x-goog-request-params"] ||= request_params_header
319
+
320
+ options.apply_defaults timeout: @config.rpcs.get_custom_job.timeout,
321
+ metadata: metadata,
322
+ retry_policy: @config.rpcs.get_custom_job.retry_policy
323
+
324
+ options.apply_defaults timeout: @config.timeout,
325
+ metadata: @config.metadata,
326
+ retry_policy: @config.retry_policy
327
+
328
+ @job_service_stub.call_rpc :get_custom_job, request, options: options do |response, operation|
329
+ yield response, operation if block_given?
330
+ return response
331
+ end
332
+ rescue ::GRPC::BadStatus => e
333
+ raise ::Google::Cloud::Error.from_error(e)
334
+ end
335
+
336
+ ##
337
+ # Lists CustomJobs in a Location.
338
+ #
339
+ # @overload list_custom_jobs(request, options = nil)
340
+ # Pass arguments to `list_custom_jobs` via a request object, either of type
341
+ # {::Google::Cloud::AIPlatform::V1::ListCustomJobsRequest} or an equivalent Hash.
342
+ #
343
+ # @param request [::Google::Cloud::AIPlatform::V1::ListCustomJobsRequest, ::Hash]
344
+ # A request object representing the call parameters. Required. To specify no
345
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
346
+ # @param options [::Gapic::CallOptions, ::Hash]
347
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
348
+ #
349
+ # @overload list_custom_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil)
350
+ # Pass arguments to `list_custom_jobs` via keyword arguments. Note that at
351
+ # least one keyword argument is required. To specify no parameters, or to keep all
352
+ # the default parameter values, pass an empty Hash as a request object (see above).
353
+ #
354
+ # @param parent [::String]
355
+ # Required. The resource name of the Location to list the CustomJobs from.
356
+ # Format: `projects/{project}/locations/{location}`
357
+ # @param filter [::String]
358
+ # The standard list filter.
359
+ #
360
+ # Supported fields:
361
+ #
362
+ # * `display_name` supports = and !=.
363
+ #
364
+ # * `state` supports = and !=.
365
+ #
366
+ # Some examples of using the filter are:
367
+ #
368
+ # * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
369
+ #
370
+ # * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
371
+ #
372
+ # * `NOT display_name="my_job"`
373
+ #
374
+ # * `state="JOB_STATE_FAILED"`
375
+ # @param page_size [::Integer]
376
+ # The standard list page size.
377
+ # @param page_token [::String]
378
+ # The standard list page token.
379
+ # Typically obtained via
380
+ # {::Google::Cloud::AIPlatform::V1::ListCustomJobsResponse#next_page_token ListCustomJobsResponse.next_page_token} of the previous
381
+ # {::Google::Cloud::AIPlatform::V1::JobService::Client#list_custom_jobs JobService.ListCustomJobs} call.
382
+ # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
383
+ # Mask specifying which fields to read.
384
+ #
385
+ # @yield [response, operation] Access the result along with the RPC operation
386
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::CustomJob>]
387
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
388
+ #
389
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::CustomJob>]
390
+ #
391
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
392
+ #
393
+ # @example Basic example
394
+ # require "google/cloud/ai_platform/v1"
395
+ #
396
+ # # Create a client object. The client can be reused for multiple calls.
397
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
398
+ #
399
+ # # Create a request. To set request fields, pass in keyword arguments.
400
+ # request = Google::Cloud::AIPlatform::V1::ListCustomJobsRequest.new
401
+ #
402
+ # # Call the list_custom_jobs method.
403
+ # result = client.list_custom_jobs request
404
+ #
405
+ # # The returned object is of type Gapic::PagedEnumerable. You can
406
+ # # iterate over all elements by calling #each, and the enumerable
407
+ # # will lazily make API calls to fetch subsequent pages. Other
408
+ # # methods are also available for managing paging directly.
409
+ # result.each do |response|
410
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::CustomJob.
411
+ # p response
412
+ # end
413
+ #
414
+ def list_custom_jobs request, options = nil
415
+ raise ::ArgumentError, "request must be provided" if request.nil?
416
+
417
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListCustomJobsRequest
418
+
419
+ # Converts hash and nil to an options object
420
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
421
+
422
+ # Customize the options with defaults
423
+ metadata = @config.rpcs.list_custom_jobs.metadata.to_h
424
+
425
+ # Set x-goog-api-client and x-goog-user-project headers
426
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
427
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
428
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
429
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
430
+
431
+ header_params = {}
432
+ if request.parent
433
+ header_params["parent"] = request.parent
434
+ end
435
+
436
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
437
+ metadata[:"x-goog-request-params"] ||= request_params_header
438
+
439
+ options.apply_defaults timeout: @config.rpcs.list_custom_jobs.timeout,
440
+ metadata: metadata,
441
+ retry_policy: @config.rpcs.list_custom_jobs.retry_policy
442
+
443
+ options.apply_defaults timeout: @config.timeout,
444
+ metadata: @config.metadata,
445
+ retry_policy: @config.retry_policy
446
+
447
+ @job_service_stub.call_rpc :list_custom_jobs, request, options: options do |response, operation|
448
+ response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_custom_jobs, request, response, operation, options
449
+ yield response, operation if block_given?
450
+ return response
451
+ end
452
+ rescue ::GRPC::BadStatus => e
453
+ raise ::Google::Cloud::Error.from_error(e)
454
+ end
455
+
456
+ ##
457
+ # Deletes a CustomJob.
458
+ #
459
+ # @overload delete_custom_job(request, options = nil)
460
+ # Pass arguments to `delete_custom_job` via a request object, either of type
461
+ # {::Google::Cloud::AIPlatform::V1::DeleteCustomJobRequest} or an equivalent Hash.
462
+ #
463
+ # @param request [::Google::Cloud::AIPlatform::V1::DeleteCustomJobRequest, ::Hash]
464
+ # A request object representing the call parameters. Required. To specify no
465
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
466
+ # @param options [::Gapic::CallOptions, ::Hash]
467
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
468
+ #
469
+ # @overload delete_custom_job(name: nil)
470
+ # Pass arguments to `delete_custom_job` via keyword arguments. Note that at
471
+ # least one keyword argument is required. To specify no parameters, or to keep all
472
+ # the default parameter values, pass an empty Hash as a request object (see above).
473
+ #
474
+ # @param name [::String]
475
+ # Required. The name of the CustomJob resource to be deleted.
476
+ # Format:
477
+ # `projects/{project}/locations/{location}/customJobs/{custom_job}`
478
+ #
479
+ # @yield [response, operation] Access the result along with the RPC operation
480
+ # @yieldparam response [::Gapic::Operation]
481
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
482
+ #
483
+ # @return [::Gapic::Operation]
484
+ #
485
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
486
+ #
487
+ # @example Basic example
488
+ # require "google/cloud/ai_platform/v1"
489
+ #
490
+ # # Create a client object. The client can be reused for multiple calls.
491
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
492
+ #
493
+ # # Create a request. To set request fields, pass in keyword arguments.
494
+ # request = Google::Cloud::AIPlatform::V1::DeleteCustomJobRequest.new
495
+ #
496
+ # # Call the delete_custom_job method.
497
+ # result = client.delete_custom_job request
498
+ #
499
+ # # The returned object is of type Gapic::Operation. You can use this
500
+ # # object to check the status of an operation, cancel it, or wait
501
+ # # for results. Here is how to block until completion:
502
+ # result.wait_until_done! timeout: 60
503
+ # if result.response?
504
+ # p result.response
505
+ # else
506
+ # puts "Error!"
507
+ # end
508
+ #
509
+ def delete_custom_job request, options = nil
510
+ raise ::ArgumentError, "request must be provided" if request.nil?
511
+
512
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteCustomJobRequest
513
+
514
+ # Converts hash and nil to an options object
515
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
516
+
517
+ # Customize the options with defaults
518
+ metadata = @config.rpcs.delete_custom_job.metadata.to_h
519
+
520
+ # Set x-goog-api-client and x-goog-user-project headers
521
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
522
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
523
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
524
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
525
+
526
+ header_params = {}
527
+ if request.name
528
+ header_params["name"] = request.name
529
+ end
530
+
531
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
532
+ metadata[:"x-goog-request-params"] ||= request_params_header
533
+
534
+ options.apply_defaults timeout: @config.rpcs.delete_custom_job.timeout,
535
+ metadata: metadata,
536
+ retry_policy: @config.rpcs.delete_custom_job.retry_policy
537
+
538
+ options.apply_defaults timeout: @config.timeout,
539
+ metadata: @config.metadata,
540
+ retry_policy: @config.retry_policy
541
+
542
+ @job_service_stub.call_rpc :delete_custom_job, request, options: options do |response, operation|
543
+ response = ::Gapic::Operation.new response, @operations_client, options: options
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
+ # Cancels a CustomJob.
553
+ # Starts asynchronous cancellation on the CustomJob. The server
554
+ # makes a best effort to cancel the job, but success is not
555
+ # guaranteed. Clients can use {::Google::Cloud::AIPlatform::V1::JobService::Client#get_custom_job JobService.GetCustomJob} or
556
+ # other methods to check whether the cancellation succeeded or whether the
557
+ # job completed despite cancellation. On successful cancellation,
558
+ # the CustomJob is not deleted; instead it becomes a job with
559
+ # a {::Google::Cloud::AIPlatform::V1::CustomJob#error CustomJob.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
560
+ # corresponding to `Code.CANCELLED`, and {::Google::Cloud::AIPlatform::V1::CustomJob#state CustomJob.state} is set to
561
+ # `CANCELLED`.
562
+ #
563
+ # @overload cancel_custom_job(request, options = nil)
564
+ # Pass arguments to `cancel_custom_job` via a request object, either of type
565
+ # {::Google::Cloud::AIPlatform::V1::CancelCustomJobRequest} or an equivalent Hash.
566
+ #
567
+ # @param request [::Google::Cloud::AIPlatform::V1::CancelCustomJobRequest, ::Hash]
568
+ # A request object representing the call parameters. Required. To specify no
569
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
570
+ # @param options [::Gapic::CallOptions, ::Hash]
571
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
572
+ #
573
+ # @overload cancel_custom_job(name: nil)
574
+ # Pass arguments to `cancel_custom_job` via keyword arguments. Note that at
575
+ # least one keyword argument is required. To specify no parameters, or to keep all
576
+ # the default parameter values, pass an empty Hash as a request object (see above).
577
+ #
578
+ # @param name [::String]
579
+ # Required. The name of the CustomJob to cancel.
580
+ # Format:
581
+ # `projects/{project}/locations/{location}/customJobs/{custom_job}`
582
+ #
583
+ # @yield [response, operation] Access the result along with the RPC operation
584
+ # @yieldparam response [::Google::Protobuf::Empty]
585
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
586
+ #
587
+ # @return [::Google::Protobuf::Empty]
588
+ #
589
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
590
+ #
591
+ # @example Basic example
592
+ # require "google/cloud/ai_platform/v1"
593
+ #
594
+ # # Create a client object. The client can be reused for multiple calls.
595
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
596
+ #
597
+ # # Create a request. To set request fields, pass in keyword arguments.
598
+ # request = Google::Cloud::AIPlatform::V1::CancelCustomJobRequest.new
599
+ #
600
+ # # Call the cancel_custom_job method.
601
+ # result = client.cancel_custom_job request
602
+ #
603
+ # # The returned object is of type Google::Protobuf::Empty.
604
+ # p result
605
+ #
606
+ def cancel_custom_job request, options = nil
607
+ raise ::ArgumentError, "request must be provided" if request.nil?
608
+
609
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CancelCustomJobRequest
610
+
611
+ # Converts hash and nil to an options object
612
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
613
+
614
+ # Customize the options with defaults
615
+ metadata = @config.rpcs.cancel_custom_job.metadata.to_h
616
+
617
+ # Set x-goog-api-client and x-goog-user-project headers
618
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
619
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
620
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
621
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
622
+
623
+ header_params = {}
624
+ if request.name
625
+ header_params["name"] = request.name
626
+ end
627
+
628
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
629
+ metadata[:"x-goog-request-params"] ||= request_params_header
630
+
631
+ options.apply_defaults timeout: @config.rpcs.cancel_custom_job.timeout,
632
+ metadata: metadata,
633
+ retry_policy: @config.rpcs.cancel_custom_job.retry_policy
634
+
635
+ options.apply_defaults timeout: @config.timeout,
636
+ metadata: @config.metadata,
637
+ retry_policy: @config.retry_policy
638
+
639
+ @job_service_stub.call_rpc :cancel_custom_job, request, options: options do |response, operation|
640
+ yield response, operation if block_given?
641
+ return response
642
+ end
643
+ rescue ::GRPC::BadStatus => e
644
+ raise ::Google::Cloud::Error.from_error(e)
645
+ end
646
+
647
+ ##
648
+ # Creates a DataLabelingJob.
649
+ #
650
+ # @overload create_data_labeling_job(request, options = nil)
651
+ # Pass arguments to `create_data_labeling_job` via a request object, either of type
652
+ # {::Google::Cloud::AIPlatform::V1::CreateDataLabelingJobRequest} or an equivalent Hash.
653
+ #
654
+ # @param request [::Google::Cloud::AIPlatform::V1::CreateDataLabelingJobRequest, ::Hash]
655
+ # A request object representing the call parameters. Required. To specify no
656
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
657
+ # @param options [::Gapic::CallOptions, ::Hash]
658
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
659
+ #
660
+ # @overload create_data_labeling_job(parent: nil, data_labeling_job: nil)
661
+ # Pass arguments to `create_data_labeling_job` via keyword arguments. Note that at
662
+ # least one keyword argument is required. To specify no parameters, or to keep all
663
+ # the default parameter values, pass an empty Hash as a request object (see above).
664
+ #
665
+ # @param parent [::String]
666
+ # Required. The parent of the DataLabelingJob.
667
+ # Format: `projects/{project}/locations/{location}`
668
+ # @param data_labeling_job [::Google::Cloud::AIPlatform::V1::DataLabelingJob, ::Hash]
669
+ # Required. The DataLabelingJob to create.
670
+ #
671
+ # @yield [response, operation] Access the result along with the RPC operation
672
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::DataLabelingJob]
673
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
674
+ #
675
+ # @return [::Google::Cloud::AIPlatform::V1::DataLabelingJob]
676
+ #
677
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
678
+ #
679
+ # @example Basic example
680
+ # require "google/cloud/ai_platform/v1"
681
+ #
682
+ # # Create a client object. The client can be reused for multiple calls.
683
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
684
+ #
685
+ # # Create a request. To set request fields, pass in keyword arguments.
686
+ # request = Google::Cloud::AIPlatform::V1::CreateDataLabelingJobRequest.new
687
+ #
688
+ # # Call the create_data_labeling_job method.
689
+ # result = client.create_data_labeling_job request
690
+ #
691
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::DataLabelingJob.
692
+ # p result
693
+ #
694
+ def create_data_labeling_job request, options = nil
695
+ raise ::ArgumentError, "request must be provided" if request.nil?
696
+
697
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateDataLabelingJobRequest
698
+
699
+ # Converts hash and nil to an options object
700
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
701
+
702
+ # Customize the options with defaults
703
+ metadata = @config.rpcs.create_data_labeling_job.metadata.to_h
704
+
705
+ # Set x-goog-api-client and x-goog-user-project headers
706
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
707
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
708
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
709
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
710
+
711
+ header_params = {}
712
+ if request.parent
713
+ header_params["parent"] = request.parent
714
+ end
715
+
716
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
717
+ metadata[:"x-goog-request-params"] ||= request_params_header
718
+
719
+ options.apply_defaults timeout: @config.rpcs.create_data_labeling_job.timeout,
720
+ metadata: metadata,
721
+ retry_policy: @config.rpcs.create_data_labeling_job.retry_policy
722
+
723
+ options.apply_defaults timeout: @config.timeout,
724
+ metadata: @config.metadata,
725
+ retry_policy: @config.retry_policy
726
+
727
+ @job_service_stub.call_rpc :create_data_labeling_job, request, options: options do |response, operation|
728
+ yield response, operation if block_given?
729
+ return response
730
+ end
731
+ rescue ::GRPC::BadStatus => e
732
+ raise ::Google::Cloud::Error.from_error(e)
733
+ end
734
+
735
+ ##
736
+ # Gets a DataLabelingJob.
737
+ #
738
+ # @overload get_data_labeling_job(request, options = nil)
739
+ # Pass arguments to `get_data_labeling_job` via a request object, either of type
740
+ # {::Google::Cloud::AIPlatform::V1::GetDataLabelingJobRequest} or an equivalent Hash.
741
+ #
742
+ # @param request [::Google::Cloud::AIPlatform::V1::GetDataLabelingJobRequest, ::Hash]
743
+ # A request object representing the call parameters. Required. To specify no
744
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
745
+ # @param options [::Gapic::CallOptions, ::Hash]
746
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
747
+ #
748
+ # @overload get_data_labeling_job(name: nil)
749
+ # Pass arguments to `get_data_labeling_job` via keyword arguments. Note that at
750
+ # least one keyword argument is required. To specify no parameters, or to keep all
751
+ # the default parameter values, pass an empty Hash as a request object (see above).
752
+ #
753
+ # @param name [::String]
754
+ # Required. The name of the DataLabelingJob.
755
+ # Format:
756
+ # `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
757
+ #
758
+ # @yield [response, operation] Access the result along with the RPC operation
759
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::DataLabelingJob]
760
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
761
+ #
762
+ # @return [::Google::Cloud::AIPlatform::V1::DataLabelingJob]
763
+ #
764
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
765
+ #
766
+ # @example Basic example
767
+ # require "google/cloud/ai_platform/v1"
768
+ #
769
+ # # Create a client object. The client can be reused for multiple calls.
770
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
771
+ #
772
+ # # Create a request. To set request fields, pass in keyword arguments.
773
+ # request = Google::Cloud::AIPlatform::V1::GetDataLabelingJobRequest.new
774
+ #
775
+ # # Call the get_data_labeling_job method.
776
+ # result = client.get_data_labeling_job request
777
+ #
778
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::DataLabelingJob.
779
+ # p result
780
+ #
781
+ def get_data_labeling_job request, options = nil
782
+ raise ::ArgumentError, "request must be provided" if request.nil?
783
+
784
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetDataLabelingJobRequest
785
+
786
+ # Converts hash and nil to an options object
787
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
788
+
789
+ # Customize the options with defaults
790
+ metadata = @config.rpcs.get_data_labeling_job.metadata.to_h
791
+
792
+ # Set x-goog-api-client and x-goog-user-project headers
793
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
794
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
795
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
796
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
797
+
798
+ header_params = {}
799
+ if request.name
800
+ header_params["name"] = request.name
801
+ end
802
+
803
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
804
+ metadata[:"x-goog-request-params"] ||= request_params_header
805
+
806
+ options.apply_defaults timeout: @config.rpcs.get_data_labeling_job.timeout,
807
+ metadata: metadata,
808
+ retry_policy: @config.rpcs.get_data_labeling_job.retry_policy
809
+
810
+ options.apply_defaults timeout: @config.timeout,
811
+ metadata: @config.metadata,
812
+ retry_policy: @config.retry_policy
813
+
814
+ @job_service_stub.call_rpc :get_data_labeling_job, request, options: options do |response, operation|
815
+ yield response, operation if block_given?
816
+ return response
817
+ end
818
+ rescue ::GRPC::BadStatus => e
819
+ raise ::Google::Cloud::Error.from_error(e)
820
+ end
821
+
822
+ ##
823
+ # Lists DataLabelingJobs in a Location.
824
+ #
825
+ # @overload list_data_labeling_jobs(request, options = nil)
826
+ # Pass arguments to `list_data_labeling_jobs` via a request object, either of type
827
+ # {::Google::Cloud::AIPlatform::V1::ListDataLabelingJobsRequest} or an equivalent Hash.
828
+ #
829
+ # @param request [::Google::Cloud::AIPlatform::V1::ListDataLabelingJobsRequest, ::Hash]
830
+ # A request object representing the call parameters. Required. To specify no
831
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
832
+ # @param options [::Gapic::CallOptions, ::Hash]
833
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
834
+ #
835
+ # @overload list_data_labeling_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil)
836
+ # Pass arguments to `list_data_labeling_jobs` via keyword arguments. Note that at
837
+ # least one keyword argument is required. To specify no parameters, or to keep all
838
+ # the default parameter values, pass an empty Hash as a request object (see above).
839
+ #
840
+ # @param parent [::String]
841
+ # Required. The parent of the DataLabelingJob.
842
+ # Format: `projects/{project}/locations/{location}`
843
+ # @param filter [::String]
844
+ # The standard list filter.
845
+ #
846
+ # Supported fields:
847
+ #
848
+ # * `display_name` supports = and !=.
849
+ #
850
+ # * `state` supports = and !=.
851
+ #
852
+ # Some examples of using the filter are:
853
+ #
854
+ # * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
855
+ #
856
+ # * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
857
+ #
858
+ # * `NOT display_name="my_job"`
859
+ #
860
+ # * `state="JOB_STATE_FAILED"`
861
+ # @param page_size [::Integer]
862
+ # The standard list page size.
863
+ # @param page_token [::String]
864
+ # The standard list page token.
865
+ # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
866
+ # Mask specifying which fields to read. FieldMask represents a set of
867
+ # symbolic field paths. For example, the mask can be `paths: "name"`. The
868
+ # "name" here is a field in DataLabelingJob.
869
+ # If this field is not set, all fields of the DataLabelingJob are returned.
870
+ # @param order_by [::String]
871
+ # A comma-separated list of fields to order by, sorted in ascending order by
872
+ # default.
873
+ # Use `desc` after a field name for descending.
874
+ #
875
+ # @yield [response, operation] Access the result along with the RPC operation
876
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DataLabelingJob>]
877
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
878
+ #
879
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DataLabelingJob>]
880
+ #
881
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
882
+ #
883
+ # @example Basic example
884
+ # require "google/cloud/ai_platform/v1"
885
+ #
886
+ # # Create a client object. The client can be reused for multiple calls.
887
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
888
+ #
889
+ # # Create a request. To set request fields, pass in keyword arguments.
890
+ # request = Google::Cloud::AIPlatform::V1::ListDataLabelingJobsRequest.new
891
+ #
892
+ # # Call the list_data_labeling_jobs method.
893
+ # result = client.list_data_labeling_jobs request
894
+ #
895
+ # # The returned object is of type Gapic::PagedEnumerable. You can
896
+ # # iterate over all elements by calling #each, and the enumerable
897
+ # # will lazily make API calls to fetch subsequent pages. Other
898
+ # # methods are also available for managing paging directly.
899
+ # result.each do |response|
900
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::DataLabelingJob.
901
+ # p response
902
+ # end
903
+ #
904
+ def list_data_labeling_jobs request, options = nil
905
+ raise ::ArgumentError, "request must be provided" if request.nil?
906
+
907
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListDataLabelingJobsRequest
908
+
909
+ # Converts hash and nil to an options object
910
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
911
+
912
+ # Customize the options with defaults
913
+ metadata = @config.rpcs.list_data_labeling_jobs.metadata.to_h
914
+
915
+ # Set x-goog-api-client and x-goog-user-project headers
916
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
917
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
918
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
919
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
920
+
921
+ header_params = {}
922
+ if request.parent
923
+ header_params["parent"] = request.parent
924
+ end
925
+
926
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
927
+ metadata[:"x-goog-request-params"] ||= request_params_header
928
+
929
+ options.apply_defaults timeout: @config.rpcs.list_data_labeling_jobs.timeout,
930
+ metadata: metadata,
931
+ retry_policy: @config.rpcs.list_data_labeling_jobs.retry_policy
932
+
933
+ options.apply_defaults timeout: @config.timeout,
934
+ metadata: @config.metadata,
935
+ retry_policy: @config.retry_policy
936
+
937
+ @job_service_stub.call_rpc :list_data_labeling_jobs, request, options: options do |response, operation|
938
+ response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_data_labeling_jobs, request, response, operation, options
939
+ yield response, operation if block_given?
940
+ return response
941
+ end
942
+ rescue ::GRPC::BadStatus => e
943
+ raise ::Google::Cloud::Error.from_error(e)
944
+ end
945
+
946
+ ##
947
+ # Deletes a DataLabelingJob.
948
+ #
949
+ # @overload delete_data_labeling_job(request, options = nil)
950
+ # Pass arguments to `delete_data_labeling_job` via a request object, either of type
951
+ # {::Google::Cloud::AIPlatform::V1::DeleteDataLabelingJobRequest} or an equivalent Hash.
952
+ #
953
+ # @param request [::Google::Cloud::AIPlatform::V1::DeleteDataLabelingJobRequest, ::Hash]
954
+ # A request object representing the call parameters. Required. To specify no
955
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
956
+ # @param options [::Gapic::CallOptions, ::Hash]
957
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
958
+ #
959
+ # @overload delete_data_labeling_job(name: nil)
960
+ # Pass arguments to `delete_data_labeling_job` via keyword arguments. Note that at
961
+ # least one keyword argument is required. To specify no parameters, or to keep all
962
+ # the default parameter values, pass an empty Hash as a request object (see above).
963
+ #
964
+ # @param name [::String]
965
+ # Required. The name of the DataLabelingJob to be deleted.
966
+ # Format:
967
+ # `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
968
+ #
969
+ # @yield [response, operation] Access the result along with the RPC operation
970
+ # @yieldparam response [::Gapic::Operation]
971
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
972
+ #
973
+ # @return [::Gapic::Operation]
974
+ #
975
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
976
+ #
977
+ # @example Basic example
978
+ # require "google/cloud/ai_platform/v1"
979
+ #
980
+ # # Create a client object. The client can be reused for multiple calls.
981
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
982
+ #
983
+ # # Create a request. To set request fields, pass in keyword arguments.
984
+ # request = Google::Cloud::AIPlatform::V1::DeleteDataLabelingJobRequest.new
985
+ #
986
+ # # Call the delete_data_labeling_job method.
987
+ # result = client.delete_data_labeling_job request
988
+ #
989
+ # # The returned object is of type Gapic::Operation. You can use this
990
+ # # object to check the status of an operation, cancel it, or wait
991
+ # # for results. Here is how to block until completion:
992
+ # result.wait_until_done! timeout: 60
993
+ # if result.response?
994
+ # p result.response
995
+ # else
996
+ # puts "Error!"
997
+ # end
998
+ #
999
+ def delete_data_labeling_job request, options = nil
1000
+ raise ::ArgumentError, "request must be provided" if request.nil?
1001
+
1002
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteDataLabelingJobRequest
1003
+
1004
+ # Converts hash and nil to an options object
1005
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1006
+
1007
+ # Customize the options with defaults
1008
+ metadata = @config.rpcs.delete_data_labeling_job.metadata.to_h
1009
+
1010
+ # Set x-goog-api-client and x-goog-user-project headers
1011
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1012
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1013
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1014
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1015
+
1016
+ header_params = {}
1017
+ if request.name
1018
+ header_params["name"] = request.name
1019
+ end
1020
+
1021
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1022
+ metadata[:"x-goog-request-params"] ||= request_params_header
1023
+
1024
+ options.apply_defaults timeout: @config.rpcs.delete_data_labeling_job.timeout,
1025
+ metadata: metadata,
1026
+ retry_policy: @config.rpcs.delete_data_labeling_job.retry_policy
1027
+
1028
+ options.apply_defaults timeout: @config.timeout,
1029
+ metadata: @config.metadata,
1030
+ retry_policy: @config.retry_policy
1031
+
1032
+ @job_service_stub.call_rpc :delete_data_labeling_job, request, options: options do |response, operation|
1033
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1034
+ yield response, operation if block_given?
1035
+ return response
1036
+ end
1037
+ rescue ::GRPC::BadStatus => e
1038
+ raise ::Google::Cloud::Error.from_error(e)
1039
+ end
1040
+
1041
+ ##
1042
+ # Cancels a DataLabelingJob. Success of cancellation is not guaranteed.
1043
+ #
1044
+ # @overload cancel_data_labeling_job(request, options = nil)
1045
+ # Pass arguments to `cancel_data_labeling_job` via a request object, either of type
1046
+ # {::Google::Cloud::AIPlatform::V1::CancelDataLabelingJobRequest} or an equivalent Hash.
1047
+ #
1048
+ # @param request [::Google::Cloud::AIPlatform::V1::CancelDataLabelingJobRequest, ::Hash]
1049
+ # A request object representing the call parameters. Required. To specify no
1050
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1051
+ # @param options [::Gapic::CallOptions, ::Hash]
1052
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1053
+ #
1054
+ # @overload cancel_data_labeling_job(name: nil)
1055
+ # Pass arguments to `cancel_data_labeling_job` via keyword arguments. Note that at
1056
+ # least one keyword argument is required. To specify no parameters, or to keep all
1057
+ # the default parameter values, pass an empty Hash as a request object (see above).
1058
+ #
1059
+ # @param name [::String]
1060
+ # Required. The name of the DataLabelingJob.
1061
+ # Format:
1062
+ # `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
1063
+ #
1064
+ # @yield [response, operation] Access the result along with the RPC operation
1065
+ # @yieldparam response [::Google::Protobuf::Empty]
1066
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1067
+ #
1068
+ # @return [::Google::Protobuf::Empty]
1069
+ #
1070
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1071
+ #
1072
+ # @example Basic example
1073
+ # require "google/cloud/ai_platform/v1"
1074
+ #
1075
+ # # Create a client object. The client can be reused for multiple calls.
1076
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
1077
+ #
1078
+ # # Create a request. To set request fields, pass in keyword arguments.
1079
+ # request = Google::Cloud::AIPlatform::V1::CancelDataLabelingJobRequest.new
1080
+ #
1081
+ # # Call the cancel_data_labeling_job method.
1082
+ # result = client.cancel_data_labeling_job request
1083
+ #
1084
+ # # The returned object is of type Google::Protobuf::Empty.
1085
+ # p result
1086
+ #
1087
+ def cancel_data_labeling_job request, options = nil
1088
+ raise ::ArgumentError, "request must be provided" if request.nil?
1089
+
1090
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CancelDataLabelingJobRequest
1091
+
1092
+ # Converts hash and nil to an options object
1093
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1094
+
1095
+ # Customize the options with defaults
1096
+ metadata = @config.rpcs.cancel_data_labeling_job.metadata.to_h
1097
+
1098
+ # Set x-goog-api-client and x-goog-user-project headers
1099
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1100
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1101
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1102
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1103
+
1104
+ header_params = {}
1105
+ if request.name
1106
+ header_params["name"] = request.name
1107
+ end
1108
+
1109
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1110
+ metadata[:"x-goog-request-params"] ||= request_params_header
1111
+
1112
+ options.apply_defaults timeout: @config.rpcs.cancel_data_labeling_job.timeout,
1113
+ metadata: metadata,
1114
+ retry_policy: @config.rpcs.cancel_data_labeling_job.retry_policy
1115
+
1116
+ options.apply_defaults timeout: @config.timeout,
1117
+ metadata: @config.metadata,
1118
+ retry_policy: @config.retry_policy
1119
+
1120
+ @job_service_stub.call_rpc :cancel_data_labeling_job, request, options: options do |response, operation|
1121
+ yield response, operation if block_given?
1122
+ return response
1123
+ end
1124
+ rescue ::GRPC::BadStatus => e
1125
+ raise ::Google::Cloud::Error.from_error(e)
1126
+ end
1127
+
1128
+ ##
1129
+ # Creates a HyperparameterTuningJob
1130
+ #
1131
+ # @overload create_hyperparameter_tuning_job(request, options = nil)
1132
+ # Pass arguments to `create_hyperparameter_tuning_job` via a request object, either of type
1133
+ # {::Google::Cloud::AIPlatform::V1::CreateHyperparameterTuningJobRequest} or an equivalent Hash.
1134
+ #
1135
+ # @param request [::Google::Cloud::AIPlatform::V1::CreateHyperparameterTuningJobRequest, ::Hash]
1136
+ # A request object representing the call parameters. Required. To specify no
1137
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1138
+ # @param options [::Gapic::CallOptions, ::Hash]
1139
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1140
+ #
1141
+ # @overload create_hyperparameter_tuning_job(parent: nil, hyperparameter_tuning_job: nil)
1142
+ # Pass arguments to `create_hyperparameter_tuning_job` via keyword arguments. Note that at
1143
+ # least one keyword argument is required. To specify no parameters, or to keep all
1144
+ # the default parameter values, pass an empty Hash as a request object (see above).
1145
+ #
1146
+ # @param parent [::String]
1147
+ # Required. The resource name of the Location to create the HyperparameterTuningJob in.
1148
+ # Format: `projects/{project}/locations/{location}`
1149
+ # @param hyperparameter_tuning_job [::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob, ::Hash]
1150
+ # Required. The HyperparameterTuningJob to create.
1151
+ #
1152
+ # @yield [response, operation] Access the result along with the RPC operation
1153
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob]
1154
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1155
+ #
1156
+ # @return [::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob]
1157
+ #
1158
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1159
+ #
1160
+ # @example Basic example
1161
+ # require "google/cloud/ai_platform/v1"
1162
+ #
1163
+ # # Create a client object. The client can be reused for multiple calls.
1164
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
1165
+ #
1166
+ # # Create a request. To set request fields, pass in keyword arguments.
1167
+ # request = Google::Cloud::AIPlatform::V1::CreateHyperparameterTuningJobRequest.new
1168
+ #
1169
+ # # Call the create_hyperparameter_tuning_job method.
1170
+ # result = client.create_hyperparameter_tuning_job request
1171
+ #
1172
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::HyperparameterTuningJob.
1173
+ # p result
1174
+ #
1175
+ def create_hyperparameter_tuning_job request, options = nil
1176
+ raise ::ArgumentError, "request must be provided" if request.nil?
1177
+
1178
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateHyperparameterTuningJobRequest
1179
+
1180
+ # Converts hash and nil to an options object
1181
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1182
+
1183
+ # Customize the options with defaults
1184
+ metadata = @config.rpcs.create_hyperparameter_tuning_job.metadata.to_h
1185
+
1186
+ # Set x-goog-api-client and x-goog-user-project headers
1187
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1188
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1189
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1190
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1191
+
1192
+ header_params = {}
1193
+ if request.parent
1194
+ header_params["parent"] = request.parent
1195
+ end
1196
+
1197
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1198
+ metadata[:"x-goog-request-params"] ||= request_params_header
1199
+
1200
+ options.apply_defaults timeout: @config.rpcs.create_hyperparameter_tuning_job.timeout,
1201
+ metadata: metadata,
1202
+ retry_policy: @config.rpcs.create_hyperparameter_tuning_job.retry_policy
1203
+
1204
+ options.apply_defaults timeout: @config.timeout,
1205
+ metadata: @config.metadata,
1206
+ retry_policy: @config.retry_policy
1207
+
1208
+ @job_service_stub.call_rpc :create_hyperparameter_tuning_job, request, options: options do |response, operation|
1209
+ yield response, operation if block_given?
1210
+ return response
1211
+ end
1212
+ rescue ::GRPC::BadStatus => e
1213
+ raise ::Google::Cloud::Error.from_error(e)
1214
+ end
1215
+
1216
+ ##
1217
+ # Gets a HyperparameterTuningJob
1218
+ #
1219
+ # @overload get_hyperparameter_tuning_job(request, options = nil)
1220
+ # Pass arguments to `get_hyperparameter_tuning_job` via a request object, either of type
1221
+ # {::Google::Cloud::AIPlatform::V1::GetHyperparameterTuningJobRequest} or an equivalent Hash.
1222
+ #
1223
+ # @param request [::Google::Cloud::AIPlatform::V1::GetHyperparameterTuningJobRequest, ::Hash]
1224
+ # A request object representing the call parameters. Required. To specify no
1225
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1226
+ # @param options [::Gapic::CallOptions, ::Hash]
1227
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1228
+ #
1229
+ # @overload get_hyperparameter_tuning_job(name: nil)
1230
+ # Pass arguments to `get_hyperparameter_tuning_job` via keyword arguments. Note that at
1231
+ # least one keyword argument is required. To specify no parameters, or to keep all
1232
+ # the default parameter values, pass an empty Hash as a request object (see above).
1233
+ #
1234
+ # @param name [::String]
1235
+ # Required. The name of the HyperparameterTuningJob resource.
1236
+ # Format:
1237
+ # `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
1238
+ #
1239
+ # @yield [response, operation] Access the result along with the RPC operation
1240
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob]
1241
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1242
+ #
1243
+ # @return [::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob]
1244
+ #
1245
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1246
+ #
1247
+ # @example Basic example
1248
+ # require "google/cloud/ai_platform/v1"
1249
+ #
1250
+ # # Create a client object. The client can be reused for multiple calls.
1251
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
1252
+ #
1253
+ # # Create a request. To set request fields, pass in keyword arguments.
1254
+ # request = Google::Cloud::AIPlatform::V1::GetHyperparameterTuningJobRequest.new
1255
+ #
1256
+ # # Call the get_hyperparameter_tuning_job method.
1257
+ # result = client.get_hyperparameter_tuning_job request
1258
+ #
1259
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::HyperparameterTuningJob.
1260
+ # p result
1261
+ #
1262
+ def get_hyperparameter_tuning_job request, options = nil
1263
+ raise ::ArgumentError, "request must be provided" if request.nil?
1264
+
1265
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetHyperparameterTuningJobRequest
1266
+
1267
+ # Converts hash and nil to an options object
1268
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1269
+
1270
+ # Customize the options with defaults
1271
+ metadata = @config.rpcs.get_hyperparameter_tuning_job.metadata.to_h
1272
+
1273
+ # Set x-goog-api-client and x-goog-user-project headers
1274
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1275
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1276
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1277
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1278
+
1279
+ header_params = {}
1280
+ if request.name
1281
+ header_params["name"] = request.name
1282
+ end
1283
+
1284
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1285
+ metadata[:"x-goog-request-params"] ||= request_params_header
1286
+
1287
+ options.apply_defaults timeout: @config.rpcs.get_hyperparameter_tuning_job.timeout,
1288
+ metadata: metadata,
1289
+ retry_policy: @config.rpcs.get_hyperparameter_tuning_job.retry_policy
1290
+
1291
+ options.apply_defaults timeout: @config.timeout,
1292
+ metadata: @config.metadata,
1293
+ retry_policy: @config.retry_policy
1294
+
1295
+ @job_service_stub.call_rpc :get_hyperparameter_tuning_job, request, options: options do |response, operation|
1296
+ yield response, operation if block_given?
1297
+ return response
1298
+ end
1299
+ rescue ::GRPC::BadStatus => e
1300
+ raise ::Google::Cloud::Error.from_error(e)
1301
+ end
1302
+
1303
+ ##
1304
+ # Lists HyperparameterTuningJobs in a Location.
1305
+ #
1306
+ # @overload list_hyperparameter_tuning_jobs(request, options = nil)
1307
+ # Pass arguments to `list_hyperparameter_tuning_jobs` via a request object, either of type
1308
+ # {::Google::Cloud::AIPlatform::V1::ListHyperparameterTuningJobsRequest} or an equivalent Hash.
1309
+ #
1310
+ # @param request [::Google::Cloud::AIPlatform::V1::ListHyperparameterTuningJobsRequest, ::Hash]
1311
+ # A request object representing the call parameters. Required. To specify no
1312
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1313
+ # @param options [::Gapic::CallOptions, ::Hash]
1314
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1315
+ #
1316
+ # @overload list_hyperparameter_tuning_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil)
1317
+ # Pass arguments to `list_hyperparameter_tuning_jobs` via keyword arguments. Note that at
1318
+ # least one keyword argument is required. To specify no parameters, or to keep all
1319
+ # the default parameter values, pass an empty Hash as a request object (see above).
1320
+ #
1321
+ # @param parent [::String]
1322
+ # Required. The resource name of the Location to list the HyperparameterTuningJobs
1323
+ # from. Format: `projects/{project}/locations/{location}`
1324
+ # @param filter [::String]
1325
+ # The standard list filter.
1326
+ #
1327
+ # Supported fields:
1328
+ #
1329
+ # * `display_name` supports = and !=.
1330
+ #
1331
+ # * `state` supports = and !=.
1332
+ #
1333
+ # Some examples of using the filter are:
1334
+ #
1335
+ # * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
1336
+ #
1337
+ # * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
1338
+ #
1339
+ # * `NOT display_name="my_job"`
1340
+ #
1341
+ # * `state="JOB_STATE_FAILED"`
1342
+ # @param page_size [::Integer]
1343
+ # The standard list page size.
1344
+ # @param page_token [::String]
1345
+ # The standard list page token.
1346
+ # Typically obtained via
1347
+ # {::Google::Cloud::AIPlatform::V1::ListHyperparameterTuningJobsResponse#next_page_token ListHyperparameterTuningJobsResponse.next_page_token} of the previous
1348
+ # {::Google::Cloud::AIPlatform::V1::JobService::Client#list_hyperparameter_tuning_jobs JobService.ListHyperparameterTuningJobs} call.
1349
+ # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
1350
+ # Mask specifying which fields to read.
1351
+ #
1352
+ # @yield [response, operation] Access the result along with the RPC operation
1353
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob>]
1354
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1355
+ #
1356
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob>]
1357
+ #
1358
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1359
+ #
1360
+ # @example Basic example
1361
+ # require "google/cloud/ai_platform/v1"
1362
+ #
1363
+ # # Create a client object. The client can be reused for multiple calls.
1364
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
1365
+ #
1366
+ # # Create a request. To set request fields, pass in keyword arguments.
1367
+ # request = Google::Cloud::AIPlatform::V1::ListHyperparameterTuningJobsRequest.new
1368
+ #
1369
+ # # Call the list_hyperparameter_tuning_jobs method.
1370
+ # result = client.list_hyperparameter_tuning_jobs request
1371
+ #
1372
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1373
+ # # iterate over all elements by calling #each, and the enumerable
1374
+ # # will lazily make API calls to fetch subsequent pages. Other
1375
+ # # methods are also available for managing paging directly.
1376
+ # result.each do |response|
1377
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob.
1378
+ # p response
1379
+ # end
1380
+ #
1381
+ def list_hyperparameter_tuning_jobs request, options = nil
1382
+ raise ::ArgumentError, "request must be provided" if request.nil?
1383
+
1384
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListHyperparameterTuningJobsRequest
1385
+
1386
+ # Converts hash and nil to an options object
1387
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1388
+
1389
+ # Customize the options with defaults
1390
+ metadata = @config.rpcs.list_hyperparameter_tuning_jobs.metadata.to_h
1391
+
1392
+ # Set x-goog-api-client and x-goog-user-project headers
1393
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1394
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1395
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1396
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1397
+
1398
+ header_params = {}
1399
+ if request.parent
1400
+ header_params["parent"] = request.parent
1401
+ end
1402
+
1403
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1404
+ metadata[:"x-goog-request-params"] ||= request_params_header
1405
+
1406
+ options.apply_defaults timeout: @config.rpcs.list_hyperparameter_tuning_jobs.timeout,
1407
+ metadata: metadata,
1408
+ retry_policy: @config.rpcs.list_hyperparameter_tuning_jobs.retry_policy
1409
+
1410
+ options.apply_defaults timeout: @config.timeout,
1411
+ metadata: @config.metadata,
1412
+ retry_policy: @config.retry_policy
1413
+
1414
+ @job_service_stub.call_rpc :list_hyperparameter_tuning_jobs, request, options: options do |response, operation|
1415
+ response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_hyperparameter_tuning_jobs, request, response, operation, options
1416
+ yield response, operation if block_given?
1417
+ return response
1418
+ end
1419
+ rescue ::GRPC::BadStatus => e
1420
+ raise ::Google::Cloud::Error.from_error(e)
1421
+ end
1422
+
1423
+ ##
1424
+ # Deletes a HyperparameterTuningJob.
1425
+ #
1426
+ # @overload delete_hyperparameter_tuning_job(request, options = nil)
1427
+ # Pass arguments to `delete_hyperparameter_tuning_job` via a request object, either of type
1428
+ # {::Google::Cloud::AIPlatform::V1::DeleteHyperparameterTuningJobRequest} or an equivalent Hash.
1429
+ #
1430
+ # @param request [::Google::Cloud::AIPlatform::V1::DeleteHyperparameterTuningJobRequest, ::Hash]
1431
+ # A request object representing the call parameters. Required. To specify no
1432
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1433
+ # @param options [::Gapic::CallOptions, ::Hash]
1434
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1435
+ #
1436
+ # @overload delete_hyperparameter_tuning_job(name: nil)
1437
+ # Pass arguments to `delete_hyperparameter_tuning_job` via keyword arguments. Note that at
1438
+ # least one keyword argument is required. To specify no parameters, or to keep all
1439
+ # the default parameter values, pass an empty Hash as a request object (see above).
1440
+ #
1441
+ # @param name [::String]
1442
+ # Required. The name of the HyperparameterTuningJob resource to be deleted.
1443
+ # Format:
1444
+ # `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
1445
+ #
1446
+ # @yield [response, operation] Access the result along with the RPC operation
1447
+ # @yieldparam response [::Gapic::Operation]
1448
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1449
+ #
1450
+ # @return [::Gapic::Operation]
1451
+ #
1452
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1453
+ #
1454
+ # @example Basic example
1455
+ # require "google/cloud/ai_platform/v1"
1456
+ #
1457
+ # # Create a client object. The client can be reused for multiple calls.
1458
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
1459
+ #
1460
+ # # Create a request. To set request fields, pass in keyword arguments.
1461
+ # request = Google::Cloud::AIPlatform::V1::DeleteHyperparameterTuningJobRequest.new
1462
+ #
1463
+ # # Call the delete_hyperparameter_tuning_job method.
1464
+ # result = client.delete_hyperparameter_tuning_job request
1465
+ #
1466
+ # # The returned object is of type Gapic::Operation. You can use this
1467
+ # # object to check the status of an operation, cancel it, or wait
1468
+ # # for results. Here is how to block until completion:
1469
+ # result.wait_until_done! timeout: 60
1470
+ # if result.response?
1471
+ # p result.response
1472
+ # else
1473
+ # puts "Error!"
1474
+ # end
1475
+ #
1476
+ def delete_hyperparameter_tuning_job request, options = nil
1477
+ raise ::ArgumentError, "request must be provided" if request.nil?
1478
+
1479
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteHyperparameterTuningJobRequest
1480
+
1481
+ # Converts hash and nil to an options object
1482
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1483
+
1484
+ # Customize the options with defaults
1485
+ metadata = @config.rpcs.delete_hyperparameter_tuning_job.metadata.to_h
1486
+
1487
+ # Set x-goog-api-client and x-goog-user-project headers
1488
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1489
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1490
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1491
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1492
+
1493
+ header_params = {}
1494
+ if request.name
1495
+ header_params["name"] = request.name
1496
+ end
1497
+
1498
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1499
+ metadata[:"x-goog-request-params"] ||= request_params_header
1500
+
1501
+ options.apply_defaults timeout: @config.rpcs.delete_hyperparameter_tuning_job.timeout,
1502
+ metadata: metadata,
1503
+ retry_policy: @config.rpcs.delete_hyperparameter_tuning_job.retry_policy
1504
+
1505
+ options.apply_defaults timeout: @config.timeout,
1506
+ metadata: @config.metadata,
1507
+ retry_policy: @config.retry_policy
1508
+
1509
+ @job_service_stub.call_rpc :delete_hyperparameter_tuning_job, request, options: options do |response, operation|
1510
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1511
+ yield response, operation if block_given?
1512
+ return response
1513
+ end
1514
+ rescue ::GRPC::BadStatus => e
1515
+ raise ::Google::Cloud::Error.from_error(e)
1516
+ end
1517
+
1518
+ ##
1519
+ # Cancels a HyperparameterTuningJob.
1520
+ # Starts asynchronous cancellation on the HyperparameterTuningJob. The server
1521
+ # makes a best effort to cancel the job, but success is not
1522
+ # guaranteed. Clients can use {::Google::Cloud::AIPlatform::V1::JobService::Client#get_hyperparameter_tuning_job JobService.GetHyperparameterTuningJob} or
1523
+ # other methods to check whether the cancellation succeeded or whether the
1524
+ # job completed despite cancellation. On successful cancellation,
1525
+ # the HyperparameterTuningJob is not deleted; instead it becomes a job with
1526
+ # a {::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob#error HyperparameterTuningJob.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code}
1527
+ # of 1, corresponding to `Code.CANCELLED`, and
1528
+ # {::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob#state HyperparameterTuningJob.state} is set to `CANCELLED`.
1529
+ #
1530
+ # @overload cancel_hyperparameter_tuning_job(request, options = nil)
1531
+ # Pass arguments to `cancel_hyperparameter_tuning_job` via a request object, either of type
1532
+ # {::Google::Cloud::AIPlatform::V1::CancelHyperparameterTuningJobRequest} or an equivalent Hash.
1533
+ #
1534
+ # @param request [::Google::Cloud::AIPlatform::V1::CancelHyperparameterTuningJobRequest, ::Hash]
1535
+ # A request object representing the call parameters. Required. To specify no
1536
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1537
+ # @param options [::Gapic::CallOptions, ::Hash]
1538
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1539
+ #
1540
+ # @overload cancel_hyperparameter_tuning_job(name: nil)
1541
+ # Pass arguments to `cancel_hyperparameter_tuning_job` via keyword arguments. Note that at
1542
+ # least one keyword argument is required. To specify no parameters, or to keep all
1543
+ # the default parameter values, pass an empty Hash as a request object (see above).
1544
+ #
1545
+ # @param name [::String]
1546
+ # Required. The name of the HyperparameterTuningJob to cancel.
1547
+ # Format:
1548
+ # `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`
1549
+ #
1550
+ # @yield [response, operation] Access the result along with the RPC operation
1551
+ # @yieldparam response [::Google::Protobuf::Empty]
1552
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1553
+ #
1554
+ # @return [::Google::Protobuf::Empty]
1555
+ #
1556
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1557
+ #
1558
+ # @example Basic example
1559
+ # require "google/cloud/ai_platform/v1"
1560
+ #
1561
+ # # Create a client object. The client can be reused for multiple calls.
1562
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
1563
+ #
1564
+ # # Create a request. To set request fields, pass in keyword arguments.
1565
+ # request = Google::Cloud::AIPlatform::V1::CancelHyperparameterTuningJobRequest.new
1566
+ #
1567
+ # # Call the cancel_hyperparameter_tuning_job method.
1568
+ # result = client.cancel_hyperparameter_tuning_job request
1569
+ #
1570
+ # # The returned object is of type Google::Protobuf::Empty.
1571
+ # p result
1572
+ #
1573
+ def cancel_hyperparameter_tuning_job request, options = nil
1574
+ raise ::ArgumentError, "request must be provided" if request.nil?
1575
+
1576
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CancelHyperparameterTuningJobRequest
1577
+
1578
+ # Converts hash and nil to an options object
1579
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1580
+
1581
+ # Customize the options with defaults
1582
+ metadata = @config.rpcs.cancel_hyperparameter_tuning_job.metadata.to_h
1583
+
1584
+ # Set x-goog-api-client and x-goog-user-project headers
1585
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1586
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1587
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1588
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1589
+
1590
+ header_params = {}
1591
+ if request.name
1592
+ header_params["name"] = request.name
1593
+ end
1594
+
1595
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1596
+ metadata[:"x-goog-request-params"] ||= request_params_header
1597
+
1598
+ options.apply_defaults timeout: @config.rpcs.cancel_hyperparameter_tuning_job.timeout,
1599
+ metadata: metadata,
1600
+ retry_policy: @config.rpcs.cancel_hyperparameter_tuning_job.retry_policy
1601
+
1602
+ options.apply_defaults timeout: @config.timeout,
1603
+ metadata: @config.metadata,
1604
+ retry_policy: @config.retry_policy
1605
+
1606
+ @job_service_stub.call_rpc :cancel_hyperparameter_tuning_job, request, options: options do |response, operation|
1607
+ yield response, operation if block_given?
1608
+ return response
1609
+ end
1610
+ rescue ::GRPC::BadStatus => e
1611
+ raise ::Google::Cloud::Error.from_error(e)
1612
+ end
1613
+
1614
+ ##
1615
+ # Creates a BatchPredictionJob. A BatchPredictionJob once created will
1616
+ # right away be attempted to start.
1617
+ #
1618
+ # @overload create_batch_prediction_job(request, options = nil)
1619
+ # Pass arguments to `create_batch_prediction_job` via a request object, either of type
1620
+ # {::Google::Cloud::AIPlatform::V1::CreateBatchPredictionJobRequest} or an equivalent Hash.
1621
+ #
1622
+ # @param request [::Google::Cloud::AIPlatform::V1::CreateBatchPredictionJobRequest, ::Hash]
1623
+ # A request object representing the call parameters. Required. To specify no
1624
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1625
+ # @param options [::Gapic::CallOptions, ::Hash]
1626
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1627
+ #
1628
+ # @overload create_batch_prediction_job(parent: nil, batch_prediction_job: nil)
1629
+ # Pass arguments to `create_batch_prediction_job` via keyword arguments. Note that at
1630
+ # least one keyword argument is required. To specify no parameters, or to keep all
1631
+ # the default parameter values, pass an empty Hash as a request object (see above).
1632
+ #
1633
+ # @param parent [::String]
1634
+ # Required. The resource name of the Location to create the BatchPredictionJob in.
1635
+ # Format: `projects/{project}/locations/{location}`
1636
+ # @param batch_prediction_job [::Google::Cloud::AIPlatform::V1::BatchPredictionJob, ::Hash]
1637
+ # Required. The BatchPredictionJob to create.
1638
+ #
1639
+ # @yield [response, operation] Access the result along with the RPC operation
1640
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::BatchPredictionJob]
1641
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1642
+ #
1643
+ # @return [::Google::Cloud::AIPlatform::V1::BatchPredictionJob]
1644
+ #
1645
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1646
+ #
1647
+ # @example Basic example
1648
+ # require "google/cloud/ai_platform/v1"
1649
+ #
1650
+ # # Create a client object. The client can be reused for multiple calls.
1651
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
1652
+ #
1653
+ # # Create a request. To set request fields, pass in keyword arguments.
1654
+ # request = Google::Cloud::AIPlatform::V1::CreateBatchPredictionJobRequest.new
1655
+ #
1656
+ # # Call the create_batch_prediction_job method.
1657
+ # result = client.create_batch_prediction_job request
1658
+ #
1659
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::BatchPredictionJob.
1660
+ # p result
1661
+ #
1662
+ def create_batch_prediction_job request, options = nil
1663
+ raise ::ArgumentError, "request must be provided" if request.nil?
1664
+
1665
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateBatchPredictionJobRequest
1666
+
1667
+ # Converts hash and nil to an options object
1668
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1669
+
1670
+ # Customize the options with defaults
1671
+ metadata = @config.rpcs.create_batch_prediction_job.metadata.to_h
1672
+
1673
+ # Set x-goog-api-client and x-goog-user-project headers
1674
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1675
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1676
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1677
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1678
+
1679
+ header_params = {}
1680
+ if request.parent
1681
+ header_params["parent"] = request.parent
1682
+ end
1683
+
1684
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1685
+ metadata[:"x-goog-request-params"] ||= request_params_header
1686
+
1687
+ options.apply_defaults timeout: @config.rpcs.create_batch_prediction_job.timeout,
1688
+ metadata: metadata,
1689
+ retry_policy: @config.rpcs.create_batch_prediction_job.retry_policy
1690
+
1691
+ options.apply_defaults timeout: @config.timeout,
1692
+ metadata: @config.metadata,
1693
+ retry_policy: @config.retry_policy
1694
+
1695
+ @job_service_stub.call_rpc :create_batch_prediction_job, request, options: options do |response, operation|
1696
+ yield response, operation if block_given?
1697
+ return response
1698
+ end
1699
+ rescue ::GRPC::BadStatus => e
1700
+ raise ::Google::Cloud::Error.from_error(e)
1701
+ end
1702
+
1703
+ ##
1704
+ # Gets a BatchPredictionJob
1705
+ #
1706
+ # @overload get_batch_prediction_job(request, options = nil)
1707
+ # Pass arguments to `get_batch_prediction_job` via a request object, either of type
1708
+ # {::Google::Cloud::AIPlatform::V1::GetBatchPredictionJobRequest} or an equivalent Hash.
1709
+ #
1710
+ # @param request [::Google::Cloud::AIPlatform::V1::GetBatchPredictionJobRequest, ::Hash]
1711
+ # A request object representing the call parameters. Required. To specify no
1712
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1713
+ # @param options [::Gapic::CallOptions, ::Hash]
1714
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1715
+ #
1716
+ # @overload get_batch_prediction_job(name: nil)
1717
+ # Pass arguments to `get_batch_prediction_job` via keyword arguments. Note that at
1718
+ # least one keyword argument is required. To specify no parameters, or to keep all
1719
+ # the default parameter values, pass an empty Hash as a request object (see above).
1720
+ #
1721
+ # @param name [::String]
1722
+ # Required. The name of the BatchPredictionJob resource.
1723
+ # Format:
1724
+ # `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
1725
+ #
1726
+ # @yield [response, operation] Access the result along with the RPC operation
1727
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::BatchPredictionJob]
1728
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1729
+ #
1730
+ # @return [::Google::Cloud::AIPlatform::V1::BatchPredictionJob]
1731
+ #
1732
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1733
+ #
1734
+ # @example Basic example
1735
+ # require "google/cloud/ai_platform/v1"
1736
+ #
1737
+ # # Create a client object. The client can be reused for multiple calls.
1738
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
1739
+ #
1740
+ # # Create a request. To set request fields, pass in keyword arguments.
1741
+ # request = Google::Cloud::AIPlatform::V1::GetBatchPredictionJobRequest.new
1742
+ #
1743
+ # # Call the get_batch_prediction_job method.
1744
+ # result = client.get_batch_prediction_job request
1745
+ #
1746
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::BatchPredictionJob.
1747
+ # p result
1748
+ #
1749
+ def get_batch_prediction_job request, options = nil
1750
+ raise ::ArgumentError, "request must be provided" if request.nil?
1751
+
1752
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetBatchPredictionJobRequest
1753
+
1754
+ # Converts hash and nil to an options object
1755
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1756
+
1757
+ # Customize the options with defaults
1758
+ metadata = @config.rpcs.get_batch_prediction_job.metadata.to_h
1759
+
1760
+ # Set x-goog-api-client and x-goog-user-project headers
1761
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1762
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1763
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1764
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1765
+
1766
+ header_params = {}
1767
+ if request.name
1768
+ header_params["name"] = request.name
1769
+ end
1770
+
1771
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1772
+ metadata[:"x-goog-request-params"] ||= request_params_header
1773
+
1774
+ options.apply_defaults timeout: @config.rpcs.get_batch_prediction_job.timeout,
1775
+ metadata: metadata,
1776
+ retry_policy: @config.rpcs.get_batch_prediction_job.retry_policy
1777
+
1778
+ options.apply_defaults timeout: @config.timeout,
1779
+ metadata: @config.metadata,
1780
+ retry_policy: @config.retry_policy
1781
+
1782
+ @job_service_stub.call_rpc :get_batch_prediction_job, request, options: options do |response, operation|
1783
+ yield response, operation if block_given?
1784
+ return response
1785
+ end
1786
+ rescue ::GRPC::BadStatus => e
1787
+ raise ::Google::Cloud::Error.from_error(e)
1788
+ end
1789
+
1790
+ ##
1791
+ # Lists BatchPredictionJobs in a Location.
1792
+ #
1793
+ # @overload list_batch_prediction_jobs(request, options = nil)
1794
+ # Pass arguments to `list_batch_prediction_jobs` via a request object, either of type
1795
+ # {::Google::Cloud::AIPlatform::V1::ListBatchPredictionJobsRequest} or an equivalent Hash.
1796
+ #
1797
+ # @param request [::Google::Cloud::AIPlatform::V1::ListBatchPredictionJobsRequest, ::Hash]
1798
+ # A request object representing the call parameters. Required. To specify no
1799
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1800
+ # @param options [::Gapic::CallOptions, ::Hash]
1801
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1802
+ #
1803
+ # @overload list_batch_prediction_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil)
1804
+ # Pass arguments to `list_batch_prediction_jobs` via keyword arguments. Note that at
1805
+ # least one keyword argument is required. To specify no parameters, or to keep all
1806
+ # the default parameter values, pass an empty Hash as a request object (see above).
1807
+ #
1808
+ # @param parent [::String]
1809
+ # Required. The resource name of the Location to list the BatchPredictionJobs
1810
+ # from. Format: `projects/{project}/locations/{location}`
1811
+ # @param filter [::String]
1812
+ # The standard list filter.
1813
+ #
1814
+ # Supported fields:
1815
+ #
1816
+ # * `display_name` supports = and !=.
1817
+ #
1818
+ # * `state` supports = and !=.
1819
+ #
1820
+ # * `model_display_name` supports = and !=
1821
+ #
1822
+ # Some examples of using the filter are:
1823
+ #
1824
+ # * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"`
1825
+ #
1826
+ # * `state="JOB_STATE_RUNNING" OR display_name="my_job"`
1827
+ #
1828
+ # * `NOT display_name="my_job"`
1829
+ #
1830
+ # * `state="JOB_STATE_FAILED"`
1831
+ # @param page_size [::Integer]
1832
+ # The standard list page size.
1833
+ # @param page_token [::String]
1834
+ # The standard list page token.
1835
+ # Typically obtained via
1836
+ # {::Google::Cloud::AIPlatform::V1::ListBatchPredictionJobsResponse#next_page_token ListBatchPredictionJobsResponse.next_page_token} of the previous
1837
+ # {::Google::Cloud::AIPlatform::V1::JobService::Client#list_batch_prediction_jobs JobService.ListBatchPredictionJobs} call.
1838
+ # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
1839
+ # Mask specifying which fields to read.
1840
+ #
1841
+ # @yield [response, operation] Access the result along with the RPC operation
1842
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::BatchPredictionJob>]
1843
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1844
+ #
1845
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::BatchPredictionJob>]
1846
+ #
1847
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1848
+ #
1849
+ # @example Basic example
1850
+ # require "google/cloud/ai_platform/v1"
1851
+ #
1852
+ # # Create a client object. The client can be reused for multiple calls.
1853
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
1854
+ #
1855
+ # # Create a request. To set request fields, pass in keyword arguments.
1856
+ # request = Google::Cloud::AIPlatform::V1::ListBatchPredictionJobsRequest.new
1857
+ #
1858
+ # # Call the list_batch_prediction_jobs method.
1859
+ # result = client.list_batch_prediction_jobs request
1860
+ #
1861
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1862
+ # # iterate over all elements by calling #each, and the enumerable
1863
+ # # will lazily make API calls to fetch subsequent pages. Other
1864
+ # # methods are also available for managing paging directly.
1865
+ # result.each do |response|
1866
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::BatchPredictionJob.
1867
+ # p response
1868
+ # end
1869
+ #
1870
+ def list_batch_prediction_jobs request, options = nil
1871
+ raise ::ArgumentError, "request must be provided" if request.nil?
1872
+
1873
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListBatchPredictionJobsRequest
1874
+
1875
+ # Converts hash and nil to an options object
1876
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1877
+
1878
+ # Customize the options with defaults
1879
+ metadata = @config.rpcs.list_batch_prediction_jobs.metadata.to_h
1880
+
1881
+ # Set x-goog-api-client and x-goog-user-project headers
1882
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1883
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1884
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1885
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1886
+
1887
+ header_params = {}
1888
+ if request.parent
1889
+ header_params["parent"] = request.parent
1890
+ end
1891
+
1892
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1893
+ metadata[:"x-goog-request-params"] ||= request_params_header
1894
+
1895
+ options.apply_defaults timeout: @config.rpcs.list_batch_prediction_jobs.timeout,
1896
+ metadata: metadata,
1897
+ retry_policy: @config.rpcs.list_batch_prediction_jobs.retry_policy
1898
+
1899
+ options.apply_defaults timeout: @config.timeout,
1900
+ metadata: @config.metadata,
1901
+ retry_policy: @config.retry_policy
1902
+
1903
+ @job_service_stub.call_rpc :list_batch_prediction_jobs, request, options: options do |response, operation|
1904
+ response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_batch_prediction_jobs, request, response, operation, options
1905
+ yield response, operation if block_given?
1906
+ return response
1907
+ end
1908
+ rescue ::GRPC::BadStatus => e
1909
+ raise ::Google::Cloud::Error.from_error(e)
1910
+ end
1911
+
1912
+ ##
1913
+ # Deletes a BatchPredictionJob. Can only be called on jobs that already
1914
+ # finished.
1915
+ #
1916
+ # @overload delete_batch_prediction_job(request, options = nil)
1917
+ # Pass arguments to `delete_batch_prediction_job` via a request object, either of type
1918
+ # {::Google::Cloud::AIPlatform::V1::DeleteBatchPredictionJobRequest} or an equivalent Hash.
1919
+ #
1920
+ # @param request [::Google::Cloud::AIPlatform::V1::DeleteBatchPredictionJobRequest, ::Hash]
1921
+ # A request object representing the call parameters. Required. To specify no
1922
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1923
+ # @param options [::Gapic::CallOptions, ::Hash]
1924
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1925
+ #
1926
+ # @overload delete_batch_prediction_job(name: nil)
1927
+ # Pass arguments to `delete_batch_prediction_job` via keyword arguments. Note that at
1928
+ # least one keyword argument is required. To specify no parameters, or to keep all
1929
+ # the default parameter values, pass an empty Hash as a request object (see above).
1930
+ #
1931
+ # @param name [::String]
1932
+ # Required. The name of the BatchPredictionJob resource to be deleted.
1933
+ # Format:
1934
+ # `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
1935
+ #
1936
+ # @yield [response, operation] Access the result along with the RPC operation
1937
+ # @yieldparam response [::Gapic::Operation]
1938
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1939
+ #
1940
+ # @return [::Gapic::Operation]
1941
+ #
1942
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1943
+ #
1944
+ # @example Basic example
1945
+ # require "google/cloud/ai_platform/v1"
1946
+ #
1947
+ # # Create a client object. The client can be reused for multiple calls.
1948
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
1949
+ #
1950
+ # # Create a request. To set request fields, pass in keyword arguments.
1951
+ # request = Google::Cloud::AIPlatform::V1::DeleteBatchPredictionJobRequest.new
1952
+ #
1953
+ # # Call the delete_batch_prediction_job method.
1954
+ # result = client.delete_batch_prediction_job request
1955
+ #
1956
+ # # The returned object is of type Gapic::Operation. You can use this
1957
+ # # object to check the status of an operation, cancel it, or wait
1958
+ # # for results. Here is how to block until completion:
1959
+ # result.wait_until_done! timeout: 60
1960
+ # if result.response?
1961
+ # p result.response
1962
+ # else
1963
+ # puts "Error!"
1964
+ # end
1965
+ #
1966
+ def delete_batch_prediction_job request, options = nil
1967
+ raise ::ArgumentError, "request must be provided" if request.nil?
1968
+
1969
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteBatchPredictionJobRequest
1970
+
1971
+ # Converts hash and nil to an options object
1972
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1973
+
1974
+ # Customize the options with defaults
1975
+ metadata = @config.rpcs.delete_batch_prediction_job.metadata.to_h
1976
+
1977
+ # Set x-goog-api-client and x-goog-user-project headers
1978
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1979
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1980
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1981
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1982
+
1983
+ header_params = {}
1984
+ if request.name
1985
+ header_params["name"] = request.name
1986
+ end
1987
+
1988
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1989
+ metadata[:"x-goog-request-params"] ||= request_params_header
1990
+
1991
+ options.apply_defaults timeout: @config.rpcs.delete_batch_prediction_job.timeout,
1992
+ metadata: metadata,
1993
+ retry_policy: @config.rpcs.delete_batch_prediction_job.retry_policy
1994
+
1995
+ options.apply_defaults timeout: @config.timeout,
1996
+ metadata: @config.metadata,
1997
+ retry_policy: @config.retry_policy
1998
+
1999
+ @job_service_stub.call_rpc :delete_batch_prediction_job, request, options: options do |response, operation|
2000
+ response = ::Gapic::Operation.new response, @operations_client, options: options
2001
+ yield response, operation if block_given?
2002
+ return response
2003
+ end
2004
+ rescue ::GRPC::BadStatus => e
2005
+ raise ::Google::Cloud::Error.from_error(e)
2006
+ end
2007
+
2008
+ ##
2009
+ # Cancels a BatchPredictionJob.
2010
+ #
2011
+ # Starts asynchronous cancellation on the BatchPredictionJob. The server
2012
+ # makes the best effort to cancel the job, but success is not
2013
+ # guaranteed. Clients can use {::Google::Cloud::AIPlatform::V1::JobService::Client#get_batch_prediction_job JobService.GetBatchPredictionJob} or
2014
+ # other methods to check whether the cancellation succeeded or whether the
2015
+ # job completed despite cancellation. On a successful cancellation,
2016
+ # the BatchPredictionJob is not deleted;instead its
2017
+ # {::Google::Cloud::AIPlatform::V1::BatchPredictionJob#state BatchPredictionJob.state} is set to `CANCELLED`. Any files already
2018
+ # outputted by the job are not deleted.
2019
+ #
2020
+ # @overload cancel_batch_prediction_job(request, options = nil)
2021
+ # Pass arguments to `cancel_batch_prediction_job` via a request object, either of type
2022
+ # {::Google::Cloud::AIPlatform::V1::CancelBatchPredictionJobRequest} or an equivalent Hash.
2023
+ #
2024
+ # @param request [::Google::Cloud::AIPlatform::V1::CancelBatchPredictionJobRequest, ::Hash]
2025
+ # A request object representing the call parameters. Required. To specify no
2026
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2027
+ # @param options [::Gapic::CallOptions, ::Hash]
2028
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2029
+ #
2030
+ # @overload cancel_batch_prediction_job(name: nil)
2031
+ # Pass arguments to `cancel_batch_prediction_job` via keyword arguments. Note that at
2032
+ # least one keyword argument is required. To specify no parameters, or to keep all
2033
+ # the default parameter values, pass an empty Hash as a request object (see above).
2034
+ #
2035
+ # @param name [::String]
2036
+ # Required. The name of the BatchPredictionJob to cancel.
2037
+ # Format:
2038
+ # `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`
2039
+ #
2040
+ # @yield [response, operation] Access the result along with the RPC operation
2041
+ # @yieldparam response [::Google::Protobuf::Empty]
2042
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2043
+ #
2044
+ # @return [::Google::Protobuf::Empty]
2045
+ #
2046
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2047
+ #
2048
+ # @example Basic example
2049
+ # require "google/cloud/ai_platform/v1"
2050
+ #
2051
+ # # Create a client object. The client can be reused for multiple calls.
2052
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
2053
+ #
2054
+ # # Create a request. To set request fields, pass in keyword arguments.
2055
+ # request = Google::Cloud::AIPlatform::V1::CancelBatchPredictionJobRequest.new
2056
+ #
2057
+ # # Call the cancel_batch_prediction_job method.
2058
+ # result = client.cancel_batch_prediction_job request
2059
+ #
2060
+ # # The returned object is of type Google::Protobuf::Empty.
2061
+ # p result
2062
+ #
2063
+ def cancel_batch_prediction_job request, options = nil
2064
+ raise ::ArgumentError, "request must be provided" if request.nil?
2065
+
2066
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CancelBatchPredictionJobRequest
2067
+
2068
+ # Converts hash and nil to an options object
2069
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2070
+
2071
+ # Customize the options with defaults
2072
+ metadata = @config.rpcs.cancel_batch_prediction_job.metadata.to_h
2073
+
2074
+ # Set x-goog-api-client and x-goog-user-project headers
2075
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2076
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2077
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2078
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2079
+
2080
+ header_params = {}
2081
+ if request.name
2082
+ header_params["name"] = request.name
2083
+ end
2084
+
2085
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2086
+ metadata[:"x-goog-request-params"] ||= request_params_header
2087
+
2088
+ options.apply_defaults timeout: @config.rpcs.cancel_batch_prediction_job.timeout,
2089
+ metadata: metadata,
2090
+ retry_policy: @config.rpcs.cancel_batch_prediction_job.retry_policy
2091
+
2092
+ options.apply_defaults timeout: @config.timeout,
2093
+ metadata: @config.metadata,
2094
+ retry_policy: @config.retry_policy
2095
+
2096
+ @job_service_stub.call_rpc :cancel_batch_prediction_job, request, options: options do |response, operation|
2097
+ yield response, operation if block_given?
2098
+ return response
2099
+ end
2100
+ rescue ::GRPC::BadStatus => e
2101
+ raise ::Google::Cloud::Error.from_error(e)
2102
+ end
2103
+
2104
+ ##
2105
+ # Creates a ModelDeploymentMonitoringJob. It will run periodically on a
2106
+ # configured interval.
2107
+ #
2108
+ # @overload create_model_deployment_monitoring_job(request, options = nil)
2109
+ # Pass arguments to `create_model_deployment_monitoring_job` via a request object, either of type
2110
+ # {::Google::Cloud::AIPlatform::V1::CreateModelDeploymentMonitoringJobRequest} or an equivalent Hash.
2111
+ #
2112
+ # @param request [::Google::Cloud::AIPlatform::V1::CreateModelDeploymentMonitoringJobRequest, ::Hash]
2113
+ # A request object representing the call parameters. Required. To specify no
2114
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2115
+ # @param options [::Gapic::CallOptions, ::Hash]
2116
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2117
+ #
2118
+ # @overload create_model_deployment_monitoring_job(parent: nil, model_deployment_monitoring_job: nil)
2119
+ # Pass arguments to `create_model_deployment_monitoring_job` via keyword arguments. Note that at
2120
+ # least one keyword argument is required. To specify no parameters, or to keep all
2121
+ # the default parameter values, pass an empty Hash as a request object (see above).
2122
+ #
2123
+ # @param parent [::String]
2124
+ # Required. The parent of the ModelDeploymentMonitoringJob.
2125
+ # Format: `projects/{project}/locations/{location}`
2126
+ # @param model_deployment_monitoring_job [::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob, ::Hash]
2127
+ # Required. The ModelDeploymentMonitoringJob to create
2128
+ #
2129
+ # @yield [response, operation] Access the result along with the RPC operation
2130
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob]
2131
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2132
+ #
2133
+ # @return [::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob]
2134
+ #
2135
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2136
+ #
2137
+ # @example Basic example
2138
+ # require "google/cloud/ai_platform/v1"
2139
+ #
2140
+ # # Create a client object. The client can be reused for multiple calls.
2141
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
2142
+ #
2143
+ # # Create a request. To set request fields, pass in keyword arguments.
2144
+ # request = Google::Cloud::AIPlatform::V1::CreateModelDeploymentMonitoringJobRequest.new
2145
+ #
2146
+ # # Call the create_model_deployment_monitoring_job method.
2147
+ # result = client.create_model_deployment_monitoring_job request
2148
+ #
2149
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob.
2150
+ # p result
2151
+ #
2152
+ def create_model_deployment_monitoring_job request, options = nil
2153
+ raise ::ArgumentError, "request must be provided" if request.nil?
2154
+
2155
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateModelDeploymentMonitoringJobRequest
2156
+
2157
+ # Converts hash and nil to an options object
2158
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2159
+
2160
+ # Customize the options with defaults
2161
+ metadata = @config.rpcs.create_model_deployment_monitoring_job.metadata.to_h
2162
+
2163
+ # Set x-goog-api-client and x-goog-user-project headers
2164
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2165
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2166
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2167
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2168
+
2169
+ header_params = {}
2170
+ if request.parent
2171
+ header_params["parent"] = request.parent
2172
+ end
2173
+
2174
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2175
+ metadata[:"x-goog-request-params"] ||= request_params_header
2176
+
2177
+ options.apply_defaults timeout: @config.rpcs.create_model_deployment_monitoring_job.timeout,
2178
+ metadata: metadata,
2179
+ retry_policy: @config.rpcs.create_model_deployment_monitoring_job.retry_policy
2180
+
2181
+ options.apply_defaults timeout: @config.timeout,
2182
+ metadata: @config.metadata,
2183
+ retry_policy: @config.retry_policy
2184
+
2185
+ @job_service_stub.call_rpc :create_model_deployment_monitoring_job, request, options: options do |response, operation|
2186
+ yield response, operation if block_given?
2187
+ return response
2188
+ end
2189
+ rescue ::GRPC::BadStatus => e
2190
+ raise ::Google::Cloud::Error.from_error(e)
2191
+ end
2192
+
2193
+ ##
2194
+ # Searches Model Monitoring Statistics generated within a given time window.
2195
+ #
2196
+ # @overload search_model_deployment_monitoring_stats_anomalies(request, options = nil)
2197
+ # Pass arguments to `search_model_deployment_monitoring_stats_anomalies` via a request object, either of type
2198
+ # {::Google::Cloud::AIPlatform::V1::SearchModelDeploymentMonitoringStatsAnomaliesRequest} or an equivalent Hash.
2199
+ #
2200
+ # @param request [::Google::Cloud::AIPlatform::V1::SearchModelDeploymentMonitoringStatsAnomaliesRequest, ::Hash]
2201
+ # A request object representing the call parameters. Required. To specify no
2202
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2203
+ # @param options [::Gapic::CallOptions, ::Hash]
2204
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2205
+ #
2206
+ # @overload search_model_deployment_monitoring_stats_anomalies(model_deployment_monitoring_job: nil, deployed_model_id: nil, feature_display_name: nil, objectives: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil)
2207
+ # Pass arguments to `search_model_deployment_monitoring_stats_anomalies` via keyword arguments. Note that at
2208
+ # least one keyword argument is required. To specify no parameters, or to keep all
2209
+ # the default parameter values, pass an empty Hash as a request object (see above).
2210
+ #
2211
+ # @param model_deployment_monitoring_job [::String]
2212
+ # Required. ModelDeploymentMonitoring Job resource name.
2213
+ # Format:
2214
+ # `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
2215
+ # @param deployed_model_id [::String]
2216
+ # Required. The DeployedModel ID of the
2217
+ # [ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
2218
+ # @param feature_display_name [::String]
2219
+ # The feature display name. If specified, only return the stats belonging to
2220
+ # this feature. Format:
2221
+ # {::Google::Cloud::AIPlatform::V1::ModelMonitoringStatsAnomalies::FeatureHistoricStatsAnomalies#feature_display_name ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name},
2222
+ # example: "user_destination".
2223
+ # @param objectives [::Array<::Google::Cloud::AIPlatform::V1::SearchModelDeploymentMonitoringStatsAnomaliesRequest::StatsAnomaliesObjective, ::Hash>]
2224
+ # Required. Objectives of the stats to retrieve.
2225
+ # @param page_size [::Integer]
2226
+ # The standard list page size.
2227
+ # @param page_token [::String]
2228
+ # A page token received from a previous
2229
+ # {::Google::Cloud::AIPlatform::V1::JobService::Client#search_model_deployment_monitoring_stats_anomalies JobService.SearchModelDeploymentMonitoringStatsAnomalies}
2230
+ # call.
2231
+ # @param start_time [::Google::Protobuf::Timestamp, ::Hash]
2232
+ # The earliest timestamp of stats being generated.
2233
+ # If not set, indicates fetching stats till the earliest possible one.
2234
+ # @param end_time [::Google::Protobuf::Timestamp, ::Hash]
2235
+ # The latest timestamp of stats being generated.
2236
+ # If not set, indicates feching stats till the latest possible one.
2237
+ #
2238
+ # @yield [response, operation] Access the result along with the RPC operation
2239
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelMonitoringStatsAnomalies>]
2240
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2241
+ #
2242
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelMonitoringStatsAnomalies>]
2243
+ #
2244
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2245
+ #
2246
+ # @example Basic example
2247
+ # require "google/cloud/ai_platform/v1"
2248
+ #
2249
+ # # Create a client object. The client can be reused for multiple calls.
2250
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
2251
+ #
2252
+ # # Create a request. To set request fields, pass in keyword arguments.
2253
+ # request = Google::Cloud::AIPlatform::V1::SearchModelDeploymentMonitoringStatsAnomaliesRequest.new
2254
+ #
2255
+ # # Call the search_model_deployment_monitoring_stats_anomalies method.
2256
+ # result = client.search_model_deployment_monitoring_stats_anomalies request
2257
+ #
2258
+ # # The returned object is of type Gapic::PagedEnumerable. You can
2259
+ # # iterate over all elements by calling #each, and the enumerable
2260
+ # # will lazily make API calls to fetch subsequent pages. Other
2261
+ # # methods are also available for managing paging directly.
2262
+ # result.each do |response|
2263
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::ModelMonitoringStatsAnomalies.
2264
+ # p response
2265
+ # end
2266
+ #
2267
+ def search_model_deployment_monitoring_stats_anomalies request, options = nil
2268
+ raise ::ArgumentError, "request must be provided" if request.nil?
2269
+
2270
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::SearchModelDeploymentMonitoringStatsAnomaliesRequest
2271
+
2272
+ # Converts hash and nil to an options object
2273
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2274
+
2275
+ # Customize the options with defaults
2276
+ metadata = @config.rpcs.search_model_deployment_monitoring_stats_anomalies.metadata.to_h
2277
+
2278
+ # Set x-goog-api-client and x-goog-user-project headers
2279
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2280
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2281
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2282
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2283
+
2284
+ header_params = {}
2285
+ if request.model_deployment_monitoring_job
2286
+ header_params["model_deployment_monitoring_job"] = request.model_deployment_monitoring_job
2287
+ end
2288
+
2289
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2290
+ metadata[:"x-goog-request-params"] ||= request_params_header
2291
+
2292
+ options.apply_defaults timeout: @config.rpcs.search_model_deployment_monitoring_stats_anomalies.timeout,
2293
+ metadata: metadata,
2294
+ retry_policy: @config.rpcs.search_model_deployment_monitoring_stats_anomalies.retry_policy
2295
+
2296
+ options.apply_defaults timeout: @config.timeout,
2297
+ metadata: @config.metadata,
2298
+ retry_policy: @config.retry_policy
2299
+
2300
+ @job_service_stub.call_rpc :search_model_deployment_monitoring_stats_anomalies, request, options: options do |response, operation|
2301
+ response = ::Gapic::PagedEnumerable.new @job_service_stub, :search_model_deployment_monitoring_stats_anomalies, request, response, operation, options
2302
+ yield response, operation if block_given?
2303
+ return response
2304
+ end
2305
+ rescue ::GRPC::BadStatus => e
2306
+ raise ::Google::Cloud::Error.from_error(e)
2307
+ end
2308
+
2309
+ ##
2310
+ # Gets a ModelDeploymentMonitoringJob.
2311
+ #
2312
+ # @overload get_model_deployment_monitoring_job(request, options = nil)
2313
+ # Pass arguments to `get_model_deployment_monitoring_job` via a request object, either of type
2314
+ # {::Google::Cloud::AIPlatform::V1::GetModelDeploymentMonitoringJobRequest} or an equivalent Hash.
2315
+ #
2316
+ # @param request [::Google::Cloud::AIPlatform::V1::GetModelDeploymentMonitoringJobRequest, ::Hash]
2317
+ # A request object representing the call parameters. Required. To specify no
2318
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2319
+ # @param options [::Gapic::CallOptions, ::Hash]
2320
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2321
+ #
2322
+ # @overload get_model_deployment_monitoring_job(name: nil)
2323
+ # Pass arguments to `get_model_deployment_monitoring_job` via keyword arguments. Note that at
2324
+ # least one keyword argument is required. To specify no parameters, or to keep all
2325
+ # the default parameter values, pass an empty Hash as a request object (see above).
2326
+ #
2327
+ # @param name [::String]
2328
+ # Required. The resource name of the ModelDeploymentMonitoringJob.
2329
+ # Format:
2330
+ # `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
2331
+ #
2332
+ # @yield [response, operation] Access the result along with the RPC operation
2333
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob]
2334
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2335
+ #
2336
+ # @return [::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob]
2337
+ #
2338
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2339
+ #
2340
+ # @example Basic example
2341
+ # require "google/cloud/ai_platform/v1"
2342
+ #
2343
+ # # Create a client object. The client can be reused for multiple calls.
2344
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
2345
+ #
2346
+ # # Create a request. To set request fields, pass in keyword arguments.
2347
+ # request = Google::Cloud::AIPlatform::V1::GetModelDeploymentMonitoringJobRequest.new
2348
+ #
2349
+ # # Call the get_model_deployment_monitoring_job method.
2350
+ # result = client.get_model_deployment_monitoring_job request
2351
+ #
2352
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob.
2353
+ # p result
2354
+ #
2355
+ def get_model_deployment_monitoring_job request, options = nil
2356
+ raise ::ArgumentError, "request must be provided" if request.nil?
2357
+
2358
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetModelDeploymentMonitoringJobRequest
2359
+
2360
+ # Converts hash and nil to an options object
2361
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2362
+
2363
+ # Customize the options with defaults
2364
+ metadata = @config.rpcs.get_model_deployment_monitoring_job.metadata.to_h
2365
+
2366
+ # Set x-goog-api-client and x-goog-user-project headers
2367
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2368
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2369
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2370
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2371
+
2372
+ header_params = {}
2373
+ if request.name
2374
+ header_params["name"] = request.name
2375
+ end
2376
+
2377
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2378
+ metadata[:"x-goog-request-params"] ||= request_params_header
2379
+
2380
+ options.apply_defaults timeout: @config.rpcs.get_model_deployment_monitoring_job.timeout,
2381
+ metadata: metadata,
2382
+ retry_policy: @config.rpcs.get_model_deployment_monitoring_job.retry_policy
2383
+
2384
+ options.apply_defaults timeout: @config.timeout,
2385
+ metadata: @config.metadata,
2386
+ retry_policy: @config.retry_policy
2387
+
2388
+ @job_service_stub.call_rpc :get_model_deployment_monitoring_job, request, options: options do |response, operation|
2389
+ yield response, operation if block_given?
2390
+ return response
2391
+ end
2392
+ rescue ::GRPC::BadStatus => e
2393
+ raise ::Google::Cloud::Error.from_error(e)
2394
+ end
2395
+
2396
+ ##
2397
+ # Lists ModelDeploymentMonitoringJobs in a Location.
2398
+ #
2399
+ # @overload list_model_deployment_monitoring_jobs(request, options = nil)
2400
+ # Pass arguments to `list_model_deployment_monitoring_jobs` via a request object, either of type
2401
+ # {::Google::Cloud::AIPlatform::V1::ListModelDeploymentMonitoringJobsRequest} or an equivalent Hash.
2402
+ #
2403
+ # @param request [::Google::Cloud::AIPlatform::V1::ListModelDeploymentMonitoringJobsRequest, ::Hash]
2404
+ # A request object representing the call parameters. Required. To specify no
2405
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2406
+ # @param options [::Gapic::CallOptions, ::Hash]
2407
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2408
+ #
2409
+ # @overload list_model_deployment_monitoring_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil)
2410
+ # Pass arguments to `list_model_deployment_monitoring_jobs` via keyword arguments. Note that at
2411
+ # least one keyword argument is required. To specify no parameters, or to keep all
2412
+ # the default parameter values, pass an empty Hash as a request object (see above).
2413
+ #
2414
+ # @param parent [::String]
2415
+ # Required. The parent of the ModelDeploymentMonitoringJob.
2416
+ # Format: `projects/{project}/locations/{location}`
2417
+ # @param filter [::String]
2418
+ # The standard list filter.
2419
+ # @param page_size [::Integer]
2420
+ # The standard list page size.
2421
+ # @param page_token [::String]
2422
+ # The standard list page token.
2423
+ # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
2424
+ # Mask specifying which fields to read
2425
+ #
2426
+ # @yield [response, operation] Access the result along with the RPC operation
2427
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob>]
2428
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2429
+ #
2430
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob>]
2431
+ #
2432
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2433
+ #
2434
+ # @example Basic example
2435
+ # require "google/cloud/ai_platform/v1"
2436
+ #
2437
+ # # Create a client object. The client can be reused for multiple calls.
2438
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
2439
+ #
2440
+ # # Create a request. To set request fields, pass in keyword arguments.
2441
+ # request = Google::Cloud::AIPlatform::V1::ListModelDeploymentMonitoringJobsRequest.new
2442
+ #
2443
+ # # Call the list_model_deployment_monitoring_jobs method.
2444
+ # result = client.list_model_deployment_monitoring_jobs request
2445
+ #
2446
+ # # The returned object is of type Gapic::PagedEnumerable. You can
2447
+ # # iterate over all elements by calling #each, and the enumerable
2448
+ # # will lazily make API calls to fetch subsequent pages. Other
2449
+ # # methods are also available for managing paging directly.
2450
+ # result.each do |response|
2451
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob.
2452
+ # p response
2453
+ # end
2454
+ #
2455
+ def list_model_deployment_monitoring_jobs request, options = nil
2456
+ raise ::ArgumentError, "request must be provided" if request.nil?
2457
+
2458
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListModelDeploymentMonitoringJobsRequest
2459
+
2460
+ # Converts hash and nil to an options object
2461
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2462
+
2463
+ # Customize the options with defaults
2464
+ metadata = @config.rpcs.list_model_deployment_monitoring_jobs.metadata.to_h
2465
+
2466
+ # Set x-goog-api-client and x-goog-user-project headers
2467
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2468
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2469
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2470
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2471
+
2472
+ header_params = {}
2473
+ if request.parent
2474
+ header_params["parent"] = request.parent
2475
+ end
2476
+
2477
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2478
+ metadata[:"x-goog-request-params"] ||= request_params_header
2479
+
2480
+ options.apply_defaults timeout: @config.rpcs.list_model_deployment_monitoring_jobs.timeout,
2481
+ metadata: metadata,
2482
+ retry_policy: @config.rpcs.list_model_deployment_monitoring_jobs.retry_policy
2483
+
2484
+ options.apply_defaults timeout: @config.timeout,
2485
+ metadata: @config.metadata,
2486
+ retry_policy: @config.retry_policy
2487
+
2488
+ @job_service_stub.call_rpc :list_model_deployment_monitoring_jobs, request, options: options do |response, operation|
2489
+ response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_model_deployment_monitoring_jobs, request, response, operation, options
2490
+ yield response, operation if block_given?
2491
+ return response
2492
+ end
2493
+ rescue ::GRPC::BadStatus => e
2494
+ raise ::Google::Cloud::Error.from_error(e)
2495
+ end
2496
+
2497
+ ##
2498
+ # Updates a ModelDeploymentMonitoringJob.
2499
+ #
2500
+ # @overload update_model_deployment_monitoring_job(request, options = nil)
2501
+ # Pass arguments to `update_model_deployment_monitoring_job` via a request object, either of type
2502
+ # {::Google::Cloud::AIPlatform::V1::UpdateModelDeploymentMonitoringJobRequest} or an equivalent Hash.
2503
+ #
2504
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateModelDeploymentMonitoringJobRequest, ::Hash]
2505
+ # A request object representing the call parameters. Required. To specify no
2506
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2507
+ # @param options [::Gapic::CallOptions, ::Hash]
2508
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2509
+ #
2510
+ # @overload update_model_deployment_monitoring_job(model_deployment_monitoring_job: nil, update_mask: nil)
2511
+ # Pass arguments to `update_model_deployment_monitoring_job` via keyword arguments. Note that at
2512
+ # least one keyword argument is required. To specify no parameters, or to keep all
2513
+ # the default parameter values, pass an empty Hash as a request object (see above).
2514
+ #
2515
+ # @param model_deployment_monitoring_job [::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob, ::Hash]
2516
+ # Required. The model monitoring configuration which replaces the resource on the
2517
+ # server.
2518
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2519
+ # Required. The update mask is used to specify the fields to be overwritten in the
2520
+ # ModelDeploymentMonitoringJob resource by the update.
2521
+ # The fields specified in the update_mask are relative to the resource, not
2522
+ # the full request. A field will be overwritten if it is in the mask. If the
2523
+ # user does not provide a mask then only the non-empty fields present in the
2524
+ # request will be overwritten. Set the update_mask to `*` to override all
2525
+ # fields.
2526
+ # For the objective config, the user can either provide the update mask for
2527
+ # model_deployment_monitoring_objective_configs or any combination of its
2528
+ # nested fields, such as:
2529
+ # model_deployment_monitoring_objective_configs.objective_config.training_dataset.
2530
+ #
2531
+ # Updatable fields:
2532
+ #
2533
+ # * `display_name`
2534
+ # * `model_deployment_monitoring_schedule_config`
2535
+ # * `model_monitoring_alert_config`
2536
+ # * `logging_sampling_strategy`
2537
+ # * `labels`
2538
+ # * `log_ttl`
2539
+ # * `enable_monitoring_pipeline_logs`
2540
+ # . and
2541
+ # * `model_deployment_monitoring_objective_configs`
2542
+ # . or
2543
+ # * `model_deployment_monitoring_objective_configs.objective_config.training_dataset`
2544
+ # * `model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config`
2545
+ # * `model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config`
2546
+ #
2547
+ # @yield [response, operation] Access the result along with the RPC operation
2548
+ # @yieldparam response [::Gapic::Operation]
2549
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2550
+ #
2551
+ # @return [::Gapic::Operation]
2552
+ #
2553
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2554
+ #
2555
+ # @example Basic example
2556
+ # require "google/cloud/ai_platform/v1"
2557
+ #
2558
+ # # Create a client object. The client can be reused for multiple calls.
2559
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
2560
+ #
2561
+ # # Create a request. To set request fields, pass in keyword arguments.
2562
+ # request = Google::Cloud::AIPlatform::V1::UpdateModelDeploymentMonitoringJobRequest.new
2563
+ #
2564
+ # # Call the update_model_deployment_monitoring_job method.
2565
+ # result = client.update_model_deployment_monitoring_job request
2566
+ #
2567
+ # # The returned object is of type Gapic::Operation. You can use this
2568
+ # # object to check the status of an operation, cancel it, or wait
2569
+ # # for results. Here is how to block until completion:
2570
+ # result.wait_until_done! timeout: 60
2571
+ # if result.response?
2572
+ # p result.response
2573
+ # else
2574
+ # puts "Error!"
2575
+ # end
2576
+ #
2577
+ def update_model_deployment_monitoring_job request, options = nil
2578
+ raise ::ArgumentError, "request must be provided" if request.nil?
2579
+
2580
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateModelDeploymentMonitoringJobRequest
2581
+
2582
+ # Converts hash and nil to an options object
2583
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2584
+
2585
+ # Customize the options with defaults
2586
+ metadata = @config.rpcs.update_model_deployment_monitoring_job.metadata.to_h
2587
+
2588
+ # Set x-goog-api-client and x-goog-user-project headers
2589
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2590
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2591
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2592
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2593
+
2594
+ header_params = {}
2595
+ if request.model_deployment_monitoring_job&.name
2596
+ header_params["model_deployment_monitoring_job.name"] = request.model_deployment_monitoring_job.name
2597
+ end
2598
+
2599
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2600
+ metadata[:"x-goog-request-params"] ||= request_params_header
2601
+
2602
+ options.apply_defaults timeout: @config.rpcs.update_model_deployment_monitoring_job.timeout,
2603
+ metadata: metadata,
2604
+ retry_policy: @config.rpcs.update_model_deployment_monitoring_job.retry_policy
2605
+
2606
+ options.apply_defaults timeout: @config.timeout,
2607
+ metadata: @config.metadata,
2608
+ retry_policy: @config.retry_policy
2609
+
2610
+ @job_service_stub.call_rpc :update_model_deployment_monitoring_job, request, options: options do |response, operation|
2611
+ response = ::Gapic::Operation.new response, @operations_client, options: options
2612
+ yield response, operation if block_given?
2613
+ return response
2614
+ end
2615
+ rescue ::GRPC::BadStatus => e
2616
+ raise ::Google::Cloud::Error.from_error(e)
2617
+ end
2618
+
2619
+ ##
2620
+ # Deletes a ModelDeploymentMonitoringJob.
2621
+ #
2622
+ # @overload delete_model_deployment_monitoring_job(request, options = nil)
2623
+ # Pass arguments to `delete_model_deployment_monitoring_job` via a request object, either of type
2624
+ # {::Google::Cloud::AIPlatform::V1::DeleteModelDeploymentMonitoringJobRequest} or an equivalent Hash.
2625
+ #
2626
+ # @param request [::Google::Cloud::AIPlatform::V1::DeleteModelDeploymentMonitoringJobRequest, ::Hash]
2627
+ # A request object representing the call parameters. Required. To specify no
2628
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2629
+ # @param options [::Gapic::CallOptions, ::Hash]
2630
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2631
+ #
2632
+ # @overload delete_model_deployment_monitoring_job(name: nil)
2633
+ # Pass arguments to `delete_model_deployment_monitoring_job` via keyword arguments. Note that at
2634
+ # least one keyword argument is required. To specify no parameters, or to keep all
2635
+ # the default parameter values, pass an empty Hash as a request object (see above).
2636
+ #
2637
+ # @param name [::String]
2638
+ # Required. The resource name of the model monitoring job to delete.
2639
+ # Format:
2640
+ # `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
2641
+ #
2642
+ # @yield [response, operation] Access the result along with the RPC operation
2643
+ # @yieldparam response [::Gapic::Operation]
2644
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2645
+ #
2646
+ # @return [::Gapic::Operation]
2647
+ #
2648
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2649
+ #
2650
+ # @example Basic example
2651
+ # require "google/cloud/ai_platform/v1"
2652
+ #
2653
+ # # Create a client object. The client can be reused for multiple calls.
2654
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
2655
+ #
2656
+ # # Create a request. To set request fields, pass in keyword arguments.
2657
+ # request = Google::Cloud::AIPlatform::V1::DeleteModelDeploymentMonitoringJobRequest.new
2658
+ #
2659
+ # # Call the delete_model_deployment_monitoring_job method.
2660
+ # result = client.delete_model_deployment_monitoring_job request
2661
+ #
2662
+ # # The returned object is of type Gapic::Operation. You can use this
2663
+ # # object to check the status of an operation, cancel it, or wait
2664
+ # # for results. Here is how to block until completion:
2665
+ # result.wait_until_done! timeout: 60
2666
+ # if result.response?
2667
+ # p result.response
2668
+ # else
2669
+ # puts "Error!"
2670
+ # end
2671
+ #
2672
+ def delete_model_deployment_monitoring_job request, options = nil
2673
+ raise ::ArgumentError, "request must be provided" if request.nil?
2674
+
2675
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteModelDeploymentMonitoringJobRequest
2676
+
2677
+ # Converts hash and nil to an options object
2678
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2679
+
2680
+ # Customize the options with defaults
2681
+ metadata = @config.rpcs.delete_model_deployment_monitoring_job.metadata.to_h
2682
+
2683
+ # Set x-goog-api-client and x-goog-user-project headers
2684
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2685
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2686
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2687
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2688
+
2689
+ header_params = {}
2690
+ if request.name
2691
+ header_params["name"] = request.name
2692
+ end
2693
+
2694
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2695
+ metadata[:"x-goog-request-params"] ||= request_params_header
2696
+
2697
+ options.apply_defaults timeout: @config.rpcs.delete_model_deployment_monitoring_job.timeout,
2698
+ metadata: metadata,
2699
+ retry_policy: @config.rpcs.delete_model_deployment_monitoring_job.retry_policy
2700
+
2701
+ options.apply_defaults timeout: @config.timeout,
2702
+ metadata: @config.metadata,
2703
+ retry_policy: @config.retry_policy
2704
+
2705
+ @job_service_stub.call_rpc :delete_model_deployment_monitoring_job, request, options: options do |response, operation|
2706
+ response = ::Gapic::Operation.new response, @operations_client, options: options
2707
+ yield response, operation if block_given?
2708
+ return response
2709
+ end
2710
+ rescue ::GRPC::BadStatus => e
2711
+ raise ::Google::Cloud::Error.from_error(e)
2712
+ end
2713
+
2714
+ ##
2715
+ # Pauses a ModelDeploymentMonitoringJob. If the job is running, the server
2716
+ # makes a best effort to cancel the job. Will mark
2717
+ # {::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob#state ModelDeploymentMonitoringJob.state} to 'PAUSED'.
2718
+ #
2719
+ # @overload pause_model_deployment_monitoring_job(request, options = nil)
2720
+ # Pass arguments to `pause_model_deployment_monitoring_job` via a request object, either of type
2721
+ # {::Google::Cloud::AIPlatform::V1::PauseModelDeploymentMonitoringJobRequest} or an equivalent Hash.
2722
+ #
2723
+ # @param request [::Google::Cloud::AIPlatform::V1::PauseModelDeploymentMonitoringJobRequest, ::Hash]
2724
+ # A request object representing the call parameters. Required. To specify no
2725
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2726
+ # @param options [::Gapic::CallOptions, ::Hash]
2727
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2728
+ #
2729
+ # @overload pause_model_deployment_monitoring_job(name: nil)
2730
+ # Pass arguments to `pause_model_deployment_monitoring_job` via keyword arguments. Note that at
2731
+ # least one keyword argument is required. To specify no parameters, or to keep all
2732
+ # the default parameter values, pass an empty Hash as a request object (see above).
2733
+ #
2734
+ # @param name [::String]
2735
+ # Required. The resource name of the ModelDeploymentMonitoringJob to pause.
2736
+ # Format:
2737
+ # `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
2738
+ #
2739
+ # @yield [response, operation] Access the result along with the RPC operation
2740
+ # @yieldparam response [::Google::Protobuf::Empty]
2741
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2742
+ #
2743
+ # @return [::Google::Protobuf::Empty]
2744
+ #
2745
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2746
+ #
2747
+ # @example Basic example
2748
+ # require "google/cloud/ai_platform/v1"
2749
+ #
2750
+ # # Create a client object. The client can be reused for multiple calls.
2751
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
2752
+ #
2753
+ # # Create a request. To set request fields, pass in keyword arguments.
2754
+ # request = Google::Cloud::AIPlatform::V1::PauseModelDeploymentMonitoringJobRequest.new
2755
+ #
2756
+ # # Call the pause_model_deployment_monitoring_job method.
2757
+ # result = client.pause_model_deployment_monitoring_job request
2758
+ #
2759
+ # # The returned object is of type Google::Protobuf::Empty.
2760
+ # p result
2761
+ #
2762
+ def pause_model_deployment_monitoring_job request, options = nil
2763
+ raise ::ArgumentError, "request must be provided" if request.nil?
2764
+
2765
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::PauseModelDeploymentMonitoringJobRequest
2766
+
2767
+ # Converts hash and nil to an options object
2768
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2769
+
2770
+ # Customize the options with defaults
2771
+ metadata = @config.rpcs.pause_model_deployment_monitoring_job.metadata.to_h
2772
+
2773
+ # Set x-goog-api-client and x-goog-user-project headers
2774
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2775
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2776
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2777
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2778
+
2779
+ header_params = {}
2780
+ if request.name
2781
+ header_params["name"] = request.name
2782
+ end
2783
+
2784
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2785
+ metadata[:"x-goog-request-params"] ||= request_params_header
2786
+
2787
+ options.apply_defaults timeout: @config.rpcs.pause_model_deployment_monitoring_job.timeout,
2788
+ metadata: metadata,
2789
+ retry_policy: @config.rpcs.pause_model_deployment_monitoring_job.retry_policy
2790
+
2791
+ options.apply_defaults timeout: @config.timeout,
2792
+ metadata: @config.metadata,
2793
+ retry_policy: @config.retry_policy
2794
+
2795
+ @job_service_stub.call_rpc :pause_model_deployment_monitoring_job, request, options: options do |response, operation|
2796
+ yield response, operation if block_given?
2797
+ return response
2798
+ end
2799
+ rescue ::GRPC::BadStatus => e
2800
+ raise ::Google::Cloud::Error.from_error(e)
2801
+ end
2802
+
2803
+ ##
2804
+ # Resumes a paused ModelDeploymentMonitoringJob. It will start to run from
2805
+ # next scheduled time. A deleted ModelDeploymentMonitoringJob can't be
2806
+ # resumed.
2807
+ #
2808
+ # @overload resume_model_deployment_monitoring_job(request, options = nil)
2809
+ # Pass arguments to `resume_model_deployment_monitoring_job` via a request object, either of type
2810
+ # {::Google::Cloud::AIPlatform::V1::ResumeModelDeploymentMonitoringJobRequest} or an equivalent Hash.
2811
+ #
2812
+ # @param request [::Google::Cloud::AIPlatform::V1::ResumeModelDeploymentMonitoringJobRequest, ::Hash]
2813
+ # A request object representing the call parameters. Required. To specify no
2814
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2815
+ # @param options [::Gapic::CallOptions, ::Hash]
2816
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2817
+ #
2818
+ # @overload resume_model_deployment_monitoring_job(name: nil)
2819
+ # Pass arguments to `resume_model_deployment_monitoring_job` via keyword arguments. Note that at
2820
+ # least one keyword argument is required. To specify no parameters, or to keep all
2821
+ # the default parameter values, pass an empty Hash as a request object (see above).
2822
+ #
2823
+ # @param name [::String]
2824
+ # Required. The resource name of the ModelDeploymentMonitoringJob to resume.
2825
+ # Format:
2826
+ # `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
2827
+ #
2828
+ # @yield [response, operation] Access the result along with the RPC operation
2829
+ # @yieldparam response [::Google::Protobuf::Empty]
2830
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2831
+ #
2832
+ # @return [::Google::Protobuf::Empty]
2833
+ #
2834
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2835
+ #
2836
+ # @example Basic example
2837
+ # require "google/cloud/ai_platform/v1"
2838
+ #
2839
+ # # Create a client object. The client can be reused for multiple calls.
2840
+ # client = Google::Cloud::AIPlatform::V1::JobService::Client.new
2841
+ #
2842
+ # # Create a request. To set request fields, pass in keyword arguments.
2843
+ # request = Google::Cloud::AIPlatform::V1::ResumeModelDeploymentMonitoringJobRequest.new
2844
+ #
2845
+ # # Call the resume_model_deployment_monitoring_job method.
2846
+ # result = client.resume_model_deployment_monitoring_job request
2847
+ #
2848
+ # # The returned object is of type Google::Protobuf::Empty.
2849
+ # p result
2850
+ #
2851
+ def resume_model_deployment_monitoring_job request, options = nil
2852
+ raise ::ArgumentError, "request must be provided" if request.nil?
2853
+
2854
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ResumeModelDeploymentMonitoringJobRequest
2855
+
2856
+ # Converts hash and nil to an options object
2857
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2858
+
2859
+ # Customize the options with defaults
2860
+ metadata = @config.rpcs.resume_model_deployment_monitoring_job.metadata.to_h
2861
+
2862
+ # Set x-goog-api-client and x-goog-user-project headers
2863
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2864
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2865
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2866
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2867
+
2868
+ header_params = {}
2869
+ if request.name
2870
+ header_params["name"] = request.name
2871
+ end
2872
+
2873
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2874
+ metadata[:"x-goog-request-params"] ||= request_params_header
2875
+
2876
+ options.apply_defaults timeout: @config.rpcs.resume_model_deployment_monitoring_job.timeout,
2877
+ metadata: metadata,
2878
+ retry_policy: @config.rpcs.resume_model_deployment_monitoring_job.retry_policy
2879
+
2880
+ options.apply_defaults timeout: @config.timeout,
2881
+ metadata: @config.metadata,
2882
+ retry_policy: @config.retry_policy
2883
+
2884
+ @job_service_stub.call_rpc :resume_model_deployment_monitoring_job, request, options: options do |response, operation|
2885
+ yield response, operation if block_given?
2886
+ return response
2887
+ end
2888
+ rescue ::GRPC::BadStatus => e
2889
+ raise ::Google::Cloud::Error.from_error(e)
2890
+ end
2891
+
2892
+ ##
2893
+ # Configuration class for the JobService API.
2894
+ #
2895
+ # This class represents the configuration for JobService,
2896
+ # providing control over timeouts, retry behavior, logging, transport
2897
+ # parameters, and other low-level controls. Certain parameters can also be
2898
+ # applied individually to specific RPCs. See
2899
+ # {::Google::Cloud::AIPlatform::V1::JobService::Client::Configuration::Rpcs}
2900
+ # for a list of RPCs that can be configured independently.
2901
+ #
2902
+ # Configuration can be applied globally to all clients, or to a single client
2903
+ # on construction.
2904
+ #
2905
+ # @example
2906
+ #
2907
+ # # Modify the global config, setting the timeout for
2908
+ # # create_custom_job to 20 seconds,
2909
+ # # and all remaining timeouts to 10 seconds.
2910
+ # ::Google::Cloud::AIPlatform::V1::JobService::Client.configure do |config|
2911
+ # config.timeout = 10.0
2912
+ # config.rpcs.create_custom_job.timeout = 20.0
2913
+ # end
2914
+ #
2915
+ # # Apply the above configuration only to a new client.
2916
+ # client = ::Google::Cloud::AIPlatform::V1::JobService::Client.new do |config|
2917
+ # config.timeout = 10.0
2918
+ # config.rpcs.create_custom_job.timeout = 20.0
2919
+ # end
2920
+ #
2921
+ # @!attribute [rw] endpoint
2922
+ # The hostname or hostname:port of the service endpoint.
2923
+ # Defaults to `"aiplatform.googleapis.com"`.
2924
+ # @return [::String]
2925
+ # @!attribute [rw] credentials
2926
+ # Credentials to send with calls. You may provide any of the following types:
2927
+ # * (`String`) The path to a service account key file in JSON format
2928
+ # * (`Hash`) A service account key as a Hash
2929
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
2930
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
2931
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2932
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
2933
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2934
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2935
+ # * (`nil`) indicating no credentials
2936
+ # @return [::Object]
2937
+ # @!attribute [rw] scope
2938
+ # The OAuth scopes
2939
+ # @return [::Array<::String>]
2940
+ # @!attribute [rw] lib_name
2941
+ # The library name as recorded in instrumentation and logging
2942
+ # @return [::String]
2943
+ # @!attribute [rw] lib_version
2944
+ # The library version as recorded in instrumentation and logging
2945
+ # @return [::String]
2946
+ # @!attribute [rw] channel_args
2947
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
2948
+ # `GRPC::Core::Channel` object is provided as the credential.
2949
+ # @return [::Hash]
2950
+ # @!attribute [rw] interceptors
2951
+ # An array of interceptors that are run before calls are executed.
2952
+ # @return [::Array<::GRPC::ClientInterceptor>]
2953
+ # @!attribute [rw] timeout
2954
+ # The call timeout in seconds.
2955
+ # @return [::Numeric]
2956
+ # @!attribute [rw] metadata
2957
+ # Additional gRPC headers to be sent with the call.
2958
+ # @return [::Hash{::Symbol=>::String}]
2959
+ # @!attribute [rw] retry_policy
2960
+ # The retry policy. The value is a hash with the following keys:
2961
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2962
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2963
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2964
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2965
+ # trigger a retry.
2966
+ # @return [::Hash]
2967
+ # @!attribute [rw] quota_project
2968
+ # A separate project against which to charge quota.
2969
+ # @return [::String]
2970
+ #
2971
+ class Configuration
2972
+ extend ::Gapic::Config
2973
+
2974
+ config_attr :endpoint, "aiplatform.googleapis.com", ::String
2975
+ config_attr :credentials, nil do |value|
2976
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2977
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2978
+ allowed.any? { |klass| klass === value }
2979
+ end
2980
+ config_attr :scope, nil, ::String, ::Array, nil
2981
+ config_attr :lib_name, nil, ::String, nil
2982
+ config_attr :lib_version, nil, ::String, nil
2983
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
2984
+ config_attr :interceptors, nil, ::Array, nil
2985
+ config_attr :timeout, nil, ::Numeric, nil
2986
+ config_attr :metadata, nil, ::Hash, nil
2987
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2988
+ config_attr :quota_project, nil, ::String, nil
2989
+
2990
+ # @private
2991
+ def initialize parent_config = nil
2992
+ @parent_config = parent_config unless parent_config.nil?
2993
+
2994
+ yield self if block_given?
2995
+ end
2996
+
2997
+ ##
2998
+ # Configurations for individual RPCs
2999
+ # @return [Rpcs]
3000
+ #
3001
+ def rpcs
3002
+ @rpcs ||= begin
3003
+ parent_rpcs = nil
3004
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
3005
+ Rpcs.new parent_rpcs
3006
+ end
3007
+ end
3008
+
3009
+ ##
3010
+ # Configuration RPC class for the JobService API.
3011
+ #
3012
+ # Includes fields providing the configuration for each RPC in this service.
3013
+ # Each configuration object is of type `Gapic::Config::Method` and includes
3014
+ # the following configuration fields:
3015
+ #
3016
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
3017
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
3018
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
3019
+ # include the following keys:
3020
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
3021
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
3022
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
3023
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
3024
+ # trigger a retry.
3025
+ #
3026
+ class Rpcs
3027
+ ##
3028
+ # RPC-specific configuration for `create_custom_job`
3029
+ # @return [::Gapic::Config::Method]
3030
+ #
3031
+ attr_reader :create_custom_job
3032
+ ##
3033
+ # RPC-specific configuration for `get_custom_job`
3034
+ # @return [::Gapic::Config::Method]
3035
+ #
3036
+ attr_reader :get_custom_job
3037
+ ##
3038
+ # RPC-specific configuration for `list_custom_jobs`
3039
+ # @return [::Gapic::Config::Method]
3040
+ #
3041
+ attr_reader :list_custom_jobs
3042
+ ##
3043
+ # RPC-specific configuration for `delete_custom_job`
3044
+ # @return [::Gapic::Config::Method]
3045
+ #
3046
+ attr_reader :delete_custom_job
3047
+ ##
3048
+ # RPC-specific configuration for `cancel_custom_job`
3049
+ # @return [::Gapic::Config::Method]
3050
+ #
3051
+ attr_reader :cancel_custom_job
3052
+ ##
3053
+ # RPC-specific configuration for `create_data_labeling_job`
3054
+ # @return [::Gapic::Config::Method]
3055
+ #
3056
+ attr_reader :create_data_labeling_job
3057
+ ##
3058
+ # RPC-specific configuration for `get_data_labeling_job`
3059
+ # @return [::Gapic::Config::Method]
3060
+ #
3061
+ attr_reader :get_data_labeling_job
3062
+ ##
3063
+ # RPC-specific configuration for `list_data_labeling_jobs`
3064
+ # @return [::Gapic::Config::Method]
3065
+ #
3066
+ attr_reader :list_data_labeling_jobs
3067
+ ##
3068
+ # RPC-specific configuration for `delete_data_labeling_job`
3069
+ # @return [::Gapic::Config::Method]
3070
+ #
3071
+ attr_reader :delete_data_labeling_job
3072
+ ##
3073
+ # RPC-specific configuration for `cancel_data_labeling_job`
3074
+ # @return [::Gapic::Config::Method]
3075
+ #
3076
+ attr_reader :cancel_data_labeling_job
3077
+ ##
3078
+ # RPC-specific configuration for `create_hyperparameter_tuning_job`
3079
+ # @return [::Gapic::Config::Method]
3080
+ #
3081
+ attr_reader :create_hyperparameter_tuning_job
3082
+ ##
3083
+ # RPC-specific configuration for `get_hyperparameter_tuning_job`
3084
+ # @return [::Gapic::Config::Method]
3085
+ #
3086
+ attr_reader :get_hyperparameter_tuning_job
3087
+ ##
3088
+ # RPC-specific configuration for `list_hyperparameter_tuning_jobs`
3089
+ # @return [::Gapic::Config::Method]
3090
+ #
3091
+ attr_reader :list_hyperparameter_tuning_jobs
3092
+ ##
3093
+ # RPC-specific configuration for `delete_hyperparameter_tuning_job`
3094
+ # @return [::Gapic::Config::Method]
3095
+ #
3096
+ attr_reader :delete_hyperparameter_tuning_job
3097
+ ##
3098
+ # RPC-specific configuration for `cancel_hyperparameter_tuning_job`
3099
+ # @return [::Gapic::Config::Method]
3100
+ #
3101
+ attr_reader :cancel_hyperparameter_tuning_job
3102
+ ##
3103
+ # RPC-specific configuration for `create_batch_prediction_job`
3104
+ # @return [::Gapic::Config::Method]
3105
+ #
3106
+ attr_reader :create_batch_prediction_job
3107
+ ##
3108
+ # RPC-specific configuration for `get_batch_prediction_job`
3109
+ # @return [::Gapic::Config::Method]
3110
+ #
3111
+ attr_reader :get_batch_prediction_job
3112
+ ##
3113
+ # RPC-specific configuration for `list_batch_prediction_jobs`
3114
+ # @return [::Gapic::Config::Method]
3115
+ #
3116
+ attr_reader :list_batch_prediction_jobs
3117
+ ##
3118
+ # RPC-specific configuration for `delete_batch_prediction_job`
3119
+ # @return [::Gapic::Config::Method]
3120
+ #
3121
+ attr_reader :delete_batch_prediction_job
3122
+ ##
3123
+ # RPC-specific configuration for `cancel_batch_prediction_job`
3124
+ # @return [::Gapic::Config::Method]
3125
+ #
3126
+ attr_reader :cancel_batch_prediction_job
3127
+ ##
3128
+ # RPC-specific configuration for `create_model_deployment_monitoring_job`
3129
+ # @return [::Gapic::Config::Method]
3130
+ #
3131
+ attr_reader :create_model_deployment_monitoring_job
3132
+ ##
3133
+ # RPC-specific configuration for `search_model_deployment_monitoring_stats_anomalies`
3134
+ # @return [::Gapic::Config::Method]
3135
+ #
3136
+ attr_reader :search_model_deployment_monitoring_stats_anomalies
3137
+ ##
3138
+ # RPC-specific configuration for `get_model_deployment_monitoring_job`
3139
+ # @return [::Gapic::Config::Method]
3140
+ #
3141
+ attr_reader :get_model_deployment_monitoring_job
3142
+ ##
3143
+ # RPC-specific configuration for `list_model_deployment_monitoring_jobs`
3144
+ # @return [::Gapic::Config::Method]
3145
+ #
3146
+ attr_reader :list_model_deployment_monitoring_jobs
3147
+ ##
3148
+ # RPC-specific configuration for `update_model_deployment_monitoring_job`
3149
+ # @return [::Gapic::Config::Method]
3150
+ #
3151
+ attr_reader :update_model_deployment_monitoring_job
3152
+ ##
3153
+ # RPC-specific configuration for `delete_model_deployment_monitoring_job`
3154
+ # @return [::Gapic::Config::Method]
3155
+ #
3156
+ attr_reader :delete_model_deployment_monitoring_job
3157
+ ##
3158
+ # RPC-specific configuration for `pause_model_deployment_monitoring_job`
3159
+ # @return [::Gapic::Config::Method]
3160
+ #
3161
+ attr_reader :pause_model_deployment_monitoring_job
3162
+ ##
3163
+ # RPC-specific configuration for `resume_model_deployment_monitoring_job`
3164
+ # @return [::Gapic::Config::Method]
3165
+ #
3166
+ attr_reader :resume_model_deployment_monitoring_job
3167
+
3168
+ # @private
3169
+ def initialize parent_rpcs = nil
3170
+ create_custom_job_config = parent_rpcs.create_custom_job if parent_rpcs.respond_to? :create_custom_job
3171
+ @create_custom_job = ::Gapic::Config::Method.new create_custom_job_config
3172
+ get_custom_job_config = parent_rpcs.get_custom_job if parent_rpcs.respond_to? :get_custom_job
3173
+ @get_custom_job = ::Gapic::Config::Method.new get_custom_job_config
3174
+ list_custom_jobs_config = parent_rpcs.list_custom_jobs if parent_rpcs.respond_to? :list_custom_jobs
3175
+ @list_custom_jobs = ::Gapic::Config::Method.new list_custom_jobs_config
3176
+ delete_custom_job_config = parent_rpcs.delete_custom_job if parent_rpcs.respond_to? :delete_custom_job
3177
+ @delete_custom_job = ::Gapic::Config::Method.new delete_custom_job_config
3178
+ cancel_custom_job_config = parent_rpcs.cancel_custom_job if parent_rpcs.respond_to? :cancel_custom_job
3179
+ @cancel_custom_job = ::Gapic::Config::Method.new cancel_custom_job_config
3180
+ create_data_labeling_job_config = parent_rpcs.create_data_labeling_job if parent_rpcs.respond_to? :create_data_labeling_job
3181
+ @create_data_labeling_job = ::Gapic::Config::Method.new create_data_labeling_job_config
3182
+ get_data_labeling_job_config = parent_rpcs.get_data_labeling_job if parent_rpcs.respond_to? :get_data_labeling_job
3183
+ @get_data_labeling_job = ::Gapic::Config::Method.new get_data_labeling_job_config
3184
+ list_data_labeling_jobs_config = parent_rpcs.list_data_labeling_jobs if parent_rpcs.respond_to? :list_data_labeling_jobs
3185
+ @list_data_labeling_jobs = ::Gapic::Config::Method.new list_data_labeling_jobs_config
3186
+ delete_data_labeling_job_config = parent_rpcs.delete_data_labeling_job if parent_rpcs.respond_to? :delete_data_labeling_job
3187
+ @delete_data_labeling_job = ::Gapic::Config::Method.new delete_data_labeling_job_config
3188
+ cancel_data_labeling_job_config = parent_rpcs.cancel_data_labeling_job if parent_rpcs.respond_to? :cancel_data_labeling_job
3189
+ @cancel_data_labeling_job = ::Gapic::Config::Method.new cancel_data_labeling_job_config
3190
+ create_hyperparameter_tuning_job_config = parent_rpcs.create_hyperparameter_tuning_job if parent_rpcs.respond_to? :create_hyperparameter_tuning_job
3191
+ @create_hyperparameter_tuning_job = ::Gapic::Config::Method.new create_hyperparameter_tuning_job_config
3192
+ get_hyperparameter_tuning_job_config = parent_rpcs.get_hyperparameter_tuning_job if parent_rpcs.respond_to? :get_hyperparameter_tuning_job
3193
+ @get_hyperparameter_tuning_job = ::Gapic::Config::Method.new get_hyperparameter_tuning_job_config
3194
+ list_hyperparameter_tuning_jobs_config = parent_rpcs.list_hyperparameter_tuning_jobs if parent_rpcs.respond_to? :list_hyperparameter_tuning_jobs
3195
+ @list_hyperparameter_tuning_jobs = ::Gapic::Config::Method.new list_hyperparameter_tuning_jobs_config
3196
+ delete_hyperparameter_tuning_job_config = parent_rpcs.delete_hyperparameter_tuning_job if parent_rpcs.respond_to? :delete_hyperparameter_tuning_job
3197
+ @delete_hyperparameter_tuning_job = ::Gapic::Config::Method.new delete_hyperparameter_tuning_job_config
3198
+ cancel_hyperparameter_tuning_job_config = parent_rpcs.cancel_hyperparameter_tuning_job if parent_rpcs.respond_to? :cancel_hyperparameter_tuning_job
3199
+ @cancel_hyperparameter_tuning_job = ::Gapic::Config::Method.new cancel_hyperparameter_tuning_job_config
3200
+ create_batch_prediction_job_config = parent_rpcs.create_batch_prediction_job if parent_rpcs.respond_to? :create_batch_prediction_job
3201
+ @create_batch_prediction_job = ::Gapic::Config::Method.new create_batch_prediction_job_config
3202
+ get_batch_prediction_job_config = parent_rpcs.get_batch_prediction_job if parent_rpcs.respond_to? :get_batch_prediction_job
3203
+ @get_batch_prediction_job = ::Gapic::Config::Method.new get_batch_prediction_job_config
3204
+ list_batch_prediction_jobs_config = parent_rpcs.list_batch_prediction_jobs if parent_rpcs.respond_to? :list_batch_prediction_jobs
3205
+ @list_batch_prediction_jobs = ::Gapic::Config::Method.new list_batch_prediction_jobs_config
3206
+ delete_batch_prediction_job_config = parent_rpcs.delete_batch_prediction_job if parent_rpcs.respond_to? :delete_batch_prediction_job
3207
+ @delete_batch_prediction_job = ::Gapic::Config::Method.new delete_batch_prediction_job_config
3208
+ cancel_batch_prediction_job_config = parent_rpcs.cancel_batch_prediction_job if parent_rpcs.respond_to? :cancel_batch_prediction_job
3209
+ @cancel_batch_prediction_job = ::Gapic::Config::Method.new cancel_batch_prediction_job_config
3210
+ create_model_deployment_monitoring_job_config = parent_rpcs.create_model_deployment_monitoring_job if parent_rpcs.respond_to? :create_model_deployment_monitoring_job
3211
+ @create_model_deployment_monitoring_job = ::Gapic::Config::Method.new create_model_deployment_monitoring_job_config
3212
+ search_model_deployment_monitoring_stats_anomalies_config = parent_rpcs.search_model_deployment_monitoring_stats_anomalies if parent_rpcs.respond_to? :search_model_deployment_monitoring_stats_anomalies
3213
+ @search_model_deployment_monitoring_stats_anomalies = ::Gapic::Config::Method.new search_model_deployment_monitoring_stats_anomalies_config
3214
+ get_model_deployment_monitoring_job_config = parent_rpcs.get_model_deployment_monitoring_job if parent_rpcs.respond_to? :get_model_deployment_monitoring_job
3215
+ @get_model_deployment_monitoring_job = ::Gapic::Config::Method.new get_model_deployment_monitoring_job_config
3216
+ list_model_deployment_monitoring_jobs_config = parent_rpcs.list_model_deployment_monitoring_jobs if parent_rpcs.respond_to? :list_model_deployment_monitoring_jobs
3217
+ @list_model_deployment_monitoring_jobs = ::Gapic::Config::Method.new list_model_deployment_monitoring_jobs_config
3218
+ update_model_deployment_monitoring_job_config = parent_rpcs.update_model_deployment_monitoring_job if parent_rpcs.respond_to? :update_model_deployment_monitoring_job
3219
+ @update_model_deployment_monitoring_job = ::Gapic::Config::Method.new update_model_deployment_monitoring_job_config
3220
+ delete_model_deployment_monitoring_job_config = parent_rpcs.delete_model_deployment_monitoring_job if parent_rpcs.respond_to? :delete_model_deployment_monitoring_job
3221
+ @delete_model_deployment_monitoring_job = ::Gapic::Config::Method.new delete_model_deployment_monitoring_job_config
3222
+ pause_model_deployment_monitoring_job_config = parent_rpcs.pause_model_deployment_monitoring_job if parent_rpcs.respond_to? :pause_model_deployment_monitoring_job
3223
+ @pause_model_deployment_monitoring_job = ::Gapic::Config::Method.new pause_model_deployment_monitoring_job_config
3224
+ resume_model_deployment_monitoring_job_config = parent_rpcs.resume_model_deployment_monitoring_job if parent_rpcs.respond_to? :resume_model_deployment_monitoring_job
3225
+ @resume_model_deployment_monitoring_job = ::Gapic::Config::Method.new resume_model_deployment_monitoring_job_config
3226
+
3227
+ yield self if block_given?
3228
+ end
3229
+ end
3230
+ end
3231
+ end
3232
+ end
3233
+ end
3234
+ end
3235
+ end
3236
+ end