google-api-client 0.46.1 → 0.50.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (496) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/autoapprove.yml +49 -0
  3. data/.github/workflows/release-please.yml +77 -0
  4. data/.gitignore +2 -0
  5. data/.kokoro/trampoline.sh +0 -0
  6. data/CHANGELOG.md +666 -191
  7. data/Gemfile +1 -0
  8. data/Rakefile +31 -3
  9. data/api_list_config.yaml +8 -0
  10. data/bin/generate-api +77 -15
  11. data/generated/google/apis/accessapproval_v1.rb +1 -1
  12. data/generated/google/apis/accessapproval_v1/classes.rb +13 -15
  13. data/generated/google/apis/accessapproval_v1/service.rb +12 -9
  14. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +30 -30
  16. data/generated/google/apis/admin_directory_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/classes.rb +135 -0
  18. data/generated/google/apis/admin_directory_v1/representations.rb +62 -0
  19. data/generated/google/apis/admin_directory_v1/service.rb +72 -0
  20. data/generated/google/apis/admin_reports_v1.rb +1 -1
  21. data/generated/google/apis/admob_v1.rb +4 -1
  22. data/generated/google/apis/admob_v1/classes.rb +29 -29
  23. data/generated/google/apis/admob_v1/service.rb +4 -0
  24. data/generated/google/apis/admob_v1beta.rb +38 -0
  25. data/generated/google/apis/admob_v1beta/classes.rb +1035 -0
  26. data/generated/google/apis/admob_v1beta/representations.rb +472 -0
  27. data/generated/google/apis/admob_v1beta/service.rb +279 -0
  28. data/generated/google/apis/analyticsadmin_v1alpha.rb +1 -1
  29. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +19 -18
  30. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +12 -13
  31. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  32. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +179 -50
  33. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +50 -14
  34. data/generated/google/apis/analyticsdata_v1alpha/service.rb +49 -38
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +6 -0
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  38. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  39. data/generated/google/apis/androidmanagement_v1/classes.rb +29 -26
  40. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  41. data/generated/google/apis/androidpublisher_v3/classes.rb +2 -1
  42. data/generated/google/apis/androidpublisher_v3/service.rb +5 -2
  43. data/generated/google/apis/apigateway_v1beta.rb +1 -1
  44. data/generated/google/apis/apigateway_v1beta/classes.rb +8 -5
  45. data/generated/google/apis/apigateway_v1beta/representations.rb +1 -0
  46. data/generated/google/apis/apigee_v1.rb +1 -1
  47. data/generated/google/apis/apigee_v1/classes.rb +377 -137
  48. data/generated/google/apis/apigee_v1/representations.rb +109 -18
  49. data/generated/google/apis/apigee_v1/service.rb +673 -56
  50. data/generated/google/apis/area120tables_v1alpha1.rb +46 -0
  51. data/generated/google/apis/area120tables_v1alpha1/classes.rb +481 -0
  52. data/generated/google/apis/area120tables_v1alpha1/representations.rb +279 -0
  53. data/generated/google/apis/area120tables_v1alpha1/service.rb +448 -0
  54. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  55. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +7 -7
  56. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -1
  57. data/generated/google/apis/assuredworkloads_v1beta1.rb +1 -1
  58. data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +20 -0
  59. data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +2 -0
  60. data/generated/google/apis/bigquery_v2.rb +1 -1
  61. data/generated/google/apis/bigquery_v2/classes.rb +158 -5
  62. data/generated/google/apis/bigquery_v2/representations.rb +67 -0
  63. data/generated/google/apis/bigquery_v2/service.rb +46 -0
  64. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  65. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -0
  66. data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +1 -0
  67. data/generated/google/apis/billingbudgets_v1.rb +1 -1
  68. data/generated/google/apis/billingbudgets_v1/classes.rb +12 -1
  69. data/generated/google/apis/billingbudgets_v1/representations.rb +1 -0
  70. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  71. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +12 -1
  72. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  73. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  74. data/generated/google/apis/binaryauthorization_v1/classes.rb +3 -4
  75. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  76. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +3 -4
  77. data/generated/google/apis/books_v1.rb +1 -1
  78. data/generated/google/apis/books_v1/service.rb +52 -52
  79. data/generated/google/apis/calendar_v3.rb +1 -1
  80. data/generated/google/apis/calendar_v3/classes.rb +2 -2
  81. data/generated/google/apis/chat_v1.rb +1 -1
  82. data/generated/google/apis/chat_v1/classes.rb +7 -0
  83. data/generated/google/apis/chat_v1/representations.rb +1 -0
  84. data/generated/google/apis/civicinfo_v2.rb +1 -1
  85. data/generated/google/apis/civicinfo_v2/classes.rb +0 -24
  86. data/generated/google/apis/civicinfo_v2/representations.rb +0 -3
  87. data/generated/google/apis/classroom_v1.rb +1 -1
  88. data/generated/google/apis/classroom_v1/classes.rb +21 -21
  89. data/generated/google/apis/cloudasset_v1.rb +1 -1
  90. data/generated/google/apis/cloudasset_v1/classes.rb +1122 -0
  91. data/generated/google/apis/cloudasset_v1/representations.rb +474 -0
  92. data/generated/google/apis/cloudasset_v1/service.rb +171 -0
  93. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  94. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  95. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  96. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  97. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  98. data/generated/google/apis/cloudbilling_v1/classes.rb +1 -1
  99. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  100. data/generated/google/apis/cloudbuild_v1/classes.rb +2 -1
  101. data/generated/google/apis/cloudbuild_v1/service.rb +10 -2
  102. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  103. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  104. data/generated/google/apis/cloudidentity_v1/service.rb +7 -3
  105. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  106. data/generated/google/apis/cloudidentity_v1beta1/service.rb +29 -17
  107. data/generated/google/apis/cloudiot_v1.rb +1 -1
  108. data/generated/google/apis/cloudiot_v1/classes.rb +1 -2
  109. data/generated/google/apis/cloudkms_v1.rb +1 -1
  110. data/generated/google/apis/cloudkms_v1/classes.rb +1 -2
  111. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  112. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +401 -7
  113. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +280 -1
  114. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +401 -7
  116. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +280 -1
  117. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  118. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +405 -11
  119. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +280 -1
  120. data/generated/google/apis/cloudresourcemanager_v2/service.rb +13 -13
  121. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  122. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +405 -11
  123. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +280 -1
  124. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +13 -13
  125. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  126. data/generated/google/apis/cloudtasks_v2/classes.rb +1 -2
  127. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  128. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +1 -2
  129. data/generated/google/apis/cloudtasks_v2beta2/service.rb +12 -2
  130. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  131. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +1 -2
  132. data/generated/google/apis/compute_v1.rb +1 -1
  133. data/generated/google/apis/compute_v1/classes.rb +282 -29
  134. data/generated/google/apis/compute_v1/representations.rb +43 -0
  135. data/generated/google/apis/compute_v1/service.rb +4 -1
  136. data/generated/google/apis/container_v1.rb +1 -1
  137. data/generated/google/apis/container_v1/classes.rb +22 -10
  138. data/generated/google/apis/container_v1beta1.rb +1 -1
  139. data/generated/google/apis/container_v1beta1/classes.rb +51 -10
  140. data/generated/google/apis/container_v1beta1/representations.rb +15 -0
  141. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  142. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +1 -2
  143. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  144. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +1 -2
  145. data/generated/google/apis/content_v2.rb +3 -4
  146. data/generated/google/apis/content_v2/classes.rb +511 -1219
  147. data/generated/google/apis/content_v2/service.rb +380 -651
  148. data/generated/google/apis/content_v2_1.rb +3 -4
  149. data/generated/google/apis/content_v2_1/classes.rb +1353 -1061
  150. data/generated/google/apis/content_v2_1/representations.rb +342 -0
  151. data/generated/google/apis/content_v2_1/service.rb +948 -809
  152. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  153. data/generated/google/apis/datacatalog_v1beta1/classes.rb +26 -12
  154. data/generated/google/apis/datacatalog_v1beta1/representations.rb +5 -0
  155. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  156. data/generated/google/apis/dataflow_v1b3/classes.rb +12 -0
  157. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
  158. data/generated/google/apis/datalabeling_v1beta1.rb +34 -0
  159. data/generated/google/apis/datalabeling_v1beta1/classes.rb +6207 -0
  160. data/generated/google/apis/datalabeling_v1beta1/representations.rb +3156 -0
  161. data/generated/google/apis/datalabeling_v1beta1/service.rb +1762 -0
  162. data/generated/google/apis/datamigration_v1beta1.rb +34 -0
  163. data/generated/google/apis/datamigration_v1beta1/classes.rb +1670 -0
  164. data/generated/google/apis/datamigration_v1beta1/representations.rb +678 -0
  165. data/generated/google/apis/datamigration_v1beta1/service.rb +1172 -0
  166. data/generated/google/apis/dataproc_v1.rb +1 -1
  167. data/generated/google/apis/dataproc_v1/classes.rb +18 -7
  168. data/generated/google/apis/dataproc_v1/representations.rb +1 -0
  169. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  170. data/generated/google/apis/dataproc_v1beta2/classes.rb +18 -7
  171. data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
  172. data/generated/google/apis/datastore_v1.rb +1 -1
  173. data/generated/google/apis/datastore_v1/classes.rb +4 -4
  174. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  175. data/generated/google/apis/datastore_v1beta3/classes.rb +4 -4
  176. data/generated/google/apis/deploymentmanager_v2.rb +6 -4
  177. data/generated/google/apis/deploymentmanager_v2/classes.rb +209 -558
  178. data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -132
  179. data/generated/google/apis/deploymentmanager_v2/service.rb +169 -213
  180. data/generated/google/apis/deploymentmanager_v2beta.rb +6 -5
  181. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +253 -609
  182. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1 -132
  183. data/generated/google/apis/deploymentmanager_v2beta/service.rb +278 -359
  184. data/generated/google/apis/dfareporting_v3_3.rb +2 -2
  185. data/generated/google/apis/dfareporting_v3_3/classes.rb +6 -6
  186. data/generated/google/apis/dfareporting_v3_3/service.rb +12 -12
  187. data/generated/google/apis/dfareporting_v3_4.rb +2 -2
  188. data/generated/google/apis/dfareporting_v3_4/classes.rb +6 -6
  189. data/generated/google/apis/dfareporting_v3_4/service.rb +12 -12
  190. data/generated/google/apis/dialogflow_v2.rb +1 -1
  191. data/generated/google/apis/dialogflow_v2/classes.rb +649 -385
  192. data/generated/google/apis/dialogflow_v2/representations.rb +279 -192
  193. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  194. data/generated/google/apis/dialogflow_v2beta1/classes.rb +649 -385
  195. data/generated/google/apis/dialogflow_v2beta1/representations.rb +283 -196
  196. data/generated/google/apis/dialogflow_v2beta1/service.rb +14 -8
  197. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  198. data/generated/google/apis/dialogflow_v3beta1/classes.rb +712 -391
  199. data/generated/google/apis/dialogflow_v3beta1/representations.rb +301 -195
  200. data/generated/google/apis/dialogflow_v3beta1/service.rb +1 -1
  201. data/generated/google/apis/displayvideo_v1.rb +1 -1
  202. data/generated/google/apis/displayvideo_v1/classes.rb +241 -63
  203. data/generated/google/apis/displayvideo_v1/representations.rb +77 -0
  204. data/generated/google/apis/displayvideo_v1/service.rb +257 -17
  205. data/generated/google/apis/dlp_v2.rb +1 -1
  206. data/generated/google/apis/dlp_v2/classes.rb +39 -32
  207. data/generated/google/apis/dlp_v2/representations.rb +1 -0
  208. data/generated/google/apis/dns_v1.rb +2 -2
  209. data/generated/google/apis/dns_v1/classes.rb +181 -0
  210. data/generated/google/apis/dns_v1/representations.rb +83 -0
  211. data/generated/google/apis/dns_v1/service.rb +1 -1
  212. data/generated/google/apis/dns_v1beta2.rb +2 -2
  213. data/generated/google/apis/dns_v1beta2/classes.rb +195 -1
  214. data/generated/google/apis/dns_v1beta2/representations.rb +95 -0
  215. data/generated/google/apis/dns_v1beta2/service.rb +177 -1
  216. data/generated/google/apis/domains_v1alpha2.rb +34 -0
  217. data/generated/google/apis/domains_v1alpha2/classes.rb +1534 -0
  218. data/generated/google/apis/domains_v1alpha2/representations.rb +605 -0
  219. data/generated/google/apis/domains_v1alpha2/service.rb +805 -0
  220. data/generated/google/apis/domains_v1beta1.rb +34 -0
  221. data/generated/google/apis/domains_v1beta1/classes.rb +1534 -0
  222. data/generated/google/apis/domains_v1beta1/representations.rb +605 -0
  223. data/generated/google/apis/domains_v1beta1/service.rb +805 -0
  224. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  225. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -1
  226. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  227. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +2 -1
  228. data/generated/google/apis/drive_v2.rb +1 -1
  229. data/generated/google/apis/drive_v2/classes.rb +22 -20
  230. data/generated/google/apis/drive_v2/service.rb +2 -2
  231. data/generated/google/apis/drive_v3.rb +1 -1
  232. data/generated/google/apis/drive_v3/classes.rb +12 -9
  233. data/generated/google/apis/eventarc_v1beta1.rb +34 -0
  234. data/generated/google/apis/eventarc_v1beta1/classes.rb +937 -0
  235. data/generated/google/apis/eventarc_v1beta1/representations.rb +380 -0
  236. data/generated/google/apis/eventarc_v1beta1/service.rb +579 -0
  237. data/generated/google/apis/file_v1.rb +1 -1
  238. data/generated/google/apis/file_v1/classes.rb +505 -4
  239. data/generated/google/apis/file_v1/representations.rb +203 -0
  240. data/generated/google/apis/file_v1/service.rb +229 -1
  241. data/generated/google/apis/file_v1beta1.rb +1 -1
  242. data/generated/google/apis/file_v1beta1/classes.rb +346 -6
  243. data/generated/google/apis/file_v1beta1/representations.rb +149 -0
  244. data/generated/google/apis/file_v1beta1/service.rb +6 -2
  245. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  246. data/generated/google/apis/firebase_v1beta1/service.rb +17 -4
  247. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  248. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +2 -0
  249. data/generated/google/apis/firestore_v1.rb +1 -1
  250. data/generated/google/apis/firestore_v1/classes.rb +4 -4
  251. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  252. data/generated/google/apis/firestore_v1beta1/classes.rb +4 -4
  253. data/generated/google/apis/fitness_v1.rb +1 -1
  254. data/generated/google/apis/fitness_v1/service.rb +3 -1
  255. data/generated/google/apis/games_v1.rb +1 -1
  256. data/generated/google/apis/games_v1/classes.rb +300 -0
  257. data/generated/google/apis/games_v1/representations.rb +116 -0
  258. data/generated/google/apis/games_v1/service.rb +34 -0
  259. data/generated/google/apis/gameservices_v1.rb +1 -1
  260. data/generated/google/apis/gameservices_v1/classes.rb +16 -16
  261. data/generated/google/apis/gameservices_v1/service.rb +54 -51
  262. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  263. data/generated/google/apis/gameservices_v1beta/classes.rb +16 -16
  264. data/generated/google/apis/gameservices_v1beta/service.rb +54 -51
  265. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  266. data/generated/google/apis/genomics_v2alpha1/classes.rb +25 -0
  267. data/generated/google/apis/genomics_v2alpha1/representations.rb +15 -0
  268. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +1 -1
  269. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +10 -10
  270. data/generated/google/apis/healthcare_v1.rb +1 -1
  271. data/generated/google/apis/healthcare_v1/classes.rb +10 -4
  272. data/generated/google/apis/healthcare_v1/representations.rb +1 -0
  273. data/generated/google/apis/healthcare_v1/service.rb +2 -1
  274. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  275. data/generated/google/apis/healthcare_v1beta1/classes.rb +350 -46
  276. data/generated/google/apis/healthcare_v1beta1/representations.rb +150 -18
  277. data/generated/google/apis/healthcare_v1beta1/service.rb +91 -13
  278. data/generated/google/apis/iam_v1.rb +2 -5
  279. data/generated/google/apis/iam_v1/classes.rb +8 -11
  280. data/generated/google/apis/iam_v1/representations.rb +0 -1
  281. data/generated/google/apis/iam_v1/service.rb +1 -4
  282. data/generated/google/apis/iamcredentials_v1.rb +3 -4
  283. data/generated/google/apis/iamcredentials_v1/service.rb +2 -3
  284. data/generated/google/apis/iap_v1.rb +1 -1
  285. data/generated/google/apis/iap_v1/classes.rb +1 -13
  286. data/generated/google/apis/iap_v1/representations.rb +0 -1
  287. data/generated/google/apis/iap_v1beta1.rb +1 -1
  288. data/generated/google/apis/iap_v1beta1/classes.rb +1 -2
  289. data/generated/google/apis/licensing_v1.rb +1 -1
  290. data/generated/google/apis/localservices_v1.rb +1 -1
  291. data/generated/google/apis/localservices_v1/classes.rb +7 -0
  292. data/generated/google/apis/localservices_v1/representations.rb +2 -0
  293. data/generated/google/apis/localservices_v1/service.rb +20 -20
  294. data/generated/google/apis/logging_v2.rb +1 -1
  295. data/generated/google/apis/logging_v2/classes.rb +186 -10
  296. data/generated/google/apis/logging_v2/representations.rb +77 -0
  297. data/generated/google/apis/logging_v2/service.rb +446 -25
  298. data/generated/google/apis/managedidentities_v1.rb +1 -1
  299. data/generated/google/apis/managedidentities_v1/classes.rb +347 -7
  300. data/generated/google/apis/managedidentities_v1/representations.rb +149 -0
  301. data/generated/google/apis/managedidentities_v1/service.rb +1 -4
  302. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  303. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +426 -15
  304. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +182 -1
  305. data/generated/google/apis/managedidentities_v1alpha1/service.rb +83 -5
  306. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  307. data/generated/google/apis/managedidentities_v1beta1/classes.rb +427 -15
  308. data/generated/google/apis/managedidentities_v1beta1/representations.rb +182 -1
  309. data/generated/google/apis/managedidentities_v1beta1/service.rb +83 -5
  310. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  311. data/generated/google/apis/memcache_v1beta2/classes.rb +345 -4
  312. data/generated/google/apis/memcache_v1beta2/representations.rb +149 -0
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +273 -79
  315. data/generated/google/apis/ml_v1/representations.rb +43 -0
  316. data/generated/google/apis/ml_v1/service.rb +35 -0
  317. data/generated/google/apis/monitoring_v3.rb +1 -1
  318. data/generated/google/apis/monitoring_v3/classes.rb +19 -13
  319. data/generated/google/apis/monitoring_v3/service.rb +50 -1
  320. data/generated/google/apis/networkmanagement_v1.rb +1 -1
  321. data/generated/google/apis/networkmanagement_v1/classes.rb +6 -0
  322. data/generated/google/apis/networkmanagement_v1/representations.rb +1 -0
  323. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  324. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +57 -0
  325. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +31 -0
  326. data/generated/google/apis/notebooks_v1.rb +34 -0
  327. data/generated/google/apis/notebooks_v1/classes.rb +1461 -0
  328. data/generated/google/apis/notebooks_v1/representations.rb +581 -0
  329. data/generated/google/apis/notebooks_v1/service.rb +1042 -0
  330. data/generated/google/apis/people_v1.rb +1 -1
  331. data/generated/google/apis/people_v1/classes.rb +49 -49
  332. data/generated/google/apis/people_v1/service.rb +21 -18
  333. data/generated/google/apis/playablelocations_v3.rb +1 -1
  334. data/generated/google/apis/playablelocations_v3/classes.rb +6 -6
  335. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  336. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  337. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  338. data/generated/google/apis/poly_v1.rb +3 -4
  339. data/generated/google/apis/poly_v1/classes.rb +65 -79
  340. data/generated/google/apis/poly_v1/service.rb +50 -63
  341. data/generated/google/apis/privateca_v1beta1.rb +36 -0
  342. data/generated/google/apis/privateca_v1beta1/classes.rb +2466 -0
  343. data/generated/google/apis/privateca_v1beta1/representations.rb +996 -0
  344. data/generated/google/apis/privateca_v1beta1/service.rb +1437 -0
  345. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  346. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +109 -0
  347. data/generated/google/apis/pubsub_v1.rb +1 -1
  348. data/generated/google/apis/pubsub_v1/classes.rb +1 -2
  349. data/generated/google/apis/pubsub_v1/service.rb +2 -2
  350. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  351. data/generated/google/apis/pubsub_v1beta2/classes.rb +1 -2
  352. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  353. data/generated/google/apis/realtimebidding_v1/classes.rb +578 -33
  354. data/generated/google/apis/realtimebidding_v1/representations.rb +232 -0
  355. data/generated/google/apis/realtimebidding_v1/service.rb +454 -4
  356. data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
  357. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +32 -0
  358. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +25 -0
  359. data/generated/google/apis/recommender_v1.rb +1 -1
  360. data/generated/google/apis/recommender_v1/classes.rb +1 -1
  361. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  362. data/generated/google/apis/recommender_v1beta1/classes.rb +1 -1
  363. data/generated/google/apis/redis_v1.rb +1 -1
  364. data/generated/google/apis/redis_v1/classes.rb +86 -0
  365. data/generated/google/apis/redis_v1/representations.rb +34 -0
  366. data/generated/google/apis/redis_v1/service.rb +34 -0
  367. data/generated/google/apis/redis_v1beta1.rb +1 -1
  368. data/generated/google/apis/redis_v1beta1/classes.rb +58 -0
  369. data/generated/google/apis/redis_v1beta1/representations.rb +20 -0
  370. data/generated/google/apis/run_v1.rb +1 -1
  371. data/generated/google/apis/run_v1/classes.rb +7 -6
  372. data/generated/google/apis/run_v1alpha1.rb +1 -1
  373. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  374. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +0 -7
  375. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +0 -1
  376. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  377. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  378. data/generated/google/apis/sasportal_v1alpha1/service.rb +109 -0
  379. data/generated/google/apis/secretmanager_v1.rb +1 -1
  380. data/generated/google/apis/secretmanager_v1/classes.rb +0 -7
  381. data/generated/google/apis/secretmanager_v1/representations.rb +0 -1
  382. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  383. data/generated/google/apis/secretmanager_v1beta1/classes.rb +0 -7
  384. data/generated/google/apis/secretmanager_v1beta1/representations.rb +0 -1
  385. data/generated/google/apis/securitycenter_v1.rb +1 -1
  386. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  387. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  388. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +6 -64
  389. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -18
  390. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  391. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +6 -64
  392. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +0 -18
  393. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  394. data/generated/google/apis/servicecontrol_v1/classes.rb +77 -2
  395. data/generated/google/apis/servicecontrol_v1/representations.rb +10 -0
  396. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  397. data/generated/google/apis/servicecontrol_v2/classes.rb +62 -0
  398. data/generated/google/apis/servicecontrol_v2/representations.rb +8 -0
  399. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  400. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +27 -8
  401. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  402. data/generated/google/apis/servicemanagement_v1/classes.rb +6 -64
  403. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -18
  404. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  405. data/generated/google/apis/servicenetworking_v1/classes.rb +207 -65
  406. data/generated/google/apis/servicenetworking_v1/representations.rb +77 -14
  407. data/generated/google/apis/servicenetworking_v1/service.rb +82 -2
  408. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  409. data/generated/google/apis/servicenetworking_v1beta/classes.rb +140 -65
  410. data/generated/google/apis/servicenetworking_v1beta/representations.rb +46 -14
  411. data/generated/google/apis/serviceusage_v1.rb +1 -1
  412. data/generated/google/apis/serviceusage_v1/classes.rb +6 -64
  413. data/generated/google/apis/serviceusage_v1/representations.rb +0 -18
  414. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  415. data/generated/google/apis/serviceusage_v1beta1/classes.rb +36 -64
  416. data/generated/google/apis/serviceusage_v1beta1/representations.rb +15 -18
  417. data/generated/google/apis/serviceusage_v1beta1/service.rb +36 -0
  418. data/generated/google/apis/sheets_v4.rb +1 -1
  419. data/generated/google/apis/sheets_v4/classes.rb +23 -7
  420. data/generated/google/apis/sheets_v4/representations.rb +3 -0
  421. data/generated/google/apis/smartdevicemanagement_v1.rb +1 -1
  422. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +0 -34
  423. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +0 -16
  424. data/generated/google/apis/smartdevicemanagement_v1/service.rb +3 -8
  425. data/generated/google/apis/spanner_v1.rb +1 -1
  426. data/generated/google/apis/spanner_v1/classes.rb +2 -3
  427. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  428. data/generated/google/apis/sqladmin_v1beta4/classes.rb +28 -4
  429. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  430. data/generated/google/apis/storage_v1.rb +1 -1
  431. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  432. data/generated/google/apis/storagetransfer_v1/classes.rb +82 -50
  433. data/generated/google/apis/storagetransfer_v1/representations.rb +4 -0
  434. data/generated/google/apis/storagetransfer_v1/service.rb +20 -21
  435. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  436. data/generated/google/apis/streetviewpublish_v1/classes.rb +4 -4
  437. data/generated/google/apis/sts_v1beta.rb +1 -1
  438. data/generated/google/apis/sts_v1beta/classes.rb +12 -11
  439. data/generated/google/apis/tagmanager_v2.rb +1 -1
  440. data/generated/google/apis/tagmanager_v2/classes.rb +12 -0
  441. data/generated/google/apis/tagmanager_v2/representations.rb +3 -0
  442. data/generated/google/apis/testing_v1.rb +1 -1
  443. data/generated/google/apis/testing_v1/classes.rb +45 -33
  444. data/generated/google/apis/testing_v1/representations.rb +1 -0
  445. data/generated/google/apis/testing_v1/service.rb +4 -4
  446. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  447. data/generated/google/apis/toolresults_v1beta3/classes.rb +13 -0
  448. data/generated/google/apis/toolresults_v1beta3/representations.rb +12 -0
  449. data/generated/google/apis/tpu_v1.rb +1 -1
  450. data/generated/google/apis/tpu_v1/classes.rb +3 -3
  451. data/generated/google/apis/tpu_v1/service.rb +8 -8
  452. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  453. data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
  454. data/generated/google/apis/tpu_v1alpha1/service.rb +8 -8
  455. data/generated/google/apis/transcoder_v1beta1.rb +34 -0
  456. data/generated/google/apis/transcoder_v1beta1/classes.rb +1684 -0
  457. data/generated/google/apis/transcoder_v1beta1/representations.rb +756 -0
  458. data/generated/google/apis/transcoder_v1beta1/service.rb +329 -0
  459. data/generated/google/apis/translate_v3.rb +1 -1
  460. data/generated/google/apis/translate_v3/classes.rb +2 -1
  461. data/generated/google/apis/translate_v3beta1.rb +1 -1
  462. data/generated/google/apis/translate_v3beta1/classes.rb +2 -1
  463. data/generated/google/apis/vault_v1.rb +1 -1
  464. data/generated/google/apis/vault_v1/classes.rb +333 -0
  465. data/generated/google/apis/vault_v1/representations.rb +162 -0
  466. data/generated/google/apis/vault_v1/service.rb +151 -0
  467. data/generated/google/apis/videointelligence_v1.rb +1 -1
  468. data/generated/google/apis/videointelligence_v1/service.rb +0 -62
  469. data/generated/google/apis/vision_v1.rb +1 -1
  470. data/generated/google/apis/vision_v1/classes.rb +16 -16
  471. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  472. data/generated/google/apis/vision_v1p1beta1/classes.rb +16 -16
  473. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  474. data/generated/google/apis/vision_v1p2beta1/classes.rb +16 -16
  475. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  476. data/generated/google/apis/youtube_v3.rb +1 -1
  477. data/generated/google/apis/youtube_v3/service.rb +8 -8
  478. data/google-api-client.gemspec +25 -25
  479. data/lib/google/apis/core/api_command.rb +1 -0
  480. data/lib/google/apis/core/http_command.rb +2 -1
  481. data/lib/google/apis/options.rb +8 -5
  482. data/lib/google/apis/version.rb +1 -1
  483. data/synth.py +40 -0
  484. metadata +47 -16
  485. data/generated/google/apis/displayvideo_v1beta.rb +0 -38
  486. data/generated/google/apis/displayvideo_v1beta/classes.rb +0 -146
  487. data/generated/google/apis/displayvideo_v1beta/representations.rb +0 -72
  488. data/generated/google/apis/displayvideo_v1beta/service.rb +0 -161
  489. data/generated/google/apis/displayvideo_v1beta2.rb +0 -38
  490. data/generated/google/apis/displayvideo_v1beta2/classes.rb +0 -146
  491. data/generated/google/apis/displayvideo_v1beta2/representations.rb +0 -72
  492. data/generated/google/apis/displayvideo_v1beta2/service.rb +0 -130
  493. data/generated/google/apis/displayvideo_v1dev.rb +0 -38
  494. data/generated/google/apis/displayvideo_v1dev/classes.rb +0 -146
  495. data/generated/google/apis/displayvideo_v1dev/representations.rb +0 -72
  496. data/generated/google/apis/displayvideo_v1dev/service.rb +0 -130
