google-api-client 0.31.0 → 0.32.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (295) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/continuous/linux.cfg +11 -1
  3. data/.kokoro/continuous/osx.cfg +5 -0
  4. data/.kokoro/continuous/windows.cfg +10 -0
  5. data/.kokoro/presubmit/linux.cfg +11 -1
  6. data/.kokoro/presubmit/osx.cfg +5 -0
  7. data/.kokoro/presubmit/windows.cfg +10 -0
  8. data/CHANGELOG.md +107 -0
  9. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  10. data/generated/google/apis/androidmanagement_v1/classes.rb +12 -1
  11. data/generated/google/apis/androidmanagement_v1/representations.rb +1 -0
  12. data/generated/google/apis/bigquery_v2.rb +1 -1
  13. data/generated/google/apis/bigquery_v2/classes.rb +241 -0
  14. data/generated/google/apis/bigquery_v2/representations.rb +115 -0
  15. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  16. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +62 -29
  17. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  18. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +2 -2
  19. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -26
  20. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  21. data/generated/google/apis/bigqueryreservation_v1/classes.rb +7 -7
  22. data/generated/google/apis/bigqueryreservation_v1/representations.rb +3 -3
  23. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  24. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +0 -175
  25. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +0 -65
  26. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +0 -140
  27. data/generated/google/apis/bigqueryreservation_v1beta1.rb +37 -0
  28. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +497 -0
  29. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +236 -0
  30. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +713 -0
  31. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  32. data/generated/google/apis/binaryauthorization_v1/classes.rb +307 -0
  33. data/generated/google/apis/binaryauthorization_v1/representations.rb +88 -0
  34. data/generated/google/apis/binaryauthorization_v1/service.rb +230 -0
  35. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  36. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +62 -29
  37. data/generated/google/apis/blogger_v3.rb +1 -1
  38. data/generated/google/apis/blogger_v3/service.rb +6 -6
  39. data/generated/google/apis/calendar_v3.rb +1 -1
  40. data/generated/google/apis/calendar_v3/classes.rb +1 -0
  41. data/generated/google/apis/cloudasset_v1.rb +1 -1
  42. data/generated/google/apis/cloudasset_v1/classes.rb +72 -29
  43. data/generated/google/apis/cloudasset_v1/representations.rb +1 -0
  44. data/generated/google/apis/cloudasset_v1/service.rb +1 -1
  45. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudasset_v1beta1/classes.rb +62 -29
  47. data/generated/google/apis/cloudasset_v1beta1/service.rb +2 -2
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -2
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +10 -7
  51. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  52. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +1 -1
  53. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +7 -6
  54. data/generated/google/apis/cloudidentity_v1.rb +4 -1
  55. data/generated/google/apis/cloudidentity_v1beta1.rb +4 -1
  56. data/generated/google/apis/cloudiot_v1.rb +1 -1
  57. data/generated/google/apis/cloudiot_v1/classes.rb +68 -35
  58. data/generated/google/apis/cloudiot_v1/service.rb +18 -17
  59. data/generated/google/apis/cloudkms_v1.rb +1 -1
  60. data/generated/google/apis/cloudkms_v1/classes.rb +77 -35
  61. data/generated/google/apis/cloudkms_v1/service.rb +33 -27
  62. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  63. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +62 -29
  64. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  65. data/generated/google/apis/cloudsearch_v1/classes.rb +354 -0
  66. data/generated/google/apis/cloudsearch_v1/representations.rb +196 -0
  67. data/generated/google/apis/cloudsearch_v1/service.rb +314 -2
  68. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  69. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +62 -29
  70. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  71. data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
  72. data/generated/google/apis/cloudtrace_v1/service.rb +10 -10
  73. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  74. data/generated/google/apis/cloudtrace_v2/classes.rb +3 -3
  75. data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
  76. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +7 -10
  77. data/generated/google/apis/compute_alpha.rb +1 -1
  78. data/generated/google/apis/compute_alpha/classes.rb +38 -42
  79. data/generated/google/apis/compute_alpha/representations.rb +5 -16
  80. data/generated/google/apis/compute_beta.rb +1 -1
  81. data/generated/google/apis/compute_beta/classes.rb +10 -5
  82. data/generated/google/apis/compute_v1.rb +1 -1
  83. data/generated/google/apis/compute_v1/classes.rb +1327 -4
  84. data/generated/google/apis/compute_v1/representations.rb +439 -0
  85. data/generated/google/apis/container_v1.rb +1 -1
  86. data/generated/google/apis/container_v1/classes.rb +111 -0
  87. data/generated/google/apis/container_v1/representations.rb +51 -0
  88. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  89. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +76 -30
  90. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
  91. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  92. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +70 -30
  93. data/generated/google/apis/content_v2.rb +1 -1
  94. data/generated/google/apis/content_v2/service.rb +0 -226
  95. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  96. data/generated/google/apis/dataflow_v1b3/classes.rb +42 -0
  97. data/generated/google/apis/dataflow_v1b3/representations.rb +4 -0
  98. data/generated/google/apis/dataproc_v1.rb +1 -1
  99. data/generated/google/apis/dataproc_v1/classes.rb +324 -38
  100. data/generated/google/apis/dataproc_v1/representations.rb +97 -0
  101. data/generated/google/apis/dataproc_v1/service.rb +613 -1
  102. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  103. data/generated/google/apis/dataproc_v1beta2/classes.rb +100 -54
  104. data/generated/google/apis/dataproc_v1beta2/service.rb +29 -22
  105. data/generated/google/apis/dialogflow_v2.rb +1 -1
  106. data/generated/google/apis/dialogflow_v2/classes.rb +363 -167
  107. data/generated/google/apis/dialogflow_v2/representations.rb +160 -49
  108. data/generated/google/apis/dialogflow_v2/service.rb +1 -1
  109. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  110. data/generated/google/apis/dialogflow_v2beta1/classes.rb +433 -178
  111. data/generated/google/apis/dialogflow_v2beta1/representations.rb +199 -59
  112. data/generated/google/apis/dialogflow_v2beta1/service.rb +39 -0
  113. data/generated/google/apis/dlp_v2.rb +1 -1
  114. data/generated/google/apis/dlp_v2/classes.rb +3 -4
  115. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  116. data/generated/google/apis/drive_v2.rb +1 -1
  117. data/generated/google/apis/drive_v2/classes.rb +2 -2
  118. data/generated/google/apis/drive_v3.rb +1 -1
  119. data/generated/google/apis/drive_v3/classes.rb +2 -2
  120. data/generated/google/apis/fcm_v1.rb +1 -1
  121. data/generated/google/apis/fcm_v1/classes.rb +9 -4
  122. data/generated/google/apis/file_v1.rb +1 -1
  123. data/generated/google/apis/file_v1/classes.rb +8 -0
  124. data/generated/google/apis/file_v1/representations.rb +1 -0
  125. data/generated/google/apis/file_v1/service.rb +2 -0
  126. data/generated/google/apis/file_v1beta1.rb +1 -1
  127. data/generated/google/apis/file_v1beta1/classes.rb +8 -0
  128. data/generated/google/apis/file_v1beta1/representations.rb +1 -0
  129. data/generated/google/apis/file_v1beta1/service.rb +2 -0
  130. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  131. data/generated/google/apis/firebase_v1beta1/classes.rb +41 -4
  132. data/generated/google/apis/firebase_v1beta1/representations.rb +2 -0
  133. data/generated/google/apis/firebase_v1beta1/service.rb +22 -14
  134. data/generated/google/apis/fitness_v1.rb +19 -19
  135. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  136. data/generated/google/apis/healthcare_v1beta1/classes.rb +136 -100
  137. data/generated/google/apis/healthcare_v1beta1/representations.rb +1 -1
  138. data/generated/google/apis/healthcare_v1beta1/service.rb +124 -119
  139. data/generated/google/apis/iam_v1.rb +1 -1
  140. data/generated/google/apis/iam_v1/classes.rb +87 -41
  141. data/generated/google/apis/iap_v1.rb +1 -1
  142. data/generated/google/apis/iap_v1/classes.rb +62 -29
  143. data/generated/google/apis/iap_v1beta1.rb +1 -1
  144. data/generated/google/apis/iap_v1beta1/classes.rb +62 -29
  145. data/generated/google/apis/ml_v1.rb +1 -1
  146. data/generated/google/apis/ml_v1/classes.rb +114 -49
  147. data/generated/google/apis/ml_v1/representations.rb +2 -0
  148. data/generated/google/apis/ml_v1/service.rb +12 -6
  149. data/generated/google/apis/monitoring_v3.rb +1 -1
  150. data/generated/google/apis/monitoring_v3/classes.rb +14 -10
  151. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  152. data/generated/google/apis/oslogin_v1.rb +1 -1
  153. data/generated/google/apis/oslogin_v1/classes.rb +12 -0
  154. data/generated/google/apis/oslogin_v1/representations.rb +2 -0
  155. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  156. data/generated/google/apis/oslogin_v1alpha/classes.rb +12 -0
  157. data/generated/google/apis/oslogin_v1alpha/representations.rb +2 -0
  158. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  159. data/generated/google/apis/oslogin_v1beta/classes.rb +12 -0
  160. data/generated/google/apis/oslogin_v1beta/representations.rb +2 -0
  161. data/generated/google/apis/policytroubleshooter_v1beta.rb +34 -0
  162. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +621 -0
  163. data/generated/google/apis/policytroubleshooter_v1beta/representations.rb +203 -0
  164. data/generated/google/apis/policytroubleshooter_v1beta/service.rb +91 -0
  165. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  166. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +7 -4
  167. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +60 -58
  168. data/generated/google/apis/recommender_v1beta1.rb +34 -0
  169. data/generated/google/apis/recommender_v1beta1/classes.rb +502 -0
  170. data/generated/google/apis/recommender_v1beta1/representations.rb +232 -0
  171. data/generated/google/apis/recommender_v1beta1/service.rb +262 -0
  172. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  173. data/generated/google/apis/remotebuildexecution_v1/classes.rb +49 -1100
  174. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -276
  175. data/generated/google/apis/remotebuildexecution_v1/service.rb +0 -77
  176. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  177. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +12 -990
  178. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -245
  179. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  180. data/generated/google/apis/remotebuildexecution_v2/classes.rb +12 -990
  181. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -245
  182. data/generated/google/apis/run_v1.rb +1 -1
  183. data/generated/google/apis/run_v1/classes.rb +3553 -33
  184. data/generated/google/apis/run_v1/representations.rb +1186 -4
  185. data/generated/google/apis/run_v1/service.rb +2509 -23
  186. data/generated/google/apis/run_v1alpha1.rb +1 -1
  187. data/generated/google/apis/run_v1alpha1/classes.rb +103 -140
  188. data/generated/google/apis/run_v1alpha1/representations.rb +5 -43
  189. data/generated/google/apis/run_v1beta1.rb +35 -0
  190. data/generated/google/apis/run_v1beta1/classes.rb +1209 -0
  191. data/generated/google/apis/run_v1beta1/representations.rb +421 -0
  192. data/generated/google/apis/run_v1beta1/service.rb +172 -0
  193. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  194. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +62 -29
  195. data/generated/google/apis/safebrowsing_v4.rb +5 -2
  196. data/generated/google/apis/safebrowsing_v4/service.rb +4 -1
  197. data/generated/google/apis/securitycenter_v1.rb +1 -1
  198. data/generated/google/apis/securitycenter_v1/classes.rb +70 -35
  199. data/generated/google/apis/securitycenter_v1/service.rb +13 -12
  200. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  201. data/generated/google/apis/securitycenter_v1beta1/classes.rb +71 -35
  202. data/generated/google/apis/securitycenter_v1beta1/service.rb +13 -12
  203. data/generated/google/apis/servicebroker_v1.rb +1 -1
  204. data/generated/google/apis/servicebroker_v1/classes.rb +62 -29
  205. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  206. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +62 -29
  207. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  208. data/generated/google/apis/servicebroker_v1beta1/classes.rb +62 -29
  209. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  210. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +11 -2
  211. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  212. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  213. data/generated/google/apis/servicemanagement_v1/classes.rb +63 -33
  214. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  215. data/generated/google/apis/servicenetworking_v1/classes.rb +11 -2
  216. data/generated/google/apis/servicenetworking_v1/representations.rb +1 -0
  217. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  218. data/generated/google/apis/servicenetworking_v1beta/classes.rb +11 -2
  219. data/generated/google/apis/servicenetworking_v1beta/representations.rb +1 -0
  220. data/generated/google/apis/serviceusage_v1.rb +1 -1
  221. data/generated/google/apis/serviceusage_v1/classes.rb +11 -2
  222. data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
  223. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  224. data/generated/google/apis/serviceusage_v1beta1/classes.rb +11 -2
  225. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
  226. data/generated/google/apis/spanner_v1.rb +1 -1
  227. data/generated/google/apis/spanner_v1/classes.rb +78 -2
  228. data/generated/google/apis/spanner_v1/representations.rb +44 -0
  229. data/generated/google/apis/spanner_v1/service.rb +35 -0
  230. data/generated/google/apis/speech_v1.rb +1 -1
  231. data/generated/google/apis/speech_v1/classes.rb +73 -19
  232. data/generated/google/apis/speech_v1/representations.rb +18 -0
  233. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  234. data/generated/google/apis/speech_v1p1beta1/classes.rb +31 -35
  235. data/generated/google/apis/speech_v2beta.rb +1 -1
  236. data/generated/google/apis/speech_v2beta/classes.rb +6 -6
  237. data/generated/google/apis/speech_v2beta/representations.rb +2 -2
  238. data/generated/google/apis/storage_v1.rb +1 -1
  239. data/generated/google/apis/storage_v1/classes.rb +1 -1
  240. data/generated/google/apis/storage_v1/representations.rb +2 -1
  241. data/generated/google/apis/storage_v1beta1.rb +1 -1
  242. data/generated/google/apis/storage_v1beta2.rb +1 -1
  243. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  244. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
  245. data/generated/google/apis/streetviewpublish_v1/service.rb +9 -5
  246. data/generated/google/apis/testing_v1.rb +1 -1
  247. data/generated/google/apis/testing_v1/classes.rb +42 -0
  248. data/generated/google/apis/testing_v1/representations.rb +18 -0
  249. data/generated/google/apis/texttospeech_v1.rb +1 -1
  250. data/generated/google/apis/texttospeech_v1/classes.rb +6 -5
  251. data/generated/google/apis/texttospeech_v1/service.rb +1 -1
  252. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  253. data/generated/google/apis/texttospeech_v1beta1/classes.rb +6 -5
  254. data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
  255. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  256. data/generated/google/apis/toolresults_v1beta3/classes.rb +1 -1
  257. data/generated/google/apis/translate_v3beta1.rb +1 -1
  258. data/generated/google/apis/translate_v3beta1/classes.rb +22 -16
  259. data/generated/google/apis/translate_v3beta1/service.rb +31 -31
  260. data/generated/google/apis/videointelligence_v1.rb +1 -1
  261. data/generated/google/apis/videointelligence_v1/classes.rb +45 -10
  262. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  263. data/generated/google/apis/videointelligence_v1beta2/classes.rb +45 -10
  264. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  265. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +45 -10
  266. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  267. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +45 -10
  268. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  269. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +45 -10
  270. data/generated/google/apis/vision_v1.rb +1 -1
  271. data/generated/google/apis/vision_v1/classes.rb +6 -156
  272. data/generated/google/apis/vision_v1/representations.rb +0 -44
  273. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  274. data/generated/google/apis/vision_v1p1beta1/classes.rb +6 -156
  275. data/generated/google/apis/vision_v1p1beta1/representations.rb +0 -44
  276. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  277. data/generated/google/apis/vision_v1p2beta1/classes.rb +6 -156
  278. data/generated/google/apis/vision_v1p2beta1/representations.rb +0 -44
  279. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  280. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  281. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +21 -31
  282. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  283. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  284. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +30 -42
  285. data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
  286. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  287. data/generated/google/apis/youtube_partner_v1/classes.rb +0 -83
  288. data/generated/google/apis/youtube_partner_v1/representations.rb +0 -35
  289. data/generated/google/apis/youtube_partner_v1/service.rb +0 -100
  290. data/lib/google/apis/version.rb +1 -1
  291. metadata +18 -6
  292. data/generated/google/apis/dfareporting_v3_1.rb +0 -40
  293. data/generated/google/apis/dfareporting_v3_1/classes.rb +0 -11998
  294. data/generated/google/apis/dfareporting_v3_1/representations.rb +0 -4313
  295. data/generated/google/apis/dfareporting_v3_1/service.rb +0 -8688
