google-api-client 0.9.pre3 → 0.9.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/monitoring/v2beta2/
26
26
  module CloudmonitoringV2beta2
27
27
  VERSION = 'V2beta2'
28
- REVISION = '20150727'
28
+ REVISION = '20151213'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -79,8 +79,7 @@ module Google
79
79
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
80
  # @raise [Google::Apis::AuthorizationError] Authorization is required
81
81
  def create_metric_descriptor(project, metric_descriptor_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
82
- path = '{project}/metricDescriptors'
83
- command = make_simple_command(:post, path, options)
82
+ command = make_simple_command(:post, '{project}/metricDescriptors', options)
84
83
  command.request_representation = Google::Apis::CloudmonitoringV2beta2::MetricDescriptor::Representation
85
84
  command.request_object = metric_descriptor_object
86
85
  command.response_representation = Google::Apis::CloudmonitoringV2beta2::MetricDescriptor::Representation
@@ -119,8 +118,7 @@ module Google
119
118
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
120
119
  # @raise [Google::Apis::AuthorizationError] Authorization is required
121
120
  def delete_metric_descriptor(project, metric, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
122
- path = '{project}/metricDescriptors/{metric}'
123
- command = make_simple_command(:delete, path, options)
121
+ command = make_simple_command(:delete, '{project}/metricDescriptors/{metric}', options)
124
122
  command.response_representation = Google::Apis::CloudmonitoringV2beta2::DeleteMetricDescriptorResponse::Representation
125
123
  command.response_class = Google::Apis::CloudmonitoringV2beta2::DeleteMetricDescriptorResponse
126
124
  command.params['project'] = project unless project.nil?
@@ -175,8 +173,7 @@ module Google
175
173
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
176
174
  # @raise [Google::Apis::AuthorizationError] Authorization is required
177
175
  def list_metric_descriptors(project, list_metric_descriptors_request_object = nil, count: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
178
- path = '{project}/metricDescriptors'
179
- command = make_simple_command(:get, path, options)
176
+ command = make_simple_command(:get, '{project}/metricDescriptors', options)
180
177
  command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsRequest::Representation
181
178
  command.request_object = list_metric_descriptors_request_object
182
179
  command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsResponse::Representation
@@ -273,8 +270,7 @@ module Google
273
270
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
274
271
  # @raise [Google::Apis::AuthorizationError] Authorization is required
275
272
  def list_timeseries(project, metric, youngest, list_timeseries_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
276
- path = '{project}/timeseries/{metric}'
277
- command = make_simple_command(:get, path, options)
273
+ command = make_simple_command(:get, '{project}/timeseries/{metric}', options)
278
274
  command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesRequest::Representation
279
275
  command.request_object = list_timeseries_request_object
280
276
  command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesResponse::Representation
@@ -328,8 +324,7 @@ module Google
328
324
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
329
325
  # @raise [Google::Apis::AuthorizationError] Authorization is required
330
326
  def write_timeseries(project, write_timeseries_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
331
- path = '{project}/timeseries:write'
332
- command = make_simple_command(:post, path, options)
327
+ command = make_simple_command(:post, '{project}/timeseries:write', options)
333
328
  command.request_representation = Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesRequest::Representation
334
329
  command.request_object = write_timeseries_request_object
335
330
  command.response_representation = Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesResponse::Representation
@@ -423,8 +418,7 @@ module Google
423
418
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
424
419
  # @raise [Google::Apis::AuthorizationError] Authorization is required
425
420
  def list_timeseries_descriptors(project, metric, youngest, list_timeseries_descriptors_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
426
- path = '{project}/timeseriesDescriptors/{metric}'
427
- command = make_simple_command(:get, path, options)
421
+ command = make_simple_command(:get, '{project}/timeseriesDescriptors/{metric}', options)
428
422
  command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsRequest::Representation
429
423
  command.request_object = list_timeseries_descriptors_request_object
430
424
  command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsResponse::Representation
@@ -21,15 +21,18 @@ module Google
21
21
  # Google Cloud Resource Manager API
22
22
  #
23
23
  # The Google Cloud Resource Manager API provides methods for creating, reading,
24
- # and updating of project metadata.
24
+ # and updating project metadata.
25
25
  #
26
26
  # @see https://cloud.google.com/resource-manager
27
27
  module CloudresourcemanagerV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20150729'
29
+ REVISION = '20151211'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
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'
33
36
  end
34
37
  end
35
38
  end
@@ -32,22 +32,21 @@ module Google
32
32
  # @return [String]
33
33
  attr_accessor :project_number
34
34
 
35
- # The unique, user-assigned ID of the project. It must be 6 to 30 lowercase
35
+ # The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase
36
36
  # letters, digits, or hyphens. It must start with a letter. Trailing hyphens are
37
37
  # prohibited. Example: tokyo-rain-123 Read-only after creation.
38
38
  # Corresponds to the JSON property `projectId`
39
39
  # @return [String]
40
40
  attr_accessor :project_id
41
41
 
42
- # The project lifecycle state. Read-only.
42
+ # The Project lifecycle state. Read-only.
43
43
  # Corresponds to the JSON property `lifecycleState`
44
44
  # @return [String]
45
45
  attr_accessor :lifecycle_state
46
46
 
47
- # The user-assigned name of the project. This field is optional and can remain
48
- # unset. Allowed characters are: lowercase and uppercase letters, numbers,
49
- # hyphen, single-quote, double-quote, space, and exclamation point. Example: My
50
- # Project Read-write.
47
+ # The user-assigned name of the Project. It must be 4 to 30 characters. Allowed
48
+ # characters are: lowercase and uppercase letters, numbers, hyphen, single-quote,
49
+ # double-quote, space, and exclamation point. Example: My Project Read-write.
51
50
  # Corresponds to the JSON property `name`
52
51
  # @return [String]
53
52
  attr_accessor :name
@@ -57,7 +56,7 @@ module Google
57
56
  # @return [String]
58
57
  attr_accessor :create_time
59
58
 
60
- # The labels associated with this project. Label keys must be between 1 and 63
59
+ # The labels associated with this Project. Label keys must be between 1 and 63
61
60
  # characters long and must conform to the following regular expression: \[a-z\](\
62
61
  # [-a-z0-9\]*\[a-z0-9\])?. Label values must be between 0 and 63 characters long
63
62
  # and must conform to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
@@ -69,6 +68,14 @@ module Google
69
68
  # @return [Hash<String,String>]
70
69
  attr_accessor :labels
71
70
 
71
+ # A container to reference an id for any resource type. A `resource` in Google
72
+ # Cloud Platform is a generic term for something you (a developer) may want to
73
+ # interact with through one of our API's. Some examples are an AppEngine app, a
74
+ # Compute Engine instance, a Cloud SQL database, and so on.
75
+ # Corresponds to the JSON property `parent`
76
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
77
+ attr_accessor :parent
78
+
72
79
  def initialize(**args)
73
80
  update!(**args)
74
81
  end
@@ -81,18 +88,47 @@ module Google
81
88
  @name = args[:name] unless args[:name].nil?
82
89
  @create_time = args[:create_time] unless args[:create_time].nil?
83
90
  @labels = args[:labels] unless args[:labels].nil?
91
+ @parent = args[:parent] unless args[:parent].nil?
92
+ end
93
+ end
94
+
95
+ # A container to reference an id for any resource type. A `resource` in Google
96
+ # Cloud Platform is a generic term for something you (a developer) may want to
97
+ # interact with through one of our API's. Some examples are an AppEngine app, a
98
+ # Compute Engine instance, a Cloud SQL database, and so on.
99
+ class ResourceId
100
+ include Google::Apis::Core::Hashable
101
+
102
+ # Required field representing the resource type this id is for. At present, the
103
+ # only valid type is "organization".
104
+ # Corresponds to the JSON property `type`
105
+ # @return [String]
106
+ attr_accessor :type
107
+
108
+ # Required field for the type-specific id. This should correspond to the id used
109
+ # in the type-specific API's.
110
+ # Corresponds to the JSON property `id`
111
+ # @return [String]
112
+ attr_accessor :id
113
+
114
+ def initialize(**args)
115
+ update!(**args)
116
+ end
117
+
118
+ # Update properties of this object
119
+ def update!(**args)
120
+ @type = args[:type] unless args[:type].nil?
121
+ @id = args[:id] unless args[:id].nil?
84
122
  end
85
123
  end
86
124
 
87
- # A page of the response received from the [ListProjects][google.
88
- # cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects] method.
89
- # A paginated response where more pages are available has `next_page_token` set.
90
- # This token can be used in a subsequent request to retrieve the next request
91
- # page.
125
+ # A page of the response received from the ListProjects method. A paginated
126
+ # response where more pages are available has `next_page_token` set. This token
127
+ # can be used in a subsequent request to retrieve the next request page.
92
128
  class ListProjectsResponse
93
129
  include Google::Apis::Core::Hashable
94
130
 
95
- # The list of projects that matched the list filter. This list can be paginated.
131
+ # The list of Projects that matched the list filter. This list can be paginated.
96
132
  # Corresponds to the JSON property `projects`
97
133
  # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Project>]
98
134
  attr_accessor :projects
@@ -102,8 +138,7 @@ module Google
102
138
  # Feeding this value into a new list request with the `page_token` parameter
103
139
  # gives the next page of the results. When `next_page_token` is not filled in,
104
140
  # there is no next page and the list returned is the last page in the result set.
105
- # Pagination tokens have a limited lifetime. Note: pagination is not yet
106
- # supported; the server will not set this field.
141
+ # Pagination tokens have a limited lifetime.
107
142
  # Corresponds to the JSON property `nextPageToken`
108
143
  # @return [String]
109
144
  attr_accessor :next_page_token
@@ -149,41 +184,39 @@ module Google
149
184
  end
150
185
  end
151
186
 
152
- # # Overview The `Policy` defines an access control policy language. It is used
153
- # to define policies that are attached to resources like files, folders, VMs,
154
- # etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding`
155
- # binds a set of members to a role, where the members include user accounts,
156
- # user groups, user domains, and service accounts. A 'role' is a named set of
157
- # permissions, defined by IAM. The definition of a role is outside the policy. A
158
- # permission check first determines the roles that include the specified
159
- # permission, and then determines if the principal specified is a member of a
160
- # binding to at least one of these roles. The membership check is recursive when
161
- # a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": "
162
- # roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com",
163
- # "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts.
164
- # com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` `
165
- # ``
187
+ # Defines an Identity and Access Management (IAM) policy. It is used to specify
188
+ # access control policies for Cloud Platform resources. A `Policy` consists of a
189
+ # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
190
+ # the members can be user accounts, Google groups, Google domains, and service
191
+ # accounts. A `role` is a named list of permissions defined by IAM. **Example** `
192
+ # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
193
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
194
+ # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user:
195
+ # sean@example.com"] ` ] ` For a description of IAM and its features, see the [
196
+ # IAM developer's guide](https://cloud.google.com/iam).
166
197
  class Policy
167
198
  include Google::Apis::Core::Hashable
168
199
 
169
- # The policy language version. The version of the policy is represented by the
170
- # etag. The default version is 0.
200
+ # Version of the `Policy`. The default version is 0.
171
201
  # Corresponds to the JSON property `version`
172
202
  # @return [Fixnum]
173
203
  attr_accessor :version
174
204
 
175
- # It is an error to specify multiple bindings for the same role. It is an error
176
- # to specify a binding with no members.
205
+ # Associates a list of `members` to a `role`. Multiple `bindings` must not be
206
+ # specified for the same `role`. `bindings` with no members will result in an
207
+ # error.
177
208
  # Corresponds to the JSON property `bindings`
178
209
  # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
179
210
  attr_accessor :bindings
180
211
 
181
- #
182
- # Corresponds to the JSON property `rules`
183
- # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Rule>]
184
- attr_accessor :rules
185
-
186
- # Can be used to perform a read-modify-write.
212
+ # `etag` is used for optimistic concurrency control as a way to help prevent
213
+ # simultaneous updates of a policy from overwriting each other. It is strongly
214
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
215
+ # to perform policy updates in order to avoid race conditions: An `etag` is
216
+ # returned in the response to `getIamPolicy`, and systems are expected to put
217
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
218
+ # applied to the same version of the policy. If no `etag` is provided in the
219
+ # call to `setIamPolicy`, then the existing policy is overwritten blindly.
187
220
  # Corresponds to the JSON property `etag`
188
221
  # @return [String]
189
222
  attr_accessor :etag
@@ -196,29 +229,32 @@ module Google
196
229
  def update!(**args)
197
230
  @version = args[:version] unless args[:version].nil?
198
231
  @bindings = args[:bindings] unless args[:bindings].nil?
199
- @rules = args[:rules] unless args[:rules].nil?
200
232
  @etag = args[:etag] unless args[:etag].nil?
201
233
  end
202
234
  end
203
235
 
204
- # Associates members with roles. See below for allowed formats of members.
236
+ # Associates `members` with a `role`.
205
237
  class Binding
206
238
  include Google::Apis::Core::Hashable
207
239
 
208
- # The name of the role to which the members should be bound. Examples: "roles/
209
- # viewer", "roles/editor", "roles/owner". Required
240
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
241
+ # , or `roles/owner`. Required
210
242
  # Corresponds to the JSON property `role`
211
243
  # @return [String]
212
244
  attr_accessor :role
213
245
 
214
- # Format of member entries: 1. allUsers Matches any requesting principal (users,
215
- # service accounts or anonymous). 2. allAuthenticatedUsers Matches any
216
- # requesting authenticated principal (users or service accounts). 3. user:`
217
- # emailid` A google user account using an email address. For example alice@gmail.
218
- # com, joe@example.com 4. serviceAccount:`emailid` An service account email. 5.
219
- # group:`emailid` A google group with an email address. For example auth-ti-
220
- # cloud@google.com 6. domain:`domain` A Google Apps domain name. For example
221
- # google.com, example.com
246
+ # Specifies the identities requesting access for a Cloud Platform resource. `
247
+ # members` can have the following values: * `allUsers`: A special identifier
248
+ # that represents anyone who is on the internet; with or without a Google
249
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
250
+ # anyone who is authenticated with a Google account or a service account. * `
251
+ # user:`emailid``: An email address that represents a specific Google account.
252
+ # For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:`
253
+ # emailid``: An email address that represents a service account. For example, `
254
+ # my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email
255
+ # address that represents a Google group. For example, `admins@example.com`. * `
256
+ # domain:`domain``: A Google Apps domain name that represents all the users of
257
+ # that domain. For example, `google.com` or `example.com`.
222
258
  # Corresponds to the JSON property `members`
223
259
  # @return [Array<String>]
224
260
  attr_accessor :members
@@ -234,49 +270,23 @@ module Google
234
270
  end
235
271
  end
236
272
 
237
- # A rule to be applied in a Policy.
238
- class Rule
273
+ # Request message for `SetIamPolicy` method.
274
+ class SetIamPolicyRequest
239
275
  include Google::Apis::Core::Hashable
240
276
 
241
- # Human-readable description of the rule.
242
- # Corresponds to the JSON property `description`
243
- # @return [String]
244
- attr_accessor :description
245
-
246
- # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value
247
- # of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.
248
- # *') matches all verbs.
249
- # Corresponds to the JSON property `permissions`
250
- # @return [Array<String>]
251
- attr_accessor :permissions
252
-
253
- # Required
254
- # Corresponds to the JSON property `action`
255
- # @return [String]
256
- attr_accessor :action
257
-
258
- # The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of entries.
259
- # Corresponds to the JSON property `in`
260
- # @return [Array<String>]
261
- attr_accessor :in
262
-
263
- # The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of
264
- # entries. The formation for in and not_in entries is the same as members in a
265
- # Binding above.
266
- # Corresponds to the JSON property `notIn`
267
- # @return [Array<String>]
268
- attr_accessor :not_in
269
-
270
- # Additional restrictions that must be met
271
- # Corresponds to the JSON property `conditions`
272
- # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Condition>]
273
- attr_accessor :conditions
274
-
275
- # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
276
- # that match the LOG action.
277
- # Corresponds to the JSON property `logConfig`
278
- # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::LogConfig>]
279
- attr_accessor :log_config
277
+ # Defines an Identity and Access Management (IAM) policy. It is used to specify
278
+ # access control policies for Cloud Platform resources. A `Policy` consists of a
279
+ # list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
280
+ # the members can be user accounts, Google groups, Google domains, and service
281
+ # accounts. A `role` is a named list of permissions defined by IAM. **Example** `
282
+ # "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
283
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
284
+ # appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user:
285
+ # sean@example.com"] ` ] ` For a description of IAM and its features, see the [
286
+ # IAM developer's guide](https://cloud.google.com/iam).
287
+ # Corresponds to the JSON property `policy`
288
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
289
+ attr_accessor :policy
280
290
 
281
291
  def initialize(**args)
282
292
  update!(**args)
@@ -284,50 +294,19 @@ module Google
284
294
 
285
295
  # Update properties of this object
286
296
  def update!(**args)
287
- @description = args[:description] unless args[:description].nil?
288
- @permissions = args[:permissions] unless args[:permissions].nil?
289
- @action = args[:action] unless args[:action].nil?
290
- @in = args[:in] unless args[:in].nil?
291
- @not_in = args[:not_in] unless args[:not_in].nil?
292
- @conditions = args[:conditions] unless args[:conditions].nil?
293
- @log_config = args[:log_config] unless args[:log_config].nil?
297
+ @policy = args[:policy] unless args[:policy].nil?
294
298
  end
295
299
  end
296
300
 
297
- # A condition to be met.
298
- class Condition
301
+ # Request message for `TestIamPermissions` method.
302
+ class TestIamPermissionsRequest
299
303
  include Google::Apis::Core::Hashable
300
304
 
301
- # Trusted attributes supplied by the IAM system.
302
- # Corresponds to the JSON property `iam`
303
- # @return [String]
304
- attr_accessor :iam
305
-
306
- # Trusted attributes supplied by any service that owns resources and uses the
307
- # IAM system for access control.
308
- # Corresponds to the JSON property `sys`
309
- # @return [String]
310
- attr_accessor :sys
311
-
312
- # Trusted attributes discharged by the service.
313
- # Corresponds to the JSON property `svc`
314
- # @return [String]
315
- attr_accessor :svc
316
-
317
- # An operator to apply the subject with.
318
- # Corresponds to the JSON property `op`
319
- # @return [String]
320
- attr_accessor :op
321
-
322
- # The object of the condition. Exactly one of these must be set.
323
- # Corresponds to the JSON property `value`
324
- # @return [String]
325
- attr_accessor :value
326
-
327
- # The objects of the condition. This is mutually exclusive with 'value'.
328
- # Corresponds to the JSON property `values`
305
+ # The set of permissions to check for the `resource`. Permissions with wildcards
306
+ # (such as '*' or 'storage.*') are not allowed.
307
+ # Corresponds to the JSON property `permissions`
329
308
  # @return [Array<String>]
330
- attr_accessor :values
309
+ attr_accessor :permissions
331
310
 
332
311
  def initialize(**args)
333
312
  update!(**args)
@@ -335,44 +314,18 @@ module Google
335
314
 
336
315
  # Update properties of this object
337
316
  def update!(**args)
338
- @iam = args[:iam] unless args[:iam].nil?
339
- @sys = args[:sys] unless args[:sys].nil?
340
- @svc = args[:svc] unless args[:svc].nil?
341
- @op = args[:op] unless args[:op].nil?
342
- @value = args[:value] unless args[:value].nil?
343
- @values = args[:values] unless args[:values].nil?
317
+ @permissions = args[:permissions] unless args[:permissions].nil?
344
318
  end
345
319
  end
346
320
 
347
- # Specifies what kind of log the caller must write Increment a streamz counter
348
- # with the specified metric and field names. Metric names should start with a '/'
349
- # , generally be lowercase-only, and end in "_count". Field names should not
350
- # contain an initial slash. The actual exported metric names will have "/iam/
351
- # policy" prepended. Field names correspond to IAM request parameters and field
352
- # values are their respective values. At present only "iam_principal",
353
- # corresponding to IAMContext.principal, is supported. Examples: counter `
354
- # metric: "/debug_access_count" field: "iam_principal" ` ==> increment counter /
355
- # iam/policy/backend_debug_access_count `iam_principal=[value of IAMContext.
356
- # principal]` At this time we do not support: * multiple field names (though
357
- # this may be supported in the future) * decrementing the counter * incrementing
358
- # it by anything other than 1
359
- class LogConfig
321
+ # Response message for `TestIamPermissions` method.
322
+ class TestIamPermissionsResponse
360
323
  include Google::Apis::Core::Hashable
361
324
 
362
- # Options for counters
363
- # Corresponds to the JSON property `counter`
364
- # @return [Google::Apis::CloudresourcemanagerV1beta1::CounterOptions]
365
- attr_accessor :counter
366
-
367
- # Write a Data Access (Gin) log
368
- # Corresponds to the JSON property `dataAccess`
369
- # @return [Google::Apis::CloudresourcemanagerV1beta1::DataAccessOptions]
370
- attr_accessor :data_access
371
-
372
- # Write a Cloud Audit log
373
- # Corresponds to the JSON property `cloudAudit`
374
- # @return [Google::Apis::CloudresourcemanagerV1beta1::CloudAuditOptions]
375
- attr_accessor :cloud_audit
325
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
326
+ # Corresponds to the JSON property `permissions`
327
+ # @return [Array<String>]
328
+ attr_accessor :permissions
376
329
 
377
330
  def initialize(**args)
378
331
  update!(**args)
@@ -380,53 +333,27 @@ module Google
380
333
 
381
334
  # Update properties of this object
382
335
  def update!(**args)
383
- @counter = args[:counter] unless args[:counter].nil?
384
- @data_access = args[:data_access] unless args[:data_access].nil?
385
- @cloud_audit = args[:cloud_audit] unless args[:cloud_audit].nil?
336
+ @permissions = args[:permissions] unless args[:permissions].nil?
386
337
  end
387
338
  end
388
339
 
389
- # Options for counters
390
- class CounterOptions
340
+ # The response returned from the `ListOrganizations` method.
341
+ class ListOrganizationsResponse
391
342
  include Google::Apis::Core::Hashable
392
343
 
393
- # The metric to update.
394
- # Corresponds to the JSON property `metric`
395
- # @return [String]
396
- attr_accessor :metric
344
+ # The list of Organizations that matched the list query, possibly paginated.
345
+ # Corresponds to the JSON property `organizations`
346
+ # @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
347
+ attr_accessor :organizations
397
348
 
398
- # The field value to attribute.
399
- # Corresponds to the JSON property `field`
349
+ # A pagination token to be used to retrieve the next page of results. If the
350
+ # result is too large to fit within the page size specified in the request, this
351
+ # field will be set with a token that can be used to fetch the next page of
352
+ # results. If this field is empty, it indicates that this response contains the
353
+ # last page of results.
354
+ # Corresponds to the JSON property `nextPageToken`
400
355
  # @return [String]
401
- attr_accessor :field
402
-
403
- def initialize(**args)
404
- update!(**args)
405
- end
406
-
407
- # Update properties of this object
408
- def update!(**args)
409
- @metric = args[:metric] unless args[:metric].nil?
410
- @field = args[:field] unless args[:field].nil?
411
- end
412
- end
413
-
414
- # Write a Data Access (Gin) log
415
- class DataAccessOptions
416
- include Google::Apis::Core::Hashable
417
-
418
- def initialize(**args)
419
- update!(**args)
420
- end
421
-
422
- # Update properties of this object
423
- def update!(**args)
424
- end
425
- end
426
-
427
- # Write a Cloud Audit log
428
- class CloudAuditOptions
429
- include Google::Apis::Core::Hashable
356
+ attr_accessor :next_page_token
430
357
 
431
358
  def initialize(**args)
432
359
  update!(**args)
@@ -434,50 +361,41 @@ module Google
434
361
 
435
362
  # Update properties of this object
436
363
  def update!(**args)
364
+ @organizations = args[:organizations] unless args[:organizations].nil?
365
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
437
366
  end
438
367
  end
439
368
 
440
- # Request message for `SetIamPolicy` method.
441
- class SetIamPolicyRequest
369
+ # The root node in the resource hierarchy to which a particular entity's (e.g.,
370
+ # company) resources belong.
371
+ class Organization
442
372
  include Google::Apis::Core::Hashable
443
373
 
444
- # # Overview The `Policy` defines an access control policy language. It is used
445
- # to define policies that are attached to resources like files, folders, VMs,
446
- # etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding`
447
- # binds a set of members to a role, where the members include user accounts,
448
- # user groups, user domains, and service accounts. A 'role' is a named set of
449
- # permissions, defined by IAM. The definition of a role is outside the policy. A
450
- # permission check first determines the roles that include the specified
451
- # permission, and then determines if the principal specified is a member of a
452
- # binding to at least one of these roles. The membership check is recursive when
453
- # a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": "
454
- # roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com",
455
- # "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts.
456
- # com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` `
457
- # ``
458
- # Corresponds to the JSON property `policy`
459
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
460
- attr_accessor :policy
461
-
462
- def initialize(**args)
463
- update!(**args)
464
- end
465
-
466
- # Update properties of this object
467
- def update!(**args)
468
- @policy = args[:policy] unless args[:policy].nil?
469
- end
470
- end
471
-
472
- # Request message for `TestIamPermissions` method.
473
- class TestIamPermissionsRequest
474
- include Google::Apis::Core::Hashable
374
+ # An immutable id for the Organization that is assigned on creation. This should
375
+ # be omitted when creating a new Organization. This field is read-only.
376
+ # Corresponds to the JSON property `organizationId`
377
+ # @return [String]
378
+ attr_accessor :organization_id
475
379
 
476
- # The set of permissions to check for the 'resource'. Permissions with wildcards
477
- # (such as '*' or 'storage.*') are not allowed.
478
- # Corresponds to the JSON property `permissions`
479
- # @return [Array<String>]
480
- attr_accessor :permissions
380
+ # A friendly string to be used to refer to the Organization in the UI. This
381
+ # field is required.
382
+ # Corresponds to the JSON property `displayName`
383
+ # @return [String]
384
+ attr_accessor :display_name
385
+
386
+ # The entity that owns an Organization. The lifetime of the Organization and all
387
+ # of its descendants are bound to the `OrganizationOwner`. If the `
388
+ # OrganizationOwner` is deleted, the Organization and all its descendants will
389
+ # be deleted.
390
+ # Corresponds to the JSON property `owner`
391
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner]
392
+ attr_accessor :owner
393
+
394
+ # Timestamp when the Organization was created. Assigned by the server. @
395
+ # OutputOnly
396
+ # Corresponds to the JSON property `creationTime`
397
+ # @return [String]
398
+ attr_accessor :creation_time
481
399
 
482
400
  def initialize(**args)
483
401
  update!(**args)
@@ -485,18 +403,24 @@ module Google
485
403
 
486
404
  # Update properties of this object
487
405
  def update!(**args)
488
- @permissions = args[:permissions] unless args[:permissions].nil?
406
+ @organization_id = args[:organization_id] unless args[:organization_id].nil?
407
+ @display_name = args[:display_name] unless args[:display_name].nil?
408
+ @owner = args[:owner] unless args[:owner].nil?
409
+ @creation_time = args[:creation_time] unless args[:creation_time].nil?
489
410
  end
490
411
  end
491
412
 
492
- # Response message for `TestIamPermissions` method.
493
- class TestIamPermissionsResponse
413
+ # The entity that owns an Organization. The lifetime of the Organization and all
414
+ # of its descendants are bound to the `OrganizationOwner`. If the `
415
+ # OrganizationOwner` is deleted, the Organization and all its descendants will
416
+ # be deleted.
417
+ class OrganizationOwner
494
418
  include Google::Apis::Core::Hashable
495
419
 
496
- # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
497
- # Corresponds to the JSON property `permissions`
498
- # @return [Array<String>]
499
- attr_accessor :permissions
420
+ # The Google for Work customer id used in the Directory API.
421
+ # Corresponds to the JSON property `directoryCustomerId`
422
+ # @return [String]
423
+ attr_accessor :directory_customer_id
500
424
 
501
425
  def initialize(**args)
502
426
  update!(**args)
@@ -504,7 +428,7 @@ module Google
504
428
 
505
429
  # Update properties of this object
506
430
  def update!(**args)
507
- @permissions = args[:permissions] unless args[:permissions].nil?
431
+ @directory_customer_id = args[:directory_customer_id] unless args[:directory_customer_id].nil?
508
432
  end
509
433
  end
510
434
  end