google-api-client 0.39.3 → 0.40.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (416) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +242 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
  5. data/generated/google/apis/admob_v1.rb +1 -1
  6. data/generated/google/apis/admob_v1/classes.rb +5 -6
  7. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  8. data/generated/google/apis/androidenterprise_v1/classes.rb +547 -724
  9. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -54
  10. data/generated/google/apis/androidenterprise_v1/service.rb +540 -795
  11. data/generated/google/apis/androidpublisher_v3.rb +3 -3
  12. data/generated/google/apis/androidpublisher_v3/classes.rb +473 -736
  13. data/generated/google/apis/androidpublisher_v3/representations.rb +10 -201
  14. data/generated/google/apis/androidpublisher_v3/service.rb +531 -863
  15. data/generated/google/apis/apigee_v1.rb +1 -1
  16. data/generated/google/apis/apigee_v1/classes.rb +58 -10
  17. data/generated/google/apis/apigee_v1/representations.rb +7 -0
  18. data/generated/google/apis/apigee_v1/service.rb +24 -14
  19. data/generated/google/apis/appsmarket_v2.rb +3 -3
  20. data/generated/google/apis/appsmarket_v2/classes.rb +160 -159
  21. data/generated/google/apis/appsmarket_v2/representations.rb +78 -78
  22. data/generated/google/apis/appsmarket_v2/service.rb +24 -39
  23. data/generated/google/apis/artifactregistry_v1beta1.rb +38 -0
  24. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +1123 -0
  25. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +441 -0
  26. data/generated/google/apis/artifactregistry_v1beta1/service.rb +957 -0
  27. data/generated/google/apis/bigquery_v2.rb +1 -1
  28. data/generated/google/apis/bigquery_v2/classes.rb +54 -1
  29. data/generated/google/apis/bigquery_v2/representations.rb +4 -0
  30. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  31. data/generated/google/apis/bigqueryreservation_v1/classes.rb +2 -0
  32. data/generated/google/apis/bigqueryreservation_v1/service.rb +8 -8
  33. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  34. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +20 -14
  35. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +93 -68
  36. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  37. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  38. data/generated/google/apis/bigtableadmin_v2/service.rb +4 -4
  39. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  40. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +21 -0
  41. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +6 -0
  42. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  43. data/generated/google/apis/books_v1.rb +1 -1
  44. data/generated/google/apis/books_v1/service.rb +2 -2
  45. data/generated/google/apis/calendar_v3.rb +1 -1
  46. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  47. data/generated/google/apis/{pagespeedonline_v2.rb → chromeuxreport_v1.rb} +10 -10
  48. data/generated/google/apis/chromeuxreport_v1/classes.rb +297 -0
  49. data/generated/google/apis/chromeuxreport_v1/representations.rb +147 -0
  50. data/generated/google/apis/chromeuxreport_v1/service.rb +92 -0
  51. data/generated/google/apis/cloudasset_v1.rb +1 -1
  52. data/generated/google/apis/cloudasset_v1/classes.rb +70 -43
  53. data/generated/google/apis/cloudasset_v1/representations.rb +2 -0
  54. data/generated/google/apis/cloudasset_v1/service.rb +14 -11
  55. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudasset_v1beta1/classes.rb +29 -16
  57. data/generated/google/apis/cloudasset_v1beta1/service.rb +16 -7
  58. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  59. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +48 -16
  60. data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +2 -0
  61. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +15 -16
  62. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  63. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +26 -8
  64. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +24 -3
  65. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1/classes.rb +17 -4
  67. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  68. data/generated/google/apis/cloudbuild_v1/service.rb +163 -0
  69. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  70. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +156 -2
  71. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +61 -0
  72. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +121 -0
  73. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  74. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +156 -2
  75. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +61 -0
  76. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +121 -0
  77. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  78. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +6 -0
  79. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +1 -0
  80. data/generated/google/apis/cloudiot_v1.rb +1 -1
  81. data/generated/google/apis/cloudiot_v1/classes.rb +26 -10
  82. data/generated/google/apis/cloudkms_v1.rb +1 -1
  83. data/generated/google/apis/cloudkms_v1/classes.rb +288 -7
  84. data/generated/google/apis/cloudkms_v1/representations.rb +17 -0
  85. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  86. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -6
  87. data/generated/google/apis/cloudresourcemanager_v1/service.rb +6 -8
  88. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  89. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -6
  90. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +8 -8
  91. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -6
  93. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  94. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -6
  95. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  96. data/generated/google/apis/cloudsearch_v1/classes.rb +8 -6
  97. data/generated/google/apis/cloudsearch_v1/service.rb +1 -1
  98. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  99. data/generated/google/apis/cloudtasks_v2/classes.rb +8 -6
  100. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  101. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +11 -2
  102. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  103. data/generated/google/apis/composer_v1beta1.rb +1 -1
  104. data/generated/google/apis/composer_v1beta1/classes.rb +58 -0
  105. data/generated/google/apis/composer_v1beta1/representations.rb +30 -0
  106. data/generated/google/apis/composer_v1beta1/service.rb +5 -0
  107. data/generated/google/apis/compute_alpha.rb +1 -1
  108. data/generated/google/apis/compute_alpha/classes.rb +318 -166
  109. data/generated/google/apis/compute_alpha/representations.rb +80 -33
  110. data/generated/google/apis/compute_alpha/service.rb +194 -0
  111. data/generated/google/apis/compute_beta.rb +1 -1
  112. data/generated/google/apis/compute_beta/classes.rb +237 -83
  113. data/generated/google/apis/compute_beta/representations.rb +52 -0
  114. data/generated/google/apis/compute_v1.rb +1 -1
  115. data/generated/google/apis/compute_v1/classes.rb +155 -58
  116. data/generated/google/apis/compute_v1/representations.rb +21 -0
  117. data/generated/google/apis/compute_v1/service.rb +83 -0
  118. data/generated/google/apis/container_v1.rb +1 -1
  119. data/generated/google/apis/container_v1/classes.rb +2 -4
  120. data/generated/google/apis/container_v1beta1.rb +1 -1
  121. data/generated/google/apis/container_v1beta1/classes.rb +62 -4
  122. data/generated/google/apis/container_v1beta1/representations.rb +33 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +34 -0
  125. data/generated/google/apis/content_v2/representations.rb +16 -0
  126. data/generated/google/apis/content_v2/service.rb +5 -1
  127. data/generated/google/apis/content_v2_1.rb +1 -1
  128. data/generated/google/apis/content_v2_1/classes.rb +363 -5
  129. data/generated/google/apis/content_v2_1/representations.rb +136 -0
  130. data/generated/google/apis/content_v2_1/service.rb +85 -1
  131. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  132. data/generated/google/apis/datacatalog_v1beta1/classes.rb +26 -10
  133. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  134. data/generated/google/apis/dataflow_v1b3/classes.rb +331 -0
  135. data/generated/google/apis/dataflow_v1b3/representations.rb +164 -0
  136. data/generated/google/apis/dataflow_v1b3/service.rb +261 -0
  137. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  138. data/generated/google/apis/datafusion_v1beta1/classes.rb +64 -19
  139. data/generated/google/apis/datafusion_v1beta1/representations.rb +16 -0
  140. data/generated/google/apis/datafusion_v1beta1/service.rb +49 -2
  141. data/generated/google/apis/dataproc_v1.rb +1 -1
  142. data/generated/google/apis/dataproc_v1/classes.rb +22 -22
  143. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  144. data/generated/google/apis/dataproc_v1beta2/classes.rb +49 -35
  145. data/generated/google/apis/dataproc_v1beta2/service.rb +35 -21
  146. data/generated/google/apis/datastore_v1.rb +1 -1
  147. data/generated/google/apis/datastore_v1/classes.rb +1 -1
  148. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  149. data/generated/google/apis/datastore_v1beta3/classes.rb +1 -1
  150. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  151. data/generated/google/apis/deploymentmanager_alpha/classes.rb +362 -176
  152. data/generated/google/apis/deploymentmanager_alpha/representations.rb +22 -4
  153. data/generated/google/apis/deploymentmanager_alpha/service.rb +198 -311
  154. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  155. data/generated/google/apis/deploymentmanager_v2/classes.rb +295 -146
  156. data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -1
  157. data/generated/google/apis/deploymentmanager_v2/service.rb +101 -99
  158. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  159. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +350 -170
  160. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +18 -1
  161. data/generated/google/apis/deploymentmanager_v2beta/service.rb +154 -152
  162. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  163. data/generated/google/apis/dfareporting_v3_3/classes.rb +2 -2
  164. data/generated/google/apis/dfareporting_v3_3/service.rb +2 -2
  165. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  166. data/generated/google/apis/dfareporting_v3_4/classes.rb +2 -2
  167. data/generated/google/apis/dfareporting_v3_4/service.rb +2 -2
  168. data/generated/google/apis/dialogflow_v2.rb +1 -1
  169. data/generated/google/apis/dialogflow_v2/classes.rb +549 -9
  170. data/generated/google/apis/dialogflow_v2/representations.rb +234 -0
  171. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  172. data/generated/google/apis/dialogflow_v2beta1/classes.rb +540 -8
  173. data/generated/google/apis/dialogflow_v2beta1/representations.rb +234 -0
  174. data/generated/google/apis/dialogflow_v2beta1/service.rb +46 -2
  175. data/generated/google/apis/displayvideo_v1.rb +1 -1
  176. data/generated/google/apis/displayvideo_v1/classes.rb +612 -0
  177. data/generated/google/apis/displayvideo_v1/representations.rb +314 -0
  178. data/generated/google/apis/displayvideo_v1/service.rb +1968 -337
  179. data/generated/google/apis/dlp_v2.rb +1 -1
  180. data/generated/google/apis/dlp_v2/classes.rb +17 -27
  181. data/generated/google/apis/dlp_v2/service.rb +247 -204
  182. data/generated/google/apis/dns_v1.rb +1 -1
  183. data/generated/google/apis/dns_v1/classes.rb +160 -261
  184. data/generated/google/apis/dns_v1/representations.rb +17 -0
  185. data/generated/google/apis/dns_v1/service.rb +21 -141
  186. data/generated/google/apis/dns_v1beta2.rb +1 -1
  187. data/generated/google/apis/dns_v1beta2/classes.rb +189 -273
  188. data/generated/google/apis/dns_v1beta2/representations.rb +32 -0
  189. data/generated/google/apis/dns_v1beta2/service.rb +21 -141
  190. data/generated/google/apis/dns_v2beta1.rb +1 -1
  191. data/generated/google/apis/dns_v2beta1/classes.rb +160 -261
  192. data/generated/google/apis/dns_v2beta1/representations.rb +17 -0
  193. data/generated/google/apis/dns_v2beta1/service.rb +21 -141
  194. data/generated/google/apis/fcm_v1.rb +1 -1
  195. data/generated/google/apis/file_v1.rb +1 -1
  196. data/generated/google/apis/file_v1/classes.rb +31 -0
  197. data/generated/google/apis/file_v1/representations.rb +15 -0
  198. data/generated/google/apis/file_v1beta1.rb +1 -1
  199. data/generated/google/apis/file_v1beta1/classes.rb +98 -0
  200. data/generated/google/apis/file_v1beta1/representations.rb +34 -0
  201. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  202. data/generated/google/apis/firebase_v1beta1/classes.rb +2 -12
  203. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  204. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +30 -25
  205. data/generated/google/apis/{pagespeedonline_v4.rb → firebaseml_v1.rb} +12 -10
  206. data/generated/google/apis/firebaseml_v1/classes.rb +213 -0
  207. data/generated/google/apis/firebaseml_v1/representations.rb +112 -0
  208. data/generated/google/apis/firebaseml_v1/service.rb +181 -0
  209. data/generated/google/apis/fitness_v1.rb +4 -4
  210. data/generated/google/apis/fitness_v1/classes.rb +185 -158
  211. data/generated/google/apis/fitness_v1/service.rb +187 -215
  212. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  213. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -1
  214. data/generated/google/apis/games_management_v1management.rb +1 -1
  215. data/generated/google/apis/games_management_v1management/service.rb +1 -1
  216. data/generated/google/apis/games_v1.rb +1 -1
  217. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  218. data/generated/google/apis/genomics_v2alpha1/classes.rb +84 -0
  219. data/generated/google/apis/genomics_v2alpha1/representations.rb +28 -0
  220. data/generated/google/apis/genomics_v2alpha1/service.rb +38 -2
  221. data/generated/google/apis/gmail_v1.rb +3 -2
  222. data/generated/google/apis/gmail_v1/classes.rb +263 -200
  223. data/generated/google/apis/gmail_v1/service.rb +551 -743
  224. data/generated/google/apis/groupsmigration_v1.rb +3 -2
  225. data/generated/google/apis/groupsmigration_v1/service.rb +10 -17
  226. data/generated/google/apis/healthcare_v1.rb +1 -1
  227. data/generated/google/apis/healthcare_v1/classes.rb +39 -30
  228. data/generated/google/apis/healthcare_v1/service.rb +64 -32
  229. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  230. data/generated/google/apis/healthcare_v1beta1/classes.rb +41 -37
  231. data/generated/google/apis/healthcare_v1beta1/service.rb +165 -147
  232. data/generated/google/apis/homegraph_v1.rb +1 -1
  233. data/generated/google/apis/homegraph_v1/classes.rb +3 -0
  234. data/generated/google/apis/iam_v1.rb +1 -1
  235. data/generated/google/apis/iam_v1/classes.rb +111 -93
  236. data/generated/google/apis/iam_v1/service.rb +166 -144
  237. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  238. data/generated/google/apis/iamcredentials_v1/classes.rb +30 -5
  239. data/generated/google/apis/jobs_v3.rb +1 -1
  240. data/generated/google/apis/jobs_v3/classes.rb +4 -2
  241. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  242. data/generated/google/apis/jobs_v3p1beta1/classes.rb +4 -2
  243. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  244. data/generated/google/apis/memcache_v1beta2/classes.rb +66 -23
  245. data/generated/google/apis/memcache_v1beta2/representations.rb +15 -0
  246. data/generated/google/apis/memcache_v1beta2/service.rb +5 -2
  247. data/generated/google/apis/ml_v1.rb +1 -1
  248. data/generated/google/apis/ml_v1/classes.rb +84 -18
  249. data/generated/google/apis/ml_v1/representations.rb +4 -0
  250. data/generated/google/apis/ml_v1/service.rb +11 -6
  251. data/generated/google/apis/monitoring_v1.rb +1 -1
  252. data/generated/google/apis/monitoring_v1/classes.rb +46 -0
  253. data/generated/google/apis/monitoring_v1/representations.rb +18 -0
  254. data/generated/google/apis/monitoring_v3.rb +1 -1
  255. data/generated/google/apis/monitoring_v3/classes.rb +17 -0
  256. data/generated/google/apis/monitoring_v3/representations.rb +2 -0
  257. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  258. data/generated/google/apis/networkmanagement_v1.rb +35 -0
  259. data/generated/google/apis/networkmanagement_v1/classes.rb +1868 -0
  260. data/generated/google/apis/networkmanagement_v1/representations.rb +661 -0
  261. data/generated/google/apis/networkmanagement_v1/service.rb +667 -0
  262. data/generated/google/apis/osconfig_v1.rb +1 -1
  263. data/generated/google/apis/osconfig_v1/classes.rb +2 -2
  264. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  265. data/generated/google/apis/osconfig_v1beta/classes.rb +6 -7
  266. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  267. data/generated/google/apis/pagespeedonline_v5/classes.rb +7 -0
  268. data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
  269. data/generated/google/apis/people_v1.rb +1 -1
  270. data/generated/google/apis/people_v1/classes.rb +216 -0
  271. data/generated/google/apis/people_v1/representations.rb +82 -0
  272. data/generated/google/apis/people_v1/service.rb +371 -9
  273. data/generated/google/apis/playcustomapp_v1.rb +3 -3
  274. data/generated/google/apis/playcustomapp_v1/classes.rb +7 -0
  275. data/generated/google/apis/playcustomapp_v1/representations.rb +1 -0
  276. data/generated/google/apis/playcustomapp_v1/service.rb +11 -19
  277. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  278. data/generated/google/apis/policytroubleshooter_v1/classes.rb +6 -6
  279. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  280. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -6
  281. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  282. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +30 -0
  283. data/generated/google/apis/pubsub_v1.rb +1 -1
  284. data/generated/google/apis/pubsub_v1/classes.rb +70 -15
  285. data/generated/google/apis/pubsub_v1/representations.rb +28 -0
  286. data/generated/google/apis/pubsub_v1/service.rb +35 -1
  287. data/generated/google/apis/{pagespeedonline_v1.rb → recommender_v1.rb} +11 -9
  288. data/generated/google/apis/recommender_v1/classes.rb +505 -0
  289. data/generated/google/apis/recommender_v1/representations.rb +232 -0
  290. data/generated/google/apis/recommender_v1/service.rb +266 -0
  291. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  292. data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
  293. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
  294. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  295. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
  296. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
  297. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  298. data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
  299. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
  300. data/generated/google/apis/run_v1.rb +1 -1
  301. data/generated/google/apis/run_v1/classes.rb +9 -0
  302. data/generated/google/apis/run_v1/representations.rb +1 -0
  303. data/generated/google/apis/run_v1alpha1.rb +1 -1
  304. data/generated/google/apis/run_v1alpha1/classes.rb +9 -0
  305. data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
  306. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  307. data/generated/google/apis/sasportal_v1alpha1/service.rb +30 -0
  308. data/generated/google/apis/secretmanager_v1.rb +1 -1
  309. data/generated/google/apis/secretmanager_v1/classes.rb +32 -19
  310. data/generated/google/apis/secretmanager_v1/service.rb +3 -0
  311. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  312. data/generated/google/apis/secretmanager_v1beta1/classes.rb +29 -16
  313. data/generated/google/apis/secretmanager_v1beta1/service.rb +3 -0
  314. data/generated/google/apis/securitycenter_v1.rb +1 -1
  315. data/generated/google/apis/securitycenter_v1/classes.rb +133 -18
  316. data/generated/google/apis/securitycenter_v1/representations.rb +38 -0
  317. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  318. data/generated/google/apis/securitycenter_v1beta1/classes.rb +133 -18
  319. data/generated/google/apis/securitycenter_v1beta1/representations.rb +38 -0
  320. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  321. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +100 -0
  322. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +38 -0
  323. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  324. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +133 -18
  325. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +38 -0
  326. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  327. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +205 -75
  328. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +32 -2
  329. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  330. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +211 -75
  331. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +33 -2
  332. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  333. data/generated/google/apis/servicecontrol_v1/classes.rb +6 -6
  334. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  335. data/generated/google/apis/servicemanagement_v1/classes.rb +6 -43
  336. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -2
  337. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  338. data/generated/google/apis/servicenetworking_v1/classes.rb +488 -75
  339. data/generated/google/apis/servicenetworking_v1/representations.rb +209 -2
  340. data/generated/google/apis/servicenetworking_v1/service.rb +187 -0
  341. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  342. data/generated/google/apis/servicenetworking_v1beta/classes.rb +297 -75
  343. data/generated/google/apis/servicenetworking_v1beta/representations.rb +130 -2
  344. data/generated/google/apis/serviceusage_v1.rb +1 -1
  345. data/generated/google/apis/serviceusage_v1/classes.rb +197 -75
  346. data/generated/google/apis/serviceusage_v1/representations.rb +32 -2
  347. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  348. data/generated/google/apis/serviceusage_v1beta1/classes.rb +203 -75
  349. data/generated/google/apis/serviceusage_v1beta1/representations.rb +33 -2
  350. data/generated/google/apis/serviceusage_v1beta1/service.rb +34 -0
  351. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  352. data/generated/google/apis/sourcerepo_v1/classes.rb +23 -10
  353. data/generated/google/apis/sourcerepo_v1/service.rb +3 -0
  354. data/generated/google/apis/spanner_v1.rb +1 -1
  355. data/generated/google/apis/spanner_v1/classes.rb +30 -12
  356. data/generated/google/apis/spanner_v1/service.rb +8 -8
  357. data/generated/google/apis/sql_v1beta4.rb +1 -1
  358. data/generated/google/apis/sql_v1beta4/classes.rb +7 -0
  359. data/generated/google/apis/sql_v1beta4/representations.rb +1 -0
  360. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  361. data/generated/google/apis/storagetransfer_v1/classes.rb +2 -1
  362. data/generated/google/apis/tasks_v1.rb +3 -3
  363. data/generated/google/apis/tasks_v1/classes.rb +26 -25
  364. data/generated/google/apis/tasks_v1/representations.rb +4 -8
  365. data/generated/google/apis/tasks_v1/service.rb +79 -128
  366. data/generated/google/apis/testing_v1.rb +1 -1
  367. data/generated/google/apis/testing_v1/classes.rb +2 -1
  368. data/generated/google/apis/texttospeech_v1.rb +1 -1
  369. data/generated/google/apis/texttospeech_v1/classes.rb +1 -1
  370. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  371. data/generated/google/apis/texttospeech_v1beta1/classes.rb +1 -1
  372. data/generated/google/apis/tpu_v1.rb +1 -1
  373. data/generated/google/apis/tpu_v1/classes.rb +3 -3
  374. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  375. data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
  376. data/generated/google/apis/translate_v3.rb +1 -1
  377. data/generated/google/apis/verifiedaccess_v1.rb +3 -3
  378. data/generated/google/apis/verifiedaccess_v1/service.rb +2 -2
  379. data/generated/google/apis/videointelligence_v1.rb +1 -1
  380. data/generated/google/apis/videointelligence_v1/classes.rb +1 -1
  381. data/generated/google/apis/videointelligence_v1/service.rb +32 -0
  382. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  383. data/generated/google/apis/videointelligence_v1beta2/classes.rb +1 -1
  384. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  385. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1 -1
  386. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  387. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1 -1
  388. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  389. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1 -1
  390. data/generated/google/apis/websecurityscanner_v1.rb +2 -2
  391. data/generated/google/apis/websecurityscanner_v1/classes.rb +7 -5
  392. data/generated/google/apis/websecurityscanner_v1/service.rb +1 -1
  393. data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
  394. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +5 -4
  395. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  396. data/generated/google/apis/websecurityscanner_v1beta.rb +2 -2
  397. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +9 -7
  398. data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
  399. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  400. data/generated/google/apis/youtube_v3.rb +5 -5
  401. data/generated/google/apis/youtube_v3/classes.rb +1260 -1244
  402. data/generated/google/apis/youtube_v3/representations.rb +64 -192
  403. data/generated/google/apis/youtube_v3/service.rb +1827 -2154
  404. data/lib/google/apis/core/api_command.rb +12 -7
  405. data/lib/google/apis/options.rb +5 -1
  406. data/lib/google/apis/version.rb +1 -1
  407. metadata +23 -15
  408. data/generated/google/apis/pagespeedonline_v1/classes.rb +0 -542
  409. data/generated/google/apis/pagespeedonline_v1/representations.rb +0 -258
  410. data/generated/google/apis/pagespeedonline_v1/service.rb +0 -116
  411. data/generated/google/apis/pagespeedonline_v2/classes.rb +0 -621
  412. data/generated/google/apis/pagespeedonline_v2/representations.rb +0 -273
  413. data/generated/google/apis/pagespeedonline_v2/service.rb +0 -116
  414. data/generated/google/apis/pagespeedonline_v4/classes.rb +0 -795
  415. data/generated/google/apis/pagespeedonline_v4/representations.rb +0 -335
  416. data/generated/google/apis/pagespeedonline_v4/service.rb +0 -125
