google-api-client 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/api_names.yaml +42335 -1
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
  14. data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
  15. data/generated/google/apis/admin_directory_v1/service.rb +61 -61
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +403 -403
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
  24. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  25. data/generated/google/apis/appengine_v1.rb +6 -5
  26. data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
  27. data/generated/google/apis/appengine_v1/representations.rb +331 -331
  28. data/generated/google/apis/appengine_v1/service.rb +173 -168
  29. data/generated/google/apis/appstate_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
  36. data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
  37. data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
  38. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  39. data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
  40. data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
  41. data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
  42. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  43. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
  44. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
  45. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
  46. data/generated/google/apis/cloudfunctions_v1.rb +1 -4
  47. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
  48. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
  49. data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
  50. data/generated/google/apis/cloudkms_v1.rb +1 -1
  51. data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
  52. data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
  53. data/generated/google/apis/cloudkms_v1/service.rb +272 -272
  54. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
  63. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
  66. data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +194 -25
  69. data/generated/google/apis/compute_beta/representations.rb +42 -0
  70. data/generated/google/apis/compute_beta/service.rb +196 -100
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +69 -18
  73. data/generated/google/apis/compute_v1/representations.rb +16 -0
  74. data/generated/google/apis/compute_v1/service.rb +84 -26
  75. data/generated/google/apis/container_v1.rb +3 -3
  76. data/generated/google/apis/container_v1/classes.rb +794 -586
  77. data/generated/google/apis/container_v1/representations.rb +202 -118
  78. data/generated/google/apis/container_v1/service.rb +396 -167
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +4 -4
  81. data/generated/google/apis/dataproc_v1.rb +1 -1
  82. data/generated/google/apis/dataproc_v1/classes.rb +487 -484
  83. data/generated/google/apis/dataproc_v1/representations.rb +83 -83
  84. data/generated/google/apis/dataproc_v1/service.rb +299 -297
  85. data/generated/google/apis/datastore_v1.rb +1 -1
  86. data/generated/google/apis/datastore_v1/classes.rb +703 -703
  87. data/generated/google/apis/datastore_v1/representations.rb +148 -148
  88. data/generated/google/apis/datastore_v1/service.rb +62 -62
  89. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  90. data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -5
  91. data/generated/google/apis/dfareporting_v2_6.rb +1 -1
  92. data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
  93. data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
  94. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  95. data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
  96. data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
  97. data/generated/google/apis/dfareporting_v2_8.rb +40 -0
  98. data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
  99. data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
  100. data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
  101. data/generated/google/apis/dns_v1.rb +1 -1
  102. data/generated/google/apis/dns_v2beta1.rb +1 -1
  103. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2.rb +1 -1
  105. data/generated/google/apis/drive_v2/classes.rb +15 -0
  106. data/generated/google/apis/drive_v2/representations.rb +2 -0
  107. data/generated/google/apis/drive_v2/service.rb +2 -1
  108. data/generated/google/apis/drive_v3.rb +1 -1
  109. data/generated/google/apis/drive_v3/classes.rb +16 -0
  110. data/generated/google/apis/drive_v3/representations.rb +2 -0
  111. data/generated/google/apis/drive_v3/service.rb +2 -1
  112. data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
  113. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
  114. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
  115. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
  116. data/generated/google/apis/firebaserules_v1.rb +1 -1
  117. data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
  118. data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
  119. data/generated/google/apis/firebaserules_v1/service.rb +118 -118
  120. data/generated/google/apis/fusiontables_v2.rb +1 -1
  121. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  122. data/generated/google/apis/games_management_v1management.rb +1 -1
  123. data/generated/google/apis/games_v1.rb +1 -1
  124. data/generated/google/apis/genomics_v1.rb +1 -1
  125. data/generated/google/apis/genomics_v1/classes.rb +920 -920
  126. data/generated/google/apis/genomics_v1/representations.rb +202 -202
  127. data/generated/google/apis/genomics_v1/service.rb +1092 -1092
  128. data/generated/google/apis/gmail_v1.rb +1 -1
  129. data/generated/google/apis/iam_v1.rb +1 -1
  130. data/generated/google/apis/iam_v1/classes.rb +455 -435
  131. data/generated/google/apis/iam_v1/representations.rb +96 -93
  132. data/generated/google/apis/iam_v1/service.rb +157 -157
  133. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  134. data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
  135. data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
  136. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  137. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  138. data/generated/google/apis/kgsearch_v1/service.rb +9 -9
  139. data/generated/google/apis/language_v1.rb +1 -1
  140. data/generated/google/apis/language_v1/classes.rb +455 -455
  141. data/generated/google/apis/language_v1/representations.rb +102 -102
  142. data/generated/google/apis/language_v1/service.rb +42 -42
  143. data/generated/google/apis/language_v1beta1.rb +1 -1
  144. data/generated/google/apis/language_v1beta1/classes.rb +216 -215
  145. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  146. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  147. data/generated/google/apis/logging_v2.rb +1 -1
  148. data/generated/google/apis/logging_v2/classes.rb +908 -895
  149. data/generated/google/apis/logging_v2/representations.rb +121 -120
  150. data/generated/google/apis/logging_v2/service.rb +489 -489
  151. data/generated/google/apis/logging_v2beta1.rb +4 -4
  152. data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
  153. data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
  154. data/generated/google/apis/logging_v2beta1/service.rb +249 -249
  155. data/generated/google/apis/manufacturers_v1.rb +1 -1
  156. data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
  157. data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
  158. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  159. data/generated/google/apis/mirror_v1.rb +1 -1
  160. data/generated/google/apis/ml_v1.rb +1 -1
  161. data/generated/google/apis/ml_v1/classes.rb +1186 -1183
  162. data/generated/google/apis/ml_v1/representations.rb +177 -177
  163. data/generated/google/apis/ml_v1/service.rb +244 -244
  164. data/generated/google/apis/monitoring_v3.rb +1 -1
  165. data/generated/google/apis/monitoring_v3/classes.rb +866 -866
  166. data/generated/google/apis/monitoring_v3/representations.rb +163 -163
  167. data/generated/google/apis/monitoring_v3/service.rb +355 -316
  168. data/generated/google/apis/oauth2_v2.rb +1 -1
  169. data/generated/google/apis/partners_v2.rb +1 -1
  170. data/generated/google/apis/partners_v2/classes.rb +1499 -1499
  171. data/generated/google/apis/partners_v2/representations.rb +368 -368
  172. data/generated/google/apis/partners_v2/service.rb +512 -512
  173. data/generated/google/apis/people_v1.rb +10 -10
  174. data/generated/google/apis/people_v1/classes.rb +544 -423
  175. data/generated/google/apis/people_v1/representations.rb +127 -109
  176. data/generated/google/apis/people_v1/service.rb +8 -8
  177. data/generated/google/apis/plus_domains_v1.rb +1 -1
  178. data/generated/google/apis/plus_v1.rb +1 -1
  179. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  180. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +200 -200
  181. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
  182. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
  183. data/generated/google/apis/pubsub_v1.rb +1 -1
  184. data/generated/google/apis/pubsub_v1/classes.rb +377 -377
  185. data/generated/google/apis/pubsub_v1/representations.rb +82 -82
  186. data/generated/google/apis/pubsub_v1/service.rb +93 -93
  187. data/generated/google/apis/runtimeconfig_v1.rb +6 -4
  188. data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
  189. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  190. data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
  191. data/generated/google/apis/script_v1.rb +14 -14
  192. data/generated/google/apis/script_v1/classes.rb +113 -58
  193. data/generated/google/apis/script_v1/representations.rb +43 -14
  194. data/generated/google/apis/script_v1/service.rb +6 -6
  195. data/generated/google/apis/searchconsole_v1.rb +1 -1
  196. data/generated/google/apis/searchconsole_v1/classes.rb +67 -67
  197. data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
  198. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  199. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  200. data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
  201. data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
  202. data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
  203. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  204. data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
  205. data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
  206. data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
  207. data/generated/google/apis/serviceuser_v1.rb +4 -4
  208. data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
  209. data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
  210. data/generated/google/apis/serviceuser_v1/service.rb +19 -19
  211. data/generated/google/apis/sheets_v4.rb +4 -1
  212. data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
  213. data/generated/google/apis/sheets_v4/representations.rb +858 -858
  214. data/generated/google/apis/sheets_v4/service.rb +115 -115
  215. data/generated/google/apis/slides_v1.rb +1 -1
  216. data/generated/google/apis/slides_v1/classes.rb +2890 -2890
  217. data/generated/google/apis/slides_v1/representations.rb +638 -638
  218. data/generated/google/apis/slides_v1/service.rb +36 -36
  219. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  220. data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
  221. data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
  222. data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
  223. data/generated/google/apis/spanner_v1.rb +1 -1
  224. data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
  225. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  226. data/generated/google/apis/spanner_v1/service.rb +466 -466
  227. data/generated/google/apis/speech_v1beta1.rb +2 -2
  228. data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
  229. data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
  230. data/generated/google/apis/speech_v1beta1/service.rb +49 -49
  231. data/generated/google/apis/storage_v1.rb +1 -1
  232. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  233. data/generated/google/apis/storagetransfer_v1/classes.rb +786 -786
  234. data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
  235. data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
  236. data/generated/google/apis/surveys_v2.rb +1 -1
  237. data/generated/google/apis/surveys_v2/classes.rb +0 -12
  238. data/generated/google/apis/surveys_v2/representations.rb +0 -4
  239. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  240. data/generated/google/apis/vision_v1.rb +1 -1
  241. data/generated/google/apis/vision_v1/classes.rb +1301 -1302
  242. data/generated/google/apis/vision_v1/representations.rb +183 -183
  243. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  244. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  245. data/generated/google/apis/youtube_partner_v1/classes.rb +10 -0
  246. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
  247. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  248. data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
  249. data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
  250. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  251. data/lib/google/apis/version.rb +1 -1
  252. metadata +7 -3
