google-api-client 0.39.2 → 0.40.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (402) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +213 -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 +1 -1
  12. data/generated/google/apis/androidpublisher_v3/classes.rb +21 -2
  13. data/generated/google/apis/androidpublisher_v3/representations.rb +2 -0
  14. data/generated/google/apis/apigee_v1.rb +1 -1
  15. data/generated/google/apis/apigee_v1/classes.rb +46 -4
  16. data/generated/google/apis/apigee_v1/representations.rb +6 -0
  17. data/generated/google/apis/apigee_v1/service.rb +24 -14
  18. data/generated/google/apis/appengine_v1.rb +1 -1
  19. data/generated/google/apis/appengine_v1/classes.rb +7 -0
  20. data/generated/google/apis/appengine_v1/representations.rb +1 -0
  21. data/generated/google/apis/appengine_v1beta.rb +1 -1
  22. data/generated/google/apis/appengine_v1beta/classes.rb +7 -0
  23. data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
  24. data/generated/google/apis/appsmarket_v2.rb +3 -3
  25. data/generated/google/apis/appsmarket_v2/classes.rb +160 -159
  26. data/generated/google/apis/appsmarket_v2/representations.rb +78 -78
  27. data/generated/google/apis/appsmarket_v2/service.rb +24 -39
  28. data/generated/google/apis/artifactregistry_v1beta1.rb +38 -0
  29. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +1010 -0
  30. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +380 -0
  31. data/generated/google/apis/artifactregistry_v1beta1/service.rb +957 -0
  32. data/generated/google/apis/bigquery_v2.rb +1 -1
  33. data/generated/google/apis/bigquery_v2/classes.rb +46 -1
  34. data/generated/google/apis/bigquery_v2/representations.rb +4 -0
  35. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  36. data/generated/google/apis/bigqueryreservation_v1/classes.rb +21 -15
  37. data/generated/google/apis/bigqueryreservation_v1/service.rb +94 -81
  38. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  39. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  40. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +20 -61
  41. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +0 -16
  42. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +93 -68
  43. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  44. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  45. data/generated/google/apis/bigtableadmin_v2/service.rb +4 -4
  46. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  47. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +21 -0
  48. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +6 -0
  49. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  50. data/generated/google/apis/binaryauthorization_v1/classes.rb +4 -1
  51. data/generated/google/apis/calendar_v3.rb +1 -1
  52. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  53. data/generated/google/apis/{pagespeedonline_v2.rb → chromeuxreport_v1.rb} +10 -10
  54. data/generated/google/apis/chromeuxreport_v1/classes.rb +297 -0
  55. data/generated/google/apis/chromeuxreport_v1/representations.rb +147 -0
  56. data/generated/google/apis/chromeuxreport_v1/service.rb +92 -0
  57. data/generated/google/apis/cloudasset_v1.rb +1 -1
  58. data/generated/google/apis/cloudasset_v1/classes.rb +371 -27
  59. data/generated/google/apis/cloudasset_v1/representations.rb +97 -0
  60. data/generated/google/apis/cloudasset_v1/service.rb +186 -8
  61. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  62. data/generated/google/apis/cloudasset_v1beta1/classes.rb +23 -10
  63. data/generated/google/apis/cloudasset_v1beta1/service.rb +12 -3
  64. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  65. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +42 -10
  66. data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +2 -0
  67. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  68. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  69. data/generated/google/apis/cloudbuild_v1/classes.rb +15 -2
  70. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  71. data/generated/google/apis/cloudbuild_v1/service.rb +163 -0
  72. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  73. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +154 -0
  74. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +61 -0
  75. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +121 -0
  76. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  77. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +154 -0
  78. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +61 -0
  79. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +121 -0
  80. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  81. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +6 -0
  82. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +1 -0
  83. data/generated/google/apis/cloudiot_v1.rb +1 -1
  84. data/generated/google/apis/cloudiot_v1/classes.rb +26 -10
  85. data/generated/google/apis/cloudkms_v1.rb +1 -1
  86. data/generated/google/apis/cloudkms_v1/classes.rb +307 -14
  87. data/generated/google/apis/cloudkms_v1/representations.rb +17 -0
  88. data/generated/google/apis/cloudkms_v1/service.rb +15 -6
  89. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  90. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +26 -10
  91. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +26 -10
  93. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  94. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +26 -10
  95. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  96. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +26 -10
  97. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  98. data/generated/google/apis/cloudsearch_v1/classes.rb +8 -6
  99. data/generated/google/apis/cloudsearch_v1/service.rb +1 -1
  100. data/generated/google/apis/cloudshell_v1.rb +1 -1
  101. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  102. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  103. data/generated/google/apis/cloudtasks_v2/classes.rb +8 -6
  104. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  105. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +11 -2
  106. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  107. data/generated/google/apis/composer_v1beta1.rb +1 -1
  108. data/generated/google/apis/composer_v1beta1/classes.rb +58 -0
  109. data/generated/google/apis/composer_v1beta1/representations.rb +30 -0
  110. data/generated/google/apis/composer_v1beta1/service.rb +5 -0
  111. data/generated/google/apis/compute_alpha.rb +1 -1
  112. data/generated/google/apis/compute_alpha/classes.rb +227 -163
  113. data/generated/google/apis/compute_alpha/representations.rb +44 -33
  114. data/generated/google/apis/compute_alpha/service.rb +194 -0
  115. data/generated/google/apis/compute_beta.rb +1 -1
  116. data/generated/google/apis/compute_beta/classes.rb +222 -80
  117. data/generated/google/apis/compute_beta/representations.rb +50 -0
  118. data/generated/google/apis/compute_v1.rb +1 -1
  119. data/generated/google/apis/compute_v1/classes.rb +152 -55
  120. data/generated/google/apis/compute_v1/representations.rb +21 -0
  121. data/generated/google/apis/compute_v1/service.rb +83 -0
  122. data/generated/google/apis/container_v1.rb +1 -1
  123. data/generated/google/apis/container_v1/classes.rb +5 -6
  124. data/generated/google/apis/container_v1beta1.rb +1 -1
  125. data/generated/google/apis/container_v1beta1/classes.rb +65 -6
  126. data/generated/google/apis/container_v1beta1/representations.rb +33 -0
  127. data/generated/google/apis/content_v2.rb +1 -1
  128. data/generated/google/apis/content_v2/classes.rb +34 -0
  129. data/generated/google/apis/content_v2/representations.rb +16 -0
  130. data/generated/google/apis/content_v2/service.rb +5 -1
  131. data/generated/google/apis/content_v2_1.rb +1 -1
  132. data/generated/google/apis/content_v2_1/classes.rb +363 -5
  133. data/generated/google/apis/content_v2_1/representations.rb +136 -0
  134. data/generated/google/apis/content_v2_1/service.rb +85 -1
  135. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  136. data/generated/google/apis/datacatalog_v1beta1/classes.rb +26 -10
  137. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  138. data/generated/google/apis/dataflow_v1b3/classes.rb +331 -0
  139. data/generated/google/apis/dataflow_v1b3/representations.rb +164 -0
  140. data/generated/google/apis/dataflow_v1b3/service.rb +261 -0
  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 +1964 -337
  179. data/generated/google/apis/dlp_v2.rb +1 -1
  180. data/generated/google/apis/dlp_v2/classes.rb +9 -21
  181. data/generated/google/apis/dlp_v2/service.rb +79 -142
  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/file_v1.rb +1 -1
  195. data/generated/google/apis/file_v1/classes.rb +31 -0
  196. data/generated/google/apis/file_v1/representations.rb +15 -0
  197. data/generated/google/apis/file_v1beta1.rb +1 -1
  198. data/generated/google/apis/file_v1beta1/classes.rb +98 -0
  199. data/generated/google/apis/file_v1beta1/representations.rb +34 -0
  200. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  201. data/generated/google/apis/firebase_v1beta1/classes.rb +2 -12
  202. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  203. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +34 -29
  204. data/generated/google/apis/{pagespeedonline_v4.rb → firebaseml_v1.rb} +12 -10
  205. data/generated/google/apis/firebaseml_v1/classes.rb +213 -0
  206. data/generated/google/apis/firebaseml_v1/representations.rb +112 -0
  207. data/generated/google/apis/firebaseml_v1/service.rb +181 -0
  208. data/generated/google/apis/fitness_v1.rb +4 -4
  209. data/generated/google/apis/fitness_v1/classes.rb +185 -158
  210. data/generated/google/apis/fitness_v1/service.rb +187 -215
  211. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  212. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -1
  213. data/generated/google/apis/games_management_v1management.rb +6 -4
  214. data/generated/google/apis/games_management_v1management/classes.rb +50 -90
  215. data/generated/google/apis/games_management_v1management/representations.rb +0 -17
  216. data/generated/google/apis/games_management_v1management/service.rb +115 -291
  217. data/generated/google/apis/games_v1.rb +1 -1
  218. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  219. data/generated/google/apis/gameservices_v1beta/classes.rb +73 -60
  220. data/generated/google/apis/gameservices_v1beta/service.rb +60 -57
  221. data/generated/google/apis/gmail_v1.rb +2 -3
  222. data/generated/google/apis/gmail_v1/classes.rb +199 -258
  223. data/generated/google/apis/gmail_v1/service.rb +744 -552
  224. data/generated/google/apis/healthcare_v1.rb +1 -1
  225. data/generated/google/apis/healthcare_v1/classes.rb +70 -49
  226. data/generated/google/apis/healthcare_v1/service.rb +110 -143
  227. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  228. data/generated/google/apis/healthcare_v1beta1/classes.rb +73 -57
  229. data/generated/google/apis/healthcare_v1beta1/service.rb +226 -258
  230. data/generated/google/apis/homegraph_v1.rb +1 -1
  231. data/generated/google/apis/homegraph_v1/classes.rb +3 -0
  232. data/generated/google/apis/iam_v1.rb +1 -1
  233. data/generated/google/apis/iam_v1/classes.rb +24 -12
  234. data/generated/google/apis/iam_v1/service.rb +7 -0
  235. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  236. data/generated/google/apis/iamcredentials_v1/classes.rb +26 -2
  237. data/generated/google/apis/iap_v1.rb +1 -1
  238. data/generated/google/apis/iap_v1/classes.rb +35 -12
  239. data/generated/google/apis/iap_v1/representations.rb +1 -0
  240. data/generated/google/apis/iap_v1/service.rb +1 -1
  241. data/generated/google/apis/iap_v1beta1.rb +1 -1
  242. data/generated/google/apis/iap_v1beta1/classes.rb +26 -10
  243. data/generated/google/apis/jobs_v3.rb +1 -1
  244. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  245. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  246. data/generated/google/apis/memcache_v1beta2/classes.rb +60 -17
  247. data/generated/google/apis/memcache_v1beta2/representations.rb +15 -0
  248. data/generated/google/apis/memcache_v1beta2/service.rb +5 -2
  249. data/generated/google/apis/ml_v1.rb +1 -1
  250. data/generated/google/apis/ml_v1/classes.rb +84 -18
  251. data/generated/google/apis/ml_v1/representations.rb +4 -0
  252. data/generated/google/apis/ml_v1/service.rb +11 -6
  253. data/generated/google/apis/monitoring_v3.rb +1 -1
  254. data/generated/google/apis/monitoring_v3/classes.rb +7 -0
  255. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  256. data/generated/google/apis/monitoring_v3/service.rb +1 -1
  257. data/generated/google/apis/networkmanagement_v1.rb +35 -0
  258. data/generated/google/apis/networkmanagement_v1/classes.rb +1868 -0
  259. data/generated/google/apis/networkmanagement_v1/representations.rb +661 -0
  260. data/generated/google/apis/networkmanagement_v1/service.rb +667 -0
  261. data/generated/google/apis/osconfig_v1.rb +1 -1
  262. data/generated/google/apis/osconfig_v1/classes.rb +29 -27
  263. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  264. data/generated/google/apis/osconfig_v1beta/classes.rb +17 -20
  265. data/generated/google/apis/people_v1.rb +1 -1
  266. data/generated/google/apis/people_v1/classes.rb +100 -0
  267. data/generated/google/apis/people_v1/representations.rb +31 -0
  268. data/generated/google/apis/people_v1/service.rb +96 -3
  269. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  270. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +30 -0
  271. data/generated/google/apis/pubsub_v1.rb +1 -1
  272. data/generated/google/apis/pubsub_v1/classes.rb +21 -8
  273. data/generated/google/apis/pubsub_v1/representations.rb +12 -0
  274. data/generated/google/apis/pubsub_v1/service.rb +35 -1
  275. data/generated/google/apis/{pagespeedonline_v1.rb → recommender_v1.rb} +11 -9
  276. data/generated/google/apis/recommender_v1/classes.rb +505 -0
  277. data/generated/google/apis/recommender_v1/representations.rb +232 -0
  278. data/generated/google/apis/recommender_v1/service.rb +266 -0
  279. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  280. data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
  281. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
  282. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  283. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
  284. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
  285. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  286. data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
  287. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
  288. data/generated/google/apis/run_v1.rb +1 -1
  289. data/generated/google/apis/run_v1/classes.rb +40 -49
  290. data/generated/google/apis/run_v1/representations.rb +2 -17
  291. data/generated/google/apis/run_v1/service.rb +3 -0
  292. data/generated/google/apis/run_v1alpha1.rb +1 -1
  293. data/generated/google/apis/run_v1alpha1/classes.rb +32 -10
  294. data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
  295. data/generated/google/apis/run_v1alpha1/service.rb +3 -0
  296. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  297. data/generated/google/apis/sasportal_v1alpha1/service.rb +30 -0
  298. data/generated/google/apis/secretmanager_v1.rb +1 -1
  299. data/generated/google/apis/secretmanager_v1/classes.rb +26 -13
  300. data/generated/google/apis/secretmanager_v1/service.rb +3 -0
  301. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  302. data/generated/google/apis/secretmanager_v1beta1/classes.rb +23 -10
  303. data/generated/google/apis/secretmanager_v1beta1/service.rb +3 -0
  304. data/generated/google/apis/securitycenter_v1.rb +1 -1
  305. data/generated/google/apis/securitycenter_v1/classes.rb +27 -12
  306. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  307. data/generated/google/apis/securitycenter_v1beta1/classes.rb +27 -12
  308. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  309. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +27 -12
  310. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  311. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +97 -31
  312. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +32 -1
  313. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  314. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +97 -31
  315. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +32 -1
  316. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  317. data/generated/google/apis/servicecontrol_v1/classes.rb +6 -6
  318. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  319. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -31
  320. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  321. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  322. data/generated/google/apis/servicenetworking_v1/classes.rb +379 -31
  323. data/generated/google/apis/servicenetworking_v1/representations.rb +209 -1
  324. data/generated/google/apis/servicenetworking_v1/service.rb +187 -0
  325. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  326. data/generated/google/apis/servicenetworking_v1beta/classes.rb +188 -31
  327. data/generated/google/apis/servicenetworking_v1beta/representations.rb +130 -1
  328. data/generated/google/apis/serviceusage_v1.rb +1 -1
  329. data/generated/google/apis/serviceusage_v1/classes.rb +89 -31
  330. data/generated/google/apis/serviceusage_v1/representations.rb +32 -1
  331. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  332. data/generated/google/apis/serviceusage_v1beta1/classes.rb +89 -31
  333. data/generated/google/apis/serviceusage_v1beta1/representations.rb +32 -1
  334. data/generated/google/apis/sheets_v4.rb +1 -1
  335. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  336. data/generated/google/apis/sourcerepo_v1/classes.rb +23 -10
  337. data/generated/google/apis/sourcerepo_v1/service.rb +3 -0
  338. data/generated/google/apis/spanner_v1.rb +1 -1
  339. data/generated/google/apis/spanner_v1/classes.rb +30 -12
  340. data/generated/google/apis/spanner_v1/service.rb +8 -8
  341. data/generated/google/apis/sql_v1beta4.rb +1 -1
  342. data/generated/google/apis/sql_v1beta4/classes.rb +7 -0
  343. data/generated/google/apis/sql_v1beta4/representations.rb +1 -0
  344. data/generated/google/apis/storage_v1.rb +1 -1
  345. data/generated/google/apis/storage_v1/classes.rb +18 -0
  346. data/generated/google/apis/storage_v1/representations.rb +3 -0
  347. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  348. data/generated/google/apis/storagetransfer_v1/classes.rb +2 -1
  349. data/generated/google/apis/tasks_v1.rb +3 -3
  350. data/generated/google/apis/tasks_v1/classes.rb +26 -25
  351. data/generated/google/apis/tasks_v1/representations.rb +4 -8
  352. data/generated/google/apis/tasks_v1/service.rb +79 -128
  353. data/generated/google/apis/testing_v1.rb +1 -1
  354. data/generated/google/apis/testing_v1/classes.rb +5 -3
  355. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  356. data/generated/google/apis/toolresults_v1beta3/classes.rb +141 -2
  357. data/generated/google/apis/toolresults_v1beta3/representations.rb +77 -0
  358. data/generated/google/apis/tpu_v1.rb +1 -1
  359. data/generated/google/apis/tpu_v1/classes.rb +3 -3
  360. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  361. data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
  362. data/generated/google/apis/translate_v3.rb +1 -1
  363. data/generated/google/apis/verifiedaccess_v1.rb +3 -3
  364. data/generated/google/apis/verifiedaccess_v1/service.rb +2 -2
  365. data/generated/google/apis/videointelligence_v1.rb +1 -1
  366. data/generated/google/apis/videointelligence_v1/classes.rb +1 -1
  367. data/generated/google/apis/videointelligence_v1/service.rb +32 -0
  368. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  369. data/generated/google/apis/videointelligence_v1beta2/classes.rb +1 -1
  370. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  371. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1 -1
  372. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  373. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1 -1
  374. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  375. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1 -1
  376. data/generated/google/apis/websecurityscanner_v1.rb +2 -2
  377. data/generated/google/apis/websecurityscanner_v1/classes.rb +7 -5
  378. data/generated/google/apis/websecurityscanner_v1/service.rb +1 -1
  379. data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
  380. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +5 -4
  381. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  382. data/generated/google/apis/websecurityscanner_v1beta.rb +2 -2
  383. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +9 -7
  384. data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
  385. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  386. data/generated/google/apis/youtube_v3.rb +5 -5
  387. data/generated/google/apis/youtube_v3/classes.rb +1260 -1244
  388. data/generated/google/apis/youtube_v3/representations.rb +64 -192
  389. data/generated/google/apis/youtube_v3/service.rb +1827 -2154
  390. data/lib/google/apis/core/api_command.rb +12 -7
  391. data/lib/google/apis/options.rb +5 -1
  392. data/lib/google/apis/version.rb +1 -1
  393. metadata +23 -15
  394. data/generated/google/apis/pagespeedonline_v1/classes.rb +0 -542
  395. data/generated/google/apis/pagespeedonline_v1/representations.rb +0 -258
  396. data/generated/google/apis/pagespeedonline_v1/service.rb +0 -116
  397. data/generated/google/apis/pagespeedonline_v2/classes.rb +0 -621
  398. data/generated/google/apis/pagespeedonline_v2/representations.rb +0 -273
  399. data/generated/google/apis/pagespeedonline_v2/service.rb +0 -116
  400. data/generated/google/apis/pagespeedonline_v4/classes.rb +0 -795
  401. data/generated/google/apis/pagespeedonline_v4/representations.rb +0 -335
  402. data/generated/google/apis/pagespeedonline_v4/service.rb +0 -125