@@ -0,0 +1,441 @@
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 ArtifactregistryV1beta1
24
+
25
+ class Binding
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Empty
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Expr
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class File
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleDevtoolsArtifactregistryV1alpha1ErrorInfo
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GoogleDevtoolsArtifactregistryV1alpha1GcsSource
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GoogleDevtoolsArtifactregistryV1alpha1ImportArtifactsResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleDevtoolsArtifactregistryV1alpha1Package
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class HashProp
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ListFilesResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListLocationsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListOperationsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListPackagesResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListRepositoriesResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListTagsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListVersionsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Location
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Operation
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class Package
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Policy
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class Repository
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class SetIamPolicyRequest
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class Status
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Tag
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class TestIamPermissionsRequest
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class TestIamPermissionsResponse
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class Version
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class Binding
188
+ # @private
189
+ class Representation < Google::Apis::Core::JsonRepresentation
190
+ property :condition, as: 'condition', class: Google::Apis::ArtifactregistryV1beta1::Expr, decorator: Google::Apis::ArtifactregistryV1beta1::Expr::Representation
191
+
192
+ collection :members, as: 'members'
193
+ property :role, as: 'role'
194
+ end
195
+ end
196
+
197
+ class Empty
198
+ # @private
199
+ class Representation < Google::Apis::Core::JsonRepresentation
200
+ end
201
+ end
202
+
203
+ class Expr
204
+ # @private
205
+ class Representation < Google::Apis::Core::JsonRepresentation
206
+ property :description, as: 'description'
207
+ property :expression, as: 'expression'
208
+ property :location, as: 'location'
209
+ property :title, as: 'title'
210
+ end
211
+ end
212
+
213
+ class File
214
+ # @private
215
+ class Representation < Google::Apis::Core::JsonRepresentation
216
+ property :create_time, as: 'createTime'
217
+ collection :hashes, as: 'hashes', class: Google::Apis::ArtifactregistryV1beta1::HashProp, decorator: Google::Apis::ArtifactregistryV1beta1::HashProp::Representation
218
+
219
+ property :name, as: 'name'
220
+ property :owner, as: 'owner'
221
+ property :size_bytes, :numeric_string => true, as: 'sizeBytes'
222
+ property :update_time, as: 'updateTime'
223
+ end
224
+ end
225
+
226
+ class GoogleDevtoolsArtifactregistryV1alpha1ErrorInfo
227
+ # @private
228
+ class Representation < Google::Apis::Core::JsonRepresentation
229
+ property :error, as: 'error', class: Google::Apis::ArtifactregistryV1beta1::Status, decorator: Google::Apis::ArtifactregistryV1beta1::Status::Representation
230
+
231
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::ArtifactregistryV1beta1::GoogleDevtoolsArtifactregistryV1alpha1GcsSource, decorator: Google::Apis::ArtifactregistryV1beta1::GoogleDevtoolsArtifactregistryV1alpha1GcsSource::Representation
232
+
233
+ end
234
+ end
235
+
236
+ class GoogleDevtoolsArtifactregistryV1alpha1GcsSource
237
+ # @private
238
+ class Representation < Google::Apis::Core::JsonRepresentation
239
+ collection :uris, as: 'uris'
240
+ end
241
+ end
242
+
243
+ class GoogleDevtoolsArtifactregistryV1alpha1ImportArtifactsResponse
244
+ # @private
245
+ class Representation < Google::Apis::Core::JsonRepresentation
246
+ collection :errors, as: 'errors', class: Google::Apis::ArtifactregistryV1beta1::GoogleDevtoolsArtifactregistryV1alpha1ErrorInfo, decorator: Google::Apis::ArtifactregistryV1beta1::GoogleDevtoolsArtifactregistryV1alpha1ErrorInfo::Representation
247
+
248
+ collection :packages, as: 'packages', class: Google::Apis::ArtifactregistryV1beta1::GoogleDevtoolsArtifactregistryV1alpha1Package, decorator: Google::Apis::ArtifactregistryV1beta1::GoogleDevtoolsArtifactregistryV1alpha1Package::Representation
249
+
250
+ end
251
+ end
252
+
253
+ class GoogleDevtoolsArtifactregistryV1alpha1Package
254
+ # @private
255
+ class Representation < Google::Apis::Core::JsonRepresentation
256
+ property :create_time, as: 'createTime'
257
+ property :display_name, as: 'displayName'
258
+ property :name, as: 'name'
259
+ property :update_time, as: 'updateTime'
260
+ end
261
+ end
262
+
263
+ class HashProp
264
+ # @private
265
+ class Representation < Google::Apis::Core::JsonRepresentation
266
+ property :type, as: 'type'
267
+ property :value, :base64 => true, as: 'value'
268
+ end
269
+ end
270
+
271
+ class ListFilesResponse
272
+ # @private
273
+ class Representation < Google::Apis::Core::JsonRepresentation
274
+ collection :files, as: 'files', class: Google::Apis::ArtifactregistryV1beta1::File, decorator: Google::Apis::ArtifactregistryV1beta1::File::Representation
275
+
276
+ property :next_page_token, as: 'nextPageToken'
277
+ end
278
+ end
279
+
280
+ class ListLocationsResponse
281
+ # @private
282
+ class Representation < Google::Apis::Core::JsonRepresentation
283
+ collection :locations, as: 'locations', class: Google::Apis::ArtifactregistryV1beta1::Location, decorator: Google::Apis::ArtifactregistryV1beta1::Location::Representation
284
+
285
+ property :next_page_token, as: 'nextPageToken'
286
+ end
287
+ end
288
+
289
+ class ListOperationsResponse
290
+ # @private
291
+ class Representation < Google::Apis::Core::JsonRepresentation
292
+ property :next_page_token, as: 'nextPageToken'
293
+ collection :operations, as: 'operations', class: Google::Apis::ArtifactregistryV1beta1::Operation, decorator: Google::Apis::ArtifactregistryV1beta1::Operation::Representation
294
+
295
+ end
296
+ end
297
+
298
+ class ListPackagesResponse
299
+ # @private
300
+ class Representation < Google::Apis::Core::JsonRepresentation
301
+ property :next_page_token, as: 'nextPageToken'
302
+ collection :packages, as: 'packages', class: Google::Apis::ArtifactregistryV1beta1::Package, decorator: Google::Apis::ArtifactregistryV1beta1::Package::Representation
303
+
304
+ end
305
+ end
306
+
307
+ class ListRepositoriesResponse
308
+ # @private
309
+ class Representation < Google::Apis::Core::JsonRepresentation
310
+ property :next_page_token, as: 'nextPageToken'
311
+ collection :repositories, as: 'repositories', class: Google::Apis::ArtifactregistryV1beta1::Repository, decorator: Google::Apis::ArtifactregistryV1beta1::Repository::Representation
312
+
313
+ end
314
+ end
315
+
316
+ class ListTagsResponse
317
+ # @private
318
+ class Representation < Google::Apis::Core::JsonRepresentation
319
+ property :next_page_token, as: 'nextPageToken'
320
+ collection :tags, as: 'tags', class: Google::Apis::ArtifactregistryV1beta1::Tag, decorator: Google::Apis::ArtifactregistryV1beta1::Tag::Representation
321
+
322
+ end
323
+ end
324
+
325
+ class ListVersionsResponse
326
+ # @private
327
+ class Representation < Google::Apis::Core::JsonRepresentation
328
+ property :next_page_token, as: 'nextPageToken'
329
+ collection :versions, as: 'versions', class: Google::Apis::ArtifactregistryV1beta1::Version, decorator: Google::Apis::ArtifactregistryV1beta1::Version::Representation
330
+
331
+ end
332
+ end
333
+
334
+ class Location
335
+ # @private
336
+ class Representation < Google::Apis::Core::JsonRepresentation
337
+ property :display_name, as: 'displayName'
338
+ hash :labels, as: 'labels'
339
+ property :location_id, as: 'locationId'
340
+ hash :metadata, as: 'metadata'
341
+ property :name, as: 'name'
342
+ end
343
+ end
344
+
345
+ class Operation
346
+ # @private
347
+ class Representation < Google::Apis::Core::JsonRepresentation
348
+ property :done, as: 'done'
349
+ property :error, as: 'error', class: Google::Apis::ArtifactregistryV1beta1::Status, decorator: Google::Apis::ArtifactregistryV1beta1::Status::Representation
350
+
351
+ hash :metadata, as: 'metadata'
352
+ property :name, as: 'name'
353
+ hash :response, as: 'response'
354
+ end
355
+ end
356
+
357
+ class Package
358
+ # @private
359
+ class Representation < Google::Apis::Core::JsonRepresentation
360
+ property :create_time, as: 'createTime'
361
+ property :display_name, as: 'displayName'
362
+ property :name, as: 'name'
363
+ property :update_time, as: 'updateTime'
364
+ end
365
+ end
366
+
367
+ class Policy
368
+ # @private
369
+ class Representation < Google::Apis::Core::JsonRepresentation
370
+ collection :bindings, as: 'bindings', class: Google::Apis::ArtifactregistryV1beta1::Binding, decorator: Google::Apis::ArtifactregistryV1beta1::Binding::Representation
371
+
372
+ property :etag, :base64 => true, as: 'etag'
373
+ property :version, as: 'version'
374
+ end
375
+ end
376
+
377
+ class Repository
378
+ # @private
379
+ class Representation < Google::Apis::Core::JsonRepresentation
380
+ property :create_time, as: 'createTime'
381
+ property :description, as: 'description'
382
+ property :format, as: 'format'
383
+ hash :labels, as: 'labels'
384
+ property :name, as: 'name'
385
+ property :update_time, as: 'updateTime'
386
+ end
387
+ end
388
+
389
+ class SetIamPolicyRequest
390
+ # @private
391
+ class Representation < Google::Apis::Core::JsonRepresentation
392
+ property :policy, as: 'policy', class: Google::Apis::ArtifactregistryV1beta1::Policy, decorator: Google::Apis::ArtifactregistryV1beta1::Policy::Representation
393
+
394
+ end
395
+ end
396
+
397
+ class Status
398
+ # @private
399
+ class Representation < Google::Apis::Core::JsonRepresentation
400
+ property :code, as: 'code'
401
+ collection :details, as: 'details'
402
+ property :message, as: 'message'
403
+ end
404
+ end
405
+
406
+ class Tag
407
+ # @private
408
+ class Representation < Google::Apis::Core::JsonRepresentation
409
+ property :name, as: 'name'
410
+ property :version, as: 'version'
411
+ end
412
+ end
413
+
414
+ class TestIamPermissionsRequest
415
+ # @private
416
+ class Representation < Google::Apis::Core::JsonRepresentation
417
+ collection :permissions, as: 'permissions'
418
+ end
419
+ end
420
+
421
+ class TestIamPermissionsResponse
422
+ # @private
423
+ class Representation < Google::Apis::Core::JsonRepresentation
424
+ collection :permissions, as: 'permissions'
425
+ end
426
+ end
427
+
428
+ class Version
429
+ # @private
430
+ class Representation < Google::Apis::Core::JsonRepresentation
431
+ property :create_time, as: 'createTime'
432
+ property :description, as: 'description'
433
+ property :name, as: 'name'
434
+ collection :related_tags, as: 'relatedTags', class: Google::Apis::ArtifactregistryV1beta1::Tag, decorator: Google::Apis::ArtifactregistryV1beta1::Tag::Representation
435
+
436
+ property :update_time, as: 'updateTime'
437
+ end
438
+ end
439
+ end
440
+ end
441
+ end
@@ -0,0 +1,957 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module ArtifactregistryV1beta1
23
+ # Artifact Registry API
24
+ #
25
+ # Store and manage build artifacts in a scalable and integrated service built on
26
+ # Google infrastructure.
27
+ #
28
+ # @example
29
+ # require 'google/apis/artifactregistry_v1beta1'
30
+ #
31
+ # Artifactregistry = Google::Apis::ArtifactregistryV1beta1 # Alias the module
32
+ # service = Artifactregistry::ArtifactRegistryService.new
33
+ #
34
+ # @see https://cloud.google.com/artifacts/docs/
35
+ class ArtifactRegistryService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://artifactregistry.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Gets information about a location.
52
+ # @param [String] name
53
+ # Resource name for the location.
54
+ # @param [String] fields
55
+ # Selector specifying which fields to include in a partial response.
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [Google::Apis::RequestOptions] options
60
+ # Request-specific options
61
+ #
62
+ # @yield [result, err] Result & error if block supplied
63
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Location] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::ArtifactregistryV1beta1::Location]
67
+ #
68
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
72
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
73
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Location::Representation
74
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Location
75
+ command.params['name'] = name unless name.nil?
76
+ command.query['fields'] = fields unless fields.nil?
77
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
78
+ execute_or_queue_command(command, &block)
79
+ end
80
+
81
+ # Lists information about the supported locations for this service.
82
+ # @param [String] name
83
+ # The resource that owns the locations collection, if applicable.
84
+ # @param [String] filter
85
+ # The standard list filter.
86
+ # @param [Fixnum] page_size
87
+ # The standard list page size.
88
+ # @param [String] page_token
89
+ # The standard list page token.
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [String] quota_user
93
+ # Available to use for quota purposes for server-side applications. Can be any
94
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [Google::Apis::RequestOptions] options
96
+ # Request-specific options
97
+ #
98
+ # @yield [result, err] Result & error if block supplied
99
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse] parsed result object
100
+ # @yieldparam err [StandardError] error object if request failed
101
+ #
102
+ # @return [Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse]
103
+ #
104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
107
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
109
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse::Representation
110
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse
111
+ command.params['name'] = name unless name.nil?
112
+ command.query['filter'] = filter unless filter.nil?
113
+ command.query['pageSize'] = page_size unless page_size.nil?
114
+ command.query['pageToken'] = page_token unless page_token.nil?
115
+ command.query['fields'] = fields unless fields.nil?
116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
117
+ execute_or_queue_command(command, &block)
118
+ end
119
+
120
+ # Gets the latest state of a long-running operation. Clients can use this
121
+ # method to poll the operation result at intervals as recommended by the API
122
+ # service.
123
+ # @param [String] name
124
+ # The name of the operation resource.
125
+ # @param [String] fields
126
+ # Selector specifying which fields to include in a partial response.
127
+ # @param [String] quota_user
128
+ # Available to use for quota purposes for server-side applications. Can be any
129
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
130
+ # @param [Google::Apis::RequestOptions] options
131
+ # Request-specific options
132
+ #
133
+ # @yield [result, err] Result & error if block supplied
134
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Operation] parsed result object
135
+ # @yieldparam err [StandardError] error object if request failed
136
+ #
137
+ # @return [Google::Apis::ArtifactregistryV1beta1::Operation]
138
+ #
139
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
140
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
141
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
142
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
143
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
144
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
145
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
146
+ command.params['name'] = name unless name.nil?
147
+ command.query['fields'] = fields unless fields.nil?
148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
149
+ execute_or_queue_command(command, &block)
150
+ end
151
+
152
+ # Lists operations that match the specified filter in the request. If the
153
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
154
+ # NOTE: the `name` binding allows API services to override the binding
155
+ # to use different resource name schemes, such as `users/*/operations`. To
156
+ # override the binding, API services can add a binding such as
157
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
158
+ # For backwards compatibility, the default name includes the operations
159
+ # collection id, however overriding users must ensure the name binding
160
+ # is the parent resource, without the operations collection id.
161
+ # @param [String] name
162
+ # The name of the operation's parent resource.
163
+ # @param [String] filter
164
+ # The standard list filter.
165
+ # @param [Fixnum] page_size
166
+ # The standard list page size.
167
+ # @param [String] page_token
168
+ # The standard list page token.
169
+ # @param [String] fields
170
+ # Selector specifying which fields to include in a partial response.
171
+ # @param [String] quota_user
172
+ # Available to use for quota purposes for server-side applications. Can be any
173
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
174
+ # @param [Google::Apis::RequestOptions] options
175
+ # Request-specific options
176
+ #
177
+ # @yield [result, err] Result & error if block supplied
178
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse] parsed result object
179
+ # @yieldparam err [StandardError] error object if request failed
180
+ #
181
+ # @return [Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse]
182
+ #
183
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
184
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
185
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
186
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
187
+ command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
188
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse::Representation
189
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse
190
+ command.params['name'] = name unless name.nil?
191
+ command.query['filter'] = filter unless filter.nil?
192
+ command.query['pageSize'] = page_size unless page_size.nil?
193
+ command.query['pageToken'] = page_token unless page_token.nil?
194
+ command.query['fields'] = fields unless fields.nil?
195
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
196
+ execute_or_queue_command(command, &block)
197
+ end
198
+
199
+ # Creates a repository. The returned Operation will finish once the
200
+ # repository has been created. Its response will be the created Repository.
201
+ # @param [String] parent
202
+ # The name of the parent resource where the repository will be created.
203
+ # @param [Google::Apis::ArtifactregistryV1beta1::Repository] repository_object
204
+ # @param [String] repository_id
205
+ # The repository id to use for this repository.
206
+ # @param [String] fields
207
+ # Selector specifying which fields to include in a partial response.
208
+ # @param [String] quota_user
209
+ # Available to use for quota purposes for server-side applications. Can be any
210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
211
+ # @param [Google::Apis::RequestOptions] options
212
+ # Request-specific options
213
+ #
214
+ # @yield [result, err] Result & error if block supplied
215
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Operation] parsed result object
216
+ # @yieldparam err [StandardError] error object if request failed
217
+ #
218
+ # @return [Google::Apis::ArtifactregistryV1beta1::Operation]
219
+ #
220
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
221
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
222
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
223
+ def create_project_location_repository(parent, repository_object = nil, repository_id: nil, fields: nil, quota_user: nil, options: nil, &block)
224
+ command = make_simple_command(:post, 'v1beta1/{+parent}/repositories', options)
225
+ command.request_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
226
+ command.request_object = repository_object
227
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
228
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
229
+ command.params['parent'] = parent unless parent.nil?
230
+ command.query['repositoryId'] = repository_id unless repository_id.nil?
231
+ command.query['fields'] = fields unless fields.nil?
232
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
233
+ execute_or_queue_command(command, &block)
234
+ end
235
+
236
+ # Deletes a repository and all of its contents. The returned Operation will
237
+ # finish once the repository has been deleted. It will not have any Operation
238
+ # metadata and will return a google.protobuf.Empty response.
239
+ # @param [String] name
240
+ # The name of the repository to delete.
241
+ # @param [String] fields
242
+ # Selector specifying which fields to include in a partial response.
243
+ # @param [String] quota_user
244
+ # Available to use for quota purposes for server-side applications. Can be any
245
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
246
+ # @param [Google::Apis::RequestOptions] options
247
+ # Request-specific options
248
+ #
249
+ # @yield [result, err] Result & error if block supplied
250
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Operation] parsed result object
251
+ # @yieldparam err [StandardError] error object if request failed
252
+ #
253
+ # @return [Google::Apis::ArtifactregistryV1beta1::Operation]
254
+ #
255
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
256
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
257
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
258
+ def delete_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block)
259
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
260
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
261
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
262
+ command.params['name'] = name unless name.nil?
263
+ command.query['fields'] = fields unless fields.nil?
264
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
265
+ execute_or_queue_command(command, &block)
266
+ end
267
+
268
+ # Gets a repository.
269
+ # @param [String] name
270
+ # The name of the repository to retrieve.
271
+ # @param [String] fields
272
+ # Selector specifying which fields to include in a partial response.
273
+ # @param [String] quota_user
274
+ # Available to use for quota purposes for server-side applications. Can be any
275
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
276
+ # @param [Google::Apis::RequestOptions] options
277
+ # Request-specific options
278
+ #
279
+ # @yield [result, err] Result & error if block supplied
280
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Repository] parsed result object
281
+ # @yieldparam err [StandardError] error object if request failed
282
+ #
283
+ # @return [Google::Apis::ArtifactregistryV1beta1::Repository]
284
+ #
285
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
286
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
287
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
288
+ def get_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block)
289
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
290
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
291
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Repository
292
+ command.params['name'] = name unless name.nil?
293
+ command.query['fields'] = fields unless fields.nil?
294
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
295
+ execute_or_queue_command(command, &block)
296
+ end
297
+
298
+ # Gets the IAM policy for a given resource.
299
+ # @param [String] resource
300
+ # REQUIRED: The resource for which the policy is being requested.
301
+ # See the operation documentation for the appropriate value for this field.
302
+ # @param [Fixnum] options_requested_policy_version
303
+ # Optional. The policy format version to be returned.
304
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
305
+ # rejected.
306
+ # Requests for policies with any conditional bindings must specify version 3.
307
+ # Policies without any conditional bindings may specify any valid value or
308
+ # leave the field unset.
309
+ # To learn which resources support conditions in their IAM policies, see the
310
+ # [IAM
311
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
312
+ # @param [String] fields
313
+ # Selector specifying which fields to include in a partial response.
314
+ # @param [String] quota_user
315
+ # Available to use for quota purposes for server-side applications. Can be any
316
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
317
+ # @param [Google::Apis::RequestOptions] options
318
+ # Request-specific options
319
+ #
320
+ # @yield [result, err] Result & error if block supplied
321
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Policy] parsed result object
322
+ # @yieldparam err [StandardError] error object if request failed
323
+ #
324
+ # @return [Google::Apis::ArtifactregistryV1beta1::Policy]
325
+ #
326
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
327
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
328
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
329
+ def get_project_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
330
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
331
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Policy::Representation
332
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Policy
333
+ command.params['resource'] = resource unless resource.nil?
334
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
335
+ command.query['fields'] = fields unless fields.nil?
336
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
337
+ execute_or_queue_command(command, &block)
338
+ end
339
+
340
+ # Lists repositories.
341
+ # @param [String] parent
342
+ # The name of the parent resource whose repositories will be listed.
343
+ # @param [Fixnum] page_size
344
+ # The maximum number of repositories to return.
345
+ # @param [String] page_token
346
+ # The next_page_token value returned from a previous list request, if any.
347
+ # @param [String] fields
348
+ # Selector specifying which fields to include in a partial response.
349
+ # @param [String] quota_user
350
+ # Available to use for quota purposes for server-side applications. Can be any
351
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
352
+ # @param [Google::Apis::RequestOptions] options
353
+ # Request-specific options
354
+ #
355
+ # @yield [result, err] Result & error if block supplied
356
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse] parsed result object
357
+ # @yieldparam err [StandardError] error object if request failed
358
+ #
359
+ # @return [Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse]
360
+ #
361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
364
+ def list_project_location_repositories(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
365
+ command = make_simple_command(:get, 'v1beta1/{+parent}/repositories', options)
366
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse::Representation
367
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse
368
+ command.params['parent'] = parent unless parent.nil?
369
+ command.query['pageSize'] = page_size unless page_size.nil?
370
+ command.query['pageToken'] = page_token unless page_token.nil?
371
+ command.query['fields'] = fields unless fields.nil?
372
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
373
+ execute_or_queue_command(command, &block)
374
+ end
375
+
376
+ # Updates a repository.
377
+ # @param [String] name
378
+ # The name of the repository, for example:
379
+ # "projects/p1/locations/us-central1/repositories/repo1".
380
+ # @param [Google::Apis::ArtifactregistryV1beta1::Repository] repository_object
381
+ # @param [String] update_mask
382
+ # The update mask applies to the resource. For the `FieldMask` definition,
383
+ # see
384
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
385
+ # fieldmask
386
+ # @param [String] fields
387
+ # Selector specifying which fields to include in a partial response.
388
+ # @param [String] quota_user
389
+ # Available to use for quota purposes for server-side applications. Can be any
390
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
391
+ # @param [Google::Apis::RequestOptions] options
392
+ # Request-specific options
393
+ #
394
+ # @yield [result, err] Result & error if block supplied
395
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Repository] parsed result object
396
+ # @yieldparam err [StandardError] error object if request failed
397
+ #
398
+ # @return [Google::Apis::ArtifactregistryV1beta1::Repository]
399
+ #
400
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
401
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
402
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
403
+ def patch_project_location_repository(name, repository_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
404
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
405
+ command.request_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
406
+ command.request_object = repository_object
407
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
408
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Repository
409
+ command.params['name'] = name unless name.nil?
410
+ command.query['updateMask'] = update_mask unless update_mask.nil?
411
+ command.query['fields'] = fields unless fields.nil?
412
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
413
+ execute_or_queue_command(command, &block)
414
+ end
415
+
416
+ # Updates the IAM policy for a given resource.
417
+ # @param [String] resource
418
+ # REQUIRED: The resource for which the policy is being specified.
419
+ # See the operation documentation for the appropriate value for this field.
420
+ # @param [Google::Apis::ArtifactregistryV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
421
+ # @param [String] fields
422
+ # Selector specifying which fields to include in a partial response.
423
+ # @param [String] quota_user
424
+ # Available to use for quota purposes for server-side applications. Can be any
425
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
426
+ # @param [Google::Apis::RequestOptions] options
427
+ # Request-specific options
428
+ #
429
+ # @yield [result, err] Result & error if block supplied
430
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Policy] parsed result object
431
+ # @yieldparam err [StandardError] error object if request failed
432
+ #
433
+ # @return [Google::Apis::ArtifactregistryV1beta1::Policy]
434
+ #
435
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
436
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
437
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
438
+ def set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
439
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
440
+ command.request_representation = Google::Apis::ArtifactregistryV1beta1::SetIamPolicyRequest::Representation
441
+ command.request_object = set_iam_policy_request_object
442
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Policy::Representation
443
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Policy
444
+ command.params['resource'] = resource unless resource.nil?
445
+ command.query['fields'] = fields unless fields.nil?
446
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
447
+ execute_or_queue_command(command, &block)
448
+ end
449
+
450
+ # Tests if the caller has a list of permissions on a resource.
451
+ # @param [String] resource
452
+ # REQUIRED: The resource for which the policy detail is being requested.
453
+ # See the operation documentation for the appropriate value for this field.
454
+ # @param [Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
455
+ # @param [String] fields
456
+ # Selector specifying which fields to include in a partial response.
457
+ # @param [String] quota_user
458
+ # Available to use for quota purposes for server-side applications. Can be any
459
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
460
+ # @param [Google::Apis::RequestOptions] options
461
+ # Request-specific options
462
+ #
463
+ # @yield [result, err] Result & error if block supplied
464
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse] parsed result object
465
+ # @yieldparam err [StandardError] error object if request failed
466
+ #
467
+ # @return [Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse]
468
+ #
469
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
470
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
471
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
472
+ def test_repository_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
473
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
474
+ command.request_representation = Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsRequest::Representation
475
+ command.request_object = test_iam_permissions_request_object
476
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse::Representation
477
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse
478
+ command.params['resource'] = resource unless resource.nil?
479
+ command.query['fields'] = fields unless fields.nil?
480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
481
+ execute_or_queue_command(command, &block)
482
+ end
483
+
484
+ # Gets a file.
485
+ # @param [String] name
486
+ # The name of the file to retrieve.
487
+ # @param [String] fields
488
+ # Selector specifying which fields to include in a partial response.
489
+ # @param [String] quota_user
490
+ # Available to use for quota purposes for server-side applications. Can be any
491
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
492
+ # @param [Google::Apis::RequestOptions] options
493
+ # Request-specific options
494
+ #
495
+ # @yield [result, err] Result & error if block supplied
496
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::File] parsed result object
497
+ # @yieldparam err [StandardError] error object if request failed
498
+ #
499
+ # @return [Google::Apis::ArtifactregistryV1beta1::File]
500
+ #
501
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
502
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
503
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
504
+ def get_project_location_repository_file(name, fields: nil, quota_user: nil, options: nil, &block)
505
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
506
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::File::Representation
507
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::File
508
+ command.params['name'] = name unless name.nil?
509
+ command.query['fields'] = fields unless fields.nil?
510
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
511
+ execute_or_queue_command(command, &block)
512
+ end
513
+
514
+ # Lists files.
515
+ # @param [String] parent
516
+ # The name of the parent resource whose files will be listed.
517
+ # @param [String] filter
518
+ # An expression for filtering the results of the request. Filter rules are
519
+ # case insensitive. The fields eligible for filtering are:
520
+ # * `name`
521
+ # * `owner`
522
+ # An example of using a filter:
523
+ # * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` -
524
+ # -> Files with an
525
+ # ID starting with "a/b/".
526
+ # * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/
527
+ # versions/1.0"` -->
528
+ # Files owned by the version `1.0` in package `pkg1`.
529
+ # @param [Fixnum] page_size
530
+ # The maximum number of files to return.
531
+ # @param [String] page_token
532
+ # The next_page_token value returned from a previous list request, if any.
533
+ # @param [String] fields
534
+ # Selector specifying which fields to include in a partial response.
535
+ # @param [String] quota_user
536
+ # Available to use for quota purposes for server-side applications. Can be any
537
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
538
+ # @param [Google::Apis::RequestOptions] options
539
+ # Request-specific options
540
+ #
541
+ # @yield [result, err] Result & error if block supplied
542
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListFilesResponse] parsed result object
543
+ # @yieldparam err [StandardError] error object if request failed
544
+ #
545
+ # @return [Google::Apis::ArtifactregistryV1beta1::ListFilesResponse]
546
+ #
547
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
548
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
549
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
550
+ def list_project_location_repository_files(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
551
+ command = make_simple_command(:get, 'v1beta1/{+parent}/files', options)
552
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListFilesResponse::Representation
553
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::ListFilesResponse
554
+ command.params['parent'] = parent unless parent.nil?
555
+ command.query['filter'] = filter unless filter.nil?
556
+ command.query['pageSize'] = page_size unless page_size.nil?
557
+ command.query['pageToken'] = page_token unless page_token.nil?
558
+ command.query['fields'] = fields unless fields.nil?
559
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
560
+ execute_or_queue_command(command, &block)
561
+ end
562
+
563
+ # Deletes a package and all of its versions and tags. The returned operation
564
+ # will complete once the package has been deleted.
565
+ # @param [String] name
566
+ # The name of the package to delete.
567
+ # @param [String] fields
568
+ # Selector specifying which fields to include in a partial response.
569
+ # @param [String] quota_user
570
+ # Available to use for quota purposes for server-side applications. Can be any
571
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
572
+ # @param [Google::Apis::RequestOptions] options
573
+ # Request-specific options
574
+ #
575
+ # @yield [result, err] Result & error if block supplied
576
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Operation] parsed result object
577
+ # @yieldparam err [StandardError] error object if request failed
578
+ #
579
+ # @return [Google::Apis::ArtifactregistryV1beta1::Operation]
580
+ #
581
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
582
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
583
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
584
+ def delete_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil, &block)
585
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
586
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
587
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
588
+ command.params['name'] = name unless name.nil?
589
+ command.query['fields'] = fields unless fields.nil?
590
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
591
+ execute_or_queue_command(command, &block)
592
+ end
593
+
594
+ # Gets a package.
595
+ # @param [String] name
596
+ # The name of the package to retrieve.
597
+ # @param [String] fields
598
+ # Selector specifying which fields to include in a partial response.
599
+ # @param [String] quota_user
600
+ # Available to use for quota purposes for server-side applications. Can be any
601
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
602
+ # @param [Google::Apis::RequestOptions] options
603
+ # Request-specific options
604
+ #
605
+ # @yield [result, err] Result & error if block supplied
606
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Package] parsed result object
607
+ # @yieldparam err [StandardError] error object if request failed
608
+ #
609
+ # @return [Google::Apis::ArtifactregistryV1beta1::Package]
610
+ #
611
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
612
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
613
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
614
+ def get_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil, &block)
615
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
616
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Package::Representation
617
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Package
618
+ command.params['name'] = name unless name.nil?
619
+ command.query['fields'] = fields unless fields.nil?
620
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
621
+ execute_or_queue_command(command, &block)
622
+ end
623
+
624
+ # Lists packages.
625
+ # @param [String] parent
626
+ # The name of the parent resource whose packages will be listed.
627
+ # @param [Fixnum] page_size
628
+ # The maximum number of packages to return.
629
+ # @param [String] page_token
630
+ # The next_page_token value returned from a previous list request, if any.
631
+ # @param [String] fields
632
+ # Selector specifying which fields to include in a partial response.
633
+ # @param [String] quota_user
634
+ # Available to use for quota purposes for server-side applications. Can be any
635
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
636
+ # @param [Google::Apis::RequestOptions] options
637
+ # Request-specific options
638
+ #
639
+ # @yield [result, err] Result & error if block supplied
640
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse] parsed result object
641
+ # @yieldparam err [StandardError] error object if request failed
642
+ #
643
+ # @return [Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse]
644
+ #
645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
648
+ def list_project_location_repository_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
649
+ command = make_simple_command(:get, 'v1beta1/{+parent}/packages', options)
650
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse::Representation
651
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse
652
+ command.params['parent'] = parent unless parent.nil?
653
+ command.query['pageSize'] = page_size unless page_size.nil?
654
+ command.query['pageToken'] = page_token unless page_token.nil?
655
+ command.query['fields'] = fields unless fields.nil?
656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
657
+ execute_or_queue_command(command, &block)
658
+ end
659
+
660
+ # Creates a tag.
661
+ # @param [String] parent
662
+ # The name of the parent resource where the tag will be created.
663
+ # @param [Google::Apis::ArtifactregistryV1beta1::Tag] tag_object
664
+ # @param [String] tag_id
665
+ # The tag id to use for this repository.
666
+ # @param [String] fields
667
+ # Selector specifying which fields to include in a partial response.
668
+ # @param [String] quota_user
669
+ # Available to use for quota purposes for server-side applications. Can be any
670
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
671
+ # @param [Google::Apis::RequestOptions] options
672
+ # Request-specific options
673
+ #
674
+ # @yield [result, err] Result & error if block supplied
675
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Tag] parsed result object
676
+ # @yieldparam err [StandardError] error object if request failed
677
+ #
678
+ # @return [Google::Apis::ArtifactregistryV1beta1::Tag]
679
+ #
680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
683
+ def create_project_location_repository_package_tag(parent, tag_object = nil, tag_id: nil, fields: nil, quota_user: nil, options: nil, &block)
684
+ command = make_simple_command(:post, 'v1beta1/{+parent}/tags', options)
685
+ command.request_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
686
+ command.request_object = tag_object
687
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
688
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Tag
689
+ command.params['parent'] = parent unless parent.nil?
690
+ command.query['tagId'] = tag_id unless tag_id.nil?
691
+ command.query['fields'] = fields unless fields.nil?
692
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
693
+ execute_or_queue_command(command, &block)
694
+ end
695
+
696
+ # Deletes a tag.
697
+ # @param [String] name
698
+ # The name of the tag to delete.
699
+ # @param [String] fields
700
+ # Selector specifying which fields to include in a partial response.
701
+ # @param [String] quota_user
702
+ # Available to use for quota purposes for server-side applications. Can be any
703
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
704
+ # @param [Google::Apis::RequestOptions] options
705
+ # Request-specific options
706
+ #
707
+ # @yield [result, err] Result & error if block supplied
708
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Empty] parsed result object
709
+ # @yieldparam err [StandardError] error object if request failed
710
+ #
711
+ # @return [Google::Apis::ArtifactregistryV1beta1::Empty]
712
+ #
713
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
714
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
715
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
716
+ def delete_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil, &block)
717
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
718
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Empty::Representation
719
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Empty
720
+ command.params['name'] = name unless name.nil?
721
+ command.query['fields'] = fields unless fields.nil?
722
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
723
+ execute_or_queue_command(command, &block)
724
+ end
725
+
726
+ # Gets a tag.
727
+ # @param [String] name
728
+ # The name of the tag to retrieve.
729
+ # @param [String] fields
730
+ # Selector specifying which fields to include in a partial response.
731
+ # @param [String] quota_user
732
+ # Available to use for quota purposes for server-side applications. Can be any
733
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
734
+ # @param [Google::Apis::RequestOptions] options
735
+ # Request-specific options
736
+ #
737
+ # @yield [result, err] Result & error if block supplied
738
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Tag] parsed result object
739
+ # @yieldparam err [StandardError] error object if request failed
740
+ #
741
+ # @return [Google::Apis::ArtifactregistryV1beta1::Tag]
742
+ #
743
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
744
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
745
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
746
+ def get_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil, &block)
747
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
748
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
749
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Tag
750
+ command.params['name'] = name unless name.nil?
751
+ command.query['fields'] = fields unless fields.nil?
752
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
753
+ execute_or_queue_command(command, &block)
754
+ end
755
+
756
+ # Lists tags.
757
+ # @param [String] parent
758
+ # The name of the parent resource whose tags will be listed.
759
+ # @param [String] filter
760
+ # An expression for filtering the results of the request. Filter rules are
761
+ # case insensitive. The fields eligible for filtering are:
762
+ # * `version`
763
+ # An example of using a filter:
764
+ # * `version="projects/p1/locations/us-central1/repositories/repo1/packages/
765
+ # pkg1/versions/1.0"`
766
+ # --> Tags that are applied to the version `1.0` in package `pkg1`.
767
+ # @param [Fixnum] page_size
768
+ # The maximum number of tags to return.
769
+ # @param [String] page_token
770
+ # The next_page_token value returned from a previous list request, if any.
771
+ # @param [String] fields
772
+ # Selector specifying which fields to include in a partial response.
773
+ # @param [String] quota_user
774
+ # Available to use for quota purposes for server-side applications. Can be any
775
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
776
+ # @param [Google::Apis::RequestOptions] options
777
+ # Request-specific options
778
+ #
779
+ # @yield [result, err] Result & error if block supplied
780
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListTagsResponse] parsed result object
781
+ # @yieldparam err [StandardError] error object if request failed
782
+ #
783
+ # @return [Google::Apis::ArtifactregistryV1beta1::ListTagsResponse]
784
+ #
785
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
786
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
787
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
788
+ def list_project_location_repository_package_tags(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
789
+ command = make_simple_command(:get, 'v1beta1/{+parent}/tags', options)
790
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListTagsResponse::Representation
791
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::ListTagsResponse
792
+ command.params['parent'] = parent unless parent.nil?
793
+ command.query['filter'] = filter unless filter.nil?
794
+ command.query['pageSize'] = page_size unless page_size.nil?
795
+ command.query['pageToken'] = page_token unless page_token.nil?
796
+ command.query['fields'] = fields unless fields.nil?
797
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
798
+ execute_or_queue_command(command, &block)
799
+ end
800
+
801
+ # Updates a tag.
802
+ # @param [String] name
803
+ # The name of the tag, for example:
804
+ # "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1".
805
+ # @param [Google::Apis::ArtifactregistryV1beta1::Tag] tag_object
806
+ # @param [String] update_mask
807
+ # The update mask applies to the resource. For the `FieldMask` definition,
808
+ # see
809
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
810
+ # fieldmask
811
+ # @param [String] fields
812
+ # Selector specifying which fields to include in a partial response.
813
+ # @param [String] quota_user
814
+ # Available to use for quota purposes for server-side applications. Can be any
815
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
816
+ # @param [Google::Apis::RequestOptions] options
817
+ # Request-specific options
818
+ #
819
+ # @yield [result, err] Result & error if block supplied
820
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Tag] parsed result object
821
+ # @yieldparam err [StandardError] error object if request failed
822
+ #
823
+ # @return [Google::Apis::ArtifactregistryV1beta1::Tag]
824
+ #
825
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
826
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
827
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
828
+ def patch_project_location_repository_package_tag(name, tag_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
829
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
830
+ command.request_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
831
+ command.request_object = tag_object
832
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
833
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Tag
834
+ command.params['name'] = name unless name.nil?
835
+ command.query['updateMask'] = update_mask unless update_mask.nil?
836
+ command.query['fields'] = fields unless fields.nil?
837
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
838
+ execute_or_queue_command(command, &block)
839
+ end
840
+
841
+ # Deletes a version and all of its content. The returned operation will
842
+ # complete once the version has been deleted.
843
+ # @param [String] name
844
+ # The name of the version to delete.
845
+ # @param [Boolean] force
846
+ # By default, a version that is tagged may not be deleted. If force=true, the
847
+ # version and any tags pointing to the version are deleted.
848
+ # @param [String] fields
849
+ # Selector specifying which fields to include in a partial response.
850
+ # @param [String] quota_user
851
+ # Available to use for quota purposes for server-side applications. Can be any
852
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
853
+ # @param [Google::Apis::RequestOptions] options
854
+ # Request-specific options
855
+ #
856
+ # @yield [result, err] Result & error if block supplied
857
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Operation] parsed result object
858
+ # @yieldparam err [StandardError] error object if request failed
859
+ #
860
+ # @return [Google::Apis::ArtifactregistryV1beta1::Operation]
861
+ #
862
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
863
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
864
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
865
+ def delete_project_location_repository_package_version(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
866
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
867
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
868
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
869
+ command.params['name'] = name unless name.nil?
870
+ command.query['force'] = force unless force.nil?
871
+ command.query['fields'] = fields unless fields.nil?
872
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
873
+ execute_or_queue_command(command, &block)
874
+ end
875
+
876
+ # Gets a version
877
+ # @param [String] name
878
+ # The name of the version to retrieve.
879
+ # @param [String] view
880
+ # The view that should be returned in the response.
881
+ # @param [String] fields
882
+ # Selector specifying which fields to include in a partial response.
883
+ # @param [String] quota_user
884
+ # Available to use for quota purposes for server-side applications. Can be any
885
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
886
+ # @param [Google::Apis::RequestOptions] options
887
+ # Request-specific options
888
+ #
889
+ # @yield [result, err] Result & error if block supplied
890
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Version] parsed result object
891
+ # @yieldparam err [StandardError] error object if request failed
892
+ #
893
+ # @return [Google::Apis::ArtifactregistryV1beta1::Version]
894
+ #
895
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
896
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
897
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
898
+ def get_project_location_repository_package_version(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
899
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
900
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::Version::Representation
901
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::Version
902
+ command.params['name'] = name unless name.nil?
903
+ command.query['view'] = view unless view.nil?
904
+ command.query['fields'] = fields unless fields.nil?
905
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
906
+ execute_or_queue_command(command, &block)
907
+ end
908
+
909
+ # Lists versions.
910
+ # @param [String] parent
911
+ # The name of the parent resource whose versions will be listed.
912
+ # @param [Fixnum] page_size
913
+ # The maximum number of versions to return.
914
+ # @param [String] page_token
915
+ # The next_page_token value returned from a previous list request, if any.
916
+ # @param [String] view
917
+ # The view that should be returned in the response.
918
+ # @param [String] fields
919
+ # Selector specifying which fields to include in a partial response.
920
+ # @param [String] quota_user
921
+ # Available to use for quota purposes for server-side applications. Can be any
922
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
923
+ # @param [Google::Apis::RequestOptions] options
924
+ # Request-specific options
925
+ #
926
+ # @yield [result, err] Result & error if block supplied
927
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse] parsed result object
928
+ # @yieldparam err [StandardError] error object if request failed
929
+ #
930
+ # @return [Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse]
931
+ #
932
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
933
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
934
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
935
+ def list_project_location_repository_package_versions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
936
+ command = make_simple_command(:get, 'v1beta1/{+parent}/versions', options)
937
+ command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse::Representation
938
+ command.response_class = Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse
939
+ command.params['parent'] = parent unless parent.nil?
940
+ command.query['pageSize'] = page_size unless page_size.nil?
941
+ command.query['pageToken'] = page_token unless page_token.nil?
942
+ command.query['view'] = view unless view.nil?
943
+ command.query['fields'] = fields unless fields.nil?
944
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
945
+ execute_or_queue_command(command, &block)
946
+ end
947
+
948
+ protected
949
+
950
+ def apply_command_defaults(command)
951
+ command.query['key'] = key unless key.nil?
952
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
953
+ end
954
+ end
955
+ end
956
+ end
957
+ end