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,1384 @@
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/pipeline_service_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module AIPlatform
25
+ module V1
26
+ module PipelineService
27
+ ##
28
+ # Client for the PipelineService service.
29
+ #
30
+ # A service for creating and managing Vertex AI's pipelines. This includes both
31
+ # `TrainingPipeline` resources (used for AutoML and custom training) and
32
+ # `PipelineJob` resources (used for Vertex AI Pipelines).
33
+ #
34
+ class Client
35
+ include Paths
36
+
37
+ # @private
38
+ attr_reader :pipeline_service_stub
39
+
40
+ ##
41
+ # Configure the PipelineService Client class.
42
+ #
43
+ # See {::Google::Cloud::AIPlatform::V1::PipelineService::Client::Configuration}
44
+ # for a description of the configuration fields.
45
+ #
46
+ # @example
47
+ #
48
+ # # Modify the configuration for all PipelineService clients
49
+ # ::Google::Cloud::AIPlatform::V1::PipelineService::Client.configure do |config|
50
+ # config.timeout = 10.0
51
+ # end
52
+ #
53
+ # @yield [config] Configure the Client client.
54
+ # @yieldparam config [Client::Configuration]
55
+ #
56
+ # @return [Client::Configuration]
57
+ #
58
+ def self.configure
59
+ @configure ||= begin
60
+ namespace = ["Google", "Cloud", "AIPlatform", "V1"]
61
+ parent_config = while namespace.any?
62
+ parent_name = namespace.join "::"
63
+ parent_const = const_get parent_name
64
+ break parent_const.configure if parent_const.respond_to? :configure
65
+ namespace.pop
66
+ end
67
+ default_config = Client::Configuration.new parent_config
68
+
69
+ default_config
70
+ end
71
+ yield @configure if block_given?
72
+ @configure
73
+ end
74
+
75
+ ##
76
+ # Configure the PipelineService Client instance.
77
+ #
78
+ # The configuration is set to the derived mode, meaning that values can be changed,
79
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
80
+ # should be made on {Client.configure}.
81
+ #
82
+ # See {::Google::Cloud::AIPlatform::V1::PipelineService::Client::Configuration}
83
+ # for a description of the configuration fields.
84
+ #
85
+ # @yield [config] Configure the Client client.
86
+ # @yieldparam config [Client::Configuration]
87
+ #
88
+ # @return [Client::Configuration]
89
+ #
90
+ def configure
91
+ yield @config if block_given?
92
+ @config
93
+ end
94
+
95
+ ##
96
+ # Create a new PipelineService client object.
97
+ #
98
+ # @example
99
+ #
100
+ # # Create a client using the default configuration
101
+ # client = ::Google::Cloud::AIPlatform::V1::PipelineService::Client.new
102
+ #
103
+ # # Create a client using a custom configuration
104
+ # client = ::Google::Cloud::AIPlatform::V1::PipelineService::Client.new do |config|
105
+ # config.timeout = 10.0
106
+ # end
107
+ #
108
+ # @yield [config] Configure the PipelineService client.
109
+ # @yieldparam config [Client::Configuration]
110
+ #
111
+ def initialize
112
+ # These require statements are intentionally placed here to initialize
113
+ # the gRPC module only when it's required.
114
+ # See https://github.com/googleapis/toolkit/issues/446
115
+ require "gapic/grpc"
116
+ require "google/cloud/aiplatform/v1/pipeline_service_services_pb"
117
+
118
+ # Create the configuration object
119
+ @config = Configuration.new Client.configure
120
+
121
+ # Yield the configuration if needed
122
+ yield @config if block_given?
123
+
124
+ # Create credentials
125
+ credentials = @config.credentials
126
+ # Use self-signed JWT if the endpoint is unchanged from default,
127
+ # but only if the default endpoint does not have a region prefix.
128
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
129
+ !@config.endpoint.split(".").first.include?("-")
130
+ credentials ||= Credentials.default scope: @config.scope,
131
+ enable_self_signed_jwt: enable_self_signed_jwt
132
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
133
+ credentials = Credentials.new credentials, scope: @config.scope
134
+ end
135
+ @quota_project_id = @config.quota_project
136
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
137
+
138
+ @operations_client = Operations.new do |config|
139
+ config.credentials = credentials
140
+ config.quota_project = @quota_project_id
141
+ config.endpoint = @config.endpoint
142
+ end
143
+
144
+ @pipeline_service_stub = ::Gapic::ServiceStub.new(
145
+ ::Google::Cloud::AIPlatform::V1::PipelineService::Stub,
146
+ credentials: credentials,
147
+ endpoint: @config.endpoint,
148
+ channel_args: @config.channel_args,
149
+ interceptors: @config.interceptors
150
+ )
151
+ end
152
+
153
+ ##
154
+ # Get the associated client for long-running operations.
155
+ #
156
+ # @return [::Google::Cloud::AIPlatform::V1::PipelineService::Operations]
157
+ #
158
+ attr_reader :operations_client
159
+
160
+ # Service calls
161
+
162
+ ##
163
+ # Creates a TrainingPipeline. A created TrainingPipeline right away will be
164
+ # attempted to be run.
165
+ #
166
+ # @overload create_training_pipeline(request, options = nil)
167
+ # Pass arguments to `create_training_pipeline` via a request object, either of type
168
+ # {::Google::Cloud::AIPlatform::V1::CreateTrainingPipelineRequest} or an equivalent Hash.
169
+ #
170
+ # @param request [::Google::Cloud::AIPlatform::V1::CreateTrainingPipelineRequest, ::Hash]
171
+ # A request object representing the call parameters. Required. To specify no
172
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
173
+ # @param options [::Gapic::CallOptions, ::Hash]
174
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
175
+ #
176
+ # @overload create_training_pipeline(parent: nil, training_pipeline: nil)
177
+ # Pass arguments to `create_training_pipeline` via keyword arguments. Note that at
178
+ # least one keyword argument is required. To specify no parameters, or to keep all
179
+ # the default parameter values, pass an empty Hash as a request object (see above).
180
+ #
181
+ # @param parent [::String]
182
+ # Required. The resource name of the Location to create the TrainingPipeline in.
183
+ # Format: `projects/{project}/locations/{location}`
184
+ # @param training_pipeline [::Google::Cloud::AIPlatform::V1::TrainingPipeline, ::Hash]
185
+ # Required. The TrainingPipeline to create.
186
+ #
187
+ # @yield [response, operation] Access the result along with the RPC operation
188
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::TrainingPipeline]
189
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
190
+ #
191
+ # @return [::Google::Cloud::AIPlatform::V1::TrainingPipeline]
192
+ #
193
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
194
+ #
195
+ # @example Basic example
196
+ # require "google/cloud/ai_platform/v1"
197
+ #
198
+ # # Create a client object. The client can be reused for multiple calls.
199
+ # client = Google::Cloud::AIPlatform::V1::PipelineService::Client.new
200
+ #
201
+ # # Create a request. To set request fields, pass in keyword arguments.
202
+ # request = Google::Cloud::AIPlatform::V1::CreateTrainingPipelineRequest.new
203
+ #
204
+ # # Call the create_training_pipeline method.
205
+ # result = client.create_training_pipeline request
206
+ #
207
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::TrainingPipeline.
208
+ # p result
209
+ #
210
+ def create_training_pipeline request, options = nil
211
+ raise ::ArgumentError, "request must be provided" if request.nil?
212
+
213
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateTrainingPipelineRequest
214
+
215
+ # Converts hash and nil to an options object
216
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
217
+
218
+ # Customize the options with defaults
219
+ metadata = @config.rpcs.create_training_pipeline.metadata.to_h
220
+
221
+ # Set x-goog-api-client and x-goog-user-project headers
222
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
223
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
224
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
225
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
226
+
227
+ header_params = {}
228
+ if request.parent
229
+ header_params["parent"] = request.parent
230
+ end
231
+
232
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
233
+ metadata[:"x-goog-request-params"] ||= request_params_header
234
+
235
+ options.apply_defaults timeout: @config.rpcs.create_training_pipeline.timeout,
236
+ metadata: metadata,
237
+ retry_policy: @config.rpcs.create_training_pipeline.retry_policy
238
+
239
+ options.apply_defaults timeout: @config.timeout,
240
+ metadata: @config.metadata,
241
+ retry_policy: @config.retry_policy
242
+
243
+ @pipeline_service_stub.call_rpc :create_training_pipeline, request, options: options do |response, operation|
244
+ yield response, operation if block_given?
245
+ return response
246
+ end
247
+ rescue ::GRPC::BadStatus => e
248
+ raise ::Google::Cloud::Error.from_error(e)
249
+ end
250
+
251
+ ##
252
+ # Gets a TrainingPipeline.
253
+ #
254
+ # @overload get_training_pipeline(request, options = nil)
255
+ # Pass arguments to `get_training_pipeline` via a request object, either of type
256
+ # {::Google::Cloud::AIPlatform::V1::GetTrainingPipelineRequest} or an equivalent Hash.
257
+ #
258
+ # @param request [::Google::Cloud::AIPlatform::V1::GetTrainingPipelineRequest, ::Hash]
259
+ # A request object representing the call parameters. Required. To specify no
260
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
261
+ # @param options [::Gapic::CallOptions, ::Hash]
262
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
263
+ #
264
+ # @overload get_training_pipeline(name: nil)
265
+ # Pass arguments to `get_training_pipeline` via keyword arguments. Note that at
266
+ # least one keyword argument is required. To specify no parameters, or to keep all
267
+ # the default parameter values, pass an empty Hash as a request object (see above).
268
+ #
269
+ # @param name [::String]
270
+ # Required. The name of the TrainingPipeline resource.
271
+ # Format:
272
+ # `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
273
+ #
274
+ # @yield [response, operation] Access the result along with the RPC operation
275
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::TrainingPipeline]
276
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
277
+ #
278
+ # @return [::Google::Cloud::AIPlatform::V1::TrainingPipeline]
279
+ #
280
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
281
+ #
282
+ # @example Basic example
283
+ # require "google/cloud/ai_platform/v1"
284
+ #
285
+ # # Create a client object. The client can be reused for multiple calls.
286
+ # client = Google::Cloud::AIPlatform::V1::PipelineService::Client.new
287
+ #
288
+ # # Create a request. To set request fields, pass in keyword arguments.
289
+ # request = Google::Cloud::AIPlatform::V1::GetTrainingPipelineRequest.new
290
+ #
291
+ # # Call the get_training_pipeline method.
292
+ # result = client.get_training_pipeline request
293
+ #
294
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::TrainingPipeline.
295
+ # p result
296
+ #
297
+ def get_training_pipeline request, options = nil
298
+ raise ::ArgumentError, "request must be provided" if request.nil?
299
+
300
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetTrainingPipelineRequest
301
+
302
+ # Converts hash and nil to an options object
303
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
304
+
305
+ # Customize the options with defaults
306
+ metadata = @config.rpcs.get_training_pipeline.metadata.to_h
307
+
308
+ # Set x-goog-api-client and x-goog-user-project headers
309
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
310
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
311
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
312
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
313
+
314
+ header_params = {}
315
+ if request.name
316
+ header_params["name"] = request.name
317
+ end
318
+
319
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
320
+ metadata[:"x-goog-request-params"] ||= request_params_header
321
+
322
+ options.apply_defaults timeout: @config.rpcs.get_training_pipeline.timeout,
323
+ metadata: metadata,
324
+ retry_policy: @config.rpcs.get_training_pipeline.retry_policy
325
+
326
+ options.apply_defaults timeout: @config.timeout,
327
+ metadata: @config.metadata,
328
+ retry_policy: @config.retry_policy
329
+
330
+ @pipeline_service_stub.call_rpc :get_training_pipeline, request, options: options do |response, operation|
331
+ yield response, operation if block_given?
332
+ return response
333
+ end
334
+ rescue ::GRPC::BadStatus => e
335
+ raise ::Google::Cloud::Error.from_error(e)
336
+ end
337
+
338
+ ##
339
+ # Lists TrainingPipelines in a Location.
340
+ #
341
+ # @overload list_training_pipelines(request, options = nil)
342
+ # Pass arguments to `list_training_pipelines` via a request object, either of type
343
+ # {::Google::Cloud::AIPlatform::V1::ListTrainingPipelinesRequest} or an equivalent Hash.
344
+ #
345
+ # @param request [::Google::Cloud::AIPlatform::V1::ListTrainingPipelinesRequest, ::Hash]
346
+ # A request object representing the call parameters. Required. To specify no
347
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
348
+ # @param options [::Gapic::CallOptions, ::Hash]
349
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
350
+ #
351
+ # @overload list_training_pipelines(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil)
352
+ # Pass arguments to `list_training_pipelines` via keyword arguments. Note that at
353
+ # least one keyword argument is required. To specify no parameters, or to keep all
354
+ # the default parameter values, pass an empty Hash as a request object (see above).
355
+ #
356
+ # @param parent [::String]
357
+ # Required. The resource name of the Location to list the TrainingPipelines from.
358
+ # Format: `projects/{project}/locations/{location}`
359
+ # @param filter [::String]
360
+ # The standard list filter.
361
+ # Supported fields:
362
+ #
363
+ # * `display_name` supports = and !=.
364
+ #
365
+ # * `state` supports = and !=.
366
+ #
367
+ # Some examples of using the filter are:
368
+ #
369
+ # * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"`
370
+ #
371
+ # * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"`
372
+ #
373
+ # * `NOT display_name="my_pipeline"`
374
+ #
375
+ # * `state="PIPELINE_STATE_FAILED"`
376
+ # @param page_size [::Integer]
377
+ # The standard list page size.
378
+ # @param page_token [::String]
379
+ # The standard list page token.
380
+ # Typically obtained via
381
+ # {::Google::Cloud::AIPlatform::V1::ListTrainingPipelinesResponse#next_page_token ListTrainingPipelinesResponse.next_page_token} of the previous
382
+ # {::Google::Cloud::AIPlatform::V1::PipelineService::Client#list_training_pipelines PipelineService.ListTrainingPipelines} call.
383
+ # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
384
+ # Mask specifying which fields to read.
385
+ #
386
+ # @yield [response, operation] Access the result along with the RPC operation
387
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::TrainingPipeline>]
388
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
389
+ #
390
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::TrainingPipeline>]
391
+ #
392
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
393
+ #
394
+ # @example Basic example
395
+ # require "google/cloud/ai_platform/v1"
396
+ #
397
+ # # Create a client object. The client can be reused for multiple calls.
398
+ # client = Google::Cloud::AIPlatform::V1::PipelineService::Client.new
399
+ #
400
+ # # Create a request. To set request fields, pass in keyword arguments.
401
+ # request = Google::Cloud::AIPlatform::V1::ListTrainingPipelinesRequest.new
402
+ #
403
+ # # Call the list_training_pipelines method.
404
+ # result = client.list_training_pipelines request
405
+ #
406
+ # # The returned object is of type Gapic::PagedEnumerable. You can
407
+ # # iterate over all elements by calling #each, and the enumerable
408
+ # # will lazily make API calls to fetch subsequent pages. Other
409
+ # # methods are also available for managing paging directly.
410
+ # result.each do |response|
411
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::TrainingPipeline.
412
+ # p response
413
+ # end
414
+ #
415
+ def list_training_pipelines request, options = nil
416
+ raise ::ArgumentError, "request must be provided" if request.nil?
417
+
418
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListTrainingPipelinesRequest
419
+
420
+ # Converts hash and nil to an options object
421
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
422
+
423
+ # Customize the options with defaults
424
+ metadata = @config.rpcs.list_training_pipelines.metadata.to_h
425
+
426
+ # Set x-goog-api-client and x-goog-user-project headers
427
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
428
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
429
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
430
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
431
+
432
+ header_params = {}
433
+ if request.parent
434
+ header_params["parent"] = request.parent
435
+ end
436
+
437
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
438
+ metadata[:"x-goog-request-params"] ||= request_params_header
439
+
440
+ options.apply_defaults timeout: @config.rpcs.list_training_pipelines.timeout,
441
+ metadata: metadata,
442
+ retry_policy: @config.rpcs.list_training_pipelines.retry_policy
443
+
444
+ options.apply_defaults timeout: @config.timeout,
445
+ metadata: @config.metadata,
446
+ retry_policy: @config.retry_policy
447
+
448
+ @pipeline_service_stub.call_rpc :list_training_pipelines, request, options: options do |response, operation|
449
+ response = ::Gapic::PagedEnumerable.new @pipeline_service_stub, :list_training_pipelines, request, response, operation, options
450
+ yield response, operation if block_given?
451
+ return response
452
+ end
453
+ rescue ::GRPC::BadStatus => e
454
+ raise ::Google::Cloud::Error.from_error(e)
455
+ end
456
+
457
+ ##
458
+ # Deletes a TrainingPipeline.
459
+ #
460
+ # @overload delete_training_pipeline(request, options = nil)
461
+ # Pass arguments to `delete_training_pipeline` via a request object, either of type
462
+ # {::Google::Cloud::AIPlatform::V1::DeleteTrainingPipelineRequest} or an equivalent Hash.
463
+ #
464
+ # @param request [::Google::Cloud::AIPlatform::V1::DeleteTrainingPipelineRequest, ::Hash]
465
+ # A request object representing the call parameters. Required. To specify no
466
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
467
+ # @param options [::Gapic::CallOptions, ::Hash]
468
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
469
+ #
470
+ # @overload delete_training_pipeline(name: nil)
471
+ # Pass arguments to `delete_training_pipeline` via keyword arguments. Note that at
472
+ # least one keyword argument is required. To specify no parameters, or to keep all
473
+ # the default parameter values, pass an empty Hash as a request object (see above).
474
+ #
475
+ # @param name [::String]
476
+ # Required. The name of the TrainingPipeline resource to be deleted.
477
+ # Format:
478
+ # `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
479
+ #
480
+ # @yield [response, operation] Access the result along with the RPC operation
481
+ # @yieldparam response [::Gapic::Operation]
482
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
483
+ #
484
+ # @return [::Gapic::Operation]
485
+ #
486
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
487
+ #
488
+ # @example Basic example
489
+ # require "google/cloud/ai_platform/v1"
490
+ #
491
+ # # Create a client object. The client can be reused for multiple calls.
492
+ # client = Google::Cloud::AIPlatform::V1::PipelineService::Client.new
493
+ #
494
+ # # Create a request. To set request fields, pass in keyword arguments.
495
+ # request = Google::Cloud::AIPlatform::V1::DeleteTrainingPipelineRequest.new
496
+ #
497
+ # # Call the delete_training_pipeline method.
498
+ # result = client.delete_training_pipeline request
499
+ #
500
+ # # The returned object is of type Gapic::Operation. You can use this
501
+ # # object to check the status of an operation, cancel it, or wait
502
+ # # for results. Here is how to block until completion:
503
+ # result.wait_until_done! timeout: 60
504
+ # if result.response?
505
+ # p result.response
506
+ # else
507
+ # puts "Error!"
508
+ # end
509
+ #
510
+ def delete_training_pipeline request, options = nil
511
+ raise ::ArgumentError, "request must be provided" if request.nil?
512
+
513
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteTrainingPipelineRequest
514
+
515
+ # Converts hash and nil to an options object
516
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
517
+
518
+ # Customize the options with defaults
519
+ metadata = @config.rpcs.delete_training_pipeline.metadata.to_h
520
+
521
+ # Set x-goog-api-client and x-goog-user-project headers
522
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
523
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
524
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
525
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
526
+
527
+ header_params = {}
528
+ if request.name
529
+ header_params["name"] = request.name
530
+ end
531
+
532
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
533
+ metadata[:"x-goog-request-params"] ||= request_params_header
534
+
535
+ options.apply_defaults timeout: @config.rpcs.delete_training_pipeline.timeout,
536
+ metadata: metadata,
537
+ retry_policy: @config.rpcs.delete_training_pipeline.retry_policy
538
+
539
+ options.apply_defaults timeout: @config.timeout,
540
+ metadata: @config.metadata,
541
+ retry_policy: @config.retry_policy
542
+
543
+ @pipeline_service_stub.call_rpc :delete_training_pipeline, request, options: options do |response, operation|
544
+ response = ::Gapic::Operation.new response, @operations_client, options: options
545
+ yield response, operation if block_given?
546
+ return response
547
+ end
548
+ rescue ::GRPC::BadStatus => e
549
+ raise ::Google::Cloud::Error.from_error(e)
550
+ end
551
+
552
+ ##
553
+ # Cancels a TrainingPipeline.
554
+ # Starts asynchronous cancellation on the TrainingPipeline. The server
555
+ # makes a best effort to cancel the pipeline, but success is not
556
+ # guaranteed. Clients can use {::Google::Cloud::AIPlatform::V1::PipelineService::Client#get_training_pipeline PipelineService.GetTrainingPipeline} or
557
+ # other methods to check whether the cancellation succeeded or whether the
558
+ # pipeline completed despite cancellation. On successful cancellation,
559
+ # the TrainingPipeline is not deleted; instead it becomes a pipeline with
560
+ # a {::Google::Cloud::AIPlatform::V1::TrainingPipeline#error TrainingPipeline.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
561
+ # corresponding to `Code.CANCELLED`, and {::Google::Cloud::AIPlatform::V1::TrainingPipeline#state TrainingPipeline.state} is set to
562
+ # `CANCELLED`.
563
+ #
564
+ # @overload cancel_training_pipeline(request, options = nil)
565
+ # Pass arguments to `cancel_training_pipeline` via a request object, either of type
566
+ # {::Google::Cloud::AIPlatform::V1::CancelTrainingPipelineRequest} or an equivalent Hash.
567
+ #
568
+ # @param request [::Google::Cloud::AIPlatform::V1::CancelTrainingPipelineRequest, ::Hash]
569
+ # A request object representing the call parameters. Required. To specify no
570
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
571
+ # @param options [::Gapic::CallOptions, ::Hash]
572
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
573
+ #
574
+ # @overload cancel_training_pipeline(name: nil)
575
+ # Pass arguments to `cancel_training_pipeline` via keyword arguments. Note that at
576
+ # least one keyword argument is required. To specify no parameters, or to keep all
577
+ # the default parameter values, pass an empty Hash as a request object (see above).
578
+ #
579
+ # @param name [::String]
580
+ # Required. The name of the TrainingPipeline to cancel.
581
+ # Format:
582
+ # `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`
583
+ #
584
+ # @yield [response, operation] Access the result along with the RPC operation
585
+ # @yieldparam response [::Google::Protobuf::Empty]
586
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
587
+ #
588
+ # @return [::Google::Protobuf::Empty]
589
+ #
590
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
591
+ #
592
+ # @example Basic example
593
+ # require "google/cloud/ai_platform/v1"
594
+ #
595
+ # # Create a client object. The client can be reused for multiple calls.
596
+ # client = Google::Cloud::AIPlatform::V1::PipelineService::Client.new
597
+ #
598
+ # # Create a request. To set request fields, pass in keyword arguments.
599
+ # request = Google::Cloud::AIPlatform::V1::CancelTrainingPipelineRequest.new
600
+ #
601
+ # # Call the cancel_training_pipeline method.
602
+ # result = client.cancel_training_pipeline request
603
+ #
604
+ # # The returned object is of type Google::Protobuf::Empty.
605
+ # p result
606
+ #
607
+ def cancel_training_pipeline request, options = nil
608
+ raise ::ArgumentError, "request must be provided" if request.nil?
609
+
610
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CancelTrainingPipelineRequest
611
+
612
+ # Converts hash and nil to an options object
613
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
614
+
615
+ # Customize the options with defaults
616
+ metadata = @config.rpcs.cancel_training_pipeline.metadata.to_h
617
+
618
+ # Set x-goog-api-client and x-goog-user-project headers
619
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
620
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
621
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
622
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
623
+
624
+ header_params = {}
625
+ if request.name
626
+ header_params["name"] = request.name
627
+ end
628
+
629
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
630
+ metadata[:"x-goog-request-params"] ||= request_params_header
631
+
632
+ options.apply_defaults timeout: @config.rpcs.cancel_training_pipeline.timeout,
633
+ metadata: metadata,
634
+ retry_policy: @config.rpcs.cancel_training_pipeline.retry_policy
635
+
636
+ options.apply_defaults timeout: @config.timeout,
637
+ metadata: @config.metadata,
638
+ retry_policy: @config.retry_policy
639
+
640
+ @pipeline_service_stub.call_rpc :cancel_training_pipeline, request, options: options do |response, operation|
641
+ yield response, operation if block_given?
642
+ return response
643
+ end
644
+ rescue ::GRPC::BadStatus => e
645
+ raise ::Google::Cloud::Error.from_error(e)
646
+ end
647
+
648
+ ##
649
+ # Creates a PipelineJob. A PipelineJob will run immediately when created.
650
+ #
651
+ # @overload create_pipeline_job(request, options = nil)
652
+ # Pass arguments to `create_pipeline_job` via a request object, either of type
653
+ # {::Google::Cloud::AIPlatform::V1::CreatePipelineJobRequest} or an equivalent Hash.
654
+ #
655
+ # @param request [::Google::Cloud::AIPlatform::V1::CreatePipelineJobRequest, ::Hash]
656
+ # A request object representing the call parameters. Required. To specify no
657
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
658
+ # @param options [::Gapic::CallOptions, ::Hash]
659
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
660
+ #
661
+ # @overload create_pipeline_job(parent: nil, pipeline_job: nil, pipeline_job_id: nil)
662
+ # Pass arguments to `create_pipeline_job` via keyword arguments. Note that at
663
+ # least one keyword argument is required. To specify no parameters, or to keep all
664
+ # the default parameter values, pass an empty Hash as a request object (see above).
665
+ #
666
+ # @param parent [::String]
667
+ # Required. The resource name of the Location to create the PipelineJob in.
668
+ # Format: `projects/{project}/locations/{location}`
669
+ # @param pipeline_job [::Google::Cloud::AIPlatform::V1::PipelineJob, ::Hash]
670
+ # Required. The PipelineJob to create.
671
+ # @param pipeline_job_id [::String]
672
+ # The ID to use for the PipelineJob, which will become the final component of
673
+ # the PipelineJob name. If not provided, an ID will be automatically
674
+ # generated.
675
+ #
676
+ # This value should be less than 128 characters, and valid characters
677
+ # are /[a-z][0-9]-/.
678
+ #
679
+ # @yield [response, operation] Access the result along with the RPC operation
680
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::PipelineJob]
681
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
682
+ #
683
+ # @return [::Google::Cloud::AIPlatform::V1::PipelineJob]
684
+ #
685
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
686
+ #
687
+ # @example Basic example
688
+ # require "google/cloud/ai_platform/v1"
689
+ #
690
+ # # Create a client object. The client can be reused for multiple calls.
691
+ # client = Google::Cloud::AIPlatform::V1::PipelineService::Client.new
692
+ #
693
+ # # Create a request. To set request fields, pass in keyword arguments.
694
+ # request = Google::Cloud::AIPlatform::V1::CreatePipelineJobRequest.new
695
+ #
696
+ # # Call the create_pipeline_job method.
697
+ # result = client.create_pipeline_job request
698
+ #
699
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::PipelineJob.
700
+ # p result
701
+ #
702
+ def create_pipeline_job request, options = nil
703
+ raise ::ArgumentError, "request must be provided" if request.nil?
704
+
705
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreatePipelineJobRequest
706
+
707
+ # Converts hash and nil to an options object
708
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
709
+
710
+ # Customize the options with defaults
711
+ metadata = @config.rpcs.create_pipeline_job.metadata.to_h
712
+
713
+ # Set x-goog-api-client and x-goog-user-project headers
714
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
715
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
716
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
717
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
718
+
719
+ header_params = {}
720
+ if request.parent
721
+ header_params["parent"] = request.parent
722
+ end
723
+
724
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
725
+ metadata[:"x-goog-request-params"] ||= request_params_header
726
+
727
+ options.apply_defaults timeout: @config.rpcs.create_pipeline_job.timeout,
728
+ metadata: metadata,
729
+ retry_policy: @config.rpcs.create_pipeline_job.retry_policy
730
+
731
+ options.apply_defaults timeout: @config.timeout,
732
+ metadata: @config.metadata,
733
+ retry_policy: @config.retry_policy
734
+
735
+ @pipeline_service_stub.call_rpc :create_pipeline_job, request, options: options do |response, operation|
736
+ yield response, operation if block_given?
737
+ return response
738
+ end
739
+ rescue ::GRPC::BadStatus => e
740
+ raise ::Google::Cloud::Error.from_error(e)
741
+ end
742
+
743
+ ##
744
+ # Gets a PipelineJob.
745
+ #
746
+ # @overload get_pipeline_job(request, options = nil)
747
+ # Pass arguments to `get_pipeline_job` via a request object, either of type
748
+ # {::Google::Cloud::AIPlatform::V1::GetPipelineJobRequest} or an equivalent Hash.
749
+ #
750
+ # @param request [::Google::Cloud::AIPlatform::V1::GetPipelineJobRequest, ::Hash]
751
+ # A request object representing the call parameters. Required. To specify no
752
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
753
+ # @param options [::Gapic::CallOptions, ::Hash]
754
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
755
+ #
756
+ # @overload get_pipeline_job(name: nil)
757
+ # Pass arguments to `get_pipeline_job` via keyword arguments. Note that at
758
+ # least one keyword argument is required. To specify no parameters, or to keep all
759
+ # the default parameter values, pass an empty Hash as a request object (see above).
760
+ #
761
+ # @param name [::String]
762
+ # Required. The name of the PipelineJob resource.
763
+ # Format:
764
+ # `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
765
+ #
766
+ # @yield [response, operation] Access the result along with the RPC operation
767
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::PipelineJob]
768
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
769
+ #
770
+ # @return [::Google::Cloud::AIPlatform::V1::PipelineJob]
771
+ #
772
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
773
+ #
774
+ # @example Basic example
775
+ # require "google/cloud/ai_platform/v1"
776
+ #
777
+ # # Create a client object. The client can be reused for multiple calls.
778
+ # client = Google::Cloud::AIPlatform::V1::PipelineService::Client.new
779
+ #
780
+ # # Create a request. To set request fields, pass in keyword arguments.
781
+ # request = Google::Cloud::AIPlatform::V1::GetPipelineJobRequest.new
782
+ #
783
+ # # Call the get_pipeline_job method.
784
+ # result = client.get_pipeline_job request
785
+ #
786
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::PipelineJob.
787
+ # p result
788
+ #
789
+ def get_pipeline_job request, options = nil
790
+ raise ::ArgumentError, "request must be provided" if request.nil?
791
+
792
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetPipelineJobRequest
793
+
794
+ # Converts hash and nil to an options object
795
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
796
+
797
+ # Customize the options with defaults
798
+ metadata = @config.rpcs.get_pipeline_job.metadata.to_h
799
+
800
+ # Set x-goog-api-client and x-goog-user-project headers
801
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
802
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
803
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
804
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
805
+
806
+ header_params = {}
807
+ if request.name
808
+ header_params["name"] = request.name
809
+ end
810
+
811
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
812
+ metadata[:"x-goog-request-params"] ||= request_params_header
813
+
814
+ options.apply_defaults timeout: @config.rpcs.get_pipeline_job.timeout,
815
+ metadata: metadata,
816
+ retry_policy: @config.rpcs.get_pipeline_job.retry_policy
817
+
818
+ options.apply_defaults timeout: @config.timeout,
819
+ metadata: @config.metadata,
820
+ retry_policy: @config.retry_policy
821
+
822
+ @pipeline_service_stub.call_rpc :get_pipeline_job, request, options: options do |response, operation|
823
+ yield response, operation if block_given?
824
+ return response
825
+ end
826
+ rescue ::GRPC::BadStatus => e
827
+ raise ::Google::Cloud::Error.from_error(e)
828
+ end
829
+
830
+ ##
831
+ # Lists PipelineJobs in a Location.
832
+ #
833
+ # @overload list_pipeline_jobs(request, options = nil)
834
+ # Pass arguments to `list_pipeline_jobs` via a request object, either of type
835
+ # {::Google::Cloud::AIPlatform::V1::ListPipelineJobsRequest} or an equivalent Hash.
836
+ #
837
+ # @param request [::Google::Cloud::AIPlatform::V1::ListPipelineJobsRequest, ::Hash]
838
+ # A request object representing the call parameters. Required. To specify no
839
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
840
+ # @param options [::Gapic::CallOptions, ::Hash]
841
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
842
+ #
843
+ # @overload list_pipeline_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil)
844
+ # Pass arguments to `list_pipeline_jobs` via keyword arguments. Note that at
845
+ # least one keyword argument is required. To specify no parameters, or to keep all
846
+ # the default parameter values, pass an empty Hash as a request object (see above).
847
+ #
848
+ # @param parent [::String]
849
+ # Required. The resource name of the Location to list the PipelineJobs from.
850
+ # Format: `projects/{project}/locations/{location}`
851
+ # @param filter [::String]
852
+ # Lists the PipelineJobs that match the filter expression. The following
853
+ # fields are supported:
854
+ #
855
+ # * `pipeline_name`: Supports `=` and `!=` comparisons.
856
+ # * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard.
857
+ # * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard.
858
+ # for example, can check if pipeline's display_name contains *step* by doing
859
+ # display_name:\"*step*\"
860
+ # * `state`: Supports `=` and `!=` comparisons.
861
+ # * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
862
+ # Values must be in RFC 3339 format.
863
+ # * `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
864
+ # Values must be in RFC 3339 format.
865
+ # * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
866
+ # Values must be in RFC 3339 format.
867
+ # * `labels`: Supports key-value equality and key presence.
868
+ #
869
+ # Filter expressions can be combined together using logical operators
870
+ # (`AND` & `OR`).
871
+ # For example: `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z"`.
872
+ #
873
+ # The syntax to define filter expression is based on
874
+ # https://google.aip.dev/160.
875
+ #
876
+ # Examples:
877
+ #
878
+ # * `create_time>"2021-05-18T00:00:00Z" OR
879
+ # update_time>"2020-05-18T00:00:00Z"` PipelineJobs created or updated
880
+ # after 2020-05-18 00:00:00 UTC.
881
+ # * `labels.env = "prod"`
882
+ # PipelineJobs with label "env" set to "prod".
883
+ # @param page_size [::Integer]
884
+ # The standard list page size.
885
+ # @param page_token [::String]
886
+ # The standard list page token.
887
+ # Typically obtained via
888
+ # {::Google::Cloud::AIPlatform::V1::ListPipelineJobsResponse#next_page_token ListPipelineJobsResponse.next_page_token} of the previous
889
+ # {::Google::Cloud::AIPlatform::V1::PipelineService::Client#list_pipeline_jobs PipelineService.ListPipelineJobs} call.
890
+ # @param order_by [::String]
891
+ # A comma-separated list of fields to order by. The default sort order is in
892
+ # ascending order. Use "desc" after a field name for descending. You can have
893
+ # multiple order_by fields provided e.g. "create_time desc, end_time",
894
+ # "end_time, start_time, update_time" For example, using "create_time desc,
895
+ # end_time" will order results by create time in descending order, and if
896
+ # there are multiple jobs having the same create time, order them by the end
897
+ # time in ascending order. if order_by is not specified, it will order by
898
+ # default order is create time in descending order. Supported fields:
899
+ # * `create_time`
900
+ # * `update_time`
901
+ # * `end_time`
902
+ # * `start_time`
903
+ #
904
+ # @yield [response, operation] Access the result along with the RPC operation
905
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::PipelineJob>]
906
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
907
+ #
908
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::PipelineJob>]
909
+ #
910
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
911
+ #
912
+ # @example Basic example
913
+ # require "google/cloud/ai_platform/v1"
914
+ #
915
+ # # Create a client object. The client can be reused for multiple calls.
916
+ # client = Google::Cloud::AIPlatform::V1::PipelineService::Client.new
917
+ #
918
+ # # Create a request. To set request fields, pass in keyword arguments.
919
+ # request = Google::Cloud::AIPlatform::V1::ListPipelineJobsRequest.new
920
+ #
921
+ # # Call the list_pipeline_jobs method.
922
+ # result = client.list_pipeline_jobs request
923
+ #
924
+ # # The returned object is of type Gapic::PagedEnumerable. You can
925
+ # # iterate over all elements by calling #each, and the enumerable
926
+ # # will lazily make API calls to fetch subsequent pages. Other
927
+ # # methods are also available for managing paging directly.
928
+ # result.each do |response|
929
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::PipelineJob.
930
+ # p response
931
+ # end
932
+ #
933
+ def list_pipeline_jobs request, options = nil
934
+ raise ::ArgumentError, "request must be provided" if request.nil?
935
+
936
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListPipelineJobsRequest
937
+
938
+ # Converts hash and nil to an options object
939
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
940
+
941
+ # Customize the options with defaults
942
+ metadata = @config.rpcs.list_pipeline_jobs.metadata.to_h
943
+
944
+ # Set x-goog-api-client and x-goog-user-project headers
945
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
946
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
947
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
948
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
949
+
950
+ header_params = {}
951
+ if request.parent
952
+ header_params["parent"] = request.parent
953
+ end
954
+
955
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
956
+ metadata[:"x-goog-request-params"] ||= request_params_header
957
+
958
+ options.apply_defaults timeout: @config.rpcs.list_pipeline_jobs.timeout,
959
+ metadata: metadata,
960
+ retry_policy: @config.rpcs.list_pipeline_jobs.retry_policy
961
+
962
+ options.apply_defaults timeout: @config.timeout,
963
+ metadata: @config.metadata,
964
+ retry_policy: @config.retry_policy
965
+
966
+ @pipeline_service_stub.call_rpc :list_pipeline_jobs, request, options: options do |response, operation|
967
+ response = ::Gapic::PagedEnumerable.new @pipeline_service_stub, :list_pipeline_jobs, request, response, operation, options
968
+ yield response, operation if block_given?
969
+ return response
970
+ end
971
+ rescue ::GRPC::BadStatus => e
972
+ raise ::Google::Cloud::Error.from_error(e)
973
+ end
974
+
975
+ ##
976
+ # Deletes a PipelineJob.
977
+ #
978
+ # @overload delete_pipeline_job(request, options = nil)
979
+ # Pass arguments to `delete_pipeline_job` via a request object, either of type
980
+ # {::Google::Cloud::AIPlatform::V1::DeletePipelineJobRequest} or an equivalent Hash.
981
+ #
982
+ # @param request [::Google::Cloud::AIPlatform::V1::DeletePipelineJobRequest, ::Hash]
983
+ # A request object representing the call parameters. Required. To specify no
984
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
985
+ # @param options [::Gapic::CallOptions, ::Hash]
986
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
987
+ #
988
+ # @overload delete_pipeline_job(name: nil)
989
+ # Pass arguments to `delete_pipeline_job` via keyword arguments. Note that at
990
+ # least one keyword argument is required. To specify no parameters, or to keep all
991
+ # the default parameter values, pass an empty Hash as a request object (see above).
992
+ #
993
+ # @param name [::String]
994
+ # Required. The name of the PipelineJob resource to be deleted.
995
+ # Format:
996
+ # `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
997
+ #
998
+ # @yield [response, operation] Access the result along with the RPC operation
999
+ # @yieldparam response [::Gapic::Operation]
1000
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1001
+ #
1002
+ # @return [::Gapic::Operation]
1003
+ #
1004
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1005
+ #
1006
+ # @example Basic example
1007
+ # require "google/cloud/ai_platform/v1"
1008
+ #
1009
+ # # Create a client object. The client can be reused for multiple calls.
1010
+ # client = Google::Cloud::AIPlatform::V1::PipelineService::Client.new
1011
+ #
1012
+ # # Create a request. To set request fields, pass in keyword arguments.
1013
+ # request = Google::Cloud::AIPlatform::V1::DeletePipelineJobRequest.new
1014
+ #
1015
+ # # Call the delete_pipeline_job method.
1016
+ # result = client.delete_pipeline_job request
1017
+ #
1018
+ # # The returned object is of type Gapic::Operation. You can use this
1019
+ # # object to check the status of an operation, cancel it, or wait
1020
+ # # for results. Here is how to block until completion:
1021
+ # result.wait_until_done! timeout: 60
1022
+ # if result.response?
1023
+ # p result.response
1024
+ # else
1025
+ # puts "Error!"
1026
+ # end
1027
+ #
1028
+ def delete_pipeline_job request, options = nil
1029
+ raise ::ArgumentError, "request must be provided" if request.nil?
1030
+
1031
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeletePipelineJobRequest
1032
+
1033
+ # Converts hash and nil to an options object
1034
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1035
+
1036
+ # Customize the options with defaults
1037
+ metadata = @config.rpcs.delete_pipeline_job.metadata.to_h
1038
+
1039
+ # Set x-goog-api-client and x-goog-user-project headers
1040
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1041
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1042
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1043
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1044
+
1045
+ header_params = {}
1046
+ if request.name
1047
+ header_params["name"] = request.name
1048
+ end
1049
+
1050
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1051
+ metadata[:"x-goog-request-params"] ||= request_params_header
1052
+
1053
+ options.apply_defaults timeout: @config.rpcs.delete_pipeline_job.timeout,
1054
+ metadata: metadata,
1055
+ retry_policy: @config.rpcs.delete_pipeline_job.retry_policy
1056
+
1057
+ options.apply_defaults timeout: @config.timeout,
1058
+ metadata: @config.metadata,
1059
+ retry_policy: @config.retry_policy
1060
+
1061
+ @pipeline_service_stub.call_rpc :delete_pipeline_job, request, options: options do |response, operation|
1062
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1063
+ yield response, operation if block_given?
1064
+ return response
1065
+ end
1066
+ rescue ::GRPC::BadStatus => e
1067
+ raise ::Google::Cloud::Error.from_error(e)
1068
+ end
1069
+
1070
+ ##
1071
+ # Cancels a PipelineJob.
1072
+ # Starts asynchronous cancellation on the PipelineJob. The server
1073
+ # makes a best effort to cancel the pipeline, but success is not
1074
+ # guaranteed. Clients can use {::Google::Cloud::AIPlatform::V1::PipelineService::Client#get_pipeline_job PipelineService.GetPipelineJob} or
1075
+ # other methods to check whether the cancellation succeeded or whether the
1076
+ # pipeline completed despite cancellation. On successful cancellation,
1077
+ # the PipelineJob is not deleted; instead it becomes a pipeline with
1078
+ # a {::Google::Cloud::AIPlatform::V1::PipelineJob#error PipelineJob.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
1079
+ # corresponding to `Code.CANCELLED`, and {::Google::Cloud::AIPlatform::V1::PipelineJob#state PipelineJob.state} is set to
1080
+ # `CANCELLED`.
1081
+ #
1082
+ # @overload cancel_pipeline_job(request, options = nil)
1083
+ # Pass arguments to `cancel_pipeline_job` via a request object, either of type
1084
+ # {::Google::Cloud::AIPlatform::V1::CancelPipelineJobRequest} or an equivalent Hash.
1085
+ #
1086
+ # @param request [::Google::Cloud::AIPlatform::V1::CancelPipelineJobRequest, ::Hash]
1087
+ # A request object representing the call parameters. Required. To specify no
1088
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1089
+ # @param options [::Gapic::CallOptions, ::Hash]
1090
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1091
+ #
1092
+ # @overload cancel_pipeline_job(name: nil)
1093
+ # Pass arguments to `cancel_pipeline_job` via keyword arguments. Note that at
1094
+ # least one keyword argument is required. To specify no parameters, or to keep all
1095
+ # the default parameter values, pass an empty Hash as a request object (see above).
1096
+ #
1097
+ # @param name [::String]
1098
+ # Required. The name of the PipelineJob to cancel.
1099
+ # Format:
1100
+ # `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
1101
+ #
1102
+ # @yield [response, operation] Access the result along with the RPC operation
1103
+ # @yieldparam response [::Google::Protobuf::Empty]
1104
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1105
+ #
1106
+ # @return [::Google::Protobuf::Empty]
1107
+ #
1108
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1109
+ #
1110
+ # @example Basic example
1111
+ # require "google/cloud/ai_platform/v1"
1112
+ #
1113
+ # # Create a client object. The client can be reused for multiple calls.
1114
+ # client = Google::Cloud::AIPlatform::V1::PipelineService::Client.new
1115
+ #
1116
+ # # Create a request. To set request fields, pass in keyword arguments.
1117
+ # request = Google::Cloud::AIPlatform::V1::CancelPipelineJobRequest.new
1118
+ #
1119
+ # # Call the cancel_pipeline_job method.
1120
+ # result = client.cancel_pipeline_job request
1121
+ #
1122
+ # # The returned object is of type Google::Protobuf::Empty.
1123
+ # p result
1124
+ #
1125
+ def cancel_pipeline_job request, options = nil
1126
+ raise ::ArgumentError, "request must be provided" if request.nil?
1127
+
1128
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CancelPipelineJobRequest
1129
+
1130
+ # Converts hash and nil to an options object
1131
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1132
+
1133
+ # Customize the options with defaults
1134
+ metadata = @config.rpcs.cancel_pipeline_job.metadata.to_h
1135
+
1136
+ # Set x-goog-api-client and x-goog-user-project headers
1137
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1138
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1139
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1140
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1141
+
1142
+ header_params = {}
1143
+ if request.name
1144
+ header_params["name"] = request.name
1145
+ end
1146
+
1147
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1148
+ metadata[:"x-goog-request-params"] ||= request_params_header
1149
+
1150
+ options.apply_defaults timeout: @config.rpcs.cancel_pipeline_job.timeout,
1151
+ metadata: metadata,
1152
+ retry_policy: @config.rpcs.cancel_pipeline_job.retry_policy
1153
+
1154
+ options.apply_defaults timeout: @config.timeout,
1155
+ metadata: @config.metadata,
1156
+ retry_policy: @config.retry_policy
1157
+
1158
+ @pipeline_service_stub.call_rpc :cancel_pipeline_job, request, options: options do |response, operation|
1159
+ yield response, operation if block_given?
1160
+ return response
1161
+ end
1162
+ rescue ::GRPC::BadStatus => e
1163
+ raise ::Google::Cloud::Error.from_error(e)
1164
+ end
1165
+
1166
+ ##
1167
+ # Configuration class for the PipelineService API.
1168
+ #
1169
+ # This class represents the configuration for PipelineService,
1170
+ # providing control over timeouts, retry behavior, logging, transport
1171
+ # parameters, and other low-level controls. Certain parameters can also be
1172
+ # applied individually to specific RPCs. See
1173
+ # {::Google::Cloud::AIPlatform::V1::PipelineService::Client::Configuration::Rpcs}
1174
+ # for a list of RPCs that can be configured independently.
1175
+ #
1176
+ # Configuration can be applied globally to all clients, or to a single client
1177
+ # on construction.
1178
+ #
1179
+ # @example
1180
+ #
1181
+ # # Modify the global config, setting the timeout for
1182
+ # # create_training_pipeline to 20 seconds,
1183
+ # # and all remaining timeouts to 10 seconds.
1184
+ # ::Google::Cloud::AIPlatform::V1::PipelineService::Client.configure do |config|
1185
+ # config.timeout = 10.0
1186
+ # config.rpcs.create_training_pipeline.timeout = 20.0
1187
+ # end
1188
+ #
1189
+ # # Apply the above configuration only to a new client.
1190
+ # client = ::Google::Cloud::AIPlatform::V1::PipelineService::Client.new do |config|
1191
+ # config.timeout = 10.0
1192
+ # config.rpcs.create_training_pipeline.timeout = 20.0
1193
+ # end
1194
+ #
1195
+ # @!attribute [rw] endpoint
1196
+ # The hostname or hostname:port of the service endpoint.
1197
+ # Defaults to `"aiplatform.googleapis.com"`.
1198
+ # @return [::String]
1199
+ # @!attribute [rw] credentials
1200
+ # Credentials to send with calls. You may provide any of the following types:
1201
+ # * (`String`) The path to a service account key file in JSON format
1202
+ # * (`Hash`) A service account key as a Hash
1203
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
1204
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1205
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1206
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1207
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1208
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1209
+ # * (`nil`) indicating no credentials
1210
+ # @return [::Object]
1211
+ # @!attribute [rw] scope
1212
+ # The OAuth scopes
1213
+ # @return [::Array<::String>]
1214
+ # @!attribute [rw] lib_name
1215
+ # The library name as recorded in instrumentation and logging
1216
+ # @return [::String]
1217
+ # @!attribute [rw] lib_version
1218
+ # The library version as recorded in instrumentation and logging
1219
+ # @return [::String]
1220
+ # @!attribute [rw] channel_args
1221
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1222
+ # `GRPC::Core::Channel` object is provided as the credential.
1223
+ # @return [::Hash]
1224
+ # @!attribute [rw] interceptors
1225
+ # An array of interceptors that are run before calls are executed.
1226
+ # @return [::Array<::GRPC::ClientInterceptor>]
1227
+ # @!attribute [rw] timeout
1228
+ # The call timeout in seconds.
1229
+ # @return [::Numeric]
1230
+ # @!attribute [rw] metadata
1231
+ # Additional gRPC headers to be sent with the call.
1232
+ # @return [::Hash{::Symbol=>::String}]
1233
+ # @!attribute [rw] retry_policy
1234
+ # The retry policy. The value is a hash with the following keys:
1235
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1236
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1237
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1238
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1239
+ # trigger a retry.
1240
+ # @return [::Hash]
1241
+ # @!attribute [rw] quota_project
1242
+ # A separate project against which to charge quota.
1243
+ # @return [::String]
1244
+ #
1245
+ class Configuration
1246
+ extend ::Gapic::Config
1247
+
1248
+ config_attr :endpoint, "aiplatform.googleapis.com", ::String
1249
+ config_attr :credentials, nil do |value|
1250
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1251
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1252
+ allowed.any? { |klass| klass === value }
1253
+ end
1254
+ config_attr :scope, nil, ::String, ::Array, nil
1255
+ config_attr :lib_name, nil, ::String, nil
1256
+ config_attr :lib_version, nil, ::String, nil
1257
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
1258
+ config_attr :interceptors, nil, ::Array, nil
1259
+ config_attr :timeout, nil, ::Numeric, nil
1260
+ config_attr :metadata, nil, ::Hash, nil
1261
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1262
+ config_attr :quota_project, nil, ::String, nil
1263
+
1264
+ # @private
1265
+ def initialize parent_config = nil
1266
+ @parent_config = parent_config unless parent_config.nil?
1267
+
1268
+ yield self if block_given?
1269
+ end
1270
+
1271
+ ##
1272
+ # Configurations for individual RPCs
1273
+ # @return [Rpcs]
1274
+ #
1275
+ def rpcs
1276
+ @rpcs ||= begin
1277
+ parent_rpcs = nil
1278
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1279
+ Rpcs.new parent_rpcs
1280
+ end
1281
+ end
1282
+
1283
+ ##
1284
+ # Configuration RPC class for the PipelineService API.
1285
+ #
1286
+ # Includes fields providing the configuration for each RPC in this service.
1287
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1288
+ # the following configuration fields:
1289
+ #
1290
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1291
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1292
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1293
+ # include the following keys:
1294
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1295
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1296
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1297
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1298
+ # trigger a retry.
1299
+ #
1300
+ class Rpcs
1301
+ ##
1302
+ # RPC-specific configuration for `create_training_pipeline`
1303
+ # @return [::Gapic::Config::Method]
1304
+ #
1305
+ attr_reader :create_training_pipeline
1306
+ ##
1307
+ # RPC-specific configuration for `get_training_pipeline`
1308
+ # @return [::Gapic::Config::Method]
1309
+ #
1310
+ attr_reader :get_training_pipeline
1311
+ ##
1312
+ # RPC-specific configuration for `list_training_pipelines`
1313
+ # @return [::Gapic::Config::Method]
1314
+ #
1315
+ attr_reader :list_training_pipelines
1316
+ ##
1317
+ # RPC-specific configuration for `delete_training_pipeline`
1318
+ # @return [::Gapic::Config::Method]
1319
+ #
1320
+ attr_reader :delete_training_pipeline
1321
+ ##
1322
+ # RPC-specific configuration for `cancel_training_pipeline`
1323
+ # @return [::Gapic::Config::Method]
1324
+ #
1325
+ attr_reader :cancel_training_pipeline
1326
+ ##
1327
+ # RPC-specific configuration for `create_pipeline_job`
1328
+ # @return [::Gapic::Config::Method]
1329
+ #
1330
+ attr_reader :create_pipeline_job
1331
+ ##
1332
+ # RPC-specific configuration for `get_pipeline_job`
1333
+ # @return [::Gapic::Config::Method]
1334
+ #
1335
+ attr_reader :get_pipeline_job
1336
+ ##
1337
+ # RPC-specific configuration for `list_pipeline_jobs`
1338
+ # @return [::Gapic::Config::Method]
1339
+ #
1340
+ attr_reader :list_pipeline_jobs
1341
+ ##
1342
+ # RPC-specific configuration for `delete_pipeline_job`
1343
+ # @return [::Gapic::Config::Method]
1344
+ #
1345
+ attr_reader :delete_pipeline_job
1346
+ ##
1347
+ # RPC-specific configuration for `cancel_pipeline_job`
1348
+ # @return [::Gapic::Config::Method]
1349
+ #
1350
+ attr_reader :cancel_pipeline_job
1351
+
1352
+ # @private
1353
+ def initialize parent_rpcs = nil
1354
+ create_training_pipeline_config = parent_rpcs.create_training_pipeline if parent_rpcs.respond_to? :create_training_pipeline
1355
+ @create_training_pipeline = ::Gapic::Config::Method.new create_training_pipeline_config
1356
+ get_training_pipeline_config = parent_rpcs.get_training_pipeline if parent_rpcs.respond_to? :get_training_pipeline
1357
+ @get_training_pipeline = ::Gapic::Config::Method.new get_training_pipeline_config
1358
+ list_training_pipelines_config = parent_rpcs.list_training_pipelines if parent_rpcs.respond_to? :list_training_pipelines
1359
+ @list_training_pipelines = ::Gapic::Config::Method.new list_training_pipelines_config
1360
+ delete_training_pipeline_config = parent_rpcs.delete_training_pipeline if parent_rpcs.respond_to? :delete_training_pipeline
1361
+ @delete_training_pipeline = ::Gapic::Config::Method.new delete_training_pipeline_config
1362
+ cancel_training_pipeline_config = parent_rpcs.cancel_training_pipeline if parent_rpcs.respond_to? :cancel_training_pipeline
1363
+ @cancel_training_pipeline = ::Gapic::Config::Method.new cancel_training_pipeline_config
1364
+ create_pipeline_job_config = parent_rpcs.create_pipeline_job if parent_rpcs.respond_to? :create_pipeline_job
1365
+ @create_pipeline_job = ::Gapic::Config::Method.new create_pipeline_job_config
1366
+ get_pipeline_job_config = parent_rpcs.get_pipeline_job if parent_rpcs.respond_to? :get_pipeline_job
1367
+ @get_pipeline_job = ::Gapic::Config::Method.new get_pipeline_job_config
1368
+ list_pipeline_jobs_config = parent_rpcs.list_pipeline_jobs if parent_rpcs.respond_to? :list_pipeline_jobs
1369
+ @list_pipeline_jobs = ::Gapic::Config::Method.new list_pipeline_jobs_config
1370
+ delete_pipeline_job_config = parent_rpcs.delete_pipeline_job if parent_rpcs.respond_to? :delete_pipeline_job
1371
+ @delete_pipeline_job = ::Gapic::Config::Method.new delete_pipeline_job_config
1372
+ cancel_pipeline_job_config = parent_rpcs.cancel_pipeline_job if parent_rpcs.respond_to? :cancel_pipeline_job
1373
+ @cancel_pipeline_job = ::Gapic::Config::Method.new cancel_pipeline_job_config
1374
+
1375
+ yield self if block_given?
1376
+ end
1377
+ end
1378
+ end
1379
+ end
1380
+ end
1381
+ end
1382
+ end
1383
+ end
1384
+ end