@@ -24,42 +24,30 @@ module Google
24
24
 
25
25
  class CustomerLicense
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- class Edition
29
- class Representation < Google::Apis::Core::JsonRepresentation; end
30
-
31
- include Google::Apis::Core::JsonObjectSupport
32
- end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Deletes
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Editions
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Expiries
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
45
 
34
46
  include Google::Apis::Core::JsonObjectSupport
35
47
  end
36
48
 
37
49
  class LicenseNotification
38
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- class Delete
41
- class Representation < Google::Apis::Core::JsonRepresentation; end
42
-
43
- include Google::Apis::Core::JsonObjectSupport
44
- end
45
-
46
- class Expiry
47
- class Representation < Google::Apis::Core::JsonRepresentation; end
48
-
49
- include Google::Apis::Core::JsonObjectSupport
50
- end
51
-
52
- class Provision
53
- class Representation < Google::Apis::Core::JsonRepresentation; end
54
-
55
- include Google::Apis::Core::JsonObjectSupport
56
- end
57
-
58
- class Reassignment
59
- class Representation < Google::Apis::Core::JsonRepresentation; end
60
-
61
- include Google::Apis::Core::JsonObjectSupport
62
- end
63
51
 
64
52
  include Google::Apis::Core::JsonObjectSupport
