google-api-client 0.11.2 → 0.11.3

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 (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -22,12 +22,6 @@ module Google
22
22
  module Apis
23
23
  module ManufacturersV1
24
24
 
25
- class Attributes
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
25
  class Count
32
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
27
 
@@ -58,13 +52,13 @@ module Google
58
52
  include Google::Apis::Core::JsonObjectSupport
59
53
  end
60
54
 
61
- class Issue
55
+ class FeatureDescription
62
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
57
 
64
58
  include Google::Apis::Core::JsonObjectSupport
65
59
  end
66
60
 
67
- class FeatureDescription
61
+ class Issue
68
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
63
 
70
64
  include Google::Apis::Core::JsonObjectSupport
@@ -83,48 +77,9 @@ module Google
83
77
  end
84
78
 
85
79
  class Attributes
86
- # @private
87
- class Representation < Google::Apis::Core::JsonRepresentation
88
- property :size_type, as: 'sizeType'
89
- property :suggested_retail_price, as: 'suggestedRetailPrice', class: Google::Apis::ManufacturersV1::Price, decorator: Google::Apis::ManufacturersV1::Price::Representation
90
-
91
- collection :feature_description, as: 'featureDescription', class: Google::Apis::ManufacturersV1::FeatureDescription, decorator: Google::Apis::ManufacturersV1::FeatureDescription::Representation
92
-
93
- property :size, as: 'size'
94
- property :title, as: 'title'
95
- property :count, as: 'count', class: Google::Apis::ManufacturersV1::Count, decorator: Google::Apis::ManufacturersV1::Count::Representation
96
-
97
- property :brand, as: 'brand'
98
- property :disclosure_date, as: 'disclosureDate'
99
- property :material, as: 'material'
100
- property :scent, as: 'scent'
101
- property :flavor, as: 'flavor'
102
- collection :product_detail, as: 'productDetail', class: Google::Apis::ManufacturersV1::ProductDetail, decorator: Google::Apis::ManufacturersV1::ProductDetail::Representation
103
-
104
- property :age_group, as: 'ageGroup'
105
- property :mpn, as: 'mpn'
106
- property :product_page_url, as: 'productPageUrl'
107
- property :release_date, as: 'releaseDate'
108
- collection :gtin, as: 'gtin'
109
- property :item_group_id, as: 'itemGroupId'
110
- property :product_line, as: 'productLine'
111
- property :capacity, as: 'capacity', class: Google::Apis::ManufacturersV1::Capacity, decorator: Google::Apis::ManufacturersV1::Capacity::Representation
112
-
113
- property :description, as: 'description'
114
- property :gender, as: 'gender'
115
- property :size_system, as: 'sizeSystem'
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
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
81
 
124
- collection :video_link, as: 'videoLink'
125
- property :color, as: 'color'
126
- property :product_name, as: 'productName'
127
- end
82
+ include Google::Apis::Core::JsonObjectSupport
128
83
  end
129
84
 
130
85
  class Count
@@ -138,9 +93,6 @@ module Google
138
93
  class Product
139
94
  # @private
140
95
  class Representation < Google::Apis::Core::JsonRepresentation
141
- property :uploaded_attributes, as: 'uploadedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
142
-
143
- property :parent, as: 'parent'
144
96
  property :manually_provided_attributes, as: 'manuallyProvidedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
145
97
 
146
98
  property :content_language, as: 'contentLanguage'
@@ -152,6 +104,9 @@ module Google
152
104
  property :final_attributes, as: 'finalAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
153
105
 
154
106
  property :product_id, as: 'productId'
107
+ property :uploaded_attributes, as: 'uploadedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
108
+
109
+ property :parent, as: 'parent'
155
110
  end
156
111
  end
157
112
 
@@ -166,9 +121,9 @@ module Google
166
121
  class ListProductsResponse
167
122
  # @private
168
123
  class Representation < Google::Apis::Core::JsonRepresentation
169
- property :next_page_token, as: 'nextPageToken'
170
124
  collection :products, as: 'products', class: Google::Apis::ManufacturersV1::Product, decorator: Google::Apis::ManufacturersV1::Product::Representation
171
125
 
126
+ property :next_page_token, as: 'nextPageToken'
172
127
  end
173
128
  end
174
129
 
@@ -181,41 +136,86 @@ module Google
181
136
  end
182
137
  end
183
138
 
184
- class Issue
139
+ class FeatureDescription
185
140
  # @private
186
141
  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'
142
+ property :text, as: 'text'
143
+ property :image, as: 'image', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
144
+
145
+ property :headline, as: 'headline'
192
146
  end
193
147
  end
194
148
 
195
- class FeatureDescription
149
+ class Issue
196
150
  # @private
197
151
  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
-
152
+ property :description, as: 'description'
153
+ property :type, as: 'type'
154
+ property :attribute, as: 'attribute'
155
+ property :timestamp, as: 'timestamp'
156
+ property :severity, as: 'severity'
202
157
  end
203
158
  end
204
159
 
205
160
  class Price
206
161
  # @private
207
162
  class Representation < Google::Apis::Core::JsonRepresentation
208
- property :currency, as: 'currency'
209
163
  property :amount, as: 'amount'
164
+ property :currency, as: 'currency'
210
165
  end
211
166
  end
212
167
 
213
168
  class Image
214
169
  # @private
215
170
  class Representation < Google::Apis::Core::JsonRepresentation
216
- property :image_url, as: 'imageUrl'
217
171
  property :status, as: 'status'
218
172
  property :type, as: 'type'
173
+ property :image_url, as: 'imageUrl'
174
+ end
175
+ end
176
+
177
+ class Attributes
178
+ # @private
179
+ class Representation < Google::Apis::Core::JsonRepresentation
180
+ property :image_link, as: 'imageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
181
+
182
+ collection :product_type, as: 'productType'
183
+ property :format, as: 'format'
184
+ collection :additional_image_link, as: 'additionalImageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
185
+
186
+ collection :video_link, as: 'videoLink'
187
+ property :color, as: 'color'
188
+ property :product_name, as: 'productName'
189
+ property :size_type, as: 'sizeType'
190
+ property :suggested_retail_price, as: 'suggestedRetailPrice', class: Google::Apis::ManufacturersV1::Price, decorator: Google::Apis::ManufacturersV1::Price::Representation
191
+
192
+ collection :feature_description, as: 'featureDescription', class: Google::Apis::ManufacturersV1::FeatureDescription, decorator: Google::Apis::ManufacturersV1::FeatureDescription::Representation
193
+
194
+ property :size, as: 'size'
195
+ property :title, as: 'title'
196
+ property :count, as: 'count', class: Google::Apis::ManufacturersV1::Count, decorator: Google::Apis::ManufacturersV1::Count::Representation
197
+
198
+ property :brand, as: 'brand'
199
+ property :disclosure_date, as: 'disclosureDate'
200
+ property :material, as: 'material'
201
+ property :scent, as: 'scent'
202
+ property :age_group, as: 'ageGroup'
203
+ collection :product_detail, as: 'productDetail', class: Google::Apis::ManufacturersV1::ProductDetail, decorator: Google::Apis::ManufacturersV1::ProductDetail::Representation
204
+
205
+ property :flavor, as: 'flavor'
206
+ property :mpn, as: 'mpn'
207
+ property :product_page_url, as: 'productPageUrl'
208
+ property :release_date, as: 'releaseDate'
209
+ property :item_group_id, as: 'itemGroupId'
210
+ collection :gtin, as: 'gtin'
211
+ property :product_line, as: 'productLine'
212
+ property :capacity, as: 'capacity', class: Google::Apis::ManufacturersV1::Capacity, decorator: Google::Apis::ManufacturersV1::Capacity::Representation
213
+
214
+ property :description, as: 'description'
215
+ property :gender, as: 'gender'
216
+ property :size_system, as: 'sizeSystem'
217
+ property :theme, as: 'theme'
218
+ property :pattern, as: 'pattern'
219
219
  end
220
220
  end
221
221
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/ml/
26
26
  module MlV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170424'
28
+ REVISION = '20170520'
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,20 +22,53 @@ module Google
22
22
  module Apis
23
23
  module MlV1
24
24
 
25
- # Response message for the ListModels method.
26
- class GoogleCloudMlV1ListModelsResponse
25
+ # Message that represents an arbitrary HTTP body. It should only be used for
26
+ # payload formats that can't be represented as JSON, such as raw binary or
27
+ # an HTML page.
28
+ # This message can be used both in streaming and non-streaming API methods in
29
+ # the request as well as the response.
30
+ # It can be used as a top-level request field, which is convenient if one
31
+ # wants to extract parameters from either the URL or HTTP template into the
32
+ # request fields and also want access to the raw HTTP body.
33
+ # Example:
34
+ # message GetResourceRequest `
35
+ # // A unique request id.
36
+ # string request_id = 1;
37
+ # // The raw HTTP body is bound to this field.
38
+ # google.api.HttpBody http_body = 2;
39
+ # `
40
+ # service ResourceService `
41
+ # rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
42
+ # rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
43
+ # `
44
+ # Example with streaming methods:
45
+ # service CaldavService `
46
+ # rpc GetCalendar(stream google.api.HttpBody)
47
+ # returns (stream google.api.HttpBody);
48
+ # rpc UpdateCalendar(stream google.api.HttpBody)
49
+ # returns (stream google.api.HttpBody);
50
+ # `
51
+ # Use of this type only changes how the request and response bodies are
52
+ # handled, all other features will continue to work unchanged.
53
+ class GoogleApiHttpBody
27
54
  include Google::Apis::Core::Hashable
28
55
 
29
- # The list of models.
30
- # Corresponds to the JSON property `models`
31
- # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Model>]
32
- attr_accessor :models
56
+ # The HTTP Content-Type string representing the content type of the body.
57
+ # Corresponds to the JSON property `contentType`
58
+ # @return [String]
59
+ attr_accessor :content_type
33
60
 
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`
61
+ # Application specific response metadata. Must be set in the first response
62
+ # for streaming APIs.
63
+ # Corresponds to the JSON property `extensions`
64
+ # @return [Array<Hash<String,Object>>]
65
+ attr_accessor :extensions
66
+
67
+ # HTTP body binary data.
68
+ # Corresponds to the JSON property `data`
69
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
37
70
  # @return [String]
38
- attr_accessor :next_page_token
71
+ attr_accessor :data
39
72
 
40
73
  def initialize(**args)
41
74
  update!(**args)
@@ -43,148 +76,103 @@ module Google
43
76
 
44
77
  # Update properties of this object
45
78
  def update!(**args)
46
- @models = args[:models] if args.key?(:models)
47
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
79
+ @content_type = args[:content_type] if args.key?(:content_type)
80
+ @extensions = args[:extensions] if args.key?(:extensions)
81
+ @data = args[:data] if args.key?(:data)
48
82
  end
49
83
  end
50
84
 
51
- # Represents input parameters for a training job.
52
- class GoogleCloudMlV1TrainingInput
85
+ # Returns service account information associated with a project.
86
+ class GoogleCloudMlV1GetConfigResponse
53
87
  include Google::Apis::Core::Hashable
54
88
 
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`
89
+ # The project number for `service_account`.
90
+ # Corresponds to the JSON property `serviceAccountProject`
61
91
  # @return [Fixnum]
62
- attr_accessor :parameter_server_count
92
+ attr_accessor :service_account_project
63
93
 
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
94
+ # The service account Cloud ML uses to access resources in the project.
95
+ # Corresponds to the JSON property `serviceAccount`
96
+ # @return [String]
97
+ attr_accessor :service_account
70
98
 
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
99
+ def initialize(**args)
100
+ update!(**args)
101
+ end
78
102
 
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`
126
- # @return [String]
127
- attr_accessor :master_type
103
+ # Update properties of this object
104
+ def update!(**args)
105
+ @service_account_project = args[:service_account_project] if args.key?(:service_account_project)
106
+ @service_account = args[:service_account] if args.key?(:service_account)
107
+ end
108
+ end
128
109
 
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`
132
- # @return [String]
133
- attr_accessor :runtime_version
110
+ # Represents a version of the model.
111
+ # Each version is a trained model deployed in the cloud, ready to handle
112
+ # prediction requests. A model can have multiple versions. You can get
113
+ # information about all of the versions of a given model by calling
114
+ # [projects.models.versions.list](/ml-engine/reference/rest/v1beta1/projects.
115
+ # models.versions/list).
116
+ class GoogleCloudMlV1beta1Version
117
+ include Google::Apis::Core::Hashable
134
118
 
135
- # Required. The Python module name to run after installing the packages.
136
- # Corresponds to the JSON property `pythonModule`
137
- # @return [String]
138
- attr_accessor :python_module
119
+ # Output only. If true, this version will be used to handle prediction
120
+ # requests that do not specify a version.
121
+ # You can change the default version by calling
122
+ # [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1beta1/
123
+ # projects.models.versions/setDefault).
124
+ # Corresponds to the JSON property `isDefault`
125
+ # @return [Boolean]
126
+ attr_accessor :is_default
127
+ alias_method :is_default?, :is_default
139
128
 
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`
129
+ # Output only. The time the version was created.
130
+ # Corresponds to the JSON property `createTime`
147
131
  # @return [String]
148
- attr_accessor :worker_type
132
+ attr_accessor :create_time
149
133
 
150
- # Optional. Command line arguments to pass to the program.
151
- # Corresponds to the JSON property `args`
152
- # @return [Array<String>]
153
- attr_accessor :args
134
+ # Options for manually scaling a model.
135
+ # Corresponds to the JSON property `manualScaling`
136
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling]
137
+ attr_accessor :manual_scaling
154
138
 
155
- # Required. The Google Compute Engine region to run the training job in.
156
- # Corresponds to the JSON property `region`
139
+ # Required.The name specified for the version when it was created.
140
+ # The version name must be unique within the model it is created in.
141
+ # Corresponds to the JSON property `name`
157
142
  # @return [String]
158
- attr_accessor :region
143
+ attr_accessor :name
159
144
 
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`
145
+ # Output only. The time the version was last used for prediction.
146
+ # Corresponds to the JSON property `lastUseTime`
167
147
  # @return [String]
168
- attr_accessor :parameter_server_type
148
+ attr_accessor :last_use_time
169
149
 
170
- # Required. Specifies the machine types, the number of replicas for workers
171
- # and parameter servers.
172
- # Corresponds to the JSON property `scaleTier`
150
+ # Optional. The Google Cloud ML runtime version to use for this deployment.
151
+ # If not set, Google Cloud ML will choose a version.
152
+ # Corresponds to the JSON property `runtimeVersion`
173
153
  # @return [String]
174
- attr_accessor :scale_tier
154
+ attr_accessor :runtime_version
175
155
 
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`
156
+ # Optional. The description specified for the version when it was created.
157
+ # Corresponds to the JSON property `description`
181
158
  # @return [String]
182
- attr_accessor :job_dir
159
+ attr_accessor :description
183
160
 
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
161
+ # Required. The Google Cloud Storage location of the trained model used to
162
+ # create the version. See the
163
+ # [overview of model
164
+ # deployment](/ml-engine/docs/concepts/deployment-overview) for more
165
+ # informaiton.
166
+ # When passing Version to
167
+ # [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/projects.
168
+ # models.versions/create)
169
+ # the model service uses the specified location as the source of the model.
170
+ # Once deployed, the model version is hosted by the prediction service, so
171
+ # this location is useful only as a historical record.
172
+ # The total number of model files can't exceed 1000.
173
+ # Corresponds to the JSON property `deploymentUri`
174
+ # @return [String]
175
+ attr_accessor :deployment_uri
188
176
 
189
177
  def initialize(**args)
190
178
  update!(**args)
@@ -192,254 +180,14 @@ module Google
192
180
 
193
181
  # Update properties of this object
194
182
  def update!(**args)
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)
183
+ @is_default = args[:is_default] if args.key?(:is_default)
184
+ @create_time = args[:create_time] if args.key?(:create_time)
185
+ @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
186
+ @name = args[:name] if args.key?(:name)
187
+ @last_use_time = args[:last_use_time] if args.key?(:last_use_time)
199
188
  @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
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)
203
- @region = args[:region] if args.key?(:region)
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)
208
- end
209
- end
210
-
211
- # Represents a training or prediction job.
212
- class GoogleCloudMlV1Job
213
- include Google::Apis::Core::Hashable
214
-
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
219
-
220
- # Output only. When the job was created.
221
- # Corresponds to the JSON property `createTime`
222
- # @return [String]
223
- attr_accessor :create_time
224
-
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`
232
- # @return [String]
233
- attr_accessor :state
234
-
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
239
-
240
- # Output only. The details of a failure or a cancellation.
241
- # Corresponds to the JSON property `errorMessage`
242
- # @return [String]
243
- attr_accessor :error_message
244
-
245
- # Required. The user-specified id of the job.
246
- # Corresponds to the JSON property `jobId`
247
- # @return [String]
248
- attr_accessor :job_id
249
-
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.
256
- # Corresponds to the JSON property `startTime`
257
- # @return [String]
258
- attr_accessor :start_time
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
-
265
- def initialize(**args)
266
- update!(**args)
267
- end
268
-
269
- # Update properties of this object
270
- def update!(**args)
271
- @training_output = args[:training_output] if args.key?(:training_output)
272
- @create_time = args[:create_time] if args.key?(:create_time)
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)
278
- @end_time = args[:end_time] if args.key?(:end_time)
279
- @start_time = args[:start_time] if args.key?(:start_time)
280
- @prediction_output = args[:prediction_output] if args.key?(:prediction_output)
281
- end
282
- end
283
-
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
313
- include Google::Apis::Core::Hashable
314
-
315
- # HTTP body binary data.
316
- # Corresponds to the JSON property `data`
317
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
318
- # @return [String]
319
- attr_accessor :data
320
-
321
- # The HTTP Content-Type string representing the content type of the body.
322
- # Corresponds to the JSON property `contentType`
323
- # @return [String]
324
- attr_accessor :content_type
325
-
326
- def initialize(**args)
327
- update!(**args)
328
- end
329
-
330
- # Update properties of this object
331
- def update!(**args)
332
- @data = args[:data] if args.key?(:data)
333
- @content_type = args[:content_type] if args.key?(:content_type)
334
- end
335
- end
336
-
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
344
- include Google::Apis::Core::Hashable
345
-
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`
349
- # @return [String]
350
- attr_accessor :runtime_version
351
-
352
- # Output only. The time the version was last used for prediction.
353
- # Corresponds to the JSON property `lastUseTime`
354
- # @return [String]
355
- attr_accessor :last_use_time
356
-
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
361
-
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
403
-
404
- def initialize(**args)
405
- update!(**args)
406
- end
407
-
408
- # Update properties of this object
409
- def update!(**args)
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
189
  @description = args[:description] if args.key?(:description)
413
190
  @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)
418
- end
419
- end
420
-
421
- # Returns service account information associated with a project.
422
- class GoogleCloudMlV1GetConfigResponse
423
- include Google::Apis::Core::Hashable
424
-
425
- # The project number for `service_account`.
426
- # Corresponds to the JSON property `serviceAccountProject`
427
- # @return [Fixnum]
428
- attr_accessor :service_account_project
429
-
430
- # The service account Cloud ML uses to access resources in the project.
431
- # Corresponds to the JSON property `serviceAccount`
432
- # @return [String]
433
- attr_accessor :service_account
434
-
435
- def initialize(**args)
436
- update!(**args)
437
- end
438
-
439
- # Update properties of this object
440
- def update!(**args)
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)
443
191
  end
444
192
  end
445
193
 
@@ -487,6 +235,11 @@ module Google
487
235
  class GoogleCloudMlV1PredictionOutput
488
236
  include Google::Apis::Core::Hashable
489
237
 
238
+ # The number of generated predictions.
239
+ # Corresponds to the JSON property `predictionCount`
240
+ # @return [Fixnum]
241
+ attr_accessor :prediction_count
242
+
490
243
  # The number of data instances which resulted in errors.
491
244
  # Corresponds to the JSON property `errorCount`
492
245
  # @return [Fixnum]
@@ -502,21 +255,16 @@ module Google
502
255
  # @return [Float]
503
256
  attr_accessor :node_hours
504
257
 
505
- # The number of generated predictions.
506
- # Corresponds to the JSON property `predictionCount`
507
- # @return [Fixnum]
508
- attr_accessor :prediction_count
509
-
510
258
  def initialize(**args)
511
259
  update!(**args)
512
260
  end
513
261
 
514
262
  # Update properties of this object
515
263
  def update!(**args)
264
+ @prediction_count = args[:prediction_count] if args.key?(:prediction_count)
516
265
  @error_count = args[:error_count] if args.key?(:error_count)
517
266
  @output_path = args[:output_path] if args.key?(:output_path)
518
267
  @node_hours = args[:node_hours] if args.key?(:node_hours)
519
- @prediction_count = args[:prediction_count] if args.key?(:prediction_count)
520
268
  end
521
269
  end
522
270
 
@@ -524,24 +272,24 @@ module Google
524
272
  class GoogleLongrunningListOperationsResponse
525
273
  include Google::Apis::Core::Hashable
526
274
 
527
- # The standard List next-page token.
528
- # Corresponds to the JSON property `nextPageToken`
529
- # @return [String]
530
- attr_accessor :next_page_token
531
-
532
275
  # A list of operations that matches the specified filter in the request.
533
276
  # Corresponds to the JSON property `operations`
534
277
  # @return [Array<Google::Apis::MlV1::GoogleLongrunningOperation>]
535
278
  attr_accessor :operations
536
279
 
280
+ # The standard List next-page token.
281
+ # Corresponds to the JSON property `nextPageToken`
282
+ # @return [String]
283
+ attr_accessor :next_page_token
284
+
537
285
  def initialize(**args)
538
286
  update!(**args)
539
287
  end
540
288
 
541
289
  # Update properties of this object
542
290
  def update!(**args)
543
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
544
291
  @operations = args[:operations] if args.key?(:operations)
292
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
545
293
  end
546
294
  end
547
295
 
@@ -571,6 +319,12 @@ module Google
571
319
  class GoogleCloudMlV1TrainingOutput
572
320
  include Google::Apis::Core::Hashable
573
321
 
322
+ # Results for individual Hyperparameter trials.
323
+ # Only set for hyperparameter tuning jobs.
324
+ # Corresponds to the JSON property `trials`
325
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput>]
326
+ attr_accessor :trials
327
+
574
328
  # The number of hyperparameter tuning trials that completed successfully.
575
329
  # Only set for hyperparameter tuning jobs.
576
330
  # Corresponds to the JSON property `completedTrialCount`
@@ -588,22 +342,16 @@ module Google
588
342
  # @return [Float]
589
343
  attr_accessor :consumed_ml_units
590
344
 
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
596
-
597
345
  def initialize(**args)
598
346
  update!(**args)
599
347
  end
600
348
 
601
349
  # Update properties of this object
602
350
  def update!(**args)
351
+ @trials = args[:trials] if args.key?(:trials)
603
352
  @completed_trial_count = args[:completed_trial_count] if args.key?(:completed_trial_count)
604
353
  @is_hyperparameter_tuning_job = args[:is_hyperparameter_tuning_job] if args.key?(:is_hyperparameter_tuning_job)
605
354
  @consumed_ml_units = args[:consumed_ml_units] if args.key?(:consumed_ml_units)
606
- @trials = args[:trials] if args.key?(:trials)
607
355
  end
608
356
  end
609
357
 
@@ -834,24 +582,24 @@ module Google
834
582
  class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
835
583
  include Google::Apis::Core::Hashable
836
584
 
837
- # The objective value at this training step.
838
- # Corresponds to the JSON property `objectiveValue`
839
- # @return [Float]
840
- attr_accessor :objective_value
841
-
842
585
  # The global training step for this metric.
843
586
  # Corresponds to the JSON property `trainingStep`
844
587
  # @return [Fixnum]
845
588
  attr_accessor :training_step
846
589
 
590
+ # The objective value at this training step.
591
+ # Corresponds to the JSON property `objectiveValue`
592
+ # @return [Float]
593
+ attr_accessor :objective_value
594
+
847
595
  def initialize(**args)
848
596
  update!(**args)
849
597
  end
850
598
 
851
599
  # Update properties of this object
852
600
  def update!(**args)
853
- @objective_value = args[:objective_value] if args.key?(:objective_value)
854
601
  @training_step = args[:training_step] if args.key?(:training_step)
602
+ @objective_value = args[:objective_value] if args.key?(:objective_value)
855
603
  end
856
604
  end
857
605
 
@@ -1010,6 +758,31 @@ module Google
1010
758
  class GoogleCloudMlV1PredictionInput
1011
759
  include Google::Apis::Core::Hashable
1012
760
 
761
+ # Required. The format of the input data files.
762
+ # Corresponds to the JSON property `dataFormat`
763
+ # @return [String]
764
+ attr_accessor :data_format
765
+
766
+ # Optional. The Google Cloud ML runtime version to use for this batch
767
+ # prediction. If not set, Google Cloud ML will pick the runtime version used
768
+ # during the CreateVersion request for this model version, or choose the
769
+ # latest stable version when model version information is not available
770
+ # such as when the model is specified by uri.
771
+ # Corresponds to the JSON property `runtimeVersion`
772
+ # @return [String]
773
+ attr_accessor :runtime_version
774
+
775
+ # Required. The Google Cloud Storage location of the input data files.
776
+ # May contain wildcards.
777
+ # Corresponds to the JSON property `inputPaths`
778
+ # @return [Array<String>]
779
+ attr_accessor :input_paths
780
+
781
+ # Required. The Google Compute Engine region to run the prediction job in.
782
+ # Corresponds to the JSON property `region`
783
+ # @return [String]
784
+ attr_accessor :region
785
+
1013
786
  # Use this field if you want to specify a version of the model to use. The
1014
787
  # string is formatted the same way as `model_version`, with the addition
1015
788
  # of the version information:
@@ -1043,46 +816,21 @@ module Google
1043
816
  # @return [String]
1044
817
  attr_accessor :uri
1045
818
 
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`
1068
- # @return [String]
1069
- attr_accessor :region
1070
-
1071
819
  def initialize(**args)
