google-api-client 0.46.0 → 0.49.0

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