65
53
  end
@@ -70,6 +58,18 @@ module Google
70
58
  include Google::Apis::Core::JsonObjectSupport
71
59
  end
72
60
 
61
+ class Provisions
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Reassignments
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
73
  class UserLicense
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
@@ -81,20 +81,36 @@ module Google
81
81
  class Representation < Google::Apis::Core::JsonRepresentation
82
82
  property :application_id, as: 'applicationId'
83
83
  property :customer_id, as: 'customerId'
84
- collection :editions, as: 'editions', class: Google::Apis::AppsmarketV2::CustomerLicense::Edition, decorator: Google::Apis::AppsmarketV2::CustomerLicense::Edition::Representation
84
+ collection :editions, as: 'editions', class: Google::Apis::AppsmarketV2::Editions, decorator: Google::Apis::AppsmarketV2::Editions::Representation
85
85
 
86
86
  property :id, as: 'id'
87
87
  property :kind, as: 'kind'
88
88
  property :state, as: 'state'
89
89
  end
90
-
91
- class Edition
92
- # @private
93
- class Representation < Google::Apis::Core::JsonRepresentation
94
- property :assigned_seats, as: 'assignedSeats'
95
- property :edition_id, as: 'editionId'
96
- property :seat_count, as: 'seatCount'
97
- end
90
+ end
91
+
92
+ class Deletes
93
+ # @private
94
+ class Representation < Google::Apis::Core::JsonRepresentation
95
+ property :edition_id, as: 'editionId'
96
+ property :kind, as: 'kind'
97
+ end
98
+ end
99
+
100
+ class Editions
101
+ # @private
102
+ class Representation < Google::Apis::Core::JsonRepresentation
103
+ property :assigned_seats, as: 'assignedSeats'
104
+ property :edition_id, as: 'editionId'
105
+ property :seat_count, as: 'seatCount'
106
+ end
107
+ end
108
+
109
+ class Expiries
110
+ # @private
111
+ class Representation < Google::Apis::Core::JsonRepresentation
112
+ property :edition_id, as: 'editionId'
113
+ property :kind, as: 'kind'
98
114
  end
99
115
  end
100
116
 
@@ -103,53 +119,18 @@ module Google
103
119
  class Representation < Google::Apis::Core::JsonRepresentation
104
120
  property :application_id, as: 'applicationId'
105
121
  property :customer_id, as: 'customerId'
106
- collection :deletes, as: 'deletes', class: Google::Apis::AppsmarketV2::LicenseNotification::Delete, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Delete::Representation
122
+ collection :deletes, as: 'deletes', class: Google::Apis::AppsmarketV2::Deletes, decorator: Google::Apis::AppsmarketV2::Deletes::Representation
107
123
 
108
- collection :expiries, as: 'expiries', class: Google::Apis::AppsmarketV2::LicenseNotification::Expiry, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Expiry::Representation
124
+ collection :expiries, as: 'expiries', class: Google::Apis::AppsmarketV2::Expiries, decorator: Google::Apis::AppsmarketV2::Expiries::Representation
109
125
 
110
126
  property :id, as: 'id'
111
127
  property :kind, as: 'kind'
112
- collection :provisions, as: 'provisions', class: Google::Apis::AppsmarketV2::LicenseNotification::Provision, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Provision::Representation
128
+ collection :provisions, as: 'provisions', class: Google::Apis::AppsmarketV2::Provisions, decorator: Google::Apis::AppsmarketV2::Provisions::Representation
113
129
 
114
- collection :reassignments, as: 'reassignments', class: Google::Apis::AppsmarketV2::LicenseNotification::Reassignment, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Reassignment::Representation
130
+ collection :reassignments, as: 'reassignments', class: Google::Apis::AppsmarketV2::Reassignments, decorator: Google::Apis::AppsmarketV2::Reassignments::Representation
115
131
 
116
132
  property :timestamp, :numeric_string => true, as: 'timestamp'
117
133
  end
118
-
119
- class Delete
120
- # @private
121
- class Representation < Google::Apis::Core::JsonRepresentation
122
- property :edition_id, as: 'editionId'
123
- property :kind, as: 'kind'
124
- end
125
- end
126
-
127
- class Expiry
128
- # @private
129
- class Representation < Google::Apis::Core::JsonRepresentation
130
- property :edition_id, as: 'editionId'
131
- property :kind, as: 'kind'
132
- end
133
- end
134
-
135
- class Provision
136
- # @private
137
- class Representation < Google::Apis::Core::JsonRepresentation
138
- property :edition_id, as: 'editionId'
139
- property :kind, as: 'kind'
140
- property :seat_count, :numeric_string => true, as: 'seatCount'
141
- end
142
- end
143
-
144
- class Reassignment
145
- # @private
146
- class Representation < Google::Apis::Core::JsonRepresentation
147
- property :edition_id, as: 'editionId'
148
- property :kind, as: 'kind'
149
- property :type, as: 'type'
150
- property :user_id, as: 'userId'
151
- end
152
- end
153
134
  end
154
135
 
155
136
  class LicenseNotificationList
@@ -162,6 +143,25 @@ module Google
162
143
  end
163
144
  end
164
145
 
146
+ class Provisions
147
+ # @private
148
+ class Representation < Google::Apis::Core::JsonRepresentation
149
+ property :edition_id, as: 'editionId'
150
+ property :kind, as: 'kind'
151
+ property :seat_count, :numeric_string => true, as: 'seatCount'
152
+ end
153
+ end
154
+
155
+ class Reassignments
156
+ # @private
157
+ class Representation < Google::Apis::Core::JsonRepresentation
158
+ property :edition_id, as: 'editionId'
159
+ property :kind, as: 'kind'
160
+ property :type, as: 'type'
161
+ property :user_id, as: 'userId'
162
+ end
163
+ end
164
+
165
165
  class UserLicense
