google-api-client 0.11.1 → 0.11.2

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 (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
@@ -22,135 +22,69 @@ module Google
22
22
  module Apis
23
23
  module ManufacturersV1
24
24
 
25
- class ListProductsResponse
25
+ class Attributes
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class ProductDetail
31
+ class Count
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class Issue
37
+ class Product
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class FeatureDescription
43
+ class Capacity
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class Price
49
+ class ListProductsResponse
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class Image
55
+ class ProductDetail
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class Attributes
61
+ class Issue
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class Count
67
+ class FeatureDescription
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
- class Product
73
+ class Price
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class Capacity
79
+ class Image
80
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
81
 
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
- class ListProductsResponse
86
- # @private
87
- class Representation < Google::Apis::Core::JsonRepresentation
88
- collection :products, as: 'products', class: Google::Apis::ManufacturersV1::Product, decorator: Google::Apis::ManufacturersV1::Product::Representation
89
-
90
- property :next_page_token, as: 'nextPageToken'
91
- end
92
- end
93
-
94
- class ProductDetail
95
- # @private
96
- class Representation < Google::Apis::Core::JsonRepresentation
97
- property :attribute_value, as: 'attributeValue'
98
- property :section_name, as: 'sectionName'
99
- property :attribute_name, as: 'attributeName'
100
- end
101
- end
102
-
103
- class Issue
104
- # @private
105
- class Representation < Google::Apis::Core::JsonRepresentation
106
- property :timestamp, as: 'timestamp'
107
- property :severity, as: 'severity'
108
- property :description, as: 'description'
109
- property :type, as: 'type'
110
- property :attribute, as: 'attribute'
111
- end
112
- end
113
-
114
- class FeatureDescription
115
- # @private
116
- class Representation < Google::Apis::Core::JsonRepresentation
117
- property :text, as: 'text'
118
- property :image, as: 'image', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
119
-
120
- property :headline, as: 'headline'
121
- end
122
- end
123
-
124
- class Price
125
- # @private
126
- class Representation < Google::Apis::Core::JsonRepresentation
127
- property :currency, as: 'currency'
128
- property :amount, as: 'amount'
129
- end
130
- end
131
-
132
- class Image
133
- # @private
134
- class Representation < Google::Apis::Core::JsonRepresentation
135
- property :status, as: 'status'
136
- property :type, as: 'type'
137
- property :image_url, as: 'imageUrl'
138
- end
139
- end
140
-
141
85
  class Attributes
142
86
  # @private
143
87
  class Representation < Google::Apis::Core::JsonRepresentation
144
- property :pattern, as: 'pattern'
145
- property :image_link, as: 'imageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
146
-
147
- collection :product_type, as: 'productType'
148
- property :format, as: 'format'
149
- collection :additional_image_link, as: 'additionalImageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
150
-
151
- collection :video_link, as: 'videoLink'
152
- property :color, as: 'color'
153
- property :product_name, as: 'productName'
154
88
  property :size_type, as: 'sizeType'
155
89
  property :suggested_retail_price, as: 'suggestedRetailPrice', class: Google::Apis::ManufacturersV1::Price, decorator: Google::Apis::ManufacturersV1::Price::Representation
156
90
 
@@ -161,13 +95,13 @@ module Google
161
95
  property :count, as: 'count', class: Google::Apis::ManufacturersV1::Count, decorator: Google::Apis::ManufacturersV1::Count::Representation
162
96
 
163
97
  property :brand, as: 'brand'
164
- property :material, as: 'material'
165
98
  property :disclosure_date, as: 'disclosureDate'
99
+ property :material, as: 'material'
166
100
  property :scent, as: 'scent'
167
- property :age_group, as: 'ageGroup'
168
101
  property :flavor, as: 'flavor'
169
102
  collection :product_detail, as: 'productDetail', class: Google::Apis::ManufacturersV1::ProductDetail, decorator: Google::Apis::ManufacturersV1::ProductDetail::Representation
170
103
 
104
+ property :age_group, as: 'ageGroup'
171
105
  property :mpn, as: 'mpn'
172
106
  property :product_page_url, as: 'productPageUrl'
173
107
  property :release_date, as: 'releaseDate'
@@ -180,6 +114,16 @@ module Google
180
114
  property :gender, as: 'gender'
181
115
  property :size_system, as: 'sizeSystem'
182
116
  property :theme, as: 'theme'
117
+ property :pattern, as: 'pattern'
118
+ property :image_link, as: 'imageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
119
+
120
+ collection :product_type, as: 'productType'
121
+ property :format, as: 'format'
122
+ collection :additional_image_link, as: 'additionalImageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
123
+
124
+ collection :video_link, as: 'videoLink'
125
+ property :color, as: 'color'
126
+ property :product_name, as: 'productName'
183
127
  end
184
128
  end
185
129
 
@@ -194,12 +138,6 @@ module Google
194
138
  class Product
195
139
  # @private
196
140
  class Representation < Google::Apis::Core::JsonRepresentation
197
- collection :issues, as: 'issues', class: Google::Apis::ManufacturersV1::Issue, decorator: Google::Apis::ManufacturersV1::Issue::Representation
198
-
199
- collection :manually_deleted_attributes, as: 'manuallyDeletedAttributes'
200
- property :final_attributes, as: 'finalAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
201
-
202
- property :product_id, as: 'productId'
203
141
  property :uploaded_attributes, as: 'uploadedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
204
142
 
205
143
  property :parent, as: 'parent'
@@ -208,6 +146,12 @@ module Google
208
146
  property :content_language, as: 'contentLanguage'
209
147
  property :target_country, as: 'targetCountry'
210
148
  property :name, as: 'name'
149
+ collection :issues, as: 'issues', class: Google::Apis::ManufacturersV1::Issue, decorator: Google::Apis::ManufacturersV1::Issue::Representation
150
+
151
+ collection :manually_deleted_attributes, as: 'manuallyDeletedAttributes'
152
+ property :final_attributes, as: 'finalAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
153
+
154
+ property :product_id, as: 'productId'
211
155
  end
212
156
  end
213
157
 
@@ -218,6 +162,62 @@ module Google
218
162
  property :unit, as: 'unit'
219
163
  end
220
164
  end
165
+
166
+ class ListProductsResponse
167
+ # @private
168
+ class Representation < Google::Apis::Core::JsonRepresentation
169
+ property :next_page_token, as: 'nextPageToken'
170
+ collection :products, as: 'products', class: Google::Apis::ManufacturersV1::Product, decorator: Google::Apis::ManufacturersV1::Product::Representation
171
+
172
+ end
173
+ end
174
+
175
+ class ProductDetail
176
+ # @private
177
+ class Representation < Google::Apis::Core::JsonRepresentation
178
+ property :attribute_value, as: 'attributeValue'
179
+ property :section_name, as: 'sectionName'
180
+ property :attribute_name, as: 'attributeName'
181
+ end
182
+ end
183
+
184
+ class Issue
185
+ # @private
186
+ class Representation < Google::Apis::Core::JsonRepresentation
187
+ property :attribute, as: 'attribute'
188
+ property :timestamp, as: 'timestamp'
189
+ property :severity, as: 'severity'
190
+ property :description, as: 'description'
191
+ property :type, as: 'type'
192
+ end
193
+ end
194
+
195
+ class FeatureDescription
196
+ # @private
197
+ class Representation < Google::Apis::Core::JsonRepresentation
198
+ property :headline, as: 'headline'
199
+ property :text, as: 'text'
200
+ property :image, as: 'image', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
201
+
202
+ end
203
+ end
204
+
205
+ class Price
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ property :currency, as: 'currency'
209
+ property :amount, as: 'amount'
210
+ end
211
+ end
212
+
213
+ class Image
214
+ # @private
215
+ class Representation < Google::Apis::Core::JsonRepresentation
216
+ property :image_url, as: 'imageUrl'
217
+ property :status, as: 'status'
218
+ property :type, as: 'type'
219
+ end
220
+ end
221
221
  end
222
222
  end
223
223
  end
@@ -56,11 +56,11 @@ module Google
56
56
  # @param [Fixnum] page_size
57
57
  # Maximum number of product statuses to return in the response, used for
58
58
  # paging.
59
- # @param [String] fields
60
- # Selector specifying which fields to include in a partial response.
61
59
  # @param [String] quota_user
62
60
  # Available to use for quota purposes for server-side applications. Can be any
63
61
  # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [String] fields
63
+ # Selector specifying which fields to include in a partial response.
64
64
  # @param [Google::Apis::RequestOptions] options
65
65
  # Request-specific options
66
66
  #
@@ -73,15 +73,15 @@ module Google
73
73
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
74
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
75
  # @raise [Google::Apis::AuthorizationError] Authorization is required
76
- def list_account_products(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
76
+ def list_account_products(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
77
77
  command = make_simple_command(:get, 'v1/{+parent}/products', options)
78
78
  command.response_representation = Google::Apis::ManufacturersV1::ListProductsResponse::Representation
79
79
  command.response_class = Google::Apis::ManufacturersV1::ListProductsResponse
80
80
  command.params['parent'] = parent unless parent.nil?
81
81
  command.query['pageToken'] = page_token unless page_token.nil?
82
82
  command.query['pageSize'] = page_size unless page_size.nil?
83
- command.query['fields'] = fields unless fields.nil?
84
83
  command.query['quotaUser'] = quota_user unless quota_user.nil?
84
+ command.query['fields'] = fields unless fields.nil?
85
85
  execute_or_queue_command(command, &block)
86
86
  end
87
87
 
@@ -99,11 +99,11 @@ module Google
99
99
  # `product_id` - The ID of the product. For more information, see
100
100
  # https://support.google.com/manufacturers/answer/6124116#
101
101
  # id.
102
- # @param [String] fields
103
- # Selector specifying which fields to include in a partial response.
104
102
  # @param [String] quota_user
105
103
  # Available to use for quota purposes for server-side applications. Can be any
106
104
  # arbitrary string assigned to a user, but should not exceed 40 characters.
105
+ # @param [String] fields
106
+ # Selector specifying which fields to include in a partial response.
107
107
  # @param [Google::Apis::RequestOptions] options
108
108
  # Request-specific options
109
109
  #
@@ -116,14 +116,14 @@ module Google
116
116
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
117
117
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
118
118
  # @raise [Google::Apis::AuthorizationError] Authorization is required
119
- def get_account_product(parent, name, fields: nil, quota_user: nil, options: nil, &block)
119
+ def get_account_product(parent, name, quota_user: nil, fields: nil, options: nil, &block)
120
120
  command = make_simple_command(:get, 'v1/{+parent}/products/{+name}', options)
121
121
  command.response_representation = Google::Apis::ManufacturersV1::Product::Representation
122
122
  command.response_class = Google::Apis::ManufacturersV1::Product
123
123
  command.params['parent'] = parent unless parent.nil?
124
124
  command.params['name'] = name unless name.nil?
125
- command.query['fields'] = fields unless fields.nil?
126
125
  command.query['quotaUser'] = quota_user unless quota_user.nil?
126
+ command.query['fields'] = fields unless fields.nil?
127
127
  execute_or_queue_command(command, &block)
128
128
  end
129
129
 
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/glass
26
26
  module MirrorV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170314'
28
+ REVISION = '20170419'
29
29
 
30
30
  # View your location
31
31
  AUTH_GLASS_LOCATION = 'https://www.googleapis.com/auth/glass.location'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/ml/
26
26
  module MlV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170320'
28
+ REVISION = '20170424'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,71 +22,20 @@ module Google
22
22
  module Apis
23
23
  module MlV1
24
24
 
25
- # Represents a version of the model.
26
- # Each version is a trained model deployed in the cloud, ready to handle
27
- # prediction requests. A model can have multiple versions. You can get
28
- # information about all of the versions of a given model by calling
29
- # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
30
- # versions/list).
31
- class GoogleCloudMlV1Version
25
+ # Response message for the ListModels method.
26
+ class GoogleCloudMlV1ListModelsResponse
32
27
  include Google::Apis::Core::Hashable
33
28
 
34
- # Optional. The Google Cloud ML runtime version to use for this deployment.
35
- # If not set, Google Cloud ML will choose a version.
36
- # Corresponds to the JSON property `runtimeVersion`
37
- # @return [String]
38
- attr_accessor :runtime_version
39
-
40
- # Output only. The time the version was last used for prediction.
41
- # Corresponds to the JSON property `lastUseTime`
42
- # @return [String]
43
- attr_accessor :last_use_time
44
-
45
- # Optional. The description specified for the version when it was created.
46
- # Corresponds to the JSON property `description`
47
- # @return [String]
48
- attr_accessor :description
49
-
50
- # Required. The Google Cloud Storage location of the trained model used to
51
- # create the version. See the
52
- # [overview of model deployment](/ml-engine/docs/concepts/deployment-overview)
53
- # for
54
- # more informaiton.
55
- # When passing Version to
56
- # [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models.
57
- # versions/create)
58
- # the model service uses the specified location as the source of the model.
59
- # Once deployed, the model version is hosted by the prediction service, so
60
- # this location is useful only as a historical record.
61
- # Corresponds to the JSON property `deploymentUri`
62
- # @return [String]
63
- attr_accessor :deployment_uri
64
-
65
- # Output only. If true, this version will be used to handle prediction
66
- # requests that do not specify a version.
67
- # You can change the default version by calling
68
- # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.
69
- # models.versions/setDefault).
70
- # Corresponds to the JSON property `isDefault`
71
- # @return [Boolean]
72
- attr_accessor :is_default
73
- alias_method :is_default?, :is_default
74
-
75
- # Output only. The time the version was created.
76
- # Corresponds to the JSON property `createTime`
77
- # @return [String]
78
- attr_accessor :create_time
79
-
80
- # Options for manually scaling a model.
81
- # Corresponds to the JSON property `manualScaling`
82
- # @return [Google::Apis::MlV1::GoogleCloudMlV1ManualScaling]
83
- attr_accessor :manual_scaling
29
+ # The list of models.
30
+ # Corresponds to the JSON property `models`
31
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Model>]
32
+ attr_accessor :models
84
33
 
85
- # Required.The name specified for the version when it was created.
86
- # The version name must be unique within the model it is created in.
87
- # Corresponds to the JSON property `name`
34
+ # Optional. Pass this token as the `page_token` field of the request for a
35
+ # subsequent call.
36
+ # Corresponds to the JSON property `nextPageToken`
88
37
  # @return [String]
89
- attr_accessor :name
38
+ attr_accessor :next_page_token
90
39
 
91
40
  def initialize(**args)
92
41
  update!(**args)
@@ -94,145 +43,148 @@ module Google
94
43
 
95
44
  # Update properties of this object
96
45
  def update!(**args)
97
- @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
98
- @last_use_time = args[:last_use_time] if args.key?(:last_use_time)
99
- @description = args[:description] if args.key?(:description)
100
- @deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri)
101
- @is_default = args[:is_default] if args.key?(:is_default)
102
- @create_time = args[:create_time] if args.key?(:create_time)
103
- @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
104
- @name = args[:name] if args.key?(:name)
46
+ @models = args[:models] if args.key?(:models)
47
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
105
48
  end
106
49
  end
107
50
 
108
- # Represents a single hyperparameter to optimize.
109
- class GoogleCloudMlV1ParameterSpec
51
+ # Represents input parameters for a training job.
52
+ class GoogleCloudMlV1TrainingInput
110
53
  include Google::Apis::Core::Hashable
111
54
 
112
- # Required if type is `DOUBLE` or `INTEGER`. This field
113
- # should be unset if type is `CATEGORICAL`. This value should be integers if
114
- # type is INTEGER.
115
- # Corresponds to the JSON property `minValue`
116
- # @return [Float]
117
- attr_accessor :min_value
118
-
119
- # Required if type is `DISCRETE`.
120
- # A list of feasible points.
121
- # The list should be in strictly increasing order. For instance, this
122
- # parameter might have possible settings of 1.5, 2.5, and 4.0. This list
123
- # should not contain more than 1,000 values.
124
- # Corresponds to the JSON property `discreteValues`
125
- # @return [Array<Float>]
126
- attr_accessor :discrete_values
55
+ # Optional. The number of parameter server replicas to use for the training
56
+ # job. Each replica in the cluster will be of the type specified in
57
+ # `parameter_server_type`.
58
+ # This value can only be used when `scale_tier` is set to `CUSTOM`.If you
59
+ # set this value, you must also set `parameter_server_type`.
60
+ # Corresponds to the JSON property `parameterServerCount`
61
+ # @return [Fixnum]
62
+ attr_accessor :parameter_server_count
127
63
 
128
- # Optional. How the parameter should be scaled to the hypercube.
129
- # Leave unset for categorical parameters.
130
- # Some kind of scaling is strongly recommended for real or integral
131
- # parameters (e.g., `UNIT_LINEAR_SCALE`).
132
- # Corresponds to the JSON property `scaleType`
133
- # @return [String]
134
- attr_accessor :scale_type
64
+ # Required. The Google Cloud Storage location of the packages with
65
+ # the training program and any additional dependencies.
66
+ # The maximum number of package URIs is 100.
67
+ # Corresponds to the JSON property `packageUris`
68
+ # @return [Array<String>]
69
+ attr_accessor :package_uris
135
70
 
136
- # Required if typeis `DOUBLE` or `INTEGER`. This field
137
- # should be unset if type is `CATEGORICAL`. This value should be integers if
138
- # type is `INTEGER`.
139
- # Corresponds to the JSON property `maxValue`
140
- # @return [Float]
141
- attr_accessor :max_value
71
+ # Optional. The number of worker replicas to use for the training job. Each
72
+ # replica in the cluster will be of the type specified in `worker_type`.
73
+ # This value can only be used when `scale_tier` is set to `CUSTOM`. If you
74
+ # set this value, you must also set `worker_type`.
75
+ # Corresponds to the JSON property `workerCount`
76
+ # @return [Fixnum]
77
+ attr_accessor :worker_count
142
78
 
143
- # Required. The type of the parameter.
144
- # Corresponds to the JSON property `type`
79
+ # Optional. Specifies the type of virtual machine to use for your training
80
+ # job's master worker.
81
+ # The following types are supported:
82
+ # <dl>
83
+ # <dt>standard</dt>
84
+ # <dd>
85
+ # A basic machine configuration suitable for training simple models with
86
+ # small to moderate datasets.
87
+ # </dd>
88
+ # <dt>large_model</dt>
89
+ # <dd>
90
+ # A machine with a lot of memory, specially suited for parameter servers
91
+ # when your model is large (having many hidden layers or layers with very
92
+ # large numbers of nodes).
93
+ # </dd>
94
+ # <dt>complex_model_s</dt>
95
+ # <dd>
96
+ # A machine suitable for the master and workers of the cluster when your
97
+ # model requires more computation than the standard machine can handle
98
+ # satisfactorily.
99
+ # </dd>
100
+ # <dt>complex_model_m</dt>
101
+ # <dd>
102
+ # A machine with roughly twice the number of cores and roughly double the
103
+ # memory of <code suppresswarning="true">complex_model_s</code>.
104
+ # </dd>
105
+ # <dt>complex_model_l</dt>
106
+ # <dd>
107
+ # A machine with roughly twice the number of cores and roughly double the
108
+ # memory of <code suppresswarning="true">complex_model_m</code>.
109
+ # </dd>
110
+ # <dt>standard_gpu</dt>
111
+ # <dd>
112
+ # A machine equivalent to <code suppresswarning="true">standard</code> that
113
+ # also includes a
114
+ # <a href="/ml-engine/docs/how-tos/using-gpus">
115
+ # GPU that you can use in your trainer</a>.
116
+ # </dd>
117
+ # <dt>complex_model_m_gpu</dt>
118
+ # <dd>
119
+ # A machine equivalent to
120
+ # <code suppresswarning="true">coplex_model_m</code> that also includes
121
+ # four GPUs.
122
+ # </dd>
123
+ # </dl>
124
+ # You must set this value when `scaleTier` is set to `CUSTOM`.
125
+ # Corresponds to the JSON property `masterType`
145
126
  # @return [String]
146
- attr_accessor :type
127
+ attr_accessor :master_type
147
128
 
148
- # Required. The parameter name must be unique amongst all ParameterConfigs in
149
- # a HyperparameterSpec message. E.g., "learning_rate".
150
- # Corresponds to the JSON property `parameterName`
129
+ # Optional. The Google Cloud ML runtime version to use for training. If not
130
+ # set, Google Cloud ML will choose the latest stable version.
131
+ # Corresponds to the JSON property `runtimeVersion`
151
132
  # @return [String]
152
- attr_accessor :parameter_name
153
-
154
- # Required if type is `CATEGORICAL`. The list of possible categories.
155
- # Corresponds to the JSON property `categoricalValues`
156
- # @return [Array<String>]
157
- attr_accessor :categorical_values
158
-
159
- def initialize(**args)
160
- update!(**args)
161
- end
162
-
163
- # Update properties of this object
164
- def update!(**args)
165
- @min_value = args[:min_value] if args.key?(:min_value)
166
- @discrete_values = args[:discrete_values] if args.key?(:discrete_values)
167
- @scale_type = args[:scale_type] if args.key?(:scale_type)
168
- @max_value = args[:max_value] if args.key?(:max_value)
169
- @type = args[:type] if args.key?(:type)
170
- @parameter_name = args[:parameter_name] if args.key?(:parameter_name)
171
- @categorical_values = args[:categorical_values] if args.key?(:categorical_values)
172
- end
173
- end
174
-
175
- # Represents input parameters for a prediction job.
176
- class GoogleCloudMlV1PredictionInput
177
- include Google::Apis::Core::Hashable
133
+ attr_accessor :runtime_version
178
134
 
179
- # Required. The format of the input data files.
180
- # Corresponds to the JSON property `dataFormat`
135
+ # Required. The Python module name to run after installing the packages.
136
+ # Corresponds to the JSON property `pythonModule`
181
137
  # @return [String]
182
- attr_accessor :data_format
138
+ attr_accessor :python_module
183
139
 
184
- # Optional. The Google Cloud ML runtime version to use for this batch
185
- # prediction. If not set, Google Cloud ML will pick the runtime version used
186
- # during the CreateVersion request for this model version, or choose the
187
- # latest stable version when model version information is not available
188
- # such as when the model is specified by uri.
189
- # Corresponds to the JSON property `runtimeVersion`
140
+ # Optional. Specifies the type of virtual machine to use for your training
141
+ # job's worker nodes.
142
+ # The supported values are the same as those described in the entry for
143
+ # `masterType`.
144
+ # This value must be present when `scaleTier` is set to `CUSTOM` and
145
+ # `workerCount` is greater than zero.
146
+ # Corresponds to the JSON property `workerType`
190
147
  # @return [String]
191
- attr_accessor :runtime_version
148
+ attr_accessor :worker_type
192
149
 
193
- # Required. The Google Cloud Storage location of the input data files.
194
- # May contain wildcards.
195
- # Corresponds to the JSON property `inputPaths`
150
+ # Optional. Command line arguments to pass to the program.
151
+ # Corresponds to the JSON property `args`
196
152
  # @return [Array<String>]
197
- attr_accessor :input_paths
153
+ attr_accessor :args
198
154
 
199
- # Required. The Google Compute Engine region to run the prediction job in.
155
+ # Required. The Google Compute Engine region to run the training job in.
200
156
  # Corresponds to the JSON property `region`
201
157
  # @return [String]
202
158
  attr_accessor :region
203
159
 
204
- # Use this field if you want to specify a version of the model to use. The
205
- # string is formatted the same way as `model_version`, with the addition
206
- # of the version information:
207
- # `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[
208
- # YOUR_VERSION]</var>"`
209
- # Corresponds to the JSON property `versionName`
210
- # @return [String]
211
- attr_accessor :version_name
212
-
213
- # Use this field if you want to use the default version for the specified
214
- # model. The string must use the following format:
215
- # `"projects/<var>[YOUR_PROJECT]</var>/models/<var>[YOUR_MODEL]</var>"`
216
- # Corresponds to the JSON property `modelName`
160
+ # Optional. Specifies the type of virtual machine to use for your training
161
+ # job's parameter server.
162
+ # The supported values are the same as those described in the entry for
163
+ # `master_type`.
164
+ # This value must be present when `scaleTier` is set to `CUSTOM` and
165
+ # `parameter_server_count` is greater than zero.
166
+ # Corresponds to the JSON property `parameterServerType`
217
167
  # @return [String]
218
- attr_accessor :model_name
168
+ attr_accessor :parameter_server_type
219
169
 
220
- # Required. The output Google Cloud Storage location.
221
- # Corresponds to the JSON property `outputPath`
170
+ # Required. Specifies the machine types, the number of replicas for workers
171
+ # and parameter servers.
172
+ # Corresponds to the JSON property `scaleTier`
222
173
  # @return [String]
223
- attr_accessor :output_path
174
+ attr_accessor :scale_tier
224
175
 
225
- # Use this field if you want to specify a Google Cloud Storage path for
226
- # the model to use.
227
- # Corresponds to the JSON property `uri`
176
+ # Optional. A Google Cloud Storage path in which to store training outputs
177
+ # and other data needed for training. This path is passed to your TensorFlow
178
+ # program as the 'job_dir' command-line argument. The benefit of specifying
179
+ # this field is that Cloud ML validates the path for use in training.
180
+ # Corresponds to the JSON property `jobDir`
228
181
  # @return [String]
229
- attr_accessor :uri
182
+ attr_accessor :job_dir
230
183
 
231
- # Optional. The maximum number of workers to be used for parallel processing.
232
- # Defaults to 10 if not specified.
233
- # Corresponds to the JSON property `maxWorkerCount`
234
- # @return [Fixnum]
235
- attr_accessor :max_worker_count
184
+ # Represents a set of hyperparameters to optimize.
185
+ # Corresponds to the JSON property `hyperparameters`
186
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec]
187
+ attr_accessor :hyperparameters
236
188
 
