google-cloud-ai_platform-v1 0.1.0

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