@@ -28,6 +28,30 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class AutoscalingConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AutoscalingPolicy
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class BasicAutoscalingAlgorithm
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class BasicYarnAutoscalingConfig
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
31
55
  class Binding
32
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
57
 
@@ -154,6 +178,12 @@ module Google
154
178
  include Google::Apis::Core::JsonObjectSupport
155
179
  end
156
180
 
181
+ class InstanceGroupAutoscalingPolicyConfig
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
157
187
  class InstanceGroupConfig
158
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
189
 
@@ -208,6 +238,12 @@ module Google
208
238
  include Google::Apis::Core::JsonObjectSupport
209
239
  end
210
240
 
241
+ class ListAutoscalingPoliciesResponse
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
211
247
  class ListClustersResponse
212
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
249
 
@@ -414,6 +450,47 @@ module Google
414
450
  end
415
451
  end
416
452
 
453
+ class AutoscalingConfig
454
+ # @private
455
+ class Representation < Google::Apis::Core::JsonRepresentation
456
+ property :policy_uri, as: 'policyUri'
457
+ end
458
+ end
459
+
460
+ class AutoscalingPolicy
461
+ # @private
462
+ class Representation < Google::Apis::Core::JsonRepresentation
463
+ property :basic_algorithm, as: 'basicAlgorithm', class: Google::Apis::DataprocV1::BasicAutoscalingAlgorithm, decorator: Google::Apis::DataprocV1::BasicAutoscalingAlgorithm::Representation
464
+
465
+ property :id, as: 'id'
466
+ property :name, as: 'name'
467
+ property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig, decorator: Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig::Representation
468
+
469
+ property :worker_config, as: 'workerConfig', class: Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig, decorator: Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig::Representation
470
+
471
+ end
472
+ end
473
+
474
+ class BasicAutoscalingAlgorithm
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ property :cooldown_period, as: 'cooldownPeriod'
478
+ property :yarn_config, as: 'yarnConfig', class: Google::Apis::DataprocV1::BasicYarnAutoscalingConfig, decorator: Google::Apis::DataprocV1::BasicYarnAutoscalingConfig::Representation
479
+
480
+ end
481
+ end
482
+
483
+ class BasicYarnAutoscalingConfig
484
+ # @private
485
+ class Representation < Google::Apis::Core::JsonRepresentation
486
+ property :graceful_decommission_timeout, as: 'gracefulDecommissionTimeout'
487
+ property :scale_down_factor, as: 'scaleDownFactor'
488
+ property :scale_down_min_worker_fraction, as: 'scaleDownMinWorkerFraction'
489
+ property :scale_up_factor, as: 'scaleUpFactor'
490
+ property :scale_up_min_worker_fraction, as: 'scaleUpMinWorkerFraction'
491
+ end
492
+ end
493
+
417
494
  class Binding