237
189
  def initialize(**args)
238
190
  update!(**args)
@@ -240,123 +192,136 @@ module Google
240
192
 
241
193
  # Update properties of this object
242
194
  def update!(**args)
243
- @data_format = args[:data_format] if args.key?(:data_format)
195
+ @parameter_server_count = args[:parameter_server_count] if args.key?(:parameter_server_count)
196
+ @package_uris = args[:package_uris] if args.key?(:package_uris)
197
+ @worker_count = args[:worker_count] if args.key?(:worker_count)
198
+ @master_type = args[:master_type] if args.key?(:master_type)
244
199
  @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
245
- @input_paths = args[:input_paths] if args.key?(:input_paths)
200
+ @python_module = args[:python_module] if args.key?(:python_module)
201
+ @worker_type = args[:worker_type] if args.key?(:worker_type)
202
+ @args = args[:args] if args.key?(:args)
246
203
  @region = args[:region] if args.key?(:region)
247
- @version_name = args[:version_name] if args.key?(:version_name)
248
- @model_name = args[:model_name] if args.key?(:model_name)
249
- @output_path = args[:output_path] if args.key?(:output_path)
250
- @uri = args[:uri] if args.key?(:uri)
251
- @max_worker_count = args[:max_worker_count] if args.key?(:max_worker_count)
204
+ @parameter_server_type = args[:parameter_server_type] if args.key?(:parameter_server_type)
205
+ @scale_tier = args[:scale_tier] if args.key?(:scale_tier)
206
+ @job_dir = args[:job_dir] if args.key?(:job_dir)
207
+ @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
252
208
  end
253
209
  end
254
210
 
255
- # Represents the metadata of the long-running operation.
256
- class GoogleCloudMlV1beta1OperationMetadata
211
+ # Represents a training or prediction job.
212
+ class GoogleCloudMlV1Job
257
213
  include Google::Apis::Core::Hashable
258
214
 
259
- # Indicates whether a request to cancel this operation has been made.
260
- # Corresponds to the JSON property `isCancellationRequested`
261
- # @return [Boolean]
262
- attr_accessor :is_cancellation_requested
263
- alias_method :is_cancellation_requested?, :is_cancellation_requested
215
+ # Represents results of a training job. Output only.
216
+ # Corresponds to the JSON property `trainingOutput`
217
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput]
218
+ attr_accessor :training_output
264
219
 
265
- # The time the operation was submitted.
220
+ # Output only. When the job was created.
266
221
  # Corresponds to the JSON property `createTime`
267
222
  # @return [String]
268
223
  attr_accessor :create_time
269
224
 
270
- # Contains the name of the model associated with the operation.
271
- # Corresponds to the JSON property `modelName`
225
+ # Represents input parameters for a training job.
226
+ # Corresponds to the JSON property `trainingInput`
227
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingInput]
228
+ attr_accessor :training_input
229
+
230
+ # Output only. The detailed state of a job.
231
+ # Corresponds to the JSON property `state`
272
232
  # @return [String]
273
- attr_accessor :model_name
233
+ attr_accessor :state
274
234
 
275
- # Represents a version of the model.
276
- # Each version is a trained model deployed in the cloud, ready to handle
277
- # prediction requests. A model can have multiple versions. You can get
278
- # information about all of the versions of a given model by calling
279
- # [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.
280
- # models.versions/list).
281
- # Corresponds to the JSON property `version`
282
- # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1Version]
283
- attr_accessor :version
235
+ # Represents input parameters for a prediction job.
236
+ # Corresponds to the JSON property `predictionInput`
237
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionInput]
238
+ attr_accessor :prediction_input
284
239
 
285
- # The time operation processing completed.
286
- # Corresponds to the JSON property `endTime`
240
+ # Output only. The details of a failure or a cancellation.
241
+ # Corresponds to the JSON property `errorMessage`
287
242
  # @return [String]
288
- attr_accessor :end_time
243
+ attr_accessor :error_message
289
244
 
290
- # The operation type.
291
- # Corresponds to the JSON property `operationType`
245
+ # Required. The user-specified id of the job.
246
+ # Corresponds to the JSON property `jobId`
292
247
  # @return [String]
293
- attr_accessor :operation_type
248
+ attr_accessor :job_id
294
249
 
295
- # The time operation processing started.
250
+ # Output only. When the job processing was completed.
251
+ # Corresponds to the JSON property `endTime`
252
+ # @return [String]
253
+ attr_accessor :end_time
254
+
255
+ # Output only. When the job processing was started.
296
256
  # Corresponds to the JSON property `startTime`
297
257
  # @return [String]
298
258
  attr_accessor :start_time
299
259
 
260
+ # Represents results of a prediction job.
261
+ # Corresponds to the JSON property `predictionOutput`
262
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput]
263
+ attr_accessor :prediction_output
264
+
300
265
  def initialize(**args)
301
266
  update!(**args)
302
267
  end
303
268
 
304
269
  # Update properties of this object
305
270
  def update!(**args)
306
- @is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested)
271
+ @training_output = args[:training_output] if args.key?(:training_output)
307
272
  @create_time = args[:create_time] if args.key?(:create_time)
308
- @model_name = args[:model_name] if args.key?(:model_name)
309
- @version = args[:version] if args.key?(:version)
273
+ @training_input = args[:training_input] if args.key?(:training_input)
274
+ @state = args[:state] if args.key?(:state)
275
+ @prediction_input = args[:prediction_input] if args.key?(:prediction_input)
276
+ @error_message = args[:error_message] if args.key?(:error_message)
277
+ @job_id = args[:job_id] if args.key?(:job_id)
310
278
  @end_time = args[:end_time] if args.key?(:end_time)
