google-api-client 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +149 -0
- data/bin/generate-api +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
- data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
- data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
- data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
- data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
- data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
- data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
- data/generated/google/apis/adexperiencereport_v1.rb +35 -0
- data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
- data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
- data/generated/google/apis/admin_directory_v1/service.rb +39 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v2_4.rb +37 -0
- data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
- data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
- data/generated/google/apis/analytics_v2_4/service.rb +345 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +15 -2
- data/generated/google/apis/analytics_v3/representations.rb +3 -0
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
- data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
- data/generated/google/apis/androidmanagement_v1.rb +35 -0
- data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
- data/generated/google/apis/androidpublisher_v1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
- data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
- data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
- data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
- data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
- data/generated/google/apis/appengine_v1/representations.rb +351 -335
- data/generated/google/apis/appengine_v1/service.rb +255 -239
- data/generated/google/apis/appengine_v1alpha.rb +41 -0
- data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
- data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
- data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
- data/generated/google/apis/appengine_v1beta.rb +41 -0
- data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
- data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
- data/generated/google/apis/appengine_v1beta4.rb +41 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
- data/generated/google/apis/appengine_v1beta5.rb +41 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +106 -18
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
- data/generated/google/apis/blogger_v2.rb +34 -0
- data/generated/google/apis/blogger_v2/classes.rb +947 -0
- data/generated/google/apis/blogger_v2/representations.rb +465 -0
- data/generated/google/apis/blogger_v2/service.rb +424 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +4 -207
- data/generated/google/apis/calendar_v3/representations.rb +0 -97
- data/generated/google/apis/calendar_v3/service.rb +8 -4
- data/generated/google/apis/classroom_v1.rb +27 -27
- data/generated/google/apis/classroom_v1/classes.rb +1037 -926
- data/generated/google/apis/classroom_v1/representations.rb +294 -244
- data/generated/google/apis/classroom_v1/service.rb +1114 -1109
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
- data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
- data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
- data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
- data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
- data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
- data/generated/google/apis/cloudfunctions_v1.rb +4 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
- data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
- data/generated/google/apis/cloudkms_v1/service.rb +320 -320
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
- data/generated/google/apis/cloudtrace_v1.rb +5 -5
- data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
- data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
- data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
- data/generated/google/apis/cloudtrace_v2.rb +43 -0
- data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
- data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
- data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
- data/generated/google/apis/compute_alpha.rb +49 -0
- data/generated/google/apis/compute_alpha/classes.rb +23796 -0
- data/generated/google/apis/compute_alpha/representations.rb +9391 -0
- data/generated/google/apis/compute_alpha/service.rb +24188 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1597 -235
- data/generated/google/apis/compute_beta/representations.rb +477 -0
- data/generated/google/apis/compute_beta/service.rb +2875 -1677
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +319 -197
- data/generated/google/apis/compute_v1/representations.rb +51 -0
- data/generated/google/apis/compute_v1/service.rb +2057 -172
- data/generated/google/apis/consumersurveys_v2.rb +40 -0
- data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
- data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
- data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1072 -936
- data/generated/google/apis/container_v1/representations.rb +266 -202
- data/generated/google/apis/container_v1/service.rb +243 -243
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
- data/generated/google/apis/container_v1beta1/representations.rb +662 -0
- data/generated/google/apis/container_v1beta1/service.rb +1875 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +72 -3
- data/generated/google/apis/content_v2/representations.rb +23 -0
- data/generated/google/apis/content_v2/service.rb +23 -18
- data/generated/google/apis/content_v2sandbox.rb +35 -0
- data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
- data/generated/google/apis/content_v2sandbox/service.rb +709 -0
- data/generated/google/apis/dataflow_v1b3.rb +5 -5
- data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
- data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
- data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
- data/generated/google/apis/dataproc_v1/representations.rb +227 -227
- data/generated/google/apis/dataproc_v1/service.rb +254 -254
- data/generated/google/apis/dataproc_v1beta2.rb +34 -0
- data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +1311 -773
- data/generated/google/apis/datastore_v1/representations.rb +351 -148
- data/generated/google/apis/datastore_v1/service.rb +206 -55
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
- data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8.rb +1 -1
- data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
- data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +36 -0
- data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
- data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
- data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
- data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
- data/generated/google/apis/firebaserules_v1/service.rb +113 -113
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/fusiontables_v1.rb +37 -0
- data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
- data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
- data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +8 -8
- data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
- data/generated/google/apis/genomics_v1/representations.rb +482 -482
- data/generated/google/apis/genomics_v1/service.rb +966 -966
- data/generated/google/apis/genomics_v1alpha2.rb +40 -0
- data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +664 -395
- data/generated/google/apis/iam_v1/representations.rb +194 -81
- data/generated/google/apis/iam_v1/service.rb +657 -92
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +8 -8
- data/generated/google/apis/language_v1.rb +4 -1
- data/generated/google/apis/language_v1/classes.rb +393 -393
- data/generated/google/apis/language_v1/representations.rb +95 -95
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +4 -1
- data/generated/google/apis/language_v1beta1/classes.rb +457 -457
- data/generated/google/apis/language_v1beta1/representations.rb +114 -114
- data/generated/google/apis/language_v1beta1/service.rb +48 -48
- data/generated/google/apis/language_v1beta2.rb +39 -0
- data/generated/google/apis/language_v1beta2/classes.rb +824 -0
- data/generated/google/apis/language_v1beta2/representations.rb +373 -0
- data/generated/google/apis/language_v1beta2/service.rb +217 -0
- data/generated/google/apis/logging_v2.rb +9 -9
- data/generated/google/apis/logging_v2/classes.rb +840 -834
- data/generated/google/apis/logging_v2/representations.rb +168 -167
- data/generated/google/apis/logging_v2/service.rb +667 -463
- data/generated/google/apis/logging_v2beta1.rb +9 -9
- data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
- data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
- data/generated/google/apis/logging_v2beta1/service.rb +253 -255
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
- data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
- data/generated/google/apis/manufacturers_v1/service.rb +8 -7
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1487 -1676
- data/generated/google/apis/ml_v1/representations.rb +229 -299
- data/generated/google/apis/ml_v1/service.rb +359 -253
- data/generated/google/apis/ml_v1beta1.rb +34 -0
- data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
- data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
- data/generated/google/apis/ml_v1beta1/service.rb +975 -0
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +834 -834
- data/generated/google/apis/monitoring_v3/representations.rb +168 -168
- data/generated/google/apis/monitoring_v3/service.rb +330 -330
- data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
- data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
- data/generated/google/apis/mybusiness_v3/service.rb +241 -241
- data/generated/google/apis/oauth2_v1.rb +43 -0
- data/generated/google/apis/oauth2_v1/classes.rb +321 -0
- data/generated/google/apis/oauth2_v1/representations.rb +135 -0
- data/generated/google/apis/oauth2_v1/service.rb +337 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +37 -0
- data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
- data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
- data/generated/google/apis/pagespeedonline_v1.rb +32 -0
- data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
- data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
- data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1512 -1512
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +596 -596
- data/generated/google/apis/people_v1.rb +15 -15
- data/generated/google/apis/people_v1/classes.rb +1384 -1383
- data/generated/google/apis/people_v1/representations.rb +311 -311
- data/generated/google/apis/people_v1/service.rb +208 -202
- data/generated/google/apis/playcustomapp_v1.rb +34 -0
- data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
- data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
- data/generated/google/apis/playmoviespartner_v1.rb +34 -0
- data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
- data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
- data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/prediction_v1_2.rb +44 -0
- data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
- data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
- data/generated/google/apis/prediction_v1_2/service.rb +287 -0
- data/generated/google/apis/prediction_v1_3.rb +44 -0
- data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
- data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
- data/generated/google/apis/prediction_v1_3/service.rb +284 -0
- data/generated/google/apis/prediction_v1_4.rb +44 -0
- data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
- data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
- data/generated/google/apis/prediction_v1_4/service.rb +284 -0
- data/generated/google/apis/prediction_v1_5.rb +44 -0
- data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
- data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
- data/generated/google/apis/prediction_v1_5/service.rb +357 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +352 -352
- data/generated/google/apis/pubsub_v1/representations.rb +77 -77
- data/generated/google/apis/pubsub_v1/service.rb +346 -346
- data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
- data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
- data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
- data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
- data/generated/google/apis/replicapool_v1beta1.rb +50 -0
- data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
- data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
- data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
- data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
- data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
- data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
- data/generated/google/apis/safebrowsing_v4.rb +32 -0
- data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
- data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +99 -157
- data/generated/google/apis/script_v1/representations.rb +17 -47
- data/generated/google/apis/script_v1/service.rb +12 -12
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
- data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
- data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
- data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
- data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
- data/generated/google/apis/serviceuser_v1.rb +5 -5
- data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
- data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
- data/generated/google/apis/serviceuser_v1/service.rb +43 -43
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
- data/generated/google/apis/sheets_v4/representations.rb +931 -930
- data/generated/google/apis/sheets_v4/service.rb +244 -244
- data/generated/google/apis/slides_v1.rb +10 -10
- data/generated/google/apis/slides_v1/classes.rb +2915 -2915
- data/generated/google/apis/slides_v1/representations.rb +698 -698
- data/generated/google/apis/slides_v1/service.rb +35 -35
- data/generated/google/apis/sourcerepo_v1.rb +3 -3
- data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
- data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
- data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
- data/generated/google/apis/spanner_v1.rb +4 -4
- data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
- data/generated/google/apis/spanner_v1/representations.rb +338 -323
- data/generated/google/apis/spanner_v1/service.rb +689 -689
- data/generated/google/apis/spectrum_v1explorer.rb +31 -0
- data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
- data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
- data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
- data/generated/google/apis/speech_v1.rb +34 -0
- data/generated/google/apis/speech_v1/classes.rb +572 -0
- data/generated/google/apis/speech_v1/representations.rb +236 -0
- data/generated/google/apis/speech_v1/service.rb +277 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
- data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
- data/generated/google/apis/speech_v1beta1/service.rb +46 -46
- data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
- data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -6
- data/generated/google/apis/storage_v1/service.rb +51 -29
- data/generated/google/apis/storage_v1beta1.rb +40 -0
- data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
- data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
- data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
- data/generated/google/apis/storage_v1beta2.rb +40 -0
- data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
- data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
- data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
- data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
- data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
- data/generated/google/apis/streetviewpublish_v1.rb +36 -0
- data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
- data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
- data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
- data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
- data/generated/google/apis/translate_v2/classes.rb +111 -111
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +94 -94
- data/generated/google/apis/vault_v1.rb +31 -0
- data/generated/google/apis/vault_v1/classes.rb +554 -0
- data/generated/google/apis/vault_v1/representations.rb +318 -0
- data/generated/google/apis/vault_v1/service.rb +677 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
- data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
- data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +4 -4
- data/generated/google/apis/vision_v1/classes.rb +1176 -1178
- data/generated/google/apis/vision_v1/representations.rb +235 -235
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
- data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
- data/lib/google/apis/version.rb +1 -1
- metadata +246 -2
@@ -48,107 +48,71 @@ module Google
|
|
48
48
|
@batch_path = 'batch'
|
49
49
|
end
|
50
50
|
|
51
|
-
#
|
51
|
+
# Clears a `Policy` from a resource.
|
52
52
|
# @param [String] resource
|
53
|
-
# Name of the resource
|
54
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
55
|
-
# @param [String] quota_user
|
56
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
57
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
53
|
+
# Name of the resource for the `Policy` to clear.
|
54
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
|
58
55
|
# @param [String] fields
|
59
56
|
# Selector specifying which fields to include in a partial response.
|
60
|
-
# @param [Google::Apis::RequestOptions] options
|
61
|
-
# Request-specific options
|
62
|
-
#
|
63
|
-
# @yield [result, err] Result & error if block supplied
|
64
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
|
65
|
-
# @yieldparam err [StandardError] error object if request failed
|
66
|
-
#
|
67
|
-
# @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
|
68
|
-
#
|
69
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
-
def list_organization_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
73
|
-
command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
|
74
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
|
75
|
-
command.request_object = list_org_policies_request_object
|
76
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
|
77
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
|
78
|
-
command.params['resource'] = resource unless resource.nil?
|
79
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
|
-
command.query['fields'] = fields unless fields.nil?
|
81
|
-
execute_or_queue_command(command, &block)
|
82
|
-
end
|
83
|
-
|
84
|
-
# Lists `Constraints` that could be applied on the specified resource.
|
85
|
-
# @param [String] resource
|
86
|
-
# Name of the resource to list `Constraints` for.
|
87
|
-
# @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
|
88
57
|
# @param [String] quota_user
|
89
58
|
# Available to use for quota purposes for server-side applications. Can be any
|
90
59
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
91
|
-
# @param [String] fields
|
92
|
-
# Selector specifying which fields to include in a partial response.
|
93
60
|
# @param [Google::Apis::RequestOptions] options
|
94
61
|
# Request-specific options
|
95
62
|
#
|
96
63
|
# @yield [result, err] Result & error if block supplied
|
97
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
64
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
98
65
|
# @yieldparam err [StandardError] error object if request failed
|
99
66
|
#
|
100
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
67
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
101
68
|
#
|
102
69
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
103
70
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
104
71
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
105
|
-
def
|
106
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
107
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
108
|
-
command.request_object =
|
109
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
110
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
72
|
+
def clear_folder_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
|
74
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
|
75
|
+
command.request_object = clear_org_policy_request_object
|
76
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
77
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
111
78
|
command.params['resource'] = resource unless resource.nil?
|
112
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
113
79
|
command.query['fields'] = fields unless fields.nil?
|
80
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
114
81
|
execute_or_queue_command(command, &block)
|
115
82
|
end
|
116
83
|
|
117
|
-
# Gets the
|
118
|
-
#
|
119
|
-
#
|
120
|
-
# Authorization requires the Google IAM permission
|
121
|
-
# `resourcemanager.organizations.getIamPolicy` on the specified organization
|
84
|
+
# Gets the effective `Policy` on a resource. This is the result of merging
|
85
|
+
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
86
|
+
# an `etag`set because it is a computed `Policy` across multiple resources.
|
122
87
|
# @param [String] resource
|
123
|
-
#
|
124
|
-
#
|
125
|
-
# @param [
|
88
|
+
# The name of the resource to start computing the effective `Policy`.
|
89
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
90
|
+
# @param [String] fields
|
91
|
+
# Selector specifying which fields to include in a partial response.
|
126
92
|
# @param [String] quota_user
|
127
93
|
# Available to use for quota purposes for server-side applications. Can be any
|
128
94
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
129
|
-
# @param [String] fields
|
130
|
-
# Selector specifying which fields to include in a partial response.
|
131
95
|
# @param [Google::Apis::RequestOptions] options
|
132
96
|
# Request-specific options
|
133
97
|
#
|
134
98
|
# @yield [result, err] Result & error if block supplied
|
135
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
99
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
136
100
|
# @yieldparam err [StandardError] error object if request failed
|
137
101
|
#
|
138
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
102
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
139
103
|
#
|
140
104
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
141
105
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
142
106
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
143
|
-
def
|
144
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
145
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
146
|
-
command.request_object =
|
147
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
148
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
107
|
+
def get_folder_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
108
|
+
command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
|
109
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
|
110
|
+
command.request_object = get_effective_org_policy_request_object
|
111
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
112
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
149
113
|
command.params['resource'] = resource unless resource.nil?
|
150
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
151
114
|
command.query['fields'] = fields unless fields.nil?
|
115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
152
116
|
execute_or_queue_command(command, &block)
|
153
117
|
end
|
154
118
|
|
@@ -160,11 +124,11 @@ module Google
|
|
160
124
|
# @param [String] resource
|
161
125
|
# Name of the resource the `Policy` is set on.
|
162
126
|
# @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
|
127
|
+
# @param [String] fields
|
128
|
+
# Selector specifying which fields to include in a partial response.
|
163
129
|
# @param [String] quota_user
|
164
130
|
# Available to use for quota purposes for server-side applications. Can be any
|
165
131
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
166
|
-
# @param [String] fields
|
167
|
-
# Selector specifying which fields to include in a partial response.
|
168
132
|
# @param [Google::Apis::RequestOptions] options
|
169
133
|
# Request-specific options
|
170
134
|
#
|
@@ -177,164 +141,165 @@ module Google
|
|
177
141
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
178
142
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
179
143
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
180
|
-
def
|
144
|
+
def get_folder_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
181
145
|
command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
|
182
146
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
|
183
147
|
command.request_object = get_org_policy_request_object
|
184
148
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
185
149
|
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
186
150
|
command.params['resource'] = resource unless resource.nil?
|
187
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
188
151
|
command.query['fields'] = fields unless fields.nil?
|
152
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
189
153
|
execute_or_queue_command(command, &block)
|
190
154
|
end
|
191
155
|
|
192
|
-
#
|
193
|
-
#
|
194
|
-
#
|
195
|
-
#
|
196
|
-
#
|
197
|
-
#
|
198
|
-
# @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
|
156
|
+
# Lists `Constraints` that could be applied on the specified resource.
|
157
|
+
# @param [String] resource
|
158
|
+
# Name of the resource to list `Constraints` for.
|
159
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
|
160
|
+
# @param [String] fields
|
161
|
+
# Selector specifying which fields to include in a partial response.
|
199
162
|
# @param [String] quota_user
|
200
163
|
# Available to use for quota purposes for server-side applications. Can be any
|
201
164
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
202
|
-
# @param [String] fields
|
203
|
-
# Selector specifying which fields to include in a partial response.
|
204
165
|
# @param [Google::Apis::RequestOptions] options
|
205
166
|
# Request-specific options
|
206
167
|
#
|
207
168
|
# @yield [result, err] Result & error if block supplied
|
208
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
169
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
|
209
170
|
# @yieldparam err [StandardError] error object if request failed
|
210
171
|
#
|
211
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
172
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
|
212
173
|
#
|
213
174
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
214
175
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
215
176
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
216
|
-
def
|
217
|
-
command = make_simple_command(:post, 'v1/
|
218
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
219
|
-
command.request_object =
|
220
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
221
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
222
|
-
command.
|
177
|
+
def list_folder_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
178
|
+
command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
|
179
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
|
180
|
+
command.request_object = list_available_org_policy_constraints_request_object
|
181
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
|
182
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
|
183
|
+
command.params['resource'] = resource unless resource.nil?
|
223
184
|
command.query['fields'] = fields unless fields.nil?
|
185
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
224
186
|
execute_or_queue_command(command, &block)
|
225
187
|
end
|
226
188
|
|
227
|
-
#
|
228
|
-
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
229
|
-
# an `etag`set because it is a computed `Policy` across multiple resources.
|
189
|
+
# Lists all the `Policies` set for a particular resource.
|
230
190
|
# @param [String] resource
|
231
|
-
#
|
232
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
191
|
+
# Name of the resource to list Policies for.
|
192
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
|
193
|
+
# @param [String] fields
|
194
|
+
# Selector specifying which fields to include in a partial response.
|
233
195
|
# @param [String] quota_user
|
234
196
|
# Available to use for quota purposes for server-side applications. Can be any
|
235
197
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
236
|
-
# @param [String] fields
|
237
|
-
# Selector specifying which fields to include in a partial response.
|
238
198
|
# @param [Google::Apis::RequestOptions] options
|
239
199
|
# Request-specific options
|
240
200
|
#
|
241
201
|
# @yield [result, err] Result & error if block supplied
|
242
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
202
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
|
243
203
|
# @yieldparam err [StandardError] error object if request failed
|
244
204
|
#
|
245
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
205
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
|
246
206
|
#
|
247
207
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
248
208
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
249
209
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
250
|
-
def
|
251
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
252
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
253
|
-
command.request_object =
|
254
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
255
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
210
|
+
def list_folder_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
211
|
+
command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
|
212
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
|
213
|
+
command.request_object = list_org_policies_request_object
|
214
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
|
215
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
|
256
216
|
command.params['resource'] = resource unless resource.nil?
|
257
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
258
217
|
command.query['fields'] = fields unless fields.nil?
|
218
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
259
219
|
execute_or_queue_command(command, &block)
|
260
220
|
end
|
261
221
|
|
262
|
-
#
|
263
|
-
#
|
264
|
-
#
|
222
|
+
# Updates the specified `Policy` on the resource. Creates a new `Policy` for
|
223
|
+
# that `Constraint` on the resource if one does not exist.
|
224
|
+
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
225
|
+
# write of the `Policy`.
|
226
|
+
# @param [String] resource
|
227
|
+
# Resource name of the resource to attach the `Policy`.
|
228
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
|
229
|
+
# @param [String] fields
|
230
|
+
# Selector specifying which fields to include in a partial response.
|
265
231
|
# @param [String] quota_user
|
266
232
|
# Available to use for quota purposes for server-side applications. Can be any
|
267
233
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
268
|
-
# @param [String] fields
|
269
|
-
# Selector specifying which fields to include in a partial response.
|
270
234
|
# @param [Google::Apis::RequestOptions] options
|
271
235
|
# Request-specific options
|
272
236
|
#
|
273
237
|
# @yield [result, err] Result & error if block supplied
|
274
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
238
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
275
239
|
# @yieldparam err [StandardError] error object if request failed
|
276
240
|
#
|
277
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
241
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
278
242
|
#
|
279
243
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
280
244
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
281
245
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
282
|
-
def
|
283
|
-
command = make_simple_command(:
|
284
|
-
command.
|
285
|
-
command.
|
286
|
-
command.
|
287
|
-
command.
|
246
|
+
def set_folder_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
247
|
+
command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
|
248
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
|
249
|
+
command.request_object = set_org_policy_request_object
|
250
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
251
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
252
|
+
command.params['resource'] = resource unless resource.nil?
|
288
253
|
command.query['fields'] = fields unless fields.nil?
|
254
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
289
255
|
execute_or_queue_command(command, &block)
|
290
256
|
end
|
291
257
|
|
292
|
-
#
|
293
|
-
#
|
294
|
-
#
|
295
|
-
#
|
296
|
-
#
|
297
|
-
#
|
298
|
-
#
|
299
|
-
#
|
258
|
+
# Create a Lien which applies to the resource denoted by the `parent` field.
|
259
|
+
# Callers of this method will require permission on the `parent` resource.
|
260
|
+
# For example, applying to `projects/1234` requires permission
|
261
|
+
# `resourcemanager.projects.updateLiens`.
|
262
|
+
# NOTE: Some resources may limit the number of Liens which may be applied.
|
263
|
+
# @param [Google::Apis::CloudresourcemanagerV1::Lien] lien_object
|
264
|
+
# @param [String] fields
|
265
|
+
# Selector specifying which fields to include in a partial response.
|
300
266
|
# @param [String] quota_user
|
301
267
|
# Available to use for quota purposes for server-side applications. Can be any
|
302
268
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
303
|
-
# @param [String] fields
|
304
|
-
# Selector specifying which fields to include in a partial response.
|
305
269
|
# @param [Google::Apis::RequestOptions] options
|
306
270
|
# Request-specific options
|
307
271
|
#
|
308
272
|
# @yield [result, err] Result & error if block supplied
|
309
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
273
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Lien] parsed result object
|
310
274
|
# @yieldparam err [StandardError] error object if request failed
|
311
275
|
#
|
312
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
276
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Lien]
|
313
277
|
#
|
314
278
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
315
279
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
316
280
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
317
|
-
def
|
318
|
-
command = make_simple_command(:post, 'v1/
|
319
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
320
|
-
command.request_object =
|
321
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
322
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
323
|
-
command.params['resource'] = resource unless resource.nil?
|
324
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
281
|
+
def create_lien(lien_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
282
|
+
command = make_simple_command(:post, 'v1/liens', options)
|
283
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
|
284
|
+
command.request_object = lien_object
|
285
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
|
286
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Lien
|
325
287
|
command.query['fields'] = fields unless fields.nil?
|
288
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
326
289
|
execute_or_queue_command(command, &block)
|
327
290
|
end
|
328
291
|
|
329
|
-
#
|
330
|
-
#
|
331
|
-
#
|
332
|
-
#
|
292
|
+
# Delete a Lien by `name`.
|
293
|
+
# Callers of this method will require permission on the `parent` resource.
|
294
|
+
# For example, a Lien with a `parent` of `projects/1234` requires permission
|
295
|
+
# `resourcemanager.projects.updateLiens`.
|
296
|
+
# @param [String] name
|
297
|
+
# The name/identifier of the Lien to delete.
|
298
|
+
# @param [String] fields
|
299
|
+
# Selector specifying which fields to include in a partial response.
|
333
300
|
# @param [String] quota_user
|
334
301
|
# Available to use for quota purposes for server-side applications. Can be any
|
335
302
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
336
|
-
# @param [String] fields
|
337
|
-
# Selector specifying which fields to include in a partial response.
|
338
303
|
# @param [Google::Apis::RequestOptions] options
|
339
304
|
# Request-specific options
|
340
305
|
#
|
@@ -347,89 +312,53 @@ module Google
|
|
347
312
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
348
313
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
349
314
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
350
|
-
def
|
351
|
-
command = make_simple_command(:
|
352
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
|
353
|
-
command.request_object = clear_org_policy_request_object
|
315
|
+
def delete_lien(name, fields: nil, quota_user: nil, options: nil, &block)
|
316
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
354
317
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
355
318
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
356
|
-
command.params['
|
357
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
319
|
+
command.params['name'] = name unless name.nil?
|
358
320
|
command.query['fields'] = fields unless fields.nil?
|
321
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
359
322
|
execute_or_queue_command(command, &block)
|
360
323
|
end
|
361
324
|
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
# @param [
|
367
|
-
#
|
368
|
-
# @param [
|
369
|
-
#
|
370
|
-
#
|
371
|
-
#
|
372
|
-
#
|
373
|
-
#
|
374
|
-
#
|
375
|
-
# Request-specific options
|
376
|
-
#
|
377
|
-
# @yield [result, err] Result & error if block supplied
|
378
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
379
|
-
# @yieldparam err [StandardError] error object if request failed
|
380
|
-
#
|
381
|
-
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
382
|
-
#
|
383
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
384
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
385
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
386
|
-
def set_organization_org_policy(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
387
|
-
command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
|
388
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
|
389
|
-
command.request_object = set_org_policy_request_object
|
390
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
391
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
392
|
-
command.params['resource'] = resource unless resource.nil?
|
393
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
394
|
-
command.query['fields'] = fields unless fields.nil?
|
395
|
-
execute_or_queue_command(command, &block)
|
396
|
-
end
|
397
|
-
|
398
|
-
# Sets the access control policy on an Organization resource. Replaces any
|
399
|
-
# existing policy. The `resource` field should be the organization's resource
|
400
|
-
# name, e.g. "organizations/123".
|
401
|
-
# Authorization requires the Google IAM permission
|
402
|
-
# `resourcemanager.organizations.setIamPolicy` on the specified organization
|
403
|
-
# @param [String] resource
|
404
|
-
# REQUIRED: The resource for which the policy is being specified.
|
405
|
-
# See the operation documentation for the appropriate value for this field.
|
406
|
-
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
325
|
+
# List all Liens applied to the `parent` resource.
|
326
|
+
# Callers of this method will require permission on the `parent` resource.
|
327
|
+
# For example, a Lien with a `parent` of `projects/1234` requires permission
|
328
|
+
# `resourcemanager.projects.get`.
|
329
|
+
# @param [Fixnum] page_size
|
330
|
+
# The maximum number of items to return. This is a suggestion for the server.
|
331
|
+
# @param [String] page_token
|
332
|
+
# The `next_page_token` value returned from a previous List request, if any.
|
333
|
+
# @param [String] parent
|
334
|
+
# The name of the resource to list all attached Liens.
|
335
|
+
# For example, `projects/1234`.
|
336
|
+
# @param [String] fields
|
337
|
+
# Selector specifying which fields to include in a partial response.
|
407
338
|
# @param [String] quota_user
|
408
339
|
# Available to use for quota purposes for server-side applications. Can be any
|
409
340
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
410
|
-
# @param [String] fields
|
411
|
-
# Selector specifying which fields to include in a partial response.
|
412
341
|
# @param [Google::Apis::RequestOptions] options
|
413
342
|
# Request-specific options
|
414
343
|
#
|
415
344
|
# @yield [result, err] Result & error if block supplied
|
416
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
345
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListLiensResponse] parsed result object
|
417
346
|
# @yieldparam err [StandardError] error object if request failed
|
418
347
|
#
|
419
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
348
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ListLiensResponse]
|
420
349
|
#
|
421
350
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
422
351
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
423
352
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
424
|
-
def
|
425
|
-
command = make_simple_command(:
|
426
|
-
command.
|
427
|
-
command.
|
428
|
-
command.
|
429
|
-
command.
|
430
|
-
command.
|
431
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
353
|
+
def list_liens(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
354
|
+
command = make_simple_command(:get, 'v1/liens', options)
|
355
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListLiensResponse::Representation
|
356
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::ListLiensResponse
|
357
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
358
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
359
|
+
command.query['parent'] = parent unless parent.nil?
|
432
360
|
command.query['fields'] = fields unless fields.nil?
|
361
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
433
362
|
execute_or_queue_command(command, &block)
|
434
363
|
end
|
435
364
|
|
@@ -438,11 +367,11 @@ module Google
|
|
438
367
|
# service.
|
439
368
|
# @param [String] name
|
440
369
|
# The name of the operation resource.
|
370
|
+
# @param [String] fields
|
371
|
+
# Selector specifying which fields to include in a partial response.
|
441
372
|
# @param [String] quota_user
|
442
373
|
# Available to use for quota purposes for server-side applications. Can be any
|
443
374
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
444
|
-
# @param [String] fields
|
445
|
-
# Selector specifying which fields to include in a partial response.
|
446
375
|
# @param [Google::Apis::RequestOptions] options
|
447
376
|
# Request-specific options
|
448
377
|
#
|
@@ -455,27 +384,25 @@ module Google
|
|
455
384
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
456
385
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
457
386
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
458
|
-
def get_operation(name,
|
387
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
459
388
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
460
389
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
|
461
390
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
|
462
391
|
command.params['name'] = name unless name.nil?
|
463
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
464
392
|
command.query['fields'] = fields unless fields.nil?
|
393
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
465
394
|
execute_or_queue_command(command, &block)
|
466
395
|
end
|
467
396
|
|
468
|
-
#
|
469
|
-
#
|
470
|
-
#
|
471
|
-
#
|
472
|
-
# @param [String]
|
473
|
-
#
|
397
|
+
# Clears a `Policy` from a resource.
|
398
|
+
# @param [String] resource
|
399
|
+
# Name of the resource for the `Policy` to clear.
|
400
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
|
401
|
+
# @param [String] fields
|
402
|
+
# Selector specifying which fields to include in a partial response.
|
474
403
|
# @param [String] quota_user
|
475
404
|
# Available to use for quota purposes for server-side applications. Can be any
|
476
405
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
477
|
-
# @param [String] fields
|
478
|
-
# Selector specifying which fields to include in a partial response.
|
479
406
|
# @param [Google::Apis::RequestOptions] options
|
480
407
|
# Request-specific options
|
481
408
|
#
|
@@ -488,135 +415,134 @@ module Google
|
|
488
415
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
489
416
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
490
417
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
491
|
-
def
|
492
|
-
command = make_simple_command(:
|
418
|
+
def clear_organization_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
419
|
+
command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
|
420
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
|
421
|
+
command.request_object = clear_org_policy_request_object
|
493
422
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
494
423
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
495
|
-
command.params['
|
496
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
424
|
+
command.params['resource'] = resource unless resource.nil?
|
497
425
|
command.query['fields'] = fields unless fields.nil?
|
426
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
498
427
|
execute_or_queue_command(command, &block)
|
499
428
|
end
|
500
429
|
|
501
|
-
#
|
502
|
-
#
|
503
|
-
#
|
504
|
-
#
|
505
|
-
#
|
506
|
-
# The name of the resource to list all attached Liens.
|
507
|
-
# For example, `projects/1234`.
|
508
|
-
# @param [String] page_token
|
509
|
-
# The `next_page_token` value returned from a previous List request, if any.
|
510
|
-
# @param [Fixnum] page_size
|
511
|
-
# The maximum number of items to return. This is a suggestion for the server.
|
430
|
+
# Fetches an Organization resource identified by the specified resource name.
|
431
|
+
# @param [String] name
|
432
|
+
# The resource name of the Organization to fetch, e.g. "organizations/1234".
|
433
|
+
# @param [String] fields
|
434
|
+
# Selector specifying which fields to include in a partial response.
|
512
435
|
# @param [String] quota_user
|
513
436
|
# Available to use for quota purposes for server-side applications. Can be any
|
514
437
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
515
|
-
# @param [String] fields
|
516
|
-
# Selector specifying which fields to include in a partial response.
|
517
438
|
# @param [Google::Apis::RequestOptions] options
|
518
439
|
# Request-specific options
|
519
440
|
#
|
520
441
|
# @yield [result, err] Result & error if block supplied
|
521
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
442
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object
|
522
443
|
# @yieldparam err [StandardError] error object if request failed
|
523
444
|
#
|
524
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
445
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Organization]
|
525
446
|
#
|
526
447
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
527
448
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
528
449
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
529
|
-
def
|
530
|
-
command = make_simple_command(:get, 'v1/
|
531
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
532
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
533
|
-
command.
|
534
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
535
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
536
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
450
|
+
def get_organization(name, fields: nil, quota_user: nil, options: nil, &block)
|
451
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
452
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
|
453
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
|
454
|
+
command.params['name'] = name unless name.nil?
|
537
455
|
command.query['fields'] = fields unless fields.nil?
|
456
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
538
457
|
execute_or_queue_command(command, &block)
|
539
458
|
end
|
540
459
|
|
541
|
-
#
|
542
|
-
#
|
543
|
-
#
|
544
|
-
#
|
545
|
-
#
|
546
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
460
|
+
# Gets the effective `Policy` on a resource. This is the result of merging
|
461
|
+
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
462
|
+
# an `etag`set because it is a computed `Policy` across multiple resources.
|
463
|
+
# @param [String] resource
|
464
|
+
# The name of the resource to start computing the effective `Policy`.
|
465
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
466
|
+
# @param [String] fields
|
467
|
+
# Selector specifying which fields to include in a partial response.
|
547
468
|
# @param [String] quota_user
|
548
469
|
# Available to use for quota purposes for server-side applications. Can be any
|
549
470
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
550
|
-
# @param [String] fields
|
551
|
-
# Selector specifying which fields to include in a partial response.
|
552
471
|
# @param [Google::Apis::RequestOptions] options
|
553
472
|
# Request-specific options
|
554
473
|
#
|
555
474
|
# @yield [result, err] Result & error if block supplied
|
556
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
475
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
557
476
|
# @yieldparam err [StandardError] error object if request failed
|
558
477
|
#
|
559
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
478
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
560
479
|
#
|
561
480
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
562
481
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
563
482
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
564
|
-
def
|
565
|
-
command = make_simple_command(:post, 'v1/
|
566
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
567
|
-
command.request_object =
|
568
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
569
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
570
|
-
command.
|
483
|
+
def get_organization_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
484
|
+
command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
|
485
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
|
486
|
+
command.request_object = get_effective_org_policy_request_object
|
487
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
488
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
489
|
+
command.params['resource'] = resource unless resource.nil?
|
571
490
|
command.query['fields'] = fields unless fields.nil?
|
491
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
572
492
|
execute_or_queue_command(command, &block)
|
573
493
|
end
|
574
494
|
|
575
|
-
#
|
495
|
+
# Gets the access control policy for an Organization resource. May be empty
|
496
|
+
# if no such policy or resource exists. The `resource` field should be the
|
497
|
+
# organization's resource name, e.g. "organizations/123".
|
498
|
+
# Authorization requires the Google IAM permission
|
499
|
+
# `resourcemanager.organizations.getIamPolicy` on the specified organization
|
576
500
|
# @param [String] resource
|
577
|
-
#
|
578
|
-
#
|
501
|
+
# REQUIRED: The resource for which the policy is being requested.
|
502
|
+
# See the operation documentation for the appropriate value for this field.
|
503
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
504
|
+
# @param [String] fields
|
505
|
+
# Selector specifying which fields to include in a partial response.
|
579
506
|
# @param [String] quota_user
|
580
507
|
# Available to use for quota purposes for server-side applications. Can be any
|
581
508
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
582
|
-
# @param [String] fields
|
583
|
-
# Selector specifying which fields to include in a partial response.
|
584
509
|
# @param [Google::Apis::RequestOptions] options
|
585
510
|
# Request-specific options
|
586
511
|
#
|
587
512
|
# @yield [result, err] Result & error if block supplied
|
588
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
513
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
|
589
514
|
# @yieldparam err [StandardError] error object if request failed
|
590
515
|
#
|
591
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
516
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
|
592
517
|
#
|
593
518
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
594
519
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
595
520
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
596
|
-
def
|
597
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
598
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
599
|
-
command.request_object =
|
600
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
601
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
521
|
+
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
522
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
523
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
|
524
|
+
command.request_object = get_iam_policy_request_object
|
525
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
526
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
|
602
527
|
command.params['resource'] = resource unless resource.nil?
|
603
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
604
528
|
command.query['fields'] = fields unless fields.nil?
|
529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
605
530
|
execute_or_queue_command(command, &block)
|
606
531
|
end
|
607
532
|
|
608
|
-
#
|
609
|
-
#
|
610
|
-
#
|
611
|
-
#
|
533
|
+
# Gets a `Policy` on a resource.
|
534
|
+
# If no `Policy` is set on the resource, a `Policy` is returned with default
|
535
|
+
# values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
|
536
|
+
# `etag` value can be used with `SetOrgPolicy()` to create or update a
|
537
|
+
# `Policy` during read-modify-write.
|
612
538
|
# @param [String] resource
|
613
|
-
#
|
614
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
539
|
+
# Name of the resource the `Policy` is set on.
|
540
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
|
541
|
+
# @param [String] fields
|
542
|
+
# Selector specifying which fields to include in a partial response.
|
615
543
|
# @param [String] quota_user
|
616
544
|
# Available to use for quota purposes for server-side applications. Can be any
|
617
545
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
618
|
-
# @param [String] fields
|
619
|
-
# Selector specifying which fields to include in a partial response.
|
620
546
|
# @param [Google::Apis::RequestOptions] options
|
621
547
|
# Request-specific options
|
622
548
|
#
|
@@ -629,15 +555,15 @@ module Google
|
|
629
555
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
630
556
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
631
557
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
632
|
-
def
|
633
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
634
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
635
|
-
command.request_object =
|
558
|
+
def get_organization_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
559
|
+
command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
|
560
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
|
561
|
+
command.request_object = get_org_policy_request_object
|
636
562
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
637
563
|
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
638
564
|
command.params['resource'] = resource unless resource.nil?
|
639
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
640
565
|
command.query['fields'] = fields unless fields.nil?
|
566
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
641
567
|
execute_or_queue_command(command, &block)
|
642
568
|
end
|
643
569
|
|
@@ -645,11 +571,11 @@ module Google
|
|
645
571
|
# @param [String] resource
|
646
572
|
# Name of the resource to list `Constraints` for.
|
647
573
|
# @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
|
574
|
+
# @param [String] fields
|
575
|
+
# Selector specifying which fields to include in a partial response.
|
648
576
|
# @param [String] quota_user
|
649
577
|
# Available to use for quota purposes for server-side applications. Can be any
|
650
578
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
651
|
-
# @param [String] fields
|
652
|
-
# Selector specifying which fields to include in a partial response.
|
653
579
|
# @param [Google::Apis::RequestOptions] options
|
654
580
|
# Request-specific options
|
655
581
|
#
|
@@ -662,15 +588,15 @@ module Google
|
|
662
588
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
663
589
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
664
590
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
665
|
-
def
|
591
|
+
def list_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
666
592
|
command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
|
667
593
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
|
668
594
|
command.request_object = list_available_org_policy_constraints_request_object
|
669
595
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
|
670
596
|
command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
|
671
597
|
command.params['resource'] = resource unless resource.nil?
|
672
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
673
598
|
command.query['fields'] = fields unless fields.nil?
|
599
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
674
600
|
execute_or_queue_command(command, &block)
|
675
601
|
end
|
676
602
|
|
@@ -678,11 +604,11 @@ module Google
|
|
678
604
|
# @param [String] resource
|
679
605
|
# Name of the resource to list Policies for.
|
680
606
|
# @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
|
607
|
+
# @param [String] fields
|
608
|
+
# Selector specifying which fields to include in a partial response.
|
681
609
|
# @param [String] quota_user
|
682
610
|
# Available to use for quota purposes for server-side applications. Can be any
|
683
611
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
684
|
-
# @param [String] fields
|
685
|
-
# Selector specifying which fields to include in a partial response.
|
686
612
|
# @param [Google::Apis::RequestOptions] options
|
687
613
|
# Request-specific options
|
688
614
|
#
|
@@ -695,66 +621,103 @@ module Google
|
|
695
621
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
696
622
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
697
623
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
698
|
-
def
|
624
|
+
def list_organization_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
699
625
|
command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
|
700
626
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
|
701
627
|
command.request_object = list_org_policies_request_object
|
702
628
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
|
703
629
|
command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
|
704
630
|
command.params['resource'] = resource unless resource.nil?
|
705
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
706
631
|
command.query['fields'] = fields unless fields.nil?
|
632
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
707
633
|
execute_or_queue_command(command, &block)
|
708
634
|
end
|
709
635
|
|
710
|
-
#
|
711
|
-
#
|
712
|
-
#
|
713
|
-
#
|
714
|
-
#
|
715
|
-
#
|
716
|
-
#
|
717
|
-
# @param [
|
636
|
+
# Searches Organization resources that are visible to the user and satisfy
|
637
|
+
# the specified filter. This method returns Organizations in an unspecified
|
638
|
+
# order. New Organizations do not necessarily appear at the end of the
|
639
|
+
# results.
|
640
|
+
# Search will only return organizations on which the user has the permission
|
641
|
+
# `resourcemanager.organizations.get`
|
642
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
|
643
|
+
# @param [String] fields
|
644
|
+
# Selector specifying which fields to include in a partial response.
|
718
645
|
# @param [String] quota_user
|
719
646
|
# Available to use for quota purposes for server-side applications. Can be any
|
720
647
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
721
|
-
# @param [String] fields
|
722
|
-
# Selector specifying which fields to include in a partial response.
|
723
648
|
# @param [Google::Apis::RequestOptions] options
|
724
649
|
# Request-specific options
|
725
650
|
#
|
726
651
|
# @yield [result, err] Result & error if block supplied
|
727
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
652
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
|
728
653
|
# @yieldparam err [StandardError] error object if request failed
|
729
654
|
#
|
730
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
655
|
+
# @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
|
731
656
|
#
|
732
657
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
733
658
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
734
659
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
735
|
-
def
|
736
|
-
command = make_simple_command(:post, 'v1/
|
737
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
738
|
-
command.request_object =
|
739
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
740
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
741
|
-
command.
|
742
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
743
|
-
command
|
744
|
-
execute_or_queue_command(command, &block)
|
660
|
+
def search_organizations(search_organizations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
661
|
+
command = make_simple_command(:post, 'v1/organizations:search', options)
|
662
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
|
663
|
+
command.request_object = search_organizations_request_object
|
664
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
|
665
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
|
666
|
+
command.query['fields'] = fields unless fields.nil?
|
667
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
668
|
+
execute_or_queue_command(command, &block)
|
745
669
|
end
|
746
670
|
|
747
|
-
#
|
748
|
-
#
|
749
|
-
#
|
671
|
+
# Sets the access control policy on an Organization resource. Replaces any
|
672
|
+
# existing policy. The `resource` field should be the organization's resource
|
673
|
+
# name, e.g. "organizations/123".
|
674
|
+
# Authorization requires the Google IAM permission
|
675
|
+
# `resourcemanager.organizations.setIamPolicy` on the specified organization
|
750
676
|
# @param [String] resource
|
751
|
-
# The
|
752
|
-
#
|
677
|
+
# REQUIRED: The resource for which the policy is being specified.
|
678
|
+
# See the operation documentation for the appropriate value for this field.
|
679
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
680
|
+
# @param [String] fields
|
681
|
+
# Selector specifying which fields to include in a partial response.
|
753
682
|
# @param [String] quota_user
|
754
683
|
# Available to use for quota purposes for server-side applications. Can be any
|
755
684
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
685
|
+
# @param [Google::Apis::RequestOptions] options
|
686
|
+
# Request-specific options
|
687
|
+
#
|
688
|
+
# @yield [result, err] Result & error if block supplied
|
689
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
|
690
|
+
# @yieldparam err [StandardError] error object if request failed
|
691
|
+
#
|
692
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
|
693
|
+
#
|
694
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
695
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
696
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
697
|
+
def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
698
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
699
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
|
700
|
+
command.request_object = set_iam_policy_request_object
|
701
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
702
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
|
703
|
+
command.params['resource'] = resource unless resource.nil?
|
704
|
+
command.query['fields'] = fields unless fields.nil?
|
705
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
706
|
+
execute_or_queue_command(command, &block)
|
707
|
+
end
|
708
|
+
|
709
|
+
# Updates the specified `Policy` on the resource. Creates a new `Policy` for
|
710
|
+
# that `Constraint` on the resource if one does not exist.
|
711
|
+
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
712
|
+
# write of the `Policy`.
|
713
|
+
# @param [String] resource
|
714
|
+
# Resource name of the resource to attach the `Policy`.
|
715
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
|
756
716
|
# @param [String] fields
|
757
717
|
# Selector specifying which fields to include in a partial response.
|
718
|
+
# @param [String] quota_user
|
719
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
720
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
758
721
|
# @param [Google::Apis::RequestOptions] options
|
759
722
|
# Request-specific options
|
760
723
|
#
|
@@ -767,225 +730,242 @@ module Google
|
|
767
730
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
768
731
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
769
732
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
770
|
-
def
|
771
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
772
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
773
|
-
command.request_object =
|
733
|
+
def set_organization_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
734
|
+
command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
|
735
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
|
736
|
+
command.request_object = set_org_policy_request_object
|
774
737
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
775
738
|
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
776
739
|
command.params['resource'] = resource unless resource.nil?
|
777
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
778
740
|
command.query['fields'] = fields unless fields.nil?
|
741
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
779
742
|
execute_or_queue_command(command, &block)
|
780
743
|
end
|
781
744
|
|
782
|
-
#
|
783
|
-
#
|
784
|
-
#
|
785
|
-
#
|
786
|
-
# `members` in a `Binding` of a `Policy`.
|
787
|
-
# + The owner role can be granted only to `user` and `serviceAccount`.
|
788
|
-
# + Service accounts can be made owners of a project directly
|
789
|
-
# without any restrictions. However, to be added as an owner, a user must be
|
790
|
-
# invited via Cloud Platform console and must accept the invitation.
|
791
|
-
# + A user cannot be granted the owner role using `setIamPolicy()`. The user
|
792
|
-
# must be granted the owner role using the Cloud Platform Console and must
|
793
|
-
# explicitly accept the invitation.
|
794
|
-
# + Invitations to grant the owner role cannot be sent using
|
795
|
-
# `setIamPolicy()`;
|
796
|
-
# they must be sent only using the Cloud Platform Console.
|
797
|
-
# + Membership changes that leave the project without any owners that have
|
798
|
-
# accepted the Terms of Service (ToS) will be rejected.
|
799
|
-
# + If the project is not part of an organization, there must be at least
|
800
|
-
# one owner who has accepted the Terms of Service (ToS) agreement in the
|
801
|
-
# policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner
|
802
|
-
# from the policy will fail. This restriction also applies to legacy
|
803
|
-
# projects that no longer have owners who have accepted the ToS. Edits to
|
804
|
-
# IAM policies will be rejected until the lack of a ToS-accepting owner is
|
805
|
-
# rectified.
|
806
|
-
# + Calling this method requires enabling the App Engine Admin API.
|
807
|
-
# Note: Removing service accounts from policies or changing their roles
|
808
|
-
# can render services completely inoperable. It is important to understand
|
809
|
-
# how the service account is being used before removing or updating its
|
810
|
-
# roles.
|
811
|
-
# Authorization requires the Google IAM permission
|
812
|
-
# `resourcemanager.projects.setIamPolicy` on the project
|
745
|
+
# Returns permissions that a caller has on the specified Organization.
|
746
|
+
# The `resource` field should be the organization's resource name,
|
747
|
+
# e.g. "organizations/123".
|
748
|
+
# There are no permissions required for making this API call.
|
813
749
|
# @param [String] resource
|
814
|
-
# REQUIRED: The resource for which the policy is being
|
750
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
815
751
|
# See the operation documentation for the appropriate value for this field.
|
816
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
752
|
+
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
753
|
+
# @param [String] fields
|
754
|
+
# Selector specifying which fields to include in a partial response.
|
817
755
|
# @param [String] quota_user
|
818
756
|
# Available to use for quota purposes for server-side applications. Can be any
|
819
757
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
820
|
-
# @param [String] fields
|
821
|
-
# Selector specifying which fields to include in a partial response.
|
822
758
|
# @param [Google::Apis::RequestOptions] options
|
823
759
|
# Request-specific options
|
824
760
|
#
|
825
761
|
# @yield [result, err] Result & error if block supplied
|
826
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
762
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
|
827
763
|
# @yieldparam err [StandardError] error object if request failed
|
828
764
|
#
|
829
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
765
|
+
# @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
|
830
766
|
#
|
831
767
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
832
768
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
833
769
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
834
|
-
def
|
835
|
-
command = make_simple_command(:post, 'v1/
|
836
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
837
|
-
command.request_object =
|
838
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
839
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
770
|
+
def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
771
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
772
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
|
773
|
+
command.request_object = test_iam_permissions_request_object
|
774
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
|
775
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
|
840
776
|
command.params['resource'] = resource unless resource.nil?
|
841
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
842
777
|
command.query['fields'] = fields unless fields.nil?
|
778
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
843
779
|
execute_or_queue_command(command, &block)
|
844
780
|
end
|
845
781
|
|
846
|
-
#
|
782
|
+
# Clears a `Policy` from a resource.
|
847
783
|
# @param [String] resource
|
848
|
-
# Name of the resource
|
849
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
784
|
+
# Name of the resource for the `Policy` to clear.
|
785
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
|
786
|
+
# @param [String] fields
|
787
|
+
# Selector specifying which fields to include in a partial response.
|
850
788
|
# @param [String] quota_user
|
851
789
|
# Available to use for quota purposes for server-side applications. Can be any
|
852
790
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
853
|
-
# @param [String] fields
|
854
|
-
# Selector specifying which fields to include in a partial response.
|
855
791
|
# @param [Google::Apis::RequestOptions] options
|
856
792
|
# Request-specific options
|
857
793
|
#
|
858
794
|
# @yield [result, err] Result & error if block supplied
|
859
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
795
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
860
796
|
# @yieldparam err [StandardError] error object if request failed
|
861
797
|
#
|
862
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
798
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
863
799
|
#
|
864
800
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
865
801
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
866
802
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
867
|
-
def
|
868
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
869
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
870
|
-
command.request_object =
|
871
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
872
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
803
|
+
def clear_project_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
804
|
+
command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
|
805
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
|
806
|
+
command.request_object = clear_org_policy_request_object
|
807
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
808
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
873
809
|
command.params['resource'] = resource unless resource.nil?
|
874
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
875
810
|
command.query['fields'] = fields unless fields.nil?
|
811
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
876
812
|
execute_or_queue_command(command, &block)
|
877
813
|
end
|
878
814
|
|
879
|
-
#
|
880
|
-
#
|
815
|
+
# Request that a new Project be created. The result is an Operation which
|
816
|
+
# can be used to track the creation process. It is automatically deleted
|
817
|
+
# after a few hours, so there is no need to call DeleteOperation.
|
818
|
+
# Our SLO permits Project creation to take up to 30 seconds at the 90th
|
819
|
+
# percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
|
820
|
+
# latency. 95th percentile latency is around 11 seconds. We recommend
|
821
|
+
# polling at the 5th second with an exponential backoff.
|
881
822
|
# Authorization requires the Google IAM permission
|
882
|
-
# `resourcemanager.projects.
|
883
|
-
#
|
884
|
-
#
|
885
|
-
#
|
886
|
-
#
|
823
|
+
# `resourcemanager.projects.create` on the specified parent for the new
|
824
|
+
# project.
|
825
|
+
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
|
826
|
+
# @param [String] fields
|
827
|
+
# Selector specifying which fields to include in a partial response.
|
887
828
|
# @param [String] quota_user
|
888
829
|
# Available to use for quota purposes for server-side applications. Can be any
|
889
830
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
890
|
-
# @param [String] fields
|
891
|
-
# Selector specifying which fields to include in a partial response.
|
892
831
|
# @param [Google::Apis::RequestOptions] options
|
893
832
|
# Request-specific options
|
894
833
|
#
|
895
834
|
# @yield [result, err] Result & error if block supplied
|
896
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
835
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
|
897
836
|
# @yieldparam err [StandardError] error object if request failed
|
898
837
|
#
|
899
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
838
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Operation]
|
900
839
|
#
|
901
840
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
902
841
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
903
842
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
904
|
-
def
|
905
|
-
command = make_simple_command(:post, 'v1/projects
|
906
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
907
|
-
command.request_object =
|
908
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
909
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
910
|
-
command.params['resource'] = resource unless resource.nil?
|
911
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
843
|
+
def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
844
|
+
command = make_simple_command(:post, 'v1/projects', options)
|
845
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
846
|
+
command.request_object = project_object
|
847
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
|
848
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
|
912
849
|
command.query['fields'] = fields unless fields.nil?
|
850
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
913
851
|
execute_or_queue_command(command, &block)
|
914
852
|
end
|
915
853
|
|
916
|
-
#
|
917
|
-
#
|
918
|
-
#
|
919
|
-
#
|
920
|
-
#
|
921
|
-
#
|
922
|
-
#
|
923
|
-
#
|
854
|
+
# Marks the Project identified by the specified
|
855
|
+
# `project_id` (for example, `my-project-123`) for deletion.
|
856
|
+
# This method will only affect the Project if the following criteria are met:
|
857
|
+
# + The Project does not have a billing account associated with it.
|
858
|
+
# + The Project has a lifecycle state of
|
859
|
+
# ACTIVE.
|
860
|
+
# This method changes the Project's lifecycle state from
|
861
|
+
# ACTIVE
|
862
|
+
# to DELETE_REQUESTED.
|
863
|
+
# The deletion starts at an unspecified time,
|
864
|
+
# at which point the Project is no longer accessible.
|
865
|
+
# Until the deletion completes, you can check the lifecycle state
|
866
|
+
# checked by retrieving the Project with GetProject,
|
867
|
+
# and the Project remains visible to ListProjects.
|
868
|
+
# However, you cannot update the project.
|
869
|
+
# After the deletion completes, the Project is not retrievable by
|
870
|
+
# the GetProject and
|
871
|
+
# ListProjects methods.
|
872
|
+
# The caller must have modify permissions for this Project.
|
873
|
+
# @param [String] project_id
|
874
|
+
# The Project ID (for example, `foo-bar-123`).
|
875
|
+
# Required.
|
876
|
+
# @param [String] fields
|
877
|
+
# Selector specifying which fields to include in a partial response.
|
924
878
|
# @param [String] quota_user
|
925
879
|
# Available to use for quota purposes for server-side applications. Can be any
|
926
880
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
927
|
-
# @param [String] fields
|
928
|
-
# Selector specifying which fields to include in a partial response.
|
929
881
|
# @param [Google::Apis::RequestOptions] options
|
930
882
|
# Request-specific options
|
931
883
|
#
|
932
884
|
# @yield [result, err] Result & error if block supplied
|
933
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
885
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
934
886
|
# @yieldparam err [StandardError] error object if request failed
|
935
887
|
#
|
936
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
888
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
937
889
|
#
|
938
890
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
939
891
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
940
892
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
941
|
-
def
|
942
|
-
command = make_simple_command(:
|
943
|
-
command.
|
944
|
-
command.
|
945
|
-
command.
|
946
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
947
|
-
command.params['resource'] = resource unless resource.nil?
|
948
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
893
|
+
def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
894
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}', options)
|
895
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
896
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
897
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
949
898
|
command.query['fields'] = fields unless fields.nil?
|
899
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
950
900
|
execute_or_queue_command(command, &block)
|
951
901
|
end
|
952
902
|
|
953
|
-
#
|
903
|
+
# Retrieves the Project identified by the specified
|
954
904
|
# `project_id` (for example, `my-project-123`).
|
955
|
-
#
|
956
|
-
# DELETE_REQUESTED.
|
957
|
-
# After deletion starts, the Project cannot be restored.
|
958
|
-
# The caller must have modify permissions for this Project.
|
905
|
+
# The caller must have read permissions for this Project.
|
959
906
|
# @param [String] project_id
|
960
|
-
# The
|
907
|
+
# The Project ID (for example, `my-project-123`).
|
961
908
|
# Required.
|
962
|
-
# @param [
|
909
|
+
# @param [String] fields
|
910
|
+
# Selector specifying which fields to include in a partial response.
|
963
911
|
# @param [String] quota_user
|
964
912
|
# Available to use for quota purposes for server-side applications. Can be any
|
965
913
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
914
|
+
# @param [Google::Apis::RequestOptions] options
|
915
|
+
# Request-specific options
|
916
|
+
#
|
917
|
+
# @yield [result, err] Result & error if block supplied
|
918
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
|
919
|
+
# @yieldparam err [StandardError] error object if request failed
|
920
|
+
#
|
921
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Project]
|
922
|
+
#
|
923
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
924
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
925
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
926
|
+
def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
927
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}', options)
|
928
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
929
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Project
|
930
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
931
|
+
command.query['fields'] = fields unless fields.nil?
|
932
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
933
|
+
execute_or_queue_command(command, &block)
|
934
|
+
end
|
935
|
+
|
936
|
+
# Gets a list of ancestors in the resource hierarchy for the Project
|
937
|
+
# identified by the specified `project_id` (for example, `my-project-123`).
|
938
|
+
# The caller must have read permissions for this Project.
|
939
|
+
# @param [String] project_id
|
940
|
+
# The Project ID (for example, `my-project-123`).
|
941
|
+
# Required.
|
942
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetAncestryRequest] get_ancestry_request_object
|
966
943
|
# @param [String] fields
|
967
944
|
# Selector specifying which fields to include in a partial response.
|
945
|
+
# @param [String] quota_user
|
946
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
947
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
968
948
|
# @param [Google::Apis::RequestOptions] options
|
969
949
|
# Request-specific options
|
970
950
|
#
|
971
951
|
# @yield [result, err] Result & error if block supplied
|
972
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
952
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse] parsed result object
|
973
953
|
# @yieldparam err [StandardError] error object if request failed
|
974
954
|
#
|
975
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
955
|
+
# @return [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse]
|
976
956
|
#
|
977
957
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
978
958
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
979
959
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
980
|
-
def
|
981
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}:
|
982
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
983
|
-
command.request_object =
|
984
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
985
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
960
|
+
def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
961
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}:getAncestry', options)
|
962
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryRequest::Representation
|
963
|
+
command.request_object = get_ancestry_request_object
|
964
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse::Representation
|
965
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse
|
986
966
|
command.params['projectId'] = project_id unless project_id.nil?
|
987
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
988
967
|
command.query['fields'] = fields unless fields.nil?
|
968
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
989
969
|
execute_or_queue_command(command, &block)
|
990
970
|
end
|
991
971
|
|
@@ -995,11 +975,11 @@ module Google
|
|
995
975
|
# @param [String] resource
|
996
976
|
# The name of the resource to start computing the effective `Policy`.
|
997
977
|
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
978
|
+
# @param [String] fields
|
979
|
+
# Selector specifying which fields to include in a partial response.
|
998
980
|
# @param [String] quota_user
|
999
981
|
# Available to use for quota purposes for server-side applications. Can be any
|
1000
982
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1001
|
-
# @param [String] fields
|
1002
|
-
# Selector specifying which fields to include in a partial response.
|
1003
983
|
# @param [Google::Apis::RequestOptions] options
|
1004
984
|
# Request-specific options
|
1005
985
|
#
|
@@ -1012,62 +992,95 @@ module Google
|
|
1012
992
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1013
993
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1014
994
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1015
|
-
def get_project_effective_org_policy(resource, get_effective_org_policy_request_object = nil,
|
995
|
+
def get_project_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1016
996
|
command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
|
1017
997
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
|
1018
998
|
command.request_object = get_effective_org_policy_request_object
|
1019
999
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
1020
1000
|
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
1021
1001
|
command.params['resource'] = resource unless resource.nil?
|
1022
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1023
1002
|
command.query['fields'] = fields unless fields.nil?
|
1003
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1024
1004
|
execute_or_queue_command(command, &block)
|
1025
1005
|
end
|
1026
1006
|
|
1027
|
-
#
|
1028
|
-
#
|
1029
|
-
#
|
1030
|
-
#
|
1031
|
-
#
|
1032
|
-
#
|
1033
|
-
#
|
1007
|
+
# Returns the IAM access control policy for the specified Project.
|
1008
|
+
# Permission is denied if the policy or the resource does not exist.
|
1009
|
+
# Authorization requires the Google IAM permission
|
1010
|
+
# `resourcemanager.projects.getIamPolicy` on the project
|
1011
|
+
# @param [String] resource
|
1012
|
+
# REQUIRED: The resource for which the policy is being requested.
|
1013
|
+
# See the operation documentation for the appropriate value for this field.
|
1014
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
1015
|
+
# @param [String] fields
|
1016
|
+
# Selector specifying which fields to include in a partial response.
|
1034
1017
|
# @param [String] quota_user
|
1035
1018
|
# Available to use for quota purposes for server-side applications. Can be any
|
1036
1019
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1020
|
+
# @param [Google::Apis::RequestOptions] options
|
1021
|
+
# Request-specific options
|
1022
|
+
#
|
1023
|
+
# @yield [result, err] Result & error if block supplied
|
1024
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
|
1025
|
+
# @yieldparam err [StandardError] error object if request failed
|
1026
|
+
#
|
1027
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
|
1028
|
+
#
|
1029
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1030
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1031
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1032
|
+
def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1033
|
+
command = make_simple_command(:post, 'v1/projects/{resource}:getIamPolicy', options)
|
1034
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
|
1035
|
+
command.request_object = get_iam_policy_request_object
|
1036
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
1037
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
|
1038
|
+
command.params['resource'] = resource unless resource.nil?
|
1039
|
+
command.query['fields'] = fields unless fields.nil?
|
1040
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1041
|
+
execute_or_queue_command(command, &block)
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
# Gets a `Policy` on a resource.
|
1045
|
+
# If no `Policy` is set on the resource, a `Policy` is returned with default
|
1046
|
+
# values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
|
1047
|
+
# `etag` value can be used with `SetOrgPolicy()` to create or update a
|
1048
|
+
# `Policy` during read-modify-write.
|
1049
|
+
# @param [String] resource
|
1050
|
+
# Name of the resource the `Policy` is set on.
|
1051
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
|
1037
1052
|
# @param [String] fields
|
1038
1053
|
# Selector specifying which fields to include in a partial response.
|
1054
|
+
# @param [String] quota_user
|
1055
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1056
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1039
1057
|
# @param [Google::Apis::RequestOptions] options
|
1040
1058
|
# Request-specific options
|
1041
1059
|
#
|
1042
1060
|
# @yield [result, err] Result & error if block supplied
|
1043
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
1061
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
1044
1062
|
# @yieldparam err [StandardError] error object if request failed
|
1045
1063
|
#
|
1046
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
1064
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
1047
1065
|
#
|
1048
1066
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1049
1067
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1050
1068
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1051
|
-
def
|
1052
|
-
command = make_simple_command(:
|
1053
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
1054
|
-
command.request_object =
|
1055
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
1056
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
1057
|
-
command.params['
|
1058
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1069
|
+
def get_project_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1070
|
+
command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
|
1071
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
|
1072
|
+
command.request_object = get_org_policy_request_object
|
1073
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
1074
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
1075
|
+
command.params['resource'] = resource unless resource.nil?
|
1059
1076
|
command.query['fields'] = fields unless fields.nil?
|
1077
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1060
1078
|
execute_or_queue_command(command, &block)
|
1061
1079
|
end
|
1062
1080
|
|
1063
1081
|
# Lists Projects that are visible to the user and satisfy the
|
1064
1082
|
# specified filter. This method returns Projects in an unspecified order.
|
1065
1083
|
# New Projects do not necessarily appear at the end of the list.
|
1066
|
-
# @param [Fixnum] page_size
|
1067
|
-
# The maximum number of Projects to return in the response.
|
1068
|
-
# The server can return fewer Projects than requested.
|
1069
|
-
# If unspecified, server picks an appropriate default.
|
1070
|
-
# Optional.
|
1071
1084
|
# @param [String] filter
|
1072
1085
|
# An expression for filtering the results of the request. Filter rules are
|
1073
1086
|
# case insensitive. The fields eligible for filtering are:
|
@@ -1094,15 +1107,20 @@ module Google
|
|
1094
1107
|
# filters have been applied. If no filter is specified, the call will return
|
1095
1108
|
# projects for which the user has `resourcemanager.projects.get` permissions.
|
1096
1109
|
# Optional.
|
1110
|
+
# @param [Fixnum] page_size
|
1111
|
+
# The maximum number of Projects to return in the response.
|
1112
|
+
# The server can return fewer Projects than requested.
|
1113
|
+
# If unspecified, server picks an appropriate default.
|
1114
|
+
# Optional.
|
1097
1115
|
# @param [String] page_token
|
1098
1116
|
# A pagination token returned from a previous call to ListProjects
|
1099
1117
|
# that indicates from where listing should continue.
|
1100
1118
|
# Optional.
|
1119
|
+
# @param [String] fields
|
1120
|
+
# Selector specifying which fields to include in a partial response.
|
1101
1121
|
# @param [String] quota_user
|
1102
1122
|
# Available to use for quota purposes for server-side applications. Can be any
|
1103
1123
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1104
|
-
# @param [String] fields
|
1105
|
-
# Selector specifying which fields to include in a partial response.
|
1106
1124
|
# @param [Google::Apis::RequestOptions] options
|
1107
1125
|
# Request-specific options
|
1108
1126
|
#
|
@@ -1115,90 +1133,48 @@ module Google
|
|
1115
1133
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1116
1134
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1117
1135
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1118
|
-
def list_projects(
|
1136
|
+
def list_projects(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1119
1137
|
command = make_simple_command(:get, 'v1/projects', options)
|
1120
1138
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse::Representation
|
1121
1139
|
command.response_class = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse
|
1122
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1123
1140
|
command.query['filter'] = filter unless filter.nil?
|
1141
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1124
1142
|
command.query['pageToken'] = page_token unless page_token.nil?
|
1125
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1126
1143
|
command.query['fields'] = fields unless fields.nil?
|
1144
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1127
1145
|
execute_or_queue_command(command, &block)
|
1128
1146
|
end
|
1129
1147
|
|
1130
|
-
#
|
1131
|
-
# that `Constraint` on the resource if one does not exist.
|
1132
|
-
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
1133
|
-
# write of the `Policy`.
|
1148
|
+
# Lists `Constraints` that could be applied on the specified resource.
|
1134
1149
|
# @param [String] resource
|
1135
|
-
#
|
1136
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
1137
|
-
# @param [String] quota_user
|
1138
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1139
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1150
|
+
# Name of the resource to list `Constraints` for.
|
1151
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
|
1140
1152
|
# @param [String] fields
|
1141
1153
|
# Selector specifying which fields to include in a partial response.
|
1142
|
-
# @param [Google::Apis::RequestOptions] options
|
1143
|
-
# Request-specific options
|
1144
|
-
#
|
1145
|
-
# @yield [result, err] Result & error if block supplied
|
1146
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
1147
|
-
# @yieldparam err [StandardError] error object if request failed
|
1148
|
-
#
|
1149
|
-
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
1150
|
-
#
|
1151
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1152
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1153
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1154
|
-
def set_project_org_policy(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
1155
|
-
command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
|
1156
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
|
1157
|
-
command.request_object = set_org_policy_request_object
|
1158
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
1159
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
1160
|
-
command.params['resource'] = resource unless resource.nil?
|
1161
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1162
|
-
command.query['fields'] = fields unless fields.nil?
|
1163
|
-
execute_or_queue_command(command, &block)
|
1164
|
-
end
|
1165
|
-
|
1166
|
-
# Request that a new Project be created. The result is an Operation which
|
1167
|
-
# can be used to track the creation process. It is automatically deleted
|
1168
|
-
# after a few hours, so there is no need to call DeleteOperation.
|
1169
|
-
# Our SLO permits Project creation to take up to 30 seconds at the 90th
|
1170
|
-
# percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
|
1171
|
-
# latency. 95th percentile latency is around 11 seconds. We recommend
|
1172
|
-
# polling at the 5th second with an exponential backoff.
|
1173
|
-
# Authorization requires the Google IAM permission
|
1174
|
-
# `resourcemanager.projects.create` on the specified parent for the new
|
1175
|
-
# project.
|
1176
|
-
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
|
1177
1154
|
# @param [String] quota_user
|
1178
1155
|
# Available to use for quota purposes for server-side applications. Can be any
|
1179
1156
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1180
|
-
# @param [String] fields
|
1181
|
-
# Selector specifying which fields to include in a partial response.
|
1182
1157
|
# @param [Google::Apis::RequestOptions] options
|
1183
1158
|
# Request-specific options
|
1184
1159
|
#
|
1185
1160
|
# @yield [result, err] Result & error if block supplied
|
1186
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
1161
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
|
1187
1162
|
# @yieldparam err [StandardError] error object if request failed
|
1188
1163
|
#
|
1189
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
1164
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
|
1190
1165
|
#
|
1191
1166
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1192
1167
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1193
1168
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1194
|
-
def
|
1195
|
-
command = make_simple_command(:post, 'v1/
|
1196
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
1197
|
-
command.request_object =
|
1198
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
1199
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
1200
|
-
command.
|
1169
|
+
def list_project_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1170
|
+
command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
|
1171
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
|
1172
|
+
command.request_object = list_available_org_policy_constraints_request_object
|
1173
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
|
1174
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
|
1175
|
+
command.params['resource'] = resource unless resource.nil?
|
1201
1176
|
command.query['fields'] = fields unless fields.nil?
|
1177
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1202
1178
|
execute_or_queue_command(command, &block)
|
1203
1179
|
end
|
1204
1180
|
|
@@ -1206,11 +1182,11 @@ module Google
|
|
1206
1182
|
# @param [String] resource
|
1207
1183
|
# Name of the resource to list Policies for.
|
1208
1184
|
# @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
|
1185
|
+
# @param [String] fields
|
1186
|
+
# Selector specifying which fields to include in a partial response.
|
1209
1187
|
# @param [String] quota_user
|
1210
1188
|
# Available to use for quota purposes for server-side applications. Can be any
|
1211
1189
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1212
|
-
# @param [String] fields
|
1213
|
-
# Selector specifying which fields to include in a partial response.
|
1214
1190
|
# @param [Google::Apis::RequestOptions] options
|
1215
1191
|
# Request-specific options
|
1216
1192
|
#
|
@@ -1223,84 +1199,115 @@ module Google
|
|
1223
1199
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1224
1200
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1225
1201
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1226
|
-
def list_project_org_policies(resource, list_org_policies_request_object = nil,
|
1202
|
+
def list_project_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1227
1203
|
command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
|
1228
1204
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
|
1229
1205
|
command.request_object = list_org_policies_request_object
|
1230
1206
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
|
1231
1207
|
command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
|
1232
1208
|
command.params['resource'] = resource unless resource.nil?
|
1233
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1234
1209
|
command.query['fields'] = fields unless fields.nil?
|
1210
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1235
1211
|
execute_or_queue_command(command, &block)
|
1236
1212
|
end
|
1237
1213
|
|
1238
|
-
#
|
1239
|
-
#
|
1240
|
-
# The
|
1241
|
-
#
|
1242
|
-
#
|
1243
|
-
#
|
1214
|
+
# Sets the IAM access control policy for the specified Project. Replaces
|
1215
|
+
# any existing policy.
|
1216
|
+
# The following constraints apply when using `setIamPolicy()`:
|
1217
|
+
# + Project does not support `allUsers` and `allAuthenticatedUsers` as
|
1218
|
+
# `members` in a `Binding` of a `Policy`.
|
1219
|
+
# + The owner role can be granted only to `user` and `serviceAccount`.
|
1220
|
+
# + Service accounts can be made owners of a project directly
|
1221
|
+
# without any restrictions. However, to be added as an owner, a user must be
|
1222
|
+
# invited via Cloud Platform console and must accept the invitation.
|
1223
|
+
# + A user cannot be granted the owner role using `setIamPolicy()`. The user
|
1224
|
+
# must be granted the owner role using the Cloud Platform Console and must
|
1225
|
+
# explicitly accept the invitation.
|
1226
|
+
# + Invitations to grant the owner role cannot be sent using
|
1227
|
+
# `setIamPolicy()`;
|
1228
|
+
# they must be sent only using the Cloud Platform Console.
|
1229
|
+
# + Membership changes that leave the project without any owners that have
|
1230
|
+
# accepted the Terms of Service (ToS) will be rejected.
|
1231
|
+
# + If the project is not part of an organization, there must be at least
|
1232
|
+
# one owner who has accepted the Terms of Service (ToS) agreement in the
|
1233
|
+
# policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner
|
1234
|
+
# from the policy will fail. This restriction also applies to legacy
|
1235
|
+
# projects that no longer have owners who have accepted the ToS. Edits to
|
1236
|
+
# IAM policies will be rejected until the lack of a ToS-accepting owner is
|
1237
|
+
# rectified.
|
1238
|
+
# + Calling this method requires enabling the App Engine Admin API.
|
1239
|
+
# Note: Removing service accounts from policies or changing their roles
|
1240
|
+
# can render services completely inoperable. It is important to understand
|
1241
|
+
# how the service account is being used before removing or updating its
|
1242
|
+
# roles.
|
1243
|
+
# Authorization requires the Google IAM permission
|
1244
|
+
# `resourcemanager.projects.setIamPolicy` on the project
|
1245
|
+
# @param [String] resource
|
1246
|
+
# REQUIRED: The resource for which the policy is being specified.
|
1247
|
+
# See the operation documentation for the appropriate value for this field.
|
1248
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1249
|
+
# @param [String] fields
|
1250
|
+
# Selector specifying which fields to include in a partial response.
|
1244
1251
|
# @param [String] quota_user
|
1245
1252
|
# Available to use for quota purposes for server-side applications. Can be any
|
1246
1253
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1247
|
-
# @param [String] fields
|
1248
|
-
# Selector specifying which fields to include in a partial response.
|
1249
1254
|
# @param [Google::Apis::RequestOptions] options
|
1250
1255
|
# Request-specific options
|
1251
1256
|
#
|
1252
1257
|
# @yield [result, err] Result & error if block supplied
|
1253
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
1258
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
|
1254
1259
|
# @yieldparam err [StandardError] error object if request failed
|
1255
1260
|
#
|
1256
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
1261
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
|
1257
1262
|
#
|
1258
1263
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1259
1264
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1260
1265
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1261
|
-
def
|
1262
|
-
command = make_simple_command(:
|
1263
|
-
command.
|
1264
|
-
command.
|
1265
|
-
command.
|
1266
|
-
command.
|
1266
|
+
def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1267
|
+
command = make_simple_command(:post, 'v1/projects/{resource}:setIamPolicy', options)
|
1268
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
|
1269
|
+
command.request_object = set_iam_policy_request_object
|
1270
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
1271
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
|
1272
|
+
command.params['resource'] = resource unless resource.nil?
|
1267
1273
|
command.query['fields'] = fields unless fields.nil?
|
1274
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1268
1275
|
execute_or_queue_command(command, &block)
|
1269
1276
|
end
|
1270
1277
|
|
1271
|
-
#
|
1272
|
-
#
|
1273
|
-
#
|
1274
|
-
#
|
1275
|
-
#
|
1276
|
-
#
|
1277
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
1278
|
+
# Updates the specified `Policy` on the resource. Creates a new `Policy` for
|
1279
|
+
# that `Constraint` on the resource if one does not exist.
|
1280
|
+
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
1281
|
+
# write of the `Policy`.
|
1282
|
+
# @param [String] resource
|
1283
|
+
# Resource name of the resource to attach the `Policy`.
|
1284
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
|
1285
|
+
# @param [String] fields
|
1286
|
+
# Selector specifying which fields to include in a partial response.
|
1278
1287
|
# @param [String] quota_user
|
1279
1288
|
# Available to use for quota purposes for server-side applications. Can be any
|
1280
1289
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1281
|
-
# @param [String] fields
|
1282
|
-
# Selector specifying which fields to include in a partial response.
|
1283
1290
|
# @param [Google::Apis::RequestOptions] options
|
1284
1291
|
# Request-specific options
|
1285
1292
|
#
|
1286
1293
|
# @yield [result, err] Result & error if block supplied
|
1287
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
1294
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
1288
1295
|
# @yieldparam err [StandardError] error object if request failed
|
1289
1296
|
#
|
1290
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
1297
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
1291
1298
|
#
|
1292
1299
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1293
1300
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1294
1301
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1295
|
-
def
|
1296
|
-
command = make_simple_command(:post, 'v1/
|
1297
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
1298
|
-
command.request_object =
|
1299
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
1300
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
1301
|
-
command.params['
|
1302
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1302
|
+
def set_project_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1303
|
+
command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
|
1304
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
|
1305
|
+
command.request_object = set_org_policy_request_object
|
1306
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
1307
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
1308
|
+
command.params['resource'] = resource unless resource.nil?
|
1303
1309
|
command.query['fields'] = fields unless fields.nil?
|
1310
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1304
1311
|
execute_or_queue_command(command, &block)
|
1305
1312
|
end
|
1306
1313
|
|
@@ -1310,11 +1317,11 @@ module Google
|
|
1310
1317
|
# REQUIRED: The resource for which the policy detail is being requested.
|
1311
1318
|
# See the operation documentation for the appropriate value for this field.
|
1312
1319
|
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1320
|
+
# @param [String] fields
|
1321
|
+
# Selector specifying which fields to include in a partial response.
|
1313
1322
|
# @param [String] quota_user
|
1314
1323
|
# Available to use for quota purposes for server-side applications. Can be any
|
1315
1324
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1316
|
-
# @param [String] fields
|
1317
|
-
# Selector specifying which fields to include in a partial response.
|
1318
1325
|
# @param [Google::Apis::RequestOptions] options
|
1319
1326
|
# Request-specific options
|
1320
1327
|
#
|
@@ -1327,45 +1334,33 @@ module Google
|
|
1327
1334
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1328
1335
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1329
1336
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1330
|
-
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil,
|
1337
|
+
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1331
1338
|
command = make_simple_command(:post, 'v1/projects/{resource}:testIamPermissions', options)
|
1332
1339
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
|
1333
1340
|
command.request_object = test_iam_permissions_request_object
|
1334
1341
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
|
1335
1342
|
command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
|
1336
1343
|
command.params['resource'] = resource unless resource.nil?
|
1337
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1338
1344
|
command.query['fields'] = fields unless fields.nil?
|
1345
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1339
1346
|
execute_or_queue_command(command, &block)
|
1340
1347
|
end
|
1341
1348
|
|
1342
|
-
#
|
1343
|
-
# `project_id` (for example, `my-project-123`)
|
1344
|
-
#
|
1345
|
-
#
|
1346
|
-
#
|
1347
|
-
# ACTIVE.
|
1348
|
-
# This method changes the Project's lifecycle state from
|
1349
|
-
# ACTIVE
|
1350
|
-
# to DELETE_REQUESTED.
|
1351
|
-
# The deletion starts at an unspecified time,
|
1352
|
-
# at which point the Project is no longer accessible.
|
1353
|
-
# Until the deletion completes, you can check the lifecycle state
|
1354
|
-
# checked by retrieving the Project with GetProject,
|
1355
|
-
# and the Project remains visible to ListProjects.
|
1356
|
-
# However, you cannot update the project.
|
1357
|
-
# After the deletion completes, the Project is not retrievable by
|
1358
|
-
# the GetProject and
|
1359
|
-
# ListProjects methods.
|
1349
|
+
# Restores the Project identified by the specified
|
1350
|
+
# `project_id` (for example, `my-project-123`).
|
1351
|
+
# You can only use this method for a Project that has a lifecycle state of
|
1352
|
+
# DELETE_REQUESTED.
|
1353
|
+
# After deletion starts, the Project cannot be restored.
|
1360
1354
|
# The caller must have modify permissions for this Project.
|
1361
1355
|
# @param [String] project_id
|
1362
|
-
# The
|
1356
|
+
# The project ID (for example, `foo-bar-123`).
|
1363
1357
|
# Required.
|
1358
|
+
# @param [Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object
|
1359
|
+
# @param [String] fields
|
1360
|
+
# Selector specifying which fields to include in a partial response.
|
1364
1361
|
# @param [String] quota_user
|
1365
1362
|
# Available to use for quota purposes for server-side applications. Can be any
|
1366
1363
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1367
|
-
# @param [String] fields
|
1368
|
-
# Selector specifying which fields to include in a partial response.
|
1369
1364
|
# @param [Google::Apis::RequestOptions] options
|
1370
1365
|
# Request-specific options
|
1371
1366
|
#
|
@@ -1378,46 +1373,51 @@ module Google
|
|
1378
1373
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1379
1374
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1380
1375
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1381
|
-
def
|
1382
|
-
command = make_simple_command(:
|
1376
|
+
def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1377
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}:undelete', options)
|
1378
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest::Representation
|
1379
|
+
command.request_object = undelete_project_request_object
|
1383
1380
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
1384
1381
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
1385
1382
|
command.params['projectId'] = project_id unless project_id.nil?
|
1386
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1387
1383
|
command.query['fields'] = fields unless fields.nil?
|
1384
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1388
1385
|
execute_or_queue_command(command, &block)
|
1389
1386
|
end
|
1390
1387
|
|
1391
|
-
#
|
1392
|
-
#
|
1393
|
-
#
|
1394
|
-
# @param [
|
1388
|
+
# Updates the attributes of the Project identified by the specified
|
1389
|
+
# `project_id` (for example, `my-project-123`).
|
1390
|
+
# The caller must have modify permissions for this Project.
|
1391
|
+
# @param [String] project_id
|
1392
|
+
# The project ID (for example, `my-project-123`).
|
1393
|
+
# Required.
|
1394
|
+
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
|
1395
|
+
# @param [String] fields
|
1396
|
+
# Selector specifying which fields to include in a partial response.
|
1395
1397
|
# @param [String] quota_user
|
1396
1398
|
# Available to use for quota purposes for server-side applications. Can be any
|
1397
1399
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1398
|
-
# @param [String] fields
|
1399
|
-
# Selector specifying which fields to include in a partial response.
|
1400
1400
|
# @param [Google::Apis::RequestOptions] options
|
1401
1401
|
# Request-specific options
|
1402
1402
|
#
|
1403
1403
|
# @yield [result, err] Result & error if block supplied
|
1404
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
1404
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
|
1405
1405
|
# @yieldparam err [StandardError] error object if request failed
|
1406
1406
|
#
|
1407
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
1407
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Project]
|
1408
1408
|
#
|
1409
1409
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1410
1410
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1411
1411
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1412
|
-
def
|
1413
|
-
command = make_simple_command(:
|
1414
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
1415
|
-
command.request_object =
|
1416
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
1417
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
1418
|
-
command.params['
|
1419
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1412
|
+
def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1413
|
+
command = make_simple_command(:put, 'v1/projects/{projectId}', options)
|
1414
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
1415
|
+
command.request_object = project_object
|
1416
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
1417
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Project
|
1418
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
1420
1419
|
command.query['fields'] = fields unless fields.nil?
|
1420
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1421
1421
|
execute_or_queue_command(command, &block)
|
1422
1422
|
end
|
1423
1423
|
|