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