311
- @operation_type = args[:operation_type] if args.key?(:operation_type)
312
279
  @start_time = args[:start_time] if args.key?(:start_time)
280
+ @prediction_output = args[:prediction_output] if args.key?(:prediction_output)
313
281
  end
314
282
  end
315
283
 
316
- # Represents the metadata of the long-running operation.
317
- class GoogleCloudMlV1OperationMetadata
284
+ # Message that represents an arbitrary HTTP body. It should only be used for
285
+ # payload formats that can't be represented as JSON, such as raw binary or
286
+ # an HTML page.
287
+ # This message can be used both in streaming and non-streaming API methods in
288
+ # the request as well as the response.
289
+ # It can be used as a top-level request field, which is convenient if one
290
+ # wants to extract parameters from either the URL or HTTP template into the
291
+ # request fields and also want access to the raw HTTP body.
292
+ # Example:
293
+ # message GetResourceRequest `
294
+ # // A unique request id.
295
+ # string request_id = 1;
296
+ # // The raw HTTP body is bound to this field.
297
+ # google.api.HttpBody http_body = 2;
298
+ # `
299
+ # service ResourceService `
300
+ # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
301
+ # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
302
+ # `
303
+ # Example with streaming methods:
304
+ # service CaldavService `
305
+ # rpc GetCalendar(stream google.api.HttpBody)
306
+ # returns (stream google.api.HttpBody);
307
+ # rpc UpdateCalendar(stream google.api.HttpBody)
308
+ # returns (stream google.api.HttpBody);
309
+ # `
310
+ # Use of this type only changes how the request and response bodies are
311
+ # handled, all other features will continue to work unchanged.
312
+ class GoogleApiHttpBody
318
313
  include Google::Apis::Core::Hashable
319
314
 
320
- # The time the operation was submitted.
321
- # Corresponds to the JSON property `createTime`
322
- # @return [String]
323
- attr_accessor :create_time
324
-
325
- # Contains the name of the model associated with the operation.
326
- # Corresponds to the JSON property `modelName`
327
- # @return [String]
328
- attr_accessor :model_name
329
-
330
- # Represents a version of the model.
331
- # Each version is a trained model deployed in the cloud, ready to handle
332
- # prediction requests. A model can have multiple versions. You can get
333
- # information about all of the versions of a given model by calling
334
- # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
335
- # versions/list).
336
- # Corresponds to the JSON property `version`
337
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
338
- attr_accessor :version
339
-
340
- # The time operation processing completed.
341
- # Corresponds to the JSON property `endTime`
342
- # @return [String]
343
- attr_accessor :end_time
344
-
345
- # The operation type.
346
- # Corresponds to the JSON property `operationType`
315
+ # HTTP body binary data.
316
+ # Corresponds to the JSON property `data`
317
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
347
318
  # @return [String]
348
- attr_accessor :operation_type
319
+ attr_accessor :data
349
320
 
350
- # The time operation processing started.
351
- # Corresponds to the JSON property `startTime`
321
+ # The HTTP Content-Type string representing the content type of the body.
322
+ # Corresponds to the JSON property `contentType`
352
323
  # @return [String]
353
- attr_accessor :start_time
354
-
355
- # Indicates whether a request to cancel this operation has been made.
356
- # Corresponds to the JSON property `isCancellationRequested`
357
- # @return [Boolean]
358
- attr_accessor :is_cancellation_requested
359
- alias_method :is_cancellation_requested?, :is_cancellation_requested
324
+ attr_accessor :content_type
360
325
 
361
326
  def initialize(**args)
362
327
  update!(**args)
@@ -364,59 +329,77 @@ module Google
364
329
 
365
330
  # Update properties of this object
366
331
  def update!(**args)
367
- @create_time = args[:create_time] if args.key?(:create_time)
368
- @model_name = args[:model_name] if args.key?(:model_name)
369
- @version = args[:version] if args.key?(:version)
370
- @end_time = args[:end_time] if args.key?(:end_time)
371
- @operation_type = args[:operation_type] if args.key?(:operation_type)
372
- @start_time = args[:start_time] if args.key?(:start_time)
373
- @is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested)
332
+ @data = args[:data] if args.key?(:data)
333
+ @content_type = args[:content_type] if args.key?(:content_type)
374
334
  end
375
335
  end
376
336
 
377
- # Represents a set of hyperparameters to optimize.
378
- class GoogleCloudMlV1HyperparameterSpec
337
+ # Represents a version of the model.
338
+ # Each version is a trained model deployed in the cloud, ready to handle
339
+ # prediction requests. A model can have multiple versions. You can get
340
+ # information about all of the versions of a given model by calling
341
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.
342
+ # models.versions/list).
343
+ class GoogleCloudMlV1beta1Version
379
344
  include Google::Apis::Core::Hashable
380
345
 
381
- # Required. The type of goal to use for tuning. Available types are
382
- # `MAXIMIZE` and `MINIMIZE`.
383
- # Defaults to `MAXIMIZE`.
384
- # Corresponds to the JSON property `goal`
346
+ # Optional. The Google Cloud ML runtime version to use for this deployment.
347
+ # If not set, Google Cloud ML will choose a version.
348
+ # Corresponds to the JSON property `runtimeVersion`
385
349
  # @return [String]
386
- attr_accessor :goal
350
+ attr_accessor :runtime_version
387
351
 
388
- # Optional. The Tensorflow summary tag name to use for optimizing trials. For
389
- # current versions of Tensorflow, this tag name should exactly match what is
390
- # shown in Tensorboard, including all scopes. For versions of Tensorflow
391
- # prior to 0.12, this should be only the tag passed to tf.Summary.
392
- # By default, "training/hptuning/metric" will be used.
393
- # Corresponds to the JSON property `hyperparameterMetricTag`
352
+ # Output only. The time the version was last used for prediction.
353
+ # Corresponds to the JSON property `lastUseTime`
394
354
  # @return [String]
395
- attr_accessor :hyperparameter_metric_tag
396
-
397
- # Required. The set of parameters to tune.
398
- # Corresponds to the JSON property `params`
399
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1ParameterSpec>]
400
- attr_accessor :params
355
+ attr_accessor :last_use_time
401
356
 
402
- # Optional. How many training trials should be attempted to optimize
403
- # the specified hyperparameters.
404
- # Defaults to one.
405
- # Corresponds to the JSON property `maxTrials`
406
- # @return [Fixnum]
407
- attr_accessor :max_trials
357
+ # Optional. The description specified for the version when it was created.
358
+ # Corresponds to the JSON property `description`
359
+ # @return [String]
360
+ attr_accessor :description
408
361
 
409
- # Optional. The number of training trials to run concurrently.
410
- # You can reduce the time it takes to perform hyperparameter tuning by adding
411
- # trials in parallel. However, each trail only benefits from the information
412
- # gained in completed trials. That means that a trial does not get access to
413
- # the results of trials running at the same time, which could reduce the
414
- # quality of the overall optimization.
415
- # Each trial will use the same scale tier and machine types.
416
- # Defaults to one.
417
- # Corresponds to the JSON property `maxParallelTrials`
418
- # @return [Fixnum]
419
- attr_accessor :max_parallel_trials
362
+ # Required. The Google Cloud Storage location of the trained model used to
363
+ # create the version. See the
364
+ # [overview of model
365
+ # deployment](/ml-engine/docs/concepts/deployment-overview) for more
366
+ # informaiton.
367
+ # When passing Version to
368
+ # [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/projects.
369
+ # models.versions/create)
370
+ # the model service uses the specified location as the source of the model.
371
+ # Once deployed, the model version is hosted by the prediction service, so
372
+ # this location is useful only as a historical record.
373
+ # The total number of model files can't exceed 1000.
374
+ # Corresponds to the JSON property `deploymentUri`
375
+ # @return [String]
376
+ attr_accessor :deployment_uri
377
+
378
+ # Output only. If true, this version will be used to handle prediction
379
+ # requests that do not specify a version.
380
+ # You can change the default version by calling
381
+ # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1beta1/
382
+ # projects.models.versions/setDefault).
383
+ # Corresponds to the JSON property `isDefault`
384
+ # @return [Boolean]
385
+ attr_accessor :is_default
386
+ alias_method :is_default?, :is_default
387
+
388
+ # Output only. The time the version was created.
389
+ # Corresponds to the JSON property `createTime`
390
+ # @return [String]
391
+ attr_accessor :create_time
392
+
393
+ # Options for manually scaling a model.
394
+ # Corresponds to the JSON property `manualScaling`
395
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling]
396
+ attr_accessor :manual_scaling
397
+
398
+ # Required.The name specified for the version when it was created.
399
+ # The version name must be unique within the model it is created in.
400
+ # Corresponds to the JSON property `name`
401
+ # @return [String]
402
+ attr_accessor :name
420
403
 
421
404
  def initialize(**args)
422
405
  update!(**args)
@@ -424,28 +407,30 @@ module Google
424
407
 
425
408
  # Update properties of this object
426
409
  def update!(**args)
427
- @goal = args[:goal] if args.key?(:goal)
428
- @hyperparameter_metric_tag = args[:hyperparameter_metric_tag] if args.key?(:hyperparameter_metric_tag)
429
- @params = args[:params] if args.key?(:params)
430
- @max_trials = args[:max_trials] if args.key?(:max_trials)
431
- @max_parallel_trials = args[:max_parallel_trials] if args.key?(:max_parallel_trials)
410
+ @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
411
+ @last_use_time = args[:last_use_time] if args.key?(:last_use_time)
412
+ @description = args[:description] if args.key?(:description)
413
+ @deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri)
414
+ @is_default = args[:is_default] if args.key?(:is_default)
415
+ @create_time = args[:create_time] if args.key?(:create_time)
416
+ @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
417
+ @name = args[:name] if args.key?(:name)
432
418
  end
433
419
  end
434
420
 
435
- # Response message for the ListJobs method.
436
- class GoogleCloudMlV1ListJobsResponse
421
+ # Returns service account information associated with a project.
422
+ class GoogleCloudMlV1GetConfigResponse
437
423
  include Google::Apis::Core::Hashable
438
424
 
439
- # The list of jobs.
440
- # Corresponds to the JSON property `jobs`
441
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Job>]
442
- attr_accessor :jobs
425
+ # The project number for `service_account`.
426
+ # Corresponds to the JSON property `serviceAccountProject`
427
+ # @return [Fixnum]
428
+ attr_accessor :service_account_project
443
429
 
444
- # Optional. Pass this token as the `page_token` field of the request for a
445
- # subsequent call.
446
- # Corresponds to the JSON property `nextPageToken`
430
+ # The service account Cloud ML uses to access resources in the project.
431
+ # Corresponds to the JSON property `serviceAccount`
447
432
  # @return [String]
448
- attr_accessor :next_page_token
433
+ attr_accessor :service_account
449
434
 
450
435
  def initialize(**args)
451
436
  update!(**args)
@@ -453,106 +438,74 @@ module Google
453
438
 
454
439
  # Update properties of this object
455
440
  def update!(**args)
456
- @jobs = args[:jobs] if args.key?(:jobs)
457
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
441
+ @service_account_project = args[:service_account_project] if args.key?(:service_account_project)
442
+ @service_account = args[:service_account] if args.key?(:service_account)
458
443
  end
459
444
  end
460
445
 
461
- # Request message for the SetDefaultVersion request.
462
- class GoogleCloudMlV1SetDefaultVersionRequest
446
+ # Represents the result of a single hyperparameter tuning trial from a
447
+ # training job. The TrainingOutput object that is returned on successful
448
+ # completion of a training job with hyperparameter tuning includes a list
449
+ # of HyperparameterOutput objects, one for each successful trial.
450
+ class GoogleCloudMlV1HyperparameterOutput
463
451
  include Google::Apis::Core::Hashable
464
452
 
453
+ # The hyperparameters given to this trial.
454
+ # Corresponds to the JSON property `hyperparameters`
455
+ # @return [Hash<String,String>]
456
+ attr_accessor :hyperparameters
457
+
458
+ # The trial id for these results.
459
+ # Corresponds to the JSON property `trialId`
460
+ # @return [String]
461
+ attr_accessor :trial_id
462
+
463
+ # All recorded object metrics for this trial.
464
+ # Corresponds to the JSON property `allMetrics`
465
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>]
466
+ attr_accessor :all_metrics
467
+
468
+ # An observed value of a metric.
469
+ # Corresponds to the JSON property `finalMetric`
470
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric]
471
+ attr_accessor :final_metric
472
+
465
473
  def initialize(**args)
466
474
  update!(**args)
467
475
  end
468
476
 
469
477
  # Update properties of this object
470
478
  def update!(**args)
479
+ @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
480
+ @trial_id = args[:trial_id] if args.key?(:trial_id)
481
+ @all_metrics = args[:all_metrics] if args.key?(:all_metrics)
482
+ @final_metric = args[:final_metric] if args.key?(:final_metric)
471
483
  end
472
484
  end
473
485
 
474
- # This resource represents a long-running operation that is the result of a
475
- # network API call.
476
- class GoogleLongrunningOperation
486
+ # Represents results of a prediction job.
487
+ class GoogleCloudMlV1PredictionOutput
477
488
  include Google::Apis::Core::Hashable
478
489
 
479
- # The `Status` type defines a logical error model that is suitable for different
480
- # programming environments, including REST APIs and RPC APIs. It is used by
481
- # [gRPC](https://github.com/grpc). The error model is designed to be:
482
- # - Simple to use and understand for most users
483
- # - Flexible enough to meet unexpected needs
484
- # # Overview
485
- # The `Status` message contains three pieces of data: error code, error message,
486
- # and error details. The error code should be an enum value of
487
- # google.rpc.Code, but it may accept additional error codes if needed. The
488
- # error message should be a developer-facing English message that helps
489
- # developers *understand* and *resolve* the error. If a localized user-facing
490
- # error message is needed, put the localized message in the error details or
491
- # localize it in the client. The optional error details may contain arbitrary
492
- # information about the error. There is a predefined set of error detail types
493
- # in the package `google.rpc` which can be used for common error conditions.
494
- # # Language mapping
495
- # The `Status` message is the logical representation of the error model, but it
496
- # is not necessarily the actual wire format. When the `Status` message is
497
- # exposed in different client libraries and different wire protocols, it can be
498
- # mapped differently. For example, it will likely be mapped to some exceptions
499
- # in Java, but more likely mapped to some error codes in C.
500
- # # Other uses
501
- # The error model and the `Status` message can be used in a variety of
502
- # environments, either with or without APIs, to provide a
503
- # consistent developer experience across different environments.
504
- # Example uses of this error model include:
505
- # - Partial errors. If a service needs to return partial errors to the client,
506
- # it may embed the `Status` in the normal response to indicate the partial
507
- # errors.
508
- # - Workflow errors. A typical workflow has multiple steps. Each step may
509
- # have a `Status` message for error reporting purpose.
510
- # - Batch operations. If a client uses batch request and batch response, the
511
- # `Status` message should be used directly inside batch response, one for
512
- # each error sub-response.
513
- # - Asynchronous operations. If an API call embeds asynchronous operation
514
- # results in its response, the status of those operations should be
515
- # represented directly using the `Status` message.
516
- # - Logging. If some API errors are stored in logs, the message `Status` could
517
- # be used directly after any stripping needed for security/privacy reasons.
518
- # Corresponds to the JSON property `error`
519
- # @return [Google::Apis::MlV1::GoogleRpcStatus]
520
- attr_accessor :error
521
-
522
- # Service-specific metadata associated with the operation. It typically
523
- # contains progress information and common metadata such as create time.
524
- # Some services might not provide such metadata. Any method that returns a
525
- # long-running operation should document the metadata type, if any.
526
- # Corresponds to the JSON property `metadata`
527
- # @return [Hash<String,Object>]
528
- attr_accessor :metadata
490
+ # The number of data instances which resulted in errors.
491
+ # Corresponds to the JSON property `errorCount`
492
+ # @return [Fixnum]
493
+ attr_accessor :error_count
529
494
 
