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,1076 @@
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/schedule_service_pb"
21
+ require "google/cloud/ai_platform/v1/schedule_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 ScheduleService
30
+ module Rest
31
+ ##
32
+ # REST client for the ScheduleService service.
33
+ #
34
+ # A service for creating and managing Vertex AI's Schedule resources to
35
+ # periodically launch shceudled runs to make API calls.
36
+ #
37
+ class Client
38
+ # @private
39
+ API_VERSION = ""
40
+
41
+ # @private
42
+ DEFAULT_ENDPOINT_TEMPLATE = "aiplatform.$UNIVERSE_DOMAIN$"
43
+
44
+ include Paths
45
+
46
+ # @private
47
+ attr_reader :schedule_service_stub
48
+
49
+ ##
50
+ # Configure the ScheduleService Client class.
51
+ #
52
+ # See {::Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client::Configuration}
53
+ # for a description of the configuration fields.
54
+ #
55
+ # @example
56
+ #
57
+ # # Modify the configuration for all ScheduleService clients
58
+ # ::Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client.configure do |config|
59
+ # config.timeout = 10.0
60
+ # end
61
+ #
62
+ # @yield [config] Configure the Client client.
63
+ # @yieldparam config [Client::Configuration]
64
+ #
65
+ # @return [Client::Configuration]
66
+ #
67
+ def self.configure
68
+ @configure ||= begin
69
+ namespace = ["Google", "Cloud", "AIPlatform", "V1"]
70
+ parent_config = while namespace.any?
71
+ parent_name = namespace.join "::"
72
+ parent_const = const_get parent_name
73
+ break parent_const.configure if parent_const.respond_to? :configure
74
+ namespace.pop
75
+ end
76
+ default_config = Client::Configuration.new parent_config
77
+
78
+ default_config
79
+ end
80
+ yield @configure if block_given?
81
+ @configure
82
+ end
83
+
84
+ ##
85
+ # Configure the ScheduleService Client instance.
86
+ #
87
+ # The configuration is set to the derived mode, meaning that values can be changed,
88
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
89
+ # should be made on {Client.configure}.
90
+ #
91
+ # See {::Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client::Configuration}
92
+ # for a description of the configuration fields.
93
+ #
94
+ # @yield [config] Configure the Client client.
95
+ # @yieldparam config [Client::Configuration]
96
+ #
97
+ # @return [Client::Configuration]
98
+ #
99
+ def configure
100
+ yield @config if block_given?
101
+ @config
102
+ end
103
+
104
+ ##
105
+ # The effective universe domain
106
+ #
107
+ # @return [String]
108
+ #
109
+ def universe_domain
110
+ @schedule_service_stub.universe_domain
111
+ end
112
+
113
+ ##
114
+ # Create a new ScheduleService REST client object.
115
+ #
116
+ # @example
117
+ #
118
+ # # Create a client using the default configuration
119
+ # client = ::Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client.new
120
+ #
121
+ # # Create a client using a custom configuration
122
+ # client = ::Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client.new do |config|
123
+ # config.timeout = 10.0
124
+ # end
125
+ #
126
+ # @yield [config] Configure the ScheduleService client.
127
+ # @yieldparam config [Client::Configuration]
128
+ #
129
+ def initialize
130
+ # Create the configuration object
131
+ @config = Configuration.new Client.configure
132
+
133
+ # Yield the configuration if needed
134
+ yield @config if block_given?
135
+
136
+ # Create credentials
137
+ credentials = @config.credentials
138
+ # Use self-signed JWT if the endpoint is unchanged from default,
139
+ # but only if the default endpoint does not have a region prefix.
140
+ enable_self_signed_jwt = @config.endpoint.nil? ||
141
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
142
+ !@config.endpoint.split(".").first.include?("-"))
143
+ credentials ||= Credentials.default scope: @config.scope,
144
+ enable_self_signed_jwt: enable_self_signed_jwt
145
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
146
+ credentials = Credentials.new credentials, scope: @config.scope
147
+ end
148
+
149
+ @quota_project_id = @config.quota_project
150
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
151
+
152
+ @operations_client = ::Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Operations.new do |config|
153
+ config.credentials = credentials
154
+ config.quota_project = @quota_project_id
155
+ config.endpoint = @config.endpoint
156
+ config.universe_domain = @config.universe_domain
157
+ end
158
+
159
+ @schedule_service_stub = ::Google::Cloud::AIPlatform::V1::ScheduleService::Rest::ServiceStub.new(
160
+ endpoint: @config.endpoint,
161
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
162
+ universe_domain: @config.universe_domain,
163
+ credentials: credentials
164
+ )
165
+
166
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
167
+ config.credentials = credentials
168
+ config.quota_project = @quota_project_id
169
+ config.endpoint = @schedule_service_stub.endpoint
170
+ config.universe_domain = @schedule_service_stub.universe_domain
171
+ config.bindings_override = @config.bindings_override
172
+ end
173
+
174
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
175
+ config.credentials = credentials
176
+ config.quota_project = @quota_project_id
177
+ config.endpoint = @schedule_service_stub.endpoint
178
+ config.universe_domain = @schedule_service_stub.universe_domain
179
+ config.bindings_override = @config.bindings_override
180
+ end
181
+ end
182
+
183
+ ##
184
+ # Get the associated client for long-running operations.
185
+ #
186
+ # @return [::Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Operations]
187
+ #
188
+ attr_reader :operations_client
189
+
190
+ ##
191
+ # Get the associated client for mix-in of the Locations.
192
+ #
193
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
194
+ #
195
+ attr_reader :location_client
196
+
197
+ ##
198
+ # Get the associated client for mix-in of the IAMPolicy.
199
+ #
200
+ # @return [Google::Iam::V1::IAMPolicy::Rest::Client]
201
+ #
202
+ attr_reader :iam_policy_client
203
+
204
+ # Service calls
205
+
206
+ ##
207
+ # Creates a Schedule.
208
+ #
209
+ # @overload create_schedule(request, options = nil)
210
+ # Pass arguments to `create_schedule` via a request object, either of type
211
+ # {::Google::Cloud::AIPlatform::V1::CreateScheduleRequest} or an equivalent Hash.
212
+ #
213
+ # @param request [::Google::Cloud::AIPlatform::V1::CreateScheduleRequest, ::Hash]
214
+ # A request object representing the call parameters. Required. To specify no
215
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
216
+ # @param options [::Gapic::CallOptions, ::Hash]
217
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
218
+ #
219
+ # @overload create_schedule(parent: nil, schedule: nil)
220
+ # Pass arguments to `create_schedule` via keyword arguments. Note that at
221
+ # least one keyword argument is required. To specify no parameters, or to keep all
222
+ # the default parameter values, pass an empty Hash as a request object (see above).
223
+ #
224
+ # @param parent [::String]
225
+ # Required. The resource name of the Location to create the Schedule in.
226
+ # Format: `projects/{project}/locations/{location}`
227
+ # @param schedule [::Google::Cloud::AIPlatform::V1::Schedule, ::Hash]
228
+ # Required. The Schedule to create.
229
+ # @yield [result, operation] Access the result along with the TransportOperation object
230
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::Schedule]
231
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
232
+ #
233
+ # @return [::Google::Cloud::AIPlatform::V1::Schedule]
234
+ #
235
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
236
+ #
237
+ # @example Basic example
238
+ # require "google/cloud/ai_platform/v1"
239
+ #
240
+ # # Create a client object. The client can be reused for multiple calls.
241
+ # client = Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client.new
242
+ #
243
+ # # Create a request. To set request fields, pass in keyword arguments.
244
+ # request = Google::Cloud::AIPlatform::V1::CreateScheduleRequest.new
245
+ #
246
+ # # Call the create_schedule method.
247
+ # result = client.create_schedule request
248
+ #
249
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::Schedule.
250
+ # p result
251
+ #
252
+ def create_schedule request, options = nil
253
+ raise ::ArgumentError, "request must be provided" if request.nil?
254
+
255
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateScheduleRequest
256
+
257
+ # Converts hash and nil to an options object
258
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
259
+
260
+ # Customize the options with defaults
261
+ call_metadata = @config.rpcs.create_schedule.metadata.to_h
262
+
263
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
264
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
265
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
266
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
267
+ transports_version_send: [:rest]
268
+
269
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
270
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
271
+
272
+ options.apply_defaults timeout: @config.rpcs.create_schedule.timeout,
273
+ metadata: call_metadata,
274
+ retry_policy: @config.rpcs.create_schedule.retry_policy
275
+
276
+ options.apply_defaults timeout: @config.timeout,
277
+ metadata: @config.metadata,
278
+ retry_policy: @config.retry_policy
279
+
280
+ @schedule_service_stub.create_schedule request, options do |result, operation|
281
+ yield result, operation if block_given?
282
+ return result
283
+ end
284
+ rescue ::Gapic::Rest::Error => e
285
+ raise ::Google::Cloud::Error.from_error(e)
286
+ end
287
+
288
+ ##
289
+ # Deletes a Schedule.
290
+ #
291
+ # @overload delete_schedule(request, options = nil)
292
+ # Pass arguments to `delete_schedule` via a request object, either of type
293
+ # {::Google::Cloud::AIPlatform::V1::DeleteScheduleRequest} or an equivalent Hash.
294
+ #
295
+ # @param request [::Google::Cloud::AIPlatform::V1::DeleteScheduleRequest, ::Hash]
296
+ # A request object representing the call parameters. Required. To specify no
297
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
298
+ # @param options [::Gapic::CallOptions, ::Hash]
299
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
300
+ #
301
+ # @overload delete_schedule(name: nil)
302
+ # Pass arguments to `delete_schedule` via keyword arguments. Note that at
303
+ # least one keyword argument is required. To specify no parameters, or to keep all
304
+ # the default parameter values, pass an empty Hash as a request object (see above).
305
+ #
306
+ # @param name [::String]
307
+ # Required. The name of the Schedule resource to be deleted.
308
+ # Format:
309
+ # `projects/{project}/locations/{location}/schedules/{schedule}`
310
+ # @yield [result, operation] Access the result along with the TransportOperation object
311
+ # @yieldparam result [::Gapic::Operation]
312
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
313
+ #
314
+ # @return [::Gapic::Operation]
315
+ #
316
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
317
+ #
318
+ # @example Basic example
319
+ # require "google/cloud/ai_platform/v1"
320
+ #
321
+ # # Create a client object. The client can be reused for multiple calls.
322
+ # client = Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client.new
323
+ #
324
+ # # Create a request. To set request fields, pass in keyword arguments.
325
+ # request = Google::Cloud::AIPlatform::V1::DeleteScheduleRequest.new
326
+ #
327
+ # # Call the delete_schedule method.
328
+ # result = client.delete_schedule request
329
+ #
330
+ # # The returned object is of type Gapic::Operation. You can use it to
331
+ # # check the status of an operation, cancel it, or wait for results.
332
+ # # Here is how to wait for a response.
333
+ # result.wait_until_done! timeout: 60
334
+ # if result.response?
335
+ # p result.response
336
+ # else
337
+ # puts "No response received."
338
+ # end
339
+ #
340
+ def delete_schedule request, options = nil
341
+ raise ::ArgumentError, "request must be provided" if request.nil?
342
+
343
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteScheduleRequest
344
+
345
+ # Converts hash and nil to an options object
346
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
347
+
348
+ # Customize the options with defaults
349
+ call_metadata = @config.rpcs.delete_schedule.metadata.to_h
350
+
351
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
352
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
353
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
354
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
355
+ transports_version_send: [:rest]
356
+
357
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
358
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
359
+
360
+ options.apply_defaults timeout: @config.rpcs.delete_schedule.timeout,
361
+ metadata: call_metadata,
362
+ retry_policy: @config.rpcs.delete_schedule.retry_policy
363
+
364
+ options.apply_defaults timeout: @config.timeout,
365
+ metadata: @config.metadata,
366
+ retry_policy: @config.retry_policy
367
+
368
+ @schedule_service_stub.delete_schedule request, options do |result, operation|
369
+ result = ::Gapic::Operation.new result, @operations_client, options: options
370
+ yield result, operation if block_given?
371
+ return result
372
+ end
373
+ rescue ::Gapic::Rest::Error => e
374
+ raise ::Google::Cloud::Error.from_error(e)
375
+ end
376
+
377
+ ##
378
+ # Gets a Schedule.
379
+ #
380
+ # @overload get_schedule(request, options = nil)
381
+ # Pass arguments to `get_schedule` via a request object, either of type
382
+ # {::Google::Cloud::AIPlatform::V1::GetScheduleRequest} or an equivalent Hash.
383
+ #
384
+ # @param request [::Google::Cloud::AIPlatform::V1::GetScheduleRequest, ::Hash]
385
+ # A request object representing the call parameters. Required. To specify no
386
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
387
+ # @param options [::Gapic::CallOptions, ::Hash]
388
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
389
+ #
390
+ # @overload get_schedule(name: nil)
391
+ # Pass arguments to `get_schedule` via keyword arguments. Note that at
392
+ # least one keyword argument is required. To specify no parameters, or to keep all
393
+ # the default parameter values, pass an empty Hash as a request object (see above).
394
+ #
395
+ # @param name [::String]
396
+ # Required. The name of the Schedule resource.
397
+ # Format:
398
+ # `projects/{project}/locations/{location}/schedules/{schedule}`
399
+ # @yield [result, operation] Access the result along with the TransportOperation object
400
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::Schedule]
401
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
402
+ #
403
+ # @return [::Google::Cloud::AIPlatform::V1::Schedule]
404
+ #
405
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
406
+ #
407
+ # @example Basic example
408
+ # require "google/cloud/ai_platform/v1"
409
+ #
410
+ # # Create a client object. The client can be reused for multiple calls.
411
+ # client = Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client.new
412
+ #
413
+ # # Create a request. To set request fields, pass in keyword arguments.
414
+ # request = Google::Cloud::AIPlatform::V1::GetScheduleRequest.new
415
+ #
416
+ # # Call the get_schedule method.
417
+ # result = client.get_schedule request
418
+ #
419
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::Schedule.
420
+ # p result
421
+ #
422
+ def get_schedule request, options = nil
423
+ raise ::ArgumentError, "request must be provided" if request.nil?
424
+
425
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetScheduleRequest
426
+
427
+ # Converts hash and nil to an options object
428
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
429
+
430
+ # Customize the options with defaults
431
+ call_metadata = @config.rpcs.get_schedule.metadata.to_h
432
+
433
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
434
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
435
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
436
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
437
+ transports_version_send: [:rest]
438
+
439
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
440
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
441
+
442
+ options.apply_defaults timeout: @config.rpcs.get_schedule.timeout,
443
+ metadata: call_metadata,
444
+ retry_policy: @config.rpcs.get_schedule.retry_policy
445
+
446
+ options.apply_defaults timeout: @config.timeout,
447
+ metadata: @config.metadata,
448
+ retry_policy: @config.retry_policy
449
+
450
+ @schedule_service_stub.get_schedule request, options do |result, operation|
451
+ yield result, operation if block_given?
452
+ return result
453
+ end
454
+ rescue ::Gapic::Rest::Error => e
455
+ raise ::Google::Cloud::Error.from_error(e)
456
+ end
457
+
458
+ ##
459
+ # Lists Schedules in a Location.
460
+ #
461
+ # @overload list_schedules(request, options = nil)
462
+ # Pass arguments to `list_schedules` via a request object, either of type
463
+ # {::Google::Cloud::AIPlatform::V1::ListSchedulesRequest} or an equivalent Hash.
464
+ #
465
+ # @param request [::Google::Cloud::AIPlatform::V1::ListSchedulesRequest, ::Hash]
466
+ # A request object representing the call parameters. Required. To specify no
467
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
468
+ # @param options [::Gapic::CallOptions, ::Hash]
469
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
470
+ #
471
+ # @overload list_schedules(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil)
472
+ # Pass arguments to `list_schedules` via keyword arguments. Note that at
473
+ # least one keyword argument is required. To specify no parameters, or to keep all
474
+ # the default parameter values, pass an empty Hash as a request object (see above).
475
+ #
476
+ # @param parent [::String]
477
+ # Required. The resource name of the Location to list the Schedules from.
478
+ # Format: `projects/{project}/locations/{location}`
479
+ # @param filter [::String]
480
+ # Lists the Schedules that match the filter expression. The following
481
+ # fields are supported:
482
+ #
483
+ # * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard.
484
+ # * `state`: Supports `=` and `!=` comparisons.
485
+ # * `request`: Supports existence of the <request_type> check.
486
+ # (e.g. `create_pipeline_job_request:*` --> Schedule has
487
+ # create_pipeline_job_request).
488
+ # * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
489
+ # Values must be in RFC 3339 format.
490
+ # * `start_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
491
+ # Values must be in RFC 3339 format.
492
+ # * `end_time`: Supports `=`, `!=`, `<`, `>`, `<=`, `>=` comparisons and `:*`
493
+ # existence check. Values must be in RFC 3339 format.
494
+ # * `next_run_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=`
495
+ # comparisons. Values must be in RFC 3339 format.
496
+ #
497
+ #
498
+ # Filter expressions can be combined together using logical operators
499
+ # (`NOT`, `AND` & `OR`).
500
+ # The syntax to define filter expression is based on
501
+ # https://google.aip.dev/160.
502
+ #
503
+ # Examples:
504
+ #
505
+ # * `state="ACTIVE" AND display_name:"my_schedule_*"`
506
+ # * `NOT display_name="my_schedule"`
507
+ # * `create_time>"2021-05-18T00:00:00Z"`
508
+ # * `end_time>"2021-05-18T00:00:00Z" OR NOT end_time:*`
509
+ # * `create_pipeline_job_request:*`
510
+ # @param page_size [::Integer]
511
+ # The standard list page size.
512
+ # Default to 100 if not specified.
513
+ # @param page_token [::String]
514
+ # The standard list page token.
515
+ # Typically obtained via
516
+ # {::Google::Cloud::AIPlatform::V1::ListSchedulesResponse#next_page_token ListSchedulesResponse.next_page_token}
517
+ # of the previous
518
+ # {::Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client#list_schedules ScheduleService.ListSchedules}
519
+ # call.
520
+ # @param order_by [::String]
521
+ # A comma-separated list of fields to order by. The default sort order is in
522
+ # ascending order. Use "desc" after a field name for descending. You can have
523
+ # multiple order_by fields provided.
524
+ #
525
+ # For example, using "create_time desc, end_time" will order results by
526
+ # create time in descending order, and if there are multiple schedules having
527
+ # the same create time, order them by the end time in ascending order.
528
+ #
529
+ # If order_by is not specified, it will order by default with create_time in
530
+ # descending order.
531
+ #
532
+ # Supported fields:
533
+ #
534
+ # * `create_time`
535
+ # * `start_time`
536
+ # * `end_time`
537
+ # * `next_run_time`
538
+ # @yield [result, operation] Access the result along with the TransportOperation object
539
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::Schedule>]
540
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
541
+ #
542
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AIPlatform::V1::Schedule>]
543
+ #
544
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
545
+ #
546
+ # @example Basic example
547
+ # require "google/cloud/ai_platform/v1"
548
+ #
549
+ # # Create a client object. The client can be reused for multiple calls.
550
+ # client = Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client.new
551
+ #
552
+ # # Create a request. To set request fields, pass in keyword arguments.
553
+ # request = Google::Cloud::AIPlatform::V1::ListSchedulesRequest.new
554
+ #
555
+ # # Call the list_schedules method.
556
+ # result = client.list_schedules request
557
+ #
558
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
559
+ # # over elements, and API calls will be issued to fetch pages as needed.
560
+ # result.each do |item|
561
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::Schedule.
562
+ # p item
563
+ # end
564
+ #
565
+ def list_schedules request, options = nil
566
+ raise ::ArgumentError, "request must be provided" if request.nil?
567
+
568
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListSchedulesRequest
569
+
570
+ # Converts hash and nil to an options object
571
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
572
+
573
+ # Customize the options with defaults
574
+ call_metadata = @config.rpcs.list_schedules.metadata.to_h
575
+
576
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
577
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
578
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
579
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
580
+ transports_version_send: [:rest]
581
+
582
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
583
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
584
+
585
+ options.apply_defaults timeout: @config.rpcs.list_schedules.timeout,
586
+ metadata: call_metadata,
587
+ retry_policy: @config.rpcs.list_schedules.retry_policy
588
+
589
+ options.apply_defaults timeout: @config.timeout,
590
+ metadata: @config.metadata,
591
+ retry_policy: @config.retry_policy
592
+
593
+ @schedule_service_stub.list_schedules request, options do |result, operation|
594
+ result = ::Gapic::Rest::PagedEnumerable.new @schedule_service_stub, :list_schedules, "schedules", request, result, options
595
+ yield result, operation if block_given?
596
+ return result
597
+ end
598
+ rescue ::Gapic::Rest::Error => e
599
+ raise ::Google::Cloud::Error.from_error(e)
600
+ end
601
+
602
+ ##
603
+ # Pauses a Schedule. Will mark
604
+ # {::Google::Cloud::AIPlatform::V1::Schedule#state Schedule.state} to 'PAUSED'. If
605
+ # the schedule is paused, no new runs will be created. Already created runs
606
+ # will NOT be paused or canceled.
607
+ #
608
+ # @overload pause_schedule(request, options = nil)
609
+ # Pass arguments to `pause_schedule` via a request object, either of type
610
+ # {::Google::Cloud::AIPlatform::V1::PauseScheduleRequest} or an equivalent Hash.
611
+ #
612
+ # @param request [::Google::Cloud::AIPlatform::V1::PauseScheduleRequest, ::Hash]
613
+ # A request object representing the call parameters. Required. To specify no
614
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
615
+ # @param options [::Gapic::CallOptions, ::Hash]
616
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
617
+ #
618
+ # @overload pause_schedule(name: nil)
619
+ # Pass arguments to `pause_schedule` via keyword arguments. Note that at
620
+ # least one keyword argument is required. To specify no parameters, or to keep all
621
+ # the default parameter values, pass an empty Hash as a request object (see above).
622
+ #
623
+ # @param name [::String]
624
+ # Required. The name of the Schedule resource to be paused.
625
+ # Format:
626
+ # `projects/{project}/locations/{location}/schedules/{schedule}`
627
+ # @yield [result, operation] Access the result along with the TransportOperation object
628
+ # @yieldparam result [::Google::Protobuf::Empty]
629
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
630
+ #
631
+ # @return [::Google::Protobuf::Empty]
632
+ #
633
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
634
+ #
635
+ # @example Basic example
636
+ # require "google/cloud/ai_platform/v1"
637
+ #
638
+ # # Create a client object. The client can be reused for multiple calls.
639
+ # client = Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client.new
640
+ #
641
+ # # Create a request. To set request fields, pass in keyword arguments.
642
+ # request = Google::Cloud::AIPlatform::V1::PauseScheduleRequest.new
643
+ #
644
+ # # Call the pause_schedule method.
645
+ # result = client.pause_schedule request
646
+ #
647
+ # # The returned object is of type Google::Protobuf::Empty.
648
+ # p result
649
+ #
650
+ def pause_schedule request, options = nil
651
+ raise ::ArgumentError, "request must be provided" if request.nil?
652
+
653
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::PauseScheduleRequest
654
+
655
+ # Converts hash and nil to an options object
656
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
657
+
658
+ # Customize the options with defaults
659
+ call_metadata = @config.rpcs.pause_schedule.metadata.to_h
660
+
661
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
662
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
663
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
664
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
665
+ transports_version_send: [:rest]
666
+
667
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
668
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
669
+
670
+ options.apply_defaults timeout: @config.rpcs.pause_schedule.timeout,
671
+ metadata: call_metadata,
672
+ retry_policy: @config.rpcs.pause_schedule.retry_policy
673
+
674
+ options.apply_defaults timeout: @config.timeout,
675
+ metadata: @config.metadata,
676
+ retry_policy: @config.retry_policy
677
+
678
+ @schedule_service_stub.pause_schedule request, options do |result, operation|
679
+ yield result, operation if block_given?
680
+ return result
681
+ end
682
+ rescue ::Gapic::Rest::Error => e
683
+ raise ::Google::Cloud::Error.from_error(e)
684
+ end
685
+
686
+ ##
687
+ # Resumes a paused Schedule to start scheduling new runs. Will mark
688
+ # {::Google::Cloud::AIPlatform::V1::Schedule#state Schedule.state} to 'ACTIVE'.
689
+ # Only paused Schedule can be resumed.
690
+ #
691
+ # When the Schedule is resumed, new runs will be scheduled starting from the
692
+ # next execution time after the current time based on the time_specification
693
+ # in the Schedule. If [Schedule.catchUp][] is set up true, all
694
+ # missed runs will be scheduled for backfill first.
695
+ #
696
+ # @overload resume_schedule(request, options = nil)
697
+ # Pass arguments to `resume_schedule` via a request object, either of type
698
+ # {::Google::Cloud::AIPlatform::V1::ResumeScheduleRequest} or an equivalent Hash.
699
+ #
700
+ # @param request [::Google::Cloud::AIPlatform::V1::ResumeScheduleRequest, ::Hash]
701
+ # A request object representing the call parameters. Required. To specify no
702
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
703
+ # @param options [::Gapic::CallOptions, ::Hash]
704
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
705
+ #
706
+ # @overload resume_schedule(name: nil, catch_up: nil)
707
+ # Pass arguments to `resume_schedule` via keyword arguments. Note that at
708
+ # least one keyword argument is required. To specify no parameters, or to keep all
709
+ # the default parameter values, pass an empty Hash as a request object (see above).
710
+ #
711
+ # @param name [::String]
712
+ # Required. The name of the Schedule resource to be resumed.
713
+ # Format:
714
+ # `projects/{project}/locations/{location}/schedules/{schedule}`
715
+ # @param catch_up [::Boolean]
716
+ # Optional. Whether to backfill missed runs when the schedule is resumed from
717
+ # PAUSED state. If set to true, all missed runs will be scheduled. New runs
718
+ # will be scheduled after the backfill is complete. This will also update
719
+ # {::Google::Cloud::AIPlatform::V1::Schedule#catch_up Schedule.catch_up} field.
720
+ # Default to false.
721
+ # @yield [result, operation] Access the result along with the TransportOperation object
722
+ # @yieldparam result [::Google::Protobuf::Empty]
723
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
724
+ #
725
+ # @return [::Google::Protobuf::Empty]
726
+ #
727
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
728
+ #
729
+ # @example Basic example
730
+ # require "google/cloud/ai_platform/v1"
731
+ #
732
+ # # Create a client object. The client can be reused for multiple calls.
733
+ # client = Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client.new
734
+ #
735
+ # # Create a request. To set request fields, pass in keyword arguments.
736
+ # request = Google::Cloud::AIPlatform::V1::ResumeScheduleRequest.new
737
+ #
738
+ # # Call the resume_schedule method.
739
+ # result = client.resume_schedule request
740
+ #
741
+ # # The returned object is of type Google::Protobuf::Empty.
742
+ # p result
743
+ #
744
+ def resume_schedule request, options = nil
745
+ raise ::ArgumentError, "request must be provided" if request.nil?
746
+
747
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ResumeScheduleRequest
748
+
749
+ # Converts hash and nil to an options object
750
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
751
+
752
+ # Customize the options with defaults
753
+ call_metadata = @config.rpcs.resume_schedule.metadata.to_h
754
+
755
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
756
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
757
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
758
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
759
+ transports_version_send: [:rest]
760
+
761
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
762
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
763
+
764
+ options.apply_defaults timeout: @config.rpcs.resume_schedule.timeout,
765
+ metadata: call_metadata,
766
+ retry_policy: @config.rpcs.resume_schedule.retry_policy
767
+
768
+ options.apply_defaults timeout: @config.timeout,
769
+ metadata: @config.metadata,
770
+ retry_policy: @config.retry_policy
771
+
772
+ @schedule_service_stub.resume_schedule request, options do |result, operation|
773
+ yield result, operation if block_given?
774
+ return result
775
+ end
776
+ rescue ::Gapic::Rest::Error => e
777
+ raise ::Google::Cloud::Error.from_error(e)
778
+ end
779
+
780
+ ##
781
+ # Updates an active or paused Schedule.
782
+ #
783
+ # When the Schedule is updated, new runs will be scheduled starting from the
784
+ # updated next execution time after the update time based on the
785
+ # time_specification in the updated Schedule. All unstarted runs before the
786
+ # update time will be skipped while already created runs will NOT be paused
787
+ # or canceled.
788
+ #
789
+ # @overload update_schedule(request, options = nil)
790
+ # Pass arguments to `update_schedule` via a request object, either of type
791
+ # {::Google::Cloud::AIPlatform::V1::UpdateScheduleRequest} or an equivalent Hash.
792
+ #
793
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateScheduleRequest, ::Hash]
794
+ # A request object representing the call parameters. Required. To specify no
795
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
796
+ # @param options [::Gapic::CallOptions, ::Hash]
797
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
798
+ #
799
+ # @overload update_schedule(schedule: nil, update_mask: nil)
800
+ # Pass arguments to `update_schedule` via keyword arguments. Note that at
801
+ # least one keyword argument is required. To specify no parameters, or to keep all
802
+ # the default parameter values, pass an empty Hash as a request object (see above).
803
+ #
804
+ # @param schedule [::Google::Cloud::AIPlatform::V1::Schedule, ::Hash]
805
+ # Required. The Schedule which replaces the resource on the server.
806
+ # The following restrictions will be applied:
807
+ #
808
+ # * The scheduled request type cannot be changed.
809
+ # * The non-empty fields cannot be unset.
810
+ # * The output_only fields will be ignored if specified.
811
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
812
+ # Required. The update mask applies to the resource. See
813
+ # {::Google::Protobuf::FieldMask google.protobuf.FieldMask}.
814
+ # @yield [result, operation] Access the result along with the TransportOperation object
815
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::Schedule]
816
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
817
+ #
818
+ # @return [::Google::Cloud::AIPlatform::V1::Schedule]
819
+ #
820
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
821
+ #
822
+ # @example Basic example
823
+ # require "google/cloud/ai_platform/v1"
824
+ #
825
+ # # Create a client object. The client can be reused for multiple calls.
826
+ # client = Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client.new
827
+ #
828
+ # # Create a request. To set request fields, pass in keyword arguments.
829
+ # request = Google::Cloud::AIPlatform::V1::UpdateScheduleRequest.new
830
+ #
831
+ # # Call the update_schedule method.
832
+ # result = client.update_schedule request
833
+ #
834
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::Schedule.
835
+ # p result
836
+ #
837
+ def update_schedule request, options = nil
838
+ raise ::ArgumentError, "request must be provided" if request.nil?
839
+
840
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateScheduleRequest
841
+
842
+ # Converts hash and nil to an options object
843
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
844
+
845
+ # Customize the options with defaults
846
+ call_metadata = @config.rpcs.update_schedule.metadata.to_h
847
+
848
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
849
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
850
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
851
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
852
+ transports_version_send: [:rest]
853
+
854
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
855
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
856
+
857
+ options.apply_defaults timeout: @config.rpcs.update_schedule.timeout,
858
+ metadata: call_metadata,
859
+ retry_policy: @config.rpcs.update_schedule.retry_policy
860
+
861
+ options.apply_defaults timeout: @config.timeout,
862
+ metadata: @config.metadata,
863
+ retry_policy: @config.retry_policy
864
+
865
+ @schedule_service_stub.update_schedule request, options do |result, operation|
866
+ yield result, operation if block_given?
867
+ return result
868
+ end
869
+ rescue ::Gapic::Rest::Error => e
870
+ raise ::Google::Cloud::Error.from_error(e)
871
+ end
872
+
873
+ ##
874
+ # Configuration class for the ScheduleService REST API.
875
+ #
876
+ # This class represents the configuration for ScheduleService REST,
877
+ # providing control over timeouts, retry behavior, logging, transport
878
+ # parameters, and other low-level controls. Certain parameters can also be
879
+ # applied individually to specific RPCs. See
880
+ # {::Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client::Configuration::Rpcs}
881
+ # for a list of RPCs that can be configured independently.
882
+ #
883
+ # Configuration can be applied globally to all clients, or to a single client
884
+ # on construction.
885
+ #
886
+ # @example
887
+ #
888
+ # # Modify the global config, setting the timeout for
889
+ # # create_schedule to 20 seconds,
890
+ # # and all remaining timeouts to 10 seconds.
891
+ # ::Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client.configure do |config|
892
+ # config.timeout = 10.0
893
+ # config.rpcs.create_schedule.timeout = 20.0
894
+ # end
895
+ #
896
+ # # Apply the above configuration only to a new client.
897
+ # client = ::Google::Cloud::AIPlatform::V1::ScheduleService::Rest::Client.new do |config|
898
+ # config.timeout = 10.0
899
+ # config.rpcs.create_schedule.timeout = 20.0
900
+ # end
901
+ #
902
+ # @!attribute [rw] endpoint
903
+ # A custom service endpoint, as a hostname or hostname:port. The default is
904
+ # nil, indicating to use the default endpoint in the current universe domain.
905
+ # @return [::String,nil]
906
+ # @!attribute [rw] credentials
907
+ # Credentials to send with calls. You may provide any of the following types:
908
+ # * (`String`) The path to a service account key file in JSON format
909
+ # * (`Hash`) A service account key as a Hash
910
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
911
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
912
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
913
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
914
+ # * (`nil`) indicating no credentials
915
+ # @return [::Object]
916
+ # @!attribute [rw] scope
917
+ # The OAuth scopes
918
+ # @return [::Array<::String>]
919
+ # @!attribute [rw] lib_name
920
+ # The library name as recorded in instrumentation and logging
921
+ # @return [::String]
922
+ # @!attribute [rw] lib_version
923
+ # The library version as recorded in instrumentation and logging
924
+ # @return [::String]
925
+ # @!attribute [rw] timeout
926
+ # The call timeout in seconds.
927
+ # @return [::Numeric]
928
+ # @!attribute [rw] metadata
929
+ # Additional headers to be sent with the call.
930
+ # @return [::Hash{::Symbol=>::String}]
931
+ # @!attribute [rw] retry_policy
932
+ # The retry policy. The value is a hash with the following keys:
933
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
934
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
935
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
936
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
937
+ # trigger a retry.
938
+ # @return [::Hash]
939
+ # @!attribute [rw] quota_project
940
+ # A separate project against which to charge quota.
941
+ # @return [::String]
942
+ # @!attribute [rw] universe_domain
943
+ # The universe domain within which to make requests. This determines the
944
+ # default endpoint URL. The default value of nil uses the environment
945
+ # universe (usually the default "googleapis.com" universe).
946
+ # @return [::String,nil]
947
+ #
948
+ class Configuration
949
+ extend ::Gapic::Config
950
+
951
+ # @private
952
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
953
+ DEFAULT_ENDPOINT = "aiplatform.googleapis.com"
954
+
955
+ config_attr :endpoint, nil, ::String, nil
956
+ config_attr :credentials, nil do |value|
957
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
958
+ allowed.any? { |klass| klass === value }
959
+ end
960
+ config_attr :scope, nil, ::String, ::Array, nil
961
+ config_attr :lib_name, nil, ::String, nil
962
+ config_attr :lib_version, nil, ::String, nil
963
+ config_attr :timeout, nil, ::Numeric, nil
964
+ config_attr :metadata, nil, ::Hash, nil
965
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
966
+ config_attr :quota_project, nil, ::String, nil
967
+ config_attr :universe_domain, nil, ::String, nil
968
+
969
+ # @private
970
+ # Overrides for http bindings for the RPCs of this service
971
+ # are only used when this service is used as mixin, and only
972
+ # by the host service.
973
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
974
+ config_attr :bindings_override, {}, ::Hash, nil
975
+
976
+ # @private
977
+ def initialize parent_config = nil
978
+ @parent_config = parent_config unless parent_config.nil?
979
+
980
+ yield self if block_given?
981
+ end
982
+
983
+ ##
984
+ # Configurations for individual RPCs
985
+ # @return [Rpcs]
986
+ #
987
+ def rpcs
988
+ @rpcs ||= begin
989
+ parent_rpcs = nil
990
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
991
+ Rpcs.new parent_rpcs
992
+ end
993
+ end
994
+
995
+ ##
996
+ # Configuration RPC class for the ScheduleService API.
997
+ #
998
+ # Includes fields providing the configuration for each RPC in this service.
999
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1000
+ # the following configuration fields:
1001
+ #
1002
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1003
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
1004
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1005
+ # include the following keys:
1006
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1007
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1008
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1009
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1010
+ # trigger a retry.
1011
+ #
1012
+ class Rpcs
1013
+ ##
1014
+ # RPC-specific configuration for `create_schedule`
1015
+ # @return [::Gapic::Config::Method]
1016
+ #
1017
+ attr_reader :create_schedule
1018
+ ##
1019
+ # RPC-specific configuration for `delete_schedule`
1020
+ # @return [::Gapic::Config::Method]
1021
+ #
1022
+ attr_reader :delete_schedule
1023
+ ##
1024
+ # RPC-specific configuration for `get_schedule`
1025
+ # @return [::Gapic::Config::Method]
1026
+ #
1027
+ attr_reader :get_schedule
1028
+ ##
1029
+ # RPC-specific configuration for `list_schedules`
1030
+ # @return [::Gapic::Config::Method]
1031
+ #
1032
+ attr_reader :list_schedules
1033
+ ##
1034
+ # RPC-specific configuration for `pause_schedule`
1035
+ # @return [::Gapic::Config::Method]
1036
+ #
1037
+ attr_reader :pause_schedule
1038
+ ##
1039
+ # RPC-specific configuration for `resume_schedule`
1040
+ # @return [::Gapic::Config::Method]
1041
+ #
1042
+ attr_reader :resume_schedule
1043
+ ##
1044
+ # RPC-specific configuration for `update_schedule`
1045
+ # @return [::Gapic::Config::Method]
1046
+ #
1047
+ attr_reader :update_schedule
1048
+
1049
+ # @private
1050
+ def initialize parent_rpcs = nil
1051
+ create_schedule_config = parent_rpcs.create_schedule if parent_rpcs.respond_to? :create_schedule
1052
+ @create_schedule = ::Gapic::Config::Method.new create_schedule_config
1053
+ delete_schedule_config = parent_rpcs.delete_schedule if parent_rpcs.respond_to? :delete_schedule
1054
+ @delete_schedule = ::Gapic::Config::Method.new delete_schedule_config
1055
+ get_schedule_config = parent_rpcs.get_schedule if parent_rpcs.respond_to? :get_schedule
1056
+ @get_schedule = ::Gapic::Config::Method.new get_schedule_config
1057
+ list_schedules_config = parent_rpcs.list_schedules if parent_rpcs.respond_to? :list_schedules
1058
+ @list_schedules = ::Gapic::Config::Method.new list_schedules_config
1059
+ pause_schedule_config = parent_rpcs.pause_schedule if parent_rpcs.respond_to? :pause_schedule
1060
+ @pause_schedule = ::Gapic::Config::Method.new pause_schedule_config
1061
+ resume_schedule_config = parent_rpcs.resume_schedule if parent_rpcs.respond_to? :resume_schedule
1062
+ @resume_schedule = ::Gapic::Config::Method.new resume_schedule_config
1063
+ update_schedule_config = parent_rpcs.update_schedule if parent_rpcs.respond_to? :update_schedule
1064
+ @update_schedule = ::Gapic::Config::Method.new update_schedule_config
1065
+
1066
+ yield self if block_given?
1067
+ end
1068
+ end
1069
+ end
1070
+ end
1071
+ end
1072
+ end
1073
+ end
1074
+ end
1075
+ end
1076
+ end