1072
820
  update!(**args)
1073
821
  end
1074
822
 
1075
823
  # Update properties of this object
1076
824
  def update!(**args)
825
+ @data_format = args[:data_format] if args.key?(:data_format)
826
+ @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
827
+ @input_paths = args[:input_paths] if args.key?(:input_paths)
828
+ @region = args[:region] if args.key?(:region)
1077
829
  @version_name = args[:version_name] if args.key?(:version_name)
1078
830
  @model_name = args[:model_name] if args.key?(:model_name)
1079
831
  @output_path = args[:output_path] if args.key?(:output_path)
1080
832
  @max_worker_count = args[:max_worker_count] if args.key?(:max_worker_count)
1081
833
  @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)
1086
834
  end
1087
835
  end
1088
836
 
@@ -1212,6 +960,22 @@ module Google
1212
960
  class GoogleCloudMlV1HyperparameterSpec
1213
961
  include Google::Apis::Core::Hashable
1214
962
 
963
+ # Required. The type of goal to use for tuning. Available types are
964
+ # `MAXIMIZE` and `MINIMIZE`.
965
+ # Defaults to `MAXIMIZE`.
966
+ # Corresponds to the JSON property `goal`
967
+ # @return [String]
968
+ attr_accessor :goal
969
+
970
+ # Optional. The Tensorflow summary tag name to use for optimizing trials. For
971
+ # current versions of Tensorflow, this tag name should exactly match what is
972
+ # shown in Tensorboard, including all scopes. For versions of Tensorflow
973
+ # prior to 0.12, this should be only the tag passed to tf.Summary.
974
+ # By default, "training/hptuning/metric" will be used.
975
+ # Corresponds to the JSON property `hyperparameterMetricTag`
976
+ # @return [String]
977
+ attr_accessor :hyperparameter_metric_tag
978
+
1215
979
  # Required. The set of parameters to tune.