530
- # If the value is `false`, it means the operation is still in progress.
531
- # If true, the operation is completed, and either `error` or `response` is
532
- # available.
533
- # Corresponds to the JSON property `done`
534
- # @return [Boolean]
535
- attr_accessor :done
536
- alias_method :done?, :done
495
+ # The output Google Cloud Storage location provided at the job creation time.
496
+ # Corresponds to the JSON property `outputPath`
497
+ # @return [String]
498
+ attr_accessor :output_path
537
499
 
538
- # The normal response of the operation in case of success. If the original
539
- # method returns no data on success, such as `Delete`, the response is
540
- # `google.protobuf.Empty`. If the original method is standard
541
- # `Get`/`Create`/`Update`, the response should be the resource. For other
542
- # methods, the response should have the type `XxxResponse`, where `Xxx`
543
- # is the original method name. For example, if the original method name
544
- # is `TakeSnapshot()`, the inferred response type is
545
- # `TakeSnapshotResponse`.
546
- # Corresponds to the JSON property `response`
547
- # @return [Hash<String,Object>]
548
- attr_accessor :response
500
+ # Node hours used by the batch prediction job.
501
+ # Corresponds to the JSON property `nodeHours`
502
+ # @return [Float]
503
+ attr_accessor :node_hours
549
504
 
550
- # The server-assigned name, which is only unique within the same service that
551
- # originally returns it. If you use the default HTTP mapping, the
552
- # `name` should have the format of `operations/some/unique/name`.
553
- # Corresponds to the JSON property `name`
554
- # @return [String]
555
- attr_accessor :name
505
+ # The number of generated predictions.
506
+ # Corresponds to the JSON property `predictionCount`
507
+ # @return [Fixnum]
508
+ attr_accessor :prediction_count
556
509
 
557
510
  def initialize(**args)
558
511
  update!(**args)
@@ -560,136 +513,40 @@ module Google
560
513
 
561
514
  # Update properties of this object
562
515
  def update!(**args)
563
- @error = args[:error] if args.key?(:error)
564
- @metadata = args[:metadata] if args.key?(:metadata)
565
- @done = args[:done] if args.key?(:done)
566
- @response = args[:response] if args.key?(:response)
567
- @name = args[:name] if args.key?(:name)
516
+ @error_count = args[:error_count] if args.key?(:error_count)
517
+ @output_path = args[:output_path] if args.key?(:output_path)
518
+ @node_hours = args[:node_hours] if args.key?(:node_hours)
519
+ @prediction_count = args[:prediction_count] if args.key?(:prediction_count)
568
520
  end
569
521
  end
570
522
 
571
- # Represents a machine learning solution.
572
- # A model can have multiple versions, each of which is a deployed, trained
573
- # model ready to receive prediction requests. The model itself is just a
574
- # container.
575
- class GoogleCloudMlV1Model
523
+ # The response message for Operations.ListOperations.
524
+ class GoogleLongrunningListOperationsResponse
576
525
  include Google::Apis::Core::Hashable
577
526
 
578
- # Optional. The description specified for the model when it was created.
579
- # Corresponds to the JSON property `description`
527
+ # The standard List next-page token.
528
+ # Corresponds to the JSON property `nextPageToken`
580
529
  # @return [String]
581
- attr_accessor :description
530
+ attr_accessor :next_page_token
582
531
 
583
- # Optional. If true, enables StackDriver Logging for online prediction.
584
- # Default is false.
585
- # Corresponds to the JSON property `onlinePredictionLogging`
586
- # @return [Boolean]
587
- attr_accessor :online_prediction_logging
588
- alias_method :online_prediction_logging?, :online_prediction_logging
532
+ # A list of operations that matches the specified filter in the request.
533
+ # Corresponds to the JSON property `operations`
534
+ # @return [Array<Google::Apis::MlV1::GoogleLongrunningOperation>]
535
+ attr_accessor :operations
589
536
 
590
- # Represents a version of the model.
591
- # Each version is a trained model deployed in the cloud, ready to handle
592
- # prediction requests. A model can have multiple versions. You can get
593
- # information about all of the versions of a given model by calling
594
- # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
595
- # versions/list).
596
- # Corresponds to the JSON property `defaultVersion`
597
- # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
598
- attr_accessor :default_version
599
-
600
- # Optional. The list of regions where the model is going to be deployed.
601
- # Currently only one region per model is supported.
602
- # Defaults to 'us-central1' if nothing is set.
603
- # Note:
604
- # * No matter where a model is deployed, it can always be accessed by
605
- # users from anywhere, both for online and batch prediction.
606
- # * The region for a batch prediction job is set by the region field when
607
- # submitting the batch prediction job and does not take its value from
608
- # this field.
609
- # Corresponds to the JSON property `regions`
610
- # @return [Array<String>]
611
- attr_accessor :regions
612
-
613
- # Required. The name specified for the model when it was created.
614
- # The model name must be unique within the project it is created in.
615
- # Corresponds to the JSON property `name`
616
- # @return [String]
617
- attr_accessor :name
618
-
619
- def initialize(**args)
620
- update!(**args)
621
- end
622
-
623
- # Update properties of this object
624
- def update!(**args)
625
- @description = args[:description] if args.key?(:description)
626
- @online_prediction_logging = args[:online_prediction_logging] if args.key?(:online_prediction_logging)
627
- @default_version = args[:default_version] if args.key?(:default_version)
628
- @regions = args[:regions] if args.key?(:regions)
629
- @name = args[:name] if args.key?(:name)
630
- end
631
- end
632
-
633
- # A generic empty message that you can re-use to avoid defining duplicated
634
- # empty messages in your APIs. A typical example is to use it as the request
635
- # or the response type of an API method. For instance:
636
- # service Foo `
637
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
638
- # `
639
- # The JSON representation for `Empty` is empty JSON object ````.
640
- class GoogleProtobufEmpty
641
- include Google::Apis::Core::Hashable
642
-
643
- def initialize(**args)
644
- update!(**args)
645
- end
646
-
647
- # Update properties of this object
648
- def update!(**args)
649
- end
650
- end
651
-
652
- # Response message for the ListVersions method.
653
- class GoogleCloudMlV1ListVersionsResponse
654
- include Google::Apis::Core::Hashable
655
-
656
- # The list of versions.
657
- # Corresponds to the JSON property `versions`
658
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Version>]
659
- attr_accessor :versions
660
-
661
- # Optional. Pass this token as the `page_token` field of the request for a
662
- # subsequent call.
663
- # Corresponds to the JSON property `nextPageToken`
664
- # @return [String]
665
- attr_accessor :next_page_token
666
-
667
- def initialize(**args)
668
- update!(**args)
669
- end
537
+ def initialize(**args)
538
+ update!(**args)
539
+ end
670
540
 
671
541
  # Update properties of this object
672
542
  def update!(**args)
673
- @versions = args[:versions] if args.key?(:versions)
674
543
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
675
- end
676
- end
677
-
678
- # Request message for the CancelJob method.
679
- class GoogleCloudMlV1CancelJobRequest
680
- include Google::Apis::Core::Hashable
681
-
682
- def initialize(**args)
683
- update!(**args)
684
- end
685
-
686
- # Update properties of this object
687
- def update!(**args)
544
+ @operations = args[:operations] if args.key?(:operations)
688
545
  end
689
546
  end
690
547
 
691
548
  # Options for manually scaling a model.
692
- class GoogleCloudMlV1beta1ManualScaling
549
+ class GoogleCloudMlV1ManualScaling
693
550
  include Google::Apis::Core::Hashable
694
551
 
695
552
  # The number of nodes to allocate for this model. These nodes are always up,
@@ -710,92 +567,32 @@ module Google
710
567
  end
711
568
  end
712
569
 
713
- # The `Status` type defines a logical error model that is suitable for different
714
- # programming environments, including REST APIs and RPC APIs. It is used by
715
- # [gRPC](https://github.com/grpc). The error model is designed to be:
716
- # - Simple to use and understand for most users
717
- # - Flexible enough to meet unexpected needs
718
- # # Overview
719
- # The `Status` message contains three pieces of data: error code, error message,
720
- # and error details. The error code should be an enum value of
721
- # google.rpc.Code, but it may accept additional error codes if needed. The
722
- # error message should be a developer-facing English message that helps
723
- # developers *understand* and *resolve* the error. If a localized user-facing
724
- # error message is needed, put the localized message in the error details or
725
- # localize it in the client. The optional error details may contain arbitrary
726
- # information about the error. There is a predefined set of error detail types
727
- # in the package `google.rpc` which can be used for common error conditions.
728
- # # Language mapping
729
- # The `Status` message is the logical representation of the error model, but it
730
- # is not necessarily the actual wire format. When the `Status` message is
731
- # exposed in different client libraries and different wire protocols, it can be
732
- # mapped differently. For example, it will likely be mapped to some exceptions
733
- # in Java, but more likely mapped to some error codes in C.
734
- # # Other uses
735
- # The error model and the `Status` message can be used in a variety of
736
- # environments, either with or without APIs, to provide a
737
- # consistent developer experience across different environments.
738
- # Example uses of this error model include:
739
- # - Partial errors. If a service needs to return partial errors to the client,
740
- # it may embed the `Status` in the normal response to indicate the partial
741
- # errors.
742
- # - Workflow errors. A typical workflow has multiple steps. Each step may
743
- # have a `Status` message for error reporting purpose.
744
- # - Batch operations. If a client uses batch request and batch response, the
745
- # `Status` message should be used directly inside batch response, one for
746
- # each error sub-response.
747
- # - Asynchronous operations. If an API call embeds asynchronous operation
748
- # results in its response, the status of those operations should be
749
- # represented directly using the `Status` message.
750
- # - Logging. If some API errors are stored in logs, the message `Status` could
751
- # be used directly after any stripping needed for security/privacy reasons.
752
- class GoogleRpcStatus
570
+ # Represents results of a training job. Output only.
571
+ class GoogleCloudMlV1TrainingOutput
753
572
  include Google::Apis::Core::Hashable
754
573
 
755
- # The status code, which should be an enum value of google.rpc.Code.
756
- # Corresponds to the JSON property `code`
574
+ # The number of hyperparameter tuning trials that completed successfully.
575
+ # Only set for hyperparameter tuning jobs.
576
+ # Corresponds to the JSON property `completedTrialCount`
757
577
  # @return [Fixnum]
758
- attr_accessor :code
759
-
760
- # A developer-facing error message, which should be in English. Any
761
- # user-facing error message should be localized and sent in the
762
- # google.rpc.Status.details field, or localized by the client.
763
- # Corresponds to the JSON property `message`
764
- # @return [String]
765
- attr_accessor :message
766
-
767
- # A list of messages that carry the error details. There will be a
768
- # common set of message types for APIs to use.
769
- # Corresponds to the JSON property `details`
770
- # @return [Array<Hash<String,Object>>]
771
- attr_accessor :details
772
-
773
- def initialize(**args)
774
- update!(**args)
775
- end
776
-
777
- # Update properties of this object
778
- def update!(**args)
779
- @code = args[:code] if args.key?(:code)
780
- @message = args[:message] if args.key?(:message)
781
- @details = args[:details] if args.key?(:details)
782
- end
783
- end
578
+ attr_accessor :completed_trial_count
784
579
 
785
- # Response message for the ListModels method.
786
- class GoogleCloudMlV1ListModelsResponse
787
- include Google::Apis::Core::Hashable
580
+ # Whether this job is a hyperparameter tuning job.
581
+ # Corresponds to the JSON property `isHyperparameterTuningJob`
582
+ # @return [Boolean]
583
+ attr_accessor :is_hyperparameter_tuning_job
584
+ alias_method :is_hyperparameter_tuning_job?, :is_hyperparameter_tuning_job
788
585
 
789
- # Optional. Pass this token as the `page_token` field of the request for a
790
- # subsequent call.
791
- # Corresponds to the JSON property `nextPageToken`
792
- # @return [String]
793
- attr_accessor :next_page_token
586
+ # The amount of ML units consumed by the job.
587
+ # Corresponds to the JSON property `consumedMLUnits`
588
+ # @return [Float]
589
+ attr_accessor :consumed_ml_units
794
590
 
795
- # The list of models.
796
- # Corresponds to the JSON property `models`
797
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Model>]
798
- attr_accessor :models
591
+ # Results for individual Hyperparameter trials.
592
+ # Only set for hyperparameter tuning jobs.
593
+ # Corresponds to the JSON property `trials`
594
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput>]
595
+ attr_accessor :trials
799
596
 
800
597
  def initialize(**args)
801
598
  update!(**args)
@@ -803,223 +600,225 @@ module Google
803
600
 
804
601
  # Update properties of this object
805
602
  def update!(**args)
806
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
807
- @models = args[:models] if args.key?(:models)
603
+ @completed_trial_count = args[:completed_trial_count] if args.key?(:completed_trial_count)
604
+ @is_hyperparameter_tuning_job = args[:is_hyperparameter_tuning_job] if args.key?(:is_hyperparameter_tuning_job)
605
+ @consumed_ml_units = args[:consumed_ml_units] if args.key?(:consumed_ml_units)
606
+ @trials = args[:trials] if args.key?(:trials)
808
607
  end
809
608
  end
810
609
 
