google-api-client 0.9.pre3 → 0.9.pre4

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 (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/coordinate/
26
26
  module CoordinateV1
27
27
  VERSION = 'V1'
28
- REVISION = '20141215'
28
+ REVISION = '20150811'
29
29
 
30
30
  # View and manage your Google Maps Coordinate jobs
31
31
  AUTH_COORDINATE = 'https://www.googleapis.com/auth/coordinate'
@@ -77,8 +77,7 @@ module Google
77
77
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
78
  # @raise [Google::Apis::AuthorizationError] Authorization is required
79
79
  def list_custom_field_defs(team_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
80
- path = 'teams/{teamId}/custom_fields'
81
- command = make_simple_command(:get, path, options)
80
+ command = make_simple_command(:get, 'teams/{teamId}/custom_fields', options)
82
81
  command.response_representation = Google::Apis::CoordinateV1::ListCustomFieldDefResponse::Representation
83
82
  command.response_class = Google::Apis::CoordinateV1::ListCustomFieldDefResponse
84
83
  command.params['teamId'] = team_id unless team_id.nil?
@@ -115,8 +114,7 @@ module Google
115
114
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
115
  # @raise [Google::Apis::AuthorizationError] Authorization is required
117
116
  def get_job(team_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
118
- path = 'teams/{teamId}/jobs/{jobId}'
119
- command = make_simple_command(:get, path, options)
117
+ command = make_simple_command(:get, 'teams/{teamId}/jobs/{jobId}', options)
120
118
  command.response_representation = Google::Apis::CoordinateV1::Job::Representation
121
119
  command.response_class = Google::Apis::CoordinateV1::Job
122
120
  command.params['teamId'] = team_id unless team_id.nil?
@@ -176,8 +174,7 @@ module Google
176
174
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
177
175
  # @raise [Google::Apis::AuthorizationError] Authorization is required
178
176
  def insert_job(team_id, address, lat, lng, title, job_object = nil, assignee: nil, custom_field: nil, customer_name: nil, customer_phone_number: nil, note: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
179
- path = 'teams/{teamId}/jobs'
180
- command = make_simple_command(:post, path, options)
177
+ command = make_simple_command(:post, 'teams/{teamId}/jobs', options)
181
178
  command.request_representation = Google::Apis::CoordinateV1::Job::Representation
182
179
  command.request_object = job_object
183
180
  command.response_representation = Google::Apis::CoordinateV1::Job::Representation
@@ -205,6 +202,8 @@ module Google
205
202
  # Maximum number of results to return in one page.
206
203
  # @param [String] min_modified_timestamp_ms
207
204
  # Minimum time a job was modified in milliseconds since epoch.
205
+ # @param [Boolean] omit_job_changes
206
+ # Whether to omit detail job history information.
208
207
  # @param [String] page_token
209
208
  # Continuation token
210
209
  # @param [String] fields
@@ -228,14 +227,14 @@ module Google
228
227
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
229
228
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
230
229
  # @raise [Google::Apis::AuthorizationError] Authorization is required
231
- def list_jobs(team_id, max_results: nil, min_modified_timestamp_ms: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
232
- path = 'teams/{teamId}/jobs'
233
- command = make_simple_command(:get, path, options)
230
+ def list_jobs(team_id, max_results: nil, min_modified_timestamp_ms: nil, omit_job_changes: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
231
+ command = make_simple_command(:get, 'teams/{teamId}/jobs', options)
234
232
  command.response_representation = Google::Apis::CoordinateV1::ListJobResponse::Representation
235
233
  command.response_class = Google::Apis::CoordinateV1::ListJobResponse
236
234
  command.params['teamId'] = team_id unless team_id.nil?
237
235
  command.query['maxResults'] = max_results unless max_results.nil?
238
236
  command.query['minModifiedTimestampMs'] = min_modified_timestamp_ms unless min_modified_timestamp_ms.nil?
237
+ command.query['omitJobChanges'] = omit_job_changes unless omit_job_changes.nil?
239
238
  command.query['pageToken'] = page_token unless page_token.nil?
240
239
  command.query['fields'] = fields unless fields.nil?
241
240
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -297,8 +296,7 @@ module Google
297
296
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
298
297
  # @raise [Google::Apis::AuthorizationError] Authorization is required
299
298
  def patch_job(team_id, job_id, job_object = nil, address: nil, assignee: nil, custom_field: nil, customer_name: nil, customer_phone_number: nil, lat: nil, lng: nil, note: nil, progress: nil, title: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
300
- path = 'teams/{teamId}/jobs/{jobId}'
301
- command = make_simple_command(:patch, path, options)
299
+ command = make_simple_command(:patch, 'teams/{teamId}/jobs/{jobId}', options)
302
300
  command.request_representation = Google::Apis::CoordinateV1::Job::Representation
303
301
  command.request_object = job_object
304
302
  command.response_representation = Google::Apis::CoordinateV1::Job::Representation
@@ -374,8 +372,7 @@ module Google
374
372
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
375
373
  # @raise [Google::Apis::AuthorizationError] Authorization is required
376
374
  def update_job(team_id, job_id, job_object = nil, address: nil, assignee: nil, custom_field: nil, customer_name: nil, customer_phone_number: nil, lat: nil, lng: nil, note: nil, progress: nil, title: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
377
- path = 'teams/{teamId}/jobs/{jobId}'
378
- command = make_simple_command(:put, path, options)
375
+ command = make_simple_command(:put, 'teams/{teamId}/jobs/{jobId}', options)
379
376
  command.request_representation = Google::Apis::CoordinateV1::Job::Representation
380
377
  command.request_object = job_object
381
378
  command.response_representation = Google::Apis::CoordinateV1::Job::Representation
@@ -431,8 +428,7 @@ module Google
431
428
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
432
429
  # @raise [Google::Apis::AuthorizationError] Authorization is required
433
430
  def list_locations(team_id, worker_email, start_timestamp_ms, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
434
- path = 'teams/{teamId}/workers/{workerEmail}/locations'
435
- command = make_simple_command(:get, path, options)
431
+ command = make_simple_command(:get, 'teams/{teamId}/workers/{workerEmail}/locations', options)
436
432
  command.response_representation = Google::Apis::CoordinateV1::ListLocationResponse::Representation
437
433
  command.response_class = Google::Apis::CoordinateV1::ListLocationResponse
438
434
  command.params['teamId'] = team_id unless team_id.nil?
@@ -473,8 +469,7 @@ module Google
473
469
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
474
470
  # @raise [Google::Apis::AuthorizationError] Authorization is required
475
471
  def get_schedule(team_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
476
- path = 'teams/{teamId}/jobs/{jobId}/schedule'
477
- command = make_simple_command(:get, path, options)
472
+ command = make_simple_command(:get, 'teams/{teamId}/jobs/{jobId}/schedule', options)
478
473
  command.response_representation = Google::Apis::CoordinateV1::Schedule::Representation
479
474
  command.response_class = Google::Apis::CoordinateV1::Schedule
480
475
  command.params['teamId'] = team_id unless team_id.nil?
@@ -523,8 +518,7 @@ module Google
523
518
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
524
519
  # @raise [Google::Apis::AuthorizationError] Authorization is required
525
520
  def patch_schedule(team_id, job_id, schedule_object = nil, all_day: nil, duration: nil, end_time: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
526
- path = 'teams/{teamId}/jobs/{jobId}/schedule'
527
- command = make_simple_command(:patch, path, options)
521
+ command = make_simple_command(:patch, 'teams/{teamId}/jobs/{jobId}/schedule', options)
528
522
  command.request_representation = Google::Apis::CoordinateV1::Schedule::Representation
529
523
  command.request_object = schedule_object
530
524
  command.response_representation = Google::Apis::CoordinateV1::Schedule::Representation
@@ -578,8 +572,7 @@ module Google
578
572
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
579
573
  # @raise [Google::Apis::AuthorizationError] Authorization is required
580
574
  def update_schedule(team_id, job_id, schedule_object = nil, all_day: nil, duration: nil, end_time: nil, start_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
581
- path = 'teams/{teamId}/jobs/{jobId}/schedule'
582
- command = make_simple_command(:put, path, options)
575
+ command = make_simple_command(:put, 'teams/{teamId}/jobs/{jobId}/schedule', options)
583
576
  command.request_representation = Google::Apis::CoordinateV1::Schedule::Representation
584
577
  command.request_object = schedule_object
585
578
  command.response_representation = Google::Apis::CoordinateV1::Schedule::Representation
@@ -625,8 +618,7 @@ module Google
625
618
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
626
619
  # @raise [Google::Apis::AuthorizationError] Authorization is required
627
620
  def list_teams(admin: nil, dispatcher: nil, worker: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
628
- path = 'teams'
629
- command = make_simple_command(:get, path, options)
621
+ command = make_simple_command(:get, 'teams', options)
630
622
  command.response_representation = Google::Apis::CoordinateV1::ListTeamResponse::Representation
631
623
  command.response_class = Google::Apis::CoordinateV1::ListTeamResponse
632
624
  command.query['admin'] = admin unless admin.nil?
@@ -663,8 +655,7 @@ module Google
663
655
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
664
656
  # @raise [Google::Apis::AuthorizationError] Authorization is required
665
657
  def list_workers(team_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
666
- path = 'teams/{teamId}/workers'
667
- command = make_simple_command(:get, path, options)
658
+ command = make_simple_command(:get, 'teams/{teamId}/workers', options)
668
659
  command.response_representation = Google::Apis::CoordinateV1::ListWorkerResponse::Representation
669
660
  command.response_class = Google::Apis::CoordinateV1::ListWorkerResponse
670
661
  command.params['teamId'] = team_id unless team_id.nil?
@@ -153,8 +153,7 @@ module Google
153
153
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
154
154
  # @raise [Google::Apis::AuthorizationError] Authorization is required
155
155
  def list_cses(q, c2coff: nil, cr: nil, cref: nil, cx: nil, date_restrict: nil, exact_terms: nil, exclude_terms: nil, file_type: nil, filter: nil, gl: nil, googlehost: nil, high_range: nil, hl: nil, hq: nil, img_color_type: nil, img_dominant_color: nil, img_size: nil, img_type: nil, link_site: nil, low_range: nil, lr: nil, num: nil, or_terms: nil, related_site: nil, rights: nil, safe: nil, search_type: nil, site_search: nil, site_search_filter: nil, sort: nil, start: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
156
- path = 'v1'
157
- command = make_simple_command(:get, path, options)
156
+ command = make_simple_command(:get, 'v1', options)
158
157
  command.response_representation = Google::Apis::CustomsearchV1::Search::Representation
159
158
  command.response_class = Google::Apis::CustomsearchV1::Search
160
159
  command.query['c2coff'] = c2coff unless c2coff.nil?
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/datastore/
26
26
  module DatastoreV1beta2
27
27
  VERSION = 'V1beta2'
28
- REVISION = '20150402'
28
+ REVISION = '20151008'
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'
@@ -78,9 +78,8 @@ module Google
78
78
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
79
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
80
  # @raise [Google::Apis::AuthorizationError] Authorization is required
81
- def allocate_ids(dataset_id, allocate_ids_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
82
- path = '{datasetId}/allocateIds'
83
- command = make_simple_command(:post, path, options)
81
+ def allocate_dataset_ids(dataset_id, allocate_ids_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
82
+ command = make_simple_command(:post, '{datasetId}/allocateIds', options)
84
83
  command.request_representation = Google::Apis::DatastoreV1beta2::AllocateIdsRequest::Representation
85
84
  command.request_object = allocate_ids_request_object
86
85
  command.response_representation = Google::Apis::DatastoreV1beta2::AllocateIdsResponse::Representation
@@ -117,9 +116,8 @@ module Google
117
116
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
118
117
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
119
118
  # @raise [Google::Apis::AuthorizationError] Authorization is required
120
- def begin_transaction(dataset_id, begin_transaction_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
121
- path = '{datasetId}/beginTransaction'
122
- command = make_simple_command(:post, path, options)
119
+ def begin_dataset_transaction(dataset_id, begin_transaction_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
120
+ command = make_simple_command(:post, '{datasetId}/beginTransaction', options)
123
121
  command.request_representation = Google::Apis::DatastoreV1beta2::BeginTransactionRequest::Representation
124
122
  command.request_object = begin_transaction_request_object
125
123
  command.response_representation = Google::Apis::DatastoreV1beta2::BeginTransactionResponse::Representation
@@ -156,9 +154,8 @@ module Google
156
154
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
157
155
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
158
156
  # @raise [Google::Apis::AuthorizationError] Authorization is required
159
- def commit(dataset_id, commit_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
160
- path = '{datasetId}/commit'
161
- command = make_simple_command(:post, path, options)
157
+ def commit_dataset(dataset_id, commit_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
158
+ command = make_simple_command(:post, '{datasetId}/commit', options)
162
159
  command.request_representation = Google::Apis::DatastoreV1beta2::CommitRequest::Representation
163
160
  command.request_object = commit_request_object
164
161
  command.response_representation = Google::Apis::DatastoreV1beta2::CommitResponse::Representation
@@ -195,9 +192,8 @@ module Google
195
192
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
196
193
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
197
194
  # @raise [Google::Apis::AuthorizationError] Authorization is required
198
- def lookup(dataset_id, lookup_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
199
- path = '{datasetId}/lookup'
200
- command = make_simple_command(:post, path, options)
195
+ def lookup_dataset(dataset_id, lookup_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
196
+ command = make_simple_command(:post, '{datasetId}/lookup', options)
201
197
  command.request_representation = Google::Apis::DatastoreV1beta2::LookupRequest::Representation
202
198
  command.request_object = lookup_request_object
203
199
  command.response_representation = Google::Apis::DatastoreV1beta2::LookupResponse::Representation
@@ -234,9 +230,8 @@ module Google
234
230
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
235
231
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
236
232
  # @raise [Google::Apis::AuthorizationError] Authorization is required
237
- def rollback(dataset_id, rollback_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
238
- path = '{datasetId}/rollback'
239
- command = make_simple_command(:post, path, options)
233
+ def rollback_dataset(dataset_id, rollback_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
234
+ command = make_simple_command(:post, '{datasetId}/rollback', options)
240
235
  command.request_representation = Google::Apis::DatastoreV1beta2::RollbackRequest::Representation
241
236
  command.request_object = rollback_request_object
242
237
  command.response_representation = Google::Apis::DatastoreV1beta2::RollbackResponse::Representation
@@ -273,9 +268,8 @@ module Google
273
268
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
274
269
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
275
270
  # @raise [Google::Apis::AuthorizationError] Authorization is required
276
- def run_query(dataset_id, run_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
277
- path = '{datasetId}/runQuery'
278
- command = make_simple_command(:post, path, options)
271
+ def run_dataset_query(dataset_id, run_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
272
+ command = make_simple_command(:post, '{datasetId}/runQuery', options)
279
273
  command.request_representation = Google::Apis::DatastoreV1beta2::RunQueryRequest::Representation
280
274
  command.request_object = run_query_request_object
281
275
  command.response_representation = Google::Apis::DatastoreV1beta2::RunQueryResponse::Representation
@@ -0,0 +1,44 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/deploymentmanager_v2/service.rb'
16
+ require 'google/apis/deploymentmanager_v2/classes.rb'
17
+ require 'google/apis/deploymentmanager_v2/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Cloud Deployment Manager API
22
+ #
23
+ # The Deployment Manager API allows users to declaratively configure, deploy and
24
+ # run complex solutions on the Google Cloud Platform.
25
+ #
26
+ # @see https://cloud.google.com/deployment-manager/
27
+ module DeploymentmanagerV2
28
+ VERSION = 'V2'
29
+ REVISION = '20151207'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+
34
+ # View your data across Google Cloud Platform services
35
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
36
+
37
+ # View and manage your Google Cloud Platform management resources and deployment status information
38
+ AUTH_NDEV_CLOUDMAN = 'https://www.googleapis.com/auth/ndev.cloudman'
39
+
40
+ # View your Google Cloud Platform management resources and deployment status information
41
+ AUTH_NDEV_CLOUDMAN_READONLY = 'https://www.googleapis.com/auth/ndev.cloudman.readonly'
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,1089 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DeploymentmanagerV2
24
+
25
+ #
26
+ class ConfigFile
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The contents of the file.
30
+ # Corresponds to the JSON property `content`
31
+ # @return [String]
32
+ attr_accessor :content
33
+
34
+ def initialize(**args)
35
+ update!(**args)
36
+ end
37
+
38
+ # Update properties of this object
39
+ def update!(**args)
40
+ @content = args[:content] unless args[:content].nil?
41
+ end
42
+ end
43
+
44
+ #
45
+ class Deployment
46
+ include Google::Apis::Core::Hashable
47
+
48
+ # An optional user-provided description of the deployment.
49
+ # Corresponds to the JSON property `description`
50
+ # @return [String]
51
+ attr_accessor :description
52
+
53
+ # Provides a fingerprint to use in requests to modify a deployment, such as
54
+ # update(), stop(), and cancelPreview() requests. A fingerprint is a randomly
55
+ # generated value that must be provided with update(), stop(), and cancelPreview(
56
+ # ) requests to perform optimistic locking. This ensures optimistic concurrency
57
+ # so that only one request happens at a time.
58
+ # The fingerprint is initially generated by Deployment Manager and changes after
59
+ # every request to modify data. To get the latest fingerprint value, perform a
60
+ # get() request to a deployment.
61
+ # Corresponds to the JSON property `fingerprint`
62
+ # @return [String]
63
+ attr_accessor :fingerprint
64
+
65
+ # [Output Only] Unique identifier for the resource; defined by the server.
66
+ # Corresponds to the JSON property `id`
67
+ # @return [String]
68
+ attr_accessor :id
69
+
70
+ # [Output Only] Timestamp when the deployment was created, in RFC3339 text
71
+ # format .
72
+ # Corresponds to the JSON property `insertTime`
73
+ # @return [String]
74
+ attr_accessor :insert_time
75
+
76
+ # [Output Only] URL of the manifest representing the last manifest that was
77
+ # successfully deployed.
78
+ # Corresponds to the JSON property `manifest`
79
+ # @return [String]
80
+ attr_accessor :manifest
81
+
82
+ # Name of the resource; provided by the client when the resource is created. The
83
+ # name must be 1-63 characters long, and comply with RFC1035. Specifically, the
84
+ # name must be 1-63 characters long and match the regular expression [a-z]([-a-
85
+ # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
86
+ # and all following characters must be a dash, lowercase letter, or digit,
87
+ # except the last character, which cannot be a dash.
88
+ # Corresponds to the JSON property `name`
89
+ # @return [String]
90
+ attr_accessor :name
91
+
92
+ # An Operation resource, used to manage asynchronous API requests.
93
+ # Corresponds to the JSON property `operation`
94
+ # @return [Google::Apis::DeploymentmanagerV2::Operation]
95
+ attr_accessor :operation
96
+
97
+ #
98
+ # Corresponds to the JSON property `target`
99
+ # @return [Google::Apis::DeploymentmanagerV2::TargetConfiguration]
100
+ attr_accessor :target
101
+
102
+ #
103
+ # Corresponds to the JSON property `update`
104
+ # @return [Google::Apis::DeploymentmanagerV2::DeploymentUpdate]
105
+ attr_accessor :update
106
+
107
+ def initialize(**args)
108
+ update!(**args)
109
+ end
110
+
111
+ # Update properties of this object
112
+ def update!(**args)
113
+ @description = args[:description] unless args[:description].nil?
114
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
115
+ @id = args[:id] unless args[:id].nil?
116
+ @insert_time = args[:insert_time] unless args[:insert_time].nil?
117
+ @manifest = args[:manifest] unless args[:manifest].nil?
118
+ @name = args[:name] unless args[:name].nil?
119
+ @operation = args[:operation] unless args[:operation].nil?
120
+ @target = args[:target] unless args[:target].nil?
121
+ @update = args[:update] unless args[:update].nil?
122
+ end
123
+ end
124
+
125
+ #
126
+ class DeploymentUpdate
127
+ include Google::Apis::Core::Hashable
128
+
129
+ # [Output Only] URL of the manifest representing the update configuration of
130
+ # this deployment.
131
+ # Corresponds to the JSON property `manifest`
132
+ # @return [String]
133
+ attr_accessor :manifest
134
+
135
+ def initialize(**args)
136
+ update!(**args)
137
+ end
138
+
139
+ # Update properties of this object
140
+ def update!(**args)
141
+ @manifest = args[:manifest] unless args[:manifest].nil?
142
+ end
143
+ end
144
+
145
+ #
146
+ class DeploymentsCancelPreviewRequest
147
+ include Google::Apis::Core::Hashable
148
+
149
+ # Specifies a fingerprint for cancelPreview() requests. A fingerprint is a
150
+ # randomly generated value that must be provided in cancelPreview() requests to
151
+ # perform optimistic locking. This ensures optimistic concurrency so that the
152
+ # deployment does not have conflicting requests (e.g. if someone attempts to
153
+ # make a new update request while another user attempts to cancel a preview,
154
+ # this would prevent one of the requests).
155
+ # The fingerprint is initially generated by Deployment Manager and changes after
156
+ # every request to modify a deployment. To get the latest fingerprint value,
157
+ # perform a get() request to a deployment.
158
+ # Corresponds to the JSON property `fingerprint`
159
+ # @return [String]
160
+ attr_accessor :fingerprint
161
+
162
+ def initialize(**args)
163
+ update!(**args)
164
+ end
165
+
166
+ # Update properties of this object
167
+ def update!(**args)
168
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
169
+ end
170
+ end
171
+
172
+ # A response containing a partial list of deployments and a page token used to
173
+ # build the next request if the request has been truncated.
174
+ class ListDeploymentsResponse
175
+ include Google::Apis::Core::Hashable
176
+
177
+ # [Output Only] The deployments contained in this response.
178
+ # Corresponds to the JSON property `deployments`
179
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Deployment>]
180
+ attr_accessor :deployments
181
+
182
+ # [Output Only] A token used to continue a truncated list request.
183
+ # Corresponds to the JSON property `nextPageToken`
184
+ # @return [String]
185
+ attr_accessor :next_page_token
186
+
187
+ def initialize(**args)
188
+ update!(**args)
189
+ end
190
+
191
+ # Update properties of this object
192
+ def update!(**args)
193
+ @deployments = args[:deployments] unless args[:deployments].nil?
194
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
195
+ end
196
+ end
197
+
198
+ #
199
+ class DeploymentsStopRequest
200
+ include Google::Apis::Core::Hashable
201
+
202
+ # Specifies a fingerprint for stop() requests. A fingerprint is a randomly
203
+ # generated value that must be provided in stop() requests to perform optimistic
204
+ # locking. This ensures optimistic concurrency so that the deployment does not
205
+ # have conflicting requests (e.g. if someone attempts to make a new update
206
+ # request while another user attempts to stop an ongoing update request, this
207
+ # would prevent a collision).
208
+ # The fingerprint is initially generated by Deployment Manager and changes after
209
+ # every request to modify a deployment. To get the latest fingerprint value,
210
+ # perform a get() request to a deployment.
211
+ # Corresponds to the JSON property `fingerprint`
212
+ # @return [String]
213
+ attr_accessor :fingerprint
214
+
215
+ def initialize(**args)
216
+ update!(**args)
217
+ end
218
+
219
+ # Update properties of this object
220
+ def update!(**args)
221
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
222
+ end
223
+ end
224
+
225
+ #
226
+ class ImportFile
227
+ include Google::Apis::Core::Hashable
228
+
229
+ # The contents of the file.
230
+ # Corresponds to the JSON property `content`
231
+ # @return [String]
232
+ attr_accessor :content
233
+
234
+ # The name of the file.
235
+ # Corresponds to the JSON property `name`
236
+ # @return [String]
237
+ attr_accessor :name
238
+
239
+ def initialize(**args)
240
+ update!(**args)
241
+ end
242
+
243
+ # Update properties of this object
244
+ def update!(**args)
245
+ @content = args[:content] unless args[:content].nil?
246
+ @name = args[:name] unless args[:name].nil?
247
+ end
248
+ end
249
+
250
+ #
251
+ class Manifest
252
+ include Google::Apis::Core::Hashable
253
+
254
+ #
255
+ # Corresponds to the JSON property `config`
256
+ # @return [Google::Apis::DeploymentmanagerV2::ConfigFile]
257
+ attr_accessor :config
258
+
259
+ # [Output Only] The fully-expanded configuration file, including any templates
260
+ # and references.
261
+ # Corresponds to the JSON property `expandedConfig`
262
+ # @return [String]
263
+ attr_accessor :expanded_config
264
+
265
+ # [Output Only] Unique identifier for the resource; defined by the server.
266
+ # Corresponds to the JSON property `id`
267
+ # @return [String]
268
+ attr_accessor :id
269
+
270
+ # [Output Only] The imported files for this manifest.
271
+ # Corresponds to the JSON property `imports`
272
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ImportFile>]
273
+ attr_accessor :imports
274
+
275
+ # [Output Only] Timestamp when the manifest was created, in RFC3339 text format.
276
+ # Corresponds to the JSON property `insertTime`
277
+ # @return [String]
278
+ attr_accessor :insert_time
279
+
280
+ # [Output Only] The YAML layout for this manifest.
281
+ # Corresponds to the JSON property `layout`
282
+ # @return [String]
283
+ attr_accessor :layout
284
+
285
+ # [Output Only] The name of the manifest.
286
+ # Corresponds to the JSON property `name`
287
+ # @return [String]
288
+ attr_accessor :name
289
+
290
+ # [Output Only] Self link for the manifest.
291
+ # Corresponds to the JSON property `selfLink`
292
+ # @return [String]
293
+ attr_accessor :self_link
294
+
295
+ def initialize(**args)
296
+ update!(**args)
297
+ end
298
+
299
+ # Update properties of this object
300
+ def update!(**args)
301
+ @config = args[:config] unless args[:config].nil?
302
+ @expanded_config = args[:expanded_config] unless args[:expanded_config].nil?
303
+ @id = args[:id] unless args[:id].nil?
304
+ @imports = args[:imports] unless args[:imports].nil?
305
+ @insert_time = args[:insert_time] unless args[:insert_time].nil?
306
+ @layout = args[:layout] unless args[:layout].nil?
307
+ @name = args[:name] unless args[:name].nil?
308
+ @self_link = args[:self_link] unless args[:self_link].nil?
309
+ end
310
+ end
311
+
312
+ # A response containing a partial list of manifests and a page token used to
313
+ # build the next request if the request has been truncated.
314
+ class ListManifestsResponse
315
+ include Google::Apis::Core::Hashable
316
+
317
+ # [Output Only] Manifests contained in this list response.
318
+ # Corresponds to the JSON property `manifests`
319
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Manifest>]
320
+ attr_accessor :manifests
321
+
322
+ # [Output Only] A token used to continue a truncated list request.
323
+ # Corresponds to the JSON property `nextPageToken`
324
+ # @return [String]
325
+ attr_accessor :next_page_token
326
+
327
+ def initialize(**args)
328
+ update!(**args)
329
+ end
330
+
331
+ # Update properties of this object
332
+ def update!(**args)
333
+ @manifests = args[:manifests] unless args[:manifests].nil?
334
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
335
+ end
336
+ end
337
+
338
+ # An Operation resource, used to manage asynchronous API requests.
339
+ class Operation
340
+ include Google::Apis::Core::Hashable
341
+
342
+ # [Output Only] A unique client ID generated by the server.
343
+ # Corresponds to the JSON property `clientOperationId`
344
+ # @return [String]
345
+ attr_accessor :client_operation_id
346
+
347
+ # [Output Only] Creation timestamp in RFC3339 text format.
348
+ # Corresponds to the JSON property `creationTimestamp`
349
+ # @return [String]
350
+ attr_accessor :creation_timestamp
351
+
352
+ # [Output Only] A textual description of the operation, which is set when the
353
+ # operation is created.
354
+ # Corresponds to the JSON property `description`
355
+ # @return [String]
356
+ attr_accessor :description
357
+
358
+ # [Output Only] The time that this operation was completed. This value is in
359
+ # RFC3339 text format.
360
+ # Corresponds to the JSON property `endTime`
361
+ # @return [String]
362
+ attr_accessor :end_time
363
+
364
+ # [Output Only] If errors are generated during processing of the operation, this
365
+ # field will be populated.
366
+ # Corresponds to the JSON property `error`
367
+ # @return [Google::Apis::DeploymentmanagerV2::Operation::Error]
368
+ attr_accessor :error
369
+
370
+ # [Output Only] If the operation fails, this field contains the HTTP error
371
+ # message that was returned, such as NOT FOUND.
372
+ # Corresponds to the JSON property `httpErrorMessage`
373
+ # @return [String]
374
+ attr_accessor :http_error_message
375
+
376
+ # [Output Only] If the operation fails, this field contains the HTTP error
377
+ # message that was returned. For example, a 404 means the resource was not found.
378
+ # Corresponds to the JSON property `httpErrorStatusCode`
379
+ # @return [Fixnum]
380
+ attr_accessor :http_error_status_code
381
+
382
+ # [Output Only] The unique identifier for the resource. This identifier is
383
+ # defined by the server.
384
+ # Corresponds to the JSON property `id`
385
+ # @return [String]
386
+ attr_accessor :id
387
+
388
+ # [Output Only] The time that this operation was requested. This value is in
389
+ # RFC3339 text format.
390
+ # Corresponds to the JSON property `insertTime`
391
+ # @return [String]
392
+ attr_accessor :insert_time
393
+
394
+ # [Output Only] Type of the resource. Always compute#operation for Operation
395
+ # resources.
396
+ # Corresponds to the JSON property `kind`
397
+ # @return [String]
398
+ attr_accessor :kind
399
+
400
+ # [Output Only] Name of the resource.
401
+ # Corresponds to the JSON property `name`
402
+ # @return [String]
403
+ attr_accessor :name
404
+
405
+ # [Output Only] The type of operation, which can be insert, update, or delete.
406
+ # Corresponds to the JSON property `operationType`
407
+ # @return [String]
408
+ attr_accessor :operation_type
409
+
410
+ # [Output Only] An optional progress indicator that ranges from 0 to 100. There
411
+ # is no requirement that this be linear or support any granularity of operations.
412
+ # This should not be used to guess at when the operation will be complete. This
413
+ # number should monotonically increase as the operation progresses.
414
+ # Corresponds to the JSON property `progress`
415
+ # @return [Fixnum]
416
+ attr_accessor :progress
417
+
418
+ # [Output Only] URL of the region where the operation resides. Only applicable
419
+ # for regional resources.
420
+ # Corresponds to the JSON property `region`
421
+ # @return [String]
422
+ attr_accessor :region
423
+
424
+ # [Output Only] Server-defined URL for the resource.
425
+ # Corresponds to the JSON property `selfLink`
426
+ # @return [String]
427
+ attr_accessor :self_link
428
+
429
+ # [Output Only] The time that this operation was started by the server. This
430
+ # value is in RFC3339 text format.
431
+ # Corresponds to the JSON property `startTime`
432
+ # @return [String]
433
+ attr_accessor :start_time
434
+
435
+ # [Output Only] The status of the operation, which can be one of the following:
436
+ # PENDING, RUNNING, or DONE.
437
+ # Corresponds to the JSON property `status`
438
+ # @return [String]
439
+ attr_accessor :status
440
+
441
+ # [Output Only] An optional textual description of the current status of the
442
+ # operation.
443
+ # Corresponds to the JSON property `statusMessage`
444
+ # @return [String]
445
+ attr_accessor :status_message
446
+
447
+ # [Output Only] The unique target ID, which identifies a specific incarnation of
448
+ # the target resource.
449
+ # Corresponds to the JSON property `targetId`
450
+ # @return [String]
451
+ attr_accessor :target_id
452
+
453
+ # [Output Only] The URL of the resource that the operation is modifying.
454
+ # Corresponds to the JSON property `targetLink`
455
+ # @return [String]
456
+ attr_accessor :target_link
457
+
458
+ # [Output Only] User who requested the operation, for example: user@example.com.
459
+ # Corresponds to the JSON property `user`
460
+ # @return [String]
461
+ attr_accessor :user
462
+
463
+ # [Output Only] If warning messages are generated during processing of the
464
+ # operation, this field will be populated.
465
+ # Corresponds to the JSON property `warnings`
466
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Warning>]
467
+ attr_accessor :warnings
468
+
469
+ # [Output Only] URL of the zone where the operation resides.
470
+ # Corresponds to the JSON property `zone`
471
+ # @return [String]
472
+ attr_accessor :zone
473
+
474
+ def initialize(**args)
475
+ update!(**args)
476
+ end
477
+
478
+ # Update properties of this object
479
+ def update!(**args)
480
+ @client_operation_id = args[:client_operation_id] unless args[:client_operation_id].nil?
481
+ @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
482
+ @description = args[:description] unless args[:description].nil?
483
+ @end_time = args[:end_time] unless args[:end_time].nil?
484
+ @error = args[:error] unless args[:error].nil?
485
+ @http_error_message = args[:http_error_message] unless args[:http_error_message].nil?
486
+ @http_error_status_code = args[:http_error_status_code] unless args[:http_error_status_code].nil?
487
+ @id = args[:id] unless args[:id].nil?
488
+ @insert_time = args[:insert_time] unless args[:insert_time].nil?
489
+ @kind = args[:kind] unless args[:kind].nil?
490
+ @name = args[:name] unless args[:name].nil?
491
+ @operation_type = args[:operation_type] unless args[:operation_type].nil?
492
+ @progress = args[:progress] unless args[:progress].nil?
493
+ @region = args[:region] unless args[:region].nil?
494
+ @self_link = args[:self_link] unless args[:self_link].nil?
495
+ @start_time = args[:start_time] unless args[:start_time].nil?
496
+ @status = args[:status] unless args[:status].nil?
497
+ @status_message = args[:status_message] unless args[:status_message].nil?
498
+ @target_id = args[:target_id] unless args[:target_id].nil?
499
+ @target_link = args[:target_link] unless args[:target_link].nil?
500
+ @user = args[:user] unless args[:user].nil?
501
+ @warnings = args[:warnings] unless args[:warnings].nil?
502
+ @zone = args[:zone] unless args[:zone].nil?
503
+ end
504
+
505
+ # [Output Only] If errors are generated during processing of the operation, this
506
+ # field will be populated.
507
+ class Error
508
+ include Google::Apis::Core::Hashable
509
+
510
+ # [Output Only] The array of errors encountered while processing this operation.
511
+ # Corresponds to the JSON property `errors`
512
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Error::Error>]
513
+ attr_accessor :errors
514
+
515
+ def initialize(**args)
516
+ update!(**args)
517
+ end
518
+
519
+ # Update properties of this object
520
+ def update!(**args)
521
+ @errors = args[:errors] unless args[:errors].nil?
522
+ end
523
+
524
+ #
525
+ class Error
526
+ include Google::Apis::Core::Hashable
527
+
528
+ # [Output Only] The error type identifier for this error.
529
+ # Corresponds to the JSON property `code`
530
+ # @return [String]
531
+ attr_accessor :code
532
+
533
+ # [Output Only] Indicates the field in the request which caused the error. This
534
+ # property is optional.
535
+ # Corresponds to the JSON property `location`
536
+ # @return [String]
537
+ attr_accessor :location
538
+
539
+ # [Output Only] An optional, human-readable error message.
540
+ # Corresponds to the JSON property `message`
541
+ # @return [String]
542
+ attr_accessor :message
543
+
544
+ def initialize(**args)
545
+ update!(**args)
546
+ end
547
+
548
+ # Update properties of this object
549
+ def update!(**args)
550
+ @code = args[:code] unless args[:code].nil?
551
+ @location = args[:location] unless args[:location].nil?
552
+ @message = args[:message] unless args[:message].nil?
553
+ end
554
+ end
555
+ end
556
+
557
+ #
558
+ class Warning
559
+ include Google::Apis::Core::Hashable
560
+
561
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
562
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
563
+ # Corresponds to the JSON property `code`
564
+ # @return [String]
565
+ attr_accessor :code
566
+
567
+ # [Output Only] Metadata about this warning in key: value format. For example:
568
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
569
+ # Corresponds to the JSON property `data`
570
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Warning::Datum>]
571
+ attr_accessor :data
572
+
573
+ # [Output Only] A human-readable description of the warning code.
574
+ # Corresponds to the JSON property `message`
575
+ # @return [String]
576
+ attr_accessor :message
577
+
578
+ def initialize(**args)
579
+ update!(**args)
580
+ end
581
+
582
+ # Update properties of this object
583
+ def update!(**args)
584
+ @code = args[:code] unless args[:code].nil?
585
+ @data = args[:data] unless args[:data].nil?
586
+ @message = args[:message] unless args[:message].nil?
587
+ end
588
+
589
+ #
590
+ class Datum
591
+ include Google::Apis::Core::Hashable
592
+
593
+ # [Output Only] A key that provides more detail on the warning being returned.
594
+ # For example, for warnings where there are no results in a list request for a
595
+ # particular zone, this key might be scope and the key value might be the zone
596
+ # name. Other examples might be a key indicating a deprecated resource, and a
597
+ # suggested replacement, or a warning about invalid network settings (for
598
+ # example, if an instance attempts to perform IP forwarding but is not enabled
599
+ # for IP forwarding).
600
+ # Corresponds to the JSON property `key`
601
+ # @return [String]
602
+ attr_accessor :key
603
+
604
+ # [Output Only] A warning data value corresponding to the key.
605
+ # Corresponds to the JSON property `value`
606
+ # @return [String]
607
+ attr_accessor :value
608
+
609
+ def initialize(**args)
610
+ update!(**args)
611
+ end
612
+
613
+ # Update properties of this object
614
+ def update!(**args)
615
+ @key = args[:key] unless args[:key].nil?
616
+ @value = args[:value] unless args[:value].nil?
617
+ end
618
+ end
619
+ end
620
+ end
621
+
622
+ # A response containing a partial list of operations and a page token used to
623
+ # build the next request if the request has been truncated.
624
+ class ListOperationsResponse
625
+ include Google::Apis::Core::Hashable
626
+
627
+ # [Output Only] A token used to continue a truncated list request.
628
+ # Corresponds to the JSON property `nextPageToken`
629
+ # @return [String]
630
+ attr_accessor :next_page_token
631
+
632
+ # [Output Only] Operations contained in this list response.
633
+ # Corresponds to the JSON property `operations`
634
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation>]
635
+ attr_accessor :operations
636
+
637
+ def initialize(**args)
638
+ update!(**args)
639
+ end
640
+
641
+ # Update properties of this object
642
+ def update!(**args)
643
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
644
+ @operations = args[:operations] unless args[:operations].nil?
645
+ end
646
+ end
647
+
648
+ #
649
+ class Resource
650
+ include Google::Apis::Core::Hashable
651
+
652
+ # [Output Only] The evaluated properties of the resource with references
653
+ # expanded. Returned as serialized YAML.
654
+ # Corresponds to the JSON property `finalProperties`
655
+ # @return [String]
656
+ attr_accessor :final_properties
657
+
658
+ # [Output Only] Unique identifier for the resource; defined by the server.
659
+ # Corresponds to the JSON property `id`
660
+ # @return [String]
661
+ attr_accessor :id
662
+
663
+ # [Output Only] Timestamp when the resource was created or acquired, in RFC3339
664
+ # text format .
665
+ # Corresponds to the JSON property `insertTime`
666
+ # @return [String]
667
+ attr_accessor :insert_time
668
+
669
+ # [Output Only] URL of the manifest representing the current configuration of
670
+ # this resource.
671
+ # Corresponds to the JSON property `manifest`
672
+ # @return [String]
673
+ attr_accessor :manifest
674
+
675
+ # [Output Only] The name of the resource as it appears in the YAML config.
676
+ # Corresponds to the JSON property `name`
677
+ # @return [String]
678
+ attr_accessor :name
679
+
680
+ # [Output Only] The current properties of the resource before any references
681
+ # have been filled in. Returned as serialized YAML.
682
+ # Corresponds to the JSON property `properties`
683
+ # @return [String]
684
+ attr_accessor :properties
685
+
686
+ # [Output Only] The type of the resource, for example compute.v1.instance, or
687
+ # replicaPools.v1beta2.instanceGroupManager.
688
+ # Corresponds to the JSON property `type`
689
+ # @return [String]
690
+ attr_accessor :type
691
+
692
+ #
693
+ # Corresponds to the JSON property `update`
694
+ # @return [Google::Apis::DeploymentmanagerV2::ResourceUpdate]
695
+ attr_accessor :update
696
+
697
+ # [Output Only] Timestamp when the resource was updated, in RFC3339 text format .
698
+ # Corresponds to the JSON property `updateTime`
699
+ # @return [String]
700
+ attr_accessor :update_time
701
+
702
+ # [Output Only] The URL of the actual resource.
703
+ # Corresponds to the JSON property `url`
704
+ # @return [String]
705
+ attr_accessor :url
706
+
707
+ # [Output Only] If warning messages are generated during processing of this
708
+ # resource, this field will be populated.
709
+ # Corresponds to the JSON property `warnings`
710
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Resource::Warning>]
711
+ attr_accessor :warnings
712
+
713
+ def initialize(**args)
714
+ update!(**args)
715
+ end
716
+
717
+ # Update properties of this object
718
+ def update!(**args)
719
+ @final_properties = args[:final_properties] unless args[:final_properties].nil?
720
+ @id = args[:id] unless args[:id].nil?
721
+ @insert_time = args[:insert_time] unless args[:insert_time].nil?
722
+ @manifest = args[:manifest] unless args[:manifest].nil?
723
+ @name = args[:name] unless args[:name].nil?
724
+ @properties = args[:properties] unless args[:properties].nil?
725
+ @type = args[:type] unless args[:type].nil?
726
+ @update = args[:update] unless args[:update].nil?
727
+ @update_time = args[:update_time] unless args[:update_time].nil?
728
+ @url = args[:url] unless args[:url].nil?
729
+ @warnings = args[:warnings] unless args[:warnings].nil?
730
+ end
731
+
732
+ #
733
+ class Warning
734
+ include Google::Apis::Core::Hashable
735
+
736
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
737
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
738
+ # Corresponds to the JSON property `code`
739
+ # @return [String]
740
+ attr_accessor :code
741
+
742
+ # [Output Only] Metadata about this warning in key: value format. For example:
743
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
744
+ # Corresponds to the JSON property `data`
745
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Resource::Warning::Datum>]
746
+ attr_accessor :data
747
+
748
+ # [Output Only] A human-readable description of the warning code.
749
+ # Corresponds to the JSON property `message`
750
+ # @return [String]
751
+ attr_accessor :message
752
+
753
+ def initialize(**args)
754
+ update!(**args)
755
+ end
756
+
757
+ # Update properties of this object
758
+ def update!(**args)
759
+ @code = args[:code] unless args[:code].nil?
760
+ @data = args[:data] unless args[:data].nil?
761
+ @message = args[:message] unless args[:message].nil?
762
+ end
763
+
764
+ #
765
+ class Datum
766
+ include Google::Apis::Core::Hashable
767
+
768
+ # [Output Only] A key that provides more detail on the warning being returned.
769
+ # For example, for warnings where there are no results in a list request for a
770
+ # particular zone, this key might be scope and the key value might be the zone
771
+ # name. Other examples might be a key indicating a deprecated resource, and a
772
+ # suggested replacement, or a warning about invalid network settings (for
773
+ # example, if an instance attempts to perform IP forwarding but is not enabled
774
+ # for IP forwarding).
775
+ # Corresponds to the JSON property `key`
776
+ # @return [String]
777
+ attr_accessor :key
778
+
779
+ # [Output Only] A warning data value corresponding to the key.
780
+ # Corresponds to the JSON property `value`
781
+ # @return [String]
782
+ attr_accessor :value
783
+
784
+ def initialize(**args)
785
+ update!(**args)
786
+ end
787
+
788
+ # Update properties of this object
789
+ def update!(**args)
790
+ @key = args[:key] unless args[:key].nil?
791
+ @value = args[:value] unless args[:value].nil?
792
+ end
793
+ end
794
+ end
795
+ end
796
+
797
+ #
798
+ class ResourceUpdate
799
+ include Google::Apis::Core::Hashable
800
+
801
+ # [Output Only] If errors are generated during update of the resource, this
802
+ # field will be populated.
803
+ # Corresponds to the JSON property `error`
804
+ # @return [Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error]
805
+ attr_accessor :error
806
+
807
+ # [Output Only] The expanded properties of the resource with reference values
808
+ # expanded. Returned as serialized YAML.
809
+ # Corresponds to the JSON property `finalProperties`
810
+ # @return [String]
811
+ attr_accessor :final_properties
812
+
813
+ # [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL.
814
+ # Corresponds to the JSON property `intent`
815
+ # @return [String]
816
+ attr_accessor :intent
817
+
818
+ # [Output Only] URL of the manifest representing the update configuration of
819
+ # this resource.
820
+ # Corresponds to the JSON property `manifest`
821
+ # @return [String]
822
+ attr_accessor :manifest
823
+
824
+ # [Output Only] The set of updated properties for this resource, before
825
+ # references are expanded. Returned as serialized YAML.
826
+ # Corresponds to the JSON property `properties`
827
+ # @return [String]
828
+ attr_accessor :properties
829
+
830
+ # [Output Only] The state of the resource.
831
+ # Corresponds to the JSON property `state`
832
+ # @return [String]
833
+ attr_accessor :state
834
+
835
+ # [Output Only] If warning messages are generated during processing of this
836
+ # resource, this field will be populated.
837
+ # Corresponds to the JSON property `warnings`
838
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning>]
839
+ attr_accessor :warnings
840
+
841
+ def initialize(**args)
842
+ update!(**args)
843
+ end
844
+
845
+ # Update properties of this object
846
+ def update!(**args)
847
+ @error = args[:error] unless args[:error].nil?
848
+ @final_properties = args[:final_properties] unless args[:final_properties].nil?
849
+ @intent = args[:intent] unless args[:intent].nil?
850
+ @manifest = args[:manifest] unless args[:manifest].nil?
851
+ @properties = args[:properties] unless args[:properties].nil?
852
+ @state = args[:state] unless args[:state].nil?
853
+ @warnings = args[:warnings] unless args[:warnings].nil?
854
+ end
855
+
856
+ # [Output Only] If errors are generated during update of the resource, this
857
+ # field will be populated.
858
+ class Error
859
+ include Google::Apis::Core::Hashable
860
+
861
+ # [Output Only] The array of errors encountered while processing this operation.
862
+ # Corresponds to the JSON property `errors`
863
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error::Error>]
864
+ attr_accessor :errors
865
+
866
+ def initialize(**args)
867
+ update!(**args)
868
+ end
869
+
870
+ # Update properties of this object
871
+ def update!(**args)
872
+ @errors = args[:errors] unless args[:errors].nil?
873
+ end
874
+
875
+ #
876
+ class Error
877
+ include Google::Apis::Core::Hashable
878
+
879
+ # [Output Only] The error type identifier for this error.
880
+ # Corresponds to the JSON property `code`
881
+ # @return [String]
882
+ attr_accessor :code
883
+
884
+ # [Output Only] Indicates the field in the request which caused the error. This
885
+ # property is optional.
886
+ # Corresponds to the JSON property `location`
887
+ # @return [String]
888
+ attr_accessor :location
889
+
890
+ # [Output Only] An optional, human-readable error message.
891
+ # Corresponds to the JSON property `message`
892
+ # @return [String]
893
+ attr_accessor :message
894
+
895
+ def initialize(**args)
896
+ update!(**args)
897
+ end
898
+
899
+ # Update properties of this object
900
+ def update!(**args)
901
+ @code = args[:code] unless args[:code].nil?
902
+ @location = args[:location] unless args[:location].nil?
903
+ @message = args[:message] unless args[:message].nil?
904
+ end
905
+ end
906
+ end
907
+
908
+ #
909
+ class Warning
910
+ include Google::Apis::Core::Hashable
911
+
912
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
913
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
914
+ # Corresponds to the JSON property `code`
915
+ # @return [String]
916
+ attr_accessor :code
917
+
918
+ # [Output Only] Metadata about this warning in key: value format. For example:
919
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
920
+ # Corresponds to the JSON property `data`
921
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning::Datum>]
922
+ attr_accessor :data
923
+
924
+ # [Output Only] A human-readable description of the warning code.
925
+ # Corresponds to the JSON property `message`
926
+ # @return [String]
927
+ attr_accessor :message
928
+
929
+ def initialize(**args)
930
+ update!(**args)
931
+ end
932
+
933
+ # Update properties of this object
934
+ def update!(**args)
935
+ @code = args[:code] unless args[:code].nil?
936
+ @data = args[:data] unless args[:data].nil?
937
+ @message = args[:message] unless args[:message].nil?
938
+ end
939
+
940
+ #
941
+ class Datum
942
+ include Google::Apis::Core::Hashable
943
+
944
+ # [Output Only] A key that provides more detail on the warning being returned.
945
+ # For example, for warnings where there are no results in a list request for a
946
+ # particular zone, this key might be scope and the key value might be the zone
947
+ # name. Other examples might be a key indicating a deprecated resource, and a
948
+ # suggested replacement, or a warning about invalid network settings (for
949
+ # example, if an instance attempts to perform IP forwarding but is not enabled
950
+ # for IP forwarding).
951
+ # Corresponds to the JSON property `key`
952
+ # @return [String]
953
+ attr_accessor :key
954
+
955
+ # [Output Only] A warning data value corresponding to the key.
956
+ # Corresponds to the JSON property `value`
957
+ # @return [String]
958
+ attr_accessor :value
959
+
960
+ def initialize(**args)
961
+ update!(**args)
962
+ end
963
+
964
+ # Update properties of this object
965
+ def update!(**args)
966
+ @key = args[:key] unless args[:key].nil?
967
+ @value = args[:value] unless args[:value].nil?
968
+ end
969
+ end
970
+ end
971
+ end
972
+
973
+ # A response containing a partial list of resources and a page token used to
974
+ # build the next request if the request has been truncated.
975
+ class ListResourcesResponse
976
+ include Google::Apis::Core::Hashable
977
+
978
+ # A token used to continue a truncated list request.
979
+ # Corresponds to the JSON property `nextPageToken`
980
+ # @return [String]
981
+ attr_accessor :next_page_token
982
+
983
+ # Resources contained in this list response.
984
+ # Corresponds to the JSON property `resources`
985
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Resource>]
986
+ attr_accessor :resources
987
+
988
+ def initialize(**args)
989
+ update!(**args)
990
+ end
991
+
992
+ # Update properties of this object
993
+ def update!(**args)
994
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
995
+ @resources = args[:resources] unless args[:resources].nil?
996
+ end
997
+ end
998
+
999
+ #
1000
+ class TargetConfiguration
1001
+ include Google::Apis::Core::Hashable
1002
+
1003
+ #
1004
+ # Corresponds to the JSON property `config`
1005
+ # @return [Google::Apis::DeploymentmanagerV2::ConfigFile]
1006
+ attr_accessor :config
1007
+
1008
+ # Specifies any files to import for this configuration. This can be used to
1009
+ # import templates or other files. For example, you might import a text file in
1010
+ # order to use the file in a template.
1011
+ # Corresponds to the JSON property `imports`
1012
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ImportFile>]
1013
+ attr_accessor :imports
1014
+
1015
+ def initialize(**args)
1016
+ update!(**args)
1017
+ end
1018
+
1019
+ # Update properties of this object
1020
+ def update!(**args)
1021
+ @config = args[:config] unless args[:config].nil?
1022
+ @imports = args[:imports] unless args[:imports].nil?
1023
+ end
1024
+ end
1025
+
1026
+ # A resource type supported by Deployment Manager.
1027
+ class Type
1028
+ include Google::Apis::Core::Hashable
1029
+
1030
+ # [Output Only] Unique identifier for the resource; defined by the server.
1031
+ # Corresponds to the JSON property `id`
1032
+ # @return [String]
1033
+ attr_accessor :id
1034
+
1035
+ # [Output Only] Timestamp when the type was created, in RFC3339 text format.
1036
+ # Corresponds to the JSON property `insertTime`
1037
+ # @return [String]
1038
+ attr_accessor :insert_time
1039
+
1040
+ # Name of the type.
1041
+ # Corresponds to the JSON property `name`
1042
+ # @return [String]
1043
+ attr_accessor :name
1044
+
1045
+ # [Output Only] Self link for the type.
1046
+ # Corresponds to the JSON property `selfLink`
1047
+ # @return [String]
1048
+ attr_accessor :self_link
1049
+
1050
+ def initialize(**args)
1051
+ update!(**args)
1052
+ end
1053
+
1054
+ # Update properties of this object
1055
+ def update!(**args)
1056
+ @id = args[:id] unless args[:id].nil?
1057
+ @insert_time = args[:insert_time] unless args[:insert_time].nil?
1058
+ @name = args[:name] unless args[:name].nil?
1059
+ @self_link = args[:self_link] unless args[:self_link].nil?
1060
+ end
1061
+ end
1062
+
1063
+ # A response that returns all Types supported by Deployment Manager
1064
+ class ListTypesResponse
1065
+ include Google::Apis::Core::Hashable
1066
+
1067
+ # A token used to continue a truncated list request.
1068
+ # Corresponds to the JSON property `nextPageToken`
1069
+ # @return [String]
1070
+ attr_accessor :next_page_token
1071
+
1072
+ # [Output Only] A list of resource types supported by Deployment Manager.
1073
+ # Corresponds to the JSON property `types`
1074
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Type>]
1075
+ attr_accessor :types
1076
+
1077
+ def initialize(**args)
1078
+ update!(**args)
1079
+ end
1080
+
1081
+ # Update properties of this object
1082
+ def update!(**args)
1083
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1084
+ @types = args[:types] unless args[:types].nil?
1085
+ end
1086
+ end
1087
+ end
1088
+ end
1089
+ end