google-cloud-ai_platform-v1 0.39.0 → 0.41.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 (221) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/bindings_override.rb +399 -0
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +138 -18
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +13 -5
  5. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +2280 -0
  6. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +3971 -0
  7. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb +1196 -0
  8. data/lib/google/cloud/ai_platform/v1/dataset_service/rest.rb +54 -0
  9. data/lib/google/cloud/ai_platform/v1/dataset_service.rb +6 -0
  10. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +13 -5
  11. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +13 -5
  12. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/client.rb +851 -0
  13. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +3971 -0
  14. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/service_stub.rb +365 -0
  15. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest.rb +54 -0
  16. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service.rb +6 -0
  17. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +19 -8
  18. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +13 -5
  19. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +1215 -0
  20. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +3971 -0
  21. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/service_stub.rb +546 -0
  22. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest.rb +54 -0
  23. data/lib/google/cloud/ai_platform/v1/endpoint_service.rb +6 -0
  24. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +29 -13
  25. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +13 -5
  26. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +1732 -0
  27. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +3971 -0
  28. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/service_stub.rb +841 -0
  29. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest.rb +55 -0
  30. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service.rb +6 -0
  31. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +7 -2
  32. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/client.rb +534 -0
  33. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/service_stub.rb +189 -0
  34. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest.rb +53 -0
  35. data/lib/google/cloud/ai_platform/v1/feature_online_store_service.rb +6 -0
  36. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +24 -11
  37. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +13 -5
  38. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +1450 -0
  39. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +3971 -0
  40. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/service_stub.rb +663 -0
  41. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest.rb +55 -0
  42. data/lib/google/cloud/ai_platform/v1/feature_registry_service.rb +6 -0
  43. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +9 -3
  44. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/client.rb +645 -0
  45. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/service_stub.rb +244 -0
  46. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest.rb +53 -0
  47. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service.rb +6 -0
  48. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +45 -21
  49. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +13 -5
  50. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/client.rb +2765 -0
  51. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +3971 -0
  52. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/service_stub.rb +1319 -0
  53. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest.rb +54 -0
  54. data/lib/google/cloud/ai_platform/v1/featurestore_service.rb +6 -0
  55. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +11 -4
  56. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +720 -0
  57. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/service_stub.rb +307 -0
  58. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest.rb +53 -0
  59. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service.rb +6 -0
  60. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +19 -8
  61. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +13 -5
  62. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +1151 -0
  63. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +3971 -0
  64. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/service_stub.rb +546 -0
  65. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest.rb +54 -0
  66. data/lib/google/cloud/ai_platform/v1/index_endpoint_service.rb +6 -0
  67. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +17 -7
  68. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +13 -5
  69. data/lib/google/cloud/ai_platform/v1/index_service/rest/client.rb +1034 -0
  70. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +3971 -0
  71. data/lib/google/cloud/ai_platform/v1/index_service/rest/service_stub.rb +486 -0
  72. data/lib/google/cloud/ai_platform/v1/index_service/rest.rb +54 -0
  73. data/lib/google/cloud/ai_platform/v1/index_service.rb +6 -0
  74. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +73 -35
  75. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +13 -5
  76. data/lib/google/cloud/ai_platform/v1/job_service/rest/client.rb +3841 -0
  77. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +3971 -0
  78. data/lib/google/cloud/ai_platform/v1/job_service/rest/service_stub.rb +2149 -0
  79. data/lib/google/cloud/ai_platform/v1/job_service/rest.rb +54 -0
  80. data/lib/google/cloud/ai_platform/v1/job_service.rb +6 -0
  81. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +7 -2
  82. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +533 -0
  83. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/service_stub.rb +205 -0
  84. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest.rb +53 -0
  85. data/lib/google/cloud/ai_platform/v1/llm_utility_service.rb +6 -0
  86. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +7 -2
  87. data/lib/google/cloud/ai_platform/v1/match_service/rest/client.rb +541 -0
  88. data/lib/google/cloud/ai_platform/v1/match_service/rest/service_stub.rb +189 -0
  89. data/lib/google/cloud/ai_platform/v1/match_service/rest.rb +54 -0
  90. data/lib/google/cloud/ai_platform/v1/match_service.rb +6 -0
  91. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +67 -32
  92. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +13 -5
  93. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/client.rb +3634 -0
  94. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +3971 -0
  95. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/service_stub.rb +1972 -0
  96. data/lib/google/cloud/ai_platform/v1/metadata_service/rest.rb +54 -0
  97. data/lib/google/cloud/ai_platform/v1/metadata_service.rb +6 -0
  98. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +7 -2
  99. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +13 -5
  100. data/lib/google/cloud/ai_platform/v1/migration_service/rest/client.rb +574 -0
  101. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +3971 -0
  102. data/lib/google/cloud/ai_platform/v1/migration_service/rest/service_stub.rb +189 -0
  103. data/lib/google/cloud/ai_platform/v1/migration_service/rest.rb +55 -0
  104. data/lib/google/cloud/ai_platform/v1/migration_service.rb +6 -0
  105. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +5 -1
  106. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +438 -0
  107. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/service_stub.rb +128 -0
  108. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest.rb +53 -0
  109. data/lib/google/cloud/ai_platform/v1/model_garden_service.rb +6 -0
  110. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +39 -18
  111. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +13 -5
  112. data/lib/google/cloud/ai_platform/v1/model_service/rest/client.rb +2213 -0
  113. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +3971 -0
  114. data/lib/google/cloud/ai_platform/v1/model_service/rest/service_stub.rb +1140 -0
  115. data/lib/google/cloud/ai_platform/v1/model_service/rest.rb +54 -0
  116. data/lib/google/cloud/ai_platform/v1/model_service.rb +6 -0
  117. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +123 -10
  118. data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +13 -5
  119. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +1503 -0
  120. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +3971 -0
  121. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +723 -0
  122. data/lib/google/cloud/ai_platform/v1/notebook_service/rest.rb +54 -0
  123. data/lib/google/cloud/ai_platform/v1/notebook_service.rb +6 -0
  124. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +15 -6
  125. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +13 -5
  126. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +942 -0
  127. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +3971 -0
  128. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/service_stub.rb +426 -0
  129. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest.rb +54 -0
  130. data/lib/google/cloud/ai_platform/v1/persistent_resource_service.rb +6 -0
  131. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +27 -12
  132. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +13 -5
  133. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/client.rb +1600 -0
  134. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +3971 -0
  135. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/service_stub.rb +783 -0
  136. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest.rb +56 -0
  137. data/lib/google/cloud/ai_platform/v1/pipeline_service.rb +6 -0
  138. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +37 -15
  139. data/lib/google/cloud/ai_platform/v1/prediction_service/credentials.rb +2 -1
  140. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +1303 -0
  141. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +658 -0
  142. data/lib/google/cloud/ai_platform/v1/prediction_service/rest.rb +53 -0
  143. data/lib/google/cloud/ai_platform/v1/prediction_service.rb +6 -0
  144. data/lib/google/cloud/ai_platform/v1/rest.rb +63 -0
  145. data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +17 -7
  146. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +13 -5
  147. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +1076 -0
  148. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +3971 -0
  149. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/service_stub.rb +486 -0
  150. data/lib/google/cloud/ai_platform/v1/schedule_service/rest.rb +55 -0
  151. data/lib/google/cloud/ai_platform/v1/schedule_service.rb +6 -0
  152. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +13 -5
  153. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +13 -5
  154. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/client.rb +847 -0
  155. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +3971 -0
  156. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/service_stub.rb +366 -0
  157. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest.rb +59 -0
  158. data/lib/google/cloud/ai_platform/v1/specialist_pool_service.rb +6 -0
  159. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +63 -30
  160. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +13 -5
  161. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/client.rb +3274 -0
  162. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +3971 -0
  163. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/service_stub.rb +1847 -0
  164. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest.rb +54 -0
  165. data/lib/google/cloud/ai_platform/v1/tensorboard_service.rb +6 -0
  166. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  167. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +33 -15
  168. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +13 -5
  169. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/client.rb +1788 -0
  170. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +3971 -0
  171. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/service_stub.rb +963 -0
  172. data/lib/google/cloud/ai_platform/v1/vizier_service/rest.rb +58 -0
  173. data/lib/google/cloud/ai_platform/v1/vizier_service.rb +6 -0
  174. data/lib/google/cloud/ai_platform/v1.rb +6 -1
  175. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
  176. data/lib/google/cloud/aiplatform/v1/content_pb.rb +4 -4
  177. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +1 -1
  178. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +3 -2
  179. data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
  180. data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +1 -1
  181. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb +3 -1
  182. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +3 -1
  183. data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +3 -1
  184. data/lib/google/cloud/aiplatform/v1/feature_pb.rb +1 -1
  185. data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +3 -1
  186. data/lib/google/cloud/aiplatform/v1/index_pb.rb +2 -1
  187. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -1
  188. data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +2 -1
  189. data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +2 -1
  190. data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +3 -1
  191. data/lib/google/cloud/aiplatform/v1/notebook_service_pb.rb +2 -1
  192. data/lib/google/cloud/aiplatform/v1/notebook_service_services_pb.rb +2 -0
  193. data/lib/google/cloud/aiplatform/v1/persistent_resource_pb.rb +2 -1
  194. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  195. data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +1 -1
  196. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +4 -1
  197. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
  198. data/proto_docs/google/cloud/aiplatform/v1/content.rb +26 -48
  199. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -0
  200. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +17 -0
  201. data/proto_docs/google/cloud/aiplatform/v1/dataset_version.rb +4 -0
  202. data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb +23 -0
  203. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +7 -0
  204. data/proto_docs/google/cloud/aiplatform/v1/feature.rb +3 -0
  205. data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +3 -3
  206. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +4 -0
  207. data/proto_docs/google/cloud/aiplatform/v1/feature_registry_service.rb +1 -1
  208. data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +24 -0
  209. data/proto_docs/google/cloud/aiplatform/v1/index.rb +23 -3
  210. data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +20 -2
  211. data/proto_docs/google/cloud/aiplatform/v1/match_service.rb +18 -1
  212. data/proto_docs/google/cloud/aiplatform/v1/metadata_store.rb +13 -0
  213. data/proto_docs/google/cloud/aiplatform/v1/model.rb +1 -1
  214. data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +17 -2
  215. data/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb +18 -0
  216. data/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb +63 -0
  217. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +4 -0
  218. data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +4 -0
  219. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +43 -5
  220. data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +8 -7
  221. metadata +101 -2