811
- # Represents input parameters for a training job.
812
- class GoogleCloudMlV1TrainingInput
813
- include Google::Apis::Core::Hashable
814
-
815
- # Represents a set of hyperparameters to optimize.
816
- # Corresponds to the JSON property `hyperparameters`
817
- # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec]
818
- attr_accessor :hyperparameters
819
-
820
- # Optional. The number of parameter server replicas to use for the training
821
- # job. Each replica in the cluster will be of the type specified in
822
- # `parameter_server_type`.
823
- # This value can only be used when `scale_tier` is set to `CUSTOM`.If you
824
- # set this value, you must also set `parameter_server_type`.
825
- # Corresponds to the JSON property `parameterServerCount`
826
- # @return [Fixnum]
827
- attr_accessor :parameter_server_count
828
-
829
- # Required. The Google Cloud Storage location of the packages with
830
- # the training program and any additional dependencies.
831
- # Corresponds to the JSON property `packageUris`
832
- # @return [Array<String>]
833
- attr_accessor :package_uris
834
-
835
- # Optional. The number of worker replicas to use for the training job. Each
836
- # replica in the cluster will be of the type specified in `worker_type`.
837
- # This value can only be used when `scale_tier` is set to `CUSTOM`. If you
838
- # set this value, you must also set `worker_type`.
839
- # Corresponds to the JSON property `workerCount`
840
- # @return [Fixnum]
841
- attr_accessor :worker_count
842
-
843
- # Optional. Specifies the type of virtual machine to use for your training
844
- # job's master worker.
845
- # The following types are supported:
846
- # <dl>
847
- # <dt>standard</dt>
848
- # <dd>
849
- # A basic machine configuration suitable for training simple models with
850
- # small to moderate datasets.
851
- # </dd>
852
- # <dt>large_model</dt>
853
- # <dd>
854
- # A machine with a lot of memory, specially suited for parameter servers
855
- # when your model is large (having many hidden layers or layers with very
856
- # large numbers of nodes).
857
- # </dd>
858
- # <dt>complex_model_s</dt>
859
- # <dd>
860
- # A machine suitable for the master and workers of the cluster when your
861
- # model requires more computation than the standard machine can handle
862
- # satisfactorily.
863
- # </dd>
864
- # <dt>complex_model_m</dt>
865
- # <dd>
866
- # A machine with roughly twice the number of cores and roughly double the
867
- # memory of <code suppresswarning="true">complex_model_s</code>.
868
- # </dd>
869
- # <dt>complex_model_l</dt>
870
- # <dd>
871
- # A machine with roughly twice the number of cores and roughly double the
872
- # memory of <code suppresswarning="true">complex_model_m</code>.
873
- # </dd>
874
- # <dt>standard_gpu</dt>
875
- # <dd>
876
- # A machine equivalent to <code suppresswarning="true">standard</code> that
877
- # also includes a
878
- # <a href="/ml-engine/docs/how-tos/using-gpus">
879
- # GPU that you can use in your trainer</a>.
880
- # </dd>
881
- # <dt>complex_model_m_gpu</dt>
882
- # <dd>
883
- # A machine equivalent to
884
- # <code suppresswarning="true">coplex_model_m</code> that also includes
885
- # four GPUs.
886
- # </dd>
887
- # </dl>
888
- # You must set this value when `scaleTier` is set to `CUSTOM`.
889
- # Corresponds to the JSON property `masterType`
890
- # @return [String]
891
- attr_accessor :master_type
892
-
893
- # Optional. The Google Cloud ML runtime version to use for training. If not
894
- # set, Google Cloud ML will choose the latest stable version.
895
- # Corresponds to the JSON property `runtimeVersion`
896
- # @return [String]
897
- attr_accessor :runtime_version
898
-
899
- # Required. The Python module name to run after installing the packages.
900
- # Corresponds to the JSON property `pythonModule`
901
- # @return [String]
902
- attr_accessor :python_module
903
-
904
- # Optional. Specifies the type of virtual machine to use for your training
905
- # job's worker nodes.
906
- # The supported values are the same as those described in the entry for
907
- # `masterType`.
908
- # This value must be present when `scaleTier` is set to `CUSTOM` and
909
- # `workerCount` is greater than zero.
910
- # Corresponds to the JSON property `workerType`
911
- # @return [String]
912
- attr_accessor :worker_type
913
-
914
- # Optional. Command line arguments to pass to the program.
915
- # Corresponds to the JSON property `args`
916
- # @return [Array<String>]
917
- attr_accessor :args
918
-
919
- # Required. The Google Compute Engine region to run the training job in.
920
- # Corresponds to the JSON property `region`
921
- # @return [String]
922
- attr_accessor :region
923
-
924
- # Optional. Specifies the type of virtual machine to use for your training
925
- # job's parameter server.
926
- # The supported values are the same as those described in the entry for
927
- # `master_type`.
928
- # This value must be present when `scaleTier` is set to `CUSTOM` and
929
- # `parameter_server_count` is greater than zero.
930
- # Corresponds to the JSON property `parameterServerType`
931
- # @return [String]
932
- attr_accessor :parameter_server_type
933
-
934
- # Required. Specifies the machine types, the number of replicas for workers
935
- # and parameter servers.
936
- # Corresponds to the JSON property `scaleTier`
937
- # @return [String]
938
- attr_accessor :scale_tier
939
-
940
- # Optional. A Google Cloud Storage path in which to store training outputs
941
- # and other data needed for training. This path is passed to your TensorFlow
942
- # program as the 'job_dir' command-line argument. The benefit of specifying
943
- # this field is that Cloud ML validates the path for use in training.
944
- # Corresponds to the JSON property `jobDir`
945
- # @return [String]
946
- attr_accessor :job_dir
947
-
948
- def initialize(**args)
949
- update!(**args)
950
- end
951
-
952
- # Update properties of this object
953
- def update!(**args)
954
- @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
955
- @parameter_server_count = args[:parameter_server_count] if args.key?(:parameter_server_count)
956
- @package_uris = args[:package_uris] if args.key?(:package_uris)
957
- @worker_count = args[:worker_count] if args.key?(:worker_count)
958
- @master_type = args[:master_type] if args.key?(:master_type)
959
- @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
960
- @python_module = args[:python_module] if args.key?(:python_module)
961
- @worker_type = args[:worker_type] if args.key?(:worker_type)
962
- @args = args[:args] if args.key?(:args)
963
- @region = args[:region] if args.key?(:region)
964
- @parameter_server_type = args[:parameter_server_type] if args.key?(:parameter_server_type)
965
- @scale_tier = args[:scale_tier] if args.key?(:scale_tier)
966
- @job_dir = args[:job_dir] if args.key?(:job_dir)
967
- end
968
- end
969
-
970
- # Represents a training or prediction job.
971
- class GoogleCloudMlV1Job
972
- include Google::Apis::Core::Hashable
973
-
974
- # Represents results of a prediction job.
975
- # Corresponds to the JSON property `predictionOutput`
976
- # @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput]
977
- attr_accessor :prediction_output
978
-
979
- # Represents results of a training job. Output only.
980
- # Corresponds to the JSON property `trainingOutput`
981
- # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput]
982
- attr_accessor :training_output
983
-
984
- # Output only. When the job was created.
985
- # Corresponds to the JSON property `createTime`
986
- # @return [String]
987
- attr_accessor :create_time
988
-
989
- # Represents input parameters for a training job.
990
- # Corresponds to the JSON property `trainingInput`
991
- # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingInput]
992
- attr_accessor :training_input
993
-
994
- # Represents input parameters for a prediction job.
995
- # Corresponds to the JSON property `predictionInput`
996
- # @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionInput]
997
- attr_accessor :prediction_input
998
-
999
- # Output only. The detailed state of a job.
1000
- # Corresponds to the JSON property `state`
1001
- # @return [String]
1002
- attr_accessor :state
1003
-
1004
- # Output only. The details of a failure or a cancellation.
1005
- # Corresponds to the JSON property `errorMessage`
1006
- # @return [String]
1007
- attr_accessor :error_message
1008
-
1009
- # Required. The user-specified id of the job.
1010
- # Corresponds to the JSON property `jobId`
1011
- # @return [String]
1012
- attr_accessor :job_id
1013
-
1014
- # Output only. When the job processing was completed.
1015
- # Corresponds to the JSON property `endTime`
1016
- # @return [String]
1017
- attr_accessor :end_time
610
+ # Request for predictions to be issued against a trained model.
611
+ # The body of the request is a single JSON object with a single top-level
612
+ # field:
613
+ # <dl>
614
+ # <dt>instances</dt>
615
+ # <dd>A JSON array containing values representing the instances to use for
616
+ # prediction.</dd>
617
+ # </dl>
618
+ # The structure of each element of the instances list is determined by your
619
+ # model's input definition. Instances can include named inputs or can contain
620
+ # only unlabeled values.
621
+ # Not all data includes named inputs. Some instances will be simple
622
+ # JSON values (boolean, number, or string). However, instances are often lists
623
+ # of simple values, or complex nested lists. Here are some examples of request
624
+ # bodies:
625
+ # CSV data with each row encoded as a string value:
626
+ # <pre>
627
+ # `"instances": ["1.0,true,\\"x\\"", "-2.0,false,\\"y\\""]`
628
+ # </pre>
629
+ # Plain text:
630
+ # <pre>
631
+ # `"instances": ["the quick brown fox", "la bruja le dio"]`
632
+ # </pre>
633
+ # Sentences encoded as lists of words (vectors of strings):
634
+ # <pre>
635
+ # `
636
+ # "instances": [
637
+ # ["the","quick","brown"],
638
+ # ["la","bruja","le"],
639
+ # ...
640
+ # ]
641
+ # `
642
+ # </pre>
643
+ # Floating point scalar values:
644
+ # <pre>
645
+ # `"instances": [0.0, 1.1, 2.2]`
646
+ # </pre>
647
+ # Vectors of integers:
648
+ # <pre>
649
+ # `
650
+ # "instances": [
651
+ # [0, 1, 2],
652
+ # [3, 4, 5],
653
+ # ...
654
+ # ]
655
+ # `
656
+ # </pre>
657
+ # Tensors (in this case, two-dimensional tensors):
658
+ # <pre>
659
+ # `
660
+ # "instances": [
661
+ # [
662
+ # [0, 1, 2],
663
+ # [3, 4, 5]
664
+ # ],
665
+ # ...
666
+ # ]
667
+ # `
668
+ # </pre>
669
+ # Images can be represented different ways. In this encoding scheme the first
670
+ # two dimensions represent the rows and columns of the image, and the third
671
+ # contains lists (vectors) of the R, G, and B values for each pixel.
672
+ # <pre>
673
+ # `
674
+ # "instances": [
675
+ # [
676
+ # [
677
+ # [138, 30, 66],
678
+ # [130, 20, 56],
679
+ # ...
680
+ # ],
681
+ # [
682
+ # [126, 38, 61],
683
+ # [122, 24, 57],
684
+ # ...
685
+ # ],
686
+ # ...
687
+ # ],
688
+ # ...
689
+ # ]
690
+ # `
691
+ # </pre>
692
+ # JSON strings must be encoded as UTF-8. To send binary data, you must
693
+ # base64-encode the data and mark it as binary. To mark a JSON string
694
+ # as binary, replace it with a JSON object with a single attribute named `b64`:
695
+ # <pre>`"b64": "..."` </pre>
696
+ # For example:
697
+ # Two Serialized tf.Examples (fake data, for illustrative purposes only):
698
+ # <pre>
699
+ # `"instances": [`"b64": "X5ad6u"`, `"b64": "IA9j4nx"`]`
700
+ # </pre>
701
+ # Two JPEG image byte strings (fake data, for illustrative purposes only):
702
+ # <pre>
703
+ # `"instances": [`"b64": "ASa8asdf"`, `"b64": "JLK7ljk3"`]`
704
+ # </pre>
705
+ # If your data includes named references, format each instance as a JSON object
706
+ # with the named references as the keys:
707
+ # JSON input data to be preprocessed:
708
+ # <pre>
709
+ # `
710
+ # "instances": [
711
+ # `
712
+ # "a": 1.0,
713
+ # "b": true,
714
+ # "c": "x"
715
+ # `,
716
+ # `
717
+ # "a": -2.0,
718
+ # "b": false,
719
+ # "c": "y"
720
+ # `
721
+ # ]
722
+ # `
723
+ # </pre>
724
+ # Some models have an underlying TensorFlow graph that accepts multiple input
725
+ # tensors. In this case, you should use the names of JSON name/value pairs to
726
+ # identify the input tensors, as shown in the following exmaples:
727
+ # For a graph with input tensor aliases "tag" (string) and "image"
728
+ # (base64-encoded string):
729
+ # <pre>
730
+ # `
731
+ # "instances": [
732
+ # `
733
+ # "tag": "beach",
734
+ # "image": `"b64": "ASa8asdf"`
735
+ # `,
736
+ # `
737
+ # "tag": "car",
738
+ # "image": `"b64": "JLK7ljk3"`
739
+ # `
740
+ # ]
741
+ # `
742
+ # </pre>
743
+ # For a graph with input tensor aliases "tag" (string) and "image"
744
+ # (3-dimensional array of 8-bit ints):
745
+ # <pre>
746
+ # `
747
+ # "instances": [
748
+ # `
749
+ # "tag": "beach",
750
+ # "image": [
751
+ # [
752
+ # [138, 30, 66],
753
+ # [130, 20, 56],
754
+ # ...
755
+ # ],
756
+ # [
757
+ # [126, 38, 61],
758
+ # [122, 24, 57],
759
+ # ...
760
+ # ],
761
+ # ...
762
+ # ]
763
+ # `,
764
+ # `
765
+ # "tag": "car",
766
+ # "image": [
767
+ # [
768
+ # [255, 0, 102],
769
+ # [255, 0, 97],
770
+ # ...
771
+ # ],
772
+ # [
773
+ # [254, 1, 101],
774
+ # [254, 2, 93],
775
+ # ...
776
+ # ],
777
+ # ...
778
+ # ]
779
+ # `,
780
+ # ...
781
+ # ]
782
+ # `
783
+ # </pre>
784
+ # If the call is successful, the response body will contain one prediction
785
+ # entry per instance in the request body. If prediction fails for any
786
+ # instance, the response body will contain no predictions and will contian
787
+ # a single error entry instead.
788
+ class GoogleCloudMlV1PredictRequest
789
+ include Google::Apis::Core::Hashable
1018
790
 
1019
- # Output only. When the job processing was started.
1020
- # Corresponds to the JSON property `startTime`
1021
- # @return [String]
1022
- attr_accessor :start_time
791
+ # Message that represents an arbitrary HTTP body. It should only be used for
792
+ # payload formats that can't be represented as JSON, such as raw binary or
793
+ # an HTML page.
794
+ # This message can be used both in streaming and non-streaming API methods in
795
+ # the request as well as the response.
796
+ # It can be used as a top-level request field, which is convenient if one
797
+ # wants to extract parameters from either the URL or HTTP template into the
798
+ # request fields and also want access to the raw HTTP body.
799
+ # Example:
800
+ # message GetResourceRequest `
801
+ # // A unique request id.
802
+ # string request_id = 1;
803
+ # // The raw HTTP body is bound to this field.
804
+ # google.api.HttpBody http_body = 2;
805
+ # `
806
+ # service ResourceService `
807
+ # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
808
+ # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
809
+ # `
810
+ # Example with streaming methods:
811
+ # service CaldavService `
812
+ # rpc GetCalendar(stream google.api.HttpBody)
813
+ # returns (stream google.api.HttpBody);
814
+ # rpc UpdateCalendar(stream google.api.HttpBody)
815
+ # returns (stream google.api.HttpBody);
816
+ # `
817
+ # Use of this type only changes how the request and response bodies are
818
+ # handled, all other features will continue to work unchanged.
819
+ # Corresponds to the JSON property `httpBody`
820
+ # @return [Google::Apis::MlV1::GoogleApiHttpBody]
821
+ attr_accessor :http_body
1023
822
 
1024
823
  def initialize(**args)
1025
824
  update!(**args)
@@ -1027,60 +826,23 @@ module Google
1027
826
 
1028
827
  # Update properties of this object
1029
828
  def update!(**args)
1030
- @prediction_output = args[:prediction_output] if args.key?(:prediction_output)
1031
- @training_output = args[:training_output] if args.key?(:training_output)
1032
- @create_time = args[:create_time] if args.key?(:create_time)
1033
- @training_input = args[:training_input] if args.key?(:training_input)
1034
- @prediction_input = args[:prediction_input] if args.key?(:prediction_input)
1035
- @state = args[:state] if args.key?(:state)
1036
- @error_message = args[:error_message] if args.key?(:error_message)
1037
- @job_id = args[:job_id] if args.key?(:job_id)
1038
- @end_time = args[:end_time] if args.key?(:end_time)
1039
- @start_time = args[:start_time] if args.key?(:start_time)
829
+ @http_body = args[:http_body] if args.key?(:http_body)
1040
830
  end
1041
831
  end
1042
832
 
1043
- # Message that represents an arbitrary HTTP body. It should only be used for
1044
- # payload formats that can't be represented as JSON, such as raw binary or
1045
- # an HTML page.
1046
- # This message can be used both in streaming and non-streaming API methods in
1047
- # the request as well as the response.
1048
- # It can be used as a top-level request field, which is convenient if one
1049
- # wants to extract parameters from either the URL or HTTP template into the
1050
- # request fields and also want access to the raw HTTP body.
1051
- # Example:
1052
- # message GetResourceRequest `
1053
- # // A unique request id.
1054
- # string request_id = 1;
1055
- # // The raw HTTP body is bound to this field.
1056
- # google.api.HttpBody http_body = 2;
1057
- # `
1058
- # service ResourceService `
1059
- # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
1060
- # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
1061
- # `
1062
- # Example with streaming methods:
1063
- # service CaldavService `
1064
- # rpc GetCalendar(stream google.api.HttpBody)
1065
- # returns (stream google.api.HttpBody);
1066
- # rpc UpdateCalendar(stream google.api.HttpBody)
1067
- # returns (stream google.api.HttpBody);
1068
- # `
1069
- # Use of this type only changes how the request and response bodies are
1070
- # handled, all other features will continue to work unchanged.
1071
- class GoogleApiHttpBody
833
+ # An observed value of a metric.
834
+ class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
1072
835
  include Google::Apis::Core::Hashable
