google-api-client 0.13.2 → 0.13.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -0,0 +1,1883 @@
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/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module DeploymentmanagerAlpha
23
+ # Google Cloud Deployment Manager Alpha API
24
+ #
25
+ # The Deployment Manager API allows users to declaratively configure, deploy and
26
+ # run complex solutions on the Google Cloud Platform.
27
+ #
28
+ # @example
29
+ # require 'google/apis/deploymentmanager_alpha'
30
+ #
31
+ # Deploymentmanager = Google::Apis::DeploymentmanagerAlpha # Alias the module
32
+ # service = Deploymentmanager::DeploymentManagerAlphaService.new
33
+ #
34
+ # @see https://cloud.google.com/deployment-manager/
35
+ class DeploymentManagerAlphaService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ # Overrides userIp if both are provided.
45
+ attr_accessor :quota_user
46
+
47
+ # @return [String]
48
+ # IP address of the site where the request originates. Use this if you want to
49
+ # enforce per-user limits.
50
+ attr_accessor :user_ip
51
+
52
+ def initialize
53
+ super('https://www.googleapis.com/', 'deploymentmanager/alpha/projects/')
54
+ @batch_path = 'batch'
55
+ end
56
+
57
+ # Deletes a composite type.
58
+ # @param [String] project
59
+ # The project ID for this request.
60
+ # @param [String] composite_type
61
+ # The name of the type for this request.
62
+ # @param [String] fields
63
+ # Selector specifying which fields to include in a partial response.
64
+ # @param [String] quota_user
65
+ # Available to use for quota purposes for server-side applications. Can be any
66
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67
+ # Overrides userIp if both are provided.
68
+ # @param [String] user_ip
69
+ # IP address of the site where the request originates. Use this if you want to
70
+ # enforce per-user limits.
71
+ # @param [Google::Apis::RequestOptions] options
72
+ # Request-specific options
73
+ #
74
+ # @yield [result, err] Result & error if block supplied
75
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
76
+ # @yieldparam err [StandardError] error object if request failed
77
+ #
78
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
79
+ #
80
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
81
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
82
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
83
+ def delete_composite_type(project, composite_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
84
+ command = make_simple_command(:delete, '{project}/global/compositeTypes/{compositeType}', options)
85
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
86
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
87
+ command.params['project'] = project unless project.nil?
88
+ command.params['compositeType'] = composite_type unless composite_type.nil?
89
+ command.query['fields'] = fields unless fields.nil?
90
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
91
+ command.query['userIp'] = user_ip unless user_ip.nil?
92
+ execute_or_queue_command(command, &block)
93
+ end
94
+
95
+ # Gets information about a specific composite type.
96
+ # @param [String] project
97
+ # The project ID for this request.
98
+ # @param [String] composite_type
99
+ # The name of the composite type for this request.
100
+ # @param [String] fields
101
+ # Selector specifying which fields to include in a partial response.
102
+ # @param [String] quota_user
103
+ # Available to use for quota purposes for server-side applications. Can be any
104
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
105
+ # Overrides userIp if both are provided.
106
+ # @param [String] user_ip
107
+ # IP address of the site where the request originates. Use this if you want to
108
+ # enforce per-user limits.
109
+ # @param [Google::Apis::RequestOptions] options
110
+ # Request-specific options
111
+ #
112
+ # @yield [result, err] Result & error if block supplied
113
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::CompositeType] parsed result object
114
+ # @yieldparam err [StandardError] error object if request failed
115
+ #
116
+ # @return [Google::Apis::DeploymentmanagerAlpha::CompositeType]
117
+ #
118
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
119
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
120
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
121
+ def get_composite_type(project, composite_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
122
+ command = make_simple_command(:get, '{project}/global/compositeTypes/{compositeType}', options)
123
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::CompositeType::Representation
124
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::CompositeType
125
+ command.params['project'] = project unless project.nil?
126
+ command.params['compositeType'] = composite_type unless composite_type.nil?
127
+ command.query['fields'] = fields unless fields.nil?
128
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
129
+ command.query['userIp'] = user_ip unless user_ip.nil?
130
+ execute_or_queue_command(command, &block)
131
+ end
132
+
133
+ # Creates a composite type.
134
+ # @param [String] project
135
+ # The project ID for this request.
136
+ # @param [Google::Apis::DeploymentmanagerAlpha::CompositeType] composite_type_object
137
+ # @param [String] fields
138
+ # Selector specifying which fields to include in a partial response.
139
+ # @param [String] quota_user
140
+ # Available to use for quota purposes for server-side applications. Can be any
141
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
142
+ # Overrides userIp if both are provided.
143
+ # @param [String] user_ip
144
+ # IP address of the site where the request originates. Use this if you want to
145
+ # enforce per-user limits.
146
+ # @param [Google::Apis::RequestOptions] options
147
+ # Request-specific options
148
+ #
149
+ # @yield [result, err] Result & error if block supplied
150
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
151
+ # @yieldparam err [StandardError] error object if request failed
152
+ #
153
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
154
+ #
155
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
156
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
157
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
158
+ def insert_composite_type(project, composite_type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
159
+ command = make_simple_command(:post, '{project}/global/compositeTypes', options)
160
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::CompositeType::Representation
161
+ command.request_object = composite_type_object
162
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
163
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
164
+ command.params['project'] = project unless project.nil?
165
+ command.query['fields'] = fields unless fields.nil?
166
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
167
+ command.query['userIp'] = user_ip unless user_ip.nil?
168
+ execute_or_queue_command(command, &block)
169
+ end
170
+
171
+ # Lists all composite types for Deployment Manager.
172
+ # @param [String] project
173
+ # The project ID for this request.
174
+ # @param [String] filter
175
+ # Sets a filter `expression` for filtering listed resources. Your `expression`
176
+ # must be in the format: field_name comparison_string literal_string.
177
+ # The field_name is the name of the field you want to compare. Only atomic field
178
+ # types are supported (string, number, boolean). The comparison_string must be
179
+ # either eq (equals) or ne (not equals). The literal_string is the string value
180
+ # to filter to. The literal value must be valid for the type of field you are
181
+ # filtering by (string, number, boolean). For string fields, the literal value
182
+ # is interpreted as a regular expression using RE2 syntax. The literal value
183
+ # must match the entire field.
184
+ # For example, to filter for instances that do not have a name of example-
185
+ # instance, you would use name ne example-instance.
186
+ # You can filter on nested fields. For example, you could filter on instances
187
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
188
+ # nested fields to take advantage of labels to organize and search for results
189
+ # based on label values.
190
+ # To filter on multiple expressions, provide each separate expression within
191
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
192
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
193
+ # resources must match all expressions to pass the filters.
194
+ # @param [Fixnum] max_results
195
+ # The maximum number of results per page that should be returned. If the number
196
+ # of available results is larger than maxResults, Compute Engine returns a
197
+ # nextPageToken that can be used to get the next page of results in subsequent
198
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
199
+ # @param [String] order_by
200
+ # Sorts list results by a certain order. By default, results are returned in
201
+ # alphanumerical order based on the resource name.
202
+ # You can also sort results in descending order based on the creation timestamp
203
+ # using orderBy="creationTimestamp desc". This sorts results based on the
204
+ # creationTimestamp field in reverse chronological order (newest result first).
205
+ # Use this to sort resources like operations so that the newest operation is
206
+ # returned first.
207
+ # Currently, only sorting by name or creationTimestamp desc is supported.
208
+ # @param [String] page_token
209
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
210
+ # a previous list request to get the next page of results.
211
+ # @param [String] fields
212
+ # Selector specifying which fields to include in a partial response.
213
+ # @param [String] quota_user
214
+ # Available to use for quota purposes for server-side applications. Can be any
215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
216
+ # Overrides userIp if both are provided.
217
+ # @param [String] user_ip
218
+ # IP address of the site where the request originates. Use this if you want to
219
+ # enforce per-user limits.
220
+ # @param [Google::Apis::RequestOptions] options
221
+ # Request-specific options
222
+ #
223
+ # @yield [result, err] Result & error if block supplied
224
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::CompositeTypesListResponse] parsed result object
225
+ # @yieldparam err [StandardError] error object if request failed
226
+ #
227
+ # @return [Google::Apis::DeploymentmanagerAlpha::CompositeTypesListResponse]
228
+ #
229
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
230
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
231
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
232
+ def list_composite_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
233
+ command = make_simple_command(:get, '{project}/global/compositeTypes', options)
234
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::CompositeTypesListResponse::Representation
235
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::CompositeTypesListResponse
236
+ command.params['project'] = project unless project.nil?
237
+ command.query['filter'] = filter unless filter.nil?
238
+ command.query['maxResults'] = max_results unless max_results.nil?
239
+ command.query['orderBy'] = order_by unless order_by.nil?
240
+ command.query['pageToken'] = page_token unless page_token.nil?
241
+ command.query['fields'] = fields unless fields.nil?
242
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
243
+ command.query['userIp'] = user_ip unless user_ip.nil?
244
+ execute_or_queue_command(command, &block)
245
+ end
246
+
247
+ # Updates a composite type. This method supports patch semantics.
248
+ # @param [String] project
249
+ # The project ID for this request.
250
+ # @param [String] composite_type
251
+ # The name of the composite type for this request.
252
+ # @param [Google::Apis::DeploymentmanagerAlpha::CompositeType] composite_type_object
253
+ # @param [String] fields
254
+ # Selector specifying which fields to include in a partial response.
255
+ # @param [String] quota_user
256
+ # Available to use for quota purposes for server-side applications. Can be any
257
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
258
+ # Overrides userIp if both are provided.
259
+ # @param [String] user_ip
260
+ # IP address of the site where the request originates. Use this if you want to
261
+ # enforce per-user limits.
262
+ # @param [Google::Apis::RequestOptions] options
263
+ # Request-specific options
264
+ #
265
+ # @yield [result, err] Result & error if block supplied
266
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
267
+ # @yieldparam err [StandardError] error object if request failed
268
+ #
269
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
270
+ #
271
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
272
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
273
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
274
+ def patch_composite_type(project, composite_type, composite_type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
275
+ command = make_simple_command(:patch, '{project}/global/compositeTypes/{compositeType}', options)
276
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::CompositeType::Representation
277
+ command.request_object = composite_type_object
278
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
279
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
280
+ command.params['project'] = project unless project.nil?
281
+ command.params['compositeType'] = composite_type unless composite_type.nil?
282
+ command.query['fields'] = fields unless fields.nil?
283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
284
+ command.query['userIp'] = user_ip unless user_ip.nil?
285
+ execute_or_queue_command(command, &block)
286
+ end
287
+
288
+ # Updates a composite type.
289
+ # @param [String] project
290
+ # The project ID for this request.
291
+ # @param [String] composite_type
292
+ # The name of the composite type for this request.
293
+ # @param [Google::Apis::DeploymentmanagerAlpha::CompositeType] composite_type_object
294
+ # @param [String] fields
295
+ # Selector specifying which fields to include in a partial response.
296
+ # @param [String] quota_user
297
+ # Available to use for quota purposes for server-side applications. Can be any
298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
299
+ # Overrides userIp if both are provided.
300
+ # @param [String] user_ip
301
+ # IP address of the site where the request originates. Use this if you want to
302
+ # enforce per-user limits.
303
+ # @param [Google::Apis::RequestOptions] options
304
+ # Request-specific options
305
+ #
306
+ # @yield [result, err] Result & error if block supplied
307
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
308
+ # @yieldparam err [StandardError] error object if request failed
309
+ #
310
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
311
+ #
312
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
313
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
314
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
315
+ def update_composite_type(project, composite_type, composite_type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
316
+ command = make_simple_command(:put, '{project}/global/compositeTypes/{compositeType}', options)
317
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::CompositeType::Representation
318
+ command.request_object = composite_type_object
319
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
320
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
321
+ command.params['project'] = project unless project.nil?
322
+ command.params['compositeType'] = composite_type unless composite_type.nil?
323
+ command.query['fields'] = fields unless fields.nil?
324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
325
+ command.query['userIp'] = user_ip unless user_ip.nil?
326
+ execute_or_queue_command(command, &block)
327
+ end
328
+
329
+ # Cancels and removes the preview currently associated with the deployment.
330
+ # @param [String] project
331
+ # The project ID for this request.
332
+ # @param [String] deployment
333
+ # The name of the deployment for this request.
334
+ # @param [Google::Apis::DeploymentmanagerAlpha::DeploymentsCancelPreviewRequest] deployments_cancel_preview_request_object
335
+ # @param [String] fields
336
+ # Selector specifying which fields to include in a partial response.
337
+ # @param [String] quota_user
338
+ # Available to use for quota purposes for server-side applications. Can be any
339
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
340
+ # Overrides userIp if both are provided.
341
+ # @param [String] user_ip
342
+ # IP address of the site where the request originates. Use this if you want to
343
+ # enforce per-user limits.
344
+ # @param [Google::Apis::RequestOptions] options
345
+ # Request-specific options
346
+ #
347
+ # @yield [result, err] Result & error if block supplied
348
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
349
+ # @yieldparam err [StandardError] error object if request failed
350
+ #
351
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
352
+ #
353
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
354
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
355
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
356
+ def cancel_deployment_preview(project, deployment, deployments_cancel_preview_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
357
+ command = make_simple_command(:post, '{project}/global/deployments/{deployment}/cancelPreview', options)
358
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::DeploymentsCancelPreviewRequest::Representation
359
+ command.request_object = deployments_cancel_preview_request_object
360
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
361
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
362
+ command.params['project'] = project unless project.nil?
363
+ command.params['deployment'] = deployment unless deployment.nil?
364
+ command.query['fields'] = fields unless fields.nil?
365
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
366
+ command.query['userIp'] = user_ip unless user_ip.nil?
367
+ execute_or_queue_command(command, &block)
368
+ end
369
+
370
+ # Deletes a deployment and all of the resources in the deployment.
371
+ # @param [String] project
372
+ # The project ID for this request.
373
+ # @param [String] deployment
374
+ # The name of the deployment for this request.
375
+ # @param [String] delete_policy
376
+ # Sets the policy to use for deleting resources.
377
+ # @param [String] fields
378
+ # Selector specifying which fields to include in a partial response.
379
+ # @param [String] quota_user
380
+ # Available to use for quota purposes for server-side applications. Can be any
381
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
382
+ # Overrides userIp if both are provided.
383
+ # @param [String] user_ip
384
+ # IP address of the site where the request originates. Use this if you want to
385
+ # enforce per-user limits.
386
+ # @param [Google::Apis::RequestOptions] options
387
+ # Request-specific options
388
+ #
389
+ # @yield [result, err] Result & error if block supplied
390
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
391
+ # @yieldparam err [StandardError] error object if request failed
392
+ #
393
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
394
+ #
395
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
396
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
397
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
398
+ def delete_deployment(project, deployment, delete_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
399
+ command = make_simple_command(:delete, '{project}/global/deployments/{deployment}', options)
400
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
401
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
402
+ command.params['project'] = project unless project.nil?
403
+ command.params['deployment'] = deployment unless deployment.nil?
404
+ command.query['deletePolicy'] = delete_policy unless delete_policy.nil?
405
+ command.query['fields'] = fields unless fields.nil?
406
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
407
+ command.query['userIp'] = user_ip unless user_ip.nil?
408
+ execute_or_queue_command(command, &block)
409
+ end
410
+
411
+ # Gets information about a specific deployment.
412
+ # @param [String] project
413
+ # The project ID for this request.
414
+ # @param [String] deployment
415
+ # The name of the deployment for this request.
416
+ # @param [String] fields
417
+ # Selector specifying which fields to include in a partial response.
418
+ # @param [String] quota_user
419
+ # Available to use for quota purposes for server-side applications. Can be any
420
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
421
+ # Overrides userIp if both are provided.
422
+ # @param [String] user_ip
423
+ # IP address of the site where the request originates. Use this if you want to
424
+ # enforce per-user limits.
425
+ # @param [Google::Apis::RequestOptions] options
426
+ # Request-specific options
427
+ #
428
+ # @yield [result, err] Result & error if block supplied
429
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Deployment] parsed result object
430
+ # @yieldparam err [StandardError] error object if request failed
431
+ #
432
+ # @return [Google::Apis::DeploymentmanagerAlpha::Deployment]
433
+ #
434
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
435
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
436
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
437
+ def get_deployment(project, deployment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
438
+ command = make_simple_command(:get, '{project}/global/deployments/{deployment}', options)
439
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Deployment::Representation
440
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Deployment
441
+ command.params['project'] = project unless project.nil?
442
+ command.params['deployment'] = deployment unless deployment.nil?
443
+ command.query['fields'] = fields unless fields.nil?
444
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
445
+ command.query['userIp'] = user_ip unless user_ip.nil?
446
+ execute_or_queue_command(command, &block)
447
+ end
448
+
449
+ # Gets the access control policy for a resource. May be empty if no such policy
450
+ # or resource exists.
451
+ # @param [String] project
452
+ # Project ID for this request.
453
+ # @param [String] resource
454
+ # Name of the resource for this request.
455
+ # @param [String] fields
456
+ # Selector specifying which fields to include in a partial response.
457
+ # @param [String] quota_user
458
+ # Available to use for quota purposes for server-side applications. Can be any
459
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
460
+ # Overrides userIp if both are provided.
461
+ # @param [String] user_ip
462
+ # IP address of the site where the request originates. Use this if you want to
463
+ # enforce per-user limits.
464
+ # @param [Google::Apis::RequestOptions] options
465
+ # Request-specific options
466
+ #
467
+ # @yield [result, err] Result & error if block supplied
468
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Policy] parsed result object
469
+ # @yieldparam err [StandardError] error object if request failed
470
+ #
471
+ # @return [Google::Apis::DeploymentmanagerAlpha::Policy]
472
+ #
473
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
474
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
475
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
476
+ def get_deployment_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
477
+ command = make_simple_command(:get, '{project}/global/deployments/{resource}/getIamPolicy', options)
478
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Policy::Representation
479
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Policy
480
+ command.params['project'] = project unless project.nil?
481
+ command.params['resource'] = resource unless resource.nil?
482
+ command.query['fields'] = fields unless fields.nil?
483
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
484
+ command.query['userIp'] = user_ip unless user_ip.nil?
485
+ execute_or_queue_command(command, &block)
486
+ end
487
+
488
+ # Creates a deployment and all of the resources described by the deployment
489
+ # manifest.
490
+ # @param [String] project
491
+ # The project ID for this request.
492
+ # @param [Google::Apis::DeploymentmanagerAlpha::Deployment] deployment_object
493
+ # @param [Boolean] preview
494
+ # If set to true, creates a deployment and creates "shell" resources but does
495
+ # not actually instantiate these resources. This allows you to preview what your
496
+ # deployment looks like. After previewing a deployment, you can deploy your
497
+ # resources by making a request with the update() method or you can use the
498
+ # cancelPreview() method to cancel the preview altogether. Note that the
499
+ # deployment will still exist after you cancel the preview and you must
500
+ # separately delete this deployment if you want to remove it.
501
+ # @param [String] fields
502
+ # Selector specifying which fields to include in a partial response.
503
+ # @param [String] quota_user
504
+ # Available to use for quota purposes for server-side applications. Can be any
505
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
506
+ # Overrides userIp if both are provided.
507
+ # @param [String] user_ip
508
+ # IP address of the site where the request originates. Use this if you want to
509
+ # enforce per-user limits.
510
+ # @param [Google::Apis::RequestOptions] options
511
+ # Request-specific options
512
+ #
513
+ # @yield [result, err] Result & error if block supplied
514
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
515
+ # @yieldparam err [StandardError] error object if request failed
516
+ #
517
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
518
+ #
519
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
520
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
521
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
522
+ def insert_deployment(project, deployment_object = nil, preview: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
523
+ command = make_simple_command(:post, '{project}/global/deployments', options)
524
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::Deployment::Representation
525
+ command.request_object = deployment_object
526
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
527
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
528
+ command.params['project'] = project unless project.nil?
529
+ command.query['preview'] = preview unless preview.nil?
530
+ command.query['fields'] = fields unless fields.nil?
531
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
532
+ command.query['userIp'] = user_ip unless user_ip.nil?
533
+ execute_or_queue_command(command, &block)
534
+ end
535
+
536
+ # Lists all deployments for a given project.
537
+ # @param [String] project
538
+ # The project ID for this request.
539
+ # @param [String] filter
540
+ # Sets a filter `expression` for filtering listed resources. Your `expression`
541
+ # must be in the format: field_name comparison_string literal_string.
542
+ # The field_name is the name of the field you want to compare. Only atomic field
543
+ # types are supported (string, number, boolean). The comparison_string must be
544
+ # either eq (equals) or ne (not equals). The literal_string is the string value
545
+ # to filter to. The literal value must be valid for the type of field you are
546
+ # filtering by (string, number, boolean). For string fields, the literal value
547
+ # is interpreted as a regular expression using RE2 syntax. The literal value
548
+ # must match the entire field.
549
+ # For example, to filter for instances that do not have a name of example-
550
+ # instance, you would use name ne example-instance.
551
+ # You can filter on nested fields. For example, you could filter on instances
552
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
553
+ # nested fields to take advantage of labels to organize and search for results
554
+ # based on label values.
555
+ # To filter on multiple expressions, provide each separate expression within
556
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
557
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
558
+ # resources must match all expressions to pass the filters.
559
+ # @param [Fixnum] max_results
560
+ # The maximum number of results per page that should be returned. If the number
561
+ # of available results is larger than maxResults, Compute Engine returns a
562
+ # nextPageToken that can be used to get the next page of results in subsequent
563
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
564
+ # @param [String] order_by
565
+ # Sorts list results by a certain order. By default, results are returned in
566
+ # alphanumerical order based on the resource name.
567
+ # You can also sort results in descending order based on the creation timestamp
568
+ # using orderBy="creationTimestamp desc". This sorts results based on the
569
+ # creationTimestamp field in reverse chronological order (newest result first).
570
+ # Use this to sort resources like operations so that the newest operation is
571
+ # returned first.
572
+ # Currently, only sorting by name or creationTimestamp desc is supported.
573
+ # @param [String] page_token
574
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
575
+ # a previous list request to get the next page of results.
576
+ # @param [String] fields
577
+ # Selector specifying which fields to include in a partial response.
578
+ # @param [String] quota_user
579
+ # Available to use for quota purposes for server-side applications. Can be any
580
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
581
+ # Overrides userIp if both are provided.
582
+ # @param [String] user_ip
583
+ # IP address of the site where the request originates. Use this if you want to
584
+ # enforce per-user limits.
585
+ # @param [Google::Apis::RequestOptions] options
586
+ # Request-specific options
587
+ #
588
+ # @yield [result, err] Result & error if block supplied
589
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::DeploymentsListResponse] parsed result object
590
+ # @yieldparam err [StandardError] error object if request failed
591
+ #
592
+ # @return [Google::Apis::DeploymentmanagerAlpha::DeploymentsListResponse]
593
+ #
594
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
595
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
596
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
597
+ def list_deployments(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
598
+ command = make_simple_command(:get, '{project}/global/deployments', options)
599
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::DeploymentsListResponse::Representation
600
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::DeploymentsListResponse
601
+ command.params['project'] = project unless project.nil?
602
+ command.query['filter'] = filter unless filter.nil?
603
+ command.query['maxResults'] = max_results unless max_results.nil?
604
+ command.query['orderBy'] = order_by unless order_by.nil?
605
+ command.query['pageToken'] = page_token unless page_token.nil?
606
+ command.query['fields'] = fields unless fields.nil?
607
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
608
+ command.query['userIp'] = user_ip unless user_ip.nil?
609
+ execute_or_queue_command(command, &block)
610
+ end
611
+
612
+ # Updates a deployment and all of the resources described by the deployment
613
+ # manifest. This method supports patch semantics.
614
+ # @param [String] project
615
+ # The project ID for this request.
616
+ # @param [String] deployment
617
+ # The name of the deployment for this request.
618
+ # @param [Google::Apis::DeploymentmanagerAlpha::Deployment] deployment_object
619
+ # @param [String] create_policy
620
+ # Sets the policy to use for creating new resources.
621
+ # @param [String] delete_policy
622
+ # Sets the policy to use for deleting resources.
623
+ # @param [Boolean] preview
624
+ # If set to true, updates the deployment and creates and updates the "shell"
625
+ # resources but does not actually alter or instantiate these resources. This
626
+ # allows you to preview what your deployment will look like. You can use this
627
+ # intent to preview how an update would affect your deployment. You must provide
628
+ # a target.config with a configuration if this is set to true. After previewing
629
+ # a deployment, you can deploy your resources by making a request with the
630
+ # update() or you can cancelPreview() to remove the preview altogether. Note
631
+ # that the deployment will still exist after you cancel the preview and you must
632
+ # separately delete this deployment if you want to remove it.
633
+ # @param [String] fields
634
+ # Selector specifying which fields to include in a partial response.
635
+ # @param [String] quota_user
636
+ # Available to use for quota purposes for server-side applications. Can be any
637
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
638
+ # Overrides userIp if both are provided.
639
+ # @param [String] user_ip
640
+ # IP address of the site where the request originates. Use this if you want to
641
+ # enforce per-user limits.
642
+ # @param [Google::Apis::RequestOptions] options
643
+ # Request-specific options
644
+ #
645
+ # @yield [result, err] Result & error if block supplied
646
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
647
+ # @yieldparam err [StandardError] error object if request failed
648
+ #
649
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
650
+ #
651
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
652
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
653
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
654
+ def patch_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, preview: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
655
+ command = make_simple_command(:patch, '{project}/global/deployments/{deployment}', options)
656
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::Deployment::Representation
657
+ command.request_object = deployment_object
658
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
659
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
660
+ command.params['project'] = project unless project.nil?
661
+ command.params['deployment'] = deployment unless deployment.nil?
662
+ command.query['createPolicy'] = create_policy unless create_policy.nil?
663
+ command.query['deletePolicy'] = delete_policy unless delete_policy.nil?
664
+ command.query['preview'] = preview unless preview.nil?
665
+ command.query['fields'] = fields unless fields.nil?
666
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
667
+ command.query['userIp'] = user_ip unless user_ip.nil?
668
+ execute_or_queue_command(command, &block)
669
+ end
670
+
671
+ # Sets the access control policy on the specified resource. Replaces any
672
+ # existing policy.
673
+ # @param [String] project
674
+ # Project ID for this request.
675
+ # @param [String] resource
676
+ # Name of the resource for this request.
677
+ # @param [Google::Apis::DeploymentmanagerAlpha::Policy] policy_object
678
+ # @param [String] fields
679
+ # Selector specifying which fields to include in a partial response.
680
+ # @param [String] quota_user
681
+ # Available to use for quota purposes for server-side applications. Can be any
682
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
683
+ # Overrides userIp if both are provided.
684
+ # @param [String] user_ip
685
+ # IP address of the site where the request originates. Use this if you want to
686
+ # enforce per-user limits.
687
+ # @param [Google::Apis::RequestOptions] options
688
+ # Request-specific options
689
+ #
690
+ # @yield [result, err] Result & error if block supplied
691
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Policy] parsed result object
692
+ # @yieldparam err [StandardError] error object if request failed
693
+ #
694
+ # @return [Google::Apis::DeploymentmanagerAlpha::Policy]
695
+ #
696
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
697
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
698
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
699
+ def set_deployment_iam_policy(project, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
700
+ command = make_simple_command(:post, '{project}/global/deployments/{resource}/setIamPolicy', options)
701
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::Policy::Representation
702
+ command.request_object = policy_object
703
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Policy::Representation
704
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Policy
705
+ command.params['project'] = project unless project.nil?
706
+ command.params['resource'] = resource unless resource.nil?
707
+ command.query['fields'] = fields unless fields.nil?
708
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
709
+ command.query['userIp'] = user_ip unless user_ip.nil?
710
+ execute_or_queue_command(command, &block)
711
+ end
712
+
713
+ # Stops an ongoing operation. This does not roll back any work that has already
714
+ # been completed, but prevents any new work from being started.
715
+ # @param [String] project
716
+ # The project ID for this request.
717
+ # @param [String] deployment
718
+ # The name of the deployment for this request.
719
+ # @param [Google::Apis::DeploymentmanagerAlpha::DeploymentsStopRequest] deployments_stop_request_object
720
+ # @param [String] fields
721
+ # Selector specifying which fields to include in a partial response.
722
+ # @param [String] quota_user
723
+ # Available to use for quota purposes for server-side applications. Can be any
724
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
725
+ # Overrides userIp if both are provided.
726
+ # @param [String] user_ip
727
+ # IP address of the site where the request originates. Use this if you want to
728
+ # enforce per-user limits.
729
+ # @param [Google::Apis::RequestOptions] options
730
+ # Request-specific options
731
+ #
732
+ # @yield [result, err] Result & error if block supplied
733
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
734
+ # @yieldparam err [StandardError] error object if request failed
735
+ #
736
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
737
+ #
738
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
739
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
740
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
741
+ def stop_deployment(project, deployment, deployments_stop_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
742
+ command = make_simple_command(:post, '{project}/global/deployments/{deployment}/stop', options)
743
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::DeploymentsStopRequest::Representation
744
+ command.request_object = deployments_stop_request_object
745
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
746
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
747
+ command.params['project'] = project unless project.nil?
748
+ command.params['deployment'] = deployment unless deployment.nil?
749
+ command.query['fields'] = fields unless fields.nil?
750
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
751
+ command.query['userIp'] = user_ip unless user_ip.nil?
752
+ execute_or_queue_command(command, &block)
753
+ end
754
+
755
+ # Returns permissions that a caller has on the specified resource.
756
+ # @param [String] project
757
+ # Project ID for this request.
758
+ # @param [String] resource
759
+ # Name of the resource for this request.
760
+ # @param [Google::Apis::DeploymentmanagerAlpha::TestPermissionsRequest] test_permissions_request_object
761
+ # @param [String] fields
762
+ # Selector specifying which fields to include in a partial response.
763
+ # @param [String] quota_user
764
+ # Available to use for quota purposes for server-side applications. Can be any
765
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
766
+ # Overrides userIp if both are provided.
767
+ # @param [String] user_ip
768
+ # IP address of the site where the request originates. Use this if you want to
769
+ # enforce per-user limits.
770
+ # @param [Google::Apis::RequestOptions] options
771
+ # Request-specific options
772
+ #
773
+ # @yield [result, err] Result & error if block supplied
774
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::TestPermissionsResponse] parsed result object
775
+ # @yieldparam err [StandardError] error object if request failed
776
+ #
777
+ # @return [Google::Apis::DeploymentmanagerAlpha::TestPermissionsResponse]
778
+ #
779
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
780
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
781
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
782
+ def test_deployment_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
783
+ command = make_simple_command(:post, '{project}/global/deployments/{resource}/testIamPermissions', options)
784
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::TestPermissionsRequest::Representation
785
+ command.request_object = test_permissions_request_object
786
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::TestPermissionsResponse::Representation
787
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::TestPermissionsResponse
788
+ command.params['project'] = project unless project.nil?
789
+ command.params['resource'] = resource unless resource.nil?
790
+ command.query['fields'] = fields unless fields.nil?
791
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
792
+ command.query['userIp'] = user_ip unless user_ip.nil?
793
+ execute_or_queue_command(command, &block)
794
+ end
795
+
796
+ # Updates a deployment and all of the resources described by the deployment
797
+ # manifest.
798
+ # @param [String] project
799
+ # The project ID for this request.
800
+ # @param [String] deployment
801
+ # The name of the deployment for this request.
802
+ # @param [Google::Apis::DeploymentmanagerAlpha::Deployment] deployment_object
803
+ # @param [String] create_policy
804
+ # Sets the policy to use for creating new resources.
805
+ # @param [String] delete_policy
806
+ # Sets the policy to use for deleting resources.
807
+ # @param [Boolean] preview
808
+ # If set to true, updates the deployment and creates and updates the "shell"
809
+ # resources but does not actually alter or instantiate these resources. This
810
+ # allows you to preview what your deployment will look like. You can use this
811
+ # intent to preview how an update would affect your deployment. You must provide
812
+ # a target.config with a configuration if this is set to true. After previewing
813
+ # a deployment, you can deploy your resources by making a request with the
814
+ # update() or you can cancelPreview() to remove the preview altogether. Note
815
+ # that the deployment will still exist after you cancel the preview and you must
816
+ # separately delete this deployment if you want to remove it.
817
+ # @param [String] fields
818
+ # Selector specifying which fields to include in a partial response.
819
+ # @param [String] quota_user
820
+ # Available to use for quota purposes for server-side applications. Can be any
821
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
822
+ # Overrides userIp if both are provided.
823
+ # @param [String] user_ip
824
+ # IP address of the site where the request originates. Use this if you want to
825
+ # enforce per-user limits.
826
+ # @param [Google::Apis::RequestOptions] options
827
+ # Request-specific options
828
+ #
829
+ # @yield [result, err] Result & error if block supplied
830
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
831
+ # @yieldparam err [StandardError] error object if request failed
832
+ #
833
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
834
+ #
835
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
836
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
837
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
838
+ def update_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, preview: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
839
+ command = make_simple_command(:put, '{project}/global/deployments/{deployment}', options)
840
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::Deployment::Representation
841
+ command.request_object = deployment_object
842
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
843
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
844
+ command.params['project'] = project unless project.nil?
845
+ command.params['deployment'] = deployment unless deployment.nil?
846
+ command.query['createPolicy'] = create_policy unless create_policy.nil?
847
+ command.query['deletePolicy'] = delete_policy unless delete_policy.nil?
848
+ command.query['preview'] = preview unless preview.nil?
849
+ command.query['fields'] = fields unless fields.nil?
850
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
851
+ command.query['userIp'] = user_ip unless user_ip.nil?
852
+ execute_or_queue_command(command, &block)
853
+ end
854
+
855
+ # Gets information about a specific manifest.
856
+ # @param [String] project
857
+ # The project ID for this request.
858
+ # @param [String] deployment
859
+ # The name of the deployment for this request.
860
+ # @param [String] manifest
861
+ # The name of the manifest for this request.
862
+ # @param [String] fields
863
+ # Selector specifying which fields to include in a partial response.
864
+ # @param [String] quota_user
865
+ # Available to use for quota purposes for server-side applications. Can be any
866
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
867
+ # Overrides userIp if both are provided.
868
+ # @param [String] user_ip
869
+ # IP address of the site where the request originates. Use this if you want to
870
+ # enforce per-user limits.
871
+ # @param [Google::Apis::RequestOptions] options
872
+ # Request-specific options
873
+ #
874
+ # @yield [result, err] Result & error if block supplied
875
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Manifest] parsed result object
876
+ # @yieldparam err [StandardError] error object if request failed
877
+ #
878
+ # @return [Google::Apis::DeploymentmanagerAlpha::Manifest]
879
+ #
880
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
881
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
882
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
883
+ def get_manifest(project, deployment, manifest, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
884
+ command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests/{manifest}', options)
885
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Manifest::Representation
886
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Manifest
887
+ command.params['project'] = project unless project.nil?
888
+ command.params['deployment'] = deployment unless deployment.nil?
889
+ command.params['manifest'] = manifest unless manifest.nil?
890
+ command.query['fields'] = fields unless fields.nil?
891
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
892
+ command.query['userIp'] = user_ip unless user_ip.nil?
893
+ execute_or_queue_command(command, &block)
894
+ end
895
+
896
+ # Lists all manifests for a given deployment.
897
+ # @param [String] project
898
+ # The project ID for this request.
899
+ # @param [String] deployment
900
+ # The name of the deployment for this request.
901
+ # @param [String] filter
902
+ # Sets a filter `expression` for filtering listed resources. Your `expression`
903
+ # must be in the format: field_name comparison_string literal_string.
904
+ # The field_name is the name of the field you want to compare. Only atomic field
905
+ # types are supported (string, number, boolean). The comparison_string must be
906
+ # either eq (equals) or ne (not equals). The literal_string is the string value
907
+ # to filter to. The literal value must be valid for the type of field you are
908
+ # filtering by (string, number, boolean). For string fields, the literal value
909
+ # is interpreted as a regular expression using RE2 syntax. The literal value
910
+ # must match the entire field.
911
+ # For example, to filter for instances that do not have a name of example-
912
+ # instance, you would use name ne example-instance.
913
+ # You can filter on nested fields. For example, you could filter on instances
914
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
915
+ # nested fields to take advantage of labels to organize and search for results
916
+ # based on label values.
917
+ # To filter on multiple expressions, provide each separate expression within
918
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
919
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
920
+ # resources must match all expressions to pass the filters.
921
+ # @param [Fixnum] max_results
922
+ # The maximum number of results per page that should be returned. If the number
923
+ # of available results is larger than maxResults, Compute Engine returns a
924
+ # nextPageToken that can be used to get the next page of results in subsequent
925
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
926
+ # @param [String] order_by
927
+ # Sorts list results by a certain order. By default, results are returned in
928
+ # alphanumerical order based on the resource name.
929
+ # You can also sort results in descending order based on the creation timestamp
930
+ # using orderBy="creationTimestamp desc". This sorts results based on the
931
+ # creationTimestamp field in reverse chronological order (newest result first).
932
+ # Use this to sort resources like operations so that the newest operation is
933
+ # returned first.
934
+ # Currently, only sorting by name or creationTimestamp desc is supported.
935
+ # @param [String] page_token
936
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
937
+ # a previous list request to get the next page of results.
938
+ # @param [String] fields
939
+ # Selector specifying which fields to include in a partial response.
940
+ # @param [String] quota_user
941
+ # Available to use for quota purposes for server-side applications. Can be any
942
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
943
+ # Overrides userIp if both are provided.
944
+ # @param [String] user_ip
945
+ # IP address of the site where the request originates. Use this if you want to
946
+ # enforce per-user limits.
947
+ # @param [Google::Apis::RequestOptions] options
948
+ # Request-specific options
949
+ #
950
+ # @yield [result, err] Result & error if block supplied
951
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::ManifestsListResponse] parsed result object
952
+ # @yieldparam err [StandardError] error object if request failed
953
+ #
954
+ # @return [Google::Apis::DeploymentmanagerAlpha::ManifestsListResponse]
955
+ #
956
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
957
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
958
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
959
+ def list_manifests(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
960
+ command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests', options)
961
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::ManifestsListResponse::Representation
962
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::ManifestsListResponse
963
+ command.params['project'] = project unless project.nil?
964
+ command.params['deployment'] = deployment unless deployment.nil?
965
+ command.query['filter'] = filter unless filter.nil?
966
+ command.query['maxResults'] = max_results unless max_results.nil?
967
+ command.query['orderBy'] = order_by unless order_by.nil?
968
+ command.query['pageToken'] = page_token unless page_token.nil?
969
+ command.query['fields'] = fields unless fields.nil?
970
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
971
+ command.query['userIp'] = user_ip unless user_ip.nil?
972
+ execute_or_queue_command(command, &block)
973
+ end
974
+
975
+ # Gets information about a specific operation.
976
+ # @param [String] project
977
+ # The project ID for this request.
978
+ # @param [String] operation
979
+ # The name of the operation for this request.
980
+ # @param [String] fields
981
+ # Selector specifying which fields to include in a partial response.
982
+ # @param [String] quota_user
983
+ # Available to use for quota purposes for server-side applications. Can be any
984
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
985
+ # Overrides userIp if both are provided.
986
+ # @param [String] user_ip
987
+ # IP address of the site where the request originates. Use this if you want to
988
+ # enforce per-user limits.
989
+ # @param [Google::Apis::RequestOptions] options
990
+ # Request-specific options
991
+ #
992
+ # @yield [result, err] Result & error if block supplied
993
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
994
+ # @yieldparam err [StandardError] error object if request failed
995
+ #
996
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
997
+ #
998
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
999
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1000
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1001
+ def get_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1002
+ command = make_simple_command(:get, '{project}/global/operations/{operation}', options)
1003
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
1004
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
1005
+ command.params['project'] = project unless project.nil?
1006
+ command.params['operation'] = operation unless operation.nil?
1007
+ command.query['fields'] = fields unless fields.nil?
1008
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1009
+ command.query['userIp'] = user_ip unless user_ip.nil?
1010
+ execute_or_queue_command(command, &block)
1011
+ end
1012
+
1013
+ # Lists all operations for a project.
1014
+ # @param [String] project
1015
+ # The project ID for this request.
1016
+ # @param [String] filter
1017
+ # Sets a filter `expression` for filtering listed resources. Your `expression`
1018
+ # must be in the format: field_name comparison_string literal_string.
1019
+ # The field_name is the name of the field you want to compare. Only atomic field
1020
+ # types are supported (string, number, boolean). The comparison_string must be
1021
+ # either eq (equals) or ne (not equals). The literal_string is the string value
1022
+ # to filter to. The literal value must be valid for the type of field you are
1023
+ # filtering by (string, number, boolean). For string fields, the literal value
1024
+ # is interpreted as a regular expression using RE2 syntax. The literal value
1025
+ # must match the entire field.
1026
+ # For example, to filter for instances that do not have a name of example-
1027
+ # instance, you would use name ne example-instance.
1028
+ # You can filter on nested fields. For example, you could filter on instances
1029
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
1030
+ # nested fields to take advantage of labels to organize and search for results
1031
+ # based on label values.
1032
+ # To filter on multiple expressions, provide each separate expression within
1033
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
1034
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
1035
+ # resources must match all expressions to pass the filters.
1036
+ # @param [Fixnum] max_results
1037
+ # The maximum number of results per page that should be returned. If the number
1038
+ # of available results is larger than maxResults, Compute Engine returns a
1039
+ # nextPageToken that can be used to get the next page of results in subsequent
1040
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
1041
+ # @param [String] order_by
1042
+ # Sorts list results by a certain order. By default, results are returned in
1043
+ # alphanumerical order based on the resource name.
1044
+ # You can also sort results in descending order based on the creation timestamp
1045
+ # using orderBy="creationTimestamp desc". This sorts results based on the
1046
+ # creationTimestamp field in reverse chronological order (newest result first).
1047
+ # Use this to sort resources like operations so that the newest operation is
1048
+ # returned first.
1049
+ # Currently, only sorting by name or creationTimestamp desc is supported.
1050
+ # @param [String] page_token
1051
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
1052
+ # a previous list request to get the next page of results.
1053
+ # @param [String] fields
1054
+ # Selector specifying which fields to include in a partial response.
1055
+ # @param [String] quota_user
1056
+ # Available to use for quota purposes for server-side applications. Can be any
1057
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1058
+ # Overrides userIp if both are provided.
1059
+ # @param [String] user_ip
1060
+ # IP address of the site where the request originates. Use this if you want to
1061
+ # enforce per-user limits.
1062
+ # @param [Google::Apis::RequestOptions] options
1063
+ # Request-specific options
1064
+ #
1065
+ # @yield [result, err] Result & error if block supplied
1066
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::OperationsListResponse] parsed result object
1067
+ # @yieldparam err [StandardError] error object if request failed
1068
+ #
1069
+ # @return [Google::Apis::DeploymentmanagerAlpha::OperationsListResponse]
1070
+ #
1071
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1072
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1073
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1074
+ def list_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1075
+ command = make_simple_command(:get, '{project}/global/operations', options)
1076
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::OperationsListResponse::Representation
1077
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::OperationsListResponse
1078
+ command.params['project'] = project unless project.nil?
1079
+ command.query['filter'] = filter unless filter.nil?
1080
+ command.query['maxResults'] = max_results unless max_results.nil?
1081
+ command.query['orderBy'] = order_by unless order_by.nil?
1082
+ command.query['pageToken'] = page_token unless page_token.nil?
1083
+ command.query['fields'] = fields unless fields.nil?
1084
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1085
+ command.query['userIp'] = user_ip unless user_ip.nil?
1086
+ execute_or_queue_command(command, &block)
1087
+ end
1088
+
1089
+ # Gets information about a single resource.
1090
+ # @param [String] project
1091
+ # The project ID for this request.
1092
+ # @param [String] deployment
1093
+ # The name of the deployment for this request.
1094
+ # @param [String] resource
1095
+ # The name of the resource for this request.
1096
+ # @param [String] fields
1097
+ # Selector specifying which fields to include in a partial response.
1098
+ # @param [String] quota_user
1099
+ # Available to use for quota purposes for server-side applications. Can be any
1100
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1101
+ # Overrides userIp if both are provided.
1102
+ # @param [String] user_ip
1103
+ # IP address of the site where the request originates. Use this if you want to
1104
+ # enforce per-user limits.
1105
+ # @param [Google::Apis::RequestOptions] options
1106
+ # Request-specific options
1107
+ #
1108
+ # @yield [result, err] Result & error if block supplied
1109
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Resource] parsed result object
1110
+ # @yieldparam err [StandardError] error object if request failed
1111
+ #
1112
+ # @return [Google::Apis::DeploymentmanagerAlpha::Resource]
1113
+ #
1114
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1115
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1116
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1117
+ def get_resource(project, deployment, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1118
+ command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources/{resource}', options)
1119
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Resource::Representation
1120
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Resource
1121
+ command.params['project'] = project unless project.nil?
1122
+ command.params['deployment'] = deployment unless deployment.nil?
1123
+ command.params['resource'] = resource unless resource.nil?
1124
+ command.query['fields'] = fields unless fields.nil?
1125
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1126
+ command.query['userIp'] = user_ip unless user_ip.nil?
1127
+ execute_or_queue_command(command, &block)
1128
+ end
1129
+
1130
+ # Lists all resources in a given deployment.
1131
+ # @param [String] project
1132
+ # The project ID for this request.
1133
+ # @param [String] deployment
1134
+ # The name of the deployment for this request.
1135
+ # @param [String] filter
1136
+ # Sets a filter `expression` for filtering listed resources. Your `expression`
1137
+ # must be in the format: field_name comparison_string literal_string.
1138
+ # The field_name is the name of the field you want to compare. Only atomic field
1139
+ # types are supported (string, number, boolean). The comparison_string must be
1140
+ # either eq (equals) or ne (not equals). The literal_string is the string value
1141
+ # to filter to. The literal value must be valid for the type of field you are
1142
+ # filtering by (string, number, boolean). For string fields, the literal value
1143
+ # is interpreted as a regular expression using RE2 syntax. The literal value
1144
+ # must match the entire field.
1145
+ # For example, to filter for instances that do not have a name of example-
1146
+ # instance, you would use name ne example-instance.
1147
+ # You can filter on nested fields. For example, you could filter on instances
1148
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
1149
+ # nested fields to take advantage of labels to organize and search for results
1150
+ # based on label values.
1151
+ # To filter on multiple expressions, provide each separate expression within
1152
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
1153
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
1154
+ # resources must match all expressions to pass the filters.
1155
+ # @param [Fixnum] max_results
1156
+ # The maximum number of results per page that should be returned. If the number
1157
+ # of available results is larger than maxResults, Compute Engine returns a
1158
+ # nextPageToken that can be used to get the next page of results in subsequent
1159
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
1160
+ # @param [String] order_by
1161
+ # Sorts list results by a certain order. By default, results are returned in
1162
+ # alphanumerical order based on the resource name.
1163
+ # You can also sort results in descending order based on the creation timestamp
1164
+ # using orderBy="creationTimestamp desc". This sorts results based on the
1165
+ # creationTimestamp field in reverse chronological order (newest result first).
1166
+ # Use this to sort resources like operations so that the newest operation is
1167
+ # returned first.
1168
+ # Currently, only sorting by name or creationTimestamp desc is supported.
1169
+ # @param [String] page_token
1170
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
1171
+ # a previous list request to get the next page of results.
1172
+ # @param [String] fields
1173
+ # Selector specifying which fields to include in a partial response.
1174
+ # @param [String] quota_user
1175
+ # Available to use for quota purposes for server-side applications. Can be any
1176
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1177
+ # Overrides userIp if both are provided.
1178
+ # @param [String] user_ip
1179
+ # IP address of the site where the request originates. Use this if you want to
1180
+ # enforce per-user limits.
1181
+ # @param [Google::Apis::RequestOptions] options
1182
+ # Request-specific options
1183
+ #
1184
+ # @yield [result, err] Result & error if block supplied
1185
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::ResourcesListResponse] parsed result object
1186
+ # @yieldparam err [StandardError] error object if request failed
1187
+ #
1188
+ # @return [Google::Apis::DeploymentmanagerAlpha::ResourcesListResponse]
1189
+ #
1190
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1191
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1192
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1193
+ def list_resources(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1194
+ command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources', options)
1195
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::ResourcesListResponse::Representation
1196
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::ResourcesListResponse
1197
+ command.params['project'] = project unless project.nil?
1198
+ command.params['deployment'] = deployment unless deployment.nil?
1199
+ command.query['filter'] = filter unless filter.nil?
1200
+ command.query['maxResults'] = max_results unless max_results.nil?
1201
+ command.query['orderBy'] = order_by unless order_by.nil?
1202
+ command.query['pageToken'] = page_token unless page_token.nil?
1203
+ command.query['fields'] = fields unless fields.nil?
1204
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1205
+ command.query['userIp'] = user_ip unless user_ip.nil?
1206
+ execute_or_queue_command(command, &block)
1207
+ end
1208
+
1209
+ # Deletes a type provider.
1210
+ # @param [String] project
1211
+ # The project ID for this request.
1212
+ # @param [String] type_provider
1213
+ # The name of the type provider for this request.
1214
+ # @param [String] fields
1215
+ # Selector specifying which fields to include in a partial response.
1216
+ # @param [String] quota_user
1217
+ # Available to use for quota purposes for server-side applications. Can be any
1218
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1219
+ # Overrides userIp if both are provided.
1220
+ # @param [String] user_ip
1221
+ # IP address of the site where the request originates. Use this if you want to
1222
+ # enforce per-user limits.
1223
+ # @param [Google::Apis::RequestOptions] options
1224
+ # Request-specific options
1225
+ #
1226
+ # @yield [result, err] Result & error if block supplied
1227
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
1228
+ # @yieldparam err [StandardError] error object if request failed
1229
+ #
1230
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
1231
+ #
1232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1235
+ def delete_type_provider(project, type_provider, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1236
+ command = make_simple_command(:delete, '{project}/global/typeProviders/{typeProvider}', options)
1237
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
1238
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
1239
+ command.params['project'] = project unless project.nil?
1240
+ command.params['typeProvider'] = type_provider unless type_provider.nil?
1241
+ command.query['fields'] = fields unless fields.nil?
1242
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1243
+ command.query['userIp'] = user_ip unless user_ip.nil?
1244
+ execute_or_queue_command(command, &block)
1245
+ end
1246
+
1247
+ # Gets information about a specific type provider.
1248
+ # @param [String] project
1249
+ # The project ID for this request.
1250
+ # @param [String] type_provider
1251
+ # The name of the type provider for this request.
1252
+ # @param [String] fields
1253
+ # Selector specifying which fields to include in a partial response.
1254
+ # @param [String] quota_user
1255
+ # Available to use for quota purposes for server-side applications. Can be any
1256
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1257
+ # Overrides userIp if both are provided.
1258
+ # @param [String] user_ip
1259
+ # IP address of the site where the request originates. Use this if you want to
1260
+ # enforce per-user limits.
1261
+ # @param [Google::Apis::RequestOptions] options
1262
+ # Request-specific options
1263
+ #
1264
+ # @yield [result, err] Result & error if block supplied
1265
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::TypeProvider] parsed result object
1266
+ # @yieldparam err [StandardError] error object if request failed
1267
+ #
1268
+ # @return [Google::Apis::DeploymentmanagerAlpha::TypeProvider]
1269
+ #
1270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1273
+ def get_type_provider(project, type_provider, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1274
+ command = make_simple_command(:get, '{project}/global/typeProviders/{typeProvider}', options)
1275
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvider::Representation
1276
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::TypeProvider
1277
+ command.params['project'] = project unless project.nil?
1278
+ command.params['typeProvider'] = type_provider unless type_provider.nil?
1279
+ command.query['fields'] = fields unless fields.nil?
1280
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1281
+ command.query['userIp'] = user_ip unless user_ip.nil?
1282
+ execute_or_queue_command(command, &block)
1283
+ end
1284
+
1285
+ # Gets a type info for a type provided by a TypeProvider.
1286
+ # @param [String] project
1287
+ # The project ID for this request.
1288
+ # @param [String] type_provider
1289
+ # The name of the type provider for this request.
1290
+ # @param [String] type
1291
+ # The name of the type provider for this request.
1292
+ # @param [String] fields
1293
+ # Selector specifying which fields to include in a partial response.
1294
+ # @param [String] quota_user
1295
+ # Available to use for quota purposes for server-side applications. Can be any
1296
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1297
+ # Overrides userIp if both are provided.
1298
+ # @param [String] user_ip
1299
+ # IP address of the site where the request originates. Use this if you want to
1300
+ # enforce per-user limits.
1301
+ # @param [Google::Apis::RequestOptions] options
1302
+ # Request-specific options
1303
+ #
1304
+ # @yield [result, err] Result & error if block supplied
1305
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::TypeInfo] parsed result object
1306
+ # @yieldparam err [StandardError] error object if request failed
1307
+ #
1308
+ # @return [Google::Apis::DeploymentmanagerAlpha::TypeInfo]
1309
+ #
1310
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1311
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1312
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1313
+ def get_type_provider_type(project, type_provider, type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1314
+ command = make_simple_command(:get, '{project}/global/typeProviders/{typeProvider}/types/{type}', options)
1315
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypeInfo::Representation
1316
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::TypeInfo
1317
+ command.params['project'] = project unless project.nil?
1318
+ command.params['typeProvider'] = type_provider unless type_provider.nil?
1319
+ command.params['type'] = type unless type.nil?
1320
+ command.query['fields'] = fields unless fields.nil?
1321
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1322
+ command.query['userIp'] = user_ip unless user_ip.nil?
1323
+ execute_or_queue_command(command, &block)
1324
+ end
1325
+
1326
+ # Creates a type provider.
1327
+ # @param [String] project
1328
+ # The project ID for this request.
1329
+ # @param [Google::Apis::DeploymentmanagerAlpha::TypeProvider] type_provider_object
1330
+ # @param [String] fields
1331
+ # Selector specifying which fields to include in a partial response.
1332
+ # @param [String] quota_user
1333
+ # Available to use for quota purposes for server-side applications. Can be any
1334
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1335
+ # Overrides userIp if both are provided.
1336
+ # @param [String] user_ip
1337
+ # IP address of the site where the request originates. Use this if you want to
1338
+ # enforce per-user limits.
1339
+ # @param [Google::Apis::RequestOptions] options
1340
+ # Request-specific options
1341
+ #
1342
+ # @yield [result, err] Result & error if block supplied
1343
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
1344
+ # @yieldparam err [StandardError] error object if request failed
1345
+ #
1346
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
1347
+ #
1348
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1349
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1350
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1351
+ def insert_type_provider(project, type_provider_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1352
+ command = make_simple_command(:post, '{project}/global/typeProviders', options)
1353
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvider::Representation
1354
+ command.request_object = type_provider_object
1355
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
1356
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
1357
+ command.params['project'] = project unless project.nil?
1358
+ command.query['fields'] = fields unless fields.nil?
1359
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1360
+ command.query['userIp'] = user_ip unless user_ip.nil?
1361
+ execute_or_queue_command(command, &block)
1362
+ end
1363
+
1364
+ # Lists all resource type providers for Deployment Manager.
1365
+ # @param [String] project
1366
+ # The project ID for this request.
1367
+ # @param [String] filter
1368
+ # Sets a filter `expression` for filtering listed resources. Your `expression`
1369
+ # must be in the format: field_name comparison_string literal_string.
1370
+ # The field_name is the name of the field you want to compare. Only atomic field
1371
+ # types are supported (string, number, boolean). The comparison_string must be
1372
+ # either eq (equals) or ne (not equals). The literal_string is the string value
1373
+ # to filter to. The literal value must be valid for the type of field you are
1374
+ # filtering by (string, number, boolean). For string fields, the literal value
1375
+ # is interpreted as a regular expression using RE2 syntax. The literal value
1376
+ # must match the entire field.
1377
+ # For example, to filter for instances that do not have a name of example-
1378
+ # instance, you would use name ne example-instance.
1379
+ # You can filter on nested fields. For example, you could filter on instances
1380
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
1381
+ # nested fields to take advantage of labels to organize and search for results
1382
+ # based on label values.
1383
+ # To filter on multiple expressions, provide each separate expression within
1384
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
1385
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
1386
+ # resources must match all expressions to pass the filters.
1387
+ # @param [Fixnum] max_results
1388
+ # The maximum number of results per page that should be returned. If the number
1389
+ # of available results is larger than maxResults, Compute Engine returns a
1390
+ # nextPageToken that can be used to get the next page of results in subsequent
1391
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
1392
+ # @param [String] order_by
1393
+ # Sorts list results by a certain order. By default, results are returned in
1394
+ # alphanumerical order based on the resource name.
1395
+ # You can also sort results in descending order based on the creation timestamp
1396
+ # using orderBy="creationTimestamp desc". This sorts results based on the
1397
+ # creationTimestamp field in reverse chronological order (newest result first).
1398
+ # Use this to sort resources like operations so that the newest operation is
1399
+ # returned first.
1400
+ # Currently, only sorting by name or creationTimestamp desc is supported.
1401
+ # @param [String] page_token
1402
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
1403
+ # a previous list request to get the next page of results.
1404
+ # @param [String] fields
1405
+ # Selector specifying which fields to include in a partial response.
1406
+ # @param [String] quota_user
1407
+ # Available to use for quota purposes for server-side applications. Can be any
1408
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1409
+ # Overrides userIp if both are provided.
1410
+ # @param [String] user_ip
1411
+ # IP address of the site where the request originates. Use this if you want to
1412
+ # enforce per-user limits.
1413
+ # @param [Google::Apis::RequestOptions] options
1414
+ # Request-specific options
1415
+ #
1416
+ # @yield [result, err] Result & error if block supplied
1417
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::TypeProvidersListResponse] parsed result object
1418
+ # @yieldparam err [StandardError] error object if request failed
1419
+ #
1420
+ # @return [Google::Apis::DeploymentmanagerAlpha::TypeProvidersListResponse]
1421
+ #
1422
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1423
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1424
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1425
+ def list_type_providers(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1426
+ command = make_simple_command(:get, '{project}/global/typeProviders', options)
1427
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListResponse::Representation
1428
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListResponse
1429
+ command.params['project'] = project unless project.nil?
1430
+ command.query['filter'] = filter unless filter.nil?
1431
+ command.query['maxResults'] = max_results unless max_results.nil?
1432
+ command.query['orderBy'] = order_by unless order_by.nil?
1433
+ command.query['pageToken'] = page_token unless page_token.nil?
1434
+ command.query['fields'] = fields unless fields.nil?
1435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1436
+ command.query['userIp'] = user_ip unless user_ip.nil?
1437
+ execute_or_queue_command(command, &block)
1438
+ end
1439
+
1440
+ # Lists all the type info for a TypeProvider.
1441
+ # @param [String] project
1442
+ # The project ID for this request.
1443
+ # @param [String] type_provider
1444
+ # The name of the type provider for this request.
1445
+ # @param [String] filter
1446
+ # Sets a filter `expression` for filtering listed resources. Your `expression`
1447
+ # must be in the format: field_name comparison_string literal_string.
1448
+ # The field_name is the name of the field you want to compare. Only atomic field
1449
+ # types are supported (string, number, boolean). The comparison_string must be
1450
+ # either eq (equals) or ne (not equals). The literal_string is the string value
1451
+ # to filter to. The literal value must be valid for the type of field you are
1452
+ # filtering by (string, number, boolean). For string fields, the literal value
1453
+ # is interpreted as a regular expression using RE2 syntax. The literal value
1454
+ # must match the entire field.
1455
+ # For example, to filter for instances that do not have a name of example-
1456
+ # instance, you would use name ne example-instance.
1457
+ # You can filter on nested fields. For example, you could filter on instances
1458
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
1459
+ # nested fields to take advantage of labels to organize and search for results
1460
+ # based on label values.
1461
+ # To filter on multiple expressions, provide each separate expression within
1462
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
1463
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
1464
+ # resources must match all expressions to pass the filters.
1465
+ # @param [Fixnum] max_results
1466
+ # The maximum number of results per page that should be returned. If the number
1467
+ # of available results is larger than maxResults, Compute Engine returns a
1468
+ # nextPageToken that can be used to get the next page of results in subsequent
1469
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
1470
+ # @param [String] order_by
1471
+ # Sorts list results by a certain order. By default, results are returned in
1472
+ # alphanumerical order based on the resource name.
1473
+ # You can also sort results in descending order based on the creation timestamp
1474
+ # using orderBy="creationTimestamp desc". This sorts results based on the
1475
+ # creationTimestamp field in reverse chronological order (newest result first).
1476
+ # Use this to sort resources like operations so that the newest operation is
1477
+ # returned first.
1478
+ # Currently, only sorting by name or creationTimestamp desc is supported.
1479
+ # @param [String] page_token
1480
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
1481
+ # a previous list request to get the next page of results.
1482
+ # @param [String] fields
1483
+ # Selector specifying which fields to include in a partial response.
1484
+ # @param [String] quota_user
1485
+ # Available to use for quota purposes for server-side applications. Can be any
1486
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1487
+ # Overrides userIp if both are provided.
1488
+ # @param [String] user_ip
1489
+ # IP address of the site where the request originates. Use this if you want to
1490
+ # enforce per-user limits.
1491
+ # @param [Google::Apis::RequestOptions] options
1492
+ # Request-specific options
1493
+ #
1494
+ # @yield [result, err] Result & error if block supplied
1495
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::TypeProvidersListTypesResponse] parsed result object
1496
+ # @yieldparam err [StandardError] error object if request failed
1497
+ #
1498
+ # @return [Google::Apis::DeploymentmanagerAlpha::TypeProvidersListTypesResponse]
1499
+ #
1500
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1501
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1502
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1503
+ def list_type_provider_types(project, type_provider, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1504
+ command = make_simple_command(:get, '{project}/global/typeProviders/{typeProvider}/types', options)
1505
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListTypesResponse::Representation
1506
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListTypesResponse
1507
+ command.params['project'] = project unless project.nil?
1508
+ command.params['typeProvider'] = type_provider unless type_provider.nil?
1509
+ command.query['filter'] = filter unless filter.nil?
1510
+ command.query['maxResults'] = max_results unless max_results.nil?
1511
+ command.query['orderBy'] = order_by unless order_by.nil?
1512
+ command.query['pageToken'] = page_token unless page_token.nil?
1513
+ command.query['fields'] = fields unless fields.nil?
1514
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1515
+ command.query['userIp'] = user_ip unless user_ip.nil?
1516
+ execute_or_queue_command(command, &block)
1517
+ end
1518
+
1519
+ # Updates a type provider. This method supports patch semantics.
1520
+ # @param [String] project
1521
+ # The project ID for this request.
1522
+ # @param [String] type_provider
1523
+ # The name of the type provider for this request.
1524
+ # @param [Google::Apis::DeploymentmanagerAlpha::TypeProvider] type_provider_object
1525
+ # @param [String] fields
1526
+ # Selector specifying which fields to include in a partial response.
1527
+ # @param [String] quota_user
1528
+ # Available to use for quota purposes for server-side applications. Can be any
1529
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1530
+ # Overrides userIp if both are provided.
1531
+ # @param [String] user_ip
1532
+ # IP address of the site where the request originates. Use this if you want to
1533
+ # enforce per-user limits.
1534
+ # @param [Google::Apis::RequestOptions] options
1535
+ # Request-specific options
1536
+ #
1537
+ # @yield [result, err] Result & error if block supplied
1538
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
1539
+ # @yieldparam err [StandardError] error object if request failed
1540
+ #
1541
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
1542
+ #
1543
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1544
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1545
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1546
+ def patch_type_provider(project, type_provider, type_provider_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1547
+ command = make_simple_command(:patch, '{project}/global/typeProviders/{typeProvider}', options)
1548
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvider::Representation
1549
+ command.request_object = type_provider_object
1550
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
1551
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
1552
+ command.params['project'] = project unless project.nil?
1553
+ command.params['typeProvider'] = type_provider unless type_provider.nil?
1554
+ command.query['fields'] = fields unless fields.nil?
1555
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1556
+ command.query['userIp'] = user_ip unless user_ip.nil?
1557
+ execute_or_queue_command(command, &block)
1558
+ end
1559
+
1560
+ # Updates a type provider.
1561
+ # @param [String] project
1562
+ # The project ID for this request.
1563
+ # @param [String] type_provider
1564
+ # The name of the type provider for this request.
1565
+ # @param [Google::Apis::DeploymentmanagerAlpha::TypeProvider] type_provider_object
1566
+ # @param [String] fields
1567
+ # Selector specifying which fields to include in a partial response.
1568
+ # @param [String] quota_user
1569
+ # Available to use for quota purposes for server-side applications. Can be any
1570
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1571
+ # Overrides userIp if both are provided.
1572
+ # @param [String] user_ip
1573
+ # IP address of the site where the request originates. Use this if you want to
1574
+ # enforce per-user limits.
1575
+ # @param [Google::Apis::RequestOptions] options
1576
+ # Request-specific options
1577
+ #
1578
+ # @yield [result, err] Result & error if block supplied
1579
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
1580
+ # @yieldparam err [StandardError] error object if request failed
1581
+ #
1582
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
1583
+ #
1584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1587
+ def update_type_provider(project, type_provider, type_provider_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1588
+ command = make_simple_command(:put, '{project}/global/typeProviders/{typeProvider}', options)
1589
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvider::Representation
1590
+ command.request_object = type_provider_object
1591
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
1592
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
1593
+ command.params['project'] = project unless project.nil?
1594
+ command.params['typeProvider'] = type_provider unless type_provider.nil?
1595
+ command.query['fields'] = fields unless fields.nil?
1596
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1597
+ command.query['userIp'] = user_ip unless user_ip.nil?
1598
+ execute_or_queue_command(command, &block)
1599
+ end
1600
+
1601
+ # Deletes a type and all of the resources in the type.
1602
+ # @param [String] project
1603
+ # The project ID for this request.
1604
+ # @param [String] type
1605
+ # The name of the type for this request.
1606
+ # @param [String] fields
1607
+ # Selector specifying which fields to include in a partial response.
1608
+ # @param [String] quota_user
1609
+ # Available to use for quota purposes for server-side applications. Can be any
1610
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1611
+ # Overrides userIp if both are provided.
1612
+ # @param [String] user_ip
1613
+ # IP address of the site where the request originates. Use this if you want to
1614
+ # enforce per-user limits.
1615
+ # @param [Google::Apis::RequestOptions] options
1616
+ # Request-specific options
1617
+ #
1618
+ # @yield [result, err] Result & error if block supplied
1619
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
1620
+ # @yieldparam err [StandardError] error object if request failed
1621
+ #
1622
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
1623
+ #
1624
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1625
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1626
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1627
+ def delete_type(project, type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1628
+ command = make_simple_command(:delete, '{project}/global/types/{type}', options)
1629
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
1630
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
1631
+ command.params['project'] = project unless project.nil?
1632
+ command.params['type'] = type unless type.nil?
1633
+ command.query['fields'] = fields unless fields.nil?
1634
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1635
+ command.query['userIp'] = user_ip unless user_ip.nil?
1636
+ execute_or_queue_command(command, &block)
1637
+ end
1638
+
1639
+ # Gets information about a specific type.
1640
+ # @param [String] project
1641
+ # The project ID for this request.
1642
+ # @param [String] type
1643
+ # The name of the type for this request.
1644
+ # @param [String] fields
1645
+ # Selector specifying which fields to include in a partial response.
1646
+ # @param [String] quota_user
1647
+ # Available to use for quota purposes for server-side applications. Can be any
1648
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1649
+ # Overrides userIp if both are provided.
1650
+ # @param [String] user_ip
1651
+ # IP address of the site where the request originates. Use this if you want to
1652
+ # enforce per-user limits.
1653
+ # @param [Google::Apis::RequestOptions] options
1654
+ # Request-specific options
1655
+ #
1656
+ # @yield [result, err] Result & error if block supplied
1657
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Type] parsed result object
1658
+ # @yieldparam err [StandardError] error object if request failed
1659
+ #
1660
+ # @return [Google::Apis::DeploymentmanagerAlpha::Type]
1661
+ #
1662
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1663
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1664
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1665
+ def get_type(project, type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1666
+ command = make_simple_command(:get, '{project}/global/types/{type}', options)
1667
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Type::Representation
1668
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Type
1669
+ command.params['project'] = project unless project.nil?
1670
+ command.params['type'] = type unless type.nil?
1671
+ command.query['fields'] = fields unless fields.nil?
1672
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1673
+ command.query['userIp'] = user_ip unless user_ip.nil?
1674
+ execute_or_queue_command(command, &block)
1675
+ end
1676
+
1677
+ # Creates a type.
1678
+ # @param [String] project
1679
+ # The project ID for this request.
1680
+ # @param [Google::Apis::DeploymentmanagerAlpha::Type] type_object
1681
+ # @param [String] fields
1682
+ # Selector specifying which fields to include in a partial response.
1683
+ # @param [String] quota_user
1684
+ # Available to use for quota purposes for server-side applications. Can be any
1685
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1686
+ # Overrides userIp if both are provided.
1687
+ # @param [String] user_ip
1688
+ # IP address of the site where the request originates. Use this if you want to
1689
+ # enforce per-user limits.
1690
+ # @param [Google::Apis::RequestOptions] options
1691
+ # Request-specific options
1692
+ #
1693
+ # @yield [result, err] Result & error if block supplied
1694
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
1695
+ # @yieldparam err [StandardError] error object if request failed
1696
+ #
1697
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
1698
+ #
1699
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1700
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1701
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1702
+ def insert_type(project, type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1703
+ command = make_simple_command(:post, '{project}/global/types', options)
1704
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::Type::Representation
1705
+ command.request_object = type_object
1706
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
1707
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
1708
+ command.params['project'] = project unless project.nil?
1709
+ command.query['fields'] = fields unless fields.nil?
1710
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1711
+ command.query['userIp'] = user_ip unless user_ip.nil?
1712
+ execute_or_queue_command(command, &block)
1713
+ end
1714
+
1715
+ # Lists all resource types for Deployment Manager.
1716
+ # @param [String] project
1717
+ # The project ID for this request.
1718
+ # @param [String] filter
1719
+ # Sets a filter `expression` for filtering listed resources. Your `expression`
1720
+ # must be in the format: field_name comparison_string literal_string.
1721
+ # The field_name is the name of the field you want to compare. Only atomic field
1722
+ # types are supported (string, number, boolean). The comparison_string must be
1723
+ # either eq (equals) or ne (not equals). The literal_string is the string value
1724
+ # to filter to. The literal value must be valid for the type of field you are
1725
+ # filtering by (string, number, boolean). For string fields, the literal value
1726
+ # is interpreted as a regular expression using RE2 syntax. The literal value
1727
+ # must match the entire field.
1728
+ # For example, to filter for instances that do not have a name of example-
1729
+ # instance, you would use name ne example-instance.
1730
+ # You can filter on nested fields. For example, you could filter on instances
1731
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
1732
+ # nested fields to take advantage of labels to organize and search for results
1733
+ # based on label values.
1734
+ # To filter on multiple expressions, provide each separate expression within
1735
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
1736
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
1737
+ # resources must match all expressions to pass the filters.
1738
+ # @param [Fixnum] max_results
1739
+ # The maximum number of results per page that should be returned. If the number
1740
+ # of available results is larger than maxResults, Compute Engine returns a
1741
+ # nextPageToken that can be used to get the next page of results in subsequent
1742
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
1743
+ # @param [String] order_by
1744
+ # Sorts list results by a certain order. By default, results are returned in
1745
+ # alphanumerical order based on the resource name.
1746
+ # You can also sort results in descending order based on the creation timestamp
1747
+ # using orderBy="creationTimestamp desc". This sorts results based on the
1748
+ # creationTimestamp field in reverse chronological order (newest result first).
1749
+ # Use this to sort resources like operations so that the newest operation is
1750
+ # returned first.
1751
+ # Currently, only sorting by name or creationTimestamp desc is supported.
1752
+ # @param [String] page_token
1753
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
1754
+ # a previous list request to get the next page of results.
1755
+ # @param [String] fields
1756
+ # Selector specifying which fields to include in a partial response.
1757
+ # @param [String] quota_user
1758
+ # Available to use for quota purposes for server-side applications. Can be any
1759
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1760
+ # Overrides userIp if both are provided.
1761
+ # @param [String] user_ip
1762
+ # IP address of the site where the request originates. Use this if you want to
1763
+ # enforce per-user limits.
1764
+ # @param [Google::Apis::RequestOptions] options
1765
+ # Request-specific options
1766
+ #
1767
+ # @yield [result, err] Result & error if block supplied
1768
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::TypesListResponse] parsed result object
1769
+ # @yieldparam err [StandardError] error object if request failed
1770
+ #
1771
+ # @return [Google::Apis::DeploymentmanagerAlpha::TypesListResponse]
1772
+ #
1773
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1774
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1775
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1776
+ def list_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1777
+ command = make_simple_command(:get, '{project}/global/types', options)
1778
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypesListResponse::Representation
1779
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::TypesListResponse
1780
+ command.params['project'] = project unless project.nil?
1781
+ command.query['filter'] = filter unless filter.nil?
1782
+ command.query['maxResults'] = max_results unless max_results.nil?
1783
+ command.query['orderBy'] = order_by unless order_by.nil?
1784
+ command.query['pageToken'] = page_token unless page_token.nil?
1785
+ command.query['fields'] = fields unless fields.nil?
1786
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1787
+ command.query['userIp'] = user_ip unless user_ip.nil?
1788
+ execute_or_queue_command(command, &block)
1789
+ end
1790
+
1791
+ # Updates a type. This method supports patch semantics.
1792
+ # @param [String] project
1793
+ # The project ID for this request.
1794
+ # @param [String] type
1795
+ # The name of the type for this request.
1796
+ # @param [Google::Apis::DeploymentmanagerAlpha::Type] type_object
1797
+ # @param [String] fields
1798
+ # Selector specifying which fields to include in a partial response.
1799
+ # @param [String] quota_user
1800
+ # Available to use for quota purposes for server-side applications. Can be any
1801
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1802
+ # Overrides userIp if both are provided.
1803
+ # @param [String] user_ip
1804
+ # IP address of the site where the request originates. Use this if you want to
1805
+ # enforce per-user limits.
1806
+ # @param [Google::Apis::RequestOptions] options
1807
+ # Request-specific options
1808
+ #
1809
+ # @yield [result, err] Result & error if block supplied
1810
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
1811
+ # @yieldparam err [StandardError] error object if request failed
1812
+ #
1813
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
1814
+ #
1815
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1816
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1817
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1818
+ def patch_type(project, type, type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1819
+ command = make_simple_command(:patch, '{project}/global/types/{type}', options)
1820
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::Type::Representation
1821
+ command.request_object = type_object
1822
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
1823
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
1824
+ command.params['project'] = project unless project.nil?
1825
+ command.params['type'] = type unless type.nil?
1826
+ command.query['fields'] = fields unless fields.nil?
1827
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1828
+ command.query['userIp'] = user_ip unless user_ip.nil?
1829
+ execute_or_queue_command(command, &block)
1830
+ end
1831
+
1832
+ # Updates a type.
1833
+ # @param [String] project
1834
+ # The project ID for this request.
1835
+ # @param [String] type
1836
+ # The name of the type for this request.
1837
+ # @param [Google::Apis::DeploymentmanagerAlpha::Type] type_object
1838
+ # @param [String] fields
1839
+ # Selector specifying which fields to include in a partial response.
1840
+ # @param [String] quota_user
1841
+ # Available to use for quota purposes for server-side applications. Can be any
1842
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1843
+ # Overrides userIp if both are provided.
1844
+ # @param [String] user_ip
1845
+ # IP address of the site where the request originates. Use this if you want to
1846
+ # enforce per-user limits.
1847
+ # @param [Google::Apis::RequestOptions] options
1848
+ # Request-specific options
1849
+ #
1850
+ # @yield [result, err] Result & error if block supplied
1851
+ # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object
1852
+ # @yieldparam err [StandardError] error object if request failed
1853
+ #
1854
+ # @return [Google::Apis::DeploymentmanagerAlpha::Operation]
1855
+ #
1856
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1857
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1858
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1859
+ def update_type(project, type, type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1860
+ command = make_simple_command(:put, '{project}/global/types/{type}', options)
1861
+ command.request_representation = Google::Apis::DeploymentmanagerAlpha::Type::Representation
1862
+ command.request_object = type_object
1863
+ command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation
1864
+ command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation
1865
+ command.params['project'] = project unless project.nil?
1866
+ command.params['type'] = type unless type.nil?
1867
+ command.query['fields'] = fields unless fields.nil?
1868
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1869
+ command.query['userIp'] = user_ip unless user_ip.nil?
1870
+ execute_or_queue_command(command, &block)
1871
+ end
1872
+
1873
+ protected
1874
+
1875
+ def apply_command_defaults(command)
1876
+ command.query['key'] = key unless key.nil?
1877
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1878
+ command.query['userIp'] = user_ip unless user_ip.nil?
1879
+ end
1880
+ end
1881
+ end
1882
+ end
1883
+ end