418
495
  # @private
419
496
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -451,6 +528,8 @@ module Google
451
528
  class ClusterConfig
452
529
  # @private
453
530
  class Representation < Google::Apis::Core::JsonRepresentation
531
+ property :autoscaling_config, as: 'autoscalingConfig', class: Google::Apis::DataprocV1::AutoscalingConfig, decorator: Google::Apis::DataprocV1::AutoscalingConfig::Representation
532
+
454
533
  property :config_bucket, as: 'configBucket'
455
534
  property :encryption_config, as: 'encryptionConfig', class: Google::Apis::DataprocV1::EncryptionConfig, decorator: Google::Apis::DataprocV1::EncryptionConfig::Representation
456
535
 
@@ -636,6 +715,15 @@ module Google
636
715
  end
637
716
  end
638
717
 
718
+ class InstanceGroupAutoscalingPolicyConfig
719
+ # @private
720
+ class Representation < Google::Apis::Core::JsonRepresentation
721
+ property :max_instances, as: 'maxInstances'
722
+ property :min_instances, as: 'minInstances'
723
+ property :weight, as: 'weight'
724
+ end
725
+ end
726
+
639
727
  class InstanceGroupConfig
640
728
  # @private
641
729
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -760,6 +848,15 @@ module Google
760
848
  end