1073
836
 
1074
- # HTTP body binary data.
1075
- # Corresponds to the JSON property `data`
1076
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
1077
- # @return [String]
1078
- attr_accessor :data
837
+ # The objective value at this training step.
838
+ # Corresponds to the JSON property `objectiveValue`
839
+ # @return [Float]
840
+ attr_accessor :objective_value
1079
841
 
1080
- # The HTTP Content-Type string representing the content type of the body.
1081
- # Corresponds to the JSON property `contentType`
1082
- # @return [String]
1083
- attr_accessor :content_type
842
+ # The global training step for this metric.
843
+ # Corresponds to the JSON property `trainingStep`
844
+ # @return [Fixnum]
845
+ attr_accessor :training_step
1084
846
 
1085
847
  def initialize(**args)
1086
848
  update!(**args)
@@ -1088,8 +850,8 @@ module Google
1088
850
 
1089
851
  # Update properties of this object
1090
852
  def update!(**args)
1091
- @data = args[:data] if args.key?(:data)
1092
- @content_type = args[:content_type] if args.key?(:content_type)
853
+ @objective_value = args[:objective_value] if args.key?(:objective_value)
854
+ @training_step = args[:training_step] if args.key?(:training_step)
1093
855
  end
1094
856
  end
1095
857
 
@@ -1097,9 +859,9 @@ module Google
1097
859
  # Each version is a trained model deployed in the cloud, ready to handle
1098
860
  # prediction requests. A model can have multiple versions. You can get
1099
861
  # information about all of the versions of a given model by calling
1100
- # [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.
1101
- # models.versions/list).
1102
- class GoogleCloudMlV1beta1Version
862
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
863
+ # versions/list).
864
+ class GoogleCloudMlV1Version
1103
865
  include Google::Apis::Core::Hashable
1104
866
 
1105
867
  # Output only. The time the version was last used for prediction.
@@ -1120,15 +882,16 @@ module Google
1120
882
 
1121
883
  # Required. The Google Cloud Storage location of the trained model used to
1122
884
  # create the version. See the
1123
- # [overview of model deployment](/ml-engine/docs/concepts/deployment-overview)
1124
- # for
1125
- # more informaiton.
885
+ # [overview of model
886
+ # deployment](/ml-engine/docs/concepts/deployment-overview) for more
887
+ # informaiton.
1126
888
  # When passing Version to
1127
- # [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/projects.
1128
- # models.versions/create)
889
+ # [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models.
890
+ # versions/create)
1129
891
  # the model service uses the specified location as the source of the model.
1130
892
  # Once deployed, the model version is hosted by the prediction service, so
1131
893
  # this location is useful only as a historical record.
894
+ # The total number of model files can't exceed 1000.
1132
895
  # Corresponds to the JSON property `deploymentUri`
1133
896
  # @return [String]
1134
897
  attr_accessor :deployment_uri
@@ -1136,8 +899,8 @@ module Google
1136
899
  # Output only. If true, this version will be used to handle prediction
1137
900
  # requests that do not specify a version.
1138
901
  # You can change the default version by calling
1139
- # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1beta1/
1140
- # projects.models.versions/setDefault).
902
+ # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.
903
+ # models.versions/setDefault).
1141
904
  # Corresponds to the JSON property `isDefault`
1142
905
  # @return [Boolean]
1143
906
  attr_accessor :is_default
@@ -1150,7 +913,7 @@ module Google
1150
913
 
1151
914
  # Options for manually scaling a model.
1152
915
  # Corresponds to the JSON property `manualScaling`
1153
- # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling]
916
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1ManualScaling]
1154
917
  attr_accessor :manual_scaling
1155
918
 
1156
919
  # Required.The name specified for the version when it was created.
@@ -1176,19 +939,134 @@ module Google
1176
939
  end
1177
940
  end
1178
941
 
1179
- # Returns service account information associated with a project.
1180
- class GoogleCloudMlV1GetConfigResponse
942
+ # Represents a single hyperparameter to optimize.
943
+ class GoogleCloudMlV1ParameterSpec
1181
944
  include Google::Apis::Core::Hashable
1182
945
 
1183
- # The project number for `service_account`.
1184
- # Corresponds to the JSON property `serviceAccountProject`
946
+ # Required if type is `CATEGORICAL`. The list of possible categories.
947
+ # Corresponds to the JSON property `categoricalValues`
948
+ # @return [Array<String>]
949
+ attr_accessor :categorical_values
950
+
951
+ # Required. The parameter name must be unique amongst all ParameterConfigs in
952
+ # a HyperparameterSpec message. E.g., "learning_rate".
953
+ # Corresponds to the JSON property `parameterName`
954
+ # @return [String]
955
+ attr_accessor :parameter_name
956
+
957
+ # Required if type is `DOUBLE` or `INTEGER`. This field
958
+ # should be unset if type is `CATEGORICAL`. This value should be integers if
959
+ # type is INTEGER.
960
+ # Corresponds to the JSON property `minValue`
961
+ # @return [Float]
962
+ attr_accessor :min_value
963
+
964
+ # Required if type is `DISCRETE`.
965
+ # A list of feasible points.
966
+ # The list should be in strictly increasing order. For instance, this
967
+ # parameter might have possible settings of 1.5, 2.5, and 4.0. This list
968
+ # should not contain more than 1,000 values.
969
+ # Corresponds to the JSON property `discreteValues`
970
+ # @return [Array<Float>]
971
+ attr_accessor :discrete_values
972
+
973
+ # Optional. How the parameter should be scaled to the hypercube.
974
+ # Leave unset for categorical parameters.
975
+ # Some kind of scaling is strongly recommended for real or integral
976
+ # parameters (e.g., `UNIT_LINEAR_SCALE`).
977
+ # Corresponds to the JSON property `scaleType`
978
+ # @return [String]
979
+ attr_accessor :scale_type
980
+
981
+ # Required if typeis `DOUBLE` or `INTEGER`. This field
982
+ # should be unset if type is `CATEGORICAL`. This value should be integers if
983
+ # type is `INTEGER`.
984
+ # Corresponds to the JSON property `maxValue`
985
+ # @return [Float]
986
+ attr_accessor :max_value
987
+
988
+ # Required. The type of the parameter.
989
+ # Corresponds to the JSON property `type`
990
+ # @return [String]
991
+ attr_accessor :type
992
+
993
+ def initialize(**args)
994
+ update!(**args)
995
+ end
996
+
997
+ # Update properties of this object
998
+ def update!(**args)
999
+ @categorical_values = args[:categorical_values] if args.key?(:categorical_values)
1000
+ @parameter_name = args[:parameter_name] if args.key?(:parameter_name)
1001
+ @min_value = args[:min_value] if args.key?(:min_value)
1002
+ @discrete_values = args[:discrete_values] if args.key?(:discrete_values)
1003
+ @scale_type = args[:scale_type] if args.key?(:scale_type)
1004
+ @max_value = args[:max_value] if args.key?(:max_value)
1005
+ @type = args[:type] if args.key?(:type)
1006
+ end
1007
+ end
1008
+
1009
+ # Represents input parameters for a prediction job.
1010
+ class GoogleCloudMlV1PredictionInput
1011
+ include Google::Apis::Core::Hashable
1012
+
1013
+ # Use this field if you want to specify a version of the model to use. The
1014
+ # string is formatted the same way as `model_version`, with the addition
1015
+ # of the version information:
1016
+ # `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[
1017
+ # YOUR_VERSION]</var>"`
1018
+ # Corresponds to the JSON property `versionName`
1019
+ # @return [String]
1020
+ attr_accessor :version_name
1021
+
1022
+ # Use this field if you want to use the default version for the specified
1023
+ # model. The string must use the following format:
1024
+ # `"projects/<var>[YOUR_PROJECT]</var>/models/<var>[YOUR_MODEL]</var>"`
1025
+ # Corresponds to the JSON property `modelName`
1026
+ # @return [String]
1027
+ attr_accessor :model_name
1028
+
1029
+ # Required. The output Google Cloud Storage location.
1030
+ # Corresponds to the JSON property `outputPath`
1031
+ # @return [String]
1032
+ attr_accessor :output_path
1033
+
1034
+ # Optional. The maximum number of workers to be used for parallel processing.
1035
+ # Defaults to 10 if not specified.
1036
+ # Corresponds to the JSON property `maxWorkerCount`
1185
1037
  # @return [Fixnum]
1186
- attr_accessor :service_account_project
1038
+ attr_accessor :max_worker_count
1187
1039
 
1188
- # The service account Cloud ML uses to access resources in the project.
1189
- # Corresponds to the JSON property `serviceAccount`
1040
+ # Use this field if you want to specify a Google Cloud Storage path for
1041
+ # the model to use.
1042
+ # Corresponds to the JSON property `uri`
1043
+ # @return [String]
1044
+ attr_accessor :uri
1045
+
1046
+ # Required. The format of the input data files.
1047
+ # Corresponds to the JSON property `dataFormat`
1048
+ # @return [String]
1049
+ attr_accessor :data_format
1050
+
1051
+ # Optional. The Google Cloud ML runtime version to use for this batch
1052
+ # prediction. If not set, Google Cloud ML will pick the runtime version used
1053
+ # during the CreateVersion request for this model version, or choose the
1054
+ # latest stable version when model version information is not available
1055
+ # such as when the model is specified by uri.
1056
+ # Corresponds to the JSON property `runtimeVersion`
1057
+ # @return [String]
1058
+ attr_accessor :runtime_version
1059
+
1060
+ # Required. The Google Cloud Storage location of the input data files.
1061
+ # May contain wildcards.
1062
+ # Corresponds to the JSON property `inputPaths`
1063
+ # @return [Array<String>]
1064
+ attr_accessor :input_paths
1065
+
1066
+ # Required. The Google Compute Engine region to run the prediction job in.
1067
+ # Corresponds to the JSON property `region`
1190
1068
  # @return [String]
1191
- attr_accessor :service_account
1069
+ attr_accessor :region
1192
1070
 
1193
1071
  def initialize(**args)
1194
1072
  update!(**args)
@@ -1196,37 +1074,62 @@ module Google
1196
1074
 
1197
1075
  # Update properties of this object
1198
1076
  def update!(**args)
1199
- @service_account_project = args[:service_account_project] if args.key?(:service_account_project)
1200
- @service_account = args[:service_account] if args.key?(:service_account)
1077
+ @version_name = args[:version_name] if args.key?(:version_name)
1078
+ @model_name = args[:model_name] if args.key?(:model_name)
1079
+ @output_path = args[:output_path] if args.key?(:output_path)
1080
+ @max_worker_count = args[:max_worker_count] if args.key?(:max_worker_count)
1081
+ @uri = args[:uri] if args.key?(:uri)
1082
+ @data_format = args[:data_format] if args.key?(:data_format)
1083
+ @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
1084
+ @input_paths = args[:input_paths] if args.key?(:input_paths)
1085
+ @region = args[:region] if args.key?(:region)
1201
1086
  end
1202
1087
  end
1203
1088
 
1204
- # Represents the result of a single hyperparameter tuning trial from a
1205
- # training job. The TrainingOutput object that is returned on successful
1206
- # completion of a training job with hyperparameter tuning includes a list
1207
- # of HyperparameterOutput objects, one for each successful trial.
1208
- class GoogleCloudMlV1HyperparameterOutput
1089
+ # Represents the metadata of the long-running operation.
1090
+ class GoogleCloudMlV1beta1OperationMetadata
1209
1091
  include Google::Apis::Core::Hashable
1210
1092
 
1211
- # The hyperparameters given to this trial.
1212
- # Corresponds to the JSON property `hyperparameters`
1213
- # @return [Hash<String,String>]
1214
- attr_accessor :hyperparameters
1093
+ # Indicates whether a request to cancel this operation has been made.
1094
+ # Corresponds to the JSON property `isCancellationRequested`
1095
+ # @return [Boolean]
1096
+ attr_accessor :is_cancellation_requested
1097
+ alias_method :is_cancellation_requested?, :is_cancellation_requested
1215
1098
 
1216
- # The trial id for these results.
1217
- # Corresponds to the JSON property `trialId`
1099
+ # The time the operation was submitted.
1100
+ # Corresponds to the JSON property `createTime`
1218
1101
  # @return [String]
1219
- attr_accessor :trial_id
1102
+ attr_accessor :create_time
1220
1103
 
1221
- # All recorded object metrics for this trial.
1222
- # Corresponds to the JSON property `allMetrics`
1223
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>]
1224
- attr_accessor :all_metrics
1104
+ # Contains the name of the model associated with the operation.
1105
+ # Corresponds to the JSON property `modelName`
1106
+ # @return [String]
1107
+ attr_accessor :model_name
1225
1108
 
1226
- # An observed value of a metric.
1227
- # Corresponds to the JSON property `finalMetric`
1228
- # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric]
1229
- attr_accessor :final_metric
1109
+ # Represents a version of the model.
1110
+ # Each version is a trained model deployed in the cloud, ready to handle
1111
+ # prediction requests. A model can have multiple versions. You can get
1112
+ # information about all of the versions of a given model by calling
1113
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.
1114
+ # models.versions/list).
1115
+ # Corresponds to the JSON property `version`
1116
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1Version]
1117
+ attr_accessor :version
1118
+
1119
+ # The time operation processing completed.
1120
+ # Corresponds to the JSON property `endTime`
1121
+ # @return [String]
1122
+ attr_accessor :end_time
1123
+
1124
+ # The operation type.
1125
+ # Corresponds to the JSON property `operationType`
1126
+ # @return [String]
1127
+ attr_accessor :operation_type
1128
+
1129
+ # The time operation processing started.
1130
+ # Corresponds to the JSON property `startTime`
1131
+ # @return [String]
1132
+ attr_accessor :start_time
1230
1133
 
1231
1134
  def initialize(**args)
1232
1135
  update!(**args)
@@ -1234,36 +1137,60 @@ module Google
1234
1137
 
1235
1138
  # Update properties of this object
1236
1139
  def update!(**args)
1237
- @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
1238
- @trial_id = args[:trial_id] if args.key?(:trial_id)
1239
- @all_metrics = args[:all_metrics] if args.key?(:all_metrics)
1240
- @final_metric = args[:final_metric] if args.key?(:final_metric)
1140
+ @is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested)
1141
+ @create_time = args[:create_time] if args.key?(:create_time)
1142
+ @model_name = args[:model_name] if args.key?(:model_name)
1143
+ @version = args[:version] if args.key?(:version)
1144
+ @end_time = args[:end_time] if args.key?(:end_time)
1145
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
1146
+ @start_time = args[:start_time] if args.key?(:start_time)
1241
1147
  end
1242
1148
  end
1243
1149
 
1244
- # Represents results of a prediction job.
1245
- class GoogleCloudMlV1PredictionOutput
1150
+ # Represents the metadata of the long-running operation.
1151
+ class GoogleCloudMlV1OperationMetadata
1246
1152
  include Google::Apis::Core::Hashable
1247
1153
 
1248
- # The output Google Cloud Storage location provided at the job creation time.
1249
- # Corresponds to the JSON property `outputPath`
1154
+ # The time operation processing started.
1155
+ # Corresponds to the JSON property `startTime`
1250
1156
  # @return [String]