@@ -0,0 +1,1503 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/notebook_service_pb"
21
+ require "google/cloud/ai_platform/v1/notebook_service/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+ require "google/iam/v1/rest"
24
+
25
+ module Google
26
+ module Cloud
27
+ module AIPlatform
28
+ module V1
29
+ module NotebookService
30
+ module Rest
31
+ ##
32
+ # REST client for the NotebookService service.
33
+ #
34
+ # The interface for Vertex Notebook service (a.k.a. Colab on Workbench).
35
+ #
36
+ class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
40
+ # @private
41
+ DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
42
+
43
+ include Paths
44
+
45
+ # @private
46
+ attr_reader :notebook_service_stub
47
+
48
+ ##
49
+ # Configure the NotebookService Client class.
50
+ #
51
+ # See {::Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client::Configuration}
52
+ # for a description of the configuration fields.
53
+ #
54
+ # @example
55
+ #
56
+ # # Modify the configuration for all NotebookService clients
57
+ # ::Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.configure do |config|
58
+ # config.timeout = 10.0
59
+ # end
60
+ #
61
+ # @yield [config] Configure the Client client.
62
+ # @yieldparam config [Client::Configuration]
63
+ #
64
+ # @return [Client::Configuration]
65
+ #
66
+ def self.configure
67
+ @configure ||= begin
68
+ namespace = ["Google", "Cloud", "AIPlatform", "V1"]
69
+ parent_config = while namespace.any?
70
+ parent_name = namespace.join "::"
71
+ parent_const = const_get parent_name
72
+ break parent_const.configure if parent_const.respond_to? :configure
73
+ namespace.pop
74
+ end
75
+ default_config = Client::Configuration.new parent_config
76
+
77
+ default_config
78
+ end
79
+ yield @configure if block_given?
80
+ @configure
81
+ end
82
+
83
+ ##
84
+ # Configure the NotebookService Client instance.
85
+ #
86
+ # The configuration is set to the derived mode, meaning that values can be changed,
87
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
88
+ # should be made on {Client.configure}.
89
+ #
90
+ # See {::Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client::Configuration}
91
+ # for a description of the configuration fields.
92
+ #
93
+ # @yield [config] Configure the Client client.
94
+ # @yieldparam config [Client::Configuration]
95
+ #
96
+ # @return [Client::Configuration]
97
+ #
98
+ def configure
99
+ yield @config if block_given?
100
+ @config
101
+ end
102
+
103
+ ##
104
+ # The effective universe domain
105
+ #
106
+ # @return [String]
107
+ #
108
+ def universe_domain
109
+ @notebook_service_stub.universe_domain
110
+ end
111
+
112
+ ##
113
+ # Create a new NotebookService REST client object.
114
+ #
115
+ # @example
116
+ #
117
+ # # Create a client using the default configuration
118
+ # client = ::Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new
119
+ #
120
+ # # Create a client using a custom configuration
121
+ # client = ::Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new do |config|
122
+ # config.timeout = 10.0
123
+ # end
124
+ #
125
+ # @yield [config] Configure the NotebookService client.
126
+ # @yieldparam config [Client::Configuration]
127
+ #
128
+ def initialize
129
+ # Create the configuration object
130
+ @config = Configuration.new Client.configure
131
+
132
+ # Yield the configuration if needed
133
+ yield @config if block_given?
134
+
135
+ # Create credentials
136
+ credentials = @config.credentials
137
+ # Use self-signed JWT if the endpoint is unchanged from default,
138
+ # but only if the default endpoint does not have a region prefix.
139
+ enable_self_signed_jwt = @config.endpoint.nil? ||
140
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
141
+ !@config.endpoint.split(".").first.include?("-"))
142
+ credentials ||= Credentials.default scope: @config.scope,
143
+ enable_self_signed_jwt: enable_self_signed_jwt
144
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
145
+ credentials = Credentials.new credentials, scope: @config.scope
146
+ end
147
+
148
+ @quota_project_id = @config.quota_project
149
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
150
+
151
+ @operations_client = ::Google::Cloud::AIPlatform::V1::NotebookService::Rest::Operations.new do |config|
152
+ config.credentials = credentials
153
+ config.quota_project = @quota_project_id
154
+ config.endpoint = @config.endpoint
155
+ config.universe_domain = @config.universe_domain
156
+ end
157
+
158
+ @notebook_service_stub = ::Google::Cloud::AIPlatform::V1::NotebookService::Rest::ServiceStub.new(
159
+ endpoint: @config.endpoint,
160
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
161
+ universe_domain: @config.universe_domain,
162
+ credentials: credentials
163
+ )
164
+
165
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
166
+ config.credentials = credentials
167
+ config.quota_project = @quota_project_id
168
+ config.endpoint = @notebook_service_stub.endpoint
169
+ config.universe_domain = @notebook_service_stub.universe_domain
170
+ config.bindings_override = @config.bindings_override
171
+ end
172
+
173
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
174
+ config.credentials = credentials
175
+ config.quota_project = @quota_project_id
176
+ config.endpoint = @notebook_service_stub.endpoint
177
+ config.universe_domain = @notebook_service_stub.universe_domain
178
+ config.bindings_override = @config.bindings_override
179
+ end
180
+ end
181
+
182
+ ##
183
+ # Get the associated client for long-running operations.
184
+ #
185
+ # @return [::Google::Cloud::AIPlatform::V1::NotebookService::Rest::Operations]
186
+ #
187
+ attr_reader :operations_client
188
+
189
+ ##
190
+ # Get the associated client for mix-in of the Locations.
191
+ #
192
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
193
+ #
194
+ attr_reader :location_client
195
+
196
+ ##
197
+ # Get the associated client for mix-in of the IAMPolicy.
198
+ #
199
+ # @return [Google::Iam::V1::IAMPolicy::Rest::Client]
200
+ #
201
+ attr_reader :iam_policy_client
202
+
203
+ # Service calls
204
+
205
+ ##
206
+ # Creates a NotebookRuntimeTemplate.
207
+ #
208
+ # @overload create_notebook_runtime_template(request, options = nil)
209
+ # Pass arguments to `create_notebook_runtime_template` via a request object, either of type
210
+ # {::Google::Cloud::AIPlatform::V1::CreateNotebookRuntimeTemplateRequest} or an equivalent Hash.
211
+ #
212
+ # @param request [::Google::Cloud::AIPlatform::V1::CreateNotebookRuntimeTemplateRequest, ::Hash]
213
+ # A request object representing the call parameters. Required. To specify no
214
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
215
+ # @param options [::Gapic::CallOptions, ::Hash]
216
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
217
+ #
218
+ # @overload create_notebook_runtime_template(parent: nil, notebook_runtime_template: nil, notebook_runtime_template_id: nil)
219
+ # Pass arguments to `create_notebook_runtime_template` via keyword arguments. Note that at
220
+ # least one keyword argument is required. To specify no parameters, or to keep all
221
+ # the default parameter values, pass an empty Hash as a request object (see above).
222
+ #
223
+ # @param parent [::String]
224
+ # Required. The resource name of the Location to create the
225
+ # NotebookRuntimeTemplate. Format: `projects/{project}/locations/{location}`
226
+ # @param notebook_runtime_template [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate, ::Hash]
227
+ # Required. The NotebookRuntimeTemplate to create.
228
+ # @param notebook_runtime_template_id [::String]
229
+ # Optional. User specified ID for the notebook runtime template.
230
+ # @yield [result, operation] Access the result along with the TransportOperation object
231
+ # @yieldparam result [::Gapic::Operation]
232
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
233
+ #
234
+ # @return [::Gapic::Operation]
235
+ #
236
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
237
+ #
238
+ # @example Basic example
239
+ # require "google/cloud/ai_platform/v1"
240
+ #
241
+ # # Create a client object. The client can be reused for multiple calls.
242
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new
243
+ #
244
+ # # Create a request. To set request fields, pass in keyword arguments.
245
+ # request = Google::Cloud::AIPlatform::V1::CreateNotebookRuntimeTemplateRequest.new
246
+ #
247
+ # # Call the create_notebook_runtime_template method.
248
+ # result = client.create_notebook_runtime_template request
249
+ #
250
+ # # The returned object is of type Gapic::Operation. You can use it to
251
+ # # check the status of an operation, cancel it, or wait for results.
252
+ # # Here is how to wait for a response.
253
+ # result.wait_until_done! timeout: 60
254
+ # if result.response?
255
+ # p result.response
256
+ # else
257
+ # puts "No response received."
258
+ # end
259
+ #
260
+ def create_notebook_runtime_template request, options = nil
261
+ raise ::ArgumentError, "request must be provided" if request.nil?
262
+
263
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateNotebookRuntimeTemplateRequest
264
+
265
+ # Converts hash and nil to an options object
266
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
267
+
268
+ # Customize the options with defaults
269
+ call_metadata = @config.rpcs.create_notebook_runtime_template.metadata.to_h
270
+
271
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
272
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
273
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
274
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
275
+ transports_version_send: [:rest]
276
+
277
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
+
280
+ options.apply_defaults timeout: @config.rpcs.create_notebook_runtime_template.timeout,
281
+ metadata: call_metadata,
282
+ retry_policy: @config.rpcs.create_notebook_runtime_template.retry_policy
283
+
284
+ options.apply_defaults timeout: @config.timeout,
285
+ metadata: @config.metadata,
286
+ retry_policy: @config.retry_policy
287
+
288
+ @notebook_service_stub.create_notebook_runtime_template request, options do |result, operation|
289
+ result = ::Gapic::Operation.new result, @operations_client, options: options
290
+ yield result, operation if block_given?
291
+ return result
292
+ end
293
+ rescue ::Gapic::Rest::Error => e
294
+ raise ::Google::Cloud::Error.from_error(e)
295
+ end
296
+
297
+ ##
298
+ # Gets a NotebookRuntimeTemplate.
299
+ #
300
+ # @overload get_notebook_runtime_template(request, options = nil)
301
+ # Pass arguments to `get_notebook_runtime_template` via a request object, either of type
302
+ # {::Google::Cloud::AIPlatform::V1::GetNotebookRuntimeTemplateRequest} or an equivalent Hash.
303
+ #
304
+ # @param request [::Google::Cloud::AIPlatform::V1::GetNotebookRuntimeTemplateRequest, ::Hash]
305
+ # A request object representing the call parameters. Required. To specify no
306
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
307
+ # @param options [::Gapic::CallOptions, ::Hash]
308
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
309
+ #
310
+ # @overload get_notebook_runtime_template(name: nil)
311
+ # Pass arguments to `get_notebook_runtime_template` via keyword arguments. Note that at
312
+ # least one keyword argument is required. To specify no parameters, or to keep all
313
+ # the default parameter values, pass an empty Hash as a request object (see above).
314
+ #
315
+ # @param name [::String]
316
+ # Required. The name of the NotebookRuntimeTemplate resource.
317
+ # Format:
318
+ # `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}`
319
+ # @yield [result, operation] Access the result along with the TransportOperation object
320
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate]
321
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
322
+ #
323
+ # @return [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate]
324
+ #
325
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
326
+ #
327
+ # @example Basic example
328
+ # require "google/cloud/ai_platform/v1"
329
+ #
330
+ # # Create a client object. The client can be reused for multiple calls.
331
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new
332
+ #
333
+ # # Create a request. To set request fields, pass in keyword arguments.
334
+ # request = Google::Cloud::AIPlatform::V1::GetNotebookRuntimeTemplateRequest.new
335
+ #
336
+ # # Call the get_notebook_runtime_template method.
337
+ # result = client.get_notebook_runtime_template request
338
+ #
339
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate.
340
+ # p result
341
+ #
342
+ def get_notebook_runtime_template request, options = nil
343
+ raise ::ArgumentError, "request must be provided" if request.nil?
344
+
345
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetNotebookRuntimeTemplateRequest
346
+
347
+ # Converts hash and nil to an options object
348
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
349
+
350
+ # Customize the options with defaults
351
+ call_metadata = @config.rpcs.get_notebook_runtime_template.metadata.to_h
352
+
353
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
354
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
355
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
356
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
357
+ transports_version_send: [:rest]
358
+
359
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
+
362
+ options.apply_defaults timeout: @config.rpcs.get_notebook_runtime_template.timeout,
363
+ metadata: call_metadata,
364
+ retry_policy: @config.rpcs.get_notebook_runtime_template.retry_policy
365
+
366
+ options.apply_defaults timeout: @config.timeout,
367
+ metadata: @config.metadata,
368
+ retry_policy: @config.retry_policy
369
+
370
+ @notebook_service_stub.get_notebook_runtime_template request, options do |result, operation|
371
+ yield result, operation if block_given?
372
+ return result
373
+ end
374
+ rescue ::Gapic::Rest::Error => e
375
+ raise ::Google::Cloud::Error.from_error(e)
376
+ end
377
+
378
+ ##
379
+ # Lists NotebookRuntimeTemplates in a Location.
380
+ #
381
+ # @overload list_notebook_runtime_templates(request, options = nil)
382
+ # Pass arguments to `list_notebook_runtime_templates` via a request object, either of type
383
+ # {::Google::Cloud::AIPlatform::V1::ListNotebookRuntimeTemplatesRequest} or an equivalent Hash.
384
+ #
385
+ # @param request [::Google::Cloud::AIPlatform::V1::ListNotebookRuntimeTemplatesRequest, ::Hash]
386
+ # A request object representing the call parameters. Required. To specify no
387
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
388
+ # @param options [::Gapic::CallOptions, ::Hash]
389
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
390
+ #
391
+ # @overload list_notebook_runtime_templates(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil)
392
+ # Pass arguments to `list_notebook_runtime_templates` via keyword arguments. Note that at
393
+ # least one keyword argument is required. To specify no parameters, or to keep all
394
+ # the default parameter values, pass an empty Hash as a request object (see above).
395
+ #
396
+ # @param parent [::String]
397
+ # Required. The resource name of the Location from which to list the
398
+ # NotebookRuntimeTemplates.
399
+ # Format: `projects/{project}/locations/{location}`
400
+ # @param filter [::String]
401
+ # Optional. An expression for filtering the results of the request. For field
402
+ # names both snake_case and camelCase are supported.
403
+ #
404
+ # * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate`
405
+ # represents the NotebookRuntimeTemplate ID,
406
+ # i.e. the last segment of the NotebookRuntimeTemplate's [resource name]
407
+ # [google.cloud.aiplatform.v1.NotebookRuntimeTemplate.name].
408
+ # * `display_name` supports = and !=
409
+ # * `labels` supports general map functions that is:
410
+ # * `labels.key=value` - key:value equality
411
+ # * `labels.key:* or labels:key - key existence
412
+ # * A key including a space must be quoted. `labels."a key"`.
413
+ # * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum:
414
+ # [USER_DEFINED, ONE_CLICK].
415
+ #
416
+ # Some examples:
417
+ #
418
+ # * `notebookRuntimeTemplate=notebookRuntimeTemplate123`
419
+ # * `displayName="myDisplayName"`
420
+ # * `labels.myKey="myValue"`
421
+ # * `notebookRuntimeType=USER_DEFINED`
422
+ # @param page_size [::Integer]
423
+ # Optional. The standard list page size.
424
+ # @param page_token [::String]
425
+ # Optional. The standard list page token.
426
+ # Typically obtained via
427
+ # {::Google::Cloud::AIPlatform::V1::ListNotebookRuntimeTemplatesResponse#next_page_token ListNotebookRuntimeTemplatesResponse.next_page_token}
428
+ # of the previous
429
+ # {::Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client#list_notebook_runtime_templates NotebookService.ListNotebookRuntimeTemplates}
430
+ # call.
431
+ # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
432
+ # Optional. Mask specifying which fields to read.
433
+ # @param order_by [::String]
434
+ # Optional. A comma-separated list of fields to order by, sorted in ascending
435
+ # order. Use "desc" after a field name for descending. Supported fields:
436
+ #
437
+ # * `display_name`
438
+ # * `create_time`
439
+ # * `update_time`
440
+ #
441
+ # Example: `display_name, create_time desc`.
442
+ # @yield [result, operation] Access the result along with the TransportOperation object
443
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate>]
444
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
445
+ #
446
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate>]
447
+ #
448
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
449
+ #
450
+ # @example Basic example
451
+ # require "google/cloud/ai_platform/v1"
452
+ #
453
+ # # Create a client object. The client can be reused for multiple calls.
454
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new
455
+ #
456
+ # # Create a request. To set request fields, pass in keyword arguments.
457
+ # request = Google::Cloud::AIPlatform::V1::ListNotebookRuntimeTemplatesRequest.new
458
+ #
459
+ # # Call the list_notebook_runtime_templates method.
460
+ # result = client.list_notebook_runtime_templates request
461
+ #
462
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
463
+ # # over elements, and API calls will be issued to fetch pages as needed.
464
+ # result.each do |item|
465
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate.
466
+ # p item
467
+ # end
468
+ #
469
+ def list_notebook_runtime_templates request, options = nil
470
+ raise ::ArgumentError, "request must be provided" if request.nil?
471
+
472
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListNotebookRuntimeTemplatesRequest
473
+
474
+ # Converts hash and nil to an options object
475
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
476
+
477
+ # Customize the options with defaults
478
+ call_metadata = @config.rpcs.list_notebook_runtime_templates.metadata.to_h
479
+
480
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
481
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
482
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
483
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
484
+ transports_version_send: [:rest]
485
+
486
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
487
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
488
+
489
+ options.apply_defaults timeout: @config.rpcs.list_notebook_runtime_templates.timeout,
490
+ metadata: call_metadata,
491
+ retry_policy: @config.rpcs.list_notebook_runtime_templates.retry_policy
492
+
493
+ options.apply_defaults timeout: @config.timeout,
494
+ metadata: @config.metadata,
495
+ retry_policy: @config.retry_policy
496
+
497
+ @notebook_service_stub.list_notebook_runtime_templates request, options do |result, operation|
498
+ result = ::Gapic::Rest::PagedEnumerable.new @notebook_service_stub, :list_notebook_runtime_templates, "notebook_runtime_templates", request, result, options
499
+ yield result, operation if block_given?
500
+ return result
501
+ end
502
+ rescue ::Gapic::Rest::Error => e
503
+ raise ::Google::Cloud::Error.from_error(e)
504
+ end
505
+
506
+ ##
507
+ # Deletes a NotebookRuntimeTemplate.
508
+ #
509
+ # @overload delete_notebook_runtime_template(request, options = nil)
510
+ # Pass arguments to `delete_notebook_runtime_template` via a request object, either of type
511
+ # {::Google::Cloud::AIPlatform::V1::DeleteNotebookRuntimeTemplateRequest} or an equivalent Hash.
512
+ #
513
+ # @param request [::Google::Cloud::AIPlatform::V1::DeleteNotebookRuntimeTemplateRequest, ::Hash]
514
+ # A request object representing the call parameters. Required. To specify no
515
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
516
+ # @param options [::Gapic::CallOptions, ::Hash]
517
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
518
+ #
519
+ # @overload delete_notebook_runtime_template(name: nil)
520
+ # Pass arguments to `delete_notebook_runtime_template` via keyword arguments. Note that at
521
+ # least one keyword argument is required. To specify no parameters, or to keep all
522
+ # the default parameter values, pass an empty Hash as a request object (see above).
523
+ #
524
+ # @param name [::String]
525
+ # Required. The name of the NotebookRuntimeTemplate resource to be deleted.
526
+ # Format:
527
+ # `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}`
528
+ # @yield [result, operation] Access the result along with the TransportOperation object
529
+ # @yieldparam result [::Gapic::Operation]
530
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
531
+ #
532
+ # @return [::Gapic::Operation]
533
+ #
534
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
535
+ #
536
+ # @example Basic example
537
+ # require "google/cloud/ai_platform/v1"
538
+ #
539
+ # # Create a client object. The client can be reused for multiple calls.
540
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new
541
+ #
542
+ # # Create a request. To set request fields, pass in keyword arguments.
543
+ # request = Google::Cloud::AIPlatform::V1::DeleteNotebookRuntimeTemplateRequest.new
544
+ #
545
+ # # Call the delete_notebook_runtime_template method.
546
+ # result = client.delete_notebook_runtime_template request
547
+ #
548
+ # # The returned object is of type Gapic::Operation. You can use it to
549
+ # # check the status of an operation, cancel it, or wait for results.
550
+ # # Here is how to wait for a response.
551
+ # result.wait_until_done! timeout: 60
552
+ # if result.response?
553
+ # p result.response
554
+ # else
555
+ # puts "No response received."
556
+ # end
557
+ #
558
+ def delete_notebook_runtime_template request, options = nil
559
+ raise ::ArgumentError, "request must be provided" if request.nil?
560
+
561
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteNotebookRuntimeTemplateRequest
562
+
563
+ # Converts hash and nil to an options object
564
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
565
+
566
+ # Customize the options with defaults
567
+ call_metadata = @config.rpcs.delete_notebook_runtime_template.metadata.to_h
568
+
569
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
570
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
571
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
572
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
573
+ transports_version_send: [:rest]
574
+
575
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
576
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
577
+
578
+ options.apply_defaults timeout: @config.rpcs.delete_notebook_runtime_template.timeout,
579
+ metadata: call_metadata,
580
+ retry_policy: @config.rpcs.delete_notebook_runtime_template.retry_policy
581
+
582
+ options.apply_defaults timeout: @config.timeout,
583
+ metadata: @config.metadata,
584
+ retry_policy: @config.retry_policy
585
+
586
+ @notebook_service_stub.delete_notebook_runtime_template request, options do |result, operation|
587
+ result = ::Gapic::Operation.new result, @operations_client, options: options
588
+ yield result, operation if block_given?
589
+ return result
590
+ end
591
+ rescue ::Gapic::Rest::Error => e
592
+ raise ::Google::Cloud::Error.from_error(e)
593
+ end
594
+
595
+ ##
596
+ # Updates a NotebookRuntimeTemplate.
597
+ #
598
+ # @overload update_notebook_runtime_template(request, options = nil)
599
+ # Pass arguments to `update_notebook_runtime_template` via a request object, either of type
600
+ # {::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest} or an equivalent Hash.
601
+ #
602
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest, ::Hash]
603
+ # A request object representing the call parameters. Required. To specify no
604
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
605
+ # @param options [::Gapic::CallOptions, ::Hash]
606
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
607
+ #
608
+ # @overload update_notebook_runtime_template(notebook_runtime_template: nil, update_mask: nil)
609
+ # Pass arguments to `update_notebook_runtime_template` via keyword arguments. Note that at
610
+ # least one keyword argument is required. To specify no parameters, or to keep all
611
+ # the default parameter values, pass an empty Hash as a request object (see above).
612
+ #
613
+ # @param notebook_runtime_template [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate, ::Hash]
614
+ # Required. The NotebookRuntimeTemplate to update.
615
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
616
+ # Required. The update mask applies to the resource.
617
+ # For the `FieldMask` definition, see
618
+ # {::Google::Protobuf::FieldMask google.protobuf.FieldMask}. Input format:
619
+ # `{paths: "${updated_filed}"}` Updatable fields:
620
+ #
621
+ # * `encryption_spec.kms_key_name`
622
+ # @yield [result, operation] Access the result along with the TransportOperation object
623
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate]
624
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
625
+ #
626
+ # @return [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate]
627
+ #
628
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
629
+ #
630
+ # @example Basic example
631
+ # require "google/cloud/ai_platform/v1"
632
+ #
633
+ # # Create a client object. The client can be reused for multiple calls.
634
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new
635
+ #
636
+ # # Create a request. To set request fields, pass in keyword arguments.
637
+ # request = Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest.new
638
+ #
639
+ # # Call the update_notebook_runtime_template method.
640
+ # result = client.update_notebook_runtime_template request
641
+ #
642
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate.
643
+ # p result
644
+ #
645
+ def update_notebook_runtime_template request, options = nil
646
+ raise ::ArgumentError, "request must be provided" if request.nil?
647
+
648
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest
649
+
650
+ # Converts hash and nil to an options object
651
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
652
+
653
+ # Customize the options with defaults
654
+ call_metadata = @config.rpcs.update_notebook_runtime_template.metadata.to_h
655
+
656
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
657
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
658
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
659
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
660
+ transports_version_send: [:rest]
661
+
662
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
663
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
664
+
665
+ options.apply_defaults timeout: @config.rpcs.update_notebook_runtime_template.timeout,
666
+ metadata: call_metadata,
667
+ retry_policy: @config.rpcs.update_notebook_runtime_template.retry_policy
668
+
669
+ options.apply_defaults timeout: @config.timeout,
670
+ metadata: @config.metadata,
671
+ retry_policy: @config.retry_policy
672
+
673
+ @notebook_service_stub.update_notebook_runtime_template request, options do |result, operation|
674
+ yield result, operation if block_given?
675
+ return result
676
+ end
677
+ rescue ::Gapic::Rest::Error => e
678
+ raise ::Google::Cloud::Error.from_error(e)
679
+ end
680
+
681
+ ##
682
+ # Assigns a NotebookRuntime to a user for a particular Notebook file. This
683
+ # method will either returns an existing assignment or generates a new one.
684
+ #
685
+ # @overload assign_notebook_runtime(request, options = nil)
686
+ # Pass arguments to `assign_notebook_runtime` via a request object, either of type
687
+ # {::Google::Cloud::AIPlatform::V1::AssignNotebookRuntimeRequest} or an equivalent Hash.
688
+ #
689
+ # @param request [::Google::Cloud::AIPlatform::V1::AssignNotebookRuntimeRequest, ::Hash]
690
+ # A request object representing the call parameters. Required. To specify no
691
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
692
+ # @param options [::Gapic::CallOptions, ::Hash]
693
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
694
+ #
695
+ # @overload assign_notebook_runtime(parent: nil, notebook_runtime_template: nil, notebook_runtime: nil, notebook_runtime_id: nil)
696
+ # Pass arguments to `assign_notebook_runtime` via keyword arguments. Note that at
697
+ # least one keyword argument is required. To specify no parameters, or to keep all
698
+ # the default parameter values, pass an empty Hash as a request object (see above).
699
+ #
700
+ # @param parent [::String]
701
+ # Required. The resource name of the Location to get the NotebookRuntime
702
+ # assignment. Format: `projects/{project}/locations/{location}`
703
+ # @param notebook_runtime_template [::String]
704
+ # Required. The resource name of the NotebookRuntimeTemplate based on which a
705
+ # NotebookRuntime will be assigned (reuse or create a new one).
706
+ # @param notebook_runtime [::Google::Cloud::AIPlatform::V1::NotebookRuntime, ::Hash]
707
+ # Required. Provide runtime specific information (e.g. runtime owner,
708
+ # notebook id) used for NotebookRuntime assignment.
709
+ # @param notebook_runtime_id [::String]
710
+ # Optional. User specified ID for the notebook runtime.
711
+ # @yield [result, operation] Access the result along with the TransportOperation object
712
+ # @yieldparam result [::Gapic::Operation]
713
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
714
+ #
715
+ # @return [::Gapic::Operation]
716
+ #
717
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
718
+ #
719
+ # @example Basic example
720
+ # require "google/cloud/ai_platform/v1"
721
+ #
722
+ # # Create a client object. The client can be reused for multiple calls.
723
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new
724
+ #
725
+ # # Create a request. To set request fields, pass in keyword arguments.
726
+ # request = Google::Cloud::AIPlatform::V1::AssignNotebookRuntimeRequest.new
727
+ #
728
+ # # Call the assign_notebook_runtime method.
729
+ # result = client.assign_notebook_runtime request
730
+ #
731
+ # # The returned object is of type Gapic::Operation. You can use it to
732
+ # # check the status of an operation, cancel it, or wait for results.
733
+ # # Here is how to wait for a response.
734
+ # result.wait_until_done! timeout: 60
735
+ # if result.response?
736
+ # p result.response
737
+ # else
738
+ # puts "No response received."
739
+ # end
740
+ #
741
+ def assign_notebook_runtime request, options = nil
742
+ raise ::ArgumentError, "request must be provided" if request.nil?
743
+
744
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::AssignNotebookRuntimeRequest
745
+
746
+ # Converts hash and nil to an options object
747
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
748
+
749
+ # Customize the options with defaults
750
+ call_metadata = @config.rpcs.assign_notebook_runtime.metadata.to_h
751
+
752
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
753
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
754
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
755
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
756
+ transports_version_send: [:rest]
757
+
758
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
759
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
760
+
761
+ options.apply_defaults timeout: @config.rpcs.assign_notebook_runtime.timeout,
762
+ metadata: call_metadata,
763
+ retry_policy: @config.rpcs.assign_notebook_runtime.retry_policy
764
+
765
+ options.apply_defaults timeout: @config.timeout,
766
+ metadata: @config.metadata,
767
+ retry_policy: @config.retry_policy
768
+
769
+ @notebook_service_stub.assign_notebook_runtime request, options do |result, operation|
770
+ result = ::Gapic::Operation.new result, @operations_client, options: options
771
+ yield result, operation if block_given?
772
+ return result
773
+ end
774
+ rescue ::Gapic::Rest::Error => e
775
+ raise ::Google::Cloud::Error.from_error(e)
776
+ end
777
+
778
+ ##
779
+ # Gets a NotebookRuntime.
780
+ #
781
+ # @overload get_notebook_runtime(request, options = nil)
782
+ # Pass arguments to `get_notebook_runtime` via a request object, either of type
783
+ # {::Google::Cloud::AIPlatform::V1::GetNotebookRuntimeRequest} or an equivalent Hash.
784
+ #
785
+ # @param request [::Google::Cloud::AIPlatform::V1::GetNotebookRuntimeRequest, ::Hash]
786
+ # A request object representing the call parameters. Required. To specify no
787
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
788
+ # @param options [::Gapic::CallOptions, ::Hash]
789
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
790
+ #
791
+ # @overload get_notebook_runtime(name: nil)
792
+ # Pass arguments to `get_notebook_runtime` via keyword arguments. Note that at
793
+ # least one keyword argument is required. To specify no parameters, or to keep all
794
+ # the default parameter values, pass an empty Hash as a request object (see above).
795
+ #
796
+ # @param name [::String]
797
+ # Required. The name of the NotebookRuntime resource.
798
+ # Instead of checking whether the name is in valid NotebookRuntime resource
799
+ # name format, directly throw NotFound exception if there is no such
800
+ # NotebookRuntime in spanner.
801
+ # @yield [result, operation] Access the result along with the TransportOperation object
802
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::NotebookRuntime]
803
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
804
+ #
805
+ # @return [::Google::Cloud::AIPlatform::V1::NotebookRuntime]
806
+ #
807
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
808
+ #
809
+ # @example Basic example
810
+ # require "google/cloud/ai_platform/v1"
811
+ #
812
+ # # Create a client object. The client can be reused for multiple calls.
813
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new
814
+ #
815
+ # # Create a request. To set request fields, pass in keyword arguments.
816
+ # request = Google::Cloud::AIPlatform::V1::GetNotebookRuntimeRequest.new
817
+ #
818
+ # # Call the get_notebook_runtime method.
819
+ # result = client.get_notebook_runtime request
820
+ #
821
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::NotebookRuntime.
822
+ # p result
823
+ #
824
+ def get_notebook_runtime request, options = nil
825
+ raise ::ArgumentError, "request must be provided" if request.nil?
826
+
827
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetNotebookRuntimeRequest
828
+
829
+ # Converts hash and nil to an options object
830
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
831
+
832
+ # Customize the options with defaults
833
+ call_metadata = @config.rpcs.get_notebook_runtime.metadata.to_h
834
+
835
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
836
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
837
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
838
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
839
+ transports_version_send: [:rest]
840
+
841
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
842
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
843
+
844
+ options.apply_defaults timeout: @config.rpcs.get_notebook_runtime.timeout,
845
+ metadata: call_metadata,
846
+ retry_policy: @config.rpcs.get_notebook_runtime.retry_policy
847
+
848
+ options.apply_defaults timeout: @config.timeout,
849
+ metadata: @config.metadata,
850
+ retry_policy: @config.retry_policy
851
+
852
+ @notebook_service_stub.get_notebook_runtime request, options do |result, operation|
853
+ yield result, operation if block_given?
854
+ return result
855
+ end
856
+ rescue ::Gapic::Rest::Error => e
857
+ raise ::Google::Cloud::Error.from_error(e)
858
+ end
859
+
860
+ ##
861
+ # Lists NotebookRuntimes in a Location.
862
+ #
863
+ # @overload list_notebook_runtimes(request, options = nil)
864
+ # Pass arguments to `list_notebook_runtimes` via a request object, either of type
865
+ # {::Google::Cloud::AIPlatform::V1::ListNotebookRuntimesRequest} or an equivalent Hash.
866
+ #
867
+ # @param request [::Google::Cloud::AIPlatform::V1::ListNotebookRuntimesRequest, ::Hash]
868
+ # A request object representing the call parameters. Required. To specify no
869
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
870
+ # @param options [::Gapic::CallOptions, ::Hash]
871
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
872
+ #
873
+ # @overload list_notebook_runtimes(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil)
874
+ # Pass arguments to `list_notebook_runtimes` via keyword arguments. Note that at
875
+ # least one keyword argument is required. To specify no parameters, or to keep all
876
+ # the default parameter values, pass an empty Hash as a request object (see above).
877
+ #
878
+ # @param parent [::String]
879
+ # Required. The resource name of the Location from which to list the
880
+ # NotebookRuntimes.
881
+ # Format: `projects/{project}/locations/{location}`
882
+ # @param filter [::String]
883
+ # Optional. An expression for filtering the results of the request. For field
884
+ # names both snake_case and camelCase are supported.
885
+ #
886
+ # * `notebookRuntime` supports = and !=. `notebookRuntime` represents the
887
+ # NotebookRuntime ID,
888
+ # i.e. the last segment of the NotebookRuntime's [resource name]
889
+ # [google.cloud.aiplatform.v1.NotebookRuntime.name].
890
+ # * `displayName` supports = and != and regex.
891
+ # * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate`
892
+ # represents the NotebookRuntimeTemplate ID,
893
+ # i.e. the last segment of the NotebookRuntimeTemplate's [resource name]
894
+ # [google.cloud.aiplatform.v1.NotebookRuntimeTemplate.name].
895
+ # * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY,
896
+ # HEALTH_STATE_UNSPECIFIED].
897
+ # * `runtimeState` supports = and !=. runtimeState enum:
898
+ # [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED,
899
+ # STOPPED, BEING_UPGRADED, ERROR, INVALID].
900
+ # * `runtimeUser` supports = and !=.
901
+ # * API version is UI only: `uiState` supports = and !=. uiState enum:
902
+ # [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED,
903
+ # UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED,
904
+ # UI_RESOURCE_STATE_CREATION_FAILED].
905
+ # * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum:
906
+ # [USER_DEFINED, ONE_CLICK].
907
+ #
908
+ # Some examples:
909
+ #
910
+ # * `notebookRuntime="notebookRuntime123"`
911
+ # * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
912
+ # * `notebookRuntimeTemplate="notebookRuntimeTemplate321"`
913
+ # * `healthState=HEALTHY`
914
+ # * `runtimeState=RUNNING`
915
+ # * `runtimeUser="test@google.com"`
916
+ # * `uiState=UI_RESOURCE_STATE_BEING_DELETED`
917
+ # * `notebookRuntimeType=USER_DEFINED`
918
+ # @param page_size [::Integer]
919
+ # Optional. The standard list page size.
920
+ # @param page_token [::String]
921
+ # Optional. The standard list page token.
922
+ # Typically obtained via
923
+ # {::Google::Cloud::AIPlatform::V1::ListNotebookRuntimesResponse#next_page_token ListNotebookRuntimesResponse.next_page_token}
924
+ # of the previous
925
+ # {::Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client#list_notebook_runtimes NotebookService.ListNotebookRuntimes}
926
+ # call.
927
+ # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
928
+ # Optional. Mask specifying which fields to read.
929
+ # @param order_by [::String]
930
+ # Optional. A comma-separated list of fields to order by, sorted in ascending
931
+ # order. Use "desc" after a field name for descending. Supported fields:
932
+ #
933
+ # * `display_name`
934
+ # * `create_time`
935
+ # * `update_time`
936
+ #
937
+ # Example: `display_name, create_time desc`.
938
+ # @yield [result, operation] Access the result along with the TransportOperation object
939
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntime>]
940
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
941
+ #
942
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookRuntime>]
943
+ #
944
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
945
+ #
946
+ # @example Basic example
947
+ # require "google/cloud/ai_platform/v1"
948
+ #
949
+ # # Create a client object. The client can be reused for multiple calls.
950
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new
951
+ #
952
+ # # Create a request. To set request fields, pass in keyword arguments.
953
+ # request = Google::Cloud::AIPlatform::V1::ListNotebookRuntimesRequest.new
954
+ #
955
+ # # Call the list_notebook_runtimes method.
956
+ # result = client.list_notebook_runtimes request
957
+ #
958
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
959
+ # # over elements, and API calls will be issued to fetch pages as needed.
960
+ # result.each do |item|
961
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::NotebookRuntime.
962
+ # p item
963
+ # end
964
+ #
965
+ def list_notebook_runtimes request, options = nil
966
+ raise ::ArgumentError, "request must be provided" if request.nil?
967
+
968
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListNotebookRuntimesRequest
969
+
970
+ # Converts hash and nil to an options object
971
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
972
+
973
+ # Customize the options with defaults
974
+ call_metadata = @config.rpcs.list_notebook_runtimes.metadata.to_h
975
+
976
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
977
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
978
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
979
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
980
+ transports_version_send: [:rest]
981
+
982
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
983
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
984
+
985
+ options.apply_defaults timeout: @config.rpcs.list_notebook_runtimes.timeout,
986
+ metadata: call_metadata,
987
+ retry_policy: @config.rpcs.list_notebook_runtimes.retry_policy
988
+
989
+ options.apply_defaults timeout: @config.timeout,
990
+ metadata: @config.metadata,
991
+ retry_policy: @config.retry_policy
992
+
993
+ @notebook_service_stub.list_notebook_runtimes request, options do |result, operation|
994
+ result = ::Gapic::Rest::PagedEnumerable.new @notebook_service_stub, :list_notebook_runtimes, "notebook_runtimes", request, result, options
995
+ yield result, operation if block_given?
996
+ return result
997
+ end
998
+ rescue ::Gapic::Rest::Error => e
999
+ raise ::Google::Cloud::Error.from_error(e)
1000
+ end
1001
+
1002
+ ##
1003
+ # Deletes a NotebookRuntime.
1004
+ #
1005
+ # @overload delete_notebook_runtime(request, options = nil)
1006
+ # Pass arguments to `delete_notebook_runtime` via a request object, either of type
1007
+ # {::Google::Cloud::AIPlatform::V1::DeleteNotebookRuntimeRequest} or an equivalent Hash.
1008
+ #
1009
+ # @param request [::Google::Cloud::AIPlatform::V1::DeleteNotebookRuntimeRequest, ::Hash]
1010
+ # A request object representing the call parameters. Required. To specify no
1011
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1012
+ # @param options [::Gapic::CallOptions, ::Hash]
1013
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1014
+ #
1015
+ # @overload delete_notebook_runtime(name: nil)
1016
+ # Pass arguments to `delete_notebook_runtime` via keyword arguments. Note that at
1017
+ # least one keyword argument is required. To specify no parameters, or to keep all
1018
+ # the default parameter values, pass an empty Hash as a request object (see above).
1019
+ #
1020
+ # @param name [::String]
1021
+ # Required. The name of the NotebookRuntime resource to be deleted.
1022
+ # Instead of checking whether the name is in valid NotebookRuntime resource
1023
+ # name format, directly throw NotFound exception if there is no such
1024
+ # NotebookRuntime in spanner.
1025
+ # @yield [result, operation] Access the result along with the TransportOperation object
1026
+ # @yieldparam result [::Gapic::Operation]
1027
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1028
+ #
1029
+ # @return [::Gapic::Operation]
1030
+ #
1031
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1032
+ #
1033
+ # @example Basic example
1034
+ # require "google/cloud/ai_platform/v1"
1035
+ #
1036
+ # # Create a client object. The client can be reused for multiple calls.
1037
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new
1038
+ #
1039
+ # # Create a request. To set request fields, pass in keyword arguments.
1040
+ # request = Google::Cloud::AIPlatform::V1::DeleteNotebookRuntimeRequest.new
1041
+ #
1042
+ # # Call the delete_notebook_runtime method.
1043
+ # result = client.delete_notebook_runtime request
1044
+ #
1045
+ # # The returned object is of type Gapic::Operation. You can use it to
1046
+ # # check the status of an operation, cancel it, or wait for results.
1047
+ # # Here is how to wait for a response.
1048
+ # result.wait_until_done! timeout: 60
1049
+ # if result.response?
1050
+ # p result.response
1051
+ # else
1052
+ # puts "No response received."
1053
+ # end
1054
+ #
1055
+ def delete_notebook_runtime request, options = nil
1056
+ raise ::ArgumentError, "request must be provided" if request.nil?
1057
+
1058
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteNotebookRuntimeRequest
1059
+
1060
+ # Converts hash and nil to an options object
1061
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1062
+
1063
+ # Customize the options with defaults
1064
+ call_metadata = @config.rpcs.delete_notebook_runtime.metadata.to_h
1065
+
1066
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1067
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1068
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1069
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
1070
+ transports_version_send: [:rest]
1071
+
1072
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1073
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1074
+
1075
+ options.apply_defaults timeout: @config.rpcs.delete_notebook_runtime.timeout,
1076
+ metadata: call_metadata,
1077
+ retry_policy: @config.rpcs.delete_notebook_runtime.retry_policy
1078
+
1079
+ options.apply_defaults timeout: @config.timeout,
1080
+ metadata: @config.metadata,
1081
+ retry_policy: @config.retry_policy
1082
+
1083
+ @notebook_service_stub.delete_notebook_runtime request, options do |result, operation|
1084
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1085
+ yield result, operation if block_given?
1086
+ return result
1087
+ end
1088
+ rescue ::Gapic::Rest::Error => e
1089
+ raise ::Google::Cloud::Error.from_error(e)
1090
+ end
1091
+
1092
+ ##
1093
+ # Upgrades a NotebookRuntime.
1094
+ #
1095
+ # @overload upgrade_notebook_runtime(request, options = nil)
1096
+ # Pass arguments to `upgrade_notebook_runtime` via a request object, either of type
1097
+ # {::Google::Cloud::AIPlatform::V1::UpgradeNotebookRuntimeRequest} or an equivalent Hash.
1098
+ #
1099
+ # @param request [::Google::Cloud::AIPlatform::V1::UpgradeNotebookRuntimeRequest, ::Hash]
1100
+ # A request object representing the call parameters. Required. To specify no
1101
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1102
+ # @param options [::Gapic::CallOptions, ::Hash]
1103
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1104
+ #
1105
+ # @overload upgrade_notebook_runtime(name: nil)
1106
+ # Pass arguments to `upgrade_notebook_runtime` via keyword arguments. Note that at
1107
+ # least one keyword argument is required. To specify no parameters, or to keep all
1108
+ # the default parameter values, pass an empty Hash as a request object (see above).
1109
+ #
1110
+ # @param name [::String]
1111
+ # Required. The name of the NotebookRuntime resource to be upgrade.
1112
+ # Instead of checking whether the name is in valid NotebookRuntime resource
1113
+ # name format, directly throw NotFound exception if there is no such
1114
+ # NotebookRuntime in spanner.
1115
+ # @yield [result, operation] Access the result along with the TransportOperation object
1116
+ # @yieldparam result [::Gapic::Operation]
1117
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1118
+ #
1119
+ # @return [::Gapic::Operation]
1120
+ #
1121
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1122
+ #
1123
+ # @example Basic example
1124
+ # require "google/cloud/ai_platform/v1"
1125
+ #
1126
+ # # Create a client object. The client can be reused for multiple calls.
1127
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new
1128
+ #
1129
+ # # Create a request. To set request fields, pass in keyword arguments.
1130
+ # request = Google::Cloud::AIPlatform::V1::UpgradeNotebookRuntimeRequest.new
1131
+ #
1132
+ # # Call the upgrade_notebook_runtime method.
1133
+ # result = client.upgrade_notebook_runtime request
1134
+ #
1135
+ # # The returned object is of type Gapic::Operation. You can use it to
1136
+ # # check the status of an operation, cancel it, or wait for results.
1137
+ # # Here is how to wait for a response.
1138
+ # result.wait_until_done! timeout: 60
1139
+ # if result.response?
1140
+ # p result.response
1141
+ # else
1142
+ # puts "No response received."
1143
+ # end
1144
+ #
1145
+ def upgrade_notebook_runtime request, options = nil
1146
+ raise ::ArgumentError, "request must be provided" if request.nil?
1147
+
1148
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpgradeNotebookRuntimeRequest
1149
+
1150
+ # Converts hash and nil to an options object
1151
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1152
+
1153
+ # Customize the options with defaults
1154
+ call_metadata = @config.rpcs.upgrade_notebook_runtime.metadata.to_h
1155
+
1156
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1157
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1158
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1159
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
1160
+ transports_version_send: [:rest]
1161
+
1162
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1163
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1164
+
1165
+ options.apply_defaults timeout: @config.rpcs.upgrade_notebook_runtime.timeout,
1166
+ metadata: call_metadata,
1167
+ retry_policy: @config.rpcs.upgrade_notebook_runtime.retry_policy
1168
+
1169
+ options.apply_defaults timeout: @config.timeout,
1170
+ metadata: @config.metadata,
1171
+ retry_policy: @config.retry_policy
1172
+
1173
+ @notebook_service_stub.upgrade_notebook_runtime request, options do |result, operation|
1174
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1175
+ yield result, operation if block_given?
1176
+ return result
1177
+ end
1178
+ rescue ::Gapic::Rest::Error => e
1179
+ raise ::Google::Cloud::Error.from_error(e)
1180
+ end
1181
+
1182
+ ##
1183
+ # Starts a NotebookRuntime.
1184
+ #
1185
+ # @overload start_notebook_runtime(request, options = nil)
1186
+ # Pass arguments to `start_notebook_runtime` via a request object, either of type
1187
+ # {::Google::Cloud::AIPlatform::V1::StartNotebookRuntimeRequest} or an equivalent Hash.
1188
+ #
1189
+ # @param request [::Google::Cloud::AIPlatform::V1::StartNotebookRuntimeRequest, ::Hash]
1190
+ # A request object representing the call parameters. Required. To specify no
1191
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1192
+ # @param options [::Gapic::CallOptions, ::Hash]
1193
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1194
+ #
1195
+ # @overload start_notebook_runtime(name: nil)
1196
+ # Pass arguments to `start_notebook_runtime` via keyword arguments. Note that at
1197
+ # least one keyword argument is required. To specify no parameters, or to keep all
1198
+ # the default parameter values, pass an empty Hash as a request object (see above).
1199
+ #
1200
+ # @param name [::String]
1201
+ # Required. The name of the NotebookRuntime resource to be started.
1202
+ # Instead of checking whether the name is in valid NotebookRuntime resource
1203
+ # name format, directly throw NotFound exception if there is no such
1204
+ # NotebookRuntime in spanner.
1205
+ # @yield [result, operation] Access the result along with the TransportOperation object
1206
+ # @yieldparam result [::Gapic::Operation]
1207
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1208
+ #
1209
+ # @return [::Gapic::Operation]
1210
+ #
1211
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1212
+ #
1213
+ # @example Basic example
1214
+ # require "google/cloud/ai_platform/v1"
1215
+ #
1216
+ # # Create a client object. The client can be reused for multiple calls.
1217
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new
1218
+ #
1219
+ # # Create a request. To set request fields, pass in keyword arguments.
1220
+ # request = Google::Cloud::AIPlatform::V1::StartNotebookRuntimeRequest.new
1221
+ #
1222
+ # # Call the start_notebook_runtime method.
1223
+ # result = client.start_notebook_runtime request
1224
+ #
1225
+ # # The returned object is of type Gapic::Operation. You can use it to
1226
+ # # check the status of an operation, cancel it, or wait for results.
1227
+ # # Here is how to wait for a response.
1228
+ # result.wait_until_done! timeout: 60
1229
+ # if result.response?
1230
+ # p result.response
1231
+ # else
1232
+ # puts "No response received."
1233
+ # end
1234
+ #
1235
+ def start_notebook_runtime request, options = nil
1236
+ raise ::ArgumentError, "request must be provided" if request.nil?
1237
+
1238
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::StartNotebookRuntimeRequest
1239
+
1240
+ # Converts hash and nil to an options object
1241
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1242
+
1243
+ # Customize the options with defaults
1244
+ call_metadata = @config.rpcs.start_notebook_runtime.metadata.to_h
1245
+
1246
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1247
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1248
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1249
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
1250
+ transports_version_send: [:rest]
1251
+
1252
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1253
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1254
+
1255
+ options.apply_defaults timeout: @config.rpcs.start_notebook_runtime.timeout,
1256
+ metadata: call_metadata,
1257
+ retry_policy: @config.rpcs.start_notebook_runtime.retry_policy
1258
+
1259
+ options.apply_defaults timeout: @config.timeout,
1260
+ metadata: @config.metadata,
1261
+ retry_policy: @config.retry_policy
1262
+
1263
+ @notebook_service_stub.start_notebook_runtime request, options do |result, operation|
1264
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1265
+ yield result, operation if block_given?
1266
+ return result
1267
+ end
1268
+ rescue ::Gapic::Rest::Error => e
1269
+ raise ::Google::Cloud::Error.from_error(e)
1270
+ end
1271
+
1272
+ ##
1273
+ # Configuration class for the NotebookService REST API.
1274
+ #
1275
+ # This class represents the configuration for NotebookService REST,
1276
+ # providing control over timeouts, retry behavior, logging, transport
1277
+ # parameters, and other low-level controls. Certain parameters can also be
1278
+ # applied individually to specific RPCs. See
1279
+ # {::Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client::Configuration::Rpcs}
1280
+ # for a list of RPCs that can be configured independently.
1281
+ #
1282
+ # Configuration can be applied globally to all clients, or to a single client
1283
+ # on construction.
1284
+ #
1285
+ # @example
1286
+ #
1287
+ # # Modify the global config, setting the timeout for
1288
+ # # create_notebook_runtime_template to 20 seconds,
1289
+ # # and all remaining timeouts to 10 seconds.
1290
+ # ::Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.configure do |config|
1291
+ # config.timeout = 10.0
1292
+ # config.rpcs.create_notebook_runtime_template.timeout = 20.0
1293
+ # end
1294
+ #
1295
+ # # Apply the above configuration only to a new client.
1296
+ # client = ::Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new do |config|
1297
+ # config.timeout = 10.0
1298
+ # config.rpcs.create_notebook_runtime_template.timeout = 20.0
1299
+ # end
1300
+ #
1301
+ # @!attribute [rw] endpoint
1302
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1303
+ # nil, indicating to use the default endpoint in the current universe domain.
1304
+ # @return [::String,nil]
1305
+ # @!attribute [rw] credentials
1306
+ # Credentials to send with calls. You may provide any of the following types:
1307
+ # * (`String`) The path to a service account key file in JSON format
1308
+ # * (`Hash`) A service account key as a Hash
1309
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
1310
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1311
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1312
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1313
+ # * (`nil`) indicating no credentials
1314
+ # @return [::Object]
1315
+ # @!attribute [rw] scope
1316
+ # The OAuth scopes
1317
+ # @return [::Array<::String>]
1318
+ # @!attribute [rw] lib_name
1319
+ # The library name as recorded in instrumentation and logging
1320
+ # @return [::String]
1321
+ # @!attribute [rw] lib_version
1322
+ # The library version as recorded in instrumentation and logging
1323
+ # @return [::String]
1324
+ # @!attribute [rw] timeout
1325
+ # The call timeout in seconds.
1326
+ # @return [::Numeric]
1327
+ # @!attribute [rw] metadata
1328
+ # Additional headers to be sent with the call.
1329
+ # @return [::Hash{::Symbol=>::String}]
1330
+ # @!attribute [rw] retry_policy
1331
+ # The retry policy. The value is a hash with the following keys:
1332
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1333
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1334
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1335
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1336
+ # trigger a retry.
1337
+ # @return [::Hash]
1338
+ # @!attribute [rw] quota_project
1339
+ # A separate project against which to charge quota.
1340
+ # @return [::String]
1341
+ # @!attribute [rw] universe_domain
1342
+ # The universe domain within which to make requests. This determines the
1343
+ # default endpoint URL. The default value of nil uses the environment
1344
+ # universe (usually the default "googleapis.com" universe).
1345
+ # @return [::String,nil]
1346
+ #
1347
+ class Configuration
1348
+ extend ::Gapic::Config
1349
+
1350
+ # @private
1351
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1352
+ DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
1353
+
1354
+ config_attr :endpoint, nil, ::String, nil
1355
+ config_attr :credentials, nil do |value|
1356
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1357
+ allowed.any? { |klass| klass === value }
1358
+ end
1359
+ config_attr :scope, nil, ::String, ::Array, nil
1360
+ config_attr :lib_name, nil, ::String, nil
1361
+ config_attr :lib_version, nil, ::String, nil
1362
+ config_attr :timeout, nil, ::Numeric, nil
1363
+ config_attr :metadata, nil, ::Hash, nil
1364
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1365
+ config_attr :quota_project, nil, ::String, nil
1366
+ config_attr :universe_domain, nil, ::String, nil
1367
+
1368
+ # @private
1369
+ # Overrides for http bindings for the RPCs of this service
1370
+ # are only used when this service is used as mixin, and only
1371
+ # by the host service.
1372
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
1373
+ config_attr :bindings_override, {}, ::Hash, nil
1374
+
1375
+ # @private
1376
+ def initialize parent_config = nil
1377
+ @parent_config = parent_config unless parent_config.nil?
1378
+
1379
+ yield self if block_given?
1380
+ end
1381
+
1382
+ ##
1383
+ # Configurations for individual RPCs
1384
+ # @return [Rpcs]
1385
+ #
1386
+ def rpcs
1387
+ @rpcs ||= begin
1388
+ parent_rpcs = nil
1389
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1390
+ Rpcs.new parent_rpcs
1391
+ end
1392
+ end
1393
+
1394
+ ##
1395
+ # Configuration RPC class for the NotebookService API.
1396
+ #
1397
+ # Includes fields providing the configuration for each RPC in this service.
1398
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1399
+ # the following configuration fields:
1400
+ #
1401
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1402
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
1403
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1404
+ # include the following keys:
1405
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1406
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1407
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1408
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1409
+ # trigger a retry.
1410
+ #
1411
+ class Rpcs
1412
+ ##
1413
+ # RPC-specific configuration for `create_notebook_runtime_template`
1414
+ # @return [::Gapic::Config::Method]
1415
+ #
1416
+ attr_reader :create_notebook_runtime_template
1417
+ ##
1418
+ # RPC-specific configuration for `get_notebook_runtime_template`
1419
+ # @return [::Gapic::Config::Method]
1420
+ #
1421
+ attr_reader :get_notebook_runtime_template
1422
+ ##
1423
+ # RPC-specific configuration for `list_notebook_runtime_templates`
1424
+ # @return [::Gapic::Config::Method]
1425
+ #
1426
+ attr_reader :list_notebook_runtime_templates
1427
+ ##
1428
+ # RPC-specific configuration for `delete_notebook_runtime_template`
1429
+ # @return [::Gapic::Config::Method]
1430
+ #
1431
+ attr_reader :delete_notebook_runtime_template
1432
+ ##
1433
+ # RPC-specific configuration for `update_notebook_runtime_template`
1434
+ # @return [::Gapic::Config::Method]
1435
+ #
1436
+ attr_reader :update_notebook_runtime_template
1437
+ ##
1438
+ # RPC-specific configuration for `assign_notebook_runtime`
1439
+ # @return [::Gapic::Config::Method]
1440
+ #
1441
+ attr_reader :assign_notebook_runtime
1442
+ ##
1443
+ # RPC-specific configuration for `get_notebook_runtime`
1444
+ # @return [::Gapic::Config::Method]
1445
+ #
1446
+ attr_reader :get_notebook_runtime
1447
+ ##
1448
+ # RPC-specific configuration for `list_notebook_runtimes`
1449
+ # @return [::Gapic::Config::Method]
1450
+ #
1451
+ attr_reader :list_notebook_runtimes
1452
+ ##
1453
+ # RPC-specific configuration for `delete_notebook_runtime`
1454
+ # @return [::Gapic::Config::Method]
1455
+ #
1456
+ attr_reader :delete_notebook_runtime
1457
+ ##
1458
+ # RPC-specific configuration for `upgrade_notebook_runtime`
1459
+ # @return [::Gapic::Config::Method]
1460
+ #
1461
+ attr_reader :upgrade_notebook_runtime
1462
+ ##
1463
+ # RPC-specific configuration for `start_notebook_runtime`
1464
+ # @return [::Gapic::Config::Method]
1465
+ #
1466
+ attr_reader :start_notebook_runtime
1467
+
1468
+ # @private
1469
+ def initialize parent_rpcs = nil
1470
+ create_notebook_runtime_template_config = parent_rpcs.create_notebook_runtime_template if parent_rpcs.respond_to? :create_notebook_runtime_template
1471
+ @create_notebook_runtime_template = ::Gapic::Config::Method.new create_notebook_runtime_template_config
1472
+ get_notebook_runtime_template_config = parent_rpcs.get_notebook_runtime_template if parent_rpcs.respond_to? :get_notebook_runtime_template
1473
+ @get_notebook_runtime_template = ::Gapic::Config::Method.new get_notebook_runtime_template_config
1474
+ list_notebook_runtime_templates_config = parent_rpcs.list_notebook_runtime_templates if parent_rpcs.respond_to? :list_notebook_runtime_templates
1475
+ @list_notebook_runtime_templates = ::Gapic::Config::Method.new list_notebook_runtime_templates_config
1476
+ delete_notebook_runtime_template_config = parent_rpcs.delete_notebook_runtime_template if parent_rpcs.respond_to? :delete_notebook_runtime_template
1477
+ @delete_notebook_runtime_template = ::Gapic::Config::Method.new delete_notebook_runtime_template_config
1478
+ update_notebook_runtime_template_config = parent_rpcs.update_notebook_runtime_template if parent_rpcs.respond_to? :update_notebook_runtime_template
1479
+ @update_notebook_runtime_template = ::Gapic::Config::Method.new update_notebook_runtime_template_config
1480
+ assign_notebook_runtime_config = parent_rpcs.assign_notebook_runtime if parent_rpcs.respond_to? :assign_notebook_runtime
1481
+ @assign_notebook_runtime = ::Gapic::Config::Method.new assign_notebook_runtime_config
1482
+ get_notebook_runtime_config = parent_rpcs.get_notebook_runtime if parent_rpcs.respond_to? :get_notebook_runtime
1483
+ @get_notebook_runtime = ::Gapic::Config::Method.new get_notebook_runtime_config
1484
+ list_notebook_runtimes_config = parent_rpcs.list_notebook_runtimes if parent_rpcs.respond_to? :list_notebook_runtimes
1485
+ @list_notebook_runtimes = ::Gapic::Config::Method.new list_notebook_runtimes_config
1486
+ delete_notebook_runtime_config = parent_rpcs.delete_notebook_runtime if parent_rpcs.respond_to? :delete_notebook_runtime
1487
+ @delete_notebook_runtime = ::Gapic::Config::Method.new delete_notebook_runtime_config
1488
+ upgrade_notebook_runtime_config = parent_rpcs.upgrade_notebook_runtime if parent_rpcs.respond_to? :upgrade_notebook_runtime
1489
+ @upgrade_notebook_runtime = ::Gapic::Config::Method.new upgrade_notebook_runtime_config
1490
+ start_notebook_runtime_config = parent_rpcs.start_notebook_runtime if parent_rpcs.respond_to? :start_notebook_runtime
1491
+ @start_notebook_runtime = ::Gapic::Config::Method.new start_notebook_runtime_config
1492
+
1493
+ yield self if block_given?
1494
+ end
1495
+ end
1496
+ end
1497
+ end
1498
+ end
1499
+ end
1500
+ end
1501
+ end
1502
+ end
1503
+ end