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
@@ -22,9 +22,8 @@ module Google
22
22
  module PolyV1
23
23
  # Poly API
24
24
  #
25
- # The Poly API provides read access to assets hosted on <a href="https://poly.
26
- # google.com">poly.google.com</a> to all, and upload access to <a href="https://
27
- # poly.google.com">poly.google.com</a> for whitelisted accounts.
25
+ # The Poly API provides read access to assets hosted on poly.google.com to all,
26
+ # and upload access to poly.google.com for whitelisted accounts.
28
27
  #
29
28
  # @example
30
29
  # require 'google/apis/poly_v1'
@@ -49,10 +48,9 @@ module Google
49
48
  @batch_path = 'batch'
50
49
  end
51
50
 
52
- # Returns detailed information about an asset given its name.
53
- # PRIVATE assets are returned only if
54
- # the currently authenticated user (via OAuth token) is the author of the
55
- # asset.
51
+ # Returns detailed information about an asset given its name. PRIVATE assets are
52
+ # returned only if the currently authenticated user (via OAuth token) is the
53
+ # author of the asset.
56
54
  # @param [String] name
57
55
  # Required. An asset's name in the form `assets/`ASSET_ID``.
58
56
  # @param [String] fields
@@ -82,40 +80,35 @@ module Google
82
80
  execute_or_queue_command(command, &block)
83
81
  end
84
82
 
85
- # Lists all public, remixable assets. These are assets with an access level
86
- # of PUBLIC and published under the
87
- # CC-By license.
83
+ # Lists all public, remixable assets. These are assets with an access level of
84
+ # PUBLIC and published under the CC-By license.
88
85
  # @param [String] category
89
- # Filter assets based on the specified category. Supported values are:
90
- # `animals`, `architecture`, `art`, `food`, `nature`, `objects`, `people`,
91
- # `scenes`, `technology`, and `transport`.
86
+ # Filter assets based on the specified category. Supported values are: `animals`,
87
+ # `architecture`, `art`, `food`, `nature`, `objects`, `people`, `scenes`, `
88
+ # technology`, and `transport`.
92
89
  # @param [Boolean] curated
93
90
  # Return only assets that have been curated by the Poly team.
94
91
  # @param [String] format
95
- # Return only assets with the matching format. Acceptable values are:
96
- # `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`.
92
+ # Return only assets with the matching format. Acceptable values are: `BLOCKS`, `
93
+ # FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`.
97
94
  # @param [String] keywords
98
- # One or more search terms to be matched against all text that Poly has
99
- # indexed for assets, which includes display_name,
100
- # description, and tags. Multiple keywords should be
101
- # separated by spaces.
95
+ # One or more search terms to be matched against all text that Poly has indexed
96
+ # for assets, which includes display_name, description, and tags. Multiple
97
+ # keywords should be separated by spaces.
102
98
  # @param [String] max_complexity
103
99
  # Returns assets that are of the specified complexity or less. Defaults to
104
- # COMPLEX. For example, a request for
105
- # MEDIUM assets also includes
106
- # SIMPLE assets.
100
+ # COMPLEX. For example, a request for MEDIUM assets also includes SIMPLE assets.
107
101
  # @param [String] order_by
108
- # Specifies an ordering for assets. Acceptable values are:
109
- # `BEST`, `NEWEST`, `OLDEST`. Defaults to `BEST`, which ranks assets
110
- # based on a combination of popularity and other features.
102
+ # Specifies an ordering for assets. Acceptable values are: `BEST`, `NEWEST`, `
103
+ # OLDEST`. Defaults to `BEST`, which ranks assets based on a combination of
104
+ # popularity and other features.
111
105
  # @param [Fixnum] page_size
112
106
  # The maximum number of assets to be returned. This value must be between `1`
113
107
  # and `100`. Defaults to `20`.
114
108
  # @param [String] page_token
115
- # Specifies a continuation token from a previous search whose results were
116
- # split into multiple pages. To get the next page, submit the same request
117
- # specifying the value from
118
- # next_page_token.
109
+ # Specifies a continuation token from a previous search whose results were split
110
+ # into multiple pages. To get the next page, submit the same request specifying
111
+ # the value from next_page_token.
119
112
  # @param [String] fields
120
113
  # Selector specifying which fields to include in a partial response.
121
114
  # @param [String] quota_user
@@ -150,36 +143,31 @@ module Google
150
143
  execute_or_queue_command(command, &block)
151
144
  end
152
145
 
153
- # Lists assets authored by the given user. Only the value 'me', representing
154
- # the currently-authenticated user, is supported. May include assets with an
155
- # access level of PRIVATE or
156
- # UNLISTED and assets which are
157
- # All Rights Reserved for the
146
+ # Lists assets authored by the given user. Only the value 'me', representing the
147
+ # currently-authenticated user, is supported. May include assets with an access
148
+ # level of PRIVATE or UNLISTED and assets which are All Rights Reserved for the
158
149
  # currently-authenticated user.
159
150
  # @param [String] name
160
151
  # A valid user id. Currently, only the special value 'me', representing the
161
- # currently-authenticated user is supported. To use 'me', you must pass
162
- # an OAuth token with the request.
152
+ # currently-authenticated user is supported. To use 'me', you must pass an OAuth
153
+ # token with the request.
163
154
  # @param [String] format
164
- # Return only assets with the matching format. Acceptable values are:
165
- # `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, and `TILT`.
155
+ # Return only assets with the matching format. Acceptable values are: `BLOCKS`, `
156
+ # FBX`, `GLTF`, `GLTF2`, `OBJ`, and `TILT`.
166
157
  # @param [String] order_by
167
- # Specifies an ordering for assets. Acceptable values are:
168
- # `BEST`, `NEWEST`, `OLDEST`. Defaults to `BEST`, which ranks assets
169
- # based on a combination of popularity and other features.
158
+ # Specifies an ordering for assets. Acceptable values are: `BEST`, `NEWEST`, `
159
+ # OLDEST`. Defaults to `BEST`, which ranks assets based on a combination of
160
+ # popularity and other features.
170
161
  # @param [Fixnum] page_size
171
162
  # The maximum number of assets to be returned. This value must be between `1`
172
163
  # and `100`. Defaults to `20`.
173
164
  # @param [String] page_token
174
- # Specifies a continuation token from a previous search whose results were
175
- # split into multiple pages. To get the next page, submit the same request
176
- # specifying the value from
177
- # next_page_token.
165
+ # Specifies a continuation token from a previous search whose results were split
166
+ # into multiple pages. To get the next page, submit the same request specifying
167
+ # the value from next_page_token.
178
168
  # @param [String] visibility
179
- # The visibility of the assets to be returned.
180
- # Defaults to
181
- # VISIBILITY_UNSPECIFIED
182
- # which returns all assets.
169
+ # The visibility of the assets to be returned. Defaults to
170
+ # VISIBILITY_UNSPECIFIED which returns all assets.
183
171
  # @param [String] fields
184
172
  # Selector specifying which fields to include in a partial response.
185
173
  # @param [String] quota_user
@@ -212,28 +200,27 @@ module Google
212
200
  execute_or_queue_command(command, &block)
213
201
  end
214
202
 
215
- # Lists assets that the user has liked. Only the value 'me', representing
216
- # the currently-authenticated user, is supported. May include assets with an
217
- # access level of UNLISTED.
203
+ # Lists assets that the user has liked. Only the value 'me', representing the
204
+ # currently-authenticated user, is supported. May include assets with an access
205
+ # level of UNLISTED.
218
206
  # @param [String] name
219
207
  # A valid user id. Currently, only the special value 'me', representing the
220
- # currently-authenticated user is supported. To use 'me', you must pass
221
- # an OAuth token with the request.
208
+ # currently-authenticated user is supported. To use 'me', you must pass an OAuth
209
+ # token with the request.
222
210
  # @param [String] format
223
- # Return only assets with the matching format. Acceptable values are:
224
- # `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`.
211
+ # Return only assets with the matching format. Acceptable values are: `BLOCKS`, `
212
+ # FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`.
225
213
  # @param [String] order_by
226
- # Specifies an ordering for assets. Acceptable values are:
227
- # `BEST`, `NEWEST`, `OLDEST`, 'LIKED_TIME'. Defaults to `LIKED_TIME`, which
228
- # ranks assets based on how recently they were liked.
214
+ # Specifies an ordering for assets. Acceptable values are: `BEST`, `NEWEST`, `
215
+ # OLDEST`, 'LIKED_TIME'. Defaults to `LIKED_TIME`, which ranks assets based on
216
+ # how recently they were liked.
229
217
  # @param [Fixnum] page_size
230
218
  # The maximum number of assets to be returned. This value must be between `1`
231
219
  # and `100`. Defaults to `20`.
232
220
  # @param [String] page_token
233
- # Specifies a continuation token from a previous search whose results were
234
- # split into multiple pages. To get the next page, submit the same request
235
- # specifying the value from
236
- # next_page_token.
221
+ # Specifies a continuation token from a previous search whose results were split
222
+ # into multiple pages. To get the next page, submit the same request specifying
223
+ # the value from next_page_token.
237
224
  # @param [String] fields
238
225
  # Selector specifying which fields to include in a partial response.
239
226
  # @param [String] quota_user