1251
- attr_accessor :output_path
1157
+ attr_accessor :start_time
1252
1158
 
1253
- # Node hours used by the batch prediction job.
1254
- # Corresponds to the JSON property `nodeHours`
1255
- # @return [Float]
1256
- attr_accessor :node_hours
1159
+ # Indicates whether a request to cancel this operation has been made.
1160
+ # Corresponds to the JSON property `isCancellationRequested`
1161
+ # @return [Boolean]
1162
+ attr_accessor :is_cancellation_requested
1163
+ alias_method :is_cancellation_requested?, :is_cancellation_requested
1257
1164
 
1258
- # The number of generated predictions.
1259
- # Corresponds to the JSON property `predictionCount`
1260
- # @return [Fixnum]
1261
- attr_accessor :prediction_count
1165
+ # The time the operation was submitted.
1166
+ # Corresponds to the JSON property `createTime`
1167
+ # @return [String]
1168
+ attr_accessor :create_time
1262
1169
 
1263
- # The number of data instances which resulted in errors.
1264
- # Corresponds to the JSON property `errorCount`
1265
- # @return [Fixnum]
1266
- attr_accessor :error_count
1170
+ # Contains the name of the model associated with the operation.
1171
+ # Corresponds to the JSON property `modelName`
1172
+ # @return [String]
1173
+ attr_accessor :model_name
1174
+
1175
+ # Represents a version of the model.
1176
+ # Each version is a trained model deployed in the cloud, ready to handle
1177
+ # prediction requests. A model can have multiple versions. You can get
1178
+ # information about all of the versions of a given model by calling
1179
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
1180
+ # versions/list).
1181
+ # Corresponds to the JSON property `version`
1182
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
1183
+ attr_accessor :version
1184
+
1185
+ # The time operation processing completed.
1186
+ # Corresponds to the JSON property `endTime`
1187
+ # @return [String]
1188
+ attr_accessor :end_time
1189
+
1190
+ # The operation type.
1191
+ # Corresponds to the JSON property `operationType`
1192
+ # @return [String]
1193
+ attr_accessor :operation_type
1267
1194
 
1268
1195
  def initialize(**args)
1269
1196
  update!(**args)
@@ -1271,26 +1198,59 @@ module Google
1271
1198
 
1272
1199
  # Update properties of this object
1273
1200
  def update!(**args)
1274
- @output_path = args[:output_path] if args.key?(:output_path)
1275
- @node_hours = args[:node_hours] if args.key?(:node_hours)
1276
- @prediction_count = args[:prediction_count] if args.key?(:prediction_count)
1277
- @error_count = args[:error_count] if args.key?(:error_count)
1201
+ @start_time = args[:start_time] if args.key?(:start_time)
1202
+ @is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested)
1203
+ @create_time = args[:create_time] if args.key?(:create_time)
1204
+ @model_name = args[:model_name] if args.key?(:model_name)
1205
+ @version = args[:version] if args.key?(:version)
1206
+ @end_time = args[:end_time] if args.key?(:end_time)
1207
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
1278
1208
  end
1279
1209
  end
1280
1210
 
1281
- # The response message for Operations.ListOperations.
1282
- class GoogleLongrunningListOperationsResponse
1211
+ # Represents a set of hyperparameters to optimize.
1212
+ class GoogleCloudMlV1HyperparameterSpec
1283
1213
  include Google::Apis::Core::Hashable
1284
1214
 
1285
- # The standard List next-page token.
1286
- # Corresponds to the JSON property `nextPageToken`
1215
+ # Required. The set of parameters to tune.
1216
+ # Corresponds to the JSON property `params`
1217
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1ParameterSpec>]
1218
+ attr_accessor :params
1219
+
1220
+ # Optional. How many training trials should be attempted to optimize
1221
+ # the specified hyperparameters.
1222
+ # Defaults to one.
1223
+ # Corresponds to the JSON property `maxTrials`
1224
+ # @return [Fixnum]
1225
+ attr_accessor :max_trials
1226
+
1227
+ # Optional. The number of training trials to run concurrently.
1228
+ # You can reduce the time it takes to perform hyperparameter tuning by adding
1229
+ # trials in parallel. However, each trail only benefits from the information
1230
+ # gained in completed trials. That means that a trial does not get access to
1231
+ # the results of trials running at the same time, which could reduce the
1232
+ # quality of the overall optimization.
1233
+ # Each trial will use the same scale tier and machine types.
1234
+ # Defaults to one.
1235
+ # Corresponds to the JSON property `maxParallelTrials`
1236
+ # @return [Fixnum]
1237
+ attr_accessor :max_parallel_trials
1238
+
1239
+ # Required. The type of goal to use for tuning. Available types are
1240
+ # `MAXIMIZE` and `MINIMIZE`.
1241
+ # Defaults to `MAXIMIZE`.
1242
+ # Corresponds to the JSON property `goal`
1287
1243
  # @return [String]
1288
- attr_accessor :next_page_token
1244
+ attr_accessor :goal
1289
1245
 
1290
- # A list of operations that matches the specified filter in the request.
1291
- # Corresponds to the JSON property `operations`
1292
- # @return [Array<Google::Apis::MlV1::GoogleLongrunningOperation>]
1293
- attr_accessor :operations
1246
+ # Optional. The Tensorflow summary tag name to use for optimizing trials. For
1247
+ # current versions of Tensorflow, this tag name should exactly match what is
1248
+ # shown in Tensorboard, including all scopes. For versions of Tensorflow
1249
+ # prior to 0.12, this should be only the tag passed to tf.Summary.
1250
+ # By default, "training/hptuning/metric" will be used.
1251
+ # Corresponds to the JSON property `hyperparameterMetricTag`
1252
+ # @return [String]
1253
+ attr_accessor :hyperparameter_metric_tag
1294
1254
 
1295
1255
  def initialize(**args)
1296
1256
  update!(**args)
@@ -1298,22 +1258,28 @@ module Google
1298
1258
 
1299
1259
  # Update properties of this object
1300
1260
  def update!(**args)
1301
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1302
- @operations = args[:operations] if args.key?(:operations)
1261
+ @params = args[:params] if args.key?(:params)
1262
+ @max_trials = args[:max_trials] if args.key?(:max_trials)
1263
+ @max_parallel_trials = args[:max_parallel_trials] if args.key?(:max_parallel_trials)
1264
+ @goal = args[:goal] if args.key?(:goal)
1265
+ @hyperparameter_metric_tag = args[:hyperparameter_metric_tag] if args.key?(:hyperparameter_metric_tag)
1303
1266
  end
1304
1267
  end
1305
1268
 
1306
- # Options for manually scaling a model.
1307
- class GoogleCloudMlV1ManualScaling
1269
+ # Response message for the ListJobs method.
1270
+ class GoogleCloudMlV1ListJobsResponse
1308
1271
  include Google::Apis::Core::Hashable
1309
1272
 
1310
- # The number of nodes to allocate for this model. These nodes are always up,
1311
- # starting from the time the model is deployed, so the cost of operating
1312
- # this model will be proportional to nodes * number of hours since
1313
- # deployment.
1314
- # Corresponds to the JSON property `nodes`
1315
- # @return [Fixnum]
1316
- attr_accessor :nodes
1273
+ # The list of jobs.
1274
+ # Corresponds to the JSON property `jobs`
1275
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Job>]
1276
+ attr_accessor :jobs
1277
+
1278
+ # Optional. Pass this token as the `page_token` field of the request for a
1279
+ # subsequent call.
1280
+ # Corresponds to the JSON property `nextPageToken`
1281
+ # @return [String]
1282
+ attr_accessor :next_page_token
1317
1283
 
1318
1284
  def initialize(**args)
1319
1285
  update!(**args)
@@ -1321,36 +1287,14 @@ module Google
1321
1287
 
1322
1288
  # Update properties of this object
1323
1289
  def update!(**args)
1324
- @nodes = args[:nodes] if args.key?(:nodes)
1290
+ @jobs = args[:jobs] if args.key?(:jobs)
1291
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1325
1292
  end
1326
1293
  end
1327
1294
 
1328
- # Represents results of a training job. Output only.
1329
- class GoogleCloudMlV1TrainingOutput
1330
- include Google::Apis::Core::Hashable
1331
-
1332
- # Results for individual Hyperparameter trials.
1333
- # Only set for hyperparameter tuning jobs.
1334
- # Corresponds to the JSON property `trials`
1335
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput>]
1336
- attr_accessor :trials
1337
-
1338
- # The number of hyperparameter tuning trials that completed successfully.
1339
- # Only set for hyperparameter tuning jobs.
1340
- # Corresponds to the JSON property `completedTrialCount`
1341
- # @return [Fixnum]
1342
- attr_accessor :completed_trial_count
1343
-
1344
- # Whether this job is a hyperparameter tuning job.
1345
- # Corresponds to the JSON property `isHyperparameterTuningJob`
1346
- # @return [Boolean]
1347
- attr_accessor :is_hyperparameter_tuning_job
1348
- alias_method :is_hyperparameter_tuning_job?, :is_hyperparameter_tuning_job
1349
-
1350
- # The amount of ML units consumed by the job.
1351
- # Corresponds to the JSON property `consumedMLUnits`
1352
- # @return [Float]
1353
- attr_accessor :consumed_ml_units
1295
+ # Request message for the SetDefaultVersion request.
1296
+ class GoogleCloudMlV1SetDefaultVersionRequest
1297
+ include Google::Apis::Core::Hashable
1354
1298
 
1355
1299
  def initialize(**args)
1356
1300
  update!(**args)
@@ -1358,225 +1302,190 @@ module Google
1358
1302
 
1359
1303
  # Update properties of this object
1360
1304
  def update!(**args)
1361
- @trials = args[:trials] if args.key?(:trials)
1362
- @completed_trial_count = args[:completed_trial_count] if args.key?(:completed_trial_count)
1363
- @is_hyperparameter_tuning_job = args[:is_hyperparameter_tuning_job] if args.key?(:is_hyperparameter_tuning_job)
1364
- @consumed_ml_units = args[:consumed_ml_units] if args.key?(:consumed_ml_units)
1365
1305
  end
1366
1306
  end
1367
1307
 
