google-api-client 0.10.3 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +12 -18
- data/CHANGELOG.md +22 -2
- data/Gemfile +5 -7
- data/MIGRATING.md +33 -0
- data/README.md +10 -2
- data/Rakefile +1 -0
- data/bin/generate-api +7 -1
- data/dl.rb +0 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
- data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
- data/generated/google/apis/admin_directory_v1/service.rb +1 -0
- data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
- data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
- data/generated/google/apis/admin_reports_v1/service.rb +1 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
- data/generated/google/apis/adsense_v1_4/service.rb +1 -0
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
- data/generated/google/apis/analytics_v3/classes.rb +10 -10
- data/generated/google/apis/analytics_v3/representations.rb +10 -10
- data/generated/google/apis/analytics_v3/service.rb +1 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
- data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
- data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
- data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
- data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
- data/generated/google/apis/appengine_v1/classes.rb +2 -2
- data/generated/google/apis/appengine_v1/representations.rb +2 -2
- data/generated/google/apis/appengine_v1/service.rb +1 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -0
- data/generated/google/apis/appsmarket_v2.rb +35 -0
- data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
- data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
- data/generated/google/apis/appsmarket_v2/service.rb +187 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +1 -0
- data/generated/google/apis/bigquery_v2/classes.rb +39 -39
- data/generated/google/apis/bigquery_v2/representations.rb +38 -38
- data/generated/google/apis/bigquery_v2/service.rb +3 -2
- data/generated/google/apis/blogger_v3/classes.rb +2 -2
- data/generated/google/apis/blogger_v3/representations.rb +2 -2
- data/generated/google/apis/blogger_v3/service.rb +1 -0
- data/generated/google/apis/books_v1/classes.rb +5 -5
- data/generated/google/apis/books_v1/representations.rb +4 -4
- data/generated/google/apis/books_v1/service.rb +1 -0
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/calendar_v3/representations.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +1 -0
- data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
- data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
- data/generated/google/apis/civicinfo_v2/service.rb +2 -1
- data/generated/google/apis/classroom_v1/service.rb +1 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
- data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
- data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
- data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
- data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
- data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
- data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
- data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
- data/generated/google/apis/cloudkms_v1/service.rb +168 -167
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
- data/generated/google/apis/cloudtrace_v1.rb +3 -3
- data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
- data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
- data/generated/google/apis/compute_beta/classes.rb +52 -52
- data/generated/google/apis/compute_beta/representations.rb +52 -52
- data/generated/google/apis/compute_beta/service.rb +2 -1
- data/generated/google/apis/compute_v1/classes.rb +48 -48
- data/generated/google/apis/compute_v1/representations.rb +48 -48
- data/generated/google/apis/compute_v1/service.rb +2 -1
- data/generated/google/apis/container_v1/service.rb +1 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +38 -660
- data/generated/google/apis/content_v2/representations.rb +37 -303
- data/generated/google/apis/content_v2/service.rb +63 -279
- data/generated/google/apis/customsearch_v1/classes.rb +2 -2
- data/generated/google/apis/customsearch_v1/representations.rb +2 -2
- data/generated/google/apis/customsearch_v1/service.rb +1 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
- data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
- data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
- data/generated/google/apis/dataproc_v1/classes.rb +395 -395
- data/generated/google/apis/dataproc_v1/representations.rb +91 -91
- data/generated/google/apis/dataproc_v1/service.rb +356 -355
- data/generated/google/apis/datastore_v1/classes.rb +506 -506
- data/generated/google/apis/datastore_v1/representations.rb +147 -147
- data/generated/google/apis/datastore_v1/service.rb +46 -45
- data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
- data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
- data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
- data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
- data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
- data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
- data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
- data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
- data/generated/google/apis/discovery_v1/service.rb +1 -0
- data/generated/google/apis/dns_v1/classes.rb +2 -2
- data/generated/google/apis/dns_v1/representations.rb +2 -2
- data/generated/google/apis/dns_v1/service.rb +1 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
- data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
- data/generated/google/apis/dns_v2beta1/service.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
- data/generated/google/apis/drive_v2/classes.rb +17 -17
- data/generated/google/apis/drive_v2/representations.rb +17 -17
- data/generated/google/apis/drive_v2/service.rb +5 -4
- data/generated/google/apis/drive_v3/classes.rb +13 -13
- data/generated/google/apis/drive_v3/representations.rb +12 -12
- data/generated/google/apis/drive_v3/service.rb +1 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
- data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
- data/generated/google/apis/firebaserules_v1/service.rb +1 -0
- data/generated/google/apis/fitness_v1/classes.rb +18 -18
- data/generated/google/apis/fitness_v1/representations.rb +18 -18
- data/generated/google/apis/fitness_v1/service.rb +6 -5
- data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
- data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
- data/generated/google/apis/fusiontables_v2/service.rb +1 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +6 -6
- data/generated/google/apis/games_management_v1management/representations.rb +6 -6
- data/generated/google/apis/games_management_v1management/service.rb +1 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +47 -47
- data/generated/google/apis/games_v1/representations.rb +47 -47
- data/generated/google/apis/games_v1/service.rb +58 -57
- data/generated/google/apis/genomics_v1.rb +6 -6
- data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
- data/generated/google/apis/genomics_v1/representations.rb +487 -487
- data/generated/google/apis/genomics_v1/service.rb +1188 -1187
- data/generated/google/apis/gmail_v1/classes.rb +11 -11
- data/generated/google/apis/gmail_v1/representations.rb +11 -11
- data/generated/google/apis/gmail_v1/service.rb +2 -1
- data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
- data/generated/google/apis/groupssettings_v1/service.rb +1 -0
- data/generated/google/apis/iam_v1/classes.rb +437 -437
- data/generated/google/apis/iam_v1/representations.rb +95 -95
- data/generated/google/apis/iam_v1/service.rb +87 -86
- data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
- data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
- data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
- data/generated/google/apis/kgsearch_v1/service.rb +9 -8
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +245 -245
- data/generated/google/apis/language_v1/representations.rb +65 -65
- data/generated/google/apis/language_v1/service.rb +1 -0
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +277 -277
- data/generated/google/apis/language_v1beta1/representations.rb +83 -83
- data/generated/google/apis/language_v1beta1/service.rb +31 -30
- data/generated/google/apis/licensing_v1/service.rb +1 -0
- data/generated/google/apis/logging_v2/classes.rb +408 -408
- data/generated/google/apis/logging_v2/representations.rb +93 -93
- data/generated/google/apis/logging_v2/service.rb +408 -407
- data/generated/google/apis/logging_v2beta1.rb +3 -3
- data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
- data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
- data/generated/google/apis/logging_v2beta1/service.rb +89 -88
- data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
- data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
- data/generated/google/apis/manufacturers_v1/service.rb +1 -0
- data/generated/google/apis/mirror_v1/service.rb +1 -0
- data/generated/google/apis/ml_v1/classes.rb +1185 -1185
- data/generated/google/apis/ml_v1/representations.rb +171 -171
- data/generated/google/apis/ml_v1/service.rb +282 -281
- data/generated/google/apis/monitoring_v3.rb +3 -3
- data/generated/google/apis/monitoring_v3/classes.rb +334 -334
- data/generated/google/apis/monitoring_v3/representations.rb +86 -86
- data/generated/google/apis/monitoring_v3/service.rb +344 -343
- data/generated/google/apis/mybusiness_v3/service.rb +1 -0
- data/generated/google/apis/oauth2_v2/service.rb +1 -0
- data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
- data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
- data/generated/google/apis/partners_v2/classes.rb +1466 -1466
- data/generated/google/apis/partners_v2/representations.rb +371 -371
- data/generated/google/apis/partners_v2/service.rb +530 -529
- data/generated/google/apis/people_v1.rb +4 -4
- data/generated/google/apis/people_v1/classes.rb +1009 -1009
- data/generated/google/apis/people_v1/representations.rb +249 -249
- data/generated/google/apis/people_v1/service.rb +13 -12
- data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
- data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
- data/generated/google/apis/plus_domains_v1/service.rb +1 -0
- data/generated/google/apis/plus_v1/service.rb +1 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
- data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
- data/generated/google/apis/prediction_v1_6/service.rb +1 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
- data/generated/google/apis/pubsub_v1/classes.rb +99 -99
- data/generated/google/apis/pubsub_v1/representations.rb +25 -25
- data/generated/google/apis/pubsub_v1/service.rb +236 -235
- data/generated/google/apis/qpx_express_v1/service.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
- data/generated/google/apis/reseller_v1/classes.rb +5 -5
- data/generated/google/apis/reseller_v1/representations.rb +5 -5
- data/generated/google/apis/reseller_v1/service.rb +1 -0
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
- data/generated/google/apis/runtimeconfig_v1.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
- data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
- data/generated/google/apis/script_v1.rb +18 -18
- data/generated/google/apis/script_v1/classes.rb +84 -84
- data/generated/google/apis/script_v1/representations.rb +18 -18
- data/generated/google/apis/script_v1/service.rb +11 -10
- data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +11 -10
- data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
- data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
- data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
- data/generated/google/apis/servicemanagement_v1.rb +3 -3
- data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
- data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
- data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
- data/generated/google/apis/serviceuser_v1.rb +3 -3
- data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
- data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
- data/generated/google/apis/serviceuser_v1/service.rb +47 -46
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
- data/generated/google/apis/sheets_v4/representations.rb +859 -859
- data/generated/google/apis/sheets_v4/service.rb +180 -179
- data/generated/google/apis/site_verification_v1/service.rb +1 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2856 -2856
- data/generated/google/apis/slides_v1/representations.rb +683 -683
- data/generated/google/apis/slides_v1/service.rb +27 -26
- data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
- data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
- data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
- data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +374 -373
- data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
- data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
- data/generated/google/apis/speech_v1beta1/service.rb +27 -26
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
- data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +11 -11
- data/generated/google/apis/storage_v1/representations.rb +11 -11
- data/generated/google/apis/storage_v1/service.rb +65 -64
- data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
- data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
- data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
- data/generated/google/apis/surveys_v2/classes.rb +4 -4
- data/generated/google/apis/surveys_v2/representations.rb +4 -4
- data/generated/google/apis/surveys_v2/service.rb +1 -0
- data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
- data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
- data/generated/google/apis/tagmanager_v1/service.rb +1 -0
- data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
- data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
- data/generated/google/apis/tagmanager_v2/service.rb +1 -0
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
- data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
- data/generated/google/apis/tasks_v1/service.rb +3 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
- data/generated/google/apis/tracing_v1/classes.rb +421 -421
- data/generated/google/apis/tracing_v1/representations.rb +86 -86
- data/generated/google/apis/tracing_v1/service.rb +60 -59
- data/generated/google/apis/translate_v2/service.rb +1 -0
- data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
- data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
- data/generated/google/apis/urlshortener_v1/service.rb +1 -0
- data/generated/google/apis/vision_v1/classes.rb +1290 -1290
- data/generated/google/apis/vision_v1/representations.rb +184 -184
- data/generated/google/apis/vision_v1/service.rb +11 -10
- data/generated/google/apis/webfonts_v1/service.rb +1 -0
- data/generated/google/apis/webmasters_v3/classes.rb +5 -5
- data/generated/google/apis/webmasters_v3/representations.rb +5 -5
- data/generated/google/apis/webmasters_v3/service.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
- data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
- data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
- data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
- data/generated/google/apis/youtube_v3/classes.rb +31 -31
- data/generated/google/apis/youtube_v3/representations.rb +31 -31
- data/generated/google/apis/youtube_v3/service.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
- data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
- data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
- data/google-api-client.gemspec +4 -6
- data/lib/google/apis/core/api_command.rb +8 -3
- data/lib/google/apis/core/base_service.rb +47 -18
- data/lib/google/apis/core/batch.rb +13 -18
- data/lib/google/apis/core/composite_io.rb +97 -0
- data/lib/google/apis/core/download.rb +24 -20
- data/lib/google/apis/core/http_command.rb +49 -38
- data/lib/google/apis/core/json_representation.rb +5 -1
- data/lib/google/apis/core/multipart.rb +43 -95
- data/lib/google/apis/core/upload.rb +59 -84
- data/lib/google/apis/generator/model.rb +2 -0
- data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
- data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
- data/lib/google/apis/options.rb +24 -12
- data/lib/google/apis/version.rb +1 -1
- data/samples/web/Gemfile +0 -1
- metadata +39 -37
- data/lib/google/apis/core/http_client_adapter.rb +0 -82
- data/third_party/hurley_patches.rb +0 -103
@@ -22,30 +22,6 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudresourcemanagerV1
|
24
24
|
|
25
|
-
class GetEffectiveOrgPolicyRequest
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
29
|
-
end
|
30
|
-
|
31
|
-
class ListOrgPoliciesRequest
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
-
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
35
|
-
end
|
36
|
-
|
37
|
-
class AuditConfig
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
-
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
41
|
-
end
|
42
|
-
|
43
|
-
class Operation
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
25
|
class Constraint
|
50
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
27
|
|
@@ -275,49 +251,37 @@ module Google
|
|
275
251
|
end
|
276
252
|
|
277
253
|
class GetEffectiveOrgPolicyRequest
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
end
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
282
257
|
end
|
283
258
|
|
284
259
|
class ListOrgPoliciesRequest
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
property :page_size, as: 'pageSize'
|
289
|
-
end
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
290
263
|
end
|
291
264
|
|
292
265
|
class AuditConfig
|
293
|
-
|
294
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
295
|
-
property :service, as: 'service'
|
296
|
-
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditLogConfig::Representation
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
267
|
|
298
|
-
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
269
|
end
|
300
270
|
|
301
271
|
class Operation
|
302
|
-
|
303
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
304
|
-
hash :response, as: 'response'
|
305
|
-
property :name, as: 'name'
|
306
|
-
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
307
273
|
|
308
|
-
|
309
|
-
property :done, as: 'done'
|
310
|
-
end
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
311
275
|
end
|
312
276
|
|
313
277
|
class Constraint
|
314
278
|
# @private
|
315
279
|
class Representation < Google::Apis::Core::JsonRepresentation
|
316
|
-
property :version, as: 'version'
|
317
280
|
property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation
|
318
281
|
|
319
|
-
property :
|
282
|
+
property :version, as: 'version'
|
320
283
|
property :description, as: 'description'
|
284
|
+
property :display_name, as: 'displayName'
|
321
285
|
property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation
|
322
286
|
|
323
287
|
property :constraint_default, as: 'constraintDefault'
|
@@ -425,14 +389,14 @@ module Google
|
|
425
389
|
class Project
|
426
390
|
# @private
|
427
391
|
class Representation < Google::Apis::Core::JsonRepresentation
|
428
|
-
property :name, as: 'name'
|
429
|
-
property :project_id, as: 'projectId'
|
430
392
|
property :lifecycle_state, as: 'lifecycleState'
|
431
|
-
property :project_number, as: 'projectNumber'
|
393
|
+
property :project_number, :numeric_string => true, as: 'projectNumber'
|
432
394
|
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
|
433
395
|
|
434
|
-
hash :labels, as: 'labels'
|
435
396
|
property :create_time, as: 'createTime'
|
397
|
+
hash :labels, as: 'labels'
|
398
|
+
property :name, as: 'name'
|
399
|
+
property :project_id, as: 'projectId'
|
436
400
|
end
|
437
401
|
end
|
438
402
|
|
@@ -448,9 +412,9 @@ module Google
|
|
448
412
|
class ListOrgPoliciesResponse
|
449
413
|
# @private
|
450
414
|
class Representation < Google::Apis::Core::JsonRepresentation
|
451
|
-
property :next_page_token, as: 'nextPageToken'
|
452
415
|
collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
453
416
|
|
417
|
+
property :next_page_token, as: 'nextPageToken'
|
454
418
|
end
|
455
419
|
end
|
456
420
|
|
@@ -471,28 +435,28 @@ module Google
|
|
471
435
|
class OrgPolicy
|
472
436
|
# @private
|
473
437
|
class Representation < Google::Apis::Core::JsonRepresentation
|
474
|
-
property :update_time, as: 'updateTime'
|
475
|
-
property :version, as: 'version'
|
476
|
-
property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1::RestoreDefault::Representation
|
477
|
-
|
478
438
|
property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1::ListPolicy::Representation
|
479
439
|
|
480
440
|
property :etag, :base64 => true, as: 'etag'
|
481
441
|
property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation
|
482
442
|
|
483
443
|
property :constraint, as: 'constraint'
|
444
|
+
property :update_time, as: 'updateTime'
|
445
|
+
property :version, as: 'version'
|
446
|
+
property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1::RestoreDefault::Representation
|
447
|
+
|
484
448
|
end
|
485
449
|
end
|
486
450
|
|
487
451
|
class Lien
|
488
452
|
# @private
|
489
453
|
class Representation < Google::Apis::Core::JsonRepresentation
|
454
|
+
property :parent, as: 'parent'
|
455
|
+
property :create_time, as: 'createTime'
|
490
456
|
property :name, as: 'name'
|
491
457
|
property :reason, as: 'reason'
|
492
458
|
property :origin, as: 'origin'
|
493
459
|
collection :restrictions, as: 'restrictions'
|
494
|
-
property :parent, as: 'parent'
|
495
|
-
property :create_time, as: 'createTime'
|
496
460
|
end
|
497
461
|
end
|
498
462
|
|
@@ -522,9 +486,9 @@ module Google
|
|
522
486
|
class SetIamPolicyRequest
|
523
487
|
# @private
|
524
488
|
class Representation < Google::Apis::Core::JsonRepresentation
|
489
|
+
property :update_mask, as: 'updateMask'
|
525
490
|
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
526
491
|
|
527
|
-
property :update_mask, as: 'updateMask'
|
528
492
|
end
|
529
493
|
end
|
530
494
|
|
@@ -537,12 +501,12 @@ module Google
|
|
537
501
|
class Organization
|
538
502
|
# @private
|
539
503
|
class Representation < Google::Apis::Core::JsonRepresentation
|
504
|
+
property :creation_time, as: 'creationTime'
|
540
505
|
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation
|
541
506
|
|
542
507
|
property :lifecycle_state, as: 'lifecycleState'
|
543
508
|
property :name, as: 'name'
|
544
509
|
property :display_name, as: 'displayName'
|
545
|
-
property :creation_time, as: 'creationTime'
|
546
510
|
end
|
547
511
|
end
|
548
512
|
|
@@ -585,9 +549,9 @@ module Google
|
|
585
549
|
class SearchOrganizationsRequest
|
586
550
|
# @private
|
587
551
|
class Representation < Google::Apis::Core::JsonRepresentation
|
588
|
-
property :filter, as: 'filter'
|
589
552
|
property :page_token, as: 'pageToken'
|
590
553
|
property :page_size, as: 'pageSize'
|
554
|
+
property :filter, as: 'filter'
|
591
555
|
end
|
592
556
|
end
|
593
557
|
|
@@ -641,6 +605,42 @@ module Google
|
|
641
605
|
property :type, as: 'type'
|
642
606
|
end
|
643
607
|
end
|
608
|
+
|
609
|
+
class GetEffectiveOrgPolicyRequest
|
610
|
+
# @private
|
611
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
612
|
+
property :constraint, as: 'constraint'
|
613
|
+
end
|
614
|
+
end
|
615
|
+
|
616
|
+
class ListOrgPoliciesRequest
|
617
|
+
# @private
|
618
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
619
|
+
property :page_token, as: 'pageToken'
|
620
|
+
property :page_size, as: 'pageSize'
|
621
|
+
end
|
622
|
+
end
|
623
|
+
|
624
|
+
class AuditConfig
|
625
|
+
# @private
|
626
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
627
|
+
property :service, as: 'service'
|
628
|
+
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditLogConfig::Representation
|
629
|
+
|
630
|
+
end
|
631
|
+
end
|
632
|
+
|
633
|
+
class Operation
|
634
|
+
# @private
|
635
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
636
|
+
property :done, as: 'done'
|
637
|
+
hash :response, as: 'response'
|
638
|
+
property :name, as: 'name'
|
639
|
+
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
|
640
|
+
|
641
|
+
hash :metadata, as: 'metadata'
|
642
|
+
end
|
643
|
+
end
|
644
644
|
end
|
645
645
|
end
|
646
646
|
end
|
@@ -33,101 +33,99 @@ module Google
|
|
33
33
|
#
|
34
34
|
# @see https://cloud.google.com/resource-manager
|
35
35
|
class CloudResourceManagerService < Google::Apis::Core::BaseService
|
36
|
-
# @return [String]
|
37
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
38
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
39
|
-
attr_accessor :quota_user
|
40
|
-
|
41
36
|
# @return [String]
|
42
37
|
# API key. Your API key identifies your project and provides you with API access,
|
43
38
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
44
39
|
attr_accessor :key
|
45
40
|
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
46
|
def initialize
|
47
47
|
super('https://cloudresourcemanager.googleapis.com/', '')
|
48
|
+
@batch_path = 'batch'
|
48
49
|
end
|
49
50
|
|
50
|
-
#
|
51
|
+
# Lists all the `Policies` set for a particular resource.
|
51
52
|
# @param [String] resource
|
52
|
-
# Name of the resource
|
53
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
53
|
+
# Name of the resource to list Policies for.
|
54
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
54
57
|
# @param [String] quota_user
|
55
58
|
# Available to use for quota purposes for server-side applications. Can be any
|
56
59
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
57
|
-
# @param [String] fields
|
58
|
-
# Selector specifying which fields to include in a partial response.
|
59
60
|
# @param [Google::Apis::RequestOptions] options
|
60
61
|
# Request-specific options
|
61
62
|
#
|
62
63
|
# @yield [result, err] Result & error if block supplied
|
63
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
64
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
|
64
65
|
# @yieldparam err [StandardError] error object if request failed
|
65
66
|
#
|
66
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
67
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
|
67
68
|
#
|
68
69
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
69
70
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
70
71
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
71
|
-
def
|
72
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
73
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
74
|
-
command.request_object =
|
75
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
76
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
72
|
+
def list_organization_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: 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
|
77
78
|
command.params['resource'] = resource unless resource.nil?
|
78
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
79
79
|
command.query['fields'] = fields unless fields.nil?
|
80
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
81
|
execute_or_queue_command(command, &block)
|
81
82
|
end
|
82
83
|
|
83
|
-
#
|
84
|
-
# that `Constraint` on the resource if one does not exist.
|
85
|
-
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
86
|
-
# write of the `Policy`.
|
84
|
+
# Lists `Constraints` that could be applied on the specified resource.
|
87
85
|
# @param [String] resource
|
88
|
-
#
|
89
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
86
|
+
# Name of the resource to list `Constraints` for.
|
87
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
|
88
|
+
# @param [String] fields
|
89
|
+
# Selector specifying which fields to include in a partial response.
|
90
90
|
# @param [String] quota_user
|
91
91
|
# Available to use for quota purposes for server-side applications. Can be any
|
92
92
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
93
|
-
# @param [String] fields
|
94
|
-
# Selector specifying which fields to include in a partial response.
|
95
93
|
# @param [Google::Apis::RequestOptions] options
|
96
94
|
# Request-specific options
|
97
95
|
#
|
98
96
|
# @yield [result, err] Result & error if block supplied
|
99
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
97
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
|
100
98
|
# @yieldparam err [StandardError] error object if request failed
|
101
99
|
#
|
102
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
100
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
|
103
101
|
#
|
104
102
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
105
103
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
106
104
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
107
|
-
def
|
108
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
109
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
110
|
-
command.request_object =
|
111
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
112
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
105
|
+
def list_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
106
|
+
command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
|
107
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
|
108
|
+
command.request_object = list_available_org_policy_constraints_request_object
|
109
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
|
110
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
|
113
111
|
command.params['resource'] = resource unless resource.nil?
|
114
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
115
112
|
command.query['fields'] = fields unless fields.nil?
|
113
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
114
|
execute_or_queue_command(command, &block)
|
117
115
|
end
|
118
116
|
|
119
|
-
#
|
120
|
-
#
|
121
|
-
# name, e.g. "organizations/123".
|
117
|
+
# Gets the access control policy for an Organization resource. May be empty
|
118
|
+
# if no such policy or resource exists. The `resource` field should be the
|
119
|
+
# organization's resource name, e.g. "organizations/123".
|
122
120
|
# @param [String] resource
|
123
|
-
# REQUIRED: The resource for which the policy is being
|
121
|
+
# REQUIRED: The resource for which the policy is being requested.
|
124
122
|
# See the operation documentation for the appropriate value for this field.
|
125
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
123
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
124
|
+
# @param [String] fields
|
125
|
+
# Selector specifying which fields to include in a partial response.
|
126
126
|
# @param [String] quota_user
|
127
127
|
# Available to use for quota purposes for server-side applications. Can be any
|
128
128
|
# 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
129
|
# @param [Google::Apis::RequestOptions] options
|
132
130
|
# Request-specific options
|
133
131
|
#
|
@@ -140,201 +138,234 @@ module Google
|
|
140
138
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
141
139
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
142
140
|
# @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 =
|
141
|
+
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
142
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
143
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
|
144
|
+
command.request_object = get_iam_policy_request_object
|
147
145
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
148
146
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
|
149
147
|
command.params['resource'] = resource unless resource.nil?
|
150
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
151
148
|
command.query['fields'] = fields unless fields.nil?
|
149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
152
150
|
execute_or_queue_command(command, &block)
|
153
151
|
end
|
154
152
|
|
155
|
-
#
|
153
|
+
# Gets a `Policy` on a resource.
|
154
|
+
# If no `Policy` is set on the resource, a `Policy` is returned with default
|
155
|
+
# values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
|
156
|
+
# `etag` value can be used with `SetOrgPolicy()` to create or update a
|
157
|
+
# `Policy` during read-modify-write.
|
156
158
|
# @param [String] resource
|
157
|
-
# Name of the resource
|
158
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
159
|
+
# Name of the resource the `Policy` is set on.
|
160
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
|
161
|
+
# @param [String] fields
|
162
|
+
# Selector specifying which fields to include in a partial response.
|
159
163
|
# @param [String] quota_user
|
160
164
|
# Available to use for quota purposes for server-side applications. Can be any
|
161
165
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
162
|
-
# @param [String] fields
|
163
|
-
# Selector specifying which fields to include in a partial response.
|
164
166
|
# @param [Google::Apis::RequestOptions] options
|
165
167
|
# Request-specific options
|
166
168
|
#
|
167
169
|
# @yield [result, err] Result & error if block supplied
|
168
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
170
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
169
171
|
# @yieldparam err [StandardError] error object if request failed
|
170
172
|
#
|
171
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
173
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
172
174
|
#
|
173
175
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
174
176
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
175
177
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
176
|
-
def
|
177
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
178
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
179
|
-
command.request_object =
|
180
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
181
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
178
|
+
def get_organization_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
179
|
+
command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
|
180
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
|
181
|
+
command.request_object = get_org_policy_request_object
|
182
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
183
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
182
184
|
command.params['resource'] = resource unless resource.nil?
|
183
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
184
185
|
command.query['fields'] = fields unless fields.nil?
|
186
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
185
187
|
execute_or_queue_command(command, &block)
|
186
188
|
end
|
187
189
|
|
188
|
-
#
|
189
|
-
#
|
190
|
-
#
|
191
|
-
#
|
190
|
+
# Searches Organization resources that are visible to the user and satisfy
|
191
|
+
# the specified filter. This method returns Organizations in an unspecified
|
192
|
+
# order. New Organizations do not necessarily appear at the end of the
|
193
|
+
# results.
|
194
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
|
195
|
+
# @param [String] fields
|
196
|
+
# Selector specifying which fields to include in a partial response.
|
192
197
|
# @param [String] quota_user
|
193
198
|
# Available to use for quota purposes for server-side applications. Can be any
|
194
199
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
195
|
-
# @param [String] fields
|
196
|
-
# Selector specifying which fields to include in a partial response.
|
197
200
|
# @param [Google::Apis::RequestOptions] options
|
198
201
|
# Request-specific options
|
199
202
|
#
|
200
203
|
# @yield [result, err] Result & error if block supplied
|
201
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
204
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
|
202
205
|
# @yieldparam err [StandardError] error object if request failed
|
203
206
|
#
|
204
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
207
|
+
# @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
|
205
208
|
#
|
206
209
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
207
210
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
208
211
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
209
|
-
def
|
210
|
-
command = make_simple_command(:post, 'v1/
|
211
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
212
|
-
command.request_object =
|
213
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
214
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
215
|
-
command.params['resource'] = resource unless resource.nil?
|
216
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
212
|
+
def search_organizations(search_organizations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
213
|
+
command = make_simple_command(:post, 'v1/organizations:search', options)
|
214
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
|
215
|
+
command.request_object = search_organizations_request_object
|
216
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
|
217
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
|
217
218
|
command.query['fields'] = fields unless fields.nil?
|
219
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
218
220
|
execute_or_queue_command(command, &block)
|
219
221
|
end
|
220
222
|
|
221
|
-
# Gets the
|
222
|
-
#
|
223
|
-
#
|
223
|
+
# Gets the effective `Policy` on a resource. This is the result of merging
|
224
|
+
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
225
|
+
# an `etag`set because it is a computed `Policy` across multiple resources.
|
224
226
|
# @param [String] resource
|
225
|
-
#
|
226
|
-
#
|
227
|
-
# @param [
|
227
|
+
# The name of the resource to start computing the effective `Policy`.
|
228
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
229
|
+
# @param [String] fields
|
230
|
+
# Selector specifying which fields to include in a partial response.
|
228
231
|
# @param [String] quota_user
|
229
232
|
# Available to use for quota purposes for server-side applications. Can be any
|
230
233
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
231
|
-
# @param [String] fields
|
232
|
-
# Selector specifying which fields to include in a partial response.
|
233
234
|
# @param [Google::Apis::RequestOptions] options
|
234
235
|
# Request-specific options
|
235
236
|
#
|
236
237
|
# @yield [result, err] Result & error if block supplied
|
237
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
238
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
238
239
|
# @yieldparam err [StandardError] error object if request failed
|
239
240
|
#
|
240
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
241
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
241
242
|
#
|
242
243
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
243
244
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
244
245
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
245
|
-
def
|
246
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
247
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
248
|
-
command.request_object =
|
249
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
250
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
246
|
+
def get_organization_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
247
|
+
command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
|
248
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
|
249
|
+
command.request_object = get_effective_org_policy_request_object
|
250
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
251
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
251
252
|
command.params['resource'] = resource unless resource.nil?
|
252
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
253
253
|
command.query['fields'] = fields unless fields.nil?
|
254
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
254
255
|
execute_or_queue_command(command, &block)
|
255
256
|
end
|
256
257
|
|
257
|
-
#
|
258
|
-
#
|
259
|
-
#
|
260
|
-
#
|
261
|
-
#
|
258
|
+
# Fetches an Organization resource identified by the specified resource name.
|
259
|
+
# @param [String] name
|
260
|
+
# The resource name of the Organization to fetch, e.g. "organizations/1234".
|
261
|
+
# @param [String] fields
|
262
|
+
# Selector specifying which fields to include in a partial response.
|
262
263
|
# @param [String] quota_user
|
263
264
|
# Available to use for quota purposes for server-side applications. Can be any
|
264
265
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
265
|
-
# @param [String] fields
|
266
|
-
# Selector specifying which fields to include in a partial response.
|
267
266
|
# @param [Google::Apis::RequestOptions] options
|
268
267
|
# Request-specific options
|
269
268
|
#
|
270
269
|
# @yield [result, err] Result & error if block supplied
|
271
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
270
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object
|
272
271
|
# @yieldparam err [StandardError] error object if request failed
|
273
272
|
#
|
274
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
273
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Organization]
|
275
274
|
#
|
276
275
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
277
276
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
278
277
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
279
|
-
def
|
280
|
-
command = make_simple_command(:
|
281
|
-
command.
|
282
|
-
command.
|
283
|
-
command.
|
284
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
|
285
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
278
|
+
def get_organization(name, fields: nil, quota_user: nil, options: nil, &block)
|
279
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
280
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
|
281
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
|
282
|
+
command.params['name'] = name unless name.nil?
|
286
283
|
command.query['fields'] = fields unless fields.nil?
|
284
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
287
285
|
execute_or_queue_command(command, &block)
|
288
286
|
end
|
289
287
|
|
290
|
-
#
|
291
|
-
#
|
292
|
-
#
|
293
|
-
# `etag` value can be used with `SetOrgPolicy()` to create or update a
|
294
|
-
# `Policy` during read-modify-write.
|
288
|
+
# Returns permissions that a caller has on the specified Organization.
|
289
|
+
# The `resource` field should be the organization's resource name,
|
290
|
+
# e.g. "organizations/123".
|
295
291
|
# @param [String] resource
|
296
|
-
#
|
297
|
-
#
|
292
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
293
|
+
# See the operation documentation for the appropriate value for this field.
|
294
|
+
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
295
|
+
# @param [String] fields
|
296
|
+
# Selector specifying which fields to include in a partial response.
|
298
297
|
# @param [String] quota_user
|
299
298
|
# Available to use for quota purposes for server-side applications. Can be any
|
300
299
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
301
|
-
# @param [String] fields
|
302
|
-
# Selector specifying which fields to include in a partial response.
|
303
300
|
# @param [Google::Apis::RequestOptions] options
|
304
301
|
# Request-specific options
|
305
302
|
#
|
306
303
|
# @yield [result, err] Result & error if block supplied
|
307
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
304
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
|
308
305
|
# @yieldparam err [StandardError] error object if request failed
|
309
306
|
#
|
310
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
307
|
+
# @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
|
311
308
|
#
|
312
309
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
313
310
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
314
311
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
315
|
-
def
|
316
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
317
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
318
|
-
command.request_object =
|
319
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
320
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
312
|
+
def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
313
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
314
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
|
315
|
+
command.request_object = test_iam_permissions_request_object
|
316
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
|
317
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
|
321
318
|
command.params['resource'] = resource unless resource.nil?
|
322
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
323
319
|
command.query['fields'] = fields unless fields.nil?
|
320
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
324
321
|
execute_or_queue_command(command, &block)
|
325
322
|
end
|
326
323
|
|
327
|
-
#
|
328
|
-
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
329
|
-
# an `etag`set because it is a computed `Policy` across multiple resources.
|
324
|
+
# Clears a `Policy` from a resource.
|
330
325
|
# @param [String] resource
|
331
|
-
#
|
332
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
326
|
+
# Name of the resource for the `Policy` to clear.
|
327
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
|
328
|
+
# @param [String] fields
|
329
|
+
# Selector specifying which fields to include in a partial response.
|
333
330
|
# @param [String] quota_user
|
334
331
|
# Available to use for quota purposes for server-side applications. Can be any
|
335
332
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
333
|
+
# @param [Google::Apis::RequestOptions] options
|
334
|
+
# Request-specific options
|
335
|
+
#
|
336
|
+
# @yield [result, err] Result & error if block supplied
|
337
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
338
|
+
# @yieldparam err [StandardError] error object if request failed
|
339
|
+
#
|
340
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
341
|
+
#
|
342
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
343
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
344
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
345
|
+
def clear_organization_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
346
|
+
command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
|
347
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
|
348
|
+
command.request_object = clear_org_policy_request_object
|
349
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
350
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
351
|
+
command.params['resource'] = resource unless resource.nil?
|
352
|
+
command.query['fields'] = fields unless fields.nil?
|
353
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
354
|
+
execute_or_queue_command(command, &block)
|
355
|
+
end
|
356
|
+
|
357
|
+
# Updates the specified `Policy` on the resource. Creates a new `Policy` for
|
358
|
+
# that `Constraint` on the resource if one does not exist.
|
359
|
+
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
360
|
+
# write of the `Policy`.
|
361
|
+
# @param [String] resource
|
362
|
+
# Resource name of the resource to attach the `Policy`.
|
363
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
|
336
364
|
# @param [String] fields
|
337
365
|
# Selector specifying which fields to include in a partial response.
|
366
|
+
# @param [String] quota_user
|
367
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
368
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
338
369
|
# @param [Google::Apis::RequestOptions] options
|
339
370
|
# Request-specific options
|
340
371
|
#
|
@@ -347,81 +378,85 @@ module Google
|
|
347
378
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
348
379
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
349
380
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
350
|
-
def
|
351
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
352
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
353
|
-
command.request_object =
|
381
|
+
def set_organization_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
382
|
+
command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
|
383
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
|
384
|
+
command.request_object = set_org_policy_request_object
|
354
385
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
355
386
|
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
356
387
|
command.params['resource'] = resource unless resource.nil?
|
357
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
358
388
|
command.query['fields'] = fields unless fields.nil?
|
389
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
359
390
|
execute_or_queue_command(command, &block)
|
360
391
|
end
|
361
392
|
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
393
|
+
# Sets the access control policy on an Organization resource. Replaces any
|
394
|
+
# existing policy. The `resource` field should be the organization's resource
|
395
|
+
# name, e.g. "organizations/123".
|
396
|
+
# @param [String] resource
|
397
|
+
# REQUIRED: The resource for which the policy is being specified.
|
398
|
+
# See the operation documentation for the appropriate value for this field.
|
399
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
400
|
+
# @param [String] fields
|
401
|
+
# Selector specifying which fields to include in a partial response.
|
365
402
|
# @param [String] quota_user
|
366
403
|
# Available to use for quota purposes for server-side applications. Can be any
|
367
404
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
368
|
-
# @param [String] fields
|
369
|
-
# Selector specifying which fields to include in a partial response.
|
370
405
|
# @param [Google::Apis::RequestOptions] options
|
371
406
|
# Request-specific options
|
372
407
|
#
|
373
408
|
# @yield [result, err] Result & error if block supplied
|
374
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
409
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
|
375
410
|
# @yieldparam err [StandardError] error object if request failed
|
376
411
|
#
|
377
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
412
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
|
378
413
|
#
|
379
414
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
380
415
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
381
416
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
382
|
-
def
|
383
|
-
command = make_simple_command(:
|
384
|
-
command.
|
385
|
-
command.
|
386
|
-
command.
|
387
|
-
command.
|
417
|
+
def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
418
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
419
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
|
420
|
+
command.request_object = set_iam_policy_request_object
|
421
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
422
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
|
423
|
+
command.params['resource'] = resource unless resource.nil?
|
388
424
|
command.query['fields'] = fields unless fields.nil?
|
425
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
389
426
|
execute_or_queue_command(command, &block)
|
390
427
|
end
|
391
428
|
|
392
|
-
#
|
393
|
-
#
|
394
|
-
#
|
395
|
-
#
|
396
|
-
#
|
397
|
-
#
|
398
|
-
# @param [
|
429
|
+
# Create a Lien which applies to the resource denoted by the `parent` field.
|
430
|
+
# Callers of this method will require permission on the `parent` resource.
|
431
|
+
# For example, applying to `projects/1234` requires permission
|
432
|
+
# `resourcemanager.projects.updateLiens`.
|
433
|
+
# NOTE: Some resources may limit the number of Liens which may be applied.
|
434
|
+
# @param [Google::Apis::CloudresourcemanagerV1::Lien] lien_object
|
435
|
+
# @param [String] fields
|
436
|
+
# Selector specifying which fields to include in a partial response.
|
399
437
|
# @param [String] quota_user
|
400
438
|
# Available to use for quota purposes for server-side applications. Can be any
|
401
439
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
402
|
-
# @param [String] fields
|
403
|
-
# Selector specifying which fields to include in a partial response.
|
404
440
|
# @param [Google::Apis::RequestOptions] options
|
405
441
|
# Request-specific options
|
406
442
|
#
|
407
443
|
# @yield [result, err] Result & error if block supplied
|
408
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
444
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Lien] parsed result object
|
409
445
|
# @yieldparam err [StandardError] error object if request failed
|
410
446
|
#
|
411
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
447
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Lien]
|
412
448
|
#
|
413
449
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
414
450
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
415
451
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
416
|
-
def
|
417
|
-
command = make_simple_command(:post, 'v1/
|
418
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
419
|
-
command.request_object =
|
420
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
421
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
422
|
-
command.params['resource'] = resource unless resource.nil?
|
423
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
452
|
+
def create_lien(lien_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
453
|
+
command = make_simple_command(:post, 'v1/liens', options)
|
454
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
|
455
|
+
command.request_object = lien_object
|
456
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
|
457
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Lien
|
424
458
|
command.query['fields'] = fields unless fields.nil?
|
459
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
425
460
|
execute_or_queue_command(command, &block)
|
426
461
|
end
|
427
462
|
|
@@ -431,11 +466,11 @@ module Google
|
|
431
466
|
# `resourcemanager.projects.updateLiens`.
|
432
467
|
# @param [String] name
|
433
468
|
# The name/identifier of the Lien to delete.
|
469
|
+
# @param [String] fields
|
470
|
+
# Selector specifying which fields to include in a partial response.
|
434
471
|
# @param [String] quota_user
|
435
472
|
# Available to use for quota purposes for server-side applications. Can be any
|
436
473
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
437
|
-
# @param [String] fields
|
438
|
-
# Selector specifying which fields to include in a partial response.
|
439
474
|
# @param [Google::Apis::RequestOptions] options
|
440
475
|
# Request-specific options
|
441
476
|
#
|
@@ -448,13 +483,13 @@ module Google
|
|
448
483
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
449
484
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
450
485
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
451
|
-
def delete_lien(name,
|
486
|
+
def delete_lien(name, fields: nil, quota_user: nil, options: nil, &block)
|
452
487
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
453
488
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
454
489
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
455
490
|
command.params['name'] = name unless name.nil?
|
456
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
457
491
|
command.query['fields'] = fields unless fields.nil?
|
492
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
458
493
|
execute_or_queue_command(command, &block)
|
459
494
|
end
|
460
495
|
|
@@ -469,11 +504,11 @@ module Google
|
|
469
504
|
# The `next_page_token` value returned from a previous List request, if any.
|
470
505
|
# @param [Fixnum] page_size
|
471
506
|
# The maximum number of items to return. This is a suggestion for the server.
|
507
|
+
# @param [String] fields
|
508
|
+
# Selector specifying which fields to include in a partial response.
|
472
509
|
# @param [String] quota_user
|
473
510
|
# Available to use for quota purposes for server-side applications. Can be any
|
474
511
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
475
|
-
# @param [String] fields
|
476
|
-
# Selector specifying which fields to include in a partial response.
|
477
512
|
# @param [Google::Apis::RequestOptions] options
|
478
513
|
# Request-specific options
|
479
514
|
#
|
@@ -486,49 +521,15 @@ module Google
|
|
486
521
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
487
522
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
488
523
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
489
|
-
def list_liens(parent: nil, page_token: nil, page_size: nil,
|
524
|
+
def list_liens(parent: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
490
525
|
command = make_simple_command(:get, 'v1/liens', options)
|
491
526
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListLiensResponse::Representation
|
492
527
|
command.response_class = Google::Apis::CloudresourcemanagerV1::ListLiensResponse
|
493
528
|
command.query['parent'] = parent unless parent.nil?
|
494
529
|
command.query['pageToken'] = page_token unless page_token.nil?
|
495
530
|
command.query['pageSize'] = page_size unless page_size.nil?
|
496
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
497
531
|
command.query['fields'] = fields unless fields.nil?
|
498
|
-
execute_or_queue_command(command, &block)
|
499
|
-
end
|
500
|
-
|
501
|
-
# Create a Lien which applies to the resource denoted by the `parent` field.
|
502
|
-
# Callers of this method will require permission on the `parent` resource.
|
503
|
-
# For example, applying to `projects/1234` requires permission
|
504
|
-
# `resourcemanager.projects.updateLiens`.
|
505
|
-
# NOTE: Some resources may limit the number of Liens which may be applied.
|
506
|
-
# @param [Google::Apis::CloudresourcemanagerV1::Lien] lien_object
|
507
|
-
# @param [String] quota_user
|
508
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
509
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
510
|
-
# @param [String] fields
|
511
|
-
# Selector specifying which fields to include in a partial response.
|
512
|
-
# @param [Google::Apis::RequestOptions] options
|
513
|
-
# Request-specific options
|
514
|
-
#
|
515
|
-
# @yield [result, err] Result & error if block supplied
|
516
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Lien] parsed result object
|
517
|
-
# @yieldparam err [StandardError] error object if request failed
|
518
|
-
#
|
519
|
-
# @return [Google::Apis::CloudresourcemanagerV1::Lien]
|
520
|
-
#
|
521
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
522
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
523
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
524
|
-
def create_lien(lien_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
525
|
-
command = make_simple_command(:post, 'v1/liens', options)
|
526
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
|
527
|
-
command.request_object = lien_object
|
528
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
|
529
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::Lien
|
530
532
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
531
|
-
command.query['fields'] = fields unless fields.nil?
|
532
533
|
execute_or_queue_command(command, &block)
|
533
534
|
end
|
534
535
|
|
@@ -537,11 +538,11 @@ module Google
|
|
537
538
|
# service.
|
538
539
|
# @param [String] name
|
539
540
|
# The name of the operation resource.
|
541
|
+
# @param [String] fields
|
542
|
+
# Selector specifying which fields to include in a partial response.
|
540
543
|
# @param [String] quota_user
|
541
544
|
# Available to use for quota purposes for server-side applications. Can be any
|
542
545
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
543
|
-
# @param [String] fields
|
544
|
-
# Selector specifying which fields to include in a partial response.
|
545
546
|
# @param [Google::Apis::RequestOptions] options
|
546
547
|
# Request-specific options
|
547
548
|
#
|
@@ -554,13 +555,13 @@ module Google
|
|
554
555
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
555
556
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
556
557
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
557
|
-
def get_operation(name,
|
558
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
558
559
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
559
560
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
|
560
561
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
|
561
562
|
command.params['name'] = name unless name.nil?
|
562
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
563
563
|
command.query['fields'] = fields unless fields.nil?
|
564
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
564
565
|
execute_or_queue_command(command, &block)
|
565
566
|
end
|
566
567
|
|
@@ -568,11 +569,11 @@ module Google
|
|
568
569
|
# @param [String] resource
|
569
570
|
# Name of the resource for the `Policy` to clear.
|
570
571
|
# @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
|
572
|
+
# @param [String] fields
|
573
|
+
# Selector specifying which fields to include in a partial response.
|
571
574
|
# @param [String] quota_user
|
572
575
|
# Available to use for quota purposes for server-side applications. Can be any
|
573
576
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
574
|
-
# @param [String] fields
|
575
|
-
# Selector specifying which fields to include in a partial response.
|
576
577
|
# @param [Google::Apis::RequestOptions] options
|
577
578
|
# Request-specific options
|
578
579
|
#
|
@@ -585,15 +586,15 @@ module Google
|
|
585
586
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
586
587
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
587
588
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
588
|
-
def clear_folder_org_policy(resource, clear_org_policy_request_object = nil,
|
589
|
+
def clear_folder_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
589
590
|
command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
|
590
591
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
|
591
592
|
command.request_object = clear_org_policy_request_object
|
592
593
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
593
594
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
594
595
|
command.params['resource'] = resource unless resource.nil?
|
595
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
596
596
|
command.query['fields'] = fields unless fields.nil?
|
597
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
597
598
|
execute_or_queue_command(command, &block)
|
598
599
|
end
|
599
600
|
|
@@ -604,11 +605,11 @@ module Google
|
|
604
605
|
# @param [String] resource
|
605
606
|
# Resource name of the resource to attach the `Policy`.
|
606
607
|
# @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
|
608
|
+
# @param [String] fields
|
609
|
+
# Selector specifying which fields to include in a partial response.
|
607
610
|
# @param [String] quota_user
|
608
611
|
# Available to use for quota purposes for server-side applications. Can be any
|
609
612
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
610
|
-
# @param [String] fields
|
611
|
-
# Selector specifying which fields to include in a partial response.
|
612
613
|
# @param [Google::Apis::RequestOptions] options
|
613
614
|
# Request-specific options
|
614
615
|
#
|
@@ -621,15 +622,15 @@ module Google
|
|
621
622
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
622
623
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
623
624
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
624
|
-
def set_folder_org_policy(resource, set_org_policy_request_object = nil,
|
625
|
+
def set_folder_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
625
626
|
command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
|
626
627
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
|
627
628
|
command.request_object = set_org_policy_request_object
|
628
629
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
629
630
|
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
630
631
|
command.params['resource'] = resource unless resource.nil?
|
631
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
632
632
|
command.query['fields'] = fields unless fields.nil?
|
633
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
633
634
|
execute_or_queue_command(command, &block)
|
634
635
|
end
|
635
636
|
|
@@ -637,11 +638,11 @@ module Google
|
|
637
638
|
# @param [String] resource
|
638
639
|
# Name of the resource to list `Constraints` for.
|
639
640
|
# @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
|
641
|
+
# @param [String] fields
|
642
|
+
# Selector specifying which fields to include in a partial response.
|
640
643
|
# @param [String] quota_user
|
641
644
|
# Available to use for quota purposes for server-side applications. Can be any
|
642
645
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
643
|
-
# @param [String] fields
|
644
|
-
# Selector specifying which fields to include in a partial response.
|
645
646
|
# @param [Google::Apis::RequestOptions] options
|
646
647
|
# Request-specific options
|
647
648
|
#
|
@@ -654,15 +655,15 @@ module Google
|
|
654
655
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
655
656
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
656
657
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
657
|
-
def list_folder_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil,
|
658
|
+
def list_folder_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
658
659
|
command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
|
659
660
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
|
660
661
|
command.request_object = list_available_org_policy_constraints_request_object
|
661
662
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
|
662
663
|
command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
|
663
664
|
command.params['resource'] = resource unless resource.nil?
|
664
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
665
665
|
command.query['fields'] = fields unless fields.nil?
|
666
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
666
667
|
execute_or_queue_command(command, &block)
|
667
668
|
end
|
668
669
|
|
@@ -670,11 +671,11 @@ module Google
|
|
670
671
|
# @param [String] resource
|
671
672
|
# Name of the resource to list Policies for.
|
672
673
|
# @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
|
674
|
+
# @param [String] fields
|
675
|
+
# Selector specifying which fields to include in a partial response.
|
673
676
|
# @param [String] quota_user
|
674
677
|
# Available to use for quota purposes for server-side applications. Can be any
|
675
678
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
676
|
-
# @param [String] fields
|
677
|
-
# Selector specifying which fields to include in a partial response.
|
678
679
|
# @param [Google::Apis::RequestOptions] options
|
679
680
|
# Request-specific options
|
680
681
|
#
|
@@ -687,15 +688,15 @@ module Google
|
|
687
688
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
688
689
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
689
690
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
690
|
-
def list_folder_org_policies(resource, list_org_policies_request_object = nil,
|
691
|
+
def list_folder_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
691
692
|
command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
|
692
693
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
|
693
694
|
command.request_object = list_org_policies_request_object
|
694
695
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
|
695
696
|
command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
|
696
697
|
command.params['resource'] = resource unless resource.nil?
|
697
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
698
698
|
command.query['fields'] = fields unless fields.nil?
|
699
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
699
700
|
execute_or_queue_command(command, &block)
|
700
701
|
end
|
701
702
|
|
@@ -707,46 +708,11 @@ module Google
|
|
707
708
|
# @param [String] resource
|
708
709
|
# Name of the resource the `Policy` is set on.
|
709
710
|
# @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
|
710
|
-
# @param [String] quota_user
|
711
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
712
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
713
711
|
# @param [String] fields
|
714
712
|
# Selector specifying which fields to include in a partial response.
|
715
|
-
# @param [Google::Apis::RequestOptions] options
|
716
|
-
# Request-specific options
|
717
|
-
#
|
718
|
-
# @yield [result, err] Result & error if block supplied
|
719
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
720
|
-
# @yieldparam err [StandardError] error object if request failed
|
721
|
-
#
|
722
|
-
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
723
|
-
#
|
724
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
725
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
726
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
727
|
-
def get_folder_org_policy(resource, get_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
728
|
-
command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
|
729
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
|
730
|
-
command.request_object = get_org_policy_request_object
|
731
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
732
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
733
|
-
command.params['resource'] = resource unless resource.nil?
|
734
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
735
|
-
command.query['fields'] = fields unless fields.nil?
|
736
|
-
execute_or_queue_command(command, &block)
|
737
|
-
end
|
738
|
-
|
739
|
-
# Gets the effective `Policy` on a resource. This is the result of merging
|
740
|
-
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
741
|
-
# an `etag`set because it is a computed `Policy` across multiple resources.
|
742
|
-
# @param [String] resource
|
743
|
-
# The name of the resource to start computing the effective `Policy`.
|
744
|
-
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
745
713
|
# @param [String] quota_user
|
746
714
|
# Available to use for quota purposes for server-side applications. Can be any
|
747
715
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
748
|
-
# @param [String] fields
|
749
|
-
# Selector specifying which fields to include in a partial response.
|
750
716
|
# @param [Google::Apis::RequestOptions] options
|
751
717
|
# Request-specific options
|
752
718
|
#
|
@@ -758,168 +724,51 @@ module Google
|
|
758
724
|
#
|
759
725
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
760
726
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
761
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
762
|
-
def
|
763
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
764
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
765
|
-
command.request_object =
|
766
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
767
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
768
|
-
command.params['resource'] = resource unless resource.nil?
|
769
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
770
|
-
command.query['fields'] = fields unless fields.nil?
|
771
|
-
execute_or_queue_command(command, &block)
|
772
|
-
end
|
773
|
-
|
774
|
-
# Gets a list of ancestors in the resource hierarchy for the Project
|
775
|
-
# identified by the specified `project_id` (for example, `my-project-123`).
|
776
|
-
# The caller must have read permissions for this Project.
|
777
|
-
# @param [String] project_id
|
778
|
-
# The Project ID (for example, `my-project-123`).
|
779
|
-
# Required.
|
780
|
-
# @param [Google::Apis::CloudresourcemanagerV1::GetAncestryRequest] get_ancestry_request_object
|
781
|
-
# @param [String] quota_user
|
782
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
783
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
784
|
-
# @param [String] fields
|
785
|
-
# Selector specifying which fields to include in a partial response.
|
786
|
-
# @param [Google::Apis::RequestOptions] options
|
787
|
-
# Request-specific options
|
788
|
-
#
|
789
|
-
# @yield [result, err] Result & error if block supplied
|
790
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse] parsed result object
|
791
|
-
# @yieldparam err [StandardError] error object if request failed
|
792
|
-
#
|
793
|
-
# @return [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse]
|
794
|
-
#
|
795
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
796
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
797
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
798
|
-
def get_project_ancestry(project_id, get_ancestry_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
799
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}:getAncestry', options)
|
800
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryRequest::Representation
|
801
|
-
command.request_object = get_ancestry_request_object
|
802
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse::Representation
|
803
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse
|
804
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
805
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
806
|
-
command.query['fields'] = fields unless fields.nil?
|
807
|
-
execute_or_queue_command(command, &block)
|
808
|
-
end
|
809
|
-
|
810
|
-
# Returns permissions that a caller has on the specified Project.
|
811
|
-
# @param [String] resource
|
812
|
-
# REQUIRED: The resource for which the policy detail is being requested.
|
813
|
-
# See the operation documentation for the appropriate value for this field.
|
814
|
-
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
815
|
-
# @param [String] quota_user
|
816
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
817
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
818
|
-
# @param [String] fields
|
819
|
-
# Selector specifying which fields to include in a partial response.
|
820
|
-
# @param [Google::Apis::RequestOptions] options
|
821
|
-
# Request-specific options
|
822
|
-
#
|
823
|
-
# @yield [result, err] Result & error if block supplied
|
824
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
|
825
|
-
# @yieldparam err [StandardError] error object if request failed
|
826
|
-
#
|
827
|
-
# @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
|
828
|
-
#
|
829
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
830
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
831
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
832
|
-
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
833
|
-
command = make_simple_command(:post, 'v1/projects/{resource}:testIamPermissions', options)
|
834
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
|
835
|
-
command.request_object = test_iam_permissions_request_object
|
836
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
|
837
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
|
838
|
-
command.params['resource'] = resource unless resource.nil?
|
839
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
840
|
-
command.query['fields'] = fields unless fields.nil?
|
841
|
-
execute_or_queue_command(command, &block)
|
842
|
-
end
|
843
|
-
|
844
|
-
# Marks the Project identified by the specified
|
845
|
-
# `project_id` (for example, `my-project-123`) for deletion.
|
846
|
-
# This method will only affect the Project if the following criteria are met:
|
847
|
-
# + The Project does not have a billing account associated with it.
|
848
|
-
# + The Project has a lifecycle state of
|
849
|
-
# ACTIVE.
|
850
|
-
# This method changes the Project's lifecycle state from
|
851
|
-
# ACTIVE
|
852
|
-
# to DELETE_REQUESTED.
|
853
|
-
# The deletion starts at an unspecified time,
|
854
|
-
# at which point the Project is no longer accessible.
|
855
|
-
# Until the deletion completes, you can check the lifecycle state
|
856
|
-
# checked by retrieving the Project with GetProject,
|
857
|
-
# and the Project remains visible to ListProjects.
|
858
|
-
# However, you cannot update the project.
|
859
|
-
# After the deletion completes, the Project is not retrievable by
|
860
|
-
# the GetProject and
|
861
|
-
# ListProjects methods.
|
862
|
-
# The caller must have modify permissions for this Project.
|
863
|
-
# @param [String] project_id
|
864
|
-
# The Project ID (for example, `foo-bar-123`).
|
865
|
-
# Required.
|
866
|
-
# @param [String] quota_user
|
867
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
868
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
869
|
-
# @param [String] fields
|
870
|
-
# Selector specifying which fields to include in a partial response.
|
871
|
-
# @param [Google::Apis::RequestOptions] options
|
872
|
-
# Request-specific options
|
873
|
-
#
|
874
|
-
# @yield [result, err] Result & error if block supplied
|
875
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
876
|
-
# @yieldparam err [StandardError] error object if request failed
|
877
|
-
#
|
878
|
-
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
879
|
-
#
|
880
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
881
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
882
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
883
|
-
def delete_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
|
884
|
-
command = make_simple_command(:delete, 'v1/projects/{projectId}', options)
|
885
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
886
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
887
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
888
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
727
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
728
|
+
def get_folder_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
729
|
+
command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
|
730
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
|
731
|
+
command.request_object = get_org_policy_request_object
|
732
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
733
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
734
|
+
command.params['resource'] = resource unless resource.nil?
|
889
735
|
command.query['fields'] = fields unless fields.nil?
|
736
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
890
737
|
execute_or_queue_command(command, &block)
|
891
738
|
end
|
892
739
|
|
893
|
-
#
|
740
|
+
# Gets the effective `Policy` on a resource. This is the result of merging
|
741
|
+
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
742
|
+
# an `etag`set because it is a computed `Policy` across multiple resources.
|
894
743
|
# @param [String] resource
|
895
|
-
#
|
896
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
744
|
+
# The name of the resource to start computing the effective `Policy`.
|
745
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
746
|
+
# @param [String] fields
|
747
|
+
# Selector specifying which fields to include in a partial response.
|
897
748
|
# @param [String] quota_user
|
898
749
|
# Available to use for quota purposes for server-side applications. Can be any
|
899
750
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
900
|
-
# @param [String] fields
|
901
|
-
# Selector specifying which fields to include in a partial response.
|
902
751
|
# @param [Google::Apis::RequestOptions] options
|
903
752
|
# Request-specific options
|
904
753
|
#
|
905
754
|
# @yield [result, err] Result & error if block supplied
|
906
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
755
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
907
756
|
# @yieldparam err [StandardError] error object if request failed
|
908
757
|
#
|
909
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
758
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
910
759
|
#
|
911
760
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
912
761
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
913
762
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
914
|
-
def
|
915
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
916
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
917
|
-
command.request_object =
|
918
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
919
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
763
|
+
def get_folder_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
764
|
+
command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
|
765
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
|
766
|
+
command.request_object = get_effective_org_policy_request_object
|
767
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
768
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
920
769
|
command.params['resource'] = resource unless resource.nil?
|
921
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
922
770
|
command.query['fields'] = fields unless fields.nil?
|
771
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
923
772
|
execute_or_queue_command(command, &block)
|
924
773
|
end
|
925
774
|
|
@@ -955,11 +804,11 @@ module Google
|
|
955
804
|
# REQUIRED: The resource for which the policy is being specified.
|
956
805
|
# See the operation documentation for the appropriate value for this field.
|
957
806
|
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
807
|
+
# @param [String] fields
|
808
|
+
# Selector specifying which fields to include in a partial response.
|
958
809
|
# @param [String] quota_user
|
959
810
|
# Available to use for quota purposes for server-side applications. Can be any
|
960
811
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
961
|
-
# @param [String] fields
|
962
|
-
# Selector specifying which fields to include in a partial response.
|
963
812
|
# @param [Google::Apis::RequestOptions] options
|
964
813
|
# Request-specific options
|
965
814
|
#
|
@@ -972,15 +821,15 @@ module Google
|
|
972
821
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
973
822
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
974
823
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
975
|
-
def set_project_iam_policy(resource, set_iam_policy_request_object = nil,
|
824
|
+
def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
976
825
|
command = make_simple_command(:post, 'v1/projects/{resource}:setIamPolicy', options)
|
977
826
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
|
978
827
|
command.request_object = set_iam_policy_request_object
|
979
828
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
980
829
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
|
981
830
|
command.params['resource'] = resource unless resource.nil?
|
982
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
983
831
|
command.query['fields'] = fields unless fields.nil?
|
832
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
984
833
|
execute_or_queue_command(command, &block)
|
985
834
|
end
|
986
835
|
|
@@ -988,11 +837,11 @@ module Google
|
|
988
837
|
# @param [String] resource
|
989
838
|
# Name of the resource to list `Constraints` for.
|
990
839
|
# @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
|
840
|
+
# @param [String] fields
|
841
|
+
# Selector specifying which fields to include in a partial response.
|
991
842
|
# @param [String] quota_user
|
992
843
|
# Available to use for quota purposes for server-side applications. Can be any
|
993
844
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
994
|
-
# @param [String] fields
|
995
|
-
# Selector specifying which fields to include in a partial response.
|
996
845
|
# @param [Google::Apis::RequestOptions] options
|
997
846
|
# Request-specific options
|
998
847
|
#
|
@@ -1005,15 +854,15 @@ module Google
|
|
1005
854
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1006
855
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1007
856
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1008
|
-
def list_project_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil,
|
857
|
+
def list_project_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1009
858
|
command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
|
1010
859
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
|
1011
860
|
command.request_object = list_available_org_policy_constraints_request_object
|
1012
861
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
|
1013
862
|
command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
|
1014
863
|
command.params['resource'] = resource unless resource.nil?
|
1015
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1016
864
|
command.query['fields'] = fields unless fields.nil?
|
865
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1017
866
|
execute_or_queue_command(command, &block)
|
1018
867
|
end
|
1019
868
|
|
@@ -1023,11 +872,11 @@ module Google
|
|
1023
872
|
# REQUIRED: The resource for which the policy is being requested.
|
1024
873
|
# See the operation documentation for the appropriate value for this field.
|
1025
874
|
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
875
|
+
# @param [String] fields
|
876
|
+
# Selector specifying which fields to include in a partial response.
|
1026
877
|
# @param [String] quota_user
|
1027
878
|
# Available to use for quota purposes for server-side applications. Can be any
|
1028
879
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1029
|
-
# @param [String] fields
|
1030
|
-
# Selector specifying which fields to include in a partial response.
|
1031
880
|
# @param [Google::Apis::RequestOptions] options
|
1032
881
|
# Request-specific options
|
1033
882
|
#
|
@@ -1040,15 +889,15 @@ module Google
|
|
1040
889
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1041
890
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1042
891
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1043
|
-
def get_project_iam_policy(resource, get_iam_policy_request_object = nil,
|
892
|
+
def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1044
893
|
command = make_simple_command(:post, 'v1/projects/{resource}:getIamPolicy', options)
|
1045
894
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
|
1046
895
|
command.request_object = get_iam_policy_request_object
|
1047
896
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
1048
897
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
|
1049
898
|
command.params['resource'] = resource unless resource.nil?
|
1050
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1051
899
|
command.query['fields'] = fields unless fields.nil?
|
900
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1052
901
|
execute_or_queue_command(command, &block)
|
1053
902
|
end
|
1054
903
|
|
@@ -1060,11 +909,11 @@ module Google
|
|
1060
909
|
# @param [String] resource
|
1061
910
|
# Name of the resource the `Policy` is set on.
|
1062
911
|
# @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
|
912
|
+
# @param [String] fields
|
913
|
+
# Selector specifying which fields to include in a partial response.
|
1063
914
|
# @param [String] quota_user
|
1064
915
|
# Available to use for quota purposes for server-side applications. Can be any
|
1065
916
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1066
|
-
# @param [String] fields
|
1067
|
-
# Selector specifying which fields to include in a partial response.
|
1068
917
|
# @param [Google::Apis::RequestOptions] options
|
1069
918
|
# Request-specific options
|
1070
919
|
#
|
@@ -1077,15 +926,15 @@ module Google
|
|
1077
926
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1078
927
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1079
928
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1080
|
-
def get_project_org_policy(resource, get_org_policy_request_object = nil,
|
929
|
+
def get_project_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1081
930
|
command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
|
1082
931
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
|
1083
932
|
command.request_object = get_org_policy_request_object
|
1084
933
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
1085
934
|
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
1086
935
|
command.params['resource'] = resource unless resource.nil?
|
1087
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1088
936
|
command.query['fields'] = fields unless fields.nil?
|
937
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1089
938
|
execute_or_queue_command(command, &block)
|
1090
939
|
end
|
1091
940
|
|
@@ -1095,11 +944,11 @@ module Google
|
|
1095
944
|
# @param [String] resource
|
1096
945
|
# The name of the resource to start computing the effective `Policy`.
|
1097
946
|
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
947
|
+
# @param [String] fields
|
948
|
+
# Selector specifying which fields to include in a partial response.
|
1098
949
|
# @param [String] quota_user
|
1099
950
|
# Available to use for quota purposes for server-side applications. Can be any
|
1100
951
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1101
|
-
# @param [String] fields
|
1102
|
-
# Selector specifying which fields to include in a partial response.
|
1103
952
|
# @param [Google::Apis::RequestOptions] options
|
1104
953
|
# Request-specific options
|
1105
954
|
#
|
@@ -1112,15 +961,15 @@ module Google
|
|
1112
961
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1113
962
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1114
963
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1115
|
-
def get_project_effective_org_policy(resource, get_effective_org_policy_request_object = nil,
|
964
|
+
def get_project_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1116
965
|
command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
|
1117
966
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
|
1118
967
|
command.request_object = get_effective_org_policy_request_object
|
1119
968
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
1120
969
|
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
1121
970
|
command.params['resource'] = resource unless resource.nil?
|
1122
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1123
971
|
command.query['fields'] = fields unless fields.nil?
|
972
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1124
973
|
execute_or_queue_command(command, &block)
|
1125
974
|
end
|
1126
975
|
|
@@ -1134,11 +983,11 @@ module Google
|
|
1134
983
|
# The project ID (for example, `foo-bar-123`).
|
1135
984
|
# Required.
|
1136
985
|
# @param [Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object
|
986
|
+
# @param [String] fields
|
987
|
+
# Selector specifying which fields to include in a partial response.
|
1137
988
|
# @param [String] quota_user
|
1138
989
|
# Available to use for quota purposes for server-side applications. Can be any
|
1139
990
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1140
|
-
# @param [String] fields
|
1141
|
-
# Selector specifying which fields to include in a partial response.
|
1142
991
|
# @param [Google::Apis::RequestOptions] options
|
1143
992
|
# Request-specific options
|
1144
993
|
#
|
@@ -1151,15 +1000,15 @@ module Google
|
|
1151
1000
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1152
1001
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1153
1002
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1154
|
-
def undelete_project(project_id, undelete_project_request_object = nil,
|
1003
|
+
def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1155
1004
|
command = make_simple_command(:post, 'v1/projects/{projectId}:undelete', options)
|
1156
1005
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest::Representation
|
1157
1006
|
command.request_object = undelete_project_request_object
|
1158
1007
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
1159
1008
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
1160
1009
|
command.params['projectId'] = project_id unless project_id.nil?
|
1161
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1162
1010
|
command.query['fields'] = fields unless fields.nil?
|
1011
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1163
1012
|
execute_or_queue_command(command, &block)
|
1164
1013
|
end
|
1165
1014
|
|
@@ -1170,11 +1019,11 @@ module Google
|
|
1170
1019
|
# The project ID (for example, `my-project-123`).
|
1171
1020
|
# Required.
|
1172
1021
|
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
|
1022
|
+
# @param [String] fields
|
1023
|
+
# Selector specifying which fields to include in a partial response.
|
1173
1024
|
# @param [String] quota_user
|
1174
1025
|
# Available to use for quota purposes for server-side applications. Can be any
|
1175
1026
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1176
|
-
# @param [String] fields
|
1177
|
-
# Selector specifying which fields to include in a partial response.
|
1178
1027
|
# @param [Google::Apis::RequestOptions] options
|
1179
1028
|
# Request-specific options
|
1180
1029
|
#
|
@@ -1187,15 +1036,15 @@ module Google
|
|
1187
1036
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1188
1037
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1189
1038
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1190
|
-
def update_project(project_id, project_object = nil,
|
1039
|
+
def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1191
1040
|
command = make_simple_command(:put, 'v1/projects/{projectId}', options)
|
1192
1041
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
1193
1042
|
command.request_object = project_object
|
1194
1043
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
1195
1044
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Project
|
1196
1045
|
command.params['projectId'] = project_id unless project_id.nil?
|
1197
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1198
1046
|
command.query['fields'] = fields unless fields.nil?
|
1047
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1199
1048
|
execute_or_queue_command(command, &block)
|
1200
1049
|
end
|
1201
1050
|
|
@@ -1229,11 +1078,11 @@ module Google
|
|
1229
1078
|
# The server can return fewer Projects than requested.
|
1230
1079
|
# If unspecified, server picks an appropriate default.
|
1231
1080
|
# Optional.
|
1081
|
+
# @param [String] fields
|
1082
|
+
# Selector specifying which fields to include in a partial response.
|
1232
1083
|
# @param [String] quota_user
|
1233
1084
|
# Available to use for quota purposes for server-side applications. Can be any
|
1234
1085
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1235
|
-
# @param [String] fields
|
1236
|
-
# Selector specifying which fields to include in a partial response.
|
1237
1086
|
# @param [Google::Apis::RequestOptions] options
|
1238
1087
|
# Request-specific options
|
1239
1088
|
#
|
@@ -1246,15 +1095,15 @@ module Google
|
|
1246
1095
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1247
1096
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1248
1097
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1249
|
-
def list_projects(filter: nil, page_token: nil, page_size: nil,
|
1098
|
+
def list_projects(filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1250
1099
|
command = make_simple_command(:get, 'v1/projects', options)
|
1251
1100
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse::Representation
|
1252
1101
|
command.response_class = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse
|
1253
1102
|
command.query['filter'] = filter unless filter.nil?
|
1254
1103
|
command.query['pageToken'] = page_token unless page_token.nil?
|
1255
1104
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1256
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1257
1105
|
command.query['fields'] = fields unless fields.nil?
|
1106
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1258
1107
|
execute_or_queue_command(command, &block)
|
1259
1108
|
end
|
1260
1109
|
|
@@ -1265,11 +1114,11 @@ module Google
|
|
1265
1114
|
# @param [String] resource
|
1266
1115
|
# Resource name of the resource to attach the `Policy`.
|
1267
1116
|
# @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
|
1117
|
+
# @param [String] fields
|
1118
|
+
# Selector specifying which fields to include in a partial response.
|
1268
1119
|
# @param [String] quota_user
|
1269
1120
|
# Available to use for quota purposes for server-side applications. Can be any
|
1270
1121
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1271
|
-
# @param [String] fields
|
1272
|
-
# Selector specifying which fields to include in a partial response.
|
1273
1122
|
# @param [Google::Apis::RequestOptions] options
|
1274
1123
|
# Request-specific options
|
1275
1124
|
#
|
@@ -1282,15 +1131,15 @@ module Google
|
|
1282
1131
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1283
1132
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1284
1133
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1285
|
-
def set_project_org_policy(resource, set_org_policy_request_object = nil,
|
1134
|
+
def set_project_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1286
1135
|
command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
|
1287
1136
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
|
1288
1137
|
command.request_object = set_org_policy_request_object
|
1289
1138
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
1290
1139
|
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
1291
1140
|
command.params['resource'] = resource unless resource.nil?
|
1292
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1293
1141
|
command.query['fields'] = fields unless fields.nil?
|
1142
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1294
1143
|
execute_or_queue_command(command, &block)
|
1295
1144
|
end
|
1296
1145
|
|
@@ -1302,11 +1151,11 @@ module Google
|
|
1302
1151
|
# latency. 95th percentile latency is around 11 seconds. We recommend
|
1303
1152
|
# polling at the 5th second with an exponential backoff.
|
1304
1153
|
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
|
1154
|
+
# @param [String] fields
|
1155
|
+
# Selector specifying which fields to include in a partial response.
|
1305
1156
|
# @param [String] quota_user
|
1306
1157
|
# Available to use for quota purposes for server-side applications. Can be any
|
1307
1158
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1308
|
-
# @param [String] fields
|
1309
|
-
# Selector specifying which fields to include in a partial response.
|
1310
1159
|
# @param [Google::Apis::RequestOptions] options
|
1311
1160
|
# Request-specific options
|
1312
1161
|
#
|
@@ -1319,14 +1168,14 @@ module Google
|
|
1319
1168
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1320
1169
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1321
1170
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1322
|
-
def create_project(project_object = nil,
|
1171
|
+
def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1323
1172
|
command = make_simple_command(:post, 'v1/projects', options)
|
1324
1173
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
1325
1174
|
command.request_object = project_object
|
1326
1175
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
|
1327
1176
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
|
1328
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1329
1177
|
command.query['fields'] = fields unless fields.nil?
|
1178
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1330
1179
|
execute_or_queue_command(command, &block)
|
1331
1180
|
end
|
1332
1181
|
|
@@ -1334,11 +1183,11 @@ module Google
|
|
1334
1183
|
# @param [String] resource
|
1335
1184
|
# Name of the resource to list Policies for.
|
1336
1185
|
# @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
|
1186
|
+
# @param [String] fields
|
1187
|
+
# Selector specifying which fields to include in a partial response.
|
1337
1188
|
# @param [String] quota_user
|
1338
1189
|
# Available to use for quota purposes for server-side applications. Can be any
|
1339
1190
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1340
|
-
# @param [String] fields
|
1341
|
-
# Selector specifying which fields to include in a partial response.
|
1342
1191
|
# @param [Google::Apis::RequestOptions] options
|
1343
1192
|
# Request-specific options
|
1344
1193
|
#
|
@@ -1351,15 +1200,15 @@ module Google
|
|
1351
1200
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1352
1201
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1353
1202
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1354
|
-
def list_project_org_policies(resource, list_org_policies_request_object = nil,
|
1203
|
+
def list_project_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1355
1204
|
command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
|
1356
1205
|
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
|
1357
1206
|
command.request_object = list_org_policies_request_object
|
1358
1207
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
|
1359
1208
|
command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
|
1360
1209
|
command.params['resource'] = resource unless resource.nil?
|
1361
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1362
1210
|
command.query['fields'] = fields unless fields.nil?
|
1211
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1363
1212
|
execute_or_queue_command(command, &block)
|
1364
1213
|
end
|
1365
1214
|
|
@@ -1369,11 +1218,11 @@ module Google
|
|
1369
1218
|
# @param [String] project_id
|
1370
1219
|
# The Project ID (for example, `my-project-123`).
|
1371
1220
|
# Required.
|
1221
|
+
# @param [String] fields
|
1222
|
+
# Selector specifying which fields to include in a partial response.
|
1372
1223
|
# @param [String] quota_user
|
1373
1224
|
# Available to use for quota purposes for server-side applications. Can be any
|
1374
1225
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1375
|
-
# @param [String] fields
|
1376
|
-
# Selector specifying which fields to include in a partial response.
|
1377
1226
|
# @param [Google::Apis::RequestOptions] options
|
1378
1227
|
# Request-specific options
|
1379
1228
|
#
|
@@ -1386,21 +1235,173 @@ module Google
|
|
1386
1235
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1387
1236
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1388
1237
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1389
|
-
def get_project(project_id,
|
1238
|
+
def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
1390
1239
|
command = make_simple_command(:get, 'v1/projects/{projectId}', options)
|
1391
1240
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
1392
1241
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Project
|
1393
1242
|
command.params['projectId'] = project_id unless project_id.nil?
|
1243
|
+
command.query['fields'] = fields unless fields.nil?
|
1244
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1245
|
+
execute_or_queue_command(command, &block)
|
1246
|
+
end
|
1247
|
+
|
1248
|
+
# Gets a list of ancestors in the resource hierarchy for the Project
|
1249
|
+
# identified by the specified `project_id` (for example, `my-project-123`).
|
1250
|
+
# The caller must have read permissions for this Project.
|
1251
|
+
# @param [String] project_id
|
1252
|
+
# The Project ID (for example, `my-project-123`).
|
1253
|
+
# Required.
|
1254
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetAncestryRequest] get_ancestry_request_object
|
1255
|
+
# @param [String] fields
|
1256
|
+
# Selector specifying which fields to include in a partial response.
|
1257
|
+
# @param [String] quota_user
|
1258
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1259
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1260
|
+
# @param [Google::Apis::RequestOptions] options
|
1261
|
+
# Request-specific options
|
1262
|
+
#
|
1263
|
+
# @yield [result, err] Result & error if block supplied
|
1264
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse] parsed result object
|
1265
|
+
# @yieldparam err [StandardError] error object if request failed
|
1266
|
+
#
|
1267
|
+
# @return [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse]
|
1268
|
+
#
|
1269
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1270
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1271
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1272
|
+
def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1273
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}:getAncestry', options)
|
1274
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryRequest::Representation
|
1275
|
+
command.request_object = get_ancestry_request_object
|
1276
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse::Representation
|
1277
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse
|
1278
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
1279
|
+
command.query['fields'] = fields unless fields.nil?
|
1280
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1281
|
+
execute_or_queue_command(command, &block)
|
1282
|
+
end
|
1283
|
+
|
1284
|
+
# Returns permissions that a caller has on the specified Project.
|
1285
|
+
# @param [String] resource
|
1286
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
1287
|
+
# See the operation documentation for the appropriate value for this field.
|
1288
|
+
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1289
|
+
# @param [String] fields
|
1290
|
+
# Selector specifying which fields to include in a partial response.
|
1291
|
+
# @param [String] quota_user
|
1292
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1293
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1294
|
+
# @param [Google::Apis::RequestOptions] options
|
1295
|
+
# Request-specific options
|
1296
|
+
#
|
1297
|
+
# @yield [result, err] Result & error if block supplied
|
1298
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
|
1299
|
+
# @yieldparam err [StandardError] error object if request failed
|
1300
|
+
#
|
1301
|
+
# @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
|
1302
|
+
#
|
1303
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1304
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1305
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1306
|
+
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1307
|
+
command = make_simple_command(:post, 'v1/projects/{resource}:testIamPermissions', options)
|
1308
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
|
1309
|
+
command.request_object = test_iam_permissions_request_object
|
1310
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
|
1311
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
|
1312
|
+
command.params['resource'] = resource unless resource.nil?
|
1313
|
+
command.query['fields'] = fields unless fields.nil?
|
1314
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1315
|
+
execute_or_queue_command(command, &block)
|
1316
|
+
end
|
1317
|
+
|
1318
|
+
# Marks the Project identified by the specified
|
1319
|
+
# `project_id` (for example, `my-project-123`) for deletion.
|
1320
|
+
# This method will only affect the Project if the following criteria are met:
|
1321
|
+
# + The Project does not have a billing account associated with it.
|
1322
|
+
# + The Project has a lifecycle state of
|
1323
|
+
# ACTIVE.
|
1324
|
+
# This method changes the Project's lifecycle state from
|
1325
|
+
# ACTIVE
|
1326
|
+
# to DELETE_REQUESTED.
|
1327
|
+
# The deletion starts at an unspecified time,
|
1328
|
+
# at which point the Project is no longer accessible.
|
1329
|
+
# Until the deletion completes, you can check the lifecycle state
|
1330
|
+
# checked by retrieving the Project with GetProject,
|
1331
|
+
# and the Project remains visible to ListProjects.
|
1332
|
+
# However, you cannot update the project.
|
1333
|
+
# After the deletion completes, the Project is not retrievable by
|
1334
|
+
# the GetProject and
|
1335
|
+
# ListProjects methods.
|
1336
|
+
# The caller must have modify permissions for this Project.
|
1337
|
+
# @param [String] project_id
|
1338
|
+
# The Project ID (for example, `foo-bar-123`).
|
1339
|
+
# Required.
|
1340
|
+
# @param [String] fields
|
1341
|
+
# Selector specifying which fields to include in a partial response.
|
1342
|
+
# @param [String] quota_user
|
1343
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1344
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1345
|
+
# @param [Google::Apis::RequestOptions] options
|
1346
|
+
# Request-specific options
|
1347
|
+
#
|
1348
|
+
# @yield [result, err] Result & error if block supplied
|
1349
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
1350
|
+
# @yieldparam err [StandardError] error object if request failed
|
1351
|
+
#
|
1352
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
1353
|
+
#
|
1354
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1355
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1356
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1357
|
+
def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
1358
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}', options)
|
1359
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
1360
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
1361
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
1362
|
+
command.query['fields'] = fields unless fields.nil?
|
1394
1363
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1364
|
+
execute_or_queue_command(command, &block)
|
1365
|
+
end
|
1366
|
+
|
1367
|
+
# Clears a `Policy` from a resource.
|
1368
|
+
# @param [String] resource
|
1369
|
+
# Name of the resource for the `Policy` to clear.
|
1370
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
|
1371
|
+
# @param [String] fields
|
1372
|
+
# Selector specifying which fields to include in a partial response.
|
1373
|
+
# @param [String] quota_user
|
1374
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1375
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1376
|
+
# @param [Google::Apis::RequestOptions] options
|
1377
|
+
# Request-specific options
|
1378
|
+
#
|
1379
|
+
# @yield [result, err] Result & error if block supplied
|
1380
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
1381
|
+
# @yieldparam err [StandardError] error object if request failed
|
1382
|
+
#
|
1383
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
1384
|
+
#
|
1385
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1386
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1387
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1388
|
+
def clear_project_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1389
|
+
command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
|
1390
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
|
1391
|
+
command.request_object = clear_org_policy_request_object
|
1392
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
1393
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
1394
|
+
command.params['resource'] = resource unless resource.nil?
|
1395
1395
|
command.query['fields'] = fields unless fields.nil?
|
1396
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1396
1397
|
execute_or_queue_command(command, &block)
|
1397
1398
|
end
|
1398
1399
|
|
1399
1400
|
protected
|
1400
1401
|
|
1401
1402
|
def apply_command_defaults(command)
|
1402
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1403
1403
|
command.query['key'] = key unless key.nil?
|
1404
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1404
1405
|
end
|
1405
1406
|
end
|
1406
1407
|
end
|