@@ -32,56 +32,21 @@ module Google
32
32
  #
33
33
  # @see https://cloud.google.com/ml/
34
34
  class CloudMachineLearningEngineService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # Available to use for quota purposes for server-side applications. Can be any
37
- # arbitrary string assigned to a user, but should not exceed 40 characters.
38
- attr_accessor :quota_user
39
-
40
35
  # @return [String]
41
36
  # API key. Your API key identifies your project and provides you with API access,
42
37
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
38
  attr_accessor :key
44
39
 
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
45
  def initialize
46
46
  super('https://ml.googleapis.com/', '')
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
- # Performs prediction on the data in the request.
51
- # **** REMOVE FROM GENERATED DOCUMENTATION
52
- # @param [String] name
53
- # Required. The resource name of a model or a version.
54
- # Authorization: requires `Viewer` role on the parent project.
55
- # @param [Google::Apis::MlV1::GoogleCloudMlV1PredictRequest] google_cloud_ml_v1__predict_request_object
56
- # @param [String] quota_user
57
- # Available to use for quota purposes for server-side applications. Can be any
58
- # arbitrary string assigned to a user, but should not exceed 40 characters.
59
- # @param [String] fields
60
- # Selector specifying which fields to include in a partial response.
61
- # @param [Google::Apis::RequestOptions] options
62
- # Request-specific options
63
- #
64
- # @yield [result, err] Result & error if block supplied
65
- # @yieldparam result [Google::Apis::MlV1::GoogleApiHttpBody] parsed result object
66
- # @yieldparam err [StandardError] error object if request failed
67
- #
68
- # @return [Google::Apis::MlV1::GoogleApiHttpBody]
69
- #
70
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
- # @raise [Google::Apis::AuthorizationError] Authorization is required
73
- def predict_project(name, google_cloud_ml_v1__predict_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
74
- command = make_simple_command(:post, 'v1/{+name}:predict', options)
75
- command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1PredictRequest::Representation
76
- command.request_object = google_cloud_ml_v1__predict_request_object
77
- command.response_representation = Google::Apis::MlV1::GoogleApiHttpBody::Representation
78
- command.response_class = Google::Apis::MlV1::GoogleApiHttpBody
79
- command.params['name'] = name unless name.nil?
80
- command.query['quotaUser'] = quota_user unless quota_user.nil?
81
- command.query['fields'] = fields unless fields.nil?
82
- execute_or_queue_command(command, &block)
83
- end
84
-
85
50
  # Get the service account information associated with your project. You need
86
51
  # this information in order to grant the service account persmissions for
87
52
  # the Google Cloud Storage location where you put your model training code
@@ -89,11 +54,11 @@ module Google
89
54
  # @param [String] name
90
55
  # Required. The project name.
91
56
  # Authorization: requires `Viewer` role on the specified project.
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
92
59
  # @param [String] quota_user
93
60
  # Available to use for quota purposes for server-side applications. Can be any
94
61
  # arbitrary string assigned to a user, but should not exceed 40 characters.
95
- # @param [String] fields
96
- # Selector specifying which fields to include in a partial response.
97
62
  # @param [Google::Apis::RequestOptions] options
98
63
  # Request-specific options
99
64
  #
@@ -106,87 +71,48 @@ module Google
106
71
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
107
72
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
108
73
  # @raise [Google::Apis::AuthorizationError] Authorization is required
109
- def get_project_config(name, quota_user: nil, fields: nil, options: nil, &block)
74
+ def get_project_config(name, fields: nil, quota_user: nil, options: nil, &block)
110
75
  command = make_simple_command(:get, 'v1/{+name}:getConfig', options)
111
76
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse::Representation
112
77
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse
113
78
  command.params['name'] = name unless name.nil?
114
- command.query['quotaUser'] = quota_user unless quota_user.nil?
115
79
  command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
116
81
  execute_or_queue_command(command, &block)
117
82
  end
118
83
 
119
- # Lists operations that match the specified filter in the request. If the
120
- # server doesn't support this method, it returns `UNIMPLEMENTED`.
121
- # NOTE: the `name` binding below allows API services to override the binding
122
- # to use different resource name schemes, such as `users/*/operations`.
84
+ # Performs prediction on the data in the request.
85
+ # **** REMOVE FROM GENERATED DOCUMENTATION
123
86
  # @param [String] name
124
- # The name of the operation collection.
125
- # @param [String] filter
126
- # The standard list filter.
127
- # @param [String] page_token
128
- # The standard list page token.
129
- # @param [Fixnum] page_size
130
- # The standard list page size.
131
- # @param [String] quota_user
132
- # Available to use for quota purposes for server-side applications. Can be any
133
- # arbitrary string assigned to a user, but should not exceed 40 characters.
87
+ # Required. The resource name of a model or a version.
88
+ # Authorization: requires `Viewer` role on the parent project.
89
+ # @param [Google::Apis::MlV1::GoogleCloudMlV1PredictRequest] google_cloud_ml_v1__predict_request_object
134
90
  # @param [String] fields
135
91
  # Selector specifying which fields to include in a partial response.
136
- # @param [Google::Apis::RequestOptions] options
137
- # Request-specific options
138
- #
139
- # @yield [result, err] Result & error if block supplied
140
- # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse] parsed result object
141
- # @yieldparam err [StandardError] error object if request failed
142
- #
143
- # @return [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse]
144
- #
145
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
- # @raise [Google::Apis::AuthorizationError] Authorization is required
148
- def list_project_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
149
- command = make_simple_command(:get, 'v1/{+name}/operations', options)
150
- command.response_representation = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse::Representation
151
- command.response_class = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse
152
- command.params['name'] = name unless name.nil?
153
- command.query['filter'] = filter unless filter.nil?
154
- command.query['pageToken'] = page_token unless page_token.nil?
155
- command.query['pageSize'] = page_size unless page_size.nil?
156
- command.query['quotaUser'] = quota_user unless quota_user.nil?
157
- command.query['fields'] = fields unless fields.nil?
158
- execute_or_queue_command(command, &block)
159
- end
160
-
161
- # Gets the latest state of a long-running operation. Clients can use this
162
- # method to poll the operation result at intervals as recommended by the API
163
- # service.
164
- # @param [String] name
165
- # The name of the operation resource.
166
92
  # @param [String] quota_user
167
93
  # Available to use for quota purposes for server-side applications. Can be any
168
94
  # arbitrary string assigned to a user, but should not exceed 40 characters.
169
- # @param [String] fields
170
- # Selector specifying which fields to include in a partial response.
171
95
  # @param [Google::Apis::RequestOptions] options
172
96
  # Request-specific options
173
97
  #
174
98
  # @yield [result, err] Result & error if block supplied
175
- # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
99
+ # @yieldparam result [Google::Apis::MlV1::GoogleApiHttpBody] parsed result object
176
100
  # @yieldparam err [StandardError] error object if request failed
177
101
  #
178
- # @return [Google::Apis::MlV1::GoogleLongrunningOperation]
102
+ # @return [Google::Apis::MlV1::GoogleApiHttpBody]
179
103
  #
180
104
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
181
105
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
182
106
  # @raise [Google::Apis::AuthorizationError] Authorization is required
183
- def get_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
184
- command = make_simple_command(:get, 'v1/{+name}', options)
185
- command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
186
- command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
107
+ def predict_project(name, google_cloud_ml_v1__predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:post, 'v1/{+name}:predict', options)
109
+ command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1PredictRequest::Representation
110
+ command.request_object = google_cloud_ml_v1__predict_request_object
111
+ command.response_representation = Google::Apis::MlV1::GoogleApiHttpBody::Representation
112
+ command.response_class = Google::Apis::MlV1::GoogleApiHttpBody
187
113
  command.params['name'] = name unless name.nil?
188
- command.query['quotaUser'] = quota_user unless quota_user.nil?
189
114
  command.query['fields'] = fields unless fields.nil?
115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
190
116
  execute_or_queue_command(command, &block)
191
117
  end
192
118
 
@@ -202,11 +128,11 @@ module Google
202
128
  # corresponding to `Code.CANCELLED`.
203
129
  # @param [String] name
204
130
  # The name of the operation resource to be cancelled.
131
+ # @param [String] fields
132
+ # Selector specifying which fields to include in a partial response.
205
133
  # @param [String] quota_user
206
134
  # Available to use for quota purposes for server-side applications. Can be any
207
135
  # arbitrary string assigned to a user, but should not exceed 40 characters.
208
- # @param [String] fields
209
- # Selector specifying which fields to include in a partial response.
210
136
  # @param [Google::Apis::RequestOptions] options
211
137
  # Request-specific options
212
138
  #
@@ -219,13 +145,13 @@ module Google
219
145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
220
146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
221
147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
222
- def cancel_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
148
+ def cancel_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
223
149
  command = make_simple_command(:post, 'v1/{+name}:cancel', options)
224
150
  command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
225
151
  command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
226
152
  command.params['name'] = name unless name.nil?
227
- command.query['quotaUser'] = quota_user unless quota_user.nil?
228
153
  command.query['fields'] = fields unless fields.nil?
154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
229
155
  execute_or_queue_command(command, &block)
230
156
  end
231
157
 
@@ -235,11 +161,11 @@ module Google
235
161
  # `google.rpc.Code.UNIMPLEMENTED`.
236
162
  # @param [String] name
237
163
  # The name of the operation resource to be deleted.
164
+ # @param [String] fields
165
+ # Selector specifying which fields to include in a partial response.
238
166
  # @param [String] quota_user
239
167
  # Available to use for quota purposes for server-side applications. Can be any
240
168
  # arbitrary string assigned to a user, but should not exceed 40 characters.
241
- # @param [String] fields
242
- # Selector specifying which fields to include in a partial response.
243
169
  # @param [Google::Apis::RequestOptions] options
244
170
  # Request-specific options
245
171
  #
@@ -252,29 +178,68 @@ module Google
252
178
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
253
179
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
254
180
  # @raise [Google::Apis::AuthorizationError] Authorization is required
255
- def delete_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
181
+ def delete_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
256
182
  command = make_simple_command(:delete, 'v1/{+name}', options)
257
183
  command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
258
184
  command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
259
185
  command.params['name'] = name unless name.nil?
260
- command.query['quotaUser'] = quota_user unless quota_user.nil?
261
186
  command.query['fields'] = fields unless fields.nil?
187
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
262
188
  execute_or_queue_command(command, &block)
263
189
  end
264
190
 
265
- # Deletes a model.
266
- # You can only delete a model if there are no versions in it. You can delete
267
- # versions by calling
268
- # [projects.models.versions.delete](/ml-engine/reference/rest/v1/projects.models.
269
- # versions/delete).
191
+ # Lists operations that match the specified filter in the request. If the
192
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
193
+ # NOTE: the `name` binding below allows API services to override the binding
194
+ # to use different resource name schemes, such as `users/*/operations`.
270
195
  # @param [String] name
271
- # Required. The name of the model.
272
- # Authorization: requires `Editor` role on the parent project.
196
+ # The name of the operation collection.
197
+ # @param [String] page_token
198
+ # The standard list page token.
199
+ # @param [Fixnum] page_size
200
+ # The standard list page size.
201
+ # @param [String] filter
202
+ # The standard list filter.
203
+ # @param [String] fields
204
+ # Selector specifying which fields to include in a partial response.
273
205
  # @param [String] quota_user
274
206
  # Available to use for quota purposes for server-side applications. Can be any
275
207
  # arbitrary string assigned to a user, but should not exceed 40 characters.
208
+ # @param [Google::Apis::RequestOptions] options
209
+ # Request-specific options
210
+ #
211
+ # @yield [result, err] Result & error if block supplied
212
+ # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse] parsed result object
213
+ # @yieldparam err [StandardError] error object if request failed
214
+ #
215
+ # @return [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse]
216
+ #
217
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
218
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
219
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
220
+ def list_project_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
221
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
222
+ command.response_representation = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse::Representation
223
+ command.response_class = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse
224
+ command.params['name'] = name unless name.nil?
225
+ command.query['pageToken'] = page_token unless page_token.nil?
226
+ command.query['pageSize'] = page_size unless page_size.nil?
227
+ command.query['filter'] = filter unless filter.nil?
228
+ command.query['fields'] = fields unless fields.nil?
229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
230
+ execute_or_queue_command(command, &block)
231
+ end
232
+
233
+ # Gets the latest state of a long-running operation. Clients can use this
234
+ # method to poll the operation result at intervals as recommended by the API
235
+ # service.
236
+ # @param [String] name
237
+ # The name of the operation resource.
276
238
  # @param [String] fields
277
239
  # Selector specifying which fields to include in a partial response.
240
+ # @param [String] quota_user
241
+ # Available to use for quota purposes for server-side applications. Can be any
242
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
278
243
  # @param [Google::Apis::RequestOptions] options
279
244
  # Request-specific options
280
245
  #
@@ -287,13 +252,13 @@ module Google
287
252
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
288
253
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
289
254
  # @raise [Google::Apis::AuthorizationError] Authorization is required
290
- def delete_project_model(name, quota_user: nil, fields: nil, options: nil, &block)
291
- command = make_simple_command(:delete, 'v1/{+name}', options)
255
+ def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
256
+ command = make_simple_command(:get, 'v1/{+name}', options)
292
257
  command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
293
258
  command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
294
259
  command.params['name'] = name unless name.nil?
295
- command.query['quotaUser'] = quota_user unless quota_user.nil?
296
260
  command.query['fields'] = fields unless fields.nil?
261
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
297
262
  execute_or_queue_command(command, &block)
298
263
  end
299
264
 
@@ -303,20 +268,20 @@ module Google
303
268
  # @param [String] parent
304
269
  # Required. The name of the project whose models are to be listed.
305
270
  # Authorization: requires `Viewer` role on the specified project.
271
+ # @param [String] page_token
272
+ # Optional. A page token to request the next page of results.
273
+ # You get the token from the `next_page_token` field of the response from
274
+ # the previous call.
306
275
  # @param [Fixnum] page_size
307
276
  # Optional. The number of models to retrieve per "page" of results. If there
308
277
  # are more remaining results than this number, the response message will
309
278
  # contain a valid value in the `next_page_token` field.
310
279
  # The default value is 20, and the maximum page size is 100.
311
- # @param [String] page_token
312
- # Optional. A page token to request the next page of results.
313
- # You get the token from the `next_page_token` field of the response from
314
- # the previous call.
280
+ # @param [String] fields
281
+ # Selector specifying which fields to include in a partial response.
315
282
  # @param [String] quota_user
316
283
  # Available to use for quota purposes for server-side applications. Can be any
317
284
  # arbitrary string assigned to a user, but should not exceed 40 characters.
318
- # @param [String] fields
319
- # Selector specifying which fields to include in a partial response.
320
285
  # @param [Google::Apis::RequestOptions] options
321
286
  # Request-specific options
322
287
  #
@@ -329,15 +294,15 @@ module Google
329
294
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
330
295
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
331
296
  # @raise [Google::Apis::AuthorizationError] Authorization is required
332
- def list_project_models(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
297
+ def list_project_models(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
333
298
  command = make_simple_command(:get, 'v1/{+parent}/models', options)
334
299
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse::Representation
335
300
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse
336
301
  command.params['parent'] = parent unless parent.nil?
337
- command.query['pageSize'] = page_size unless page_size.nil?
338
302
  command.query['pageToken'] = page_token unless page_token.nil?
339
- command.query['quotaUser'] = quota_user unless quota_user.nil?
303
+ command.query['pageSize'] = page_size unless page_size.nil?
340
304
  command.query['fields'] = fields unless fields.nil?
305
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
341
306
  execute_or_queue_command(command, &block)
342
307
  end
343
308
 
@@ -347,11 +312,11 @@ module Google
347
312
  # @param [String] name
348
313
  # Required. The name of the model.
349
314
  # Authorization: requires `Viewer` role on the parent project.
315
+ # @param [String] fields
316
+ # Selector specifying which fields to include in a partial response.
350
317
  # @param [String] quota_user
351
318
  # Available to use for quota purposes for server-side applications. Can be any
352
319
  # arbitrary string assigned to a user, but should not exceed 40 characters.
353
- # @param [String] fields
354
- # Selector specifying which fields to include in a partial response.
355
320
  # @param [Google::Apis::RequestOptions] options
356
321
  # Request-specific options
357
322
  #
@@ -364,13 +329,13 @@ module Google
364
329
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
365
330
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
366
331
  # @raise [Google::Apis::AuthorizationError] Authorization is required
367
- def get_project_model(name, quota_user: nil, fields: nil, options: nil, &block)
332
+ def get_project_model(name, fields: nil, quota_user: nil, options: nil, &block)
368
333
  command = make_simple_command(:get, 'v1/{+name}', options)
369
334
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
370
335
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
371
336
  command.params['name'] = name unless name.nil?
372
- command.query['quotaUser'] = quota_user unless quota_user.nil?
373
337
  command.query['fields'] = fields unless fields.nil?
338
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
374
339
  execute_or_queue_command(command, &block)
375
340
  end
376
341
 
@@ -383,11 +348,11 @@ module Google
383
348
  # Required. The project name.
384
349
  # Authorization: requires `Editor` role on the specified project.
385
350
  # @param [Google::Apis::MlV1::GoogleCloudMlV1Model] google_cloud_ml_v1__model_object
351
+ # @param [String] fields
352
+ # Selector specifying which fields to include in a partial response.
386
353
  # @param [String] quota_user
387
354
  # Available to use for quota purposes for server-side applications. Can be any
388
355
  # arbitrary string assigned to a user, but should not exceed 40 characters.
389
- # @param [String] fields
390
- # Selector specifying which fields to include in a partial response.
391
356
  # @param [Google::Apis::RequestOptions] options
392
357
  # Request-specific options
393
358
  #
@@ -400,96 +365,50 @@ module Google
400
365
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
401
366
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
402
367
  # @raise [Google::Apis::AuthorizationError] Authorization is required
403
- def create_project_model(parent, google_cloud_ml_v1__model_object = nil, quota_user: nil, fields: nil, options: nil, &block)
368
+ def create_project_model(parent, google_cloud_ml_v1__model_object = nil, fields: nil, quota_user: nil, options: nil, &block)
404
369
  command = make_simple_command(:post, 'v1/{+parent}/models', options)
405
370
  command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
406
371
  command.request_object = google_cloud_ml_v1__model_object
407
372
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
408
373
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
409
374
  command.params['parent'] = parent unless parent.nil?
410
- command.query['quotaUser'] = quota_user unless quota_user.nil?
411
375
  command.query['fields'] = fields unless fields.nil?
412
- execute_or_queue_command(command, &block)
413
- end
414
-
415
- # Gets basic information about all the versions of a model.
416
- # If you expect that a model has a lot of versions, or if you need to handle
417
- # only a limited number of results at a time, you can request that the list
418
- # be retrieved in batches (called pages):
419
- # @param [String] parent
420
- # Required. The name of the model for which to list the version.
421
- # Authorization: requires `Viewer` role on the parent project.
422
- # @param [String] page_token
423
- # Optional. A page token to request the next page of results.
424
- # You get the token from the `next_page_token` field of the response from
425
- # the previous call.
426
- # @param [Fixnum] page_size
427
- # Optional. The number of versions to retrieve per "page" of results. If
428
- # there are more remaining results than this number, the response message
429
- # will contain a valid value in the `next_page_token` field.
430
- # The default value is 20, and the maximum page size is 100.
431
- # @param [String] quota_user
432
- # Available to use for quota purposes for server-side applications. Can be any
433
- # arbitrary string assigned to a user, but should not exceed 40 characters.
434
- # @param [String] fields
435
- # Selector specifying which fields to include in a partial response.
436
- # @param [Google::Apis::RequestOptions] options
437
- # Request-specific options
438
- #
439
- # @yield [result, err] Result & error if block supplied
440
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse] parsed result object
441
- # @yieldparam err [StandardError] error object if request failed
442
- #
443
- # @return [Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse]
444
- #
445
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
446
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
447
- # @raise [Google::Apis::AuthorizationError] Authorization is required
448
- def list_project_model_versions(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
449
- command = make_simple_command(:get, 'v1/{+parent}/versions', options)
450
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse::Representation
451
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse
452
- command.params['parent'] = parent unless parent.nil?
453
- command.query['pageToken'] = page_token unless page_token.nil?
454
- command.query['pageSize'] = page_size unless page_size.nil?
455
376
  command.query['quotaUser'] = quota_user unless quota_user.nil?
456
- command.query['fields'] = fields unless fields.nil?
457
377
  execute_or_queue_command(command, &block)
458
378
  end
459
379
 
460
- # Gets information about a model version.
461
- # Models can have multiple versions. You can call
462
- # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
463
- # versions/list)
464
- # to get the same information that this method returns for all of the
465
- # versions of a model.
380
+ # Deletes a model.
381
+ # You can only delete a model if there are no versions in it. You can delete
382
+ # versions by calling
383
+ # [projects.models.versions.delete](/ml-engine/reference/rest/v1/projects.models.
384
+ # versions/delete).
466
385
  # @param [String] name
467
- # Required. The name of the version.
468
- # Authorization: requires `Viewer` role on the parent project.
386
+ # Required. The name of the model.
387
+ # Authorization: requires `Editor` role on the parent project.
388
+ # @param [String] fields
389
+ # Selector specifying which fields to include in a partial response.
469
390
  # @param [String] quota_user
470
391
  # Available to use for quota purposes for server-side applications. Can be any
471
392
  # arbitrary string assigned to a user, but should not exceed 40 characters.
472
- # @param [String] fields
473
- # Selector specifying which fields to include in a partial response.
474
393
  # @param [Google::Apis::RequestOptions] options
475
394
  # Request-specific options
476
395
  #
477
396
  # @yield [result, err] Result & error if block supplied
478
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Version] parsed result object
397
+ # @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
479
398
  # @yieldparam err [StandardError] error object if request failed
480
399
  #
481
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
400
+ # @return [Google::Apis::MlV1::GoogleLongrunningOperation]
482
401
  #
483
402
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
484
403
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
485
404
  # @raise [Google::Apis::AuthorizationError] Authorization is required
486
- def get_project_model_version(name, quota_user: nil, fields: nil, options: nil, &block)
487
- command = make_simple_command(:get, 'v1/{+name}', options)
488
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
489
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
405
+ def delete_project_model(name, fields: nil, quota_user: nil, options: nil, &block)
406
+ command = make_simple_command(:delete, 'v1/{+name}', options)
407
+ command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
408
+ command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
490
409
  command.params['name'] = name unless name.nil?
491
- command.query['quotaUser'] = quota_user unless quota_user.nil?
492
410
  command.query['fields'] = fields unless fields.nil?
411
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
493
412
  execute_or_queue_command(command, &block)
494
413
  end
495
414
 
@@ -505,11 +424,11 @@ module Google
505
424
  # Required. The name of the model.
506
425
  # Authorization: requires `Editor` role on the parent project.
507
426
  # @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object
427
+ # @param [String] fields
428
+ # Selector specifying which fields to include in a partial response.
508
429
  # @param [String] quota_user
509
430
  # Available to use for quota purposes for server-side applications. Can be any
510
431
  # arbitrary string assigned to a user, but should not exceed 40 characters.
511
- # @param [String] fields
512
- # Selector specifying which fields to include in a partial response.
513
432
  # @param [Google::Apis::RequestOptions] options
514
433
  # Request-specific options
515
434
  #
@@ -522,15 +441,15 @@ module Google
522
441
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
523
442
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
524
443
  # @raise [Google::Apis::AuthorizationError] Authorization is required
525
- def create_project_model_version(parent, google_cloud_ml_v1__version_object = nil, quota_user: nil, fields: nil, options: nil, &block)
444
+ def create_project_model_version(parent, google_cloud_ml_v1__version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
526
445
  command = make_simple_command(:post, 'v1/{+parent}/versions', options)
527
446
  command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
528
447
  command.request_object = google_cloud_ml_v1__version_object
529
448
  command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
530
449
  command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
531
450
  command.params['parent'] = parent unless parent.nil?
532
- command.query['quotaUser'] = quota_user unless quota_user.nil?
533
451
  command.query['fields'] = fields unless fields.nil?
452
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
534
453
  execute_or_queue_command(command, &block)
535
454
  end
536
455
 
@@ -547,11 +466,11 @@ module Google
547
466
  # versions/list).
548
467
  # Authorization: requires `Editor` role on the parent project.
549
468
  # @param [Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest] google_cloud_ml_v1__set_default_version_request_object
469
+ # @param [String] fields
470
+ # Selector specifying which fields to include in a partial response.
550
471
  # @param [String] quota_user
551
472
  # Available to use for quota purposes for server-side applications. Can be any
552
473
  # arbitrary string assigned to a user, but should not exceed 40 characters.
553
- # @param [String] fields
554
- # Selector specifying which fields to include in a partial response.
555
474
  # @param [Google::Apis::RequestOptions] options
556
475
  # Request-specific options
557
476
  #
@@ -564,15 +483,15 @@ module Google
564
483
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
565
484
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
566
485
  # @raise [Google::Apis::AuthorizationError] Authorization is required
567
- def set_project_model_version_default(name, google_cloud_ml_v1__set_default_version_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
486
+ def set_project_model_version_default(name, google_cloud_ml_v1__set_default_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
568
487
  command = make_simple_command(:post, 'v1/{+name}:setDefault', options)
569
488
  command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest::Representation
570
489
  command.request_object = google_cloud_ml_v1__set_default_version_request_object
571
490
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
572
491
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
573
492
  command.params['name'] = name unless name.nil?
574
- command.query['quotaUser'] = quota_user unless quota_user.nil?
575
493
  command.query['fields'] = fields unless fields.nil?
494
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
576
495
  execute_or_queue_command(command, &block)
577
496
  end
578
497
 
@@ -587,11 +506,11 @@ module Google
587
506
  # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
588
507
  # versions/list).
589
508
  # Authorization: requires `Editor` role on the parent project.
509
+ # @param [String] fields
510
+ # Selector specifying which fields to include in a partial response.
590
511
  # @param [String] quota_user
591
512
  # Available to use for quota purposes for server-side applications. Can be any
592
513
  # arbitrary string assigned to a user, but should not exceed 40 characters.
593
- # @param [String] fields
594
- # Selector specifying which fields to include in a partial response.
595
514
  # @param [Google::Apis::RequestOptions] options
596
515
  # Request-specific options
597
516
  #
@@ -604,89 +523,94 @@ module Google
604
523
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
605
524
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
606
525
  # @raise [Google::Apis::AuthorizationError] Authorization is required
607
- def delete_project_model_version(name, quota_user: nil, fields: nil, options: nil, &block)
526
+ def delete_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
608
527
  command = make_simple_command(:delete, 'v1/{+name}', options)
609
528
  command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
610
529
  command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
611
530
  command.params['name'] = name unless name.nil?
612
- command.query['quotaUser'] = quota_user unless quota_user.nil?
613
531
  command.query['fields'] = fields unless fields.nil?
532
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
614
533
  execute_or_queue_command(command, &block)
615
534
  end
616
535
 
617
- # Lists the jobs in the project.
536
+ # Gets basic information about all the versions of a model.
537
+ # If you expect that a model has a lot of versions, or if you need to handle
538
+ # only a limited number of results at a time, you can request that the list
539
+ # be retrieved in batches (called pages):
618
540
  # @param [String] parent
619
- # Required. The name of the project for which to list jobs.
620
- # Authorization: requires `Viewer` role on the specified project.
621
- # @param [Fixnum] page_size
622
- # Optional. The number of jobs to retrieve per "page" of results. If there
623
- # are more remaining results than this number, the response message will
624
- # contain a valid value in the `next_page_token` field.
625
- # The default value is 20, and the maximum page size is 100.
626
- # @param [String] filter
627
- # Optional. Specifies the subset of jobs to retrieve.
541
+ # Required. The name of the model for which to list the version.
542
+ # Authorization: requires `Viewer` role on the parent project.
628
543
  # @param [String] page_token
629
544
  # Optional. A page token to request the next page of results.
630
545
  # You get the token from the `next_page_token` field of the response from
631
546
  # the previous call.
547
+ # @param [Fixnum] page_size
548
+ # Optional. The number of versions to retrieve per "page" of results. If
549
+ # there are more remaining results than this number, the response message
550
+ # will contain a valid value in the `next_page_token` field.
551
+ # The default value is 20, and the maximum page size is 100.
552
+ # @param [String] fields
553
+ # Selector specifying which fields to include in a partial response.
632
554
  # @param [String] quota_user
633
555
  # Available to use for quota purposes for server-side applications. Can be any
634
556
  # arbitrary string assigned to a user, but should not exceed 40 characters.
635
- # @param [String] fields
636
- # Selector specifying which fields to include in a partial response.
637
557
  # @param [Google::Apis::RequestOptions] options
638
558
  # Request-specific options
639
559
  #
640
560
  # @yield [result, err] Result & error if block supplied
641
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse] parsed result object
561
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse] parsed result object
642
562
  # @yieldparam err [StandardError] error object if request failed
643
563
  #
644
- # @return [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse]
564
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse]
645
565
  #
646
566
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
647
567
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
648
568
  # @raise [Google::Apis::AuthorizationError] Authorization is required
649
- def list_project_jobs(parent, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
650
- command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
651
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse::Representation
652
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse
569
+ def list_project_model_versions(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
570
+ command = make_simple_command(:get, 'v1/{+parent}/versions', options)
571
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse::Representation
572
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse
653
573
  command.params['parent'] = parent unless parent.nil?
654
- command.query['pageSize'] = page_size unless page_size.nil?
655
- command.query['filter'] = filter unless filter.nil?
656
574
  command.query['pageToken'] = page_token unless page_token.nil?
657
- command.query['quotaUser'] = quota_user unless quota_user.nil?
575
+ command.query['pageSize'] = page_size unless page_size.nil?
658
576
  command.query['fields'] = fields unless fields.nil?
577
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
659
578
  execute_or_queue_command(command, &block)
660
579
  end
661
580
 
662
- # Describes a job.
581
+ # Gets information about a model version.
582
+ # Models can have multiple versions. You can call
583
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
584
+ # versions/list)
585
+ # to get the same information that this method returns for all of the
586
+ # versions of a model.
663
587
  # @param [String] name
664
- # Required. The name of the job to get the description of.
588
+ # Required. The name of the version.
665
589
  # Authorization: requires `Viewer` role on the parent project.
590
+ # @param [String] fields
591
+ # Selector specifying which fields to include in a partial response.
666
592
  # @param [String] quota_user
667
593
  # Available to use for quota purposes for server-side applications. Can be any
668
594
  # arbitrary string assigned to a user, but should not exceed 40 characters.
669
- # @param [String] fields
670
- # Selector specifying which fields to include in a partial response.
671
595
  # @param [Google::Apis::RequestOptions] options
672
596
  # Request-specific options
673
597
  #
674
598
  # @yield [result, err] Result & error if block supplied
675
- # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
599
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Version] parsed result object
676
600
  # @yieldparam err [StandardError] error object if request failed
677
601
  #
678
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
602
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
679
603
  #
680
604
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
605
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
606
  # @raise [Google::Apis::AuthorizationError] Authorization is required
683
- def get_project_job(name, quota_user: nil, fields: nil, options: nil, &block)
607
+ def get_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
684
608
  command = make_simple_command(:get, 'v1/{+name}', options)
685
- command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
686
- command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
609
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
610
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
687
611
  command.params['name'] = name unless name.nil?
688
- command.query['quotaUser'] = quota_user unless quota_user.nil?
689
612
  command.query['fields'] = fields unless fields.nil?
613
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
690
614
  execute_or_queue_command(command, &block)
691
615
  end
692
616
 
@@ -695,11 +619,11 @@ module Google
695
619
  # Required. The project name.
696
620
  # Authorization: requires `Editor` role on the specified project.
697
621
  # @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object
622
+ # @param [String] fields
623
+ # Selector specifying which fields to include in a partial response.
698
624
  # @param [String] quota_user
699
625
  # Available to use for quota purposes for server-side applications. Can be any
700
626
  # arbitrary string assigned to a user, but should not exceed 40 characters.
701
- # @param [String] fields
702
- # Selector specifying which fields to include in a partial response.
703
627
  # @param [Google::Apis::RequestOptions] options
704
628
  # Request-specific options
705
629
  #
@@ -712,15 +636,15 @@ module Google
712
636
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
713
637
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
714
638
  # @raise [Google::Apis::AuthorizationError] Authorization is required
715
- def create_project_job(parent, google_cloud_ml_v1__job_object = nil, quota_user: nil, fields: nil, options: nil, &block)
639
+ def create_project_job(parent, google_cloud_ml_v1__job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
716
640
  command = make_simple_command(:post, 'v1/{+parent}/jobs', options)
717
641
  command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
718
642
  command.request_object = google_cloud_ml_v1__job_object
719
643
  command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
720
644
  command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
721
645
  command.params['parent'] = parent unless parent.nil?
722
- command.query['quotaUser'] = quota_user unless quota_user.nil?
723
646
  command.query['fields'] = fields unless fields.nil?
647
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
724
648
  execute_or_queue_command(command, &block)
725
649
  end
726
650
 
@@ -729,11 +653,11 @@ module Google
729
653
  # Required. The name of the job to cancel.
730
654
  # Authorization: requires `Editor` role on the parent project.
731
655
  # @param [Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest] google_cloud_ml_v1__cancel_job_request_object
656
+ # @param [String] fields
657
+ # Selector specifying which fields to include in a partial response.
732
658
  # @param [String] quota_user
733
659
  # Available to use for quota purposes for server-side applications. Can be any
734
660
  # arbitrary string assigned to a user, but should not exceed 40 characters.
735
- # @param [String] fields
736
- # Selector specifying which fields to include in a partial response.
737
661
  # @param [Google::Apis::RequestOptions] options
738
662
  # Request-specific options
739
663
  #
@@ -746,23 +670,99 @@ module Google
746
670
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747
671
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748
672
  # @raise [Google::Apis::AuthorizationError] Authorization is required
749
- def cancel_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
673
+ def cancel_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
750
674
  command = make_simple_command(:post, 'v1/{+name}:cancel', options)
751
675
  command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest::Representation
752
676
  command.request_object = google_cloud_ml_v1__cancel_job_request_object
753
677
  command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
754
678
  command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
755
679
  command.params['name'] = name unless name.nil?
680
+ command.query['fields'] = fields unless fields.nil?
681
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
682
+ execute_or_queue_command(command, &block)
683
+ end
684
+
685
+ # Lists the jobs in the project.
686
+ # @param [String] parent
687
+ # Required. The name of the project for which to list jobs.
688
+ # Authorization: requires `Viewer` role on the specified project.
689
+ # @param [String] page_token
690
+ # Optional. A page token to request the next page of results.
691
+ # You get the token from the `next_page_token` field of the response from
692
+ # the previous call.
693
+ # @param [Fixnum] page_size
694
+ # Optional. The number of jobs to retrieve per "page" of results. If there
695
+ # are more remaining results than this number, the response message will
696
+ # contain a valid value in the `next_page_token` field.
697
+ # The default value is 20, and the maximum page size is 100.
698
+ # @param [String] filter
699
+ # Optional. Specifies the subset of jobs to retrieve.
700
+ # @param [String] fields
701
+ # Selector specifying which fields to include in a partial response.
702
+ # @param [String] quota_user
703
+ # Available to use for quota purposes for server-side applications. Can be any
704
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
705
+ # @param [Google::Apis::RequestOptions] options
706
+ # Request-specific options
707
+ #
708
+ # @yield [result, err] Result & error if block supplied
709
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse] parsed result object
710
+ # @yieldparam err [StandardError] error object if request failed
711
+ #
712
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse]
713
+ #
714
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
715
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
716
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
717
+ def list_project_jobs(parent, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
718
+ command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
719
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse::Representation
720
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse
721
+ command.params['parent'] = parent unless parent.nil?
722
+ command.query['pageToken'] = page_token unless page_token.nil?
723
+ command.query['pageSize'] = page_size unless page_size.nil?
724
+ command.query['filter'] = filter unless filter.nil?
725
+ command.query['fields'] = fields unless fields.nil?
756
726
  command.query['quotaUser'] = quota_user unless quota_user.nil?
727
+ execute_or_queue_command(command, &block)
728
+ end
729
+
730
+ # Describes a job.
731
+ # @param [String] name
732
+ # Required. The name of the job to get the description of.
733
+ # Authorization: requires `Viewer` role on the parent project.
734
+ # @param [String] fields
735
+ # Selector specifying which fields to include in a partial response.
736
+ # @param [String] quota_user
737
+ # Available to use for quota purposes for server-side applications. Can be any
738
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
739
+ # @param [Google::Apis::RequestOptions] options
740
+ # Request-specific options
741
+ #
742
+ # @yield [result, err] Result & error if block supplied
743
+ # @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
744
+ # @yieldparam err [StandardError] error object if request failed
745
+ #
746
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
747
+ #
748
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
749
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
750
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
751
+ def get_project_job(name, fields: nil, quota_user: nil, options: nil, &block)
752
+ command = make_simple_command(:get, 'v1/{+name}', options)
753
+ command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
754
+ command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
755
+ command.params['name'] = name unless name.nil?
757
756
  command.query['fields'] = fields unless fields.nil?
757
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
758
758
  execute_or_queue_command(command, &block)
759
759
  end
760
760
 
761
761
  protected
762
762
 
763
763
  def apply_command_defaults(command)
764
- command.query['quotaUser'] = quota_user unless quota_user.nil?
765
764
  command.query['key'] = key unless key.nil?
765
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
766
766
  end
767
767
  end
768
768
  end