@@ -0,0 +1,36 @@
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/privateca_v1beta1/service.rb'
16
+ require 'google/apis/privateca_v1beta1/classes.rb'
17
+ require 'google/apis/privateca_v1beta1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Certificate Authority API
22
+ #
23
+ # The Certificate Authority Service API is a highly-available, scalable service
24
+ # that enables you to simplify and automate the management of private
25
+ # certificate authorities (CAs) while staying in control of your private keys."
26
+ #
27
+ # @see https://cloud.google.com/
28
+ module PrivatecaV1beta1
29
+ VERSION = 'V1beta1'
30
+ REVISION = '20201029'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,2472 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module PrivatecaV1beta1
24
+
25
+ # URLs where a CertificateAuthority will publish content.
26
+ class AccessUrls
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The URL where this CertificateAuthority's CA certificate is published. This
30
+ # will only be set for CAs that have been activated.
31
+ # Corresponds to the JSON property `caCertificateAccessUrl`
32
+ # @return [String]
33
+ attr_accessor :ca_certificate_access_url
34
+
35
+ # The URL where this CertificateAuthority's CRLs are published. This will only
36
+ # be set for CAs that have been activated.
37
+ # Corresponds to the JSON property `crlAccessUrl`
38
+ # @return [String]
39
+ attr_accessor :crl_access_url
40
+
41
+ def initialize(**args)
42
+ update!(**args)
43
+ end
44
+
45
+ # Update properties of this object
46
+ def update!(**args)
47
+ @ca_certificate_access_url = args[:ca_certificate_access_url] if args.key?(:ca_certificate_access_url)
48
+ @crl_access_url = args[:crl_access_url] if args.key?(:crl_access_url)
49
+ end
50
+ end
51
+
52
+ # Request message for CertificateAuthorityService.ActivateCertificateAuthority.
53
+ class ActivateCertificateAuthorityRequest
54
+ include Google::Apis::Core::Hashable
55
+
56
+ # Required. The signed CA certificate issued from
57
+ # FetchCertificateAuthorityCsrResponse.pem_csr.
58
+ # Corresponds to the JSON property `pemCaCertificate`
59
+ # @return [String]
60
+ attr_accessor :pem_ca_certificate
61
+
62
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
63
+ # you must retry your request, the server will know to ignore the request if it
64
+ # has already been completed. The server will guarantee that for at least 60
65
+ # minutes since the first request. For example, consider a situation where you
66
+ # make an initial request and t he request times out. If you make the request
67
+ # again with the same request ID, the server can check if original operation
68
+ # with the same request ID was received, and if so, will ignore the second
69
+ # request. This prevents clients from accidentally creating duplicate
70
+ # commitments. The request ID must be a valid UUID with the exception that zero
71
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
72
+ # Corresponds to the JSON property `requestId`
73
+ # @return [String]
74
+ attr_accessor :request_id
75
+
76
+ # Describes a subordinate CA's issuers. This is either a resource path to a
77
+ # known issuing CertificateAuthority, or a PEM issuer certificate chain.
78
+ # Corresponds to the JSON property `subordinateConfig`
79
+ # @return [Google::Apis::PrivatecaV1beta1::SubordinateConfig]
80
+ attr_accessor :subordinate_config
81
+
82
+ def initialize(**args)
83
+ update!(**args)
84
+ end
85
+
86
+ # Update properties of this object
87
+ def update!(**args)
88
+ @pem_ca_certificate = args[:pem_ca_certificate] if args.key?(:pem_ca_certificate)
89
+ @request_id = args[:request_id] if args.key?(:request_id)
90
+ @subordinate_config = args[:subordinate_config] if args.key?(:subordinate_config)
91
+ end
92
+ end
93
+
94
+ #
95
+ class AllowedConfigList
96
+ include Google::Apis::Core::Hashable
97
+
98
+ # Required. All Certificates issued by the CertificateAuthority must match at
99
+ # least one listed ReusableConfigWrapper. If a ReusableConfigWrapper has an
100
+ # empty field, any value will be allowed for that field.
101
+ # Corresponds to the JSON property `allowedConfigValues`
102
+ # @return [Array<Google::Apis::PrivatecaV1beta1::ReusableConfigWrapper>]
103
+ attr_accessor :allowed_config_values
104
+
105
+ def initialize(**args)
106
+ update!(**args)
107
+ end
108
+
109
+ # Update properties of this object
110
+ def update!(**args)
111
+ @allowed_config_values = args[:allowed_config_values] if args.key?(:allowed_config_values)
112
+ end
113
+ end
114
+
115
+ # AllowedSubjectAltNames specifies the allowed values for SubjectAltNames by the
116
+ # CertificateAuthority when issuing Certificates.
117
+ class AllowedSubjectAltNames
118
+ include Google::Apis::Core::Hashable
119
+
120
+ # Optional. Specifies if to allow custom X509Extension values.
121
+ # Corresponds to the JSON property `allowCustomSans`
122
+ # @return [Boolean]
123
+ attr_accessor :allow_custom_sans
124
+ alias_method :allow_custom_sans?, :allow_custom_sans
125
+
126
+ # Optional. Specifies if glob patterns used for allowed_dns_names allow wildcard
127
+ # certificates. If this is set, certificate requests with wildcard domains will
128
+ # be permitted to match a glob pattern specified in allowed_dns_names. Otherwise,
129
+ # certificate requests with wildcard domains will be permitted only if
130
+ # allowed_dns_names contains a literal wildcard.
131
+ # Corresponds to the JSON property `allowGlobbingDnsWildcards`
132
+ # @return [Boolean]
133
+ attr_accessor :allow_globbing_dns_wildcards
134
+ alias_method :allow_globbing_dns_wildcards?, :allow_globbing_dns_wildcards
135
+
136
+ # Optional. Contains valid, fully-qualified host names. Glob patterns are also
137
+ # supported. To allow an explicit wildcard certificate, escape with backlash (i.
138
+ # e. "\*"). E.g. for globbed entries: '*bar.com' will allow 'foo.bar.com', but
139
+ # not '*.bar.com', unless the allow_globbing_dns_wildcards field is set. E.g.
140
+ # for wildcard entries: '\*.bar.com' will allow '*.bar.com', but not 'foo.bar.
141
+ # com'.
142
+ # Corresponds to the JSON property `allowedDnsNames`
143
+ # @return [Array<String>]
144
+ attr_accessor :allowed_dns_names
145
+
146
+ # Optional. Contains valid RFC 2822 E-mail addresses. Glob patterns are also
147
+ # supported.
148
+ # Corresponds to the JSON property `allowedEmailAddresses`
149
+ # @return [Array<String>]
150
+ attr_accessor :allowed_email_addresses
151
+
152
+ # Optional. Contains valid 32-bit IPv4 addresses and subnet ranges or RFC 4291
153
+ # IPv6 addresses and subnet ranges. Subnet ranges are specified using the '/'
154
+ # notation (e.g. 10.0.0.0/8, 2001:700:300:1800::/64). Glob patterns are
155
+ # supported only for ip address entries (i.e. not for subnet ranges).
156
+ # Corresponds to the JSON property `allowedIps`
157
+ # @return [Array<String>]
158
+ attr_accessor :allowed_ips
159
+
160
+ # Optional. Contains valid RFC 3986 URIs. Glob patterns are also supported. To
161
+ # match across path seperators (i.e. '/') use the double star glob pattern (i.e.
162
+ # '**').
163
+ # Corresponds to the JSON property `allowedUris`
164
+ # @return [Array<String>]
165
+ attr_accessor :allowed_uris
166
+
167
+ def initialize(**args)
168
+ update!(**args)
169
+ end
170
+
171
+ # Update properties of this object
172
+ def update!(**args)
173
+ @allow_custom_sans = args[:allow_custom_sans] if args.key?(:allow_custom_sans)
174
+ @allow_globbing_dns_wildcards = args[:allow_globbing_dns_wildcards] if args.key?(:allow_globbing_dns_wildcards)
175
+ @allowed_dns_names = args[:allowed_dns_names] if args.key?(:allowed_dns_names)
176
+ @allowed_email_addresses = args[:allowed_email_addresses] if args.key?(:allowed_email_addresses)
177
+ @allowed_ips = args[:allowed_ips] if args.key?(:allowed_ips)
178
+ @allowed_uris = args[:allowed_uris] if args.key?(:allowed_uris)
179
+ end
180
+ end
181
+
182
+ # Specifies the audit configuration for a service. The configuration determines
183
+ # which permission types are logged, and what identities, if any, are exempted
184
+ # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
185
+ # are AuditConfigs for both `allServices` and a specific service, the union of
186
+ # the two AuditConfigs is used for that service: the log_types specified in each
187
+ # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
188
+ # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
189
+ # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
190
+ # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
191
+ # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
192
+ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
193
+ # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
194
+ # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
195
+ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
196
+ # DATA_WRITE logging.
197
+ class AuditConfig
198
+ include Google::Apis::Core::Hashable
199
+
200
+ # The configuration for logging of each type of permission.
201
+ # Corresponds to the JSON property `auditLogConfigs`
202
+ # @return [Array<Google::Apis::PrivatecaV1beta1::AuditLogConfig>]
203
+ attr_accessor :audit_log_configs
204
+
205
+ # Specifies a service that will be enabled for audit logging. For example, `
206
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
207
+ # value that covers all services.
208
+ # Corresponds to the JSON property `service`
209
+ # @return [String]
210
+ attr_accessor :service
211
+
212
+ def initialize(**args)
213
+ update!(**args)
214
+ end
215
+
216
+ # Update properties of this object
217
+ def update!(**args)
218
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
219
+ @service = args[:service] if args.key?(:service)
220
+ end
221
+ end
222
+
223
+ # Provides the configuration for logging a type of permissions. Example: ` "
224
+ # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
225
+ # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
226
+ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
227
+ # DATA_READ logging.
228
+ class AuditLogConfig
229
+ include Google::Apis::Core::Hashable
230
+
231
+ # Specifies the identities that do not cause logging for this type of permission.
232
+ # Follows the same format of Binding.members.
233
+ # Corresponds to the JSON property `exemptedMembers`
234
+ # @return [Array<String>]
235
+ attr_accessor :exempted_members
236
+
237
+ # The log type that this config enables.
238
+ # Corresponds to the JSON property `logType`
239
+ # @return [String]
240
+ attr_accessor :log_type
241
+
242
+ def initialize(**args)
243
+ update!(**args)
244
+ end
245
+
246
+ # Update properties of this object
247
+ def update!(**args)
248
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
249
+ @log_type = args[:log_type] if args.key?(:log_type)
250
+ end
251
+ end
252
+
253
+ # Associates `members` with a `role`.
254
+ class Binding
255
+ include Google::Apis::Core::Hashable
256
+
257
+ #
258
+ # Corresponds to the JSON property `bindingId`
259
+ # @return [String]
260
+ attr_accessor :binding_id
261
+
262
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
263
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
264
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
265
+ # "Summary size limit" description: "Determines if a summary is less than 100
266
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
267
+ # Requestor is owner" description: "Determines if requestor is the document
268
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
269
+ # Logic): title: "Public documents" description: "Determine whether the document
270
+ # should be publicly visible" expression: "document.type != 'private' &&
271
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
272
+ # string" description: "Create a notification string with a timestamp."
273
+ # expression: "'New message received at ' + string(document.create_time)" The
274
+ # exact variables and functions that may be referenced within an expression are
275
+ # determined by the service that evaluates it. See the service documentation for
276
+ # additional information.
277
+ # Corresponds to the JSON property `condition`
278
+ # @return [Google::Apis::PrivatecaV1beta1::Expr]
279
+ attr_accessor :condition
280
+
281
+ # Specifies the identities requesting access for a Cloud Platform resource. `
282
+ # members` can have the following values: * `allUsers`: A special identifier
283
+ # that represents anyone who is on the internet; with or without a Google
284
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
285
+ # anyone who is authenticated with a Google account or a service account. * `
286
+ # user:`emailid``: An email address that represents a specific Google account.
287
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
288
+ # address that represents a service account. For example, `my-other-app@appspot.
289
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
290
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
291
+ # `uniqueid``: An email address (plus unique identifier) representing a user
292
+ # that has been recently deleted. For example, `alice@example.com?uid=
293
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
294
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
295
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
296
+ # identifier) representing a service account that has been recently deleted. For
297
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
298
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
299
+ # emailid`` and the undeleted service account retains the role in the binding. *
300
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
301
+ # identifier) representing a Google group that has been recently deleted. For
302
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
303
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
304
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
305
+ # primary) that represents all the users of that domain. For example, `google.
306
+ # com` or `example.com`.
307
+ # Corresponds to the JSON property `members`
308
+ # @return [Array<String>]
309
+ attr_accessor :members
310
+
311
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
312
+ # , or `roles/owner`.
313
+ # Corresponds to the JSON property `role`
314
+ # @return [String]
315
+ attr_accessor :role
316
+
317
+ def initialize(**args)
318
+ update!(**args)
319
+ end
320
+
321
+ # Update properties of this object
322
+ def update!(**args)
323
+ @binding_id = args[:binding_id] if args.key?(:binding_id)
324
+ @condition = args[:condition] if args.key?(:condition)
325
+ @members = args[:members] if args.key?(:members)
326
+ @role = args[:role] if args.key?(:role)
327
+ end
328
+ end
329
+
330
+ # Describes values that are relevant in a CA certificate.
331
+ class CaOptions
332
+ include Google::Apis::Core::Hashable
333
+
334
+ # Optional. Refers to the "CA" X.509 extension, which is a boolean value. When
335
+ # this value is missing, the extension will be omitted from the CA certificate.
336
+ # Corresponds to the JSON property `isCa`
337
+ # @return [Boolean]
338
+ attr_accessor :is_ca
339
+ alias_method :is_ca?, :is_ca
340
+
341
+ # Optional. Refers to the path length restriction X.509 extension. For a CA
342
+ # certificate, this value describes the depth of subordinate CA certificates
343
+ # that are allowed. If this value is less than 0, the request will fail. If this
344
+ # value is missing, the max path length will be omitted from the CA certificate.
345
+ # Corresponds to the JSON property `maxIssuerPathLength`
346
+ # @return [Fixnum]
347
+ attr_accessor :max_issuer_path_length
348
+
349
+ def initialize(**args)
350
+ update!(**args)
351
+ end
352
+
353
+ # Update properties of this object
354
+ def update!(**args)
355
+ @is_ca = args[:is_ca] if args.key?(:is_ca)
356
+ @max_issuer_path_length = args[:max_issuer_path_length] if args.key?(:max_issuer_path_length)
357
+ end
358
+ end
359
+
360
+ # The request message for Operations.CancelOperation.
361
+ class CancelOperationRequest
362
+ include Google::Apis::Core::Hashable
363
+
364
+ def initialize(**args)
365
+ update!(**args)
366
+ end
367
+
368
+ # Update properties of this object
369
+ def update!(**args)
370
+ end
371
+ end
372
+
373
+ # A Certificate corresponds to a signed X.509 certificate issued by a
374
+ # CertificateAuthority.
375
+ class Certificate
376
+ include Google::Apis::Core::Hashable
377
+
378
+ # A CertificateDescription describes an X.509 certificate or CSR that has been
379
+ # issued, as an alternative to using ASN.1 / X.509.
380
+ # Corresponds to the JSON property `certificateDescription`
381
+ # @return [Google::Apis::PrivatecaV1beta1::CertificateDescription]
382
+ attr_accessor :certificate_description
383
+
384
+ # A CertificateConfig describes an X.509 certificate or CSR that is to be
385
+ # created, as an alternative to using ASN.1.
386
+ # Corresponds to the JSON property `config`
387
+ # @return [Google::Apis::PrivatecaV1beta1::CertificateConfig]
388
+ attr_accessor :config
389
+
390
+ # Output only. The time at which this Certificate was created.
391
+ # Corresponds to the JSON property `createTime`
392
+ # @return [String]
393
+ attr_accessor :create_time
394
+
395
+ # Optional. Labels with user-defined metadata.
396
+ # Corresponds to the JSON property `labels`
397
+ # @return [Hash<String,String>]
398
+ attr_accessor :labels
399
+
400
+ # Required. Immutable. The desired lifetime of a certificate. Used to create the
401
+ # "not_before_time" and "not_after_time" fields inside an X.509 certificate.
402
+ # Note that the lifetime may be truncated if it would extend past the life of
403
+ # any certificate authority in the issuing chain.
404
+ # Corresponds to the JSON property `lifetime`
405
+ # @return [String]
406
+ attr_accessor :lifetime
407
+
408
+ # Output only. The resource path for this Certificate in the format `projects/*/
409
+ # locations/*/certificateAuthorities/*/certificates/*`.
410
+ # Corresponds to the JSON property `name`
411
+ # @return [String]
412
+ attr_accessor :name
413
+
414
+ # Output only. The pem-encoded, signed X.509 certificate.
415
+ # Corresponds to the JSON property `pemCertificate`
416
+ # @return [String]
417
+ attr_accessor :pem_certificate
418
+
419
+ # Output only. The chain that may be used to verify the X.509 certificate.
420
+ # Expected to be in issuer-to-root order according to RFC 5246.
421
+ # Corresponds to the JSON property `pemCertificateChain`
422
+ # @return [Array<String>]
423
+ attr_accessor :pem_certificate_chain
424
+
425
+ # Immutable. A pem-encoded X.509 certificate signing request (CSR).
426
+ # Corresponds to the JSON property `pemCsr`
427
+ # @return [String]
428
+ attr_accessor :pem_csr
429
+
430
+ # Describes fields that are relavent to the revocation of a Certificate.
431
+ # Corresponds to the JSON property `revocationDetails`
432
+ # @return [Google::Apis::PrivatecaV1beta1::RevocationDetails]
433
+ attr_accessor :revocation_details
434
+
435
+ # Output only. The time at which this Certificate was updated.
436
+ # Corresponds to the JSON property `updateTime`
437
+ # @return [String]
438
+ attr_accessor :update_time
439
+
440
+ def initialize(**args)
441
+ update!(**args)
442
+ end
443
+
444
+ # Update properties of this object
445
+ def update!(**args)
446
+ @certificate_description = args[:certificate_description] if args.key?(:certificate_description)
447
+ @config = args[:config] if args.key?(:config)
448
+ @create_time = args[:create_time] if args.key?(:create_time)
449
+ @labels = args[:labels] if args.key?(:labels)
450
+ @lifetime = args[:lifetime] if args.key?(:lifetime)
451
+ @name = args[:name] if args.key?(:name)
452
+ @pem_certificate = args[:pem_certificate] if args.key?(:pem_certificate)
453
+ @pem_certificate_chain = args[:pem_certificate_chain] if args.key?(:pem_certificate_chain)
454
+ @pem_csr = args[:pem_csr] if args.key?(:pem_csr)
455
+ @revocation_details = args[:revocation_details] if args.key?(:revocation_details)
456
+ @update_time = args[:update_time] if args.key?(:update_time)
457
+ end
458
+ end
459
+
460
+ # A CertificateAuthority represents an individual Certificate Authority. A
461
+ # CertificateAuthority can be used to create Certificates.
462
+ class CertificateAuthority
463
+ include Google::Apis::Core::Hashable
464
+
465
+ # URLs where a CertificateAuthority will publish content.
466
+ # Corresponds to the JSON property `accessUrls`
467
+ # @return [Google::Apis::PrivatecaV1beta1::AccessUrls]
468
+ attr_accessor :access_urls
469
+
470
+ # Output only. A structured description of this CertificateAuthority's CA
471
+ # certificate and its issuers. Ordered as self-to-root.
472
+ # Corresponds to the JSON property `caCertificateDescriptions`
473
+ # @return [Array<Google::Apis::PrivatecaV1beta1::CertificateDescription>]
474
+ attr_accessor :ca_certificate_descriptions
475
+
476
+ # The issuing policy for a CertificateAuthority. Certificates will not be
477
+ # successfully issued from this CertificateAuthority if they violate the policy.
478
+ # Corresponds to the JSON property `certificatePolicy`
479
+ # @return [Google::Apis::PrivatecaV1beta1::CertificateAuthorityPolicy]
480
+ attr_accessor :certificate_policy
481
+
482
+ # A CertificateConfig describes an X.509 certificate or CSR that is to be
483
+ # created, as an alternative to using ASN.1.
484
+ # Corresponds to the JSON property `config`
485
+ # @return [Google::Apis::PrivatecaV1beta1::CertificateConfig]
486
+ attr_accessor :config
487
+
488
+ # Output only. The time at which this CertificateAuthority was created.
489
+ # Corresponds to the JSON property `createTime`
490
+ # @return [String]
491
+ attr_accessor :create_time
492
+
493
+ # Output only. The time at which this CertificateAuthority will be deleted, if
494
+ # scheduled for deletion.
495
+ # Corresponds to the JSON property `deleteTime`
496
+ # @return [String]
497
+ attr_accessor :delete_time
498
+
499
+ # Immutable. The name of a Cloud Storage bucket where this CertificateAuthority
500
+ # will publish content, such as the CA certificate and CRLs. This must be a
501
+ # bucket name, without any prefixes (such as `gs://`) or suffixes (such as `.
502
+ # googleapis.com`). For example, to use a bucket named `my-bucket`, you would
503
+ # simply specify `my-bucket`. If not specified, a managed bucket will be created.
504
+ # Corresponds to the JSON property `gcsBucket`
505
+ # @return [String]
506
+ attr_accessor :gcs_bucket
507
+
508
+ # Options that affect all certificates issued by a CertificateAuthority.
509
+ # Corresponds to the JSON property `issuingOptions`
510
+ # @return [Google::Apis::PrivatecaV1beta1::IssuingOptions]
511
+ attr_accessor :issuing_options
512
+
513
+ # A Cloud KMS key configuration that a CertificateAuthority will use.
514
+ # Corresponds to the JSON property `keySpec`
515
+ # @return [Google::Apis::PrivatecaV1beta1::KeyVersionSpec]
516
+ attr_accessor :key_spec
517
+
518
+ # Optional. Labels with user-defined metadata.
519
+ # Corresponds to the JSON property `labels`
520
+ # @return [Hash<String,String>]
521
+ attr_accessor :labels
522
+
523
+ # Required. The desired lifetime of the CA certificate. Used to create the "
524
+ # not_before_time" and "not_after_time" fields inside an X.509 certificate.
525
+ # Corresponds to the JSON property `lifetime`
526
+ # @return [String]
527
+ attr_accessor :lifetime
528
+
529
+ # Output only. The resource name for this CertificateAuthority in the format `
530
+ # projects/*/locations/*/certificateAuthorities/*`.
531
+ # Corresponds to the JSON property `name`
532
+ # @return [String]
533
+ attr_accessor :name
534
+
535
+ # Output only. This CertificateAuthority's certificate chain, including the
536
+ # current CertificateAuthority's certificate. Ordered such that the root issuer
537
+ # is the final element (consistent with RFC 5246). For a self-signed CA, this
538
+ # will only list the current CertificateAuthority's certificate.
539
+ # Corresponds to the JSON property `pemCaCertificates`
540
+ # @return [Array<String>]
541
+ attr_accessor :pem_ca_certificates
542
+
543
+ # Output only. The State for this CertificateAuthority.
544
+ # Corresponds to the JSON property `state`
545
+ # @return [String]
546
+ attr_accessor :state
547
+
548
+ # Describes a subordinate CA's issuers. This is either a resource path to a
549
+ # known issuing CertificateAuthority, or a PEM issuer certificate chain.
550
+ # Corresponds to the JSON property `subordinateConfig`
551
+ # @return [Google::Apis::PrivatecaV1beta1::SubordinateConfig]
552
+ attr_accessor :subordinate_config
553
+
554
+ # Required. Immutable. The Tier of this CertificateAuthority.
555
+ # Corresponds to the JSON property `tier`
556
+ # @return [String]
557
+ attr_accessor :tier
558
+
559
+ # Required. Immutable. The Type of this CertificateAuthority.
560
+ # Corresponds to the JSON property `type`
561
+ # @return [String]
562
+ attr_accessor :type
563
+
564
+ # Output only. The time at which this CertificateAuthority was updated.
565
+ # Corresponds to the JSON property `updateTime`
566
+ # @return [String]
567
+ attr_accessor :update_time
568
+
569
+ def initialize(**args)
570
+ update!(**args)
571
+ end
572
+
573
+ # Update properties of this object
574
+ def update!(**args)
575
+ @access_urls = args[:access_urls] if args.key?(:access_urls)
576
+ @ca_certificate_descriptions = args[:ca_certificate_descriptions] if args.key?(:ca_certificate_descriptions)
577
+ @certificate_policy = args[:certificate_policy] if args.key?(:certificate_policy)
578
+ @config = args[:config] if args.key?(:config)
579
+ @create_time = args[:create_time] if args.key?(:create_time)
580
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
581
+ @gcs_bucket = args[:gcs_bucket] if args.key?(:gcs_bucket)
582
+ @issuing_options = args[:issuing_options] if args.key?(:issuing_options)
583
+ @key_spec = args[:key_spec] if args.key?(:key_spec)
584
+ @labels = args[:labels] if args.key?(:labels)
585
+ @lifetime = args[:lifetime] if args.key?(:lifetime)
586
+ @name = args[:name] if args.key?(:name)
587
+ @pem_ca_certificates = args[:pem_ca_certificates] if args.key?(:pem_ca_certificates)
588
+ @state = args[:state] if args.key?(:state)
589
+ @subordinate_config = args[:subordinate_config] if args.key?(:subordinate_config)
590
+ @tier = args[:tier] if args.key?(:tier)
591
+ @type = args[:type] if args.key?(:type)
592
+ @update_time = args[:update_time] if args.key?(:update_time)
593
+ end
594
+ end
595
+
596
+ # The issuing policy for a CertificateAuthority. Certificates will not be
597
+ # successfully issued from this CertificateAuthority if they violate the policy.
598
+ class CertificateAuthorityPolicy
599
+ include Google::Apis::Core::Hashable
600
+
601
+ # Optional. If any value is specified here, then all Certificates issued by the
602
+ # CertificateAuthority must match at least one listed value. If no value is
603
+ # specified, all values will be allowed for this fied. Glob patterns are also
604
+ # supported.
605
+ # Corresponds to the JSON property `allowedCommonNames`
606
+ # @return [Array<String>]
607
+ attr_accessor :allowed_common_names
608
+
609
+ # Optional. All Certificates issued by the CertificateAuthority must match at
610
+ # least one listed ReusableConfigWrapper in the list.
611
+ # Corresponds to the JSON property `allowedConfigList`
612
+ # @return [Google::Apis::PrivatecaV1beta1::AllowedConfigList]
613
+ attr_accessor :allowed_config_list
614
+
615
+ # IssuanceModes specifies the allowed ways in which Certificates may be
616
+ # requested from this CertificateAuthority.
617
+ # Corresponds to the JSON property `allowedIssuanceModes`
618
+ # @return [Google::Apis::PrivatecaV1beta1::IssuanceModes]
619
+ attr_accessor :allowed_issuance_modes
620
+
621
+ # Optional. If any Subject is specified here, then all Certificates issued by
622
+ # the CertificateAuthority must match at least one listed Subject. If a Subject
623
+ # has an empty field, any value will be allowed for that field.
624
+ # Corresponds to the JSON property `allowedLocationsAndOrganizations`
625
+ # @return [Array<Google::Apis::PrivatecaV1beta1::Subject>]
626
+ attr_accessor :allowed_locations_and_organizations
627
+
628
+ # AllowedSubjectAltNames specifies the allowed values for SubjectAltNames by the
629
+ # CertificateAuthority when issuing Certificates.
630
+ # Corresponds to the JSON property `allowedSans`
631
+ # @return [Google::Apis::PrivatecaV1beta1::AllowedSubjectAltNames]
632
+ attr_accessor :allowed_sans
633
+
634
+ # Optional. The maximum lifetime allowed by the CertificateAuthority. Note that
635
+ # if the any part if the issuing chain expires before a Certificate's requested
636
+ # maximum_lifetime, the effective lifetime will be explicitly truncated.
637
+ # Corresponds to the JSON property `maximumLifetime`
638
+ # @return [String]
639
+ attr_accessor :maximum_lifetime
640
+
641
+ # A ReusableConfigWrapper describes values that may assist in creating an X.509
642
+ # certificate, or a reference to a pre-defined set of values.
643
+ # Corresponds to the JSON property `overwriteConfigValues`
644
+ # @return [Google::Apis::PrivatecaV1beta1::ReusableConfigWrapper]
645
+ attr_accessor :overwrite_config_values
646
+
647
+ def initialize(**args)
648
+ update!(**args)
649
+ end
650
+
651
+ # Update properties of this object
652
+ def update!(**args)
653
+ @allowed_common_names = args[:allowed_common_names] if args.key?(:allowed_common_names)
654
+ @allowed_config_list = args[:allowed_config_list] if args.key?(:allowed_config_list)
655
+ @allowed_issuance_modes = args[:allowed_issuance_modes] if args.key?(:allowed_issuance_modes)
656
+ @allowed_locations_and_organizations = args[:allowed_locations_and_organizations] if args.key?(:allowed_locations_and_organizations)
657
+ @allowed_sans = args[:allowed_sans] if args.key?(:allowed_sans)
658
+ @maximum_lifetime = args[:maximum_lifetime] if args.key?(:maximum_lifetime)
659
+ @overwrite_config_values = args[:overwrite_config_values] if args.key?(:overwrite_config_values)
660
+ end
661
+ end
662
+
663
+ # A CertificateConfig describes an X.509 certificate or CSR that is to be
664
+ # created, as an alternative to using ASN.1.
665
+ class CertificateConfig
666
+ include Google::Apis::Core::Hashable
667
+
668
+ # A PublicKey describes a public key.
669
+ # Corresponds to the JSON property `publicKey`
670
+ # @return [Google::Apis::PrivatecaV1beta1::PublicKey]
671
+ attr_accessor :public_key
672
+
673
+ # A ReusableConfigWrapper describes values that may assist in creating an X.509
674
+ # certificate, or a reference to a pre-defined set of values.
675
+ # Corresponds to the JSON property `reusableConfig`
676
+ # @return [Google::Apis::PrivatecaV1beta1::ReusableConfigWrapper]
677
+ attr_accessor :reusable_config
678
+
679
+ # These values are used to create the distinguished name and subject alternative
680
+ # name fields in an X.509 certificate.
681
+ # Corresponds to the JSON property `subjectConfig`
682
+ # @return [Google::Apis::PrivatecaV1beta1::SubjectConfig]
683
+ attr_accessor :subject_config
684
+
685
+ def initialize(**args)
686
+ update!(**args)
687
+ end
688
+
689
+ # Update properties of this object
690
+ def update!(**args)
691
+ @public_key = args[:public_key] if args.key?(:public_key)
692
+ @reusable_config = args[:reusable_config] if args.key?(:reusable_config)
693
+ @subject_config = args[:subject_config] if args.key?(:subject_config)
694
+ end
695
+ end
696
+
697
+ # A CertificateDescription describes an X.509 certificate or CSR that has been
698
+ # issued, as an alternative to using ASN.1 / X.509.
699
+ class CertificateDescription
700
+ include Google::Apis::Core::Hashable
701
+
702
+ # Describes lists of issuer CA certificate URLs that appear in the "Authority
703
+ # Information Access" extension in the certificate.
704
+ # Corresponds to the JSON property `aiaIssuingCertificateUrls`
705
+ # @return [Array<String>]
706
+ attr_accessor :aia_issuing_certificate_urls
707
+
708
+ # A KeyId identifies a specific public key, usually by hashing the public key.
709
+ # Corresponds to the JSON property `authorityKeyId`
710
+ # @return [Google::Apis::PrivatecaV1beta1::KeyId]
711
+ attr_accessor :authority_key_id
712
+
713
+ # A group of fingerprints for the x509 certificate.
714
+ # Corresponds to the JSON property `certFingerprint`
715
+ # @return [Google::Apis::PrivatecaV1beta1::CertificateFingerprint]
716
+ attr_accessor :cert_fingerprint
717
+
718
+ # A ReusableConfigValues is used to describe certain fields of an X.509
719
+ # certificate, such as the key usage fields, fields specific to CA certificates,
720
+ # certificate policy extensions and custom extensions.
721
+ # Corresponds to the JSON property `configValues`
722
+ # @return [Google::Apis::PrivatecaV1beta1::ReusableConfigValues]
723
+ attr_accessor :config_values
724
+
725
+ # Describes a list of locations to obtain CRL information, i.e. the
726
+ # DistributionPoint.fullName described by https://tools.ietf.org/html/rfc5280#
727
+ # section-4.2.1.13
728
+ # Corresponds to the JSON property `crlDistributionPoints`
729
+ # @return [Array<String>]
730
+ attr_accessor :crl_distribution_points
731
+
732
+ # A PublicKey describes a public key.
733
+ # Corresponds to the JSON property `publicKey`
734
+ # @return [Google::Apis::PrivatecaV1beta1::PublicKey]
735
+ attr_accessor :public_key
736
+
737
+ # These values describe fields in an issued X.509 certificate such as the
738
+ # distinguished name, subject alternative names, serial number, and lifetime.
739
+ # Corresponds to the JSON property `subjectDescription`
740
+ # @return [Google::Apis::PrivatecaV1beta1::SubjectDescription]
741
+ attr_accessor :subject_description
742
+
743
+ # A KeyId identifies a specific public key, usually by hashing the public key.
744
+ # Corresponds to the JSON property `subjectKeyId`
745
+ # @return [Google::Apis::PrivatecaV1beta1::KeyId]
746
+ attr_accessor :subject_key_id
747
+
748
+ def initialize(**args)
749
+ update!(**args)
750
+ end
751
+
752
+ # Update properties of this object
753
+ def update!(**args)
754
+ @aia_issuing_certificate_urls = args[:aia_issuing_certificate_urls] if args.key?(:aia_issuing_certificate_urls)
755
+ @authority_key_id = args[:authority_key_id] if args.key?(:authority_key_id)
756
+ @cert_fingerprint = args[:cert_fingerprint] if args.key?(:cert_fingerprint)
757
+ @config_values = args[:config_values] if args.key?(:config_values)
758
+ @crl_distribution_points = args[:crl_distribution_points] if args.key?(:crl_distribution_points)
759
+ @public_key = args[:public_key] if args.key?(:public_key)
760
+ @subject_description = args[:subject_description] if args.key?(:subject_description)
761
+ @subject_key_id = args[:subject_key_id] if args.key?(:subject_key_id)
762
+ end
763
+ end
764
+
765
+ # A group of fingerprints for the x509 certificate.
766
+ class CertificateFingerprint
767
+ include Google::Apis::Core::Hashable
768
+
769
+ # The SHA 256 hash, encoded in hexadecimal, of the DER x509 certificate.
770
+ # Corresponds to the JSON property `sha256Hash`
771
+ # @return [String]
772
+ attr_accessor :sha256_hash
773
+
774
+ def initialize(**args)
775
+ update!(**args)
776
+ end
777
+
778
+ # Update properties of this object
779
+ def update!(**args)
780
+ @sha256_hash = args[:sha256_hash] if args.key?(:sha256_hash)
781
+ end
782
+ end
783
+
784
+ # A CertificateRevocationList corresponds to a signed X.509 certificate
785
+ # Revocation List (CRL). A CRL contains the serial numbers of certificates that
786
+ # should no longer be trusted.
787
+ class CertificateRevocationList
788
+ include Google::Apis::Core::Hashable
789
+
790
+ # Output only. The location where 'pem_crl' can be accessed.
791
+ # Corresponds to the JSON property `accessUrl`
792
+ # @return [String]
793
+ attr_accessor :access_url
794
+
795
+ # Output only. The time at which this CertificateRevocationList was created.
796
+ # Corresponds to the JSON property `createTime`
797
+ # @return [String]
798
+ attr_accessor :create_time
799
+
800
+ # Optional. Labels with user-defined metadata.
801
+ # Corresponds to the JSON property `labels`
802
+ # @return [Hash<String,String>]
803
+ attr_accessor :labels
804
+
805
+ # Output only. The resource path for this CertificateRevocationList in the
806
+ # format `projects/*/locations/*/certificateAuthorities/*/
807
+ # certificateRevocationLists/*`.
808
+ # Corresponds to the JSON property `name`
809
+ # @return [String]
810
+ attr_accessor :name
811
+
812
+ # Output only. The PEM-encoded X.509 CRL.
813
+ # Corresponds to the JSON property `pemCrl`
814
+ # @return [String]
815
+ attr_accessor :pem_crl
816
+
817
+ # Output only. The revoked serial numbers that appear in pem_crl.
818
+ # Corresponds to the JSON property `revokedCertificates`
819
+ # @return [Array<Google::Apis::PrivatecaV1beta1::RevokedCertificate>]
820
+ attr_accessor :revoked_certificates
821
+
822
+ # Output only. The CRL sequence number that appears in pem_crl.
823
+ # Corresponds to the JSON property `sequenceNumber`
824
+ # @return [Fixnum]
825
+ attr_accessor :sequence_number
826
+
827
+ # Output only. The State for this CertificateRevocationList.
828
+ # Corresponds to the JSON property `state`
829
+ # @return [String]
830
+ attr_accessor :state
831
+
832
+ # Output only. The time at which this CertificateRevocationList was updated.
833
+ # Corresponds to the JSON property `updateTime`
834
+ # @return [String]
835
+ attr_accessor :update_time
836
+
837
+ def initialize(**args)
838
+ update!(**args)
839
+ end
840
+
841
+ # Update properties of this object
842
+ def update!(**args)
843
+ @access_url = args[:access_url] if args.key?(:access_url)
844
+ @create_time = args[:create_time] if args.key?(:create_time)
845
+ @labels = args[:labels] if args.key?(:labels)
846
+ @name = args[:name] if args.key?(:name)
847
+ @pem_crl = args[:pem_crl] if args.key?(:pem_crl)
848
+ @revoked_certificates = args[:revoked_certificates] if args.key?(:revoked_certificates)
849
+ @sequence_number = args[:sequence_number] if args.key?(:sequence_number)
850
+ @state = args[:state] if args.key?(:state)
851
+ @update_time = args[:update_time] if args.key?(:update_time)
852
+ end
853
+ end
854
+
855
+ # Request message for CertificateAuthorityService.DisableCertificateAuthority.
856
+ class DisableCertificateAuthorityRequest
857
+ include Google::Apis::Core::Hashable
858
+
859
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
860
+ # you must retry your request, the server will know to ignore the request if it
861
+ # has already been completed. The server will guarantee that for at least 60
862
+ # minutes since the first request. For example, consider a situation where you
863
+ # make an initial request and t he request times out. If you make the request
864
+ # again with the same request ID, the server can check if original operation
865
+ # with the same request ID was received, and if so, will ignore the second
866
+ # request. This prevents clients from accidentally creating duplicate
867
+ # commitments. The request ID must be a valid UUID with the exception that zero
868
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
869
+ # Corresponds to the JSON property `requestId`
870
+ # @return [String]
871
+ attr_accessor :request_id
872
+
873
+ def initialize(**args)
874
+ update!(**args)
875
+ end
876
+
877
+ # Update properties of this object
878
+ def update!(**args)
879
+ @request_id = args[:request_id] if args.key?(:request_id)
880
+ end
881
+ end
882
+
883
+ # A generic empty message that you can re-use to avoid defining duplicated empty
884
+ # messages in your APIs. A typical example is to use it as the request or the
885
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
886
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
887
+ # `Empty` is empty JSON object ````.
888
+ class Empty
889
+ include Google::Apis::Core::Hashable
890
+
891
+ def initialize(**args)
892
+ update!(**args)
893
+ end
894
+
895
+ # Update properties of this object
896
+ def update!(**args)
897
+ end
898
+ end
899
+
900
+ # Request message for CertificateAuthorityService.EnableCertificateAuthority.
901
+ class EnableCertificateAuthorityRequest
902
+ include Google::Apis::Core::Hashable
903
+
904
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
905
+ # you must retry your request, the server will know to ignore the request if it
906
+ # has already been completed. The server will guarantee that for at least 60
907
+ # minutes since the first request. For example, consider a situation where you
908
+ # make an initial request and t he request times out. If you make the request
909
+ # again with the same request ID, the server can check if original operation
910
+ # with the same request ID was received, and if so, will ignore the second
911
+ # request. This prevents clients from accidentally creating duplicate
912
+ # commitments. The request ID must be a valid UUID with the exception that zero
913
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
914
+ # Corresponds to the JSON property `requestId`
915
+ # @return [String]
916
+ attr_accessor :request_id
917
+
918
+ def initialize(**args)
919
+ update!(**args)
920
+ end
921
+
922
+ # Update properties of this object
923
+ def update!(**args)
924
+ @request_id = args[:request_id] if args.key?(:request_id)
925
+ end
926
+ end
927
+
928
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
929
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
930
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
931
+ # "Summary size limit" description: "Determines if a summary is less than 100
932
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
933
+ # Requestor is owner" description: "Determines if requestor is the document
934
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
935
+ # Logic): title: "Public documents" description: "Determine whether the document
936
+ # should be publicly visible" expression: "document.type != 'private' &&
937
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
938
+ # string" description: "Create a notification string with a timestamp."
939
+ # expression: "'New message received at ' + string(document.create_time)" The
940
+ # exact variables and functions that may be referenced within an expression are
941
+ # determined by the service that evaluates it. See the service documentation for
942
+ # additional information.
943
+ class Expr
944
+ include Google::Apis::Core::Hashable
945
+
946
+ # Optional. Description of the expression. This is a longer text which describes
947
+ # the expression, e.g. when hovered over it in a UI.
948
+ # Corresponds to the JSON property `description`
949
+ # @return [String]
950
+ attr_accessor :description
951
+
952
+ # Textual representation of an expression in Common Expression Language syntax.
953
+ # Corresponds to the JSON property `expression`
954
+ # @return [String]
955
+ attr_accessor :expression
956
+
957
+ # Optional. String indicating the location of the expression for error reporting,
958
+ # e.g. a file name and a position in the file.
959
+ # Corresponds to the JSON property `location`
960
+ # @return [String]
961
+ attr_accessor :location
962
+
963
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
964
+ # This can be used e.g. in UIs which allow to enter the expression.
965
+ # Corresponds to the JSON property `title`
966
+ # @return [String]
967
+ attr_accessor :title
968
+
969
+ def initialize(**args)
970
+ update!(**args)
971
+ end
972
+
973
+ # Update properties of this object
974
+ def update!(**args)
975
+ @description = args[:description] if args.key?(:description)
976
+ @expression = args[:expression] if args.key?(:expression)
977
+ @location = args[:location] if args.key?(:location)
978
+ @title = args[:title] if args.key?(:title)
979
+ end
980
+ end
981
+
982
+ # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common
983
+ # OIDs that could be specified as an extended key usage value.
984
+ class ExtendedKeyUsageOptions
985
+ include Google::Apis::Core::Hashable
986
+
987
+ # Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW client
988
+ # authentication", though regularly used for non-WWW TLS.
989
+ # Corresponds to the JSON property `clientAuth`
990
+ # @return [Boolean]
991
+ attr_accessor :client_auth
992
+ alias_method :client_auth?, :client_auth
993
+
994
+ # Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
995
+ # downloadable executable code client authentication".
996
+ # Corresponds to the JSON property `codeSigning`
997
+ # @return [Boolean]
998
+ attr_accessor :code_signing
999
+ alias_method :code_signing?, :code_signing
1000
+
1001
+ # Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
1002
+ # protection".
1003
+ # Corresponds to the JSON property `emailProtection`
1004
+ # @return [Boolean]
1005
+ attr_accessor :email_protection
1006
+ alias_method :email_protection?, :email_protection
1007
+
1008
+ # Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing OCSP
1009
+ # responses".
1010
+ # Corresponds to the JSON property `ocspSigning`
1011
+ # @return [Boolean]
1012
+ attr_accessor :ocsp_signing
1013
+ alias_method :ocsp_signing?, :ocsp_signing
1014
+
1015
+ # Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW server
1016
+ # authentication", though regularly used for non-WWW TLS.
1017
+ # Corresponds to the JSON property `serverAuth`
1018
+ # @return [Boolean]
1019
+ attr_accessor :server_auth
1020
+ alias_method :server_auth?, :server_auth
1021
+
1022
+ # Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding the
1023
+ # hash of an object to a time".
1024
+ # Corresponds to the JSON property `timeStamping`
1025
+ # @return [Boolean]
1026
+ attr_accessor :time_stamping
1027
+ alias_method :time_stamping?, :time_stamping
1028
+
1029
+ def initialize(**args)
1030
+ update!(**args)
1031
+ end
1032
+
1033
+ # Update properties of this object
1034
+ def update!(**args)
1035
+ @client_auth = args[:client_auth] if args.key?(:client_auth)
1036
+ @code_signing = args[:code_signing] if args.key?(:code_signing)
1037
+ @email_protection = args[:email_protection] if args.key?(:email_protection)
1038
+ @ocsp_signing = args[:ocsp_signing] if args.key?(:ocsp_signing)
1039
+ @server_auth = args[:server_auth] if args.key?(:server_auth)
1040
+ @time_stamping = args[:time_stamping] if args.key?(:time_stamping)
1041
+ end
1042
+ end
1043
+
1044
+ # Response message for CertificateAuthorityService.FetchCertificateAuthorityCsr.
1045
+ class FetchCertificateAuthorityCsrResponse
1046
+ include Google::Apis::Core::Hashable
1047
+
1048
+ # Output only. The PEM-encoded signed certificate signing request (CSR).
1049
+ # Corresponds to the JSON property `pemCsr`
1050
+ # @return [String]
1051
+ attr_accessor :pem_csr
1052
+
1053
+ def initialize(**args)
1054
+ update!(**args)
1055
+ end
1056
+
1057
+ # Update properties of this object
1058
+ def update!(**args)
1059
+ @pem_csr = args[:pem_csr] if args.key?(:pem_csr)
1060
+ end
1061
+ end
1062
+
1063
+ # IssuanceModes specifies the allowed ways in which Certificates may be
1064
+ # requested from this CertificateAuthority.
1065
+ class IssuanceModes
1066
+ include Google::Apis::Core::Hashable
1067
+
1068
+ # Required. When true, allows callers to create Certificates by specifying a
1069
+ # CertificateConfig.
1070
+ # Corresponds to the JSON property `allowConfigBasedIssuance`
1071
+ # @return [Boolean]
1072
+ attr_accessor :allow_config_based_issuance
1073
+ alias_method :allow_config_based_issuance?, :allow_config_based_issuance
1074
+
1075
+ # Required. When true, allows callers to create Certificates by specifying a CSR.
1076
+ # Corresponds to the JSON property `allowCsrBasedIssuance`
1077
+ # @return [Boolean]
1078
+ attr_accessor :allow_csr_based_issuance
1079
+ alias_method :allow_csr_based_issuance?, :allow_csr_based_issuance
1080
+
1081
+ def initialize(**args)
1082
+ update!(**args)
1083
+ end
1084
+
1085
+ # Update properties of this object
1086
+ def update!(**args)
1087
+ @allow_config_based_issuance = args[:allow_config_based_issuance] if args.key?(:allow_config_based_issuance)
1088
+ @allow_csr_based_issuance = args[:allow_csr_based_issuance] if args.key?(:allow_csr_based_issuance)
1089
+ end
1090
+ end
1091
+
1092
+ # Options that affect all certificates issued by a CertificateAuthority.
1093
+ class IssuingOptions
1094
+ include Google::Apis::Core::Hashable
1095
+
1096
+ # Required. When true, includes a URL to the issuing CA certificate in the "
1097
+ # authority information access" X.509 extension.
1098
+ # Corresponds to the JSON property `includeCaCertUrl`
1099
+ # @return [Boolean]
1100
+ attr_accessor :include_ca_cert_url
1101
+ alias_method :include_ca_cert_url?, :include_ca_cert_url
1102
+
1103
+ # Required. When true, includes a URL to the CRL corresponding to certificates
1104
+ # issued from a CertificateAuthority. CRLs will expire 7 days from their
1105
+ # creation. However, we will rebuild daily. CRLs are also rebuilt shortly after
1106
+ # a certificate is revoked.
1107
+ # Corresponds to the JSON property `includeCrlAccessUrl`
1108
+ # @return [Boolean]
1109
+ attr_accessor :include_crl_access_url
1110
+ alias_method :include_crl_access_url?, :include_crl_access_url
1111
+
1112
+ def initialize(**args)
1113
+ update!(**args)
1114
+ end
1115
+
1116
+ # Update properties of this object
1117
+ def update!(**args)
1118
+ @include_ca_cert_url = args[:include_ca_cert_url] if args.key?(:include_ca_cert_url)
1119
+ @include_crl_access_url = args[:include_crl_access_url] if args.key?(:include_crl_access_url)
1120
+ end
1121
+ end
1122
+
1123
+ # A KeyId identifies a specific public key, usually by hashing the public key.
1124
+ class KeyId
1125
+ include Google::Apis::Core::Hashable
1126
+
1127
+ # Optional. The value of this KeyId encoded in lowercase hexadecimal. This is
1128
+ # most likely the 160 bit SHA-1 hash of the public key.
1129
+ # Corresponds to the JSON property `keyId`
1130
+ # @return [String]
1131
+ attr_accessor :key_id
1132
+
1133
+ def initialize(**args)
1134
+ update!(**args)
1135
+ end
1136
+
1137
+ # Update properties of this object
1138
+ def update!(**args)
1139
+ @key_id = args[:key_id] if args.key?(:key_id)
1140
+ end
1141
+ end
1142
+
1143
+ # A KeyUsage describes key usage values that may appear in an X.509 certificate.
1144
+ class KeyUsage
1145
+ include Google::Apis::Core::Hashable
1146
+
1147
+ # KeyUsage.KeyUsageOptions corresponds to the key usage values described in
1148
+ # https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
1149
+ # Corresponds to the JSON property `baseKeyUsage`
1150
+ # @return [Google::Apis::PrivatecaV1beta1::KeyUsageOptions]
1151
+ attr_accessor :base_key_usage
1152
+
1153
+ # KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common
1154
+ # OIDs that could be specified as an extended key usage value.
1155
+ # Corresponds to the JSON property `extendedKeyUsage`
1156
+ # @return [Google::Apis::PrivatecaV1beta1::ExtendedKeyUsageOptions]
1157
+ attr_accessor :extended_key_usage
1158
+
1159
+ # Used to describe extended key usages that are not listed in the KeyUsage.
1160
+ # ExtendedKeyUsageOptions message.
1161
+ # Corresponds to the JSON property `unknownExtendedKeyUsages`
1162
+ # @return [Array<Google::Apis::PrivatecaV1beta1::ObjectIdProp>]
1163
+ attr_accessor :unknown_extended_key_usages
1164
+
1165
+ def initialize(**args)
1166
+ update!(**args)
1167
+ end
1168
+
1169
+ # Update properties of this object
1170
+ def update!(**args)
1171
+ @base_key_usage = args[:base_key_usage] if args.key?(:base_key_usage)
1172
+ @extended_key_usage = args[:extended_key_usage] if args.key?(:extended_key_usage)
1173
+ @unknown_extended_key_usages = args[:unknown_extended_key_usages] if args.key?(:unknown_extended_key_usages)
1174
+ end
1175
+ end
1176
+
1177
+ # KeyUsage.KeyUsageOptions corresponds to the key usage values described in
1178
+ # https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
1179
+ class KeyUsageOptions
1180
+ include Google::Apis::Core::Hashable
1181
+
1182
+ # The key may be used to sign certificates.
1183
+ # Corresponds to the JSON property `certSign`
1184
+ # @return [Boolean]
1185
+ attr_accessor :cert_sign
1186
+ alias_method :cert_sign?, :cert_sign
1187
+
1188
+ # The key may be used for cryptographic commitments. Note that this may also be
1189
+ # referred to as "non-repudiation".
1190
+ # Corresponds to the JSON property `contentCommitment`
1191
+ # @return [Boolean]
1192
+ attr_accessor :content_commitment
1193
+ alias_method :content_commitment?, :content_commitment
1194
+
1195
+ # The key may be used sign certificate revocation lists.
1196
+ # Corresponds to the JSON property `crlSign`
1197
+ # @return [Boolean]
1198
+ attr_accessor :crl_sign
1199
+ alias_method :crl_sign?, :crl_sign
1200
+
1201
+ # The key may be used to encipher data.
1202
+ # Corresponds to the JSON property `dataEncipherment`
1203
+ # @return [Boolean]
1204
+ attr_accessor :data_encipherment
1205
+ alias_method :data_encipherment?, :data_encipherment
1206
+
1207
+ # The key may be used to decipher only.
1208
+ # Corresponds to the JSON property `decipherOnly`
1209
+ # @return [Boolean]
1210
+ attr_accessor :decipher_only
1211
+ alias_method :decipher_only?, :decipher_only
1212
+
1213
+ # The key may be used for digital signatures.
1214
+ # Corresponds to the JSON property `digitalSignature`
1215
+ # @return [Boolean]
1216
+ attr_accessor :digital_signature
1217
+ alias_method :digital_signature?, :digital_signature
1218
+
1219
+ # The key may be used to encipher only.
1220
+ # Corresponds to the JSON property `encipherOnly`
1221
+ # @return [Boolean]
1222
+ attr_accessor :encipher_only
1223
+ alias_method :encipher_only?, :encipher_only
1224
+
1225
+ # The key may be used in a key agreement protocol.
1226
+ # Corresponds to the JSON property `keyAgreement`
1227
+ # @return [Boolean]
1228
+ attr_accessor :key_agreement
1229
+ alias_method :key_agreement?, :key_agreement
1230
+
1231
+ # The key may be used to encipher other keys.
1232
+ # Corresponds to the JSON property `keyEncipherment`
1233
+ # @return [Boolean]
1234
+ attr_accessor :key_encipherment
1235
+ alias_method :key_encipherment?, :key_encipherment
1236
+
1237
+ def initialize(**args)
1238
+ update!(**args)
1239
+ end
1240
+
1241
+ # Update properties of this object
1242
+ def update!(**args)
1243
+ @cert_sign = args[:cert_sign] if args.key?(:cert_sign)
1244
+ @content_commitment = args[:content_commitment] if args.key?(:content_commitment)
1245
+ @crl_sign = args[:crl_sign] if args.key?(:crl_sign)
1246
+ @data_encipherment = args[:data_encipherment] if args.key?(:data_encipherment)
1247
+ @decipher_only = args[:decipher_only] if args.key?(:decipher_only)
1248
+ @digital_signature = args[:digital_signature] if args.key?(:digital_signature)
1249
+ @encipher_only = args[:encipher_only] if args.key?(:encipher_only)
1250
+ @key_agreement = args[:key_agreement] if args.key?(:key_agreement)
1251
+ @key_encipherment = args[:key_encipherment] if args.key?(:key_encipherment)
1252
+ end
1253
+ end
1254
+
1255
+ # A Cloud KMS key configuration that a CertificateAuthority will use.
1256
+ class KeyVersionSpec
1257
+ include Google::Apis::Core::Hashable
1258
+
1259
+ # Required. The algorithm to use for creating a managed Cloud KMS key for a for
1260
+ # a simplified experience. All managed keys will be have their ProtectionLevel
1261
+ # as `HSM`.
1262
+ # Corresponds to the JSON property `algorithm`
1263
+ # @return [String]
1264
+ attr_accessor :algorithm
1265
+
1266
+ # Required. The resource name for an existing Cloud KMS CryptoKeyVersion in the
1267
+ # format `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
1268
+ # This option enables full flexibility in the key's capabilities and properties.
1269
+ # Corresponds to the JSON property `cloudKmsKeyVersion`
1270
+ # @return [String]
1271
+ attr_accessor :cloud_kms_key_version
1272
+
1273
+ def initialize(**args)
1274
+ update!(**args)
1275
+ end
1276
+
1277
+ # Update properties of this object
1278
+ def update!(**args)
1279
+ @algorithm = args[:algorithm] if args.key?(:algorithm)
1280
+ @cloud_kms_key_version = args[:cloud_kms_key_version] if args.key?(:cloud_kms_key_version)
1281
+ end
1282
+ end
1283
+
1284
+ # Response message for CertificateAuthorityService.ListCertificateAuthorities.
1285
+ class ListCertificateAuthoritiesResponse
1286
+ include Google::Apis::Core::Hashable
1287
+
1288
+ # The list of CertificateAuthorities.
1289
+ # Corresponds to the JSON property `certificateAuthorities`
1290
+ # @return [Array<Google::Apis::PrivatecaV1beta1::CertificateAuthority>]
1291
+ attr_accessor :certificate_authorities
1292
+
1293
+ # A token to retrieve next page of results. Pass this value in
1294
+ # ListCertificateAuthoritiesRequest.next_page_token to retrieve the next page of
1295
+ # results.
1296
+ # Corresponds to the JSON property `nextPageToken`
1297
+ # @return [String]
1298
+ attr_accessor :next_page_token
1299
+
1300
+ # A list of locations (e.g. "us-west1") that could not be reached.
1301
+ # Corresponds to the JSON property `unreachable`
1302
+ # @return [Array<String>]
1303
+ attr_accessor :unreachable
1304
+
1305
+ def initialize(**args)
1306
+ update!(**args)
1307
+ end
1308
+
1309
+ # Update properties of this object
1310
+ def update!(**args)
1311
+ @certificate_authorities = args[:certificate_authorities] if args.key?(:certificate_authorities)
1312
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1313
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1314
+ end
1315
+ end
1316
+
1317
+ # Response message for CertificateAuthorityService.
1318
+ # ListCertificateRevocationLists.
1319
+ class ListCertificateRevocationListsResponse
1320
+ include Google::Apis::Core::Hashable
1321
+
1322
+ # The list of CertificateRevocationLists.
1323
+ # Corresponds to the JSON property `certificateRevocationLists`
1324
+ # @return [Array<Google::Apis::PrivatecaV1beta1::CertificateRevocationList>]
1325
+ attr_accessor :certificate_revocation_lists
1326
+
1327
+ # A token to retrieve next page of results. Pass this value in
1328
+ # ListCertificateRevocationListsRequest.next_page_token to retrieve the next
1329
+ # page of results.
1330
+ # Corresponds to the JSON property `nextPageToken`
1331
+ # @return [String]
1332
+ attr_accessor :next_page_token
1333
+
1334
+ # A list of locations (e.g. "us-west1") that could not be reached.
1335
+ # Corresponds to the JSON property `unreachable`
1336
+ # @return [Array<String>]
1337
+ attr_accessor :unreachable
1338
+
1339
+ def initialize(**args)
1340
+ update!(**args)
1341
+ end
1342
+
1343
+ # Update properties of this object
1344
+ def update!(**args)
1345
+ @certificate_revocation_lists = args[:certificate_revocation_lists] if args.key?(:certificate_revocation_lists)
1346
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1347
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1348
+ end
1349
+ end
1350
+
1351
+ # Response message for CertificateAuthorityService.ListCertificates.
1352
+ class ListCertificatesResponse
1353
+ include Google::Apis::Core::Hashable
1354
+
1355
+ # The list of Certificates.
1356
+ # Corresponds to the JSON property `certificates`
1357
+ # @return [Array<Google::Apis::PrivatecaV1beta1::Certificate>]
1358
+ attr_accessor :certificates
1359
+
1360
+ # A token to retrieve next page of results. Pass this value in
1361
+ # ListCertificatesRequest.next_page_token to retrieve the next page of results.
1362
+ # Corresponds to the JSON property `nextPageToken`
1363
+ # @return [String]
1364
+ attr_accessor :next_page_token
1365
+
1366
+ # A list of locations (e.g. "us-west1") that could not be reached.
1367
+ # Corresponds to the JSON property `unreachable`
1368
+ # @return [Array<String>]
1369
+ attr_accessor :unreachable
1370
+
1371
+ def initialize(**args)
1372
+ update!(**args)
1373
+ end
1374
+
1375
+ # Update properties of this object
1376
+ def update!(**args)
1377
+ @certificates = args[:certificates] if args.key?(:certificates)
1378
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1379
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1380
+ end
1381
+ end
1382
+
1383
+ # The response message for Locations.ListLocations.
1384
+ class ListLocationsResponse
1385
+ include Google::Apis::Core::Hashable
1386
+
1387
+ # A list of locations that matches the specified filter in the request.
1388
+ # Corresponds to the JSON property `locations`
1389
+ # @return [Array<Google::Apis::PrivatecaV1beta1::Location>]
1390
+ attr_accessor :locations
1391
+
1392
+ # The standard List next-page token.
1393
+ # Corresponds to the JSON property `nextPageToken`
1394
+ # @return [String]
1395
+ attr_accessor :next_page_token
1396
+
1397
+ def initialize(**args)
1398
+ update!(**args)
1399
+ end
1400
+
1401
+ # Update properties of this object
1402
+ def update!(**args)
1403
+ @locations = args[:locations] if args.key?(:locations)
1404
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1405
+ end
1406
+ end
1407
+
1408
+ # The response message for Operations.ListOperations.
1409
+ class ListOperationsResponse
1410
+ include Google::Apis::Core::Hashable
1411
+
1412
+ # The standard List next-page token.
1413
+ # Corresponds to the JSON property `nextPageToken`
1414
+ # @return [String]
1415
+ attr_accessor :next_page_token
1416
+
1417
+ # A list of operations that matches the specified filter in the request.
1418
+ # Corresponds to the JSON property `operations`
1419
+ # @return [Array<Google::Apis::PrivatecaV1beta1::Operation>]
1420
+ attr_accessor :operations
1421
+
1422
+ def initialize(**args)
1423
+ update!(**args)
1424
+ end
1425
+
1426
+ # Update properties of this object
1427
+ def update!(**args)
1428
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1429
+ @operations = args[:operations] if args.key?(:operations)
1430
+ end
1431
+ end
1432
+
1433
+ # Response message for CertificateAuthorityService.ListReusableConfigs.
1434
+ class ListReusableConfigsResponse
1435
+ include Google::Apis::Core::Hashable
1436
+
1437
+ # A token to retrieve next page of results. Pass this value in
1438
+ # ListReusableConfigsRequest.next_page_token to retrieve the next page of
1439
+ # results.
1440
+ # Corresponds to the JSON property `nextPageToken`
1441
+ # @return [String]
1442
+ attr_accessor :next_page_token
1443
+
1444
+ # The list of ReusableConfigs.
1445
+ # Corresponds to the JSON property `reusableConfigs`
1446
+ # @return [Array<Google::Apis::PrivatecaV1beta1::ReusableConfig>]
1447
+ attr_accessor :reusable_configs
1448
+
1449
+ # A list of locations (e.g. "us-west1") that could not be reached.
1450
+ # Corresponds to the JSON property `unreachable`
1451
+ # @return [Array<String>]
1452
+ attr_accessor :unreachable
1453
+
1454
+ def initialize(**args)
1455
+ update!(**args)
1456
+ end
1457
+
1458
+ # Update properties of this object
1459
+ def update!(**args)
1460
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1461
+ @reusable_configs = args[:reusable_configs] if args.key?(:reusable_configs)
1462
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1463
+ end
1464
+ end
1465
+
1466
+ # A resource that represents Google Cloud Platform location.
1467
+ class Location
1468
+ include Google::Apis::Core::Hashable
1469
+
1470
+ # The friendly name for this location, typically a nearby city name. For example,
1471
+ # "Tokyo".
1472
+ # Corresponds to the JSON property `displayName`
1473
+ # @return [String]
1474
+ attr_accessor :display_name
1475
+
1476
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
1477
+ # region": "us-east1"`
1478
+ # Corresponds to the JSON property `labels`
1479
+ # @return [Hash<String,String>]
1480
+ attr_accessor :labels
1481
+
1482
+ # The canonical id for this location. For example: `"us-east1"`.
1483
+ # Corresponds to the JSON property `locationId`
1484
+ # @return [String]
1485
+ attr_accessor :location_id
1486
+
1487
+ # Service-specific metadata. For example the available capacity at the given
1488
+ # location.
1489
+ # Corresponds to the JSON property `metadata`
1490
+ # @return [Hash<String,Object>]
1491
+ attr_accessor :metadata
1492
+
1493
+ # Resource name for the location, which may vary between implementations. For
1494
+ # example: `"projects/example-project/locations/us-east1"`
1495
+ # Corresponds to the JSON property `name`
1496
+ # @return [String]
1497
+ attr_accessor :name
1498
+
1499
+ def initialize(**args)
1500
+ update!(**args)
1501
+ end
1502
+
1503
+ # Update properties of this object
1504
+ def update!(**args)
1505
+ @display_name = args[:display_name] if args.key?(:display_name)
1506
+ @labels = args[:labels] if args.key?(:labels)
1507
+ @location_id = args[:location_id] if args.key?(:location_id)
1508
+ @metadata = args[:metadata] if args.key?(:metadata)
1509
+ @name = args[:name] if args.key?(:name)
1510
+ end
1511
+ end
1512
+
1513
+ # An ObjectId specifies an object identifier (OID). These provide context and
1514
+ # describe types in ASN.1 messages.
1515
+ class ObjectIdProp
1516
+ include Google::Apis::Core::Hashable
1517
+
1518
+ # Required. The parts of an OID path. The most significant parts of the path
1519
+ # come first.
1520
+ # Corresponds to the JSON property `objectIdPath`
1521
+ # @return [Array<Fixnum>]
1522
+ attr_accessor :object_id_path
1523
+
1524
+ def initialize(**args)
1525
+ update!(**args)
1526
+ end
1527
+
1528
+ # Update properties of this object
1529
+ def update!(**args)
1530
+ @object_id_path = args[:object_id_path] if args.key?(:object_id_path)
1531
+ end
1532
+ end
1533
+
1534
+ # This resource represents a long-running operation that is the result of a
1535
+ # network API call.
1536
+ class Operation
1537
+ include Google::Apis::Core::Hashable
1538
+
1539
+ # If the value is `false`, it means the operation is still in progress. If `true`
1540
+ # , the operation is completed, and either `error` or `response` is available.
1541
+ # Corresponds to the JSON property `done`
1542
+ # @return [Boolean]
1543
+ attr_accessor :done
1544
+ alias_method :done?, :done
1545
+
1546
+ # The `Status` type defines a logical error model that is suitable for different
1547
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1548
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1549
+ # data: error code, error message, and error details. You can find out more
1550
+ # about this error model and how to work with it in the [API Design Guide](https:
1551
+ # //cloud.google.com/apis/design/errors).
1552
+ # Corresponds to the JSON property `error`
1553
+ # @return [Google::Apis::PrivatecaV1beta1::Status]
1554
+ attr_accessor :error
1555
+
1556
+ # Service-specific metadata associated with the operation. It typically contains
1557
+ # progress information and common metadata such as create time. Some services
1558
+ # might not provide such metadata. Any method that returns a long-running
1559
+ # operation should document the metadata type, if any.
1560
+ # Corresponds to the JSON property `metadata`
1561
+ # @return [Hash<String,Object>]
1562
+ attr_accessor :metadata
1563
+
1564
+ # The server-assigned name, which is only unique within the same service that
1565
+ # originally returns it. If you use the default HTTP mapping, the `name` should
1566
+ # be a resource name ending with `operations/`unique_id``.
1567
+ # Corresponds to the JSON property `name`
1568
+ # @return [String]
1569
+ attr_accessor :name
1570
+
1571
+ # The normal response of the operation in case of success. If the original
1572
+ # method returns no data on success, such as `Delete`, the response is `google.
1573
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1574
+ # the response should be the resource. For other methods, the response should
1575
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
1576
+ # example, if the original method name is `TakeSnapshot()`, the inferred
1577
+ # response type is `TakeSnapshotResponse`.
1578
+ # Corresponds to the JSON property `response`
1579
+ # @return [Hash<String,Object>]
1580
+ attr_accessor :response
1581
+
1582
+ def initialize(**args)
1583
+ update!(**args)
1584
+ end
1585
+
1586
+ # Update properties of this object
1587
+ def update!(**args)
1588
+ @done = args[:done] if args.key?(:done)
1589
+ @error = args[:error] if args.key?(:error)
1590
+ @metadata = args[:metadata] if args.key?(:metadata)
1591
+ @name = args[:name] if args.key?(:name)
1592
+ @response = args[:response] if args.key?(:response)
1593
+ end
1594
+ end
1595
+
1596
+ # Represents the metadata of the long-running operation.
1597
+ class OperationMetadata
1598
+ include Google::Apis::Core::Hashable
1599
+
1600
+ # Output only. API version used to start the operation.
1601
+ # Corresponds to the JSON property `apiVersion`
1602
+ # @return [String]
1603
+ attr_accessor :api_version
1604
+
1605
+ # Output only. The time the operation was created.
1606
+ # Corresponds to the JSON property `createTime`
1607
+ # @return [String]
1608
+ attr_accessor :create_time
1609
+
1610
+ # Output only. The time the operation finished running.
1611
+ # Corresponds to the JSON property `endTime`
1612
+ # @return [String]
1613
+ attr_accessor :end_time
1614
+
1615
+ # Output only. Identifies whether the user has requested cancellation of the
1616
+ # operation. Operations that have successfully been cancelled have Operation.
1617
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1618
+ # CANCELLED`.
1619
+ # Corresponds to the JSON property `requestedCancellation`
1620
+ # @return [Boolean]
1621
+ attr_accessor :requested_cancellation
1622
+ alias_method :requested_cancellation?, :requested_cancellation
1623
+
1624
+ # Output only. Human-readable status of the operation, if any.
1625
+ # Corresponds to the JSON property `statusMessage`
1626
+ # @return [String]
1627
+ attr_accessor :status_message
1628
+
1629
+ # Output only. Server-defined resource path for the target of the operation.
1630
+ # Corresponds to the JSON property `target`
1631
+ # @return [String]
1632
+ attr_accessor :target
1633
+
1634
+ # Output only. Name of the verb executed by the operation.
1635
+ # Corresponds to the JSON property `verb`
1636
+ # @return [String]
1637
+ attr_accessor :verb
1638
+
1639
+ def initialize(**args)
1640
+ update!(**args)
1641
+ end
1642
+
1643
+ # Update properties of this object
1644
+ def update!(**args)
1645
+ @api_version = args[:api_version] if args.key?(:api_version)
1646
+ @create_time = args[:create_time] if args.key?(:create_time)
1647
+ @end_time = args[:end_time] if args.key?(:end_time)
1648
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
1649
+ @status_message = args[:status_message] if args.key?(:status_message)
1650
+ @target = args[:target] if args.key?(:target)
1651
+ @verb = args[:verb] if args.key?(:verb)
1652
+ end
1653
+ end
1654
+
1655
+ # An Identity and Access Management (IAM) policy, which specifies access
1656
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1657
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1658
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1659
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1660
+ # role or a user-created custom role. For some types of Google Cloud resources,
1661
+ # a `binding` can also specify a `condition`, which is a logical expression that
1662
+ # allows access to a resource only if the expression evaluates to `true`. A
1663
+ # condition can add constraints based on attributes of the request, the resource,
1664
+ # or both. To learn which resources support conditions in their IAM policies,
1665
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1666
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1667
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1668
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1669
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1670
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1671
+ # title": "expirable access", "description": "Does not grant access after Sep
1672
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1673
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1674
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1675
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1676
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1677
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1678
+ # description: Does not grant access after Sep 2020 expression: request.time <
1679
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1680
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1681
+ # google.com/iam/docs/).
1682
+ class Policy
1683
+ include Google::Apis::Core::Hashable
1684
+
1685
+ # Specifies cloud audit logging configuration for this policy.
1686
+ # Corresponds to the JSON property `auditConfigs`
1687
+ # @return [Array<Google::Apis::PrivatecaV1beta1::AuditConfig>]
1688
+ attr_accessor :audit_configs
1689
+
1690
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
1691
+ # condition` that determines how and when the `bindings` are applied. Each of
1692
+ # the `bindings` must contain at least one member.
1693
+ # Corresponds to the JSON property `bindings`
1694
+ # @return [Array<Google::Apis::PrivatecaV1beta1::Binding>]
1695
+ attr_accessor :bindings
1696
+
1697
+ # `etag` is used for optimistic concurrency control as a way to help prevent
1698
+ # simultaneous updates of a policy from overwriting each other. It is strongly
1699
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
1700
+ # to perform policy updates in order to avoid race conditions: An `etag` is
1701
+ # returned in the response to `getIamPolicy`, and systems are expected to put
1702
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
1703
+ # applied to the same version of the policy. **Important:** If you use IAM
1704
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
1705
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
1706
+ # with a version `1` policy, and all of the conditions in the version `3` policy
1707
+ # are lost.
1708
+ # Corresponds to the JSON property `etag`
1709
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1710
+ # @return [String]
1711
+ attr_accessor :etag
1712
+
1713
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
1714
+ # Requests that specify an invalid value are rejected. Any operation that
1715
+ # affects conditional role bindings must specify version `3`. This requirement
1716
+ # applies to the following operations: * Getting a policy that includes a
1717
+ # conditional role binding * Adding a conditional role binding to a policy *
1718
+ # Changing a conditional role binding in a policy * Removing any role binding,
1719
+ # with or without a condition, from a policy that includes conditions **
1720
+ # Important:** If you use IAM Conditions, you must include the `etag` field
1721
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
1722
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
1723
+ # conditions in the version `3` policy are lost. If a policy does not include
1724
+ # any conditions, operations on that policy may specify any valid version or
1725
+ # leave the field unset. To learn which resources support conditions in their
1726
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
1727
+ # conditions/resource-policies).
1728
+ # Corresponds to the JSON property `version`
1729
+ # @return [Fixnum]
1730
+ attr_accessor :version
1731
+
1732
+ def initialize(**args)
1733
+ update!(**args)
1734
+ end
1735
+
1736
+ # Update properties of this object
1737
+ def update!(**args)
1738
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
1739
+ @bindings = args[:bindings] if args.key?(:bindings)
1740
+ @etag = args[:etag] if args.key?(:etag)
1741
+ @version = args[:version] if args.key?(:version)
1742
+ end
1743
+ end
1744
+
1745
+ # A PublicKey describes a public key.
1746
+ class PublicKey
1747
+ include Google::Apis::Core::Hashable
1748
+
1749
+ # Required. A public key. When this is specified in a request, the padding and
1750
+ # encoding can be any of the options described by the respective 'KeyType' value.
1751
+ # When this is generated by the service, it will always be an RFC 5280 [
1752
+ # SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)
1753
+ # structure containing an algorithm identifier and a key.
1754
+ # Corresponds to the JSON property `key`
1755
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1756
+ # @return [String]
1757
+ attr_accessor :key
1758
+
1759
+ # Required. The type of public key.
1760
+ # Corresponds to the JSON property `type`
1761
+ # @return [String]
1762
+ attr_accessor :type
1763
+
1764
+ def initialize(**args)
1765
+ update!(**args)
1766
+ end
1767
+
1768
+ # Update properties of this object
1769
+ def update!(**args)
1770
+ @key = args[:key] if args.key?(:key)
1771
+ @type = args[:type] if args.key?(:type)
1772
+ end
1773
+ end
1774
+
1775
+ # Request message for CertificateAuthorityService.RestoreCertificateAuthority.
1776
+ class RestoreCertificateAuthorityRequest
1777
+ include Google::Apis::Core::Hashable
1778
+
1779
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
1780
+ # you must retry your request, the server will know to ignore the request if it
1781
+ # has already been completed. The server will guarantee that for at least 60
1782
+ # minutes since the first request. For example, consider a situation where you
1783
+ # make an initial request and t he request times out. If you make the request
1784
+ # again with the same request ID, the server can check if original operation
1785
+ # with the same request ID was received, and if so, will ignore the second
1786
+ # request. This prevents clients from accidentally creating duplicate
1787
+ # commitments. The request ID must be a valid UUID with the exception that zero
1788
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
1789
+ # Corresponds to the JSON property `requestId`
1790
+ # @return [String]
1791
+ attr_accessor :request_id
1792
+
1793
+ def initialize(**args)
1794
+ update!(**args)
1795
+ end
1796
+
1797
+ # Update properties of this object
1798
+ def update!(**args)
1799
+ @request_id = args[:request_id] if args.key?(:request_id)
1800
+ end
1801
+ end
1802
+
1803
+ # A ReusableConfig refers to a managed ReusableConfigValues. Those, in turn, are
1804
+ # used to describe certain fields of an X.509 certificate, such as the key usage
1805
+ # fields, fields specific to CA certificates, certificate policy extensions and
1806
+ # custom extensions.
1807
+ class ReusableConfig
1808
+ include Google::Apis::Core::Hashable
1809
+
1810
+ # Output only. The time at which this ReusableConfig was created.
1811
+ # Corresponds to the JSON property `createTime`
1812
+ # @return [String]
1813
+ attr_accessor :create_time
1814
+
1815
+ # Optional. A human-readable description of scenarios these ReusableConfigValues
1816
+ # may be compatible with.
1817
+ # Corresponds to the JSON property `description`
1818
+ # @return [String]
1819
+ attr_accessor :description
1820
+
1821
+ # Optional. Labels with user-defined metadata.
1822
+ # Corresponds to the JSON property `labels`
1823
+ # @return [Hash<String,String>]
1824
+ attr_accessor :labels
1825
+
1826
+ # Output only. The resource path for this ReusableConfig in the format `projects/
1827
+ # */locations/*/reusableConfigs/*`.
1828
+ # Corresponds to the JSON property `name`
1829
+ # @return [String]
1830
+ attr_accessor :name
1831
+
1832
+ # Output only. The time at which this ReusableConfig was updated.
1833
+ # Corresponds to the JSON property `updateTime`
1834
+ # @return [String]
1835
+ attr_accessor :update_time
1836
+
1837
+ # A ReusableConfigValues is used to describe certain fields of an X.509
1838
+ # certificate, such as the key usage fields, fields specific to CA certificates,
1839
+ # certificate policy extensions and custom extensions.
1840
+ # Corresponds to the JSON property `values`
1841
+ # @return [Google::Apis::PrivatecaV1beta1::ReusableConfigValues]
1842
+ attr_accessor :values
1843
+
1844
+ def initialize(**args)
1845
+ update!(**args)
1846
+ end
1847
+
1848
+ # Update properties of this object
1849
+ def update!(**args)
1850
+ @create_time = args[:create_time] if args.key?(:create_time)
1851
+ @description = args[:description] if args.key?(:description)
1852
+ @labels = args[:labels] if args.key?(:labels)
1853
+ @name = args[:name] if args.key?(:name)
1854
+ @update_time = args[:update_time] if args.key?(:update_time)
1855
+ @values = args[:values] if args.key?(:values)
1856
+ end
1857
+ end
1858
+
1859
+ # A ReusableConfigValues is used to describe certain fields of an X.509
1860
+ # certificate, such as the key usage fields, fields specific to CA certificates,
1861
+ # certificate policy extensions and custom extensions.
1862
+ class ReusableConfigValues
1863
+ include Google::Apis::Core::Hashable
1864
+
1865
+ # Optional. Describes custom X.509 extensions.
1866
+ # Corresponds to the JSON property `additionalExtensions`
1867
+ # @return [Array<Google::Apis::PrivatecaV1beta1::X509Extension>]
1868
+ attr_accessor :additional_extensions
1869
+
1870
+ # Optional. Describes Online Certificate Status Protocol (OCSP) endpoint
1871
+ # addresses that appear in the "Authority Information Access" extension in the
1872
+ # certificate.
1873
+ # Corresponds to the JSON property `aiaOcspServers`
1874
+ # @return [Array<String>]
1875
+ attr_accessor :aia_ocsp_servers
1876
+
1877
+ # Describes values that are relevant in a CA certificate.
1878
+ # Corresponds to the JSON property `caOptions`
1879
+ # @return [Google::Apis::PrivatecaV1beta1::CaOptions]
1880
+ attr_accessor :ca_options
1881
+
1882
+ # A KeyUsage describes key usage values that may appear in an X.509 certificate.
1883
+ # Corresponds to the JSON property `keyUsage`
1884
+ # @return [Google::Apis::PrivatecaV1beta1::KeyUsage]
1885
+ attr_accessor :key_usage
1886
+
1887
+ # Optional. Describes the X.509 certificate policy object identifiers, per https:
1888
+ # //tools.ietf.org/html/rfc5280#section-4.2.1.4.
1889
+ # Corresponds to the JSON property `policyIds`
1890
+ # @return [Array<Google::Apis::PrivatecaV1beta1::ObjectIdProp>]
1891
+ attr_accessor :policy_ids
1892
+
1893
+ def initialize(**args)
1894
+ update!(**args)
1895
+ end
1896
+
1897
+ # Update properties of this object
1898
+ def update!(**args)
1899
+ @additional_extensions = args[:additional_extensions] if args.key?(:additional_extensions)
1900
+ @aia_ocsp_servers = args[:aia_ocsp_servers] if args.key?(:aia_ocsp_servers)
1901
+ @ca_options = args[:ca_options] if args.key?(:ca_options)
1902
+ @key_usage = args[:key_usage] if args.key?(:key_usage)
1903
+ @policy_ids = args[:policy_ids] if args.key?(:policy_ids)
1904
+ end
1905
+ end
1906
+
1907
+ # A ReusableConfigWrapper describes values that may assist in creating an X.509
1908
+ # certificate, or a reference to a pre-defined set of values.
1909
+ class ReusableConfigWrapper
1910
+ include Google::Apis::Core::Hashable
1911
+
1912
+ # Required. A resource path to a ReusableConfig in the format `projects/*/
1913
+ # locations/*/reusableConfigs/*`.
1914
+ # Corresponds to the JSON property `reusableConfig`
1915
+ # @return [String]
1916
+ attr_accessor :reusable_config
1917
+
1918
+ # A ReusableConfigValues is used to describe certain fields of an X.509
1919
+ # certificate, such as the key usage fields, fields specific to CA certificates,
1920
+ # certificate policy extensions and custom extensions.
1921
+ # Corresponds to the JSON property `reusableConfigValues`
1922
+ # @return [Google::Apis::PrivatecaV1beta1::ReusableConfigValues]
1923
+ attr_accessor :reusable_config_values
1924
+
1925
+ def initialize(**args)
1926
+ update!(**args)
1927
+ end
1928
+
1929
+ # Update properties of this object
1930
+ def update!(**args)
1931
+ @reusable_config = args[:reusable_config] if args.key?(:reusable_config)
1932
+ @reusable_config_values = args[:reusable_config_values] if args.key?(:reusable_config_values)
1933
+ end
1934
+ end
1935
+
1936
+ # Describes fields that are relavent to the revocation of a Certificate.
1937
+ class RevocationDetails
1938
+ include Google::Apis::Core::Hashable
1939
+
1940
+ # Indicates why a Certificate was revoked.
1941
+ # Corresponds to the JSON property `revocationState`
1942
+ # @return [String]
1943
+ attr_accessor :revocation_state
1944
+
1945
+ # The time at which this Certificate was revoked.
1946
+ # Corresponds to the JSON property `revocationTime`
1947
+ # @return [String]
1948
+ attr_accessor :revocation_time
1949
+
1950
+ def initialize(**args)
1951
+ update!(**args)
1952
+ end
1953
+
1954
+ # Update properties of this object
1955
+ def update!(**args)
1956
+ @revocation_state = args[:revocation_state] if args.key?(:revocation_state)
1957
+ @revocation_time = args[:revocation_time] if args.key?(:revocation_time)
1958
+ end
1959
+ end
1960
+
1961
+ # Request message for CertificateAuthorityService.RevokeCertificate.
1962
+ class RevokeCertificateRequest
1963
+ include Google::Apis::Core::Hashable
1964
+
1965
+ # Required. The RevocationReason for revoking this certificate.
1966
+ # Corresponds to the JSON property `reason`
1967
+ # @return [String]
1968
+ attr_accessor :reason
1969
+
1970
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
1971
+ # you must retry your request, the server will know to ignore the request if it
1972
+ # has already been completed. The server will guarantee that for at least 60
1973
+ # minutes since the first request. For example, consider a situation where you
1974
+ # make an initial request and t he request times out. If you make the request
1975
+ # again with the same request ID, the server can check if original operation
1976
+ # with the same request ID was received, and if so, will ignore the second
1977
+ # request. This prevents clients from accidentally creating duplicate
1978
+ # commitments. The request ID must be a valid UUID with the exception that zero
1979
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
1980
+ # Corresponds to the JSON property `requestId`
1981
+ # @return [String]
1982
+ attr_accessor :request_id
1983
+
1984
+ def initialize(**args)
1985
+ update!(**args)
1986
+ end
1987
+
1988
+ # Update properties of this object
1989
+ def update!(**args)
1990
+ @reason = args[:reason] if args.key?(:reason)
1991
+ @request_id = args[:request_id] if args.key?(:request_id)
1992
+ end
1993
+ end
1994
+
1995
+ # Describes a revoked Certificate.
1996
+ class RevokedCertificate
1997
+ include Google::Apis::Core::Hashable
1998
+
1999
+ # The resource path for the Certificate in the format `projects/*/locations/*/
2000
+ # certificateAuthorities/*/certificates/*`.
2001
+ # Corresponds to the JSON property `certificate`
2002
+ # @return [String]
2003
+ attr_accessor :certificate
2004
+
2005
+ # The serial number of the Certificate.
2006
+ # Corresponds to the JSON property `hexSerialNumber`
2007
+ # @return [String]
2008
+ attr_accessor :hex_serial_number
2009
+
2010
+ # The reason the Certificate was revoked.
2011
+ # Corresponds to the JSON property `revocationReason`
2012
+ # @return [String]
2013
+ attr_accessor :revocation_reason
2014
+
2015
+ def initialize(**args)
2016
+ update!(**args)
2017
+ end
2018
+
2019
+ # Update properties of this object
2020
+ def update!(**args)
2021
+ @certificate = args[:certificate] if args.key?(:certificate)
2022
+ @hex_serial_number = args[:hex_serial_number] if args.key?(:hex_serial_number)
2023
+ @revocation_reason = args[:revocation_reason] if args.key?(:revocation_reason)
2024
+ end
2025
+ end
2026
+
2027
+ # Request message for CertificateAuthorityService.
2028
+ # ScheduleDeleteCertificateAuthority.
2029
+ class ScheduleDeleteCertificateAuthorityRequest
2030
+ include Google::Apis::Core::Hashable
2031
+
2032
+ # Optional. An ID to identify requests. Specify a unique request ID so that if
2033
+ # you must retry your request, the server will know to ignore the request if it
2034
+ # has already been completed. The server will guarantee that for at least 60
2035
+ # minutes since the first request. For example, consider a situation where you
2036
+ # make an initial request and t he request times out. If you make the request
2037
+ # again with the same request ID, the server can check if original operation
2038
+ # with the same request ID was received, and if so, will ignore the second
2039
+ # request. This prevents clients from accidentally creating duplicate
2040
+ # commitments. The request ID must be a valid UUID with the exception that zero
2041
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
2042
+ # Corresponds to the JSON property `requestId`
2043
+ # @return [String]
2044
+ attr_accessor :request_id
2045
+
2046
+ def initialize(**args)
2047
+ update!(**args)
2048
+ end
2049
+
2050
+ # Update properties of this object
2051
+ def update!(**args)
2052
+ @request_id = args[:request_id] if args.key?(:request_id)
2053
+ end
2054
+ end
2055
+
2056
+ # Request message for `SetIamPolicy` method.
2057
+ class SetIamPolicyRequest
2058
+ include Google::Apis::Core::Hashable
2059
+
2060
+ # An Identity and Access Management (IAM) policy, which specifies access
2061
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
2062
+ # A `binding` binds one or more `members` to a single `role`. Members can be
2063
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
2064
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
2065
+ # role or a user-created custom role. For some types of Google Cloud resources,
2066
+ # a `binding` can also specify a `condition`, which is a logical expression that
2067
+ # allows access to a resource only if the expression evaluates to `true`. A
2068
+ # condition can add constraints based on attributes of the request, the resource,
2069
+ # or both. To learn which resources support conditions in their IAM policies,
2070
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
2071
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
2072
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
2073
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
2074
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
2075
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
2076
+ # title": "expirable access", "description": "Does not grant access after Sep
2077
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
2078
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
2079
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
2080
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
2081
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
2082
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
2083
+ # description: Does not grant access after Sep 2020 expression: request.time <
2084
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
2085
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
2086
+ # google.com/iam/docs/).
2087
+ # Corresponds to the JSON property `policy`
2088
+ # @return [Google::Apis::PrivatecaV1beta1::Policy]
2089
+ attr_accessor :policy
2090
+
2091
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
2092
+ # the fields in the mask will be modified. If no mask is provided, the following
2093
+ # default mask is used: `paths: "bindings, etag"`
2094
+ # Corresponds to the JSON property `updateMask`
2095
+ # @return [String]
2096
+ attr_accessor :update_mask
2097
+
2098
+ def initialize(**args)
2099
+ update!(**args)
2100
+ end
2101
+
2102
+ # Update properties of this object
2103
+ def update!(**args)
2104
+ @policy = args[:policy] if args.key?(:policy)
2105
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
2106
+ end
2107
+ end
2108
+
2109
+ # The `Status` type defines a logical error model that is suitable for different
2110
+ # programming environments, including REST APIs and RPC APIs. It is used by [
2111
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
2112
+ # data: error code, error message, and error details. You can find out more
2113
+ # about this error model and how to work with it in the [API Design Guide](https:
2114
+ # //cloud.google.com/apis/design/errors).
2115
+ class Status
2116
+ include Google::Apis::Core::Hashable
2117
+
2118
+ # The status code, which should be an enum value of google.rpc.Code.
2119
+ # Corresponds to the JSON property `code`
2120
+ # @return [Fixnum]
2121
+ attr_accessor :code
2122
+
2123
+ # A list of messages that carry the error details. There is a common set of
2124
+ # message types for APIs to use.
2125
+ # Corresponds to the JSON property `details`
2126
+ # @return [Array<Hash<String,Object>>]
2127
+ attr_accessor :details
2128
+
2129
+ # A developer-facing error message, which should be in English. Any user-facing
2130
+ # error message should be localized and sent in the google.rpc.Status.details
2131
+ # field, or localized by the client.
2132
+ # Corresponds to the JSON property `message`
2133
+ # @return [String]
2134
+ attr_accessor :message
2135
+
2136
+ def initialize(**args)
2137
+ update!(**args)
2138
+ end
2139
+
2140
+ # Update properties of this object
2141
+ def update!(**args)
2142
+ @code = args[:code] if args.key?(:code)
2143
+ @details = args[:details] if args.key?(:details)
2144
+ @message = args[:message] if args.key?(:message)
2145
+ end
2146
+ end
2147
+
2148
+ # Subject describes parts of a distinguished name that, in turn, describes the
2149
+ # subject of the certificate.
2150
+ class Subject
2151
+ include Google::Apis::Core::Hashable
2152
+
2153
+ # The country code of the subject.
2154
+ # Corresponds to the JSON property `countryCode`
2155
+ # @return [String]
2156
+ attr_accessor :country_code
2157
+
2158
+ # The locality or city of the subject.
2159
+ # Corresponds to the JSON property `locality`
2160
+ # @return [String]
2161
+ attr_accessor :locality
2162
+
2163
+ # The organization of the subject.
2164
+ # Corresponds to the JSON property `organization`
2165
+ # @return [String]
2166
+ attr_accessor :organization
2167
+
2168
+ # The organizational_unit of the subject.
2169
+ # Corresponds to the JSON property `organizationalUnit`
2170
+ # @return [String]
2171
+ attr_accessor :organizational_unit
2172
+
2173
+ # The postal code of the subject.
2174
+ # Corresponds to the JSON property `postalCode`
2175
+ # @return [String]
2176
+ attr_accessor :postal_code
2177
+
2178
+ # The province, territory, or regional state of the subject.
2179
+ # Corresponds to the JSON property `province`
2180
+ # @return [String]
2181
+ attr_accessor :province
2182
+
2183
+ # The street address of the subject.
2184
+ # Corresponds to the JSON property `streetAddress`
2185
+ # @return [String]
2186
+ attr_accessor :street_address
2187
+
2188
+ def initialize(**args)
2189
+ update!(**args)
2190
+ end
2191
+
2192
+ # Update properties of this object
2193
+ def update!(**args)
2194
+ @country_code = args[:country_code] if args.key?(:country_code)
2195
+ @locality = args[:locality] if args.key?(:locality)
2196
+ @organization = args[:organization] if args.key?(:organization)
2197
+ @organizational_unit = args[:organizational_unit] if args.key?(:organizational_unit)
2198
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
2199
+ @province = args[:province] if args.key?(:province)
2200
+ @street_address = args[:street_address] if args.key?(:street_address)
2201
+ end
2202
+ end
2203
+
2204
+ # SubjectAltNames corresponds to a more modern way of listing what the asserted
2205
+ # identity is in a certificate (i.e., compared to the "common name" in the
2206
+ # distinguished name).
2207
+ class SubjectAltNames
2208
+ include Google::Apis::Core::Hashable
2209
+
2210
+ # Contains additional subject alternative name values.
2211
+ # Corresponds to the JSON property `customSans`
2212
+ # @return [Array<Google::Apis::PrivatecaV1beta1::X509Extension>]
2213
+ attr_accessor :custom_sans
2214
+
2215
+ # Contains only valid, fully-qualified host names.
2216
+ # Corresponds to the JSON property `dnsNames`
2217
+ # @return [Array<String>]
2218
+ attr_accessor :dns_names
2219
+
2220
+ # Contains only valid RFC 2822 E-mail addresses.
2221
+ # Corresponds to the JSON property `emailAddresses`
2222
+ # @return [Array<String>]
2223
+ attr_accessor :email_addresses
2224
+
2225
+ # Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
2226
+ # Corresponds to the JSON property `ipAddresses`
2227
+ # @return [Array<String>]
2228
+ attr_accessor :ip_addresses
2229
+
2230
+ # Contains only valid RFC 3986 URIs.
2231
+ # Corresponds to the JSON property `uris`
2232
+ # @return [Array<String>]
2233
+ attr_accessor :uris
2234
+
2235
+ def initialize(**args)
2236
+ update!(**args)
2237
+ end
2238
+
2239
+ # Update properties of this object
2240
+ def update!(**args)
2241
+ @custom_sans = args[:custom_sans] if args.key?(:custom_sans)
2242
+ @dns_names = args[:dns_names] if args.key?(:dns_names)
2243
+ @email_addresses = args[:email_addresses] if args.key?(:email_addresses)
2244
+ @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
2245
+ @uris = args[:uris] if args.key?(:uris)
2246
+ end
2247
+ end
2248
+
2249
+ # These values are used to create the distinguished name and subject alternative
2250
+ # name fields in an X.509 certificate.
2251
+ class SubjectConfig
2252
+ include Google::Apis::Core::Hashable
2253
+
2254
+ # Optional. The "common name" of the distinguished name.
2255
+ # Corresponds to the JSON property `commonName`
2256
+ # @return [String]
2257
+ attr_accessor :common_name
2258
+
2259
+ # Subject describes parts of a distinguished name that, in turn, describes the
2260
+ # subject of the certificate.
2261
+ # Corresponds to the JSON property `subject`
2262
+ # @return [Google::Apis::PrivatecaV1beta1::Subject]
2263
+ attr_accessor :subject
2264
+
2265
+ # SubjectAltNames corresponds to a more modern way of listing what the asserted
2266
+ # identity is in a certificate (i.e., compared to the "common name" in the
2267
+ # distinguished name).
2268
+ # Corresponds to the JSON property `subjectAltName`
2269
+ # @return [Google::Apis::PrivatecaV1beta1::SubjectAltNames]
2270
+ attr_accessor :subject_alt_name
2271
+
2272
+ def initialize(**args)
2273
+ update!(**args)
2274
+ end
2275
+
2276
+ # Update properties of this object
2277
+ def update!(**args)
2278
+ @common_name = args[:common_name] if args.key?(:common_name)
2279
+ @subject = args[:subject] if args.key?(:subject)
2280
+ @subject_alt_name = args[:subject_alt_name] if args.key?(:subject_alt_name)
2281
+ end
2282
+ end
2283
+
2284
+ # These values describe fields in an issued X.509 certificate such as the
2285
+ # distinguished name, subject alternative names, serial number, and lifetime.
2286
+ class SubjectDescription
2287
+ include Google::Apis::Core::Hashable
2288
+
2289
+ # The "common name" of the distinguished name.
2290
+ # Corresponds to the JSON property `commonName`
2291
+ # @return [String]
2292
+ attr_accessor :common_name
2293
+
2294
+ # The serial number encoded in lowercase hexadecimal.
2295
+ # Corresponds to the JSON property `hexSerialNumber`
2296
+ # @return [String]
2297
+ attr_accessor :hex_serial_number
2298
+
2299
+ # For convenience, the actual lifetime of an issued certificate. Corresponds to '
2300
+ # not_after_time' - 'not_before_time'.
2301
+ # Corresponds to the JSON property `lifetime`
2302
+ # @return [String]
2303
+ attr_accessor :lifetime
2304
+
2305
+ # The time at which the certificate expires.
2306
+ # Corresponds to the JSON property `notAfterTime`
2307
+ # @return [String]
2308
+ attr_accessor :not_after_time
2309
+
2310
+ # The time at which the certificate becomes valid.
2311
+ # Corresponds to the JSON property `notBeforeTime`
2312
+ # @return [String]
2313
+ attr_accessor :not_before_time
2314
+
2315
+ # Subject describes parts of a distinguished name that, in turn, describes the
2316
+ # subject of the certificate.
2317
+ # Corresponds to the JSON property `subject`
2318
+ # @return [Google::Apis::PrivatecaV1beta1::Subject]
2319
+ attr_accessor :subject
2320
+
2321
+ # SubjectAltNames corresponds to a more modern way of listing what the asserted
2322
+ # identity is in a certificate (i.e., compared to the "common name" in the
2323
+ # distinguished name).
2324
+ # Corresponds to the JSON property `subjectAltName`
2325
+ # @return [Google::Apis::PrivatecaV1beta1::SubjectAltNames]
2326
+ attr_accessor :subject_alt_name
2327
+
2328
+ def initialize(**args)
2329
+ update!(**args)
2330
+ end
2331
+
2332
+ # Update properties of this object
2333
+ def update!(**args)
2334
+ @common_name = args[:common_name] if args.key?(:common_name)
2335
+ @hex_serial_number = args[:hex_serial_number] if args.key?(:hex_serial_number)
2336
+ @lifetime = args[:lifetime] if args.key?(:lifetime)
2337
+ @not_after_time = args[:not_after_time] if args.key?(:not_after_time)
2338
+ @not_before_time = args[:not_before_time] if args.key?(:not_before_time)
2339
+ @subject = args[:subject] if args.key?(:subject)
2340
+ @subject_alt_name = args[:subject_alt_name] if args.key?(:subject_alt_name)
2341
+ end
2342
+ end
2343
+
2344
+ # Describes a subordinate CA's issuers. This is either a resource path to a
2345
+ # known issuing CertificateAuthority, or a PEM issuer certificate chain.
2346
+ class SubordinateConfig
2347
+ include Google::Apis::Core::Hashable
2348
+
2349
+ # Required. This can refer to a CertificateAuthority in the same project that
2350
+ # was used to create a subordinate CertificateAuthority. This field is used for
2351
+ # information and usability purposes only. The resource name is in the format `
2352
+ # projects/*/locations/*/certificateAuthorities/*`.
2353
+ # Corresponds to the JSON property `certificateAuthority`
2354
+ # @return [String]
2355
+ attr_accessor :certificate_authority
2356
+
2357
+ # This message describes a subordinate CA's issuer certificate chain. This
2358
+ # wrapper exists for compatibility reasons.
2359
+ # Corresponds to the JSON property `pemIssuerChain`
2360
+ # @return [Google::Apis::PrivatecaV1beta1::SubordinateConfigChain]
2361
+ attr_accessor :pem_issuer_chain
2362
+
2363
+ def initialize(**args)
2364
+ update!(**args)
2365
+ end
2366
+
2367
+ # Update properties of this object
2368
+ def update!(**args)
2369
+ @certificate_authority = args[:certificate_authority] if args.key?(:certificate_authority)
2370
+ @pem_issuer_chain = args[:pem_issuer_chain] if args.key?(:pem_issuer_chain)
2371
+ end
2372
+ end
2373
+
2374
+ # This message describes a subordinate CA's issuer certificate chain. This
2375
+ # wrapper exists for compatibility reasons.
2376
+ class SubordinateConfigChain
2377
+ include Google::Apis::Core::Hashable
2378
+
2379
+ # Required. Expected to be in leaf-to-root order according to RFC 5246.
2380
+ # Corresponds to the JSON property `pemCertificates`
2381
+ # @return [Array<String>]
2382
+ attr_accessor :pem_certificates
2383
+
2384
+ def initialize(**args)
2385
+ update!(**args)
2386
+ end
2387
+
2388
+ # Update properties of this object
2389
+ def update!(**args)
2390
+ @pem_certificates = args[:pem_certificates] if args.key?(:pem_certificates)
2391
+ end
2392
+ end
2393
+
2394
+ # Request message for `TestIamPermissions` method.
2395
+ class TestIamPermissionsRequest
2396
+ include Google::Apis::Core::Hashable
2397
+
2398
+ # The set of permissions to check for the `resource`. Permissions with wildcards
2399
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
2400
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
2401
+ # Corresponds to the JSON property `permissions`
2402
+ # @return [Array<String>]
2403
+ attr_accessor :permissions
2404
+
2405
+ def initialize(**args)
2406
+ update!(**args)
2407
+ end
2408
+
2409
+ # Update properties of this object
2410
+ def update!(**args)
2411
+ @permissions = args[:permissions] if args.key?(:permissions)
2412
+ end
2413
+ end
2414
+
2415
+ # Response message for `TestIamPermissions` method.
2416
+ class TestIamPermissionsResponse
2417
+ include Google::Apis::Core::Hashable
2418
+
2419
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
2420
+ # Corresponds to the JSON property `permissions`
2421
+ # @return [Array<String>]
2422
+ attr_accessor :permissions
2423
+
2424
+ def initialize(**args)
2425
+ update!(**args)
2426
+ end
2427
+
2428
+ # Update properties of this object
2429
+ def update!(**args)
2430
+ @permissions = args[:permissions] if args.key?(:permissions)
2431
+ end
2432
+ end
2433
+
2434
+ # An X509Extension specifies an X.509 extension, which may be used in different
2435
+ # parts of X.509 objects like certificates, CSRs, and CRLs.
2436
+ class X509Extension
2437
+ include Google::Apis::Core::Hashable
2438
+
2439
+ # Required. Indicates whether or not this extension is critical (i.e., if the
2440
+ # client does not know how to handle this extension, the client should consider
2441
+ # this to be an error).
2442
+ # Corresponds to the JSON property `critical`
2443
+ # @return [Boolean]
2444
+ attr_accessor :critical
2445
+ alias_method :critical?, :critical
2446
+
2447
+ # An ObjectId specifies an object identifier (OID). These provide context and
2448
+ # describe types in ASN.1 messages.
2449
+ # Corresponds to the JSON property `objectId`
2450
+ # @return [Google::Apis::PrivatecaV1beta1::ObjectIdProp]
2451
+ attr_accessor :object_id_prop
2452
+
2453
+ # Required. The value of this X.509 extension.
2454
+ # Corresponds to the JSON property `value`
2455
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2456
+ # @return [String]
2457
+ attr_accessor :value
2458
+
2459
+ def initialize(**args)
2460
+ update!(**args)
2461
+ end
2462
+
2463
+ # Update properties of this object
2464
+ def update!(**args)
2465
+ @critical = args[:critical] if args.key?(:critical)
2466
+ @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
2467
+ @value = args[:value] if args.key?(:value)
2468
+ end
2469
+ end
2470
+ end
2471
+ end
2472
+ end