1216
980
  # Corresponds to the JSON property `params`
1217
981
  # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1ParameterSpec>]
@@ -1236,33 +1000,17 @@ module Google
1236
1000
  # @return [Fixnum]
1237
1001
  attr_accessor :max_parallel_trials
1238
1002
 
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`
1243
- # @return [String]
1244
- attr_accessor :goal
1245
-
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
1254
-
1255
1003
  def initialize(**args)
1256
1004
  update!(**args)
1257
1005
  end
1258
1006
 
1259
1007
  # Update properties of this object
1260
1008
  def update!(**args)
1009
+ @goal = args[:goal] if args.key?(:goal)
1010
+ @hyperparameter_metric_tag = args[:hyperparameter_metric_tag] if args.key?(:hyperparameter_metric_tag)
1261
1011
  @params = args[:params] if args.key?(:params)
1262
1012
  @max_trials = args[:max_trials] if args.key?(:max_trials)
1263
1013
  @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)
1266
1014
  end
1267
1015
  end
1268
1016
 
@@ -1270,25 +1018,25 @@ module Google
1270
1018
  class GoogleCloudMlV1ListJobsResponse
1271
1019
  include Google::Apis::Core::Hashable
1272
1020
 
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
1021
  # Optional. Pass this token as the `page_token` field of the request for a
1279
1022
  # subsequent call.
1280
1023
  # Corresponds to the JSON property `nextPageToken`
1281
1024
  # @return [String]
1282
1025
  attr_accessor :next_page_token
1283
1026
 
1027
+ # The list of jobs.
1028
+ # Corresponds to the JSON property `jobs`
1029
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Job>]
1030
+ attr_accessor :jobs
1031
+
1284
1032
  def initialize(**args)
1285
1033
  update!(**args)
1286
1034
  end
1287
1035
 
1288
1036
  # Update properties of this object
1289
1037
  def update!(**args)
1290
- @jobs = args[:jobs] if args.key?(:jobs)
1291
1038
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1039
+ @jobs = args[:jobs] if args.key?(:jobs)
1292
1040
  end
1293
1041
  end
1294
1042
 
@@ -1343,7 +1091,7 @@ module Google
1343
1091
  # error message is needed, put the localized message in the error details or
1344
1092
  # localize it in the client. The optional error details may contain arbitrary
1345
1093
  # 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.
1094
+ # in the package `google.rpc` that can be used for common error conditions.
1347
1095
  # # Language mapping
1348
1096
  # The `Status` message is the logical representation of the error model, but it
1349
1097
  # is not necessarily the actual wire format. When the `Status` message is
@@ -1359,7 +1107,7 @@ module Google
1359
1107
  # it may embed the `Status` in the normal response to indicate the partial
1360
1108
  # errors.
1361
1109
  # - Workflow errors. A typical workflow has multiple steps. Each step may
1362
- # have a `Status` message for error reporting purpose.
1110
+ # have a `Status` message for error reporting.
1363
1111
  # - Batch operations. If a client uses batch request and batch response, the
1364
1112
  # `Status` message should be used directly inside batch response, one for
1365
1113
  # each error sub-response.
@@ -1409,19 +1157,6 @@ module Google
1409
1157
  class GoogleCloudMlV1Model
1410
1158
  include Google::Apis::Core::Hashable
1411
1159
 
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
1160
  # Required. The name specified for the model when it was created.
1426
1161
  # The model name must be unique within the project it is created in.
1427
1162
  # Corresponds to the JSON property `name`
@@ -1450,17 +1185,30 @@ module Google
1450
1185
  # @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
1451
1186
  attr_accessor :default_version
1452
1187
 
1188
+ # Optional. The list of regions where the model is going to be deployed.
1189
+ # Currently only one region per model is supported.
1190
+ # Defaults to 'us-central1' if nothing is set.
1191
+ # Note:
1192
+ # * No matter where a model is deployed, it can always be accessed by
1193
+ # users from anywhere, both for online and batch prediction.
1194
+ # * The region for a batch prediction job is set by the region field when
1195
+ # submitting the batch prediction job and does not take its value from
1196
+ # this field.
1197
+ # Corresponds to the JSON property `regions`
1198
+ # @return [Array<String>]
1199
+ attr_accessor :regions
1200
+
1453
1201
  def initialize(**args)
1454
1202
  update!(**args)
1455
1203
  end
1456
1204
 
1457
1205
  # Update properties of this object
1458
1206
  def update!(**args)
1459
- @regions = args[:regions] if args.key?(:regions)
1460
1207
  @name = args[:name] if args.key?(:name)
1461
1208
  @description = args[:description] if args.key?(:description)
1462
1209
  @online_prediction_logging = args[:online_prediction_logging] if args.key?(:online_prediction_logging)
1463
1210
  @default_version = args[:default_version] if args.key?(:default_version)
1211
+ @regions = args[:regions] if args.key?(:regions)
1464
1212
  end
1465
1213
  end
1466
1214
 
@@ -1483,42 +1231,42 @@ module Google
1483
1231
  end
1484
1232
  end
1485
1233
 
1486
- # Request message for the CancelJob method.
1487
- class GoogleCloudMlV1CancelJobRequest
1234
+ # Response message for the ListVersions method.
1235
+ class GoogleCloudMlV1ListVersionsResponse
1488
1236
  include Google::Apis::Core::Hashable
1489
1237
 
1238
+ # The list of versions.
1239
+ # Corresponds to the JSON property `versions`
1240
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Version>]
1241
+ attr_accessor :versions
1242
+
1243
+ # Optional. Pass this token as the `page_token` field of the request for a
1244
+ # subsequent call.
1245
+ # Corresponds to the JSON property `nextPageToken`
1246
+ # @return [String]
1247
+ attr_accessor :next_page_token
1248
+
1490
1249
  def initialize(**args)
1491
1250
  update!(**args)
1492
1251
  end
1493
1252
 
1494
1253
  # Update properties of this object
1495
1254
  def update!(**args)
1255
+ @versions = args[:versions] if args.key?(:versions)
1256
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1496
1257
  end
1497
1258
  end
1498
1259
 
1499
- # Response message for the ListVersions method.
1500
- class GoogleCloudMlV1ListVersionsResponse
1260
+ # Request message for the CancelJob method.
1261
+ class GoogleCloudMlV1CancelJobRequest
1501
1262
  include Google::Apis::Core::Hashable
1502
1263
 
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
1264
  def initialize(**args)
1515
1265
  update!(**args)
1516
1266
  end
1517
1267
 
1518
1268
  # Update properties of this object
1519
1269
  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
1270
  end
1523
1271
  end
1524
1272
 
@@ -1558,7 +1306,7 @@ module Google
1558
1306
  # error message is needed, put the localized message in the error details or
1559
1307
  # localize it in the client. The optional error details may contain arbitrary
1560
1308
  # 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.
1309
+ # in the package `google.rpc` that can be used for common error conditions.
1562
1310
  # # Language mapping
1563
1311
  # The `Status` message is the logical representation of the error model, but it
1564
1312
  # is not necessarily the actual wire format. When the `Status` message is
@@ -1574,7 +1322,7 @@ module Google
1574
1322
  # it may embed the `Status` in the normal response to indicate the partial
1575
1323
  # errors.
1576
1324
  # - Workflow errors. A typical workflow has multiple steps. Each step may
1577
- # have a `Status` message for error reporting purpose.
1325
+ # have a `Status` message for error reporting.
1578
1326
  # - Batch operations. If a client uses batch request and batch response, the
1579
1327
  # `Status` message should be used directly inside batch response, one for
1580
1328
  # each error sub-response.
@@ -1586,6 +1334,12 @@ module Google
1586
1334
  class GoogleRpcStatus
1587
1335
  include Google::Apis::Core::Hashable
1588
1336
 
1337
+ # A list of messages that carry the error details. There will be a
1338
+ # common set of message types for APIs to use.
1339
+ # Corresponds to the JSON property `details`
1340
+ # @return [Array<Hash<String,Object>>]
1341
+ attr_accessor :details
1342
+
1589
1343
  # The status code, which should be an enum value of google.rpc.Code.
1590
1344
  # Corresponds to the JSON property `code`
1591
1345
  # @return [Fixnum]
@@ -1598,21 +1352,274 @@ module Google
1598
1352
  # @return [String]
1599
1353
  attr_accessor :message
1600
1354
 
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
1606
-
1607
1355
  def initialize(**args)
1608
1356
  update!(**args)
1609
1357
  end
1610
1358
 
1611
1359
  # Update properties of this object
1612
1360
  def update!(**args)
1361
+ @details = args[:details] if args.key?(:details)
1613
1362
  @code = args[:code] if args.key?(:code)
1614
1363
  @message = args[:message] if args.key?(:message)
1615
- @details = args[:details] if args.key?(:details)
1364
+ end
1365
+ end
1366
+
1367
+ # Response message for the ListModels method.
1368
+ class GoogleCloudMlV1ListModelsResponse
1369
+ include Google::Apis::Core::Hashable
1370
+
1371
+ # The list of models.
1372
+ # Corresponds to the JSON property `models`
1373
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Model>]
1374
+ attr_accessor :models
1375
+
1376
+ # Optional. Pass this token as the `page_token` field of the request for a
1377
+ # subsequent call.
1378
+ # Corresponds to the JSON property `nextPageToken`
1379
+ # @return [String]
1380
+ attr_accessor :next_page_token
1381
+
1382
+ def initialize(**args)
1383
+ update!(**args)
1384
+ end
1385
+
1386
+ # Update properties of this object
1387
+ def update!(**args)
1388
+ @models = args[:models] if args.key?(:models)
1389
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1390
+ end
1391
+ end
1392
+
1393
+ # Represents input parameters for a training job.
1394
+ class GoogleCloudMlV1TrainingInput
1395
+ include Google::Apis::Core::Hashable
1396
+
1397
+ # Optional. The Google Cloud ML runtime version to use for training. If not
1398
+ # set, Google Cloud ML will choose the latest stable version.
1399
+ # Corresponds to the JSON property `runtimeVersion`
1400
+ # @return [String]
1401
+ attr_accessor :runtime_version
1402
+
1403
+ # Required. The Python module name to run after installing the packages.
1404
+ # Corresponds to the JSON property `pythonModule`
1405
+ # @return [String]
1406
+ attr_accessor :python_module
1407
+
1408
+ # Optional. Specifies the type of virtual machine to use for your training
1409
+ # job's worker nodes.
1410
+ # The supported values are the same as those described in the entry for
1411
+ # `masterType`.
1412
+ # This value must be present when `scaleTier` is set to `CUSTOM` and
1413
+ # `workerCount` is greater than zero.
1414
+ # Corresponds to the JSON property `workerType`
1415
+ # @return [String]
1416
+ attr_accessor :worker_type
1417
+
1418
+ # Optional. Command line arguments to pass to the program.
1419
+ # Corresponds to the JSON property `args`
1420
+ # @return [Array<String>]
1421
+ attr_accessor :args
1422
+
1423
+ # Required. The Google Compute Engine region to run the training job in.
1424
+ # Corresponds to the JSON property `region`
1425
+ # @return [String]
1426
+ attr_accessor :region
1427
+
1428
+ # Optional. Specifies the type of virtual machine to use for your training
1429
+ # job's parameter server.
1430
+ # The supported values are the same as those described in the entry for
1431
+ # `master_type`.
1432
+ # This value must be present when `scaleTier` is set to `CUSTOM` and
1433
+ # `parameter_server_count` is greater than zero.
1434
+ # Corresponds to the JSON property `parameterServerType`
1435
+ # @return [String]
1436
+ attr_accessor :parameter_server_type
1437
+
1438
+ # Required. Specifies the machine types, the number of replicas for workers
1439
+ # and parameter servers.
1440
+ # Corresponds to the JSON property `scaleTier`
1441
+ # @return [String]
1442
+ attr_accessor :scale_tier
1443
+
1444
+ # Optional. A Google Cloud Storage path in which to store training outputs
1445
+ # and other data needed for training. This path is passed to your TensorFlow
1446
+ # program as the 'job_dir' command-line argument. The benefit of specifying
1447
+ # this field is that Cloud ML validates the path for use in training.
1448
+ # Corresponds to the JSON property `jobDir`
1449
+ # @return [String]
1450
+ attr_accessor :job_dir
1451
+
1452
+ # Represents a set of hyperparameters to optimize.
1453
+ # Corresponds to the JSON property `hyperparameters`
1454
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec]
1455
+ attr_accessor :hyperparameters
1456
+
1457
+ # Optional. The number of parameter server replicas to use for the training
1458
+ # job. Each replica in the cluster will be of the type specified in
1459
+ # `parameter_server_type`.
1460
+ # This value can only be used when `scale_tier` is set to `CUSTOM`.If you
1461
+ # set this value, you must also set `parameter_server_type`.
1462
+ # Corresponds to the JSON property `parameterServerCount`
1463
+ # @return [Fixnum]
1464
+ attr_accessor :parameter_server_count
1465
+
1466
+ # Required. The Google Cloud Storage location of the packages with
1467
+ # the training program and any additional dependencies.
1468
+ # The maximum number of package URIs is 100.
1469
+ # Corresponds to the JSON property `packageUris`
1470
+ # @return [Array<String>]
1471
+ attr_accessor :package_uris
1472
+
1473
+ # Optional. The number of worker replicas to use for the training job. Each
1474
+ # replica in the cluster will be of the type specified in `worker_type`.
1475
+ # This value can only be used when `scale_tier` is set to `CUSTOM`. If you
1476
+ # set this value, you must also set `worker_type`.
1477
+ # Corresponds to the JSON property `workerCount`
1478
+ # @return [Fixnum]
1479
+ attr_accessor :worker_count
1480
+
1481
+ # Optional. Specifies the type of virtual machine to use for your training
1482
+ # job's master worker.
1483
+ # The following types are supported:
1484
+ # <dl>
1485
+ # <dt>standard</dt>
1486
+ # <dd>
1487
+ # A basic machine configuration suitable for training simple models with
1488
+ # small to moderate datasets.
1489
+ # </dd>
1490
+ # <dt>large_model</dt>
1491
+ # <dd>
1492
+ # A machine with a lot of memory, specially suited for parameter servers
1493
+ # when your model is large (having many hidden layers or layers with very
1494
+ # large numbers of nodes).
1495
+ # </dd>
1496
+ # <dt>complex_model_s</dt>
1497
+ # <dd>
1498
+ # A machine suitable for the master and workers of the cluster when your
1499
+ # model requires more computation than the standard machine can handle
1500
+ # satisfactorily.
1501
+ # </dd>
1502
+ # <dt>complex_model_m</dt>
1503
+ # <dd>
1504
+ # A machine with roughly twice the number of cores and roughly double the
1505
+ # memory of <code suppresswarning="true">complex_model_s</code>.
1506
+ # </dd>
1507
+ # <dt>complex_model_l</dt>
1508
+ # <dd>
1509
+ # A machine with roughly twice the number of cores and roughly double the
1510
+ # memory of <code suppresswarning="true">complex_model_m</code>.
1511
+ # </dd>
1512
+ # <dt>standard_gpu</dt>
1513
+ # <dd>
1514
+ # A machine equivalent to <code suppresswarning="true">standard</code> that
1515
+ # also includes a
1516
+ # <a href="/ml-engine/docs/how-tos/using-gpus">
1517
+ # GPU that you can use in your trainer</a>.
1518
+ # </dd>
1519
+ # <dt>complex_model_m_gpu</dt>
1520
+ # <dd>
1521
+ # A machine equivalent to
1522
+ # <code suppresswarning="true">complex_model_m</code> that also includes
1523
+ # four GPUs.
1524
+ # </dd>
1525
+ # </dl>
1526
+ # You must set this value when `scaleTier` is set to `CUSTOM`.
1527
+ # Corresponds to the JSON property `masterType`
1528
+ # @return [String]
1529
+ attr_accessor :master_type
1530
+
1531
+ def initialize(**args)
1532
+ update!(**args)
1533
+ end
1534
+
1535
+ # Update properties of this object
1536
+ def update!(**args)
1537
+ @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
1538
+ @python_module = args[:python_module] if args.key?(:python_module)
1539
+ @worker_type = args[:worker_type] if args.key?(:worker_type)
1540
+ @args = args[:args] if args.key?(:args)
1541
+ @region = args[:region] if args.key?(:region)
1542
+ @parameter_server_type = args[:parameter_server_type] if args.key?(:parameter_server_type)
1543
+ @scale_tier = args[:scale_tier] if args.key?(:scale_tier)
1544
+ @job_dir = args[:job_dir] if args.key?(:job_dir)
1545
+ @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
1546
+ @parameter_server_count = args[:parameter_server_count] if args.key?(:parameter_server_count)
1547
+ @package_uris = args[:package_uris] if args.key?(:package_uris)
1548
+ @worker_count = args[:worker_count] if args.key?(:worker_count)
1549
+ @master_type = args[:master_type] if args.key?(:master_type)
1550
+ end
1551
+ end
1552
+
1553
+ # Represents a training or prediction job.
1554
+ class GoogleCloudMlV1Job
1555
+ include Google::Apis::Core::Hashable
1556
+
1557
+ # Output only. When the job processing was completed.
1558
+ # Corresponds to the JSON property `endTime`
1559
+ # @return [String]
1560
+ attr_accessor :end_time
1561
+
1562
+ # Output only. When the job processing was started.
1563
+ # Corresponds to the JSON property `startTime`
1564
+ # @return [String]
1565
+ attr_accessor :start_time
1566
+
1567
+ # Represents results of a prediction job.
1568
+ # Corresponds to the JSON property `predictionOutput`
1569
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput]
1570
+ attr_accessor :prediction_output
1571
+
1572
+ # Represents results of a training job. Output only.
1573
+ # Corresponds to the JSON property `trainingOutput`
1574
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput]
1575
+ attr_accessor :training_output
1576
+
1577
+ # Output only. When the job was created.
1578
+ # Corresponds to the JSON property `createTime`
1579
+ # @return [String]
1580
+ attr_accessor :create_time
1581
+
1582
+ # Represents input parameters for a training job.
1583
+ # Corresponds to the JSON property `trainingInput`
1584
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingInput]
1585
+ attr_accessor :training_input
1586
+
1587
+ # Represents input parameters for a prediction job.
1588
+ # Corresponds to the JSON property `predictionInput`
1589
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionInput]
1590
+ attr_accessor :prediction_input
1591
+
1592
+ # Output only. The detailed state of a job.
1593
+ # Corresponds to the JSON property `state`
1594
+ # @return [String]
1595
+ attr_accessor :state
1596
+
1597
+ # Output only. The details of a failure or a cancellation.
1598
+ # Corresponds to the JSON property `errorMessage`
1599
+ # @return [String]
1600
+ attr_accessor :error_message
1601
+
1602
+ # Required. The user-specified id of the job.
1603
+ # Corresponds to the JSON property `jobId`
1604
+ # @return [String]
1605
+ attr_accessor :job_id
1606
+
1607
+ def initialize(**args)
1608
+ update!(**args)
1609
+ end
1610
+
1611
+ # Update properties of this object
1612
+ def update!(**args)
1613
+ @end_time = args[:end_time] if args.key?(:end_time)
1614
+ @start_time = args[:start_time] if args.key?(:start_time)
1615
+ @prediction_output = args[:prediction_output] if args.key?(:prediction_output)
1616
+ @training_output = args[:training_output] if args.key?(:training_output)
1617
+ @create_time = args[:create_time] if args.key?(:create_time)
1618
+ @training_input = args[:training_input] if args.key?(:training_input)
1619
+ @prediction_input = args[:prediction_input] if args.key?(:prediction_input)
1620
+ @state = args[:state] if args.key?(:state)
1621
+ @error_message = args[:error_message] if args.key?(:error_message)
1622
+ @job_id = args[:job_id] if args.key?(:job_id)
1616
1623
  end
1617
1624
  end
1618
1625
  end