761
849
  end
762
850
 
851
+ class ListAutoscalingPoliciesResponse
852
+ # @private
853
+ class Representation < Google::Apis::Core::JsonRepresentation
854
+ property :next_page_token, as: 'nextPageToken'
855
+ collection :policies, as: 'policies', class: Google::Apis::DataprocV1::AutoscalingPolicy, decorator: Google::Apis::DataprocV1::AutoscalingPolicy::Representation
856
+
857
+ end
858
+ end
859
+
763
860
  class ListClustersResponse
764
861
  # @private
765
862
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -47,6 +47,311 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
+ # Creates new autoscaling policy.
51
+ # @param [String] parent
52
+ # Required. The "resource name" of the region or location, as described in https:
53
+ # //cloud.google.com/apis/design/resource_names.
54
+ # For projects.regions.autoscalingPolicies.create, the resource name of the
55
+ # region has the following format: projects/`project_id`/regions/`region`
56
+ # For projects.locations.autoscalingPolicies.create, the resource name of the
57
+ # location has the following format: projects/`project_id`/locations/`location`
58
+ # @param [Google::Apis::DataprocV1::AutoscalingPolicy] autoscaling_policy_object
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [String] quota_user
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
+ # @param [Google::Apis::RequestOptions] options
65
+ # Request-specific options
66
+ #
67
+ # @yield [result, err] Result & error if block supplied
68
+ # @yieldparam result [Google::Apis::DataprocV1::AutoscalingPolicy] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::DataprocV1::AutoscalingPolicy]
72
+ #
73
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
76
+ def create_project_location_autoscaling_policy(parent, autoscaling_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
77
+ command = make_simple_command(:post, 'v1/{+parent}/autoscalingPolicies', options)
78
+ command.request_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
79
+ command.request_object = autoscaling_policy_object
80
+ command.response_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
81
+ command.response_class = Google::Apis::DataprocV1::AutoscalingPolicy
82
+ command.params['parent'] = parent unless parent.nil?
83
+ command.query['fields'] = fields unless fields.nil?
84
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
85
+ execute_or_queue_command(command, &block)
86
+ end
87
+
88
+ # Deletes an autoscaling policy. It is an error to delete an autoscaling policy
89
+ # that is in use by one or more clusters.
90
+ # @param [String] name
91
+ # Required. The "resource name" of the autoscaling policy, as described in https:
92
+ # //cloud.google.com/apis/design/resource_names.
93
+ # For projects.regions.autoscalingPolicies.delete, the resource name of the
94
+ # policy has the following format: projects/`project_id`/regions/`region`/
95
+ # autoscalingPolicies/`policy_id`
96
+ # For projects.locations.autoscalingPolicies.delete, the resource name of the
97
+ # policy has the following format: projects/`project_id`/locations/`location`/
98
+ # autoscalingPolicies/`policy_id`
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # @param [Google::Apis::RequestOptions] options
105
+ # Request-specific options
106
+ #
107
+ # @yield [result, err] Result & error if block supplied
108
+ # @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::DataprocV1::Empty]
112
+ #
113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
116
+ def delete_project_location_autoscaling_policy(name, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:delete, 'v1/{+name}', options)
118
+ command.response_representation = Google::Apis::DataprocV1::Empty::Representation
119
+ command.response_class = Google::Apis::DataprocV1::Empty
120
+ command.params['name'] = name unless name.nil?
121
+ command.query['fields'] = fields unless fields.nil?
122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
123
+ execute_or_queue_command(command, &block)
124
+ end
125
+
126
+ # Retrieves autoscaling policy.
127
+ # @param [String] name
128
+ # Required. The "resource name" of the autoscaling policy, as described in https:
129
+ # //cloud.google.com/apis/design/resource_names.
130
+ # For projects.regions.autoscalingPolicies.get, the resource name of the policy
131
+ # has the following format: projects/`project_id`/regions/`region`/
132
+ # autoscalingPolicies/`policy_id`
133
+ # For projects.locations.autoscalingPolicies.get, the resource name of the
134
+ # policy has the following format: projects/`project_id`/locations/`location`/
135
+ # autoscalingPolicies/`policy_id`
136
+ # @param [String] fields
137
+ # Selector specifying which fields to include in a partial response.
138
+ # @param [String] quota_user
139
+ # Available to use for quota purposes for server-side applications. Can be any
140
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
141
+ # @param [Google::Apis::RequestOptions] options
142
+ # Request-specific options
143
+ #
144
+ # @yield [result, err] Result & error if block supplied
145
+ # @yieldparam result [Google::Apis::DataprocV1::AutoscalingPolicy] parsed result object
146
+ # @yieldparam err [StandardError] error object if request failed
147
+ #
148
+ # @return [Google::Apis::DataprocV1::AutoscalingPolicy]
149
+ #
150
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
151
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
152
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
153
+ def get_project_location_autoscaling_policy(name, fields: nil, quota_user: nil, options: nil, &block)
154
+ command = make_simple_command(:get, 'v1/{+name}', options)
155
+ command.response_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
156
+ command.response_class = Google::Apis::DataprocV1::AutoscalingPolicy
157
+ command.params['name'] = name unless name.nil?
158
+ command.query['fields'] = fields unless fields.nil?
159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
160
+ execute_or_queue_command(command, &block)
161
+ end
162
+
163
+ # Gets the access control policy for a resource. Returns an empty policy if the
164
+ # resource exists and does not have a policy set.
165
+ # @param [String] resource
166
+ # REQUIRED: The resource for which the policy is being requested. See the
167
+ # operation documentation for the appropriate value for this field.
168
+ # @param [Google::Apis::DataprocV1::GetIamPolicyRequest] get_iam_policy_request_object
169
+ # @param [String] fields
170
+ # Selector specifying which fields to include in a partial response.
171
+ # @param [String] quota_user
172
+ # Available to use for quota purposes for server-side applications. Can be any
173
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
174
+ # @param [Google::Apis::RequestOptions] options
175
+ # Request-specific options
176
+ #
177
+ # @yield [result, err] Result & error if block supplied
178
+ # @yieldparam result [Google::Apis::DataprocV1::Policy] parsed result object
179
+ # @yieldparam err [StandardError] error object if request failed
180
+ #
181
+ # @return [Google::Apis::DataprocV1::Policy]
182
+ #
183
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
184
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
185
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
186
+ def get_project_location_autoscaling_policy_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
187
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
188
+ command.request_representation = Google::Apis::DataprocV1::GetIamPolicyRequest::Representation
189
+ command.request_object = get_iam_policy_request_object
190
+ command.response_representation = Google::Apis::DataprocV1::Policy::Representation
191
+ command.response_class = Google::Apis::DataprocV1::Policy
192
+ command.params['resource'] = resource unless resource.nil?
193
+ command.query['fields'] = fields unless fields.nil?
194
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
195
+ execute_or_queue_command(command, &block)
196
+ end
197
+
198
+ # Lists autoscaling policies in the project.
199
+ # @param [String] parent
200
+ # Required. The "resource name" of the region or location, as described in https:
201
+ # //cloud.google.com/apis/design/resource_names.
202
+ # For projects.regions.autoscalingPolicies.list, the resource name of the
203
+ # region has the following format: projects/`project_id`/regions/`region`
204
+ # For projects.locations.autoscalingPolicies.list, the resource name of the
205
+ # location has the following format: projects/`project_id`/locations/`location`
206
+ # @param [Fixnum] page_size
207
+ # Optional. The maximum number of results to return in each response. Must be
208
+ # less than or equal to 1000. Defaults to 100.
209
+ # @param [String] page_token
210
+ # Optional. The page token, returned by a previous call, to request the next
211
+ # page of results.
212
+ # @param [String] fields
213
+ # Selector specifying which fields to include in a partial response.
214
+ # @param [String] quota_user
215
+ # Available to use for quota purposes for server-side applications. Can be any
216
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
217
+ # @param [Google::Apis::RequestOptions] options
218
+ # Request-specific options
219
+ #
220
+ # @yield [result, err] Result & error if block supplied
221
+ # @yieldparam result [Google::Apis::DataprocV1::ListAutoscalingPoliciesResponse] parsed result object
222
+ # @yieldparam err [StandardError] error object if request failed
223
+ #
224
+ # @return [Google::Apis::DataprocV1::ListAutoscalingPoliciesResponse]
225
+ #
226
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
227
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
228
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
229
+ def list_project_location_autoscaling_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
230
+ command = make_simple_command(:get, 'v1/{+parent}/autoscalingPolicies', options)
231
+ command.response_representation = Google::Apis::DataprocV1::ListAutoscalingPoliciesResponse::Representation
232
+ command.response_class = Google::Apis::DataprocV1::ListAutoscalingPoliciesResponse
233
+ command.params['parent'] = parent unless parent.nil?
234
+ command.query['pageSize'] = page_size unless page_size.nil?
235
+ command.query['pageToken'] = page_token unless page_token.nil?
236
+ command.query['fields'] = fields unless fields.nil?
237
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
238
+ execute_or_queue_command(command, &block)
239
+ end
240
+
241
+ # Sets the access control policy on the specified resource. Replaces any
242
+ # existing policy.
243
+ # @param [String] resource
244
+ # REQUIRED: The resource for which the policy is being specified. See the
245
+ # operation documentation for the appropriate value for this field.
246
+ # @param [Google::Apis::DataprocV1::SetIamPolicyRequest] set_iam_policy_request_object
247
+ # @param [String] fields
248
+ # Selector specifying which fields to include in a partial response.
249
+ # @param [String] quota_user
250
+ # Available to use for quota purposes for server-side applications. Can be any
251
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
252
+ # @param [Google::Apis::RequestOptions] options
253
+ # Request-specific options
254
+ #
255
+ # @yield [result, err] Result & error if block supplied
256
+ # @yieldparam result [Google::Apis::DataprocV1::Policy] parsed result object
257
+ # @yieldparam err [StandardError] error object if request failed
258
+ #
259
+ # @return [Google::Apis::DataprocV1::Policy]
260
+ #
261
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
262
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
264
+ def set_project_location_autoscaling_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
265
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
266
+ command.request_representation = Google::Apis::DataprocV1::SetIamPolicyRequest::Representation
267
+ command.request_object = set_iam_policy_request_object
268
+ command.response_representation = Google::Apis::DataprocV1::Policy::Representation
269
+ command.response_class = Google::Apis::DataprocV1::Policy
270
+ command.params['resource'] = resource unless resource.nil?
271
+ command.query['fields'] = fields unless fields.nil?
272
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
273
+ execute_or_queue_command(command, &block)
274
+ end
275
+
276
+ # Returns permissions that a caller has on the specified resource. If the
277
+ # resource does not exist, this will return an empty set of permissions, not a
278
+ # NOT_FOUND error.Note: This operation is designed to be used for building
279
+ # permission-aware UIs and command-line tools, not for authorization checking.
280
+ # This operation may "fail open" without warning.
281
+ # @param [String] resource
282
+ # REQUIRED: The resource for which the policy detail is being requested. See the
283
+ # operation documentation for the appropriate value for this field.
284
+ # @param [Google::Apis::DataprocV1::TestIamPermissionsRequest] test_iam_permissions_request_object
285
+ # @param [String] fields
286
+ # Selector specifying which fields to include in a partial response.
287
+ # @param [String] quota_user
288
+ # Available to use for quota purposes for server-side applications. Can be any
289
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
290
+ # @param [Google::Apis::RequestOptions] options
291
+ # Request-specific options
292
+ #
293
+ # @yield [result, err] Result & error if block supplied
294
+ # @yieldparam result [Google::Apis::DataprocV1::TestIamPermissionsResponse] parsed result object
295
+ # @yieldparam err [StandardError] error object if request failed
296
+ #
297
+ # @return [Google::Apis::DataprocV1::TestIamPermissionsResponse]
298
+ #
299
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
300
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
301
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
302
+ def test_project_location_autoscaling_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
303
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
304
+ command.request_representation = Google::Apis::DataprocV1::TestIamPermissionsRequest::Representation
305
+ command.request_object = test_iam_permissions_request_object
306
+ command.response_representation = Google::Apis::DataprocV1::TestIamPermissionsResponse::Representation
307
+ command.response_class = Google::Apis::DataprocV1::TestIamPermissionsResponse
308
+ command.params['resource'] = resource unless resource.nil?
309
+ command.query['fields'] = fields unless fields.nil?
310
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
311
+ execute_or_queue_command(command, &block)
312
+ end
313
+
314
+ # Updates (replaces) autoscaling policy.Disabled check for update_mask, because
315
+ # all updates will be full replacements.
316
+ # @param [String] name
317
+ # Output only. The "resource name" of the autoscaling policy, as described in
318
+ # https://cloud.google.com/apis/design/resource_names.
319
+ # For projects.regions.autoscalingPolicies, the resource name of the policy has
320
+ # the following format: projects/`project_id`/regions/`region`/
321
+ # autoscalingPolicies/`policy_id`
322
+ # For projects.locations.autoscalingPolicies, the resource name of the policy
323
+ # has the following format: projects/`project_id`/locations/`location`/
324
+ # autoscalingPolicies/`policy_id`
325
+ # @param [Google::Apis::DataprocV1::AutoscalingPolicy] autoscaling_policy_object
326
+ # @param [String] fields
327
+ # Selector specifying which fields to include in a partial response.
328
+ # @param [String] quota_user
329
+ # Available to use for quota purposes for server-side applications. Can be any
330
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
331
+ # @param [Google::Apis::RequestOptions] options
332
+ # Request-specific options
333
+ #
334
+ # @yield [result, err] Result & error if block supplied
335
+ # @yieldparam result [Google::Apis::DataprocV1::AutoscalingPolicy] parsed result object
336
+ # @yieldparam err [StandardError] error object if request failed
337
+ #
338
+ # @return [Google::Apis::DataprocV1::AutoscalingPolicy]
339
+ #
340
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
341
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
342
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
343
+ def update_project_location_autoscaling_policy(name, autoscaling_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
344
+ command = make_simple_command(:put, 'v1/{+name}', options)
345
+ command.request_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
346
+ command.request_object = autoscaling_policy_object
347
+ command.response_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
348
+ command.response_class = Google::Apis::DataprocV1::AutoscalingPolicy
349
+ command.params['name'] = name unless name.nil?
350
+ command.query['fields'] = fields unless fields.nil?
351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
352
+ execute_or_queue_command(command, &block)
353
+ end
354
+
50
355
  # Creates new workflow template.
51
356
  # @param [String] parent
52
357
  # Required. The resource name of the region or location, as described in https://
@@ -460,6 +765,311 @@ module Google
460
765
  execute_or_queue_command(command, &block)
461
766
  end
462
767
 
768
+ # Creates new autoscaling policy.
769
+ # @param [String] parent
770
+ # Required. The "resource name" of the region or location, as described in https:
771
+ # //cloud.google.com/apis/design/resource_names.
772
+ # For projects.regions.autoscalingPolicies.create, the resource name of the
773
+ # region has the following format: projects/`project_id`/regions/`region`
774
+ # For projects.locations.autoscalingPolicies.create, the resource name of the
775
+ # location has the following format: projects/`project_id`/locations/`location`
776
+ # @param [Google::Apis::DataprocV1::AutoscalingPolicy] autoscaling_policy_object
777
+ # @param [String] fields
778
+ # Selector specifying which fields to include in a partial response.
779
+ # @param [String] quota_user
780
+ # Available to use for quota purposes for server-side applications. Can be any
781
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
782
+ # @param [Google::Apis::RequestOptions] options
783
+ # Request-specific options
784
+ #
785
+ # @yield [result, err] Result & error if block supplied
786
+ # @yieldparam result [Google::Apis::DataprocV1::AutoscalingPolicy] parsed result object
787
+ # @yieldparam err [StandardError] error object if request failed
788
+ #
789
+ # @return [Google::Apis::DataprocV1::AutoscalingPolicy]
790
+ #
791
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
792
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
793
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
794
+ def create_project_region_autoscaling_policy(parent, autoscaling_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
795
+ command = make_simple_command(:post, 'v1/{+parent}/autoscalingPolicies', options)
796
+ command.request_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
797
+ command.request_object = autoscaling_policy_object
798
+ command.response_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
799
+ command.response_class = Google::Apis::DataprocV1::AutoscalingPolicy
800
+ command.params['parent'] = parent unless parent.nil?
801
+ command.query['fields'] = fields unless fields.nil?
802
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
803
+ execute_or_queue_command(command, &block)
804
+ end
805
+
806
+ # Deletes an autoscaling policy. It is an error to delete an autoscaling policy
807
+ # that is in use by one or more clusters.
808
+ # @param [String] name
809
+ # Required. The "resource name" of the autoscaling policy, as described in https:
810
+ # //cloud.google.com/apis/design/resource_names.
811
+ # For projects.regions.autoscalingPolicies.delete, the resource name of the
812
+ # policy has the following format: projects/`project_id`/regions/`region`/
813
+ # autoscalingPolicies/`policy_id`
814
+ # For projects.locations.autoscalingPolicies.delete, the resource name of the
815
+ # policy has the following format: projects/`project_id`/locations/`location`/
816
+ # autoscalingPolicies/`policy_id`
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
+ # @param [Google::Apis::RequestOptions] options
823
+ # Request-specific options
824
+ #
825
+ # @yield [result, err] Result & error if block supplied
826
+ # @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
827
+ # @yieldparam err [StandardError] error object if request failed
828
+ #
829
+ # @return [Google::Apis::DataprocV1::Empty]
830
+ #
831
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
832
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
833
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
834
+ def delete_project_region_autoscaling_policy(name, fields: nil, quota_user: nil, options: nil, &block)
835
+ command = make_simple_command(:delete, 'v1/{+name}', options)
836
+ command.response_representation = Google::Apis::DataprocV1::Empty::Representation
837
+ command.response_class = Google::Apis::DataprocV1::Empty
838
+ command.params['name'] = name unless name.nil?
839
+ command.query['fields'] = fields unless fields.nil?
840
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
841
+ execute_or_queue_command(command, &block)
842
+ end
843
+
844
+ # Retrieves autoscaling policy.
845
+ # @param [String] name
846
+ # Required. The "resource name" of the autoscaling policy, as described in https:
847
+ # //cloud.google.com/apis/design/resource_names.
848
+ # For projects.regions.autoscalingPolicies.get, the resource name of the policy
849
+ # has the following format: projects/`project_id`/regions/`region`/
850
+ # autoscalingPolicies/`policy_id`
851
+ # For projects.locations.autoscalingPolicies.get, the resource name of the
852
+ # policy has the following format: projects/`project_id`/locations/`location`/
853
+ # autoscalingPolicies/`policy_id`
854
+ # @param [String] fields
855
+ # Selector specifying which fields to include in a partial response.
856
+ # @param [String] quota_user
857
+ # Available to use for quota purposes for server-side applications. Can be any
858
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
859
+ # @param [Google::Apis::RequestOptions] options
860
+ # Request-specific options
861
+ #
862
+ # @yield [result, err] Result & error if block supplied
863
+ # @yieldparam result [Google::Apis::DataprocV1::AutoscalingPolicy] parsed result object
864
+ # @yieldparam err [StandardError] error object if request failed
865
+ #
866
+ # @return [Google::Apis::DataprocV1::AutoscalingPolicy]
867
+ #
868
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
869
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
870
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
871
+ def get_project_region_autoscaling_policy(name, fields: nil, quota_user: nil, options: nil, &block)
872
+ command = make_simple_command(:get, 'v1/{+name}', options)
873
+ command.response_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
874
+ command.response_class = Google::Apis::DataprocV1::AutoscalingPolicy
875
+ command.params['name'] = name unless name.nil?
876
+ command.query['fields'] = fields unless fields.nil?
877
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
878
+ execute_or_queue_command(command, &block)
879
+ end
880
+
881
+ # Gets the access control policy for a resource. Returns an empty policy if the
882
+ # resource exists and does not have a policy set.
883
+ # @param [String] resource
884
+ # REQUIRED: The resource for which the policy is being requested. See the
885
+ # operation documentation for the appropriate value for this field.
886
+ # @param [Google::Apis::DataprocV1::GetIamPolicyRequest] get_iam_policy_request_object
887
+ # @param [String] fields
888
+ # Selector specifying which fields to include in a partial response.
889
+ # @param [String] quota_user
890
+ # Available to use for quota purposes for server-side applications. Can be any
891
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
892
+ # @param [Google::Apis::RequestOptions] options
893
+ # Request-specific options
894
+ #
895
+ # @yield [result, err] Result & error if block supplied
896
+ # @yieldparam result [Google::Apis::DataprocV1::Policy] parsed result object
897
+ # @yieldparam err [StandardError] error object if request failed
898
+ #
899
+ # @return [Google::Apis::DataprocV1::Policy]
900
+ #
901
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
902
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
903
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
904
+ def get_project_region_autoscaling_policy_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
905
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
906
+ command.request_representation = Google::Apis::DataprocV1::GetIamPolicyRequest::Representation
907
+ command.request_object = get_iam_policy_request_object
908
+ command.response_representation = Google::Apis::DataprocV1::Policy::Representation
909
+ command.response_class = Google::Apis::DataprocV1::Policy
910
+ command.params['resource'] = resource unless resource.nil?
911
+ command.query['fields'] = fields unless fields.nil?
912
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
913
+ execute_or_queue_command(command, &block)
914
+ end
915
+
916
+ # Lists autoscaling policies in the project.
917
+ # @param [String] parent
918
+ # Required. The "resource name" of the region or location, as described in https:
919
+ # //cloud.google.com/apis/design/resource_names.
920
+ # For projects.regions.autoscalingPolicies.list, the resource name of the
921
+ # region has the following format: projects/`project_id`/regions/`region`
922
+ # For projects.locations.autoscalingPolicies.list, the resource name of the
923
+ # location has the following format: projects/`project_id`/locations/`location`
924
+ # @param [Fixnum] page_size
925
+ # Optional. The maximum number of results to return in each response. Must be
926
+ # less than or equal to 1000. Defaults to 100.
927
+ # @param [String] page_token
928
+ # Optional. The page token, returned by a previous call, to request the next
929
+ # page of results.
930
+ # @param [String] fields
931
+ # Selector specifying which fields to include in a partial response.
932
+ # @param [String] quota_user
933
+ # Available to use for quota purposes for server-side applications. Can be any
934
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
935
+ # @param [Google::Apis::RequestOptions] options
936
+ # Request-specific options
937
+ #
938
+ # @yield [result, err] Result & error if block supplied
939
+ # @yieldparam result [Google::Apis::DataprocV1::ListAutoscalingPoliciesResponse] parsed result object
940
+ # @yieldparam err [StandardError] error object if request failed
941
+ #
942
+ # @return [Google::Apis::DataprocV1::ListAutoscalingPoliciesResponse]
943
+ #
944
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
945
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
946
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
947
+ def list_project_region_autoscaling_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
948
+ command = make_simple_command(:get, 'v1/{+parent}/autoscalingPolicies', options)
949
+ command.response_representation = Google::Apis::DataprocV1::ListAutoscalingPoliciesResponse::Representation
950
+ command.response_class = Google::Apis::DataprocV1::ListAutoscalingPoliciesResponse
951
+ command.params['parent'] = parent unless parent.nil?
952
+ command.query['pageSize'] = page_size unless page_size.nil?
953
+ command.query['pageToken'] = page_token unless page_token.nil?
954
+ command.query['fields'] = fields unless fields.nil?
955
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
956
+ execute_or_queue_command(command, &block)
957
+ end
958
+
959
+ # Sets the access control policy on the specified resource. Replaces any
960
+ # existing policy.
961
+ # @param [String] resource
962
+ # REQUIRED: The resource for which the policy is being specified. See the
963
+ # operation documentation for the appropriate value for this field.
964
+ # @param [Google::Apis::DataprocV1::SetIamPolicyRequest] set_iam_policy_request_object
965
+ # @param [String] fields
966
+ # Selector specifying which fields to include in a partial response.
967
+ # @param [String] quota_user
968
+ # Available to use for quota purposes for server-side applications. Can be any
969
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
970
+ # @param [Google::Apis::RequestOptions] options
971
+ # Request-specific options
972
+ #
973
+ # @yield [result, err] Result & error if block supplied
974
+ # @yieldparam result [Google::Apis::DataprocV1::Policy] parsed result object
975
+ # @yieldparam err [StandardError] error object if request failed
976
+ #
977
+ # @return [Google::Apis::DataprocV1::Policy]
978
+ #
979
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
980
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
981
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
982
+ def set_project_region_autoscaling_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
983
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
984
+ command.request_representation = Google::Apis::DataprocV1::SetIamPolicyRequest::Representation
985
+ command.request_object = set_iam_policy_request_object
986
+ command.response_representation = Google::Apis::DataprocV1::Policy::Representation
987
+ command.response_class = Google::Apis::DataprocV1::Policy
988
+ command.params['resource'] = resource unless resource.nil?
989
+ command.query['fields'] = fields unless fields.nil?
990
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
991
+ execute_or_queue_command(command, &block)
992
+ end
993
+
994
+ # Returns permissions that a caller has on the specified resource. If the
995
+ # resource does not exist, this will return an empty set of permissions, not a
996
+ # NOT_FOUND error.Note: This operation is designed to be used for building
997
+ # permission-aware UIs and command-line tools, not for authorization checking.
998
+ # This operation may "fail open" without warning.
999
+ # @param [String] resource
1000
+ # REQUIRED: The resource for which the policy detail is being requested. See the
1001
+ # operation documentation for the appropriate value for this field.
1002
+ # @param [Google::Apis::DataprocV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1003
+ # @param [String] fields
1004
+ # Selector specifying which fields to include in a partial response.
1005
+ # @param [String] quota_user
1006
+ # Available to use for quota purposes for server-side applications. Can be any
1007
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1008
+ # @param [Google::Apis::RequestOptions] options
1009
+ # Request-specific options
1010
+ #
1011
+ # @yield [result, err] Result & error if block supplied
1012
+ # @yieldparam result [Google::Apis::DataprocV1::TestIamPermissionsResponse] parsed result object
1013
+ # @yieldparam err [StandardError] error object if request failed
1014
+ #
1015
+ # @return [Google::Apis::DataprocV1::TestIamPermissionsResponse]
1016
+ #
1017
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1018
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1019
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1020
+ def test_project_region_autoscaling_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1021
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1022
+ command.request_representation = Google::Apis::DataprocV1::TestIamPermissionsRequest::Representation
1023
+ command.request_object = test_iam_permissions_request_object
1024
+ command.response_representation = Google::Apis::DataprocV1::TestIamPermissionsResponse::Representation
1025
+ command.response_class = Google::Apis::DataprocV1::TestIamPermissionsResponse
1026
+ command.params['resource'] = resource unless resource.nil?
1027
+ command.query['fields'] = fields unless fields.nil?
1028
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1029
+ execute_or_queue_command(command, &block)
1030
+ end
1031
+
1032
+ # Updates (replaces) autoscaling policy.Disabled check for update_mask, because
1033
+ # all updates will be full replacements.
1034
+ # @param [String] name
1035
+ # Output only. The "resource name" of the autoscaling policy, as described in
1036
+ # https://cloud.google.com/apis/design/resource_names.
1037
+ # For projects.regions.autoscalingPolicies, the resource name of the policy has
1038
+ # the following format: projects/`project_id`/regions/`region`/
1039
+ # autoscalingPolicies/`policy_id`
1040
+ # For projects.locations.autoscalingPolicies, the resource name of the policy
1041
+ # has the following format: projects/`project_id`/locations/`location`/
1042
+ # autoscalingPolicies/`policy_id`
1043
+ # @param [Google::Apis::DataprocV1::AutoscalingPolicy] autoscaling_policy_object
1044
+ # @param [String] fields
1045
+ # Selector specifying which fields to include in a partial response.
1046
+ # @param [String] quota_user
1047
+ # Available to use for quota purposes for server-side applications. Can be any
1048
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1049
+ # @param [Google::Apis::RequestOptions] options
1050
+ # Request-specific options
1051
+ #
1052
+ # @yield [result, err] Result & error if block supplied
1053
+ # @yieldparam result [Google::Apis::DataprocV1::AutoscalingPolicy] parsed result object
1054
+ # @yieldparam err [StandardError] error object if request failed
1055
+ #
1056
+ # @return [Google::Apis::DataprocV1::AutoscalingPolicy]
1057
+ #
1058
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1059
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1060
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1061
+ def update_project_region_autoscaling_policy(name, autoscaling_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1062
+ command = make_simple_command(:put, 'v1/{+name}', options)
1063
+ command.request_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
1064
+ command.request_object = autoscaling_policy_object
1065
+ command.response_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
1066
+ command.response_class = Google::Apis::DataprocV1::AutoscalingPolicy
1067
+ command.params['name'] = name unless name.nil?
1068
+ command.query['fields'] = fields unless fields.nil?
1069
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1070
+ execute_or_queue_command(command, &block)
1071
+ end
1072
+
463
1073
  # Creates a cluster in a project. The returned Operation.metadata will be
464
1074
  # ClusterOperationMetadata.
465
1075
  # @param [String] project_id
@@ -777,7 +1387,9 @@ module Google
777
1387
  # Update labels</td> </tr> <tr> <td><strong><em>config.worker_config.
778
1388
  # num_instances</em></strong></td> <td>Resize primary worker group</td> </tr>
779
1389
  # <tr> <td><strong><em>config.secondary_worker_config.num_instances</em></
780
- # strong></td> <td>Resize secondary worker group</td> </tr> </tbody> </table>
1390
+ # strong></td> <td>Resize secondary worker group</td> </tr> <tr> <td>config.
1391
+ # autoscaling_config.policy_uri</td><td>Use, stop using, or change autoscaling
1392
+ # policies</td> </tr> </tbody> </table>
781
1393
  # @param [String] fields
782
1394
  # Selector specifying which fields to include in a partial response.
783
1395
  # @param [String] quota_user