@@ -0,0 +1,1437 @@
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 PrivatecaV1beta1
23
+ # Certificate Authority API
24
+ #
25
+ # The Certificate Authority Service API is a highly-available, scalable service
26
+ # that enables you to simplify and automate the management of private
27
+ # certificate authorities (CAs) while staying in control of your private keys."
28
+ #
29
+ # @example
30
+ # require 'google/apis/privateca_v1beta1'
31
+ #
32
+ # Privateca = Google::Apis::PrivatecaV1beta1 # Alias the module
33
+ # service = Privateca::CertificateAuthorityServiceService.new
34
+ #
35
+ # @see https://cloud.google.com/
36
+ class CertificateAuthorityServiceService < Google::Apis::Core::BaseService
37
+ # @return [String]
38
+ # API key. Your API key identifies your project and provides you with API access,
39
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
40
+ attr_accessor :key
41
+
42
+ # @return [String]
43
+ # Available to use for quota purposes for server-side applications. Can be any
44
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45
+ attr_accessor :quota_user
46
+
47
+ def initialize
48
+ super('https://privateca.googleapis.com/', '')
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Gets information about a location.
53
+ # @param [String] name
54
+ # Resource name for the location.
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [Google::Apis::RequestOptions] options
61
+ # Request-specific options
62
+ #
63
+ # @yield [result, err] Result & error if block supplied
64
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Location] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::PrivatecaV1beta1::Location]
68
+ #
69
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
72
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
74
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Location::Representation
75
+ command.response_class = Google::Apis::PrivatecaV1beta1::Location
76
+ command.params['name'] = name unless name.nil?
77
+ command.query['fields'] = fields unless fields.nil?
78
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
79
+ execute_or_queue_command(command, &block)
80
+ end
81
+
82
+ # Lists information about the supported locations for this service.
83
+ # @param [String] name
84
+ # The resource that owns the locations collection, if applicable.
85
+ # @param [String] filter
86
+ # The standard list filter.
87
+ # @param [Fixnum] page_size
88
+ # The standard list page size.
89
+ # @param [String] page_token
90
+ # The standard list page token.
91
+ # @param [String] fields
92
+ # Selector specifying which fields to include in a partial response.
93
+ # @param [String] quota_user
94
+ # Available to use for quota purposes for server-side applications. Can be any
95
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
96
+ # @param [Google::Apis::RequestOptions] options
97
+ # Request-specific options
98
+ #
99
+ # @yield [result, err] Result & error if block supplied
100
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::ListLocationsResponse] parsed result object
101
+ # @yieldparam err [StandardError] error object if request failed
102
+ #
103
+ # @return [Google::Apis::PrivatecaV1beta1::ListLocationsResponse]
104
+ #
105
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
106
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
107
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
108
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
109
+ command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
110
+ command.response_representation = Google::Apis::PrivatecaV1beta1::ListLocationsResponse::Representation
111
+ command.response_class = Google::Apis::PrivatecaV1beta1::ListLocationsResponse
112
+ command.params['name'] = name unless name.nil?
113
+ command.query['filter'] = filter unless filter.nil?
114
+ command.query['pageSize'] = page_size unless page_size.nil?
115
+ command.query['pageToken'] = page_token unless page_token.nil?
116
+ command.query['fields'] = fields unless fields.nil?
117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
118
+ execute_or_queue_command(command, &block)
119
+ end
120
+
121
+ # Activate a CertificateAuthority that is in state PENDING_ACTIVATION and is of
122
+ # type SUBORDINATE. After the parent Certificate Authority signs a certificate
123
+ # signing request from FetchCertificateAuthorityCsr, this method can complete
124
+ # the activation process.
125
+ # @param [String] name
126
+ # Required. The resource name for this CertificateAuthority in the format `
127
+ # projects/*/locations/*/certificateAuthorities/*`.
128
+ # @param [Google::Apis::PrivatecaV1beta1::ActivateCertificateAuthorityRequest] activate_certificate_authority_request_object
129
+ # @param [String] fields
130
+ # Selector specifying which fields to include in a partial response.
131
+ # @param [String] quota_user
132
+ # Available to use for quota purposes for server-side applications. Can be any
133
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
134
+ # @param [Google::Apis::RequestOptions] options
135
+ # Request-specific options
136
+ #
137
+ # @yield [result, err] Result & error if block supplied
138
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
139
+ # @yieldparam err [StandardError] error object if request failed
140
+ #
141
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
142
+ #
143
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
146
+ def activate_certificate_authority(name, activate_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
147
+ command = make_simple_command(:post, 'v1beta1/{+name}:activate', options)
148
+ command.request_representation = Google::Apis::PrivatecaV1beta1::ActivateCertificateAuthorityRequest::Representation
149
+ command.request_object = activate_certificate_authority_request_object
150
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
151
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
152
+ command.params['name'] = name unless name.nil?
153
+ command.query['fields'] = fields unless fields.nil?
154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
155
+ execute_or_queue_command(command, &block)
156
+ end
157
+
158
+ # Create a new CertificateAuthority in a given Project and Location.
159
+ # @param [String] parent
160
+ # Required. The resource name of the location associated with the
161
+ # CertificateAuthorities, in the format `projects/*/locations/*`.
162
+ # @param [Google::Apis::PrivatecaV1beta1::CertificateAuthority] certificate_authority_object
163
+ # @param [String] certificate_authority_id
164
+ # Required. It must be unique within a location and match the regular expression
165
+ # `[a-zA-Z0-9_-]`1,63``
166
+ # @param [String] request_id
167
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
168
+ # you must retry your request, the server will know to ignore the request if it
169
+ # has already been completed. The server will guarantee that for at least 60
170
+ # minutes since the first request. For example, consider a situation where you
171
+ # make an initial request and t he request times out. If you make the request
172
+ # again with the same request ID, the server can check if original operation
173
+ # with the same request ID was received, and if so, will ignore the second
174
+ # request. This prevents clients from accidentally creating duplicate
175
+ # commitments. The request ID must be a valid UUID with the exception that zero
176
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
177
+ # @param [String] fields
178
+ # Selector specifying which fields to include in a partial response.
179
+ # @param [String] quota_user
180
+ # Available to use for quota purposes for server-side applications. Can be any
181
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
182
+ # @param [Google::Apis::RequestOptions] options
183
+ # Request-specific options
184
+ #
185
+ # @yield [result, err] Result & error if block supplied
186
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
187
+ # @yieldparam err [StandardError] error object if request failed
188
+ #
189
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
190
+ #
191
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
192
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
193
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
194
+ def create_project_location_certificate_authority(parent, certificate_authority_object = nil, certificate_authority_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
195
+ command = make_simple_command(:post, 'v1beta1/{+parent}/certificateAuthorities', options)
196
+ command.request_representation = Google::Apis::PrivatecaV1beta1::CertificateAuthority::Representation
197
+ command.request_object = certificate_authority_object
198
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
199
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
200
+ command.params['parent'] = parent unless parent.nil?
201
+ command.query['certificateAuthorityId'] = certificate_authority_id unless certificate_authority_id.nil?
202
+ command.query['requestId'] = request_id unless request_id.nil?
203
+ command.query['fields'] = fields unless fields.nil?
204
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
205
+ execute_or_queue_command(command, &block)
206
+ end
207
+
208
+ # Disable a CertificateAuthority.
209
+ # @param [String] name
210
+ # Required. The resource name for this CertificateAuthority in the format `
211
+ # projects/*/locations/*/certificateAuthorities/*`.
212
+ # @param [Google::Apis::PrivatecaV1beta1::DisableCertificateAuthorityRequest] disable_certificate_authority_request_object
213
+ # @param [String] fields
214
+ # Selector specifying which fields to include in a partial response.
215
+ # @param [String] quota_user
216
+ # Available to use for quota purposes for server-side applications. Can be any
217
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
218
+ # @param [Google::Apis::RequestOptions] options
219
+ # Request-specific options
220
+ #
221
+ # @yield [result, err] Result & error if block supplied
222
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
223
+ # @yieldparam err [StandardError] error object if request failed
224
+ #
225
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
226
+ #
227
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
228
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
229
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
230
+ def disable_certificate_authority(name, disable_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
231
+ command = make_simple_command(:post, 'v1beta1/{+name}:disable', options)
232
+ command.request_representation = Google::Apis::PrivatecaV1beta1::DisableCertificateAuthorityRequest::Representation
233
+ command.request_object = disable_certificate_authority_request_object
234
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
235
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
236
+ command.params['name'] = name unless name.nil?
237
+ command.query['fields'] = fields unless fields.nil?
238
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
239
+ execute_or_queue_command(command, &block)
240
+ end
241
+
242
+ # Enable a CertificateAuthority.
243
+ # @param [String] name
244
+ # Required. The resource name for this CertificateAuthority in the format `
245
+ # projects/*/locations/*/certificateAuthorities/*`.
246
+ # @param [Google::Apis::PrivatecaV1beta1::EnableCertificateAuthorityRequest] enable_certificate_authority_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::PrivatecaV1beta1::Operation] parsed result object
257
+ # @yieldparam err [StandardError] error object if request failed
258
+ #
259
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
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 enable_certificate_authority(name, enable_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
265
+ command = make_simple_command(:post, 'v1beta1/{+name}:enable', options)
266
+ command.request_representation = Google::Apis::PrivatecaV1beta1::EnableCertificateAuthorityRequest::Representation
267
+ command.request_object = enable_certificate_authority_request_object
268
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
269
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
270
+ command.params['name'] = name unless name.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
+ # Fetch a certificate signing request (CSR) from a CertificateAuthority that is
277
+ # in state PENDING_ACTIVATION and is of type SUBORDINATE. The CSR must then be
278
+ # signed by the desired parent Certificate Authority, which could be another
279
+ # CertificateAuthority resource, or could be an on-prem certificate authority.
280
+ # See also ActivateCertificateAuthority.
281
+ # @param [String] name
282
+ # Required. The resource name for this CertificateAuthority in the format `
283
+ # projects/*/locations/*/certificateAuthorities/*`.
284
+ # @param [String] fields
285
+ # Selector specifying which fields to include in a partial response.
286
+ # @param [String] quota_user
287
+ # Available to use for quota purposes for server-side applications. Can be any
288
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
289
+ # @param [Google::Apis::RequestOptions] options
290
+ # Request-specific options
291
+ #
292
+ # @yield [result, err] Result & error if block supplied
293
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::FetchCertificateAuthorityCsrResponse] parsed result object
294
+ # @yieldparam err [StandardError] error object if request failed
295
+ #
296
+ # @return [Google::Apis::PrivatecaV1beta1::FetchCertificateAuthorityCsrResponse]
297
+ #
298
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
299
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
300
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
301
+ def fetch_project_location_certificate_authority(name, fields: nil, quota_user: nil, options: nil, &block)
302
+ command = make_simple_command(:get, 'v1beta1/{+name}:fetch', options)
303
+ command.response_representation = Google::Apis::PrivatecaV1beta1::FetchCertificateAuthorityCsrResponse::Representation
304
+ command.response_class = Google::Apis::PrivatecaV1beta1::FetchCertificateAuthorityCsrResponse
305
+ command.params['name'] = name unless name.nil?
306
+ command.query['fields'] = fields unless fields.nil?
307
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
308
+ execute_or_queue_command(command, &block)
309
+ end
310
+
311
+ # Returns a CertificateAuthority.
312
+ # @param [String] name
313
+ # Required. The name of the CertificateAuthority to get.
314
+ # @param [String] fields
315
+ # Selector specifying which fields to include in a partial response.
316
+ # @param [String] quota_user
317
+ # Available to use for quota purposes for server-side applications. Can be any
318
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
319
+ # @param [Google::Apis::RequestOptions] options
320
+ # Request-specific options
321
+ #
322
+ # @yield [result, err] Result & error if block supplied
323
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::CertificateAuthority] parsed result object
324
+ # @yieldparam err [StandardError] error object if request failed
325
+ #
326
+ # @return [Google::Apis::PrivatecaV1beta1::CertificateAuthority]
327
+ #
328
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
329
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
330
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
331
+ def get_project_location_certificate_authority(name, fields: nil, quota_user: nil, options: nil, &block)
332
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
333
+ command.response_representation = Google::Apis::PrivatecaV1beta1::CertificateAuthority::Representation
334
+ command.response_class = Google::Apis::PrivatecaV1beta1::CertificateAuthority
335
+ command.params['name'] = name unless name.nil?
336
+ command.query['fields'] = fields unless fields.nil?
337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
338
+ execute_or_queue_command(command, &block)
339
+ end
340
+
341
+ # Gets the access control policy for a resource. Returns an empty policy if the
342
+ # resource exists and does not have a policy set.
343
+ # @param [String] resource
344
+ # REQUIRED: The resource for which the policy is being requested. See the
345
+ # operation documentation for the appropriate value for this field.
346
+ # @param [Fixnum] options_requested_policy_version
347
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
348
+ # 3. Requests specifying an invalid value will be rejected. Requests for
349
+ # policies with any conditional bindings must specify version 3. Policies
350
+ # without any conditional bindings may specify any valid value or leave the
351
+ # field unset. To learn which resources support conditions in their IAM policies,
352
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
353
+ # resource-policies).
354
+ # @param [String] fields
355
+ # Selector specifying which fields to include in a partial response.
356
+ # @param [String] quota_user
357
+ # Available to use for quota purposes for server-side applications. Can be any
358
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
359
+ # @param [Google::Apis::RequestOptions] options
360
+ # Request-specific options
361
+ #
362
+ # @yield [result, err] Result & error if block supplied
363
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Policy] parsed result object
364
+ # @yieldparam err [StandardError] error object if request failed
365
+ #
366
+ # @return [Google::Apis::PrivatecaV1beta1::Policy]
367
+ #
368
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
369
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
370
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
371
+ def get_project_location_certificate_authority_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
372
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
373
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation
374
+ command.response_class = Google::Apis::PrivatecaV1beta1::Policy
375
+ command.params['resource'] = resource unless resource.nil?
376
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
377
+ command.query['fields'] = fields unless fields.nil?
378
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
379
+ execute_or_queue_command(command, &block)
380
+ end
381
+
382
+ # Lists CertificateAuthorities.
383
+ # @param [String] parent
384
+ # Required. The resource name of the location associated with the
385
+ # CertificateAuthorities, in the format `projects/*/locations/*`.
386
+ # @param [String] filter
387
+ # Optional. Only include resources that match the filter in the response.
388
+ # @param [String] order_by
389
+ # Optional. Specify how the results should be sorted.
390
+ # @param [Fixnum] page_size
391
+ # Optional. Limit on the number of CertificateAuthorities to include in the
392
+ # response. Further CertificateAuthorities can subsequently be obtained by
393
+ # including the ListCertificateAuthoritiesResponse.next_page_token in a
394
+ # subsequent request. If unspecified, the server will pick an appropriate
395
+ # default.
396
+ # @param [String] page_token
397
+ # Optional. Pagination token, returned earlier via
398
+ # ListCertificateAuthoritiesResponse.next_page_token.
399
+ # @param [String] fields
400
+ # Selector specifying which fields to include in a partial response.
401
+ # @param [String] quota_user
402
+ # Available to use for quota purposes for server-side applications. Can be any
403
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
404
+ # @param [Google::Apis::RequestOptions] options
405
+ # Request-specific options
406
+ #
407
+ # @yield [result, err] Result & error if block supplied
408
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::ListCertificateAuthoritiesResponse] parsed result object
409
+ # @yieldparam err [StandardError] error object if request failed
410
+ #
411
+ # @return [Google::Apis::PrivatecaV1beta1::ListCertificateAuthoritiesResponse]
412
+ #
413
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
414
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
415
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
416
+ def list_project_location_certificate_authorities(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
417
+ command = make_simple_command(:get, 'v1beta1/{+parent}/certificateAuthorities', options)
418
+ command.response_representation = Google::Apis::PrivatecaV1beta1::ListCertificateAuthoritiesResponse::Representation
419
+ command.response_class = Google::Apis::PrivatecaV1beta1::ListCertificateAuthoritiesResponse
420
+ command.params['parent'] = parent unless parent.nil?
421
+ command.query['filter'] = filter unless filter.nil?
422
+ command.query['orderBy'] = order_by unless order_by.nil?
423
+ command.query['pageSize'] = page_size unless page_size.nil?
424
+ command.query['pageToken'] = page_token unless page_token.nil?
425
+ command.query['fields'] = fields unless fields.nil?
426
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
427
+ execute_or_queue_command(command, &block)
428
+ end
429
+
430
+ # Update a CertificateAuthority.
431
+ # @param [String] name
432
+ # Output only. The resource name for this CertificateAuthority in the format `
433
+ # projects/*/locations/*/certificateAuthorities/*`.
434
+ # @param [Google::Apis::PrivatecaV1beta1::CertificateAuthority] certificate_authority_object
435
+ # @param [String] request_id
436
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
437
+ # you must retry your request, the server will know to ignore the request if it
438
+ # has already been completed. The server will guarantee that for at least 60
439
+ # minutes since the first request. For example, consider a situation where you
440
+ # make an initial request and t he request times out. If you make the request
441
+ # again with the same request ID, the server can check if original operation
442
+ # with the same request ID was received, and if so, will ignore the second
443
+ # request. This prevents clients from accidentally creating duplicate
444
+ # commitments. The request ID must be a valid UUID with the exception that zero
445
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
446
+ # @param [String] update_mask
447
+ # Required. A list of fields to be updated in this request.
448
+ # @param [String] fields
449
+ # Selector specifying which fields to include in a partial response.
450
+ # @param [String] quota_user
451
+ # Available to use for quota purposes for server-side applications. Can be any
452
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
453
+ # @param [Google::Apis::RequestOptions] options
454
+ # Request-specific options
455
+ #
456
+ # @yield [result, err] Result & error if block supplied
457
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
458
+ # @yieldparam err [StandardError] error object if request failed
459
+ #
460
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
461
+ #
462
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
463
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
464
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
465
+ def patch_project_location_certificate_authority(name, certificate_authority_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
466
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
467
+ command.request_representation = Google::Apis::PrivatecaV1beta1::CertificateAuthority::Representation
468
+ command.request_object = certificate_authority_object
469
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
470
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
471
+ command.params['name'] = name unless name.nil?
472
+ command.query['requestId'] = request_id unless request_id.nil?
473
+ command.query['updateMask'] = update_mask unless update_mask.nil?
474
+ command.query['fields'] = fields unless fields.nil?
475
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
476
+ execute_or_queue_command(command, &block)
477
+ end
478
+
479
+ # Restore a CertificateAuthority that is scheduled for deletion.
480
+ # @param [String] name
481
+ # Required. The resource name for this CertificateAuthority in the format `
482
+ # projects/*/locations/*/certificateAuthorities/*`.
483
+ # @param [Google::Apis::PrivatecaV1beta1::RestoreCertificateAuthorityRequest] restore_certificate_authority_request_object
484
+ # @param [String] fields
485
+ # Selector specifying which fields to include in a partial response.
486
+ # @param [String] quota_user
487
+ # Available to use for quota purposes for server-side applications. Can be any
488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
489
+ # @param [Google::Apis::RequestOptions] options
490
+ # Request-specific options
491
+ #
492
+ # @yield [result, err] Result & error if block supplied
493
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
494
+ # @yieldparam err [StandardError] error object if request failed
495
+ #
496
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
497
+ #
498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
501
+ def restore_certificate_authority(name, restore_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
502
+ command = make_simple_command(:post, 'v1beta1/{+name}:restore', options)
503
+ command.request_representation = Google::Apis::PrivatecaV1beta1::RestoreCertificateAuthorityRequest::Representation
504
+ command.request_object = restore_certificate_authority_request_object
505
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
506
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
507
+ command.params['name'] = name unless name.nil?
508
+ command.query['fields'] = fields unless fields.nil?
509
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
510
+ execute_or_queue_command(command, &block)
511
+ end
512
+
513
+ # Schedule a CertificateAuthority for deletion.
514
+ # @param [String] name
515
+ # Required. The resource name for this CertificateAuthority in the format `
516
+ # projects/*/locations/*/certificateAuthorities/*`.
517
+ # @param [Google::Apis::PrivatecaV1beta1::ScheduleDeleteCertificateAuthorityRequest] schedule_delete_certificate_authority_request_object
518
+ # @param [String] fields
519
+ # Selector specifying which fields to include in a partial response.
520
+ # @param [String] quota_user
521
+ # Available to use for quota purposes for server-side applications. Can be any
522
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
523
+ # @param [Google::Apis::RequestOptions] options
524
+ # Request-specific options
525
+ #
526
+ # @yield [result, err] Result & error if block supplied
527
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
528
+ # @yieldparam err [StandardError] error object if request failed
529
+ #
530
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
531
+ #
532
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
533
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
534
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
535
+ def schedule_delete_certificate_authority(name, schedule_delete_certificate_authority_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
536
+ command = make_simple_command(:post, 'v1beta1/{+name}:scheduleDelete', options)
537
+ command.request_representation = Google::Apis::PrivatecaV1beta1::ScheduleDeleteCertificateAuthorityRequest::Representation
538
+ command.request_object = schedule_delete_certificate_authority_request_object
539
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
540
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
541
+ command.params['name'] = name unless name.nil?
542
+ command.query['fields'] = fields unless fields.nil?
543
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
544
+ execute_or_queue_command(command, &block)
545
+ end
546
+
547
+ # Sets the access control policy on the specified resource. Replaces any
548
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
549
+ # PERMISSION_DENIED` errors.
550
+ # @param [String] resource
551
+ # REQUIRED: The resource for which the policy is being specified. See the
552
+ # operation documentation for the appropriate value for this field.
553
+ # @param [Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
554
+ # @param [String] fields
555
+ # Selector specifying which fields to include in a partial response.
556
+ # @param [String] quota_user
557
+ # Available to use for quota purposes for server-side applications. Can be any
558
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
559
+ # @param [Google::Apis::RequestOptions] options
560
+ # Request-specific options
561
+ #
562
+ # @yield [result, err] Result & error if block supplied
563
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Policy] parsed result object
564
+ # @yieldparam err [StandardError] error object if request failed
565
+ #
566
+ # @return [Google::Apis::PrivatecaV1beta1::Policy]
567
+ #
568
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
569
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
570
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
571
+ def set_certificate_authority_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
572
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
573
+ command.request_representation = Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest::Representation
574
+ command.request_object = set_iam_policy_request_object
575
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation
576
+ command.response_class = Google::Apis::PrivatecaV1beta1::Policy
577
+ command.params['resource'] = resource unless resource.nil?
578
+ command.query['fields'] = fields unless fields.nil?
579
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
580
+ execute_or_queue_command(command, &block)
581
+ end
582
+
583
+ # Returns permissions that a caller has on the specified resource. If the
584
+ # resource does not exist, this will return an empty set of permissions, not a `
585
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
586
+ # permission-aware UIs and command-line tools, not for authorization checking.
587
+ # This operation may "fail open" without warning.
588
+ # @param [String] resource
589
+ # REQUIRED: The resource for which the policy detail is being requested. See the
590
+ # operation documentation for the appropriate value for this field.
591
+ # @param [Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
592
+ # @param [String] fields
593
+ # Selector specifying which fields to include in a partial response.
594
+ # @param [String] quota_user
595
+ # Available to use for quota purposes for server-side applications. Can be any
596
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
597
+ # @param [Google::Apis::RequestOptions] options
598
+ # Request-specific options
599
+ #
600
+ # @yield [result, err] Result & error if block supplied
601
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse] parsed result object
602
+ # @yieldparam err [StandardError] error object if request failed
603
+ #
604
+ # @return [Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse]
605
+ #
606
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
607
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
608
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
609
+ def test_certificate_authority_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
610
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
611
+ command.request_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest::Representation
612
+ command.request_object = test_iam_permissions_request_object
613
+ command.response_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse::Representation
614
+ command.response_class = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse
615
+ command.params['resource'] = resource unless resource.nil?
616
+ command.query['fields'] = fields unless fields.nil?
617
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
618
+ execute_or_queue_command(command, &block)
619
+ end
620
+
621
+ # Returns a CertificateRevocationList.
622
+ # @param [String] name
623
+ # Required. The name of the CertificateRevocationList to get.
624
+ # @param [String] fields
625
+ # Selector specifying which fields to include in a partial response.
626
+ # @param [String] quota_user
627
+ # Available to use for quota purposes for server-side applications. Can be any
628
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
629
+ # @param [Google::Apis::RequestOptions] options
630
+ # Request-specific options
631
+ #
632
+ # @yield [result, err] Result & error if block supplied
633
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::CertificateRevocationList] parsed result object
634
+ # @yieldparam err [StandardError] error object if request failed
635
+ #
636
+ # @return [Google::Apis::PrivatecaV1beta1::CertificateRevocationList]
637
+ #
638
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
639
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
640
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
641
+ def get_project_location_certificate_authority_certificate_revocation_list(name, fields: nil, quota_user: nil, options: nil, &block)
642
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
643
+ command.response_representation = Google::Apis::PrivatecaV1beta1::CertificateRevocationList::Representation
644
+ command.response_class = Google::Apis::PrivatecaV1beta1::CertificateRevocationList
645
+ command.params['name'] = name unless name.nil?
646
+ command.query['fields'] = fields unless fields.nil?
647
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
648
+ execute_or_queue_command(command, &block)
649
+ end
650
+
651
+ # Gets the access control policy for a resource. Returns an empty policy if the
652
+ # resource exists and does not have a policy set.
653
+ # @param [String] resource
654
+ # REQUIRED: The resource for which the policy is being requested. See the
655
+ # operation documentation for the appropriate value for this field.
656
+ # @param [Fixnum] options_requested_policy_version
657
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
658
+ # 3. Requests specifying an invalid value will be rejected. Requests for
659
+ # policies with any conditional bindings must specify version 3. Policies
660
+ # without any conditional bindings may specify any valid value or leave the
661
+ # field unset. To learn which resources support conditions in their IAM policies,
662
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
663
+ # resource-policies).
664
+ # @param [String] fields
665
+ # Selector specifying which fields to include in a partial response.
666
+ # @param [String] quota_user
667
+ # Available to use for quota purposes for server-side applications. Can be any
668
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
669
+ # @param [Google::Apis::RequestOptions] options
670
+ # Request-specific options
671
+ #
672
+ # @yield [result, err] Result & error if block supplied
673
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Policy] parsed result object
674
+ # @yieldparam err [StandardError] error object if request failed
675
+ #
676
+ # @return [Google::Apis::PrivatecaV1beta1::Policy]
677
+ #
678
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
679
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
680
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
681
+ def get_project_location_certificate_authority_certificate_revocation_list_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
682
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
683
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation
684
+ command.response_class = Google::Apis::PrivatecaV1beta1::Policy
685
+ command.params['resource'] = resource unless resource.nil?
686
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
687
+ command.query['fields'] = fields unless fields.nil?
688
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
689
+ execute_or_queue_command(command, &block)
690
+ end
691
+
692
+ # Lists CertificateRevocationLists.
693
+ # @param [String] parent
694
+ # Required. The resource name of the location associated with the
695
+ # CertificateRevocationLists, in the format `projects/*/locations/*/
696
+ # certificateauthorities/*`.
697
+ # @param [String] filter
698
+ # Optional. Only include resources that match the filter in the response.
699
+ # @param [String] order_by
700
+ # Optional. Specify how the results should be sorted.
701
+ # @param [Fixnum] page_size
702
+ # Optional. Limit on the number of CertificateRevocationLists to include in the
703
+ # response. Further CertificateRevocationLists can subsequently be obtained by
704
+ # including the ListCertificateRevocationListsResponse.next_page_token in a
705
+ # subsequent request. If unspecified, the server will pick an appropriate
706
+ # default.
707
+ # @param [String] page_token
708
+ # Optional. Pagination token, returned earlier via
709
+ # ListCertificateRevocationListsResponse.next_page_token.
710
+ # @param [String] fields
711
+ # Selector specifying which fields to include in a partial response.
712
+ # @param [String] quota_user
713
+ # Available to use for quota purposes for server-side applications. Can be any
714
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
715
+ # @param [Google::Apis::RequestOptions] options
716
+ # Request-specific options
717
+ #
718
+ # @yield [result, err] Result & error if block supplied
719
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::ListCertificateRevocationListsResponse] parsed result object
720
+ # @yieldparam err [StandardError] error object if request failed
721
+ #
722
+ # @return [Google::Apis::PrivatecaV1beta1::ListCertificateRevocationListsResponse]
723
+ #
724
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
725
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
726
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
727
+ def list_project_location_certificate_authority_certificate_revocation_lists(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
728
+ command = make_simple_command(:get, 'v1beta1/{+parent}/certificateRevocationLists', options)
729
+ command.response_representation = Google::Apis::PrivatecaV1beta1::ListCertificateRevocationListsResponse::Representation
730
+ command.response_class = Google::Apis::PrivatecaV1beta1::ListCertificateRevocationListsResponse
731
+ command.params['parent'] = parent unless parent.nil?
732
+ command.query['filter'] = filter unless filter.nil?
733
+ command.query['orderBy'] = order_by unless order_by.nil?
734
+ command.query['pageSize'] = page_size unless page_size.nil?
735
+ command.query['pageToken'] = page_token unless page_token.nil?
736
+ command.query['fields'] = fields unless fields.nil?
737
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
738
+ execute_or_queue_command(command, &block)
739
+ end
740
+
741
+ # Update a CertificateRevocationList.
742
+ # @param [String] name
743
+ # Output only. The resource path for this CertificateRevocationList in the
744
+ # format `projects/*/locations/*/certificateAuthorities/*/
745
+ # certificateRevocationLists/*`.
746
+ # @param [Google::Apis::PrivatecaV1beta1::CertificateRevocationList] certificate_revocation_list_object
747
+ # @param [String] request_id
748
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
749
+ # you must retry your request, the server will know to ignore the request if it
750
+ # has already been completed. The server will guarantee that for at least 60
751
+ # minutes since the first request. For example, consider a situation where you
752
+ # make an initial request and t he request times out. If you make the request
753
+ # again with the same request ID, the server can check if original operation
754
+ # with the same request ID was received, and if so, will ignore the second
755
+ # request. This prevents clients from accidentally creating duplicate
756
+ # commitments. The request ID must be a valid UUID with the exception that zero
757
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
758
+ # @param [String] update_mask
759
+ # Required. A list of fields to be updated in this request.
760
+ # @param [String] fields
761
+ # Selector specifying which fields to include in a partial response.
762
+ # @param [String] quota_user
763
+ # Available to use for quota purposes for server-side applications. Can be any
764
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
765
+ # @param [Google::Apis::RequestOptions] options
766
+ # Request-specific options
767
+ #
768
+ # @yield [result, err] Result & error if block supplied
769
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
770
+ # @yieldparam err [StandardError] error object if request failed
771
+ #
772
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
773
+ #
774
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
775
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
776
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
777
+ def patch_project_location_certificate_authority_certificate_revocation_list(name, certificate_revocation_list_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
778
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
779
+ command.request_representation = Google::Apis::PrivatecaV1beta1::CertificateRevocationList::Representation
780
+ command.request_object = certificate_revocation_list_object
781
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
782
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
783
+ command.params['name'] = name unless name.nil?
784
+ command.query['requestId'] = request_id unless request_id.nil?
785
+ command.query['updateMask'] = update_mask unless update_mask.nil?
786
+ command.query['fields'] = fields unless fields.nil?
787
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
788
+ execute_or_queue_command(command, &block)
789
+ end
790
+
791
+ # Sets the access control policy on the specified resource. Replaces any
792
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
793
+ # PERMISSION_DENIED` errors.
794
+ # @param [String] resource
795
+ # REQUIRED: The resource for which the policy is being specified. See the
796
+ # operation documentation for the appropriate value for this field.
797
+ # @param [Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
798
+ # @param [String] fields
799
+ # Selector specifying which fields to include in a partial response.
800
+ # @param [String] quota_user
801
+ # Available to use for quota purposes for server-side applications. Can be any
802
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
803
+ # @param [Google::Apis::RequestOptions] options
804
+ # Request-specific options
805
+ #
806
+ # @yield [result, err] Result & error if block supplied
807
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Policy] parsed result object
808
+ # @yieldparam err [StandardError] error object if request failed
809
+ #
810
+ # @return [Google::Apis::PrivatecaV1beta1::Policy]
811
+ #
812
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
813
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
814
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
815
+ def set_certificate_revocation_list_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
816
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
817
+ command.request_representation = Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest::Representation
818
+ command.request_object = set_iam_policy_request_object
819
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation
820
+ command.response_class = Google::Apis::PrivatecaV1beta1::Policy
821
+ command.params['resource'] = resource unless resource.nil?
822
+ command.query['fields'] = fields unless fields.nil?
823
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
824
+ execute_or_queue_command(command, &block)
825
+ end
826
+
827
+ # Returns permissions that a caller has on the specified resource. If the
828
+ # resource does not exist, this will return an empty set of permissions, not a `
829
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
830
+ # permission-aware UIs and command-line tools, not for authorization checking.
831
+ # This operation may "fail open" without warning.
832
+ # @param [String] resource
833
+ # REQUIRED: The resource for which the policy detail is being requested. See the
834
+ # operation documentation for the appropriate value for this field.
835
+ # @param [Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
836
+ # @param [String] fields
837
+ # Selector specifying which fields to include in a partial response.
838
+ # @param [String] quota_user
839
+ # Available to use for quota purposes for server-side applications. Can be any
840
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
841
+ # @param [Google::Apis::RequestOptions] options
842
+ # Request-specific options
843
+ #
844
+ # @yield [result, err] Result & error if block supplied
845
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse] parsed result object
846
+ # @yieldparam err [StandardError] error object if request failed
847
+ #
848
+ # @return [Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse]
849
+ #
850
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
851
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
852
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
853
+ def test_certificate_revocation_list_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
854
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
855
+ command.request_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest::Representation
856
+ command.request_object = test_iam_permissions_request_object
857
+ command.response_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse::Representation
858
+ command.response_class = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse
859
+ command.params['resource'] = resource unless resource.nil?
860
+ command.query['fields'] = fields unless fields.nil?
861
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
862
+ execute_or_queue_command(command, &block)
863
+ end
864
+
865
+ # Create a new Certificate in a given Project, Location from a particular
866
+ # CertificateAuthority.
867
+ # @param [String] parent
868
+ # Required. The resource name of the location and CertificateAuthority
869
+ # associated with the Certificate, in the format `projects/*/locations/*/
870
+ # certificateAuthorities/*`.
871
+ # @param [Google::Apis::PrivatecaV1beta1::Certificate] certificate_object
872
+ # @param [String] certificate_id
873
+ # Optional. It must be unique within a location and match the regular expression
874
+ # `[a-zA-Z0-9_-]`1,63``. This field is required when using a
875
+ # CertificateAuthority in the Enterprise CertificateAuthority.Tier, but is
876
+ # optional and its value is ignored otherwise.
877
+ # @param [String] request_id
878
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
879
+ # you must retry your request, the server will know to ignore the request if it
880
+ # has already been completed. The server will guarantee that for at least 60
881
+ # minutes since the first request. For example, consider a situation where you
882
+ # make an initial request and t he request times out. If you make the request
883
+ # again with the same request ID, the server can check if original operation
884
+ # with the same request ID was received, and if so, will ignore the second
885
+ # request. This prevents clients from accidentally creating duplicate
886
+ # commitments. The request ID must be a valid UUID with the exception that zero
887
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
888
+ # @param [String] fields
889
+ # Selector specifying which fields to include in a partial response.
890
+ # @param [String] quota_user
891
+ # Available to use for quota purposes for server-side applications. Can be any
892
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
893
+ # @param [Google::Apis::RequestOptions] options
894
+ # Request-specific options
895
+ #
896
+ # @yield [result, err] Result & error if block supplied
897
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Certificate] parsed result object
898
+ # @yieldparam err [StandardError] error object if request failed
899
+ #
900
+ # @return [Google::Apis::PrivatecaV1beta1::Certificate]
901
+ #
902
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
903
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
904
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
905
+ def create_project_location_certificate_authority_certificate(parent, certificate_object = nil, certificate_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
906
+ command = make_simple_command(:post, 'v1beta1/{+parent}/certificates', options)
907
+ command.request_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation
908
+ command.request_object = certificate_object
909
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation
910
+ command.response_class = Google::Apis::PrivatecaV1beta1::Certificate
911
+ command.params['parent'] = parent unless parent.nil?
912
+ command.query['certificateId'] = certificate_id unless certificate_id.nil?
913
+ command.query['requestId'] = request_id unless request_id.nil?
914
+ command.query['fields'] = fields unless fields.nil?
915
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
916
+ execute_or_queue_command(command, &block)
917
+ end
918
+
919
+ # Returns a Certificate.
920
+ # @param [String] name
921
+ # Required. The name of the Certificate to get.
922
+ # @param [String] fields
923
+ # Selector specifying which fields to include in a partial response.
924
+ # @param [String] quota_user
925
+ # Available to use for quota purposes for server-side applications. Can be any
926
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
927
+ # @param [Google::Apis::RequestOptions] options
928
+ # Request-specific options
929
+ #
930
+ # @yield [result, err] Result & error if block supplied
931
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Certificate] parsed result object
932
+ # @yieldparam err [StandardError] error object if request failed
933
+ #
934
+ # @return [Google::Apis::PrivatecaV1beta1::Certificate]
935
+ #
936
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
937
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
938
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
939
+ def get_project_location_certificate_authority_certificate(name, fields: nil, quota_user: nil, options: nil, &block)
940
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
941
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation
942
+ command.response_class = Google::Apis::PrivatecaV1beta1::Certificate
943
+ command.params['name'] = name unless name.nil?
944
+ command.query['fields'] = fields unless fields.nil?
945
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
946
+ execute_or_queue_command(command, &block)
947
+ end
948
+
949
+ # Lists Certificates.
950
+ # @param [String] parent
951
+ # Required. The resource name of the location associated with the Certificates,
952
+ # in the format `projects/*/locations/*/certificateauthorities/*`.
953
+ # @param [String] filter
954
+ # Optional. Only include resources that match the filter in the response. For
955
+ # details on supported filters and syntax, see [Certificates Filtering
956
+ # documentation](https://cloud.google.com/certificate-authority-service/docs/
957
+ # sorting-filtering-certificates#filtering_support).
958
+ # @param [String] order_by
959
+ # Optional. Specify how the results should be sorted. For details on supported
960
+ # fields and syntax, see [Certificates Sorting documentation](https://cloud.
961
+ # google.com/certificate-authority-service/docs/sorting-filtering-certificates#
962
+ # sorting_support).
963
+ # @param [Fixnum] page_size
964
+ # Optional. Limit on the number of Certificates to include in the response.
965
+ # Further Certificates can subsequently be obtained by including the
966
+ # ListCertificatesResponse.next_page_token in a subsequent request. If
967
+ # unspecified, the server will pick an appropriate default.
968
+ # @param [String] page_token
969
+ # Optional. Pagination token, returned earlier via ListCertificatesResponse.
970
+ # next_page_token.
971
+ # @param [String] fields
972
+ # Selector specifying which fields to include in a partial response.
973
+ # @param [String] quota_user
974
+ # Available to use for quota purposes for server-side applications. Can be any
975
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
976
+ # @param [Google::Apis::RequestOptions] options
977
+ # Request-specific options
978
+ #
979
+ # @yield [result, err] Result & error if block supplied
980
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::ListCertificatesResponse] parsed result object
981
+ # @yieldparam err [StandardError] error object if request failed
982
+ #
983
+ # @return [Google::Apis::PrivatecaV1beta1::ListCertificatesResponse]
984
+ #
985
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
986
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
987
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
988
+ def list_project_location_certificate_authority_certificates(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
989
+ command = make_simple_command(:get, 'v1beta1/{+parent}/certificates', options)
990
+ command.response_representation = Google::Apis::PrivatecaV1beta1::ListCertificatesResponse::Representation
991
+ command.response_class = Google::Apis::PrivatecaV1beta1::ListCertificatesResponse
992
+ command.params['parent'] = parent unless parent.nil?
993
+ command.query['filter'] = filter unless filter.nil?
994
+ command.query['orderBy'] = order_by unless order_by.nil?
995
+ command.query['pageSize'] = page_size unless page_size.nil?
996
+ command.query['pageToken'] = page_token unless page_token.nil?
997
+ command.query['fields'] = fields unless fields.nil?
998
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
999
+ execute_or_queue_command(command, &block)
1000
+ end
1001
+
1002
+ # Update a Certificate. Currently, the only field you can update is the labels
1003
+ # field.
1004
+ # @param [String] name
1005
+ # Output only. The resource path for this Certificate in the format `projects/*/
1006
+ # locations/*/certificateAuthorities/*/certificates/*`.
1007
+ # @param [Google::Apis::PrivatecaV1beta1::Certificate] certificate_object
1008
+ # @param [String] request_id
1009
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
1010
+ # you must retry your request, the server will know to ignore the request if it
1011
+ # has already been completed. The server will guarantee that for at least 60
1012
+ # minutes since the first request. For example, consider a situation where you
1013
+ # make an initial request and t he request times out. If you make the request
1014
+ # again with the same request ID, the server can check if original operation
1015
+ # with the same request ID was received, and if so, will ignore the second
1016
+ # request. This prevents clients from accidentally creating duplicate
1017
+ # commitments. The request ID must be a valid UUID with the exception that zero
1018
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
1019
+ # @param [String] update_mask
1020
+ # Required. A list of fields to be updated in this request.
1021
+ # @param [String] fields
1022
+ # Selector specifying which fields to include in a partial response.
1023
+ # @param [String] quota_user
1024
+ # Available to use for quota purposes for server-side applications. Can be any
1025
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1026
+ # @param [Google::Apis::RequestOptions] options
1027
+ # Request-specific options
1028
+ #
1029
+ # @yield [result, err] Result & error if block supplied
1030
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Certificate] parsed result object
1031
+ # @yieldparam err [StandardError] error object if request failed
1032
+ #
1033
+ # @return [Google::Apis::PrivatecaV1beta1::Certificate]
1034
+ #
1035
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1036
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1037
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1038
+ def patch_project_location_certificate_authority_certificate(name, certificate_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1039
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1040
+ command.request_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation
1041
+ command.request_object = certificate_object
1042
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation
1043
+ command.response_class = Google::Apis::PrivatecaV1beta1::Certificate
1044
+ command.params['name'] = name unless name.nil?
1045
+ command.query['requestId'] = request_id unless request_id.nil?
1046
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1047
+ command.query['fields'] = fields unless fields.nil?
1048
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1049
+ execute_or_queue_command(command, &block)
1050
+ end
1051
+
1052
+ # Revoke a Certificate.
1053
+ # @param [String] name
1054
+ # Required. The resource name for this Certificate in the format `projects/*/
1055
+ # locations/*/certificateAuthorities/*/certificates/*`.
1056
+ # @param [Google::Apis::PrivatecaV1beta1::RevokeCertificateRequest] revoke_certificate_request_object
1057
+ # @param [String] fields
1058
+ # Selector specifying which fields to include in a partial response.
1059
+ # @param [String] quota_user
1060
+ # Available to use for quota purposes for server-side applications. Can be any
1061
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
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::PrivatecaV1beta1::Certificate] parsed result object
1067
+ # @yieldparam err [StandardError] error object if request failed
1068
+ #
1069
+ # @return [Google::Apis::PrivatecaV1beta1::Certificate]
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 revoke_certificate(name, revoke_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1075
+ command = make_simple_command(:post, 'v1beta1/{+name}:revoke', options)
1076
+ command.request_representation = Google::Apis::PrivatecaV1beta1::RevokeCertificateRequest::Representation
1077
+ command.request_object = revoke_certificate_request_object
1078
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Certificate::Representation
1079
+ command.response_class = Google::Apis::PrivatecaV1beta1::Certificate
1080
+ command.params['name'] = name unless name.nil?
1081
+ command.query['fields'] = fields unless fields.nil?
1082
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1083
+ execute_or_queue_command(command, &block)
1084
+ end
1085
+
1086
+ # Starts asynchronous cancellation on a long-running operation. The server makes
1087
+ # a best effort to cancel the operation, but success is not guaranteed. If the
1088
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1089
+ # Clients can use Operations.GetOperation or other methods to check whether the
1090
+ # cancellation succeeded or whether the operation completed despite cancellation.
1091
+ # On successful cancellation, the operation is not deleted; instead, it becomes
1092
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1093
+ # corresponding to `Code.CANCELLED`.
1094
+ # @param [String] name
1095
+ # The name of the operation resource to be cancelled.
1096
+ # @param [Google::Apis::PrivatecaV1beta1::CancelOperationRequest] cancel_operation_request_object
1097
+ # @param [String] fields
1098
+ # Selector specifying which fields to include in a partial response.
1099
+ # @param [String] quota_user
1100
+ # Available to use for quota purposes for server-side applications. Can be any
1101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1102
+ # @param [Google::Apis::RequestOptions] options
1103
+ # Request-specific options
1104
+ #
1105
+ # @yield [result, err] Result & error if block supplied
1106
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Empty] parsed result object
1107
+ # @yieldparam err [StandardError] error object if request failed
1108
+ #
1109
+ # @return [Google::Apis::PrivatecaV1beta1::Empty]
1110
+ #
1111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1114
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1115
+ command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
1116
+ command.request_representation = Google::Apis::PrivatecaV1beta1::CancelOperationRequest::Representation
1117
+ command.request_object = cancel_operation_request_object
1118
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Empty::Representation
1119
+ command.response_class = Google::Apis::PrivatecaV1beta1::Empty
1120
+ command.params['name'] = name unless name.nil?
1121
+ command.query['fields'] = fields unless fields.nil?
1122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1123
+ execute_or_queue_command(command, &block)
1124
+ end
1125
+
1126
+ # Deletes a long-running operation. This method indicates that the client is no
1127
+ # longer interested in the operation result. It does not cancel the operation.
1128
+ # If the server doesn't support this method, it returns `google.rpc.Code.
1129
+ # UNIMPLEMENTED`.
1130
+ # @param [String] name
1131
+ # The name of the operation resource to be deleted.
1132
+ # @param [String] fields
1133
+ # Selector specifying which fields to include in a partial response.
1134
+ # @param [String] quota_user
1135
+ # Available to use for quota purposes for server-side applications. Can be any
1136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1137
+ # @param [Google::Apis::RequestOptions] options
1138
+ # Request-specific options
1139
+ #
1140
+ # @yield [result, err] Result & error if block supplied
1141
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Empty] parsed result object
1142
+ # @yieldparam err [StandardError] error object if request failed
1143
+ #
1144
+ # @return [Google::Apis::PrivatecaV1beta1::Empty]
1145
+ #
1146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1149
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1150
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1151
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Empty::Representation
1152
+ command.response_class = Google::Apis::PrivatecaV1beta1::Empty
1153
+ command.params['name'] = name unless name.nil?
1154
+ command.query['fields'] = fields unless fields.nil?
1155
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1156
+ execute_or_queue_command(command, &block)
1157
+ end
1158
+
1159
+ # Gets the latest state of a long-running operation. Clients can use this method
1160
+ # to poll the operation result at intervals as recommended by the API service.
1161
+ # @param [String] name
1162
+ # The name of the operation resource.
1163
+ # @param [String] fields
1164
+ # Selector specifying which fields to include in a partial response.
1165
+ # @param [String] quota_user
1166
+ # Available to use for quota purposes for server-side applications. Can be any
1167
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1168
+ # @param [Google::Apis::RequestOptions] options
1169
+ # Request-specific options
1170
+ #
1171
+ # @yield [result, err] Result & error if block supplied
1172
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Operation] parsed result object
1173
+ # @yieldparam err [StandardError] error object if request failed
1174
+ #
1175
+ # @return [Google::Apis::PrivatecaV1beta1::Operation]
1176
+ #
1177
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1178
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1179
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1180
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1181
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1182
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Operation::Representation
1183
+ command.response_class = Google::Apis::PrivatecaV1beta1::Operation
1184
+ command.params['name'] = name unless name.nil?
1185
+ command.query['fields'] = fields unless fields.nil?
1186
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1187
+ execute_or_queue_command(command, &block)
1188
+ end
1189
+
1190
+ # Lists operations that match the specified filter in the request. If the server
1191
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
1192
+ # binding allows API services to override the binding to use different resource
1193
+ # name schemes, such as `users/*/operations`. To override the binding, API
1194
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
1195
+ # service configuration. For backwards compatibility, the default name includes
1196
+ # the operations collection id, however overriding users must ensure the name
1197
+ # binding is the parent resource, without the operations collection id.
1198
+ # @param [String] name
1199
+ # The name of the operation's parent resource.
1200
+ # @param [String] filter
1201
+ # The standard list filter.
1202
+ # @param [Fixnum] page_size
1203
+ # The standard list page size.
1204
+ # @param [String] page_token
1205
+ # The standard list page token.
1206
+ # @param [String] fields
1207
+ # Selector specifying which fields to include in a partial response.
1208
+ # @param [String] quota_user
1209
+ # Available to use for quota purposes for server-side applications. Can be any
1210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1211
+ # @param [Google::Apis::RequestOptions] options
1212
+ # Request-specific options
1213
+ #
1214
+ # @yield [result, err] Result & error if block supplied
1215
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::ListOperationsResponse] parsed result object
1216
+ # @yieldparam err [StandardError] error object if request failed
1217
+ #
1218
+ # @return [Google::Apis::PrivatecaV1beta1::ListOperationsResponse]
1219
+ #
1220
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1221
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1222
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1223
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1224
+ command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
1225
+ command.response_representation = Google::Apis::PrivatecaV1beta1::ListOperationsResponse::Representation
1226
+ command.response_class = Google::Apis::PrivatecaV1beta1::ListOperationsResponse
1227
+ command.params['name'] = name unless name.nil?
1228
+ command.query['filter'] = filter unless filter.nil?
1229
+ command.query['pageSize'] = page_size unless page_size.nil?
1230
+ command.query['pageToken'] = page_token unless page_token.nil?
1231
+ command.query['fields'] = fields unless fields.nil?
1232
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1233
+ execute_or_queue_command(command, &block)
1234
+ end
1235
+
1236
+ # Returns a ReusableConfig.
1237
+ # @param [String] name
1238
+ # Required. The name of the ReusableConfigs to get.
1239
+ # @param [String] fields
1240
+ # Selector specifying which fields to include in a partial response.
1241
+ # @param [String] quota_user
1242
+ # Available to use for quota purposes for server-side applications. Can be any
1243
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1244
+ # @param [Google::Apis::RequestOptions] options
1245
+ # Request-specific options
1246
+ #
1247
+ # @yield [result, err] Result & error if block supplied
1248
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::ReusableConfig] parsed result object
1249
+ # @yieldparam err [StandardError] error object if request failed
1250
+ #
1251
+ # @return [Google::Apis::PrivatecaV1beta1::ReusableConfig]
1252
+ #
1253
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1254
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1255
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1256
+ def get_project_location_reusable_config(name, fields: nil, quota_user: nil, options: nil, &block)
1257
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1258
+ command.response_representation = Google::Apis::PrivatecaV1beta1::ReusableConfig::Representation
1259
+ command.response_class = Google::Apis::PrivatecaV1beta1::ReusableConfig
1260
+ command.params['name'] = name unless name.nil?
1261
+ command.query['fields'] = fields unless fields.nil?
1262
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1263
+ execute_or_queue_command(command, &block)
1264
+ end
1265
+
1266
+ # Gets the access control policy for a resource. Returns an empty policy if the
1267
+ # resource exists and does not have a policy set.
1268
+ # @param [String] resource
1269
+ # REQUIRED: The resource for which the policy is being requested. See the
1270
+ # operation documentation for the appropriate value for this field.
1271
+ # @param [Fixnum] options_requested_policy_version
1272
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
1273
+ # 3. Requests specifying an invalid value will be rejected. Requests for
1274
+ # policies with any conditional bindings must specify version 3. Policies
1275
+ # without any conditional bindings may specify any valid value or leave the
1276
+ # field unset. To learn which resources support conditions in their IAM policies,
1277
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1278
+ # resource-policies).
1279
+ # @param [String] fields
1280
+ # Selector specifying which fields to include in a partial response.
1281
+ # @param [String] quota_user
1282
+ # Available to use for quota purposes for server-side applications. Can be any
1283
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1284
+ # @param [Google::Apis::RequestOptions] options
1285
+ # Request-specific options
1286
+ #
1287
+ # @yield [result, err] Result & error if block supplied
1288
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Policy] parsed result object
1289
+ # @yieldparam err [StandardError] error object if request failed
1290
+ #
1291
+ # @return [Google::Apis::PrivatecaV1beta1::Policy]
1292
+ #
1293
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1294
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1295
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1296
+ def get_project_location_reusable_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1297
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
1298
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation
1299
+ command.response_class = Google::Apis::PrivatecaV1beta1::Policy
1300
+ command.params['resource'] = resource unless resource.nil?
1301
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1302
+ command.query['fields'] = fields unless fields.nil?
1303
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1304
+ execute_or_queue_command(command, &block)
1305
+ end
1306
+
1307
+ # Lists ReusableConfigs.
1308
+ # @param [String] parent
1309
+ # Required. The resource name of the location associated with the
1310
+ # ReusableConfigs, in the format `projects/*/locations/*`.
1311
+ # @param [String] filter
1312
+ # Optional. Only include resources that match the filter in the response.
1313
+ # @param [String] order_by
1314
+ # Optional. Specify how the results should be sorted.
1315
+ # @param [Fixnum] page_size
1316
+ # Optional. Limit on the number of ReusableConfigs to include in the response.
1317
+ # Further ReusableConfigs can subsequently be obtained by including the
1318
+ # ListReusableConfigsResponse.next_page_token in a subsequent request. If
1319
+ # unspecified, the server will pick an appropriate default.
1320
+ # @param [String] page_token
1321
+ # Optional. Pagination token, returned earlier via ListReusableConfigsResponse.
1322
+ # next_page_token.
1323
+ # @param [String] fields
1324
+ # Selector specifying which fields to include in a partial response.
1325
+ # @param [String] quota_user
1326
+ # Available to use for quota purposes for server-side applications. Can be any
1327
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1328
+ # @param [Google::Apis::RequestOptions] options
1329
+ # Request-specific options
1330
+ #
1331
+ # @yield [result, err] Result & error if block supplied
1332
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::ListReusableConfigsResponse] parsed result object
1333
+ # @yieldparam err [StandardError] error object if request failed
1334
+ #
1335
+ # @return [Google::Apis::PrivatecaV1beta1::ListReusableConfigsResponse]
1336
+ #
1337
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1338
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1339
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1340
+ def list_project_location_reusable_configs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1341
+ command = make_simple_command(:get, 'v1beta1/{+parent}/reusableConfigs', options)
1342
+ command.response_representation = Google::Apis::PrivatecaV1beta1::ListReusableConfigsResponse::Representation
1343
+ command.response_class = Google::Apis::PrivatecaV1beta1::ListReusableConfigsResponse
1344
+ command.params['parent'] = parent unless parent.nil?
1345
+ command.query['filter'] = filter unless filter.nil?
1346
+ command.query['orderBy'] = order_by unless order_by.nil?
1347
+ command.query['pageSize'] = page_size unless page_size.nil?
1348
+ command.query['pageToken'] = page_token unless page_token.nil?
1349
+ command.query['fields'] = fields unless fields.nil?
1350
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1351
+ execute_or_queue_command(command, &block)
1352
+ end
1353
+
1354
+ # Sets the access control policy on the specified resource. Replaces any
1355
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1356
+ # PERMISSION_DENIED` errors.
1357
+ # @param [String] resource
1358
+ # REQUIRED: The resource for which the policy is being specified. See the
1359
+ # operation documentation for the appropriate value for this field.
1360
+ # @param [Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
1361
+ # @param [String] fields
1362
+ # Selector specifying which fields to include in a partial response.
1363
+ # @param [String] quota_user
1364
+ # Available to use for quota purposes for server-side applications. Can be any
1365
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1366
+ # @param [Google::Apis::RequestOptions] options
1367
+ # Request-specific options
1368
+ #
1369
+ # @yield [result, err] Result & error if block supplied
1370
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::Policy] parsed result object
1371
+ # @yieldparam err [StandardError] error object if request failed
1372
+ #
1373
+ # @return [Google::Apis::PrivatecaV1beta1::Policy]
1374
+ #
1375
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1376
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1377
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1378
+ def set_reusable_config_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1379
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
1380
+ command.request_representation = Google::Apis::PrivatecaV1beta1::SetIamPolicyRequest::Representation
1381
+ command.request_object = set_iam_policy_request_object
1382
+ command.response_representation = Google::Apis::PrivatecaV1beta1::Policy::Representation
1383
+ command.response_class = Google::Apis::PrivatecaV1beta1::Policy
1384
+ command.params['resource'] = resource unless resource.nil?
1385
+ command.query['fields'] = fields unless fields.nil?
1386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1387
+ execute_or_queue_command(command, &block)
1388
+ end
1389
+
1390
+ # Returns permissions that a caller has on the specified resource. If the
1391
+ # resource does not exist, this will return an empty set of permissions, not a `
1392
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1393
+ # permission-aware UIs and command-line tools, not for authorization checking.
1394
+ # This operation may "fail open" without warning.
1395
+ # @param [String] resource
1396
+ # REQUIRED: The resource for which the policy detail is being requested. See the
1397
+ # operation documentation for the appropriate value for this field.
1398
+ # @param [Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
1399
+ # @param [String] fields
1400
+ # Selector specifying which fields to include in a partial response.
1401
+ # @param [String] quota_user
1402
+ # Available to use for quota purposes for server-side applications. Can be any
1403
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1404
+ # @param [Google::Apis::RequestOptions] options
1405
+ # Request-specific options
1406
+ #
1407
+ # @yield [result, err] Result & error if block supplied
1408
+ # @yieldparam result [Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse] parsed result object
1409
+ # @yieldparam err [StandardError] error object if request failed
1410
+ #
1411
+ # @return [Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse]
1412
+ #
1413
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1414
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1415
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1416
+ def test_reusable_config_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1417
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
1418
+ command.request_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsRequest::Representation
1419
+ command.request_object = test_iam_permissions_request_object
1420
+ command.response_representation = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse::Representation
1421
+ command.response_class = Google::Apis::PrivatecaV1beta1::TestIamPermissionsResponse
1422
+ command.params['resource'] = resource unless resource.nil?
1423
+ command.query['fields'] = fields unless fields.nil?
1424
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1425
+ execute_or_queue_command(command, &block)
1426
+ end
1427
+
1428
+ protected
1429
+
1430
+ def apply_command_defaults(command)
1431
+ command.query['key'] = key unless key.nil?
1432
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1433
+ end
1434
+ end
1435
+ end
1436
+ end
1437
+ end