1368
- # Request for predictions to be issued against a trained model.
1369
- # The body of the request is a single JSON object with a single top-level
1370
- # field:
1371
- # <dl>
1372
- # <dt>instances</dt>
1373
- # <dd>A JSON array containing values representing the instances to use for
1374
- # prediction.</dd>
1375
- # </dl>
1376
- # The structure of each element of the instances list is determined by your
1377
- # model's input definition. Instances can include named inputs or can contain
1378
- # only unlabeled values.
1379
- # Not all data includes named inputs. Some instances will be simple
1380
- # JSON values (boolean, number, or string). However, instances are often lists
1381
- # of simple values, or complex nested lists. Here are some examples of request
1382
- # bodies:
1383
- # CSV data with each row encoded as a string value:
1384
- # <pre>
1385
- # `"instances": ["1.0,true,\\"x\\"", "-2.0,false,\\"y\\""]`
1386
- # </pre>
1387
- # Plain text:
1388
- # <pre>
1389
- # `"instances": ["the quick brown fox", "la bruja le dio"]`
1390
- # </pre>
1391
- # Sentences encoded as lists of words (vectors of strings):
1392
- # <pre>
1393
- # `
1394
- # "instances": [
1395
- # ["the","quick","brown"],
1396
- # ["la","bruja","le"],
1397
- # ...
1398
- # ]
1399
- # `
1400
- # </pre>
1401
- # Floating point scalar values:
1402
- # <pre>
1403
- # `"instances": [0.0, 1.1, 2.2]`
1404
- # </pre>
1405
- # Vectors of integers:
1406
- # <pre>
1407
- # `
1408
- # "instances": [
1409
- # [0, 1, 2],
1410
- # [3, 4, 5],
1411
- # ...
1412
- # ]
1413
- # `
1414
- # </pre>
1415
- # Tensors (in this case, two-dimensional tensors):
1416
- # <pre>
1417
- # `
1418
- # "instances": [
1419
- # [
1420
- # [0, 1, 2],
1421
- # [3, 4, 5]
1422
- # ],
1423
- # ...
1424
- # ]
1425
- # `
1426
- # </pre>
1427
- # Images can be represented different ways. In this encoding scheme the first
1428
- # two dimensions represent the rows and columns of the image, and the third
1429
- # contains lists (vectors) of the R, G, and B values for each pixel.
1430
- # <pre>
1431
- # `
1432
- # "instances": [
1433
- # [
1434
- # [
1435
- # [138, 30, 66],
1436
- # [130, 20, 56],
1437
- # ...
1438
- # ],
1439
- # [
1440
- # [126, 38, 61],
1441
- # [122, 24, 57],
1442
- # ...
1443
- # ],
1444
- # ...
1445
- # ],
1446
- # ...
1447
- # ]
1448
- # `
1449
- # </pre>
1450
- # JSON strings must be encoded as UTF-8. To send binary data, you must
1451
- # base64-encode the data and mark it as binary. To mark a JSON string
1452
- # as binary, replace it with a JSON object with a single attribute named `b64`:
1453
- # <pre>`"b64": "..."` </pre>
1454
- # For example:
1455
- # Two Serialized tf.Examples (fake data, for illustrative purposes only):
1456
- # <pre>
1457
- # `"instances": [`"b64": "X5ad6u"`, `"b64": "IA9j4nx"`]`
1458
- # </pre>
1459
- # Two JPEG image byte strings (fake data, for illustrative purposes only):
1460
- # <pre>
1461
- # `"instances": [`"b64": "ASa8asdf"`, `"b64": "JLK7ljk3"`]`
1462
- # </pre>
1463
- # If your data includes named references, format each instance as a JSON object
1464
- # with the named references as the keys:
1465
- # JSON input data to be preprocessed:
1466
- # <pre>
1467
- # `
1468
- # "instances": [
1469
- # `
1470
- # "a": 1.0,
1471
- # "b": true,
1472
- # "c": "x"
1473
- # `,
1474
- # `
1475
- # "a": -2.0,
1476
- # "b": false,
1477
- # "c": "y"
1478
- # `
1479
- # ]
1480
- # `
1481
- # </pre>
1482
- # Some models have an underlying TensorFlow graph that accepts multiple input
1483
- # tensors. In this case, you should use the names of JSON name/value pairs to
1484
- # identify the input tensors, as shown in the following exmaples:
1485
- # For a graph with input tensor aliases "tag" (string) and "image"
1486
- # (base64-encoded string):
1487
- # <pre>
1488
- # `
1489
- # "instances": [
1490
- # `
1491
- # "tag": "beach",
1492
- # "image": `"b64": "ASa8asdf"`
1493
- # `,
1494
- # `
1495
- # "tag": "car",
1496
- # "image": `"b64": "JLK7ljk3"`
1497
- # `
1498
- # ]
1499
- # `
1500
- # </pre>
1501
- # For a graph with input tensor aliases "tag" (string) and "image"
1502
- # (3-dimensional array of 8-bit ints):
1503
- # <pre>
1504
- # `
1505
- # "instances": [
1506
- # `
1507
- # "tag": "beach",
1508
- # "image": [
1509
- # [
1510
- # [138, 30, 66],
1511
- # [130, 20, 56],
1512
- # ...
1513
- # ],
1514
- # [
1515
- # [126, 38, 61],
1516
- # [122, 24, 57],
1517
- # ...
1518
- # ],
1519
- # ...
1520
- # ]
1521
- # `,
1522
- # `
1523
- # "tag": "car",
1524
- # "image": [
1525
- # [
1526
- # [255, 0, 102],
1527
- # [255, 0, 97],
1528
- # ...
1529
- # ],
1530
- # [
1531
- # [254, 1, 101],
1532
- # [254, 2, 93],
1533
- # ...
1534
- # ],
1535
- # ...
1536
- # ]
1537
- # `,
1538
- # ...
1539
- # ]
1308
+ # This resource represents a long-running operation that is the result of a
1309
+ # network API call.
1310
+ class GoogleLongrunningOperation
1311
+ include Google::Apis::Core::Hashable
1312
+
1313
+ # The normal response of the operation in case of success. If the original
1314
+ # method returns no data on success, such as `Delete`, the response is
1315
+ # `google.protobuf.Empty`. If the original method is standard
1316
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
1317
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
1318
+ # is the original method name. For example, if the original method name
1319
+ # is `TakeSnapshot()`, the inferred response type is
1320
+ # `TakeSnapshotResponse`.
1321
+ # Corresponds to the JSON property `response`
1322
+ # @return [Hash<String,Object>]
1323
+ attr_accessor :response
1324
+
1325
+ # The server-assigned name, which is only unique within the same service that
1326
+ # originally returns it. If you use the default HTTP mapping, the
1327
+ # `name` should have the format of `operations/some/unique/name`.
1328
+ # Corresponds to the JSON property `name`
1329
+ # @return [String]
1330
+ attr_accessor :name
1331
+
1332
+ # The `Status` type defines a logical error model that is suitable for different
1333
+ # programming environments, including REST APIs and RPC APIs. It is used by
1334
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
1335
+ # - Simple to use and understand for most users
1336
+ # - Flexible enough to meet unexpected needs
1337
+ # # Overview
1338
+ # The `Status` message contains three pieces of data: error code, error message,
1339
+ # and error details. The error code should be an enum value of
1340
+ # google.rpc.Code, but it may accept additional error codes if needed. The
1341
+ # error message should be a developer-facing English message that helps
1342
+ # developers *understand* and *resolve* the error. If a localized user-facing
1343
+ # error message is needed, put the localized message in the error details or
1344
+ # localize it in the client. The optional error details may contain arbitrary
1345
+ # information about the error. There is a predefined set of error detail types
1346
+ # in the package `google.rpc` which can be used for common error conditions.
1347
+ # # Language mapping
1348
+ # The `Status` message is the logical representation of the error model, but it
1349
+ # is not necessarily the actual wire format. When the `Status` message is
1350
+ # exposed in different client libraries and different wire protocols, it can be
1351
+ # mapped differently. For example, it will likely be mapped to some exceptions
1352
+ # in Java, but more likely mapped to some error codes in C.
1353
+ # # Other uses
1354
+ # The error model and the `Status` message can be used in a variety of
1355
+ # environments, either with or without APIs, to provide a
1356
+ # consistent developer experience across different environments.
1357
+ # Example uses of this error model include:
1358
+ # - Partial errors. If a service needs to return partial errors to the client,
1359
+ # it may embed the `Status` in the normal response to indicate the partial
1360
+ # errors.
1361
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1362
+ # have a `Status` message for error reporting purpose.
1363
+ # - Batch operations. If a client uses batch request and batch response, the
1364
+ # `Status` message should be used directly inside batch response, one for
1365
+ # each error sub-response.
1366
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1367
+ # results in its response, the status of those operations should be
1368
+ # represented directly using the `Status` message.
1369
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1370
+ # be used directly after any stripping needed for security/privacy reasons.
1371
+ # Corresponds to the JSON property `error`
1372
+ # @return [Google::Apis::MlV1::GoogleRpcStatus]
1373
+ attr_accessor :error
1374
+
1375
+ # Service-specific metadata associated with the operation. It typically
1376
+ # contains progress information and common metadata such as create time.
1377
+ # Some services might not provide such metadata. Any method that returns a
1378
+ # long-running operation should document the metadata type, if any.
1379
+ # Corresponds to the JSON property `metadata`
1380
+ # @return [Hash<String,Object>]
1381
+ attr_accessor :metadata
1382
+
1383
+ # If the value is `false`, it means the operation is still in progress.
1384
+ # If true, the operation is completed, and either `error` or `response` is
1385
+ # available.
1386
+ # Corresponds to the JSON property `done`
1387
+ # @return [Boolean]
1388
+ attr_accessor :done
1389
+ alias_method :done?, :done
1390
+
1391
+ def initialize(**args)
1392
+ update!(**args)
1393
+ end
1394
+
1395
+ # Update properties of this object
1396
+ def update!(**args)
1397
+ @response = args[:response] if args.key?(:response)
1398
+ @name = args[:name] if args.key?(:name)
1399
+ @error = args[:error] if args.key?(:error)
1400
+ @metadata = args[:metadata] if args.key?(:metadata)
1401
+ @done = args[:done] if args.key?(:done)
1402
+ end
1403
+ end
1404
+
1405
+ # Represents a machine learning solution.
1406
+ # A model can have multiple versions, each of which is a deployed, trained
1407
+ # model ready to receive prediction requests. The model itself is just a
1408
+ # container.
1409
+ class GoogleCloudMlV1Model
1410
+ include Google::Apis::Core::Hashable
1411
+
1412
+ # Optional. The list of regions where the model is going to be deployed.
1413
+ # Currently only one region per model is supported.
1414
+ # Defaults to 'us-central1' if nothing is set.
1415
+ # Note:
1416
+ # * No matter where a model is deployed, it can always be accessed by
1417
+ # users from anywhere, both for online and batch prediction.
1418
+ # * The region for a batch prediction job is set by the region field when
1419
+ # submitting the batch prediction job and does not take its value from
1420
+ # this field.
1421
+ # Corresponds to the JSON property `regions`
1422
+ # @return [Array<String>]
1423
+ attr_accessor :regions
1424
+
1425
+ # Required. The name specified for the model when it was created.
1426
+ # The model name must be unique within the project it is created in.
1427
+ # Corresponds to the JSON property `name`
1428
+ # @return [String]
1429
+ attr_accessor :name
1430
+
1431
+ # Optional. The description specified for the model when it was created.
1432
+ # Corresponds to the JSON property `description`
1433
+ # @return [String]
1434
+ attr_accessor :description
1435
+
1436
+ # Optional. If true, enables StackDriver Logging for online prediction.
1437
+ # Default is false.
1438
+ # Corresponds to the JSON property `onlinePredictionLogging`
1439
+ # @return [Boolean]
1440
+ attr_accessor :online_prediction_logging
1441
+ alias_method :online_prediction_logging?, :online_prediction_logging
1442
+
1443
+ # Represents a version of the model.
1444
+ # Each version is a trained model deployed in the cloud, ready to handle
1445
+ # prediction requests. A model can have multiple versions. You can get
1446
+ # information about all of the versions of a given model by calling
1447
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
1448
+ # versions/list).
1449
+ # Corresponds to the JSON property `defaultVersion`
1450
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
1451
+ attr_accessor :default_version
1452
+
1453
+ def initialize(**args)
1454
+ update!(**args)
1455
+ end
1456
+
1457
+ # Update properties of this object
1458
+ def update!(**args)
1459
+ @regions = args[:regions] if args.key?(:regions)
1460
+ @name = args[:name] if args.key?(:name)
1461
+ @description = args[:description] if args.key?(:description)
1462
+ @online_prediction_logging = args[:online_prediction_logging] if args.key?(:online_prediction_logging)
1463
+ @default_version = args[:default_version] if args.key?(:default_version)
1464
+ end
1465
+ end
1466
+
1467
+ # A generic empty message that you can re-use to avoid defining duplicated
1468
+ # empty messages in your APIs. A typical example is to use it as the request
1469
+ # or the response type of an API method. For instance:
1470
+ # service Foo `
1471
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1540
1472
  # `
1541
- # </pre>
1542
- # If the call is successful, the response body will contain one prediction
1543
- # entry per instance in the request body. If prediction fails for any
1544
- # instance, the response body will contain no predictions and will contian
1545
- # a single error entry instead.
1546
- class GoogleCloudMlV1PredictRequest
1473
+ # The JSON representation for `Empty` is empty JSON object ````.
1474
+ class GoogleProtobufEmpty
1547
1475
  include Google::Apis::Core::Hashable
1548
1476
 
1549
- # Message that represents an arbitrary HTTP body. It should only be used for
1550
- # payload formats that can't be represented as JSON, such as raw binary or
1551
- # an HTML page.
1552
- # This message can be used both in streaming and non-streaming API methods in
1553
- # the request as well as the response.
1554
- # It can be used as a top-level request field, which is convenient if one
1555
- # wants to extract parameters from either the URL or HTTP template into the
1556
- # request fields and also want access to the raw HTTP body.
1557
- # Example:
1558
- # message GetResourceRequest `
1559
- # // A unique request id.
1560
- # string request_id = 1;
1561
- # // The raw HTTP body is bound to this field.
1562
- # google.api.HttpBody http_body = 2;
1563
- # `
1564
- # service ResourceService `
1565
- # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
1566
- # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
1567
- # `
1568
- # Example with streaming methods:
1569
- # service CaldavService `
1570
- # rpc GetCalendar(stream google.api.HttpBody)
1571
- # returns (stream google.api.HttpBody);
1572
- # rpc UpdateCalendar(stream google.api.HttpBody)
1573
- # returns (stream google.api.HttpBody);
1574
- # `
1575
- # Use of this type only changes how the request and response bodies are
1576
- # handled, all other features will continue to work unchanged.
1577
- # Corresponds to the JSON property `httpBody`
1578
- # @return [Google::Apis::MlV1::GoogleApiHttpBody]
1579
- attr_accessor :http_body
1477
+ def initialize(**args)
1478
+ update!(**args)
1479
+ end
1480
+
1481
+ # Update properties of this object
1482
+ def update!(**args)
1483
+ end
1484
+ end
1485
+
1486
+ # Request message for the CancelJob method.
1487
+ class GoogleCloudMlV1CancelJobRequest
1488
+ include Google::Apis::Core::Hashable
1580
1489
 
1581
1490
  def initialize(**args)
1582
1491
  update!(**args)
@@ -1584,23 +1493,116 @@ module Google
1584
1493
 
1585
1494
  # Update properties of this object
1586
1495
  def update!(**args)
1587
- @http_body = args[:http_body] if args.key?(:http_body)
1588
1496
  end
1589
1497
  end
1590
1498
 
1591
- # An observed value of a metric.
1592
- class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
1499
+ # Response message for the ListVersions method.
1500
+ class GoogleCloudMlV1ListVersionsResponse
1593
1501
  include Google::Apis::Core::Hashable
1594
1502
 
1595
- # The global training step for this metric.
1596
- # Corresponds to the JSON property `trainingStep`
1503
+ # Optional. Pass this token as the `page_token` field of the request for a
1504
+ # subsequent call.
1505
+ # Corresponds to the JSON property `nextPageToken`
1506
+ # @return [String]
1507
+ attr_accessor :next_page_token
1508
+
1509
+ # The list of versions.
1510
+ # Corresponds to the JSON property `versions`
1511
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Version>]
1512
+ attr_accessor :versions
1513
+
1514
+ def initialize(**args)
1515
+ update!(**args)
1516
+ end
1517
+
1518
+ # Update properties of this object
1519
+ def update!(**args)
1520
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1521
+ @versions = args[:versions] if args.key?(:versions)
1522
+ end
1523
+ end
1524
+
1525
+ # Options for manually scaling a model.
1526
+ class GoogleCloudMlV1beta1ManualScaling
1527
+ include Google::Apis::Core::Hashable
1528
+
1529
+ # The number of nodes to allocate for this model. These nodes are always up,
1530
+ # starting from the time the model is deployed, so the cost of operating
1531
+ # this model will be proportional to nodes * number of hours since
1532
+ # deployment.
1533
+ # Corresponds to the JSON property `nodes`
1597
1534
  # @return [Fixnum]
1598
- attr_accessor :training_step
1535
+ attr_accessor :nodes
1599
1536
 
1600
- # The objective value at this training step.
1601
- # Corresponds to the JSON property `objectiveValue`
1602
- # @return [Float]
1603
- attr_accessor :objective_value
1537
+ def initialize(**args)
1538
+ update!(**args)
1539
+ end
1540
+
1541
+ # Update properties of this object
1542
+ def update!(**args)
1543
+ @nodes = args[:nodes] if args.key?(:nodes)
1544
+ end
1545
+ end
1546
+
1547
+ # The `Status` type defines a logical error model that is suitable for different
1548
+ # programming environments, including REST APIs and RPC APIs. It is used by
1549
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
1550
+ # - Simple to use and understand for most users
1551
+ # - Flexible enough to meet unexpected needs
1552
+ # # Overview
1553
+ # The `Status` message contains three pieces of data: error code, error message,
1554
+ # and error details. The error code should be an enum value of
1555
+ # google.rpc.Code, but it may accept additional error codes if needed. The
1556
+ # error message should be a developer-facing English message that helps
1557
+ # developers *understand* and *resolve* the error. If a localized user-facing
1558
+ # error message is needed, put the localized message in the error details or
1559
+ # localize it in the client. The optional error details may contain arbitrary
1560
+ # information about the error. There is a predefined set of error detail types
1561
+ # in the package `google.rpc` which can be used for common error conditions.
1562
+ # # Language mapping
1563
+ # The `Status` message is the logical representation of the error model, but it
1564
+ # is not necessarily the actual wire format. When the `Status` message is
1565
+ # exposed in different client libraries and different wire protocols, it can be
1566
+ # mapped differently. For example, it will likely be mapped to some exceptions
1567
+ # in Java, but more likely mapped to some error codes in C.
1568
+ # # Other uses
1569
+ # The error model and the `Status` message can be used in a variety of
1570
+ # environments, either with or without APIs, to provide a
1571
+ # consistent developer experience across different environments.
1572
+ # Example uses of this error model include:
1573
+ # - Partial errors. If a service needs to return partial errors to the client,
1574
+ # it may embed the `Status` in the normal response to indicate the partial
1575
+ # errors.
1576
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1577
+ # have a `Status` message for error reporting purpose.
1578
+ # - Batch operations. If a client uses batch request and batch response, the
1579
+ # `Status` message should be used directly inside batch response, one for
1580
+ # each error sub-response.
1581
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1582
+ # results in its response, the status of those operations should be
1583
+ # represented directly using the `Status` message.
1584
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1585
+ # be used directly after any stripping needed for security/privacy reasons.
1586
+ class GoogleRpcStatus
1587
+ include Google::Apis::Core::Hashable
1588
+
1589
+ # The status code, which should be an enum value of google.rpc.Code.
1590
+ # Corresponds to the JSON property `code`
1591
+ # @return [Fixnum]
1592
+ attr_accessor :code
1593
+
1594
+ # A developer-facing error message, which should be in English. Any
1595
+ # user-facing error message should be localized and sent in the
1596
+ # google.rpc.Status.details field, or localized by the client.
1597
+ # Corresponds to the JSON property `message`
1598
+ # @return [String]
1599
+ attr_accessor :message
1600
+
1601
+ # A list of messages that carry the error details. There will be a
1602
+ # common set of message types for APIs to use.
1603
+ # Corresponds to the JSON property `details`
1604
+ # @return [Array<Hash<String,Object>>]
1605
+ attr_accessor :details
1604
1606
 
1605
1607
  def initialize(**args)
1606
1608
  update!(**args)
@@ -1608,8 +1610,9 @@ module Google
1608
1610
 
1609
1611
  # Update properties of this object
1610
1612
  def update!(**args)
1611
- @training_step = args[:training_step] if args.key?(:training_step)
1612
- @objective_value = args[:objective_value] if args.key?(:objective_value)
1613
+ @code = args[:code] if args.key?(:code)
1614
+ @message = args[:message] if args.key?(:message)
1615
+ @details = args[:details] if args.key?(:details)
1613
1616
  end
1614
1617
  end
1615
1618
  end