166
166
  # @private
167
167
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -23,36 +23,33 @@ module Google
23
23
  # G Suite Marketplace API
24
24
  #
25
25
  # Lets your G Suite Marketplace applications integrate with Google's licensing
26
- # service
26
+ # and billing services.
27
27
  #
28
28
  # @example
29
29
  # require 'google/apis/appsmarket_v2'
30
30
  #
31
31
  # Appsmarket = Google::Apis::AppsmarketV2 # Alias the module
32
- # service = Appsmarket::AppsmarketService.new
32
+ # service = Appsmarket::GSuiteMarketplaceAPIService.new
33
33
  #
34
- # @see https://developers.google.com/google-apps/marketplace/v2/developers_guide
35
- class AppsmarketService < Google::Apis::Core::BaseService
34
+ # @see https://developers.google.com/apps-marketplace
35
+ class GSuiteMarketplaceAPIService < Google::Apis::Core::BaseService
36
36
  # @return [String]
37
37
  # API key. Your API key identifies your project and provides you with API access,
38
38
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
39
  attr_accessor :key
40
40
 
41
41
  # @return [String]
42
- # An opaque string that represents a user for quota purposes. Must not exceed 40
43
- # characters.
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
44
  attr_accessor :quota_user
45
45
 
46
- # @return [String]
47
- # Deprecated. Please use quotaUser instead.
48
- attr_accessor :user_ip
49
-
50
46
  def initialize
51
- super('https://www.googleapis.com/', 'appsmarket/v2/')
52
- @batch_path = 'batch/appsmarket/v2'
47
+ super('https://appsmarket.googleapis.com/', '')
48
+ @batch_path = 'batch'
53
49
  end
54
50
 
55
- #
51
+ # Get the status of a license for a customer to determine if they have access
52
+ # for a given app.
56
53
  # @param [String] application_id
57
54
  # Application Id
58
55
  # @param [String] customer_id
@@ -60,10 +57,8 @@ module Google
60
57
  # @param [String] fields
61
58
  # Selector specifying which fields to include in a partial response.
62
59
  # @param [String] quota_user
63
- # An opaque string that represents a user for quota purposes. Must not exceed 40
64
- # characters.
65
- # @param [String] user_ip
66
- # Deprecated. Please use quotaUser instead.
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67
62
  # @param [Google::Apis::RequestOptions] options
68
63
  # Request-specific options
69
64
  #
@@ -76,34 +71,29 @@ module Google
76
71
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
72
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
73
  # @raise [Google::Apis::AuthorizationError] Authorization is required
79
- def get_customer_license(application_id, customer_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
80
- command = make_simple_command(:get, 'customerLicense/{applicationId}/{customerId}', options)
74
+ def get_customer_license(application_id, customer_id, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:get, 'appsmarket/v2/customerLicense/{applicationId}/{customerId}', options)
81
76
  command.response_representation = Google::Apis::AppsmarketV2::CustomerLicense::Representation
82
77
  command.response_class = Google::Apis::AppsmarketV2::CustomerLicense
83
78
  command.params['applicationId'] = application_id unless application_id.nil?
84
79
  command.params['customerId'] = customer_id unless customer_id.nil?
85
80
  command.query['fields'] = fields unless fields.nil?
86
81
  command.query['quotaUser'] = quota_user unless quota_user.nil?
87
- command.query['userIp'] = user_ip unless user_ip.nil?
88
82
  execute_or_queue_command(command, &block)
89
83
  end
90
84
 
91
- #
85
+ # Get a list of licensing notifications with regards to a given app.
92
86
  # @param [String] application_id
93
87
  # Application Id
94
88
  # @param [Fixnum] max_results
95
- # Maximum number of results to return
96
89
  # @param [String] start_token
97
- # Pagination token
98
90
  # @param [Fixnum] timestamp
99
91
  # Timestamp in milliseconds since epoch
100
92
  # @param [String] fields
101
93
  # Selector specifying which fields to include in a partial response.
102
94
  # @param [String] quota_user
103
- # An opaque string that represents a user for quota purposes. Must not exceed 40
104
- # characters.
105
- # @param [String] user_ip
106
- # Deprecated. Please use quotaUser instead.
95
+ # Available to use for quota purposes for server-side applications. Can be any
96
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
107
97
  # @param [Google::Apis::RequestOptions] options
108
98
  # Request-specific options
109
99
  #
@@ -116,8 +106,8 @@ module Google
116
106
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
117
107
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
118
108
  # @raise [Google::Apis::AuthorizationError] Authorization is required
119
- def list_license_notifications(application_id, max_results: nil, start_token: nil, timestamp: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
120
- command = make_simple_command(:get, 'licenseNotification/{applicationId}', options)
109
+ def list_license_notifications(application_id, max_results: nil, start_token: nil, timestamp: nil, fields: nil, quota_user: nil, options: nil, &block)
110
+ command = make_simple_command(:get, 'appsmarket/v2/licenseNotification/{applicationId}', options)
121
111
  command.response_representation = Google::Apis::AppsmarketV2::LicenseNotificationList::Representation
122
112
  command.response_class = Google::Apis::AppsmarketV2::LicenseNotificationList
123
113
  command.params['applicationId'] = application_id unless application_id.nil?
@@ -126,11 +116,10 @@ module Google
126
116
  command.query['timestamp'] = timestamp unless timestamp.nil?
127
117
  command.query['fields'] = fields unless fields.nil?
128
118
  command.query['quotaUser'] = quota_user unless quota_user.nil?
129
- command.query['userIp'] = user_ip unless user_ip.nil?
130
119
  execute_or_queue_command(command, &block)
131
120
  end
132
121
 
133
- #
122
+ # Get the user's licensing status for their permission to use a given app.
134
123
  # @param [String] application_id
135
124
  # Application Id
136
125
  # @param [String] user_id
@@ -138,10 +127,8 @@ module Google
138
127
  # @param [String] fields
139
128
  # Selector specifying which fields to include in a partial response.
140
129
  # @param [String] quota_user
141
- # An opaque string that represents a user for quota purposes. Must not exceed 40
142
- # characters.
143
- # @param [String] user_ip
144
- # Deprecated. Please use quotaUser instead.
130
+ # Available to use for quota purposes for server-side applications. Can be any
131
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
145
132
  # @param [Google::Apis::RequestOptions] options
146
133
  # Request-specific options
147
134
  #
@@ -154,15 +141,14 @@ module Google
154
141
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
155
142
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
156
143
  # @raise [Google::Apis::AuthorizationError] Authorization is required
157
- def get_user_license(application_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
158
- command = make_simple_command(:get, 'userLicense/{applicationId}/{userId}', options)
144
+ def get_user_license(application_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
145
+ command = make_simple_command(:get, 'appsmarket/v2/userLicense/{applicationId}/{userId}', options)
159
146
  command.response_representation = Google::Apis::AppsmarketV2::UserLicense::Representation
160
147
  command.response_class = Google::Apis::AppsmarketV2::UserLicense
161
148
  command.params['applicationId'] = application_id unless application_id.nil?
162
149
  command.params['userId'] = user_id unless user_id.nil?
163
150
  command.query['fields'] = fields unless fields.nil?
164
151
  command.query['quotaUser'] = quota_user unless quota_user.nil?
165
- command.query['userIp'] = user_ip unless user_ip.nil?
166
152
  execute_or_queue_command(command, &block)
167
153
  end
168
154
 
@@ -171,7 +157,6 @@ module Google
171
157
  def apply_command_defaults(command)
172
158
  command.query['key'] = key unless key.nil?
173
159
  command.query['quotaUser'] = quota_user unless quota_user.nil?
174
- command.query['userIp'] = user_ip unless user_ip.nil?
175
160
  end
176
161
  end
177
162
  end
@@ -0,0 +1,38 @@
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/artifactregistry_v1beta1/service.rb'
16
+ require 'google/apis/artifactregistry_v1beta1/classes.rb'
17
+ require 'google/apis/artifactregistry_v1beta1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Artifact Registry API
22
+ #
23
+ # Store and manage build artifacts in a scalable and integrated service built on
24
+ # Google infrastructure.
25
+ #
26
+ # @see https://cloud.google.com/artifacts/docs/
27
+ module ArtifactregistryV1beta1
28
+ VERSION = 'V1beta1'
29
+ REVISION = '20200508'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+
34
+ # View your data across Google Cloud Platform services
35
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,1010 @@
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
+ # Associates `members` with a `role`.
26
+ class Binding
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Represents a textual expression in the Common Expression Language (CEL)
30
+ # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
31
+ # are documented at https://github.com/google/cel-spec.
32
+ # Example (Comparison):
33
+ # title: "Summary size limit"
34
+ # description: "Determines if a summary is less than 100 chars"
35
+ # expression: "document.summary.size() < 100"
36
+ # Example (Equality):
37
+ # title: "Requestor is owner"
38
+ # description: "Determines if requestor is the document owner"
39
+ # expression: "document.owner == request.auth.claims.email"
40
+ # Example (Logic):
41
+ # title: "Public documents"
42
+ # description: "Determine whether the document should be publicly visible"
43
+ # expression: "document.type != 'private' && document.type != 'internal'"
44
+ # Example (Data Manipulation):
45
+ # title: "Notification string"
46
+ # description: "Create a notification string with a timestamp."
47
+ # expression: "'New message received at ' + string(document.create_time)"
48
+ # The exact variables and functions that may be referenced within an expression
49
+ # are determined by the service that evaluates it. See the service
50
+ # documentation for additional information.
51
+ # Corresponds to the JSON property `condition`
52
+ # @return [Google::Apis::ArtifactregistryV1beta1::Expr]
53
+ attr_accessor :condition
54
+
55
+ # Specifies the identities requesting access for a Cloud Platform resource.
56
+ # `members` can have the following values:
57
+ # * `allUsers`: A special identifier that represents anyone who is
58
+ # on the internet; with or without a Google account.
59
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
60
+ # who is authenticated with a Google account or a service account.
61
+ # * `user:`emailid``: An email address that represents a specific Google
62
+ # account. For example, `alice@example.com` .
63
+ # * `serviceAccount:`emailid``: An email address that represents a service
64
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
65
+ # * `group:`emailid``: An email address that represents a Google group.
66
+ # For example, `admins@example.com`.
67
+ # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
68
+ # identifier) representing a user that has been recently deleted. For
69
+ # example, `alice@example.com?uid=123456789012345678901`. If the user is
70
+ # recovered, this value reverts to `user:`emailid`` and the recovered user
71
+ # retains the role in the binding.
72
+ # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
73
+ # unique identifier) representing a service account that has been recently
74
+ # deleted. For example,
75
+ # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
76
+ # If the service account is undeleted, this value reverts to
77
+ # `serviceAccount:`emailid`` and the undeleted service account retains the
78
+ # role in the binding.
79
+ # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
80
+ # identifier) representing a Google group that has been recently
81
+ # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
82
+ # the group is recovered, this value reverts to `group:`emailid`` and the
83
+ # recovered group retains the role in the binding.
84
+ # * `domain:`domain``: The G Suite domain (primary) that represents all the
85
+ # users of that domain. For example, `google.com` or `example.com`.
86
+ # Corresponds to the JSON property `members`
87
+ # @return [Array<String>]
88
+ attr_accessor :members
89
+
90
+ # Role that is assigned to `members`.
91
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
92
+ # Corresponds to the JSON property `role`
93
+ # @return [String]
94
+ attr_accessor :role
95
+
96
+ def initialize(**args)
97
+ update!(**args)
98
+ end
99
+
100
+ # Update properties of this object
101
+ def update!(**args)
102
+ @condition = args[:condition] if args.key?(:condition)
103
+ @members = args[:members] if args.key?(:members)
104
+ @role = args[:role] if args.key?(:role)
105
+ end
106
+ end
107
+
108
+ # A generic empty message that you can re-use to avoid defining duplicated
109
+ # empty messages in your APIs. A typical example is to use it as the request
110
+ # or the response type of an API method. For instance:
111
+ # service Foo `
112
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
113
+ # `
114
+ # The JSON representation for `Empty` is empty JSON object ````.
115
+ class Empty
116
+ include Google::Apis::Core::Hashable
117
+
118
+ def initialize(**args)
119
+ update!(**args)
120
+ end
121
+
122
+ # Update properties of this object
123
+ def update!(**args)
124
+ end
125
+ end
126
+
127
+ # Represents a textual expression in the Common Expression Language (CEL)
128
+ # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
129
+ # are documented at https://github.com/google/cel-spec.
130
+ # Example (Comparison):
131
+ # title: "Summary size limit"
132
+ # description: "Determines if a summary is less than 100 chars"
133
+ # expression: "document.summary.size() < 100"
134
+ # Example (Equality):
135
+ # title: "Requestor is owner"
136
+ # description: "Determines if requestor is the document owner"
137
+ # expression: "document.owner == request.auth.claims.email"
138
+ # Example (Logic):
139
+ # title: "Public documents"
140
+ # description: "Determine whether the document should be publicly visible"
141
+ # expression: "document.type != 'private' && document.type != 'internal'"
142
+ # Example (Data Manipulation):
143
+ # title: "Notification string"
144
+ # description: "Create a notification string with a timestamp."
145
+ # expression: "'New message received at ' + string(document.create_time)"
146
+ # The exact variables and functions that may be referenced within an expression
147
+ # are determined by the service that evaluates it. See the service
148
+ # documentation for additional information.
149
+ class Expr
150
+ include Google::Apis::Core::Hashable
151
+
152
+ # Optional. Description of the expression. This is a longer text which
153
+ # describes the expression, e.g. when hovered over it in a UI.
154
+ # Corresponds to the JSON property `description`
155
+ # @return [String]
156
+ attr_accessor :description
157
+
158
+ # Textual representation of an expression in Common Expression Language
159
+ # syntax.
160
+ # Corresponds to the JSON property `expression`
161
+ # @return [String]
162
+ attr_accessor :expression
163
+
164
+ # Optional. String indicating the location of the expression for error
165
+ # reporting, e.g. a file name and a position in the file.
166
+ # Corresponds to the JSON property `location`
167
+ # @return [String]
168
+ attr_accessor :location
169
+
170
+ # Optional. Title for the expression, i.e. a short string describing
171
+ # its purpose. This can be used e.g. in UIs which allow to enter the
172
+ # expression.
173
+ # Corresponds to the JSON property `title`
174
+ # @return [String]
175
+ attr_accessor :title
176
+
177
+ def initialize(**args)
178
+ update!(**args)
179
+ end
180
+
181
+ # Update properties of this object
182
+ def update!(**args)
183
+ @description = args[:description] if args.key?(:description)
184
+ @expression = args[:expression] if args.key?(:expression)
185
+ @location = args[:location] if args.key?(:location)
186
+ @title = args[:title] if args.key?(:title)
187
+ end
188
+ end
189
+
190
+ # Files store content that is potentially associated with Packages or Versions.
191
+ class File
192
+ include Google::Apis::Core::Hashable
193
+
194
+ # The time when the File was created.
195
+ # Corresponds to the JSON property `createTime`
196
+ # @return [String]
197
+ attr_accessor :create_time
198
+
199
+ # The hashes of the file content.
200
+ # Corresponds to the JSON property `hashes`
201
+ # @return [Array<Google::Apis::ArtifactregistryV1beta1::HashProp>]
202
+ attr_accessor :hashes
203
+
204
+ # The name of the file, for example:
205
+ # "projects/p1/locations/us-central1/repositories/repo1/files/a/b/c.txt".
206
+ # Corresponds to the JSON property `name`
207
+ # @return [String]
208
+ attr_accessor :name
209
+
210
+ # The name of the Package or Version that owns this file, if any.
211
+ # Corresponds to the JSON property `owner`
212
+ # @return [String]
213
+ attr_accessor :owner
214
+
215
+ # The size of the File in bytes.
216
+ # Corresponds to the JSON property `sizeBytes`
217
+ # @return [Fixnum]
218
+ attr_accessor :size_bytes
219
+
220
+ # The time when the File was last updated.
221
+ # Corresponds to the JSON property `updateTime`
222
+ # @return [String]
223
+ attr_accessor :update_time
224
+
225
+ def initialize(**args)
226
+ update!(**args)
227
+ end
228
+
229
+ # Update properties of this object
230
+ def update!(**args)
231
+ @create_time = args[:create_time] if args.key?(:create_time)
232
+ @hashes = args[:hashes] if args.key?(:hashes)
233
+ @name = args[:name] if args.key?(:name)
234
+ @owner = args[:owner] if args.key?(:owner)
235
+ @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
236
+ @update_time = args[:update_time] if args.key?(:update_time)
237
+ end
238
+ end
239
+
240
+ # A hash of file content.
241
+ class HashProp
242
+ include Google::Apis::Core::Hashable
243
+
244
+ # The algorithm used to compute the hash value.
245
+ # Corresponds to the JSON property `type`
246
+ # @return [String]
247
+ attr_accessor :type
248
+
249
+ # The hash value.
250
+ # Corresponds to the JSON property `value`
251
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
252
+ # @return [String]
253
+ attr_accessor :value
254
+
255
+ def initialize(**args)
256
+ update!(**args)
257
+ end
258
+
259
+ # Update properties of this object
260
+ def update!(**args)
261
+ @type = args[:type] if args.key?(:type)
262
+ @value = args[:value] if args.key?(:value)
263
+ end
264
+ end
265
+
266
+ # The response from listing files.
267
+ class ListFilesResponse
268
+ include Google::Apis::Core::Hashable
269
+
270
+ # The files returned.
271
+ # Corresponds to the JSON property `files`
272
+ # @return [Array<Google::Apis::ArtifactregistryV1beta1::File>]
273
+ attr_accessor :files
274
+
275
+ # The token to retrieve the next page of files, or empty if there are no
276
+ # more files to return.
277
+ # Corresponds to the JSON property `nextPageToken`
278
+ # @return [String]
279
+ attr_accessor :next_page_token
280
+
281
+ def initialize(**args)
282
+ update!(**args)
283
+ end
284
+
285
+ # Update properties of this object
286
+ def update!(**args)
287
+ @files = args[:files] if args.key?(:files)
288
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
289
+ end
290
+ end
291
+
292
+ # The response message for Locations.ListLocations.
293
+ class ListLocationsResponse
294
+ include Google::Apis::Core::Hashable
295
+
296
+ # A list of locations that matches the specified filter in the request.
297
+ # Corresponds to the JSON property `locations`
298
+ # @return [Array<Google::Apis::ArtifactregistryV1beta1::Location>]
299
+ attr_accessor :locations
300
+
301
+ # The standard List next-page token.
302
+ # Corresponds to the JSON property `nextPageToken`
303
+ # @return [String]
304
+ attr_accessor :next_page_token
305
+
306
+ def initialize(**args)
307
+ update!(**args)
308
+ end
309
+
310
+ # Update properties of this object
311
+ def update!(**args)
312
+ @locations = args[:locations] if args.key?(:locations)
313
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
314
+ end
315
+ end
316
+
317
+ # The response message for Operations.ListOperations.
318
+ class ListOperationsResponse
319
+ include Google::Apis::Core::Hashable
320
+
321
+ # The standard List next-page token.
322
+ # Corresponds to the JSON property `nextPageToken`
323
+ # @return [String]
324
+ attr_accessor :next_page_token
325
+
326
+ # A list of operations that matches the specified filter in the request.
327
+ # Corresponds to the JSON property `operations`
328
+ # @return [Array<Google::Apis::ArtifactregistryV1beta1::Operation>]
329
+ attr_accessor :operations
330
+
331
+ def initialize(**args)
332
+ update!(**args)
333
+ end
334
+
335
+ # Update properties of this object
336
+ def update!(**args)
337
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
338
+ @operations = args[:operations] if args.key?(:operations)
339
+ end
340
+ end
341
+
342
+ # The response from listing packages.
343
+ class ListPackagesResponse
344
+ include Google::Apis::Core::Hashable
345
+
346
+ # The token to retrieve the next page of packages, or empty if there are no
347
+ # more packages to return.
348
+ # Corresponds to the JSON property `nextPageToken`
349
+ # @return [String]
350
+ attr_accessor :next_page_token
351
+
352
+ # The packages returned.
353
+ # Corresponds to the JSON property `packages`
354
+ # @return [Array<Google::Apis::ArtifactregistryV1beta1::Package>]
355
+ attr_accessor :packages
356
+
357
+ def initialize(**args)
358
+ update!(**args)
359
+ end
360
+
361
+ # Update properties of this object
362
+ def update!(**args)
363
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
364
+ @packages = args[:packages] if args.key?(:packages)
365
+ end
366
+ end
367
+
368
+ # The response from listing repositories.
369
+ class ListRepositoriesResponse
370
+ include Google::Apis::Core::Hashable
371
+
372
+ # The token to retrieve the next page of repositories, or empty if there are
373
+ # no more repositories to return.
374
+ # Corresponds to the JSON property `nextPageToken`
375
+ # @return [String]
376
+ attr_accessor :next_page_token
377
+
378
+ # The repositories returned.
379
+ # Corresponds to the JSON property `repositories`
380
+ # @return [Array<Google::Apis::ArtifactregistryV1beta1::Repository>]
381
+ attr_accessor :repositories
382
+
383
+ def initialize(**args)
384
+ update!(**args)
385
+ end
386
+
387
+ # Update properties of this object
388
+ def update!(**args)
389
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
390
+ @repositories = args[:repositories] if args.key?(:repositories)
391
+ end
392
+ end
393
+
394
+ # The response from listing tags.
395
+ class ListTagsResponse
396
+ include Google::Apis::Core::Hashable
397
+
398
+ # The token to retrieve the next page of tags, or empty if there are no
399
+ # more tags to return.
400
+ # Corresponds to the JSON property `nextPageToken`
401
+ # @return [String]
402
+ attr_accessor :next_page_token
403
+
404
+ # The tags returned.
405
+ # Corresponds to the JSON property `tags`
406
+ # @return [Array<Google::Apis::ArtifactregistryV1beta1::Tag>]
407
+ attr_accessor :tags
408
+
409
+ def initialize(**args)
410
+ update!(**args)
411
+ end
412
+
413
+ # Update properties of this object
414
+ def update!(**args)
415
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
416
+ @tags = args[:tags] if args.key?(:tags)
417
+ end
418
+ end
419
+
420
+ # The response from listing versions.
421
+ class ListVersionsResponse
422
+ include Google::Apis::Core::Hashable
423
+
424
+ # The token to retrieve the next page of versions, or empty if there are no
425
+ # more versions to return.
426
+ # Corresponds to the JSON property `nextPageToken`
427
+ # @return [String]
428
+ attr_accessor :next_page_token
429
+
430
+ # The versions returned.
431
+ # Corresponds to the JSON property `versions`
432
+ # @return [Array<Google::Apis::ArtifactregistryV1beta1::Version>]
433
+ attr_accessor :versions
434
+
435
+ def initialize(**args)
436
+ update!(**args)
437
+ end
438
+
439
+ # Update properties of this object
440
+ def update!(**args)
441
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
442
+ @versions = args[:versions] if args.key?(:versions)
443
+ end
444
+ end
445
+
446
+ # A resource that represents Google Cloud Platform location.
447
+ class Location
448
+ include Google::Apis::Core::Hashable
449
+
450
+ # The friendly name for this location, typically a nearby city name.
451
+ # For example, "Tokyo".
452
+ # Corresponds to the JSON property `displayName`
453
+ # @return [String]
454
+ attr_accessor :display_name
455
+
456
+ # Cross-service attributes for the location. For example
457
+ # `"cloud.googleapis.com/region": "us-east1"`
458
+ # Corresponds to the JSON property `labels`
459
+ # @return [Hash<String,String>]
460
+ attr_accessor :labels
461
+
462
+ # The canonical id for this location. For example: `"us-east1"`.
463
+ # Corresponds to the JSON property `locationId`
464
+ # @return [String]
465
+ attr_accessor :location_id
466
+
467
+ # Service-specific metadata. For example the available capacity at the given
468
+ # location.
469
+ # Corresponds to the JSON property `metadata`
470
+ # @return [Hash<String,Object>]
471
+ attr_accessor :metadata
472
+
473
+ # Resource name for the location, which may vary between implementations.
474
+ # For example: `"projects/example-project/locations/us-east1"`
475
+ # Corresponds to the JSON property `name`
476
+ # @return [String]
477
+ attr_accessor :name
478
+
479
+ def initialize(**args)
480
+ update!(**args)
481
+ end
482
+
483
+ # Update properties of this object
484
+ def update!(**args)
485
+ @display_name = args[:display_name] if args.key?(:display_name)
486
+ @labels = args[:labels] if args.key?(:labels)
487
+ @location_id = args[:location_id] if args.key?(:location_id)
488
+ @metadata = args[:metadata] if args.key?(:metadata)
489
+ @name = args[:name] if args.key?(:name)
490
+ end
491
+ end
492
+
493
+ # This resource represents a long-running operation that is the result of a
494
+ # network API call.
495
+ class Operation
496
+ include Google::Apis::Core::Hashable
497
+
498
+ # If the value is `false`, it means the operation is still in progress.
499
+ # If `true`, the operation is completed, and either `error` or `response` is
500
+ # available.
501
+ # Corresponds to the JSON property `done`
502
+ # @return [Boolean]
503
+ attr_accessor :done
504
+ alias_method :done?, :done
505
+
506
+ # The `Status` type defines a logical error model that is suitable for
507
+ # different programming environments, including REST APIs and RPC APIs. It is
508
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
509
+ # three pieces of data: error code, error message, and error details.
510
+ # You can find out more about this error model and how to work with it in the
511
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
512
+ # Corresponds to the JSON property `error`
513
+ # @return [Google::Apis::ArtifactregistryV1beta1::Status]
514
+ attr_accessor :error
515
+
516
+ # Service-specific metadata associated with the operation. It typically
517
+ # contains progress information and common metadata such as create time.
518
+ # Some services might not provide such metadata. Any method that returns a
519
+ # long-running operation should document the metadata type, if any.
520
+ # Corresponds to the JSON property `metadata`
521
+ # @return [Hash<String,Object>]
522
+ attr_accessor :metadata
523
+
524
+ # The server-assigned name, which is only unique within the same service that
525
+ # originally returns it. If you use the default HTTP mapping, the
526
+ # `name` should be a resource name ending with `operations/`unique_id``.
527
+ # Corresponds to the JSON property `name`
528
+ # @return [String]
529
+ attr_accessor :name
530
+
531
+ # The normal response of the operation in case of success. If the original
532
+ # method returns no data on success, such as `Delete`, the response is
533
+ # `google.protobuf.Empty`. If the original method is standard
534
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
535
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
536
+ # is the original method name. For example, if the original method name
537
+ # is `TakeSnapshot()`, the inferred response type is
538
+ # `TakeSnapshotResponse`.
539
+ # Corresponds to the JSON property `response`
540
+ # @return [Hash<String,Object>]
541
+ attr_accessor :response
542
+
543
+ def initialize(**args)
544
+ update!(**args)
545
+ end
546
+
547
+ # Update properties of this object
548
+ def update!(**args)
549
+ @done = args[:done] if args.key?(:done)
550
+ @error = args[:error] if args.key?(:error)
551
+ @metadata = args[:metadata] if args.key?(:metadata)
552
+ @name = args[:name] if args.key?(:name)
553
+ @response = args[:response] if args.key?(:response)
554
+ end
555
+ end
556
+
557
+ # Packages are named collections of versions.
558
+ class Package
559
+ include Google::Apis::Core::Hashable
560
+
561
+ # The time when the package was created.
562
+ # Corresponds to the JSON property `createTime`
563
+ # @return [String]
564
+ attr_accessor :create_time
565
+
566
+ # The display name of the package.
567
+ # Corresponds to the JSON property `displayName`
568
+ # @return [String]
569
+ attr_accessor :display_name
570
+
571
+ # The name of the package, for example:
572
+ # "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1".
573
+ # Corresponds to the JSON property `name`
574
+ # @return [String]
575
+ attr_accessor :name
576
+
577
+ # The time when the package was last updated. This includes publishing a new
578
+ # version of the package.
579
+ # Corresponds to the JSON property `updateTime`
580
+ # @return [String]
581
+ attr_accessor :update_time
582
+
583
+ def initialize(**args)
584
+ update!(**args)
585
+ end
586
+
587
+ # Update properties of this object
588
+ def update!(**args)
589
+ @create_time = args[:create_time] if args.key?(:create_time)
590
+ @display_name = args[:display_name] if args.key?(:display_name)
591
+ @name = args[:name] if args.key?(:name)
592
+ @update_time = args[:update_time] if args.key?(:update_time)
593
+ end
594
+ end
595
+
596
+ # An Identity and Access Management (IAM) policy, which specifies access
597
+ # controls for Google Cloud resources.
598
+ # A `Policy` is a collection of `bindings`. A `binding` binds one or more
599
+ # `members` to a single `role`. Members can be user accounts, service accounts,
600
+ # Google groups, and domains (such as G Suite). A `role` is a named list of
601
+ # permissions; each `role` can be an IAM predefined role or a user-created
602
+ # custom role.
603
+ # For some types of Google Cloud resources, a `binding` can also specify a
604
+ # `condition`, which is a logical expression that allows access to a resource
605
+ # only if the expression evaluates to `true`. A condition can add constraints
606
+ # based on attributes of the request, the resource, or both. To learn which
607
+ # resources support conditions in their IAM policies, see the
608
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
609
+ # policies).
610
+ # **JSON example:**
611
+ # `
612
+ # "bindings": [
613
+ # `
614
+ # "role": "roles/resourcemanager.organizationAdmin",
615
+ # "members": [
616
+ # "user:mike@example.com",
617
+ # "group:admins@example.com",
618
+ # "domain:google.com",
619
+ # "serviceAccount:my-project-id@appspot.gserviceaccount.com"
620
+ # ]
621
+ # `,
622
+ # `
623
+ # "role": "roles/resourcemanager.organizationViewer",
624
+ # "members": [
625
+ # "user:eve@example.com"
626
+ # ],
627
+ # "condition": `
628
+ # "title": "expirable access",
629
+ # "description": "Does not grant access after Sep 2020",
630
+ # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
631
+ # ",
632
+ # `
633
+ # `
634
+ # ],
635
+ # "etag": "BwWWja0YfJA=",
636
+ # "version": 3
637
+ # `
638
+ # **YAML example:**
639
+ # bindings:
640
+ # - members:
641
+ # - user:mike@example.com
642
+ # - group:admins@example.com
643
+ # - domain:google.com
644
+ # - serviceAccount:my-project-id@appspot.gserviceaccount.com
645
+ # role: roles/resourcemanager.organizationAdmin
646
+ # - members:
647
+ # - user:eve@example.com
648
+ # role: roles/resourcemanager.organizationViewer
649
+ # condition:
650
+ # title: expirable access
651
+ # description: Does not grant access after Sep 2020
652
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
653
+ # - etag: BwWWja0YfJA=
654
+ # - version: 3
655
+ # For a description of IAM and its features, see the
656
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
657
+ class Policy
658
+ include Google::Apis::Core::Hashable
659
+
660
+ # Associates a list of `members` to a `role`. Optionally, may specify a
661
+ # `condition` that determines how and when the `bindings` are applied. Each
662
+ # of the `bindings` must contain at least one member.
663
+ # Corresponds to the JSON property `bindings`
664
+ # @return [Array<Google::Apis::ArtifactregistryV1beta1::Binding>]
665
+ attr_accessor :bindings
666
+
667
+ # `etag` is used for optimistic concurrency control as a way to help
668
+ # prevent simultaneous updates of a policy from overwriting each other.
669
+ # It is strongly suggested that systems make use of the `etag` in the
670
+ # read-modify-write cycle to perform policy updates in order to avoid race
671
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
672
+ # systems are expected to put that etag in the request to `setIamPolicy` to
673
+ # ensure that their change will be applied to the same version of the policy.
674
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
675
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
676
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
677
+ # the conditions in the version `3` policy are lost.
678
+ # Corresponds to the JSON property `etag`
679
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
680
+ # @return [String]
681
+ attr_accessor :etag
682
+
683
+ # Specifies the format of the policy.
684
+ # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
685
+ # are rejected.
686
+ # Any operation that affects conditional role bindings must specify version
687
+ # `3`. This requirement applies to the following operations:
688
+ # * Getting a policy that includes a conditional role binding
689
+ # * Adding a conditional role binding to a policy
690
+ # * Changing a conditional role binding in a policy
691
+ # * Removing any role binding, with or without a condition, from a policy
692
+ # that includes conditions
693
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
694
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
695
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
696
+ # the conditions in the version `3` policy are lost.
697
+ # If a policy does not include any conditions, operations on that policy may
698
+ # specify any valid version or leave the field unset.
699
+ # To learn which resources support conditions in their IAM policies, see the
700
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
701
+ # policies).
702
+ # Corresponds to the JSON property `version`
703
+ # @return [Fixnum]
704
+ attr_accessor :version
705
+
706
+ def initialize(**args)
707
+ update!(**args)
708
+ end
709
+
710
+ # Update properties of this object
711
+ def update!(**args)
712
+ @bindings = args[:bindings] if args.key?(:bindings)
713
+ @etag = args[:etag] if args.key?(:etag)
714
+ @version = args[:version] if args.key?(:version)
715
+ end
716
+ end
717
+
718
+ # A Repository for storing artifacts with a specific format.
719
+ class Repository
720
+ include Google::Apis::Core::Hashable
721
+
722
+ # The time when the repository was created.
723
+ # Corresponds to the JSON property `createTime`
724
+ # @return [String]
725
+ attr_accessor :create_time
726
+
727
+ # The user-provided description of the repository.
728
+ # Corresponds to the JSON property `description`
729
+ # @return [String]
730
+ attr_accessor :description
731
+
732
+ # The format of packages that are stored in the repository.
733
+ # Corresponds to the JSON property `format`
734
+ # @return [String]
735
+ attr_accessor :format
736
+
737
+ # Labels with user-defined metadata.
738
+ # This field may contain up to 64 entries. Label keys and values may be no
739
+ # longer than 63 characters. Label keys must begin with a lowercase letter
740
+ # and may only contain lowercase letters, numeric characters, underscores,
741
+ # and dashes.
742
+ # Corresponds to the JSON property `labels`
743
+ # @return [Hash<String,String>]
744
+ attr_accessor :labels
745
+
746
+ # The name of the repository, for example:
747
+ # "projects/p1/locations/us-central1/repositories/repo1".
748
+ # Corresponds to the JSON property `name`
749
+ # @return [String]
750
+ attr_accessor :name
751
+
752
+ # The time when the repository was last updated.
753
+ # Corresponds to the JSON property `updateTime`
754
+ # @return [String]
755
+ attr_accessor :update_time
756
+
757
+ def initialize(**args)
758
+ update!(**args)
759
+ end
760
+
761
+ # Update properties of this object
762
+ def update!(**args)
763
+ @create_time = args[:create_time] if args.key?(:create_time)
764
+ @description = args[:description] if args.key?(:description)
765
+ @format = args[:format] if args.key?(:format)
766
+ @labels = args[:labels] if args.key?(:labels)
767
+ @name = args[:name] if args.key?(:name)
768
+ @update_time = args[:update_time] if args.key?(:update_time)
769
+ end
770
+ end
771
+
772
+ # Request message for `SetIamPolicy` method.
773
+ class SetIamPolicyRequest
774
+ include Google::Apis::Core::Hashable
775
+
776
+ # An Identity and Access Management (IAM) policy, which specifies access
777
+ # controls for Google Cloud resources.
778
+ # A `Policy` is a collection of `bindings`. A `binding` binds one or more
779
+ # `members` to a single `role`. Members can be user accounts, service accounts,
780
+ # Google groups, and domains (such as G Suite). A `role` is a named list of
781
+ # permissions; each `role` can be an IAM predefined role or a user-created
782
+ # custom role.
783
+ # For some types of Google Cloud resources, a `binding` can also specify a
784
+ # `condition`, which is a logical expression that allows access to a resource
785
+ # only if the expression evaluates to `true`. A condition can add constraints
786
+ # based on attributes of the request, the resource, or both. To learn which
787
+ # resources support conditions in their IAM policies, see the
788
+ # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
789
+ # policies).
790
+ # **JSON example:**
791
+ # `
792
+ # "bindings": [
793
+ # `
794
+ # "role": "roles/resourcemanager.organizationAdmin",
795
+ # "members": [
796
+ # "user:mike@example.com",
797
+ # "group:admins@example.com",
798
+ # "domain:google.com",
799
+ # "serviceAccount:my-project-id@appspot.gserviceaccount.com"
800
+ # ]
801
+ # `,
802
+ # `
803
+ # "role": "roles/resourcemanager.organizationViewer",
804
+ # "members": [
805
+ # "user:eve@example.com"
806
+ # ],
807
+ # "condition": `
808
+ # "title": "expirable access",
809
+ # "description": "Does not grant access after Sep 2020",
810
+ # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
811
+ # ",
812
+ # `
813
+ # `
814
+ # ],
815
+ # "etag": "BwWWja0YfJA=",
816
+ # "version": 3
817
+ # `
818
+ # **YAML example:**
819
+ # bindings:
820
+ # - members:
821
+ # - user:mike@example.com
822
+ # - group:admins@example.com
823
+ # - domain:google.com
824
+ # - serviceAccount:my-project-id@appspot.gserviceaccount.com
825
+ # role: roles/resourcemanager.organizationAdmin
826
+ # - members:
827
+ # - user:eve@example.com
828
+ # role: roles/resourcemanager.organizationViewer
829
+ # condition:
830
+ # title: expirable access
831
+ # description: Does not grant access after Sep 2020
832
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
833
+ # - etag: BwWWja0YfJA=
834
+ # - version: 3
835
+ # For a description of IAM and its features, see the
836
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
837
+ # Corresponds to the JSON property `policy`
838
+ # @return [Google::Apis::ArtifactregistryV1beta1::Policy]
839
+ attr_accessor :policy
840
+
841
+ def initialize(**args)
842
+ update!(**args)
843
+ end
844
+
845
+ # Update properties of this object
846
+ def update!(**args)
847
+ @policy = args[:policy] if args.key?(:policy)
848
+ end
849
+ end
850
+
851
+ # The `Status` type defines a logical error model that is suitable for
852
+ # different programming environments, including REST APIs and RPC APIs. It is
853
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
854
+ # three pieces of data: error code, error message, and error details.
855
+ # You can find out more about this error model and how to work with it in the
856
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
857
+ class Status
858
+ include Google::Apis::Core::Hashable
859
+
860
+ # The status code, which should be an enum value of google.rpc.Code.
861
+ # Corresponds to the JSON property `code`
862
+ # @return [Fixnum]
863
+ attr_accessor :code
864
+
865
+ # A list of messages that carry the error details. There is a common set of
866
+ # message types for APIs to use.
867
+ # Corresponds to the JSON property `details`
868
+ # @return [Array<Hash<String,Object>>]
869
+ attr_accessor :details
870
+
871
+ # A developer-facing error message, which should be in English. Any
872
+ # user-facing error message should be localized and sent in the
873
+ # google.rpc.Status.details field, or localized by the client.
874
+ # Corresponds to the JSON property `message`
875
+ # @return [String]
876
+ attr_accessor :message
877
+
878
+ def initialize(**args)
879
+ update!(**args)
880
+ end
881
+
882
+ # Update properties of this object
883
+ def update!(**args)
884
+ @code = args[:code] if args.key?(:code)
885
+ @details = args[:details] if args.key?(:details)
886
+ @message = args[:message] if args.key?(:message)
887
+ end
888
+ end
889
+
890
+ # Tags point to a version and represent an alternative name that can be used
891
+ # to access the version.
892
+ class Tag
893
+ include Google::Apis::Core::Hashable
894
+
895
+ # The name of the tag, for example:
896
+ # "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1".
897
+ # Corresponds to the JSON property `name`
898
+ # @return [String]
899
+ attr_accessor :name
900
+
901
+ # The name of the version the tag refers to, for example:
902
+ # "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/
903
+ # sha256:5243811"
904
+ # Corresponds to the JSON property `version`
905
+ # @return [String]
906
+ attr_accessor :version
907
+
908
+ def initialize(**args)
909
+ update!(**args)
910
+ end
911
+
912
+ # Update properties of this object
913
+ def update!(**args)
914
+ @name = args[:name] if args.key?(:name)
915
+ @version = args[:version] if args.key?(:version)
916
+ end
917
+ end
918
+
919
+ # Request message for `TestIamPermissions` method.
920
+ class TestIamPermissionsRequest
921
+ include Google::Apis::Core::Hashable
922
+
923
+ # The set of permissions to check for the `resource`. Permissions with
924
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
925
+ # information see
926
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
927
+ # Corresponds to the JSON property `permissions`
928
+ # @return [Array<String>]
929
+ attr_accessor :permissions
930
+
931
+ def initialize(**args)
932
+ update!(**args)
933
+ end
934
+
935
+ # Update properties of this object
936
+ def update!(**args)
937
+ @permissions = args[:permissions] if args.key?(:permissions)
938
+ end
939
+ end
940
+
941
+ # Response message for `TestIamPermissions` method.
942
+ class TestIamPermissionsResponse
943
+ include Google::Apis::Core::Hashable
944
+
945
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
946
+ # allowed.
947
+ # Corresponds to the JSON property `permissions`
948
+ # @return [Array<String>]
949
+ attr_accessor :permissions
950
+
951
+ def initialize(**args)
952
+ update!(**args)
953
+ end
954
+
955
+ # Update properties of this object
956
+ def update!(**args)
957
+ @permissions = args[:permissions] if args.key?(:permissions)
958
+ end
959
+ end
960
+
961
+ # The body of a version resource. A version resource represents a
962
+ # collection of components, such as files and other data. This may correspond
963
+ # to a version in many package management schemes.
964
+ class Version
965
+ include Google::Apis::Core::Hashable
966
+
967
+ # The time when the version was created.
968
+ # Corresponds to the JSON property `createTime`
969
+ # @return [String]
970
+ attr_accessor :create_time
971
+
972
+ # Optional. Description of the version, as specified in its metadata.
973
+ # Corresponds to the JSON property `description`
974
+ # @return [String]
975
+ attr_accessor :description
976
+
977
+ # The name of the version, for example:
978
+ # "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/
979
+ # art1".
980
+ # Corresponds to the JSON property `name`
981
+ # @return [String]
982
+ attr_accessor :name
983
+
984
+ # Output only. A list of related tags. Will contain up to 100 tags that
985
+ # reference this version.
986
+ # Corresponds to the JSON property `relatedTags`
987
+ # @return [Array<Google::Apis::ArtifactregistryV1beta1::Tag>]
988
+ attr_accessor :related_tags
989
+
990
+ # The time when the version was last updated.
991
+ # Corresponds to the JSON property `updateTime`
992
+ # @return [String]
993
+ attr_accessor :update_time
994
+
995
+ def initialize(**args)
996
+ update!(**args)
997
+ end
998
+
999
+ # Update properties of this object
1000
+ def update!(**args)
1001
+ @create_time = args[:create_time] if args.key?(:create_time)
1002
+ @description = args[:description] if args.key?(:description)
1003
+ @name = args[:name] if args.key?(:name)
1004
+ @related_tags = args[:related_tags] if args.key?(:related_tags)
1005
+ @update_time = args[:update_time] if args.key?(:update_time)
1006
+ end
1007
+ end
1008
+ end
1009
+ end
1010
+ end