google-api-client 0.9.8 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
@@ -47,10 +47,13 @@ module Google
|
|
47
47
|
super('https://cloudresourcemanager.googleapis.com/', '')
|
48
48
|
end
|
49
49
|
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
50
|
+
# Updates the specified `Policy` on the resource. Creates a new `Policy` for
|
51
|
+
# that `Constraint` on the resource if one does not exist.
|
52
|
+
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
53
|
+
# write of the `Policy`.
|
54
|
+
# @param [String] resource
|
55
|
+
# Resource name of the resource to attach the `Policy`.
|
56
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
|
54
57
|
# @param [String] fields
|
55
58
|
# Selector specifying which fields to include in a partial response.
|
56
59
|
# @param [String] quota_user
|
@@ -60,44 +63,32 @@ module Google
|
|
60
63
|
# Request-specific options
|
61
64
|
#
|
62
65
|
# @yield [result, err] Result & error if block supplied
|
63
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
66
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
64
67
|
# @yieldparam err [StandardError] error object if request failed
|
65
68
|
#
|
66
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
69
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
67
70
|
#
|
68
71
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
69
72
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
70
73
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
71
|
-
def
|
72
|
-
command = make_simple_command(:
|
73
|
-
command.
|
74
|
-
command.
|
75
|
-
command.
|
74
|
+
def set_folder_org_policy_v1(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
75
|
+
command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicyV1', options)
|
76
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
|
77
|
+
command.request_object = set_org_policy_request_object
|
78
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
79
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
80
|
+
command.params['resource'] = resource unless resource.nil?
|
76
81
|
command.query['fields'] = fields unless fields.nil?
|
77
82
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
78
83
|
execute_or_queue_command(command, &block)
|
79
84
|
end
|
80
85
|
|
81
|
-
#
|
82
|
-
#
|
83
|
-
#
|
84
|
-
# @param [String]
|
85
|
-
#
|
86
|
-
#
|
87
|
-
# @param [Fixnum] page_size
|
88
|
-
# The maximum number of Projects to return in the response. The server can
|
89
|
-
# return fewer Projects than requested. If unspecified, server picks an
|
90
|
-
# appropriate default. Optional.
|
91
|
-
# @param [String] filter
|
92
|
-
# An expression for filtering the results of the request. Filter rules are case
|
93
|
-
# insensitive. The fields eligible for filtering are: + `name` + `id` + labels.
|
94
|
-
# key where *key* is the name of a label Some examples of using labels as
|
95
|
-
# filters: |Filter|Description| |------|-----------| |name:*|The project has a
|
96
|
-
# name.| |name:Howl|The project's name is `Howl` or `howl`.| |name:HOWL|
|
97
|
-
# Equivalent to above.| |NAME:howl|Equivalent to above.| |labels.color:*|The
|
98
|
-
# project has the label `color`.| |labels.color:red|The project's label `color`
|
99
|
-
# has the value `red`.| |labels.color:red label.size:big|The project's label `
|
100
|
-
# color` has the value `red` and its label `size` has the value `big`. Optional.
|
86
|
+
# Gets the effective `Policy` on a resource. This is the result of merging
|
87
|
+
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
88
|
+
# an `etag`set because it is a computed `Policy` across multiple resources.
|
89
|
+
# @param [String] resource
|
90
|
+
# The name of the resource to start computing the effective `Policy`.
|
91
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
101
92
|
# @param [String] fields
|
102
93
|
# Selector specifying which fields to include in a partial response.
|
103
94
|
# @param [String] quota_user
|
@@ -107,32 +98,30 @@ module Google
|
|
107
98
|
# Request-specific options
|
108
99
|
#
|
109
100
|
# @yield [result, err] Result & error if block supplied
|
110
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
101
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
111
102
|
# @yieldparam err [StandardError] error object if request failed
|
112
103
|
#
|
113
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
104
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
114
105
|
#
|
115
106
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
116
107
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
117
108
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
118
|
-
def
|
119
|
-
command = make_simple_command(:
|
120
|
-
command.
|
121
|
-
command.
|
122
|
-
command.
|
123
|
-
command.
|
124
|
-
command.
|
109
|
+
def get_folder_effective_org_policy_v1(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
110
|
+
command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicyV1', options)
|
111
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
|
112
|
+
command.request_object = get_effective_org_policy_request_object
|
113
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
114
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
115
|
+
command.params['resource'] = resource unless resource.nil?
|
125
116
|
command.query['fields'] = fields unless fields.nil?
|
126
117
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
127
118
|
execute_or_queue_command(command, &block)
|
128
119
|
end
|
129
120
|
|
130
|
-
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
# @param [
|
134
|
-
# The project ID (for example, `my-project-123`). Required.
|
135
|
-
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
|
121
|
+
# Clears a `Policy` from a resource.
|
122
|
+
# @param [String] resource
|
123
|
+
# Name of the resource for the `Policy` to clear.
|
124
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
|
136
125
|
# @param [String] fields
|
137
126
|
# Selector specifying which fields to include in a partial response.
|
138
127
|
# @param [String] quota_user
|
@@ -142,40 +131,33 @@ module Google
|
|
142
131
|
# Request-specific options
|
143
132
|
#
|
144
133
|
# @yield [result, err] Result & error if block supplied
|
145
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
134
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
146
135
|
# @yieldparam err [StandardError] error object if request failed
|
147
136
|
#
|
148
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
137
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
149
138
|
#
|
150
139
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
151
140
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
152
141
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
153
|
-
def
|
154
|
-
command = make_simple_command(:
|
155
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
156
|
-
command.request_object =
|
157
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
158
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
159
|
-
command.params['
|
142
|
+
def clear_folder_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
143
|
+
command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
|
144
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
|
145
|
+
command.request_object = clear_org_policy_request_object
|
146
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
147
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
148
|
+
command.params['resource'] = resource unless resource.nil?
|
160
149
|
command.query['fields'] = fields unless fields.nil?
|
161
150
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
162
151
|
execute_or_queue_command(command, &block)
|
163
152
|
end
|
164
153
|
|
165
|
-
#
|
166
|
-
#
|
167
|
-
#
|
168
|
-
#
|
169
|
-
#
|
170
|
-
#
|
171
|
-
#
|
172
|
-
# lifecycle state checked by retrieving the Project with GetProject, and the
|
173
|
-
# Project remains visible to ListProjects. However, you cannot update the
|
174
|
-
# project. After the deletion completes, the Project is not retrievable by the
|
175
|
-
# GetProject and ListProjects methods. The caller must have modify permissions
|
176
|
-
# for this Project.
|
177
|
-
# @param [String] project_id
|
178
|
-
# The Project ID (for example, `foo-bar-123`). Required.
|
154
|
+
# Updates the specified `Policy` on the resource. Creates a new `Policy` for
|
155
|
+
# that `Constraint` on the resource if one does not exist.
|
156
|
+
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
157
|
+
# write of the `Policy`.
|
158
|
+
# @param [String] resource
|
159
|
+
# Resource name of the resource to attach the `Policy`.
|
160
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
|
179
161
|
# @param [String] fields
|
180
162
|
# Selector specifying which fields to include in a partial response.
|
181
163
|
# @param [String] quota_user
|
@@ -185,32 +167,30 @@ module Google
|
|
185
167
|
# Request-specific options
|
186
168
|
#
|
187
169
|
# @yield [result, err] Result & error if block supplied
|
188
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
170
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
189
171
|
# @yieldparam err [StandardError] error object if request failed
|
190
172
|
#
|
191
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
173
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
192
174
|
#
|
193
175
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
194
176
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
195
177
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
196
|
-
def
|
197
|
-
command = make_simple_command(:
|
198
|
-
command.
|
199
|
-
command.
|
200
|
-
command.
|
178
|
+
def set_folder_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
179
|
+
command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
|
180
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
|
181
|
+
command.request_object = set_org_policy_request_object
|
182
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
183
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
184
|
+
command.params['resource'] = resource unless resource.nil?
|
201
185
|
command.query['fields'] = fields unless fields.nil?
|
202
186
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
203
187
|
execute_or_queue_command(command, &block)
|
204
188
|
end
|
205
189
|
|
206
|
-
#
|
207
|
-
#
|
208
|
-
#
|
209
|
-
#
|
210
|
-
# caller must have modify permissions for this Project.
|
211
|
-
# @param [String] project_id
|
212
|
-
# The project ID (for example, `foo-bar-123`). Required.
|
213
|
-
# @param [Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object
|
190
|
+
# Clears a `Policy` from a resource.
|
191
|
+
# @param [String] resource
|
192
|
+
# Name of the resource for the `Policy` to clear.
|
193
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
|
214
194
|
# @param [String] fields
|
215
195
|
# Selector specifying which fields to include in a partial response.
|
216
196
|
# @param [String] quota_user
|
@@ -228,25 +208,231 @@ module Google
|
|
228
208
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
229
209
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
230
210
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
231
|
-
def
|
232
|
-
command = make_simple_command(:post, 'v1/
|
233
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
234
|
-
command.request_object =
|
211
|
+
def clear_folder_org_policy_v1(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
212
|
+
command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicyV1', options)
|
213
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
|
214
|
+
command.request_object = clear_org_policy_request_object
|
235
215
|
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
236
216
|
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
237
|
-
command.params['
|
217
|
+
command.params['resource'] = resource unless resource.nil?
|
218
|
+
command.query['fields'] = fields unless fields.nil?
|
219
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
220
|
+
execute_or_queue_command(command, &block)
|
221
|
+
end
|
222
|
+
|
223
|
+
# Lists all the `Policies` set for a particular resource.
|
224
|
+
# @param [String] resource
|
225
|
+
# Name of the resource to list Policies for.
|
226
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
|
227
|
+
# @param [String] fields
|
228
|
+
# Selector specifying which fields to include in a partial response.
|
229
|
+
# @param [String] quota_user
|
230
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
231
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
232
|
+
# @param [Google::Apis::RequestOptions] options
|
233
|
+
# Request-specific options
|
234
|
+
#
|
235
|
+
# @yield [result, err] Result & error if block supplied
|
236
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
|
237
|
+
# @yieldparam err [StandardError] error object if request failed
|
238
|
+
#
|
239
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
|
240
|
+
#
|
241
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
242
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
243
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
244
|
+
def list_folder_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
245
|
+
command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
|
246
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
|
247
|
+
command.request_object = list_org_policies_request_object
|
248
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
|
249
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
|
250
|
+
command.params['resource'] = resource unless resource.nil?
|
251
|
+
command.query['fields'] = fields unless fields.nil?
|
252
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
253
|
+
execute_or_queue_command(command, &block)
|
254
|
+
end
|
255
|
+
|
256
|
+
# Lists `Constraints` that could be applied on the specified resource.
|
257
|
+
# @param [String] resource
|
258
|
+
# Name of the resource to list `Constraints` for.
|
259
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
|
260
|
+
# @param [String] fields
|
261
|
+
# Selector specifying which fields to include in a partial response.
|
262
|
+
# @param [String] quota_user
|
263
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
264
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
265
|
+
# @param [Google::Apis::RequestOptions] options
|
266
|
+
# Request-specific options
|
267
|
+
#
|
268
|
+
# @yield [result, err] Result & error if block supplied
|
269
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
|
270
|
+
# @yieldparam err [StandardError] error object if request failed
|
271
|
+
#
|
272
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
|
273
|
+
#
|
274
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
275
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
276
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
277
|
+
def list_folder_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
278
|
+
command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
|
279
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
|
280
|
+
command.request_object = list_available_org_policy_constraints_request_object
|
281
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
|
282
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
|
283
|
+
command.params['resource'] = resource unless resource.nil?
|
284
|
+
command.query['fields'] = fields unless fields.nil?
|
285
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
286
|
+
execute_or_queue_command(command, &block)
|
287
|
+
end
|
288
|
+
|
289
|
+
# Gets a `Policy` on a resource.
|
290
|
+
# If no `Policy` is set on the resource, a `Policy` is returned with default
|
291
|
+
# values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
|
292
|
+
# `etag` value can be used with `SetOrgPolicy()` to create or update a
|
293
|
+
# `Policy` during read-modify-write.
|
294
|
+
# @param [String] resource
|
295
|
+
# Name of the resource the `Policy` is set on.
|
296
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
|
297
|
+
# @param [String] fields
|
298
|
+
# Selector specifying which fields to include in a partial response.
|
299
|
+
# @param [String] quota_user
|
300
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
301
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
302
|
+
# @param [Google::Apis::RequestOptions] options
|
303
|
+
# Request-specific options
|
304
|
+
#
|
305
|
+
# @yield [result, err] Result & error if block supplied
|
306
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
307
|
+
# @yieldparam err [StandardError] error object if request failed
|
308
|
+
#
|
309
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
310
|
+
#
|
311
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
312
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
313
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
314
|
+
def get_folder_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
315
|
+
command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
|
316
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
|
317
|
+
command.request_object = get_org_policy_request_object
|
318
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
319
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
320
|
+
command.params['resource'] = resource unless resource.nil?
|
321
|
+
command.query['fields'] = fields unless fields.nil?
|
322
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
323
|
+
execute_or_queue_command(command, &block)
|
324
|
+
end
|
325
|
+
|
326
|
+
# Gets the effective `Policy` on a resource. This is the result of merging
|
327
|
+
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
328
|
+
# an `etag`set because it is a computed `Policy` across multiple resources.
|
329
|
+
# @param [String] resource
|
330
|
+
# The name of the resource to start computing the effective `Policy`.
|
331
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
332
|
+
# @param [String] fields
|
333
|
+
# Selector specifying which fields to include in a partial response.
|
334
|
+
# @param [String] quota_user
|
335
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
336
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
337
|
+
# @param [Google::Apis::RequestOptions] options
|
338
|
+
# Request-specific options
|
339
|
+
#
|
340
|
+
# @yield [result, err] Result & error if block supplied
|
341
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
342
|
+
# @yieldparam err [StandardError] error object if request failed
|
343
|
+
#
|
344
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
345
|
+
#
|
346
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
347
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
348
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
349
|
+
def get_folder_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
350
|
+
command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
|
351
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
|
352
|
+
command.request_object = get_effective_org_policy_request_object
|
353
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
354
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
355
|
+
command.params['resource'] = resource unless resource.nil?
|
356
|
+
command.query['fields'] = fields unless fields.nil?
|
357
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
358
|
+
execute_or_queue_command(command, &block)
|
359
|
+
end
|
360
|
+
|
361
|
+
# Gets a `Policy` on a resource.
|
362
|
+
# If no `Policy` is set on the resource, a `Policy` is returned with default
|
363
|
+
# values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
|
364
|
+
# `etag` value can be used with `SetOrgPolicy()` to create or update a
|
365
|
+
# `Policy` during read-modify-write.
|
366
|
+
# @param [String] resource
|
367
|
+
# Name of the resource the `Policy` is set on.
|
368
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
|
369
|
+
# @param [String] fields
|
370
|
+
# Selector specifying which fields to include in a partial response.
|
371
|
+
# @param [String] quota_user
|
372
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
373
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
374
|
+
# @param [Google::Apis::RequestOptions] options
|
375
|
+
# Request-specific options
|
376
|
+
#
|
377
|
+
# @yield [result, err] Result & error if block supplied
|
378
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
379
|
+
# @yieldparam err [StandardError] error object if request failed
|
380
|
+
#
|
381
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
382
|
+
#
|
383
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
384
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
385
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
386
|
+
def get_folder_org_policy_v1(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
387
|
+
command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicyV1', options)
|
388
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
|
389
|
+
command.request_object = get_org_policy_request_object
|
390
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
391
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
392
|
+
command.params['resource'] = resource unless resource.nil?
|
393
|
+
command.query['fields'] = fields unless fields.nil?
|
394
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
395
|
+
execute_or_queue_command(command, &block)
|
396
|
+
end
|
397
|
+
|
398
|
+
# Lists `Constraints` that could be applied on the specified resource.
|
399
|
+
# @param [String] resource
|
400
|
+
# Name of the resource to list `Constraints` for.
|
401
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
|
402
|
+
# @param [String] fields
|
403
|
+
# Selector specifying which fields to include in a partial response.
|
404
|
+
# @param [String] quota_user
|
405
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
406
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
407
|
+
# @param [Google::Apis::RequestOptions] options
|
408
|
+
# Request-specific options
|
409
|
+
#
|
410
|
+
# @yield [result, err] Result & error if block supplied
|
411
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
|
412
|
+
# @yieldparam err [StandardError] error object if request failed
|
413
|
+
#
|
414
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
|
415
|
+
#
|
416
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
417
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
418
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
419
|
+
def list_project_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
420
|
+
command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
|
421
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
|
422
|
+
command.request_object = list_available_org_policy_constraints_request_object
|
423
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
|
424
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
|
425
|
+
command.params['resource'] = resource unless resource.nil?
|
238
426
|
command.query['fields'] = fields unless fields.nil?
|
239
427
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
240
428
|
execute_or_queue_command(command, &block)
|
241
429
|
end
|
242
430
|
|
243
|
-
# Returns the IAM access control policy for the specified Project.
|
244
|
-
# denied if the policy or the resource does not exist.
|
431
|
+
# Returns the IAM access control policy for the specified Project.
|
432
|
+
# Permission is denied if the policy or the resource does not exist.
|
245
433
|
# @param [String] resource
|
246
|
-
# REQUIRED: The resource for which the policy is being requested.
|
247
|
-
#
|
248
|
-
# disk*`. The format for the path specified in this value is resource specific
|
249
|
-
# and is specified in the `getIamPolicy` documentation.
|
434
|
+
# REQUIRED: The resource for which the policy is being requested.
|
435
|
+
# See the operation documentation for the appropriate value for this field.
|
250
436
|
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
251
437
|
# @param [String] fields
|
252
438
|
# Selector specifying which fields to include in a partial response.
|
@@ -277,25 +463,14 @@ module Google
|
|
277
463
|
execute_or_queue_command(command, &block)
|
278
464
|
end
|
279
465
|
|
280
|
-
#
|
281
|
-
#
|
282
|
-
#
|
283
|
-
# `
|
284
|
-
#
|
285
|
-
# Members cannot be added to more than one role in the same policy. + There must
|
286
|
-
# be at least one owner who has accepted the Terms of Service (ToS) agreement in
|
287
|
-
# the policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner
|
288
|
-
# from the policy will fail. + Calling this method requires enabling the App
|
289
|
-
# Engine Admin API. Note: Removing service accounts from policies or changing
|
290
|
-
# their roles can render services completely inoperable. It is important to
|
291
|
-
# understand how the service account is being used before removing or updating
|
292
|
-
# its roles.
|
466
|
+
# Gets a `Policy` on a resource.
|
467
|
+
# If no `Policy` is set on the resource, a `Policy` is returned with default
|
468
|
+
# values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
|
469
|
+
# `etag` value can be used with `SetOrgPolicy()` to create or update a
|
470
|
+
# `Policy` during read-modify-write.
|
293
471
|
# @param [String] resource
|
294
|
-
#
|
295
|
-
#
|
296
|
-
# disk*`. The format for the path specified in this value is resource specific
|
297
|
-
# and is specified in the `setIamPolicy` documentation.
|
298
|
-
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
472
|
+
# Name of the resource the `Policy` is set on.
|
473
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
|
299
474
|
# @param [String] fields
|
300
475
|
# Selector specifying which fields to include in a partial response.
|
301
476
|
# @param [String] quota_user
|
@@ -305,33 +480,32 @@ module Google
|
|
305
480
|
# Request-specific options
|
306
481
|
#
|
307
482
|
# @yield [result, err] Result & error if block supplied
|
308
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
483
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
309
484
|
# @yieldparam err [StandardError] error object if request failed
|
310
485
|
#
|
311
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
486
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
312
487
|
#
|
313
488
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
314
489
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
315
490
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
316
|
-
def
|
317
|
-
command = make_simple_command(:post, 'v1/
|
318
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
319
|
-
command.request_object =
|
320
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
321
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
491
|
+
def get_project_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
492
|
+
command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
|
493
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
|
494
|
+
command.request_object = get_org_policy_request_object
|
495
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
496
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
322
497
|
command.params['resource'] = resource unless resource.nil?
|
323
498
|
command.query['fields'] = fields unless fields.nil?
|
324
499
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
325
500
|
execute_or_queue_command(command, &block)
|
326
501
|
end
|
327
502
|
|
328
|
-
#
|
503
|
+
# Gets the effective `Policy` on a resource. This is the result of merging
|
504
|
+
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
505
|
+
# an `etag`set because it is a computed `Policy` across multiple resources.
|
329
506
|
# @param [String] resource
|
330
|
-
#
|
331
|
-
#
|
332
|
-
# zone*/disks/*disk*`. The format for the path specified in this value is
|
333
|
-
# resource specific and is specified in the `testIamPermissions` documentation.
|
334
|
-
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
507
|
+
# The name of the resource to start computing the effective `Policy`.
|
508
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
335
509
|
# @param [String] fields
|
336
510
|
# Selector specifying which fields to include in a partial response.
|
337
511
|
# @param [String] quota_user
|
@@ -341,25 +515,1309 @@ module Google
|
|
341
515
|
# Request-specific options
|
342
516
|
#
|
343
517
|
# @yield [result, err] Result & error if block supplied
|
344
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
518
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
345
519
|
# @yieldparam err [StandardError] error object if request failed
|
346
520
|
#
|
347
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
521
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
348
522
|
#
|
349
523
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
350
524
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
351
525
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
352
|
-
def
|
353
|
-
command = make_simple_command(:post, 'v1/
|
354
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
355
|
-
command.request_object =
|
356
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
357
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
526
|
+
def get_project_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
527
|
+
command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
|
528
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
|
529
|
+
command.request_object = get_effective_org_policy_request_object
|
530
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
531
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
532
|
+
command.params['resource'] = resource unless resource.nil?
|
533
|
+
command.query['fields'] = fields unless fields.nil?
|
534
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
535
|
+
execute_or_queue_command(command, &block)
|
536
|
+
end
|
537
|
+
|
538
|
+
# Gets a `Policy` on a resource.
|
539
|
+
# If no `Policy` is set on the resource, a `Policy` is returned with default
|
540
|
+
# values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
|
541
|
+
# `etag` value can be used with `SetOrgPolicy()` to create or update a
|
542
|
+
# `Policy` during read-modify-write.
|
543
|
+
# @param [String] resource
|
544
|
+
# Name of the resource the `Policy` is set on.
|
545
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
|
546
|
+
# @param [String] fields
|
547
|
+
# Selector specifying which fields to include in a partial response.
|
548
|
+
# @param [String] quota_user
|
549
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
550
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
551
|
+
# @param [Google::Apis::RequestOptions] options
|
552
|
+
# Request-specific options
|
553
|
+
#
|
554
|
+
# @yield [result, err] Result & error if block supplied
|
555
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
556
|
+
# @yieldparam err [StandardError] error object if request failed
|
557
|
+
#
|
558
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
559
|
+
#
|
560
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
561
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
562
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
563
|
+
def get_project_org_policy_v1(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
564
|
+
command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicyV1', options)
|
565
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
|
566
|
+
command.request_object = get_org_policy_request_object
|
567
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
568
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
358
569
|
command.params['resource'] = resource unless resource.nil?
|
359
570
|
command.query['fields'] = fields unless fields.nil?
|
360
571
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
361
572
|
execute_or_queue_command(command, &block)
|
362
573
|
end
|
574
|
+
|
575
|
+
# Restores the Project identified by the specified
|
576
|
+
# `project_id` (for example, `my-project-123`).
|
577
|
+
# You can only use this method for a Project that has a lifecycle state of
|
578
|
+
# DELETE_REQUESTED.
|
579
|
+
# After deletion starts, the Project cannot be restored.
|
580
|
+
# The caller must have modify permissions for this Project.
|
581
|
+
# @param [String] project_id
|
582
|
+
# The project ID (for example, `foo-bar-123`).
|
583
|
+
# Required.
|
584
|
+
# @param [Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object
|
585
|
+
# @param [String] fields
|
586
|
+
# Selector specifying which fields to include in a partial response.
|
587
|
+
# @param [String] quota_user
|
588
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
589
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
590
|
+
# @param [Google::Apis::RequestOptions] options
|
591
|
+
# Request-specific options
|
592
|
+
#
|
593
|
+
# @yield [result, err] Result & error if block supplied
|
594
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
595
|
+
# @yieldparam err [StandardError] error object if request failed
|
596
|
+
#
|
597
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
598
|
+
#
|
599
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
600
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
601
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
602
|
+
def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
603
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}:undelete', options)
|
604
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest::Representation
|
605
|
+
command.request_object = undelete_project_request_object
|
606
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
607
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
608
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
609
|
+
command.query['fields'] = fields unless fields.nil?
|
610
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
611
|
+
execute_or_queue_command(command, &block)
|
612
|
+
end
|
613
|
+
|
614
|
+
# Updates the attributes of the Project identified by the specified
|
615
|
+
# `project_id` (for example, `my-project-123`).
|
616
|
+
# The caller must have modify permissions for this Project.
|
617
|
+
# @param [String] project_id
|
618
|
+
# The project ID (for example, `my-project-123`).
|
619
|
+
# Required.
|
620
|
+
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
|
621
|
+
# @param [String] fields
|
622
|
+
# Selector specifying which fields to include in a partial response.
|
623
|
+
# @param [String] quota_user
|
624
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
625
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
626
|
+
# @param [Google::Apis::RequestOptions] options
|
627
|
+
# Request-specific options
|
628
|
+
#
|
629
|
+
# @yield [result, err] Result & error if block supplied
|
630
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
|
631
|
+
# @yieldparam err [StandardError] error object if request failed
|
632
|
+
#
|
633
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Project]
|
634
|
+
#
|
635
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
636
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
637
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
638
|
+
def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
639
|
+
command = make_simple_command(:put, 'v1/projects/{projectId}', options)
|
640
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
641
|
+
command.request_object = project_object
|
642
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
643
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Project
|
644
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
645
|
+
command.query['fields'] = fields unless fields.nil?
|
646
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
647
|
+
execute_or_queue_command(command, &block)
|
648
|
+
end
|
649
|
+
|
650
|
+
# Updates the specified `Policy` on the resource. Creates a new `Policy` for
|
651
|
+
# that `Constraint` on the resource if one does not exist.
|
652
|
+
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
653
|
+
# write of the `Policy`.
|
654
|
+
# @param [String] resource
|
655
|
+
# Resource name of the resource to attach the `Policy`.
|
656
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
|
657
|
+
# @param [String] fields
|
658
|
+
# Selector specifying which fields to include in a partial response.
|
659
|
+
# @param [String] quota_user
|
660
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
661
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
662
|
+
# @param [Google::Apis::RequestOptions] options
|
663
|
+
# Request-specific options
|
664
|
+
#
|
665
|
+
# @yield [result, err] Result & error if block supplied
|
666
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
667
|
+
# @yieldparam err [StandardError] error object if request failed
|
668
|
+
#
|
669
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
670
|
+
#
|
671
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
672
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
673
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
674
|
+
def set_project_org_policy_v1(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
675
|
+
command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicyV1', options)
|
676
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
|
677
|
+
command.request_object = set_org_policy_request_object
|
678
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
679
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
680
|
+
command.params['resource'] = resource unless resource.nil?
|
681
|
+
command.query['fields'] = fields unless fields.nil?
|
682
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
683
|
+
execute_or_queue_command(command, &block)
|
684
|
+
end
|
685
|
+
|
686
|
+
# Lists Projects that are visible to the user and satisfy the
|
687
|
+
# specified filter. This method returns Projects in an unspecified order.
|
688
|
+
# New Projects do not necessarily appear at the end of the list.
|
689
|
+
# @param [String] page_token
|
690
|
+
# A pagination token returned from a previous call to ListProjects
|
691
|
+
# that indicates from where listing should continue.
|
692
|
+
# Optional.
|
693
|
+
# @param [Fixnum] page_size
|
694
|
+
# The maximum number of Projects to return in the response.
|
695
|
+
# The server can return fewer Projects than requested.
|
696
|
+
# If unspecified, server picks an appropriate default.
|
697
|
+
# Optional.
|
698
|
+
# @param [String] filter
|
699
|
+
# An expression for filtering the results of the request. Filter rules are
|
700
|
+
# case insensitive. The fields eligible for filtering are:
|
701
|
+
# + `name`
|
702
|
+
# + `id`
|
703
|
+
# + <code>labels.<em>key</em></code> where *key* is the name of a label
|
704
|
+
# Some examples of using labels as filters:
|
705
|
+
# |Filter|Description|
|
706
|
+
# |------|-----------|
|
707
|
+
# |name:*|The project has a name.|
|
708
|
+
# |name:Howl|The project's name is `Howl` or `howl`.|
|
709
|
+
# |name:HOWL|Equivalent to above.|
|
710
|
+
# |NAME:howl|Equivalent to above.|
|
711
|
+
# |labels.color:*|The project has the label `color`.|
|
712
|
+
# |labels.color:red|The project's label `color` has the value `red`.|
|
713
|
+
# |labels.color:red labels.size:big|The project's label `color` has the
|
714
|
+
# value `red` and its label `size` has the value `big`.
|
715
|
+
# Optional.
|
716
|
+
# @param [String] fields
|
717
|
+
# Selector specifying which fields to include in a partial response.
|
718
|
+
# @param [String] quota_user
|
719
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
720
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
721
|
+
# @param [Google::Apis::RequestOptions] options
|
722
|
+
# Request-specific options
|
723
|
+
#
|
724
|
+
# @yield [result, err] Result & error if block supplied
|
725
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListProjectsResponse] parsed result object
|
726
|
+
# @yieldparam err [StandardError] error object if request failed
|
727
|
+
#
|
728
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ListProjectsResponse]
|
729
|
+
#
|
730
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
731
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
732
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
733
|
+
def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
734
|
+
command = make_simple_command(:get, 'v1/projects', options)
|
735
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse::Representation
|
736
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse
|
737
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
738
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
739
|
+
command.query['filter'] = filter unless filter.nil?
|
740
|
+
command.query['fields'] = fields unless fields.nil?
|
741
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
742
|
+
execute_or_queue_command(command, &block)
|
743
|
+
end
|
744
|
+
|
745
|
+
# Updates the specified `Policy` on the resource. Creates a new `Policy` for
|
746
|
+
# that `Constraint` on the resource if one does not exist.
|
747
|
+
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
748
|
+
# write of the `Policy`.
|
749
|
+
# @param [String] resource
|
750
|
+
# Resource name of the resource to attach the `Policy`.
|
751
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
|
752
|
+
# @param [String] fields
|
753
|
+
# Selector specifying which fields to include in a partial response.
|
754
|
+
# @param [String] quota_user
|
755
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
756
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
757
|
+
# @param [Google::Apis::RequestOptions] options
|
758
|
+
# Request-specific options
|
759
|
+
#
|
760
|
+
# @yield [result, err] Result & error if block supplied
|
761
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
762
|
+
# @yieldparam err [StandardError] error object if request failed
|
763
|
+
#
|
764
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
765
|
+
#
|
766
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
767
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
768
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
769
|
+
def set_project_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
770
|
+
command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
|
771
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
|
772
|
+
command.request_object = set_org_policy_request_object
|
773
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
774
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
775
|
+
command.params['resource'] = resource unless resource.nil?
|
776
|
+
command.query['fields'] = fields unless fields.nil?
|
777
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
778
|
+
execute_or_queue_command(command, &block)
|
779
|
+
end
|
780
|
+
|
781
|
+
# Clears a `Policy` from a resource.
|
782
|
+
# @param [String] resource
|
783
|
+
# Name of the resource for the `Policy` to clear.
|
784
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
|
785
|
+
# @param [String] fields
|
786
|
+
# Selector specifying which fields to include in a partial response.
|
787
|
+
# @param [String] quota_user
|
788
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
789
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
790
|
+
# @param [Google::Apis::RequestOptions] options
|
791
|
+
# Request-specific options
|
792
|
+
#
|
793
|
+
# @yield [result, err] Result & error if block supplied
|
794
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
795
|
+
# @yieldparam err [StandardError] error object if request failed
|
796
|
+
#
|
797
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
798
|
+
#
|
799
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
800
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
801
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
802
|
+
def clear_project_org_policy_v1(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
803
|
+
command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicyV1', options)
|
804
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
|
805
|
+
command.request_object = clear_org_policy_request_object
|
806
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
807
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
808
|
+
command.params['resource'] = resource unless resource.nil?
|
809
|
+
command.query['fields'] = fields unless fields.nil?
|
810
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
811
|
+
execute_or_queue_command(command, &block)
|
812
|
+
end
|
813
|
+
|
814
|
+
# Request that a new Project be created. The result is an Operation which
|
815
|
+
# can be used to track the creation process. It is automatically deleted
|
816
|
+
# after a few hours, so there is no need to call DeleteOperation.
|
817
|
+
# Our SLO permits Project creation to take up to 30 seconds at the 90th
|
818
|
+
# percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
|
819
|
+
# latency. 95th percentile latency is around 11 seconds. We recommend
|
820
|
+
# polling at the 5th second with an exponential backoff.
|
821
|
+
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
|
822
|
+
# @param [String] fields
|
823
|
+
# Selector specifying which fields to include in a partial response.
|
824
|
+
# @param [String] quota_user
|
825
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
826
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
827
|
+
# @param [Google::Apis::RequestOptions] options
|
828
|
+
# Request-specific options
|
829
|
+
#
|
830
|
+
# @yield [result, err] Result & error if block supplied
|
831
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
|
832
|
+
# @yieldparam err [StandardError] error object if request failed
|
833
|
+
#
|
834
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Operation]
|
835
|
+
#
|
836
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
837
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
838
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
839
|
+
def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
840
|
+
command = make_simple_command(:post, 'v1/projects', options)
|
841
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
842
|
+
command.request_object = project_object
|
843
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
|
844
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
|
845
|
+
command.query['fields'] = fields unless fields.nil?
|
846
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
847
|
+
execute_or_queue_command(command, &block)
|
848
|
+
end
|
849
|
+
|
850
|
+
# Lists all the `Policies` set for a particular resource.
|
851
|
+
# @param [String] resource
|
852
|
+
# Name of the resource to list Policies for.
|
853
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
|
854
|
+
# @param [String] fields
|
855
|
+
# Selector specifying which fields to include in a partial response.
|
856
|
+
# @param [String] quota_user
|
857
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
858
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
859
|
+
# @param [Google::Apis::RequestOptions] options
|
860
|
+
# Request-specific options
|
861
|
+
#
|
862
|
+
# @yield [result, err] Result & error if block supplied
|
863
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
|
864
|
+
# @yieldparam err [StandardError] error object if request failed
|
865
|
+
#
|
866
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
|
867
|
+
#
|
868
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
869
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
870
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
871
|
+
def list_project_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
872
|
+
command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
|
873
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
|
874
|
+
command.request_object = list_org_policies_request_object
|
875
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
|
876
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
|
877
|
+
command.params['resource'] = resource unless resource.nil?
|
878
|
+
command.query['fields'] = fields unless fields.nil?
|
879
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
880
|
+
execute_or_queue_command(command, &block)
|
881
|
+
end
|
882
|
+
|
883
|
+
# Retrieves the Project identified by the specified
|
884
|
+
# `project_id` (for example, `my-project-123`).
|
885
|
+
# The caller must have read permissions for this Project.
|
886
|
+
# @param [String] project_id
|
887
|
+
# The Project ID (for example, `my-project-123`).
|
888
|
+
# Required.
|
889
|
+
# @param [String] fields
|
890
|
+
# Selector specifying which fields to include in a partial response.
|
891
|
+
# @param [String] quota_user
|
892
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
893
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
894
|
+
# @param [Google::Apis::RequestOptions] options
|
895
|
+
# Request-specific options
|
896
|
+
#
|
897
|
+
# @yield [result, err] Result & error if block supplied
|
898
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
|
899
|
+
# @yieldparam err [StandardError] error object if request failed
|
900
|
+
#
|
901
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Project]
|
902
|
+
#
|
903
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
904
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
905
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
906
|
+
def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
907
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}', options)
|
908
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
909
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Project
|
910
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
911
|
+
command.query['fields'] = fields unless fields.nil?
|
912
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
913
|
+
execute_or_queue_command(command, &block)
|
914
|
+
end
|
915
|
+
|
916
|
+
# Gets a list of ancestors in the resource hierarchy for the Project
|
917
|
+
# identified by the specified `project_id` (for example, `my-project-123`).
|
918
|
+
# The caller must have read permissions for this Project.
|
919
|
+
# @param [String] project_id
|
920
|
+
# The Project ID (for example, `my-project-123`).
|
921
|
+
# Required.
|
922
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetAncestryRequest] get_ancestry_request_object
|
923
|
+
# @param [String] fields
|
924
|
+
# Selector specifying which fields to include in a partial response.
|
925
|
+
# @param [String] quota_user
|
926
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
927
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
928
|
+
# @param [Google::Apis::RequestOptions] options
|
929
|
+
# Request-specific options
|
930
|
+
#
|
931
|
+
# @yield [result, err] Result & error if block supplied
|
932
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse] parsed result object
|
933
|
+
# @yieldparam err [StandardError] error object if request failed
|
934
|
+
#
|
935
|
+
# @return [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse]
|
936
|
+
#
|
937
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
938
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
939
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
940
|
+
def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
941
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}:getAncestry', options)
|
942
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryRequest::Representation
|
943
|
+
command.request_object = get_ancestry_request_object
|
944
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse::Representation
|
945
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse
|
946
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
947
|
+
command.query['fields'] = fields unless fields.nil?
|
948
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
949
|
+
execute_or_queue_command(command, &block)
|
950
|
+
end
|
951
|
+
|
952
|
+
# Returns permissions that a caller has on the specified Project.
|
953
|
+
# @param [String] resource
|
954
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
955
|
+
# See the operation documentation for the appropriate value for this field.
|
956
|
+
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
957
|
+
# @param [String] fields
|
958
|
+
# Selector specifying which fields to include in a partial response.
|
959
|
+
# @param [String] quota_user
|
960
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
961
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
962
|
+
# @param [Google::Apis::RequestOptions] options
|
963
|
+
# Request-specific options
|
964
|
+
#
|
965
|
+
# @yield [result, err] Result & error if block supplied
|
966
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
|
967
|
+
# @yieldparam err [StandardError] error object if request failed
|
968
|
+
#
|
969
|
+
# @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
|
970
|
+
#
|
971
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
972
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
973
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
974
|
+
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
975
|
+
command = make_simple_command(:post, 'v1/projects/{resource}:testIamPermissions', options)
|
976
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
|
977
|
+
command.request_object = test_iam_permissions_request_object
|
978
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
|
979
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
|
980
|
+
command.params['resource'] = resource unless resource.nil?
|
981
|
+
command.query['fields'] = fields unless fields.nil?
|
982
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
983
|
+
execute_or_queue_command(command, &block)
|
984
|
+
end
|
985
|
+
|
986
|
+
# Gets the effective `Policy` on a resource. This is the result of merging
|
987
|
+
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
988
|
+
# an `etag`set because it is a computed `Policy` across multiple resources.
|
989
|
+
# @param [String] resource
|
990
|
+
# The name of the resource to start computing the effective `Policy`.
|
991
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
992
|
+
# @param [String] fields
|
993
|
+
# Selector specifying which fields to include in a partial response.
|
994
|
+
# @param [String] quota_user
|
995
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
996
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
997
|
+
# @param [Google::Apis::RequestOptions] options
|
998
|
+
# Request-specific options
|
999
|
+
#
|
1000
|
+
# @yield [result, err] Result & error if block supplied
|
1001
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
1002
|
+
# @yieldparam err [StandardError] error object if request failed
|
1003
|
+
#
|
1004
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
1005
|
+
#
|
1006
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1007
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1008
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1009
|
+
def get_project_effective_org_policy_v1(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1010
|
+
command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicyV1', options)
|
1011
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
|
1012
|
+
command.request_object = get_effective_org_policy_request_object
|
1013
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
1014
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
1015
|
+
command.params['resource'] = resource unless resource.nil?
|
1016
|
+
command.query['fields'] = fields unless fields.nil?
|
1017
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1018
|
+
execute_or_queue_command(command, &block)
|
1019
|
+
end
|
1020
|
+
|
1021
|
+
# Marks the Project identified by the specified
|
1022
|
+
# `project_id` (for example, `my-project-123`) for deletion.
|
1023
|
+
# This method will only affect the Project if the following criteria are met:
|
1024
|
+
# + The Project does not have a billing account associated with it.
|
1025
|
+
# + The Project has a lifecycle state of
|
1026
|
+
# ACTIVE.
|
1027
|
+
# This method changes the Project's lifecycle state from
|
1028
|
+
# ACTIVE
|
1029
|
+
# to DELETE_REQUESTED.
|
1030
|
+
# The deletion starts at an unspecified time,
|
1031
|
+
# at which point the Project is no longer accessible.
|
1032
|
+
# Until the deletion completes, you can check the lifecycle state
|
1033
|
+
# checked by retrieving the Project with GetProject,
|
1034
|
+
# and the Project remains visible to ListProjects.
|
1035
|
+
# However, you cannot update the project.
|
1036
|
+
# After the deletion completes, the Project is not retrievable by
|
1037
|
+
# the GetProject and
|
1038
|
+
# ListProjects methods.
|
1039
|
+
# The caller must have modify permissions for this Project.
|
1040
|
+
# @param [String] project_id
|
1041
|
+
# The Project ID (for example, `foo-bar-123`).
|
1042
|
+
# Required.
|
1043
|
+
# @param [String] fields
|
1044
|
+
# Selector specifying which fields to include in a partial response.
|
1045
|
+
# @param [String] quota_user
|
1046
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1047
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1048
|
+
# @param [Google::Apis::RequestOptions] options
|
1049
|
+
# Request-specific options
|
1050
|
+
#
|
1051
|
+
# @yield [result, err] Result & error if block supplied
|
1052
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
1053
|
+
# @yieldparam err [StandardError] error object if request failed
|
1054
|
+
#
|
1055
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
1056
|
+
#
|
1057
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1058
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1059
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1060
|
+
def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
1061
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}', options)
|
1062
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
1063
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
1064
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
1065
|
+
command.query['fields'] = fields unless fields.nil?
|
1066
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1067
|
+
execute_or_queue_command(command, &block)
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
# Clears a `Policy` from a resource.
|
1071
|
+
# @param [String] resource
|
1072
|
+
# Name of the resource for the `Policy` to clear.
|
1073
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
|
1074
|
+
# @param [String] fields
|
1075
|
+
# Selector specifying which fields to include in a partial response.
|
1076
|
+
# @param [String] quota_user
|
1077
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1078
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1079
|
+
# @param [Google::Apis::RequestOptions] options
|
1080
|
+
# Request-specific options
|
1081
|
+
#
|
1082
|
+
# @yield [result, err] Result & error if block supplied
|
1083
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
1084
|
+
# @yieldparam err [StandardError] error object if request failed
|
1085
|
+
#
|
1086
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
1087
|
+
#
|
1088
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1089
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1090
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1091
|
+
def clear_project_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1092
|
+
command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
|
1093
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
|
1094
|
+
command.request_object = clear_org_policy_request_object
|
1095
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
1096
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
1097
|
+
command.params['resource'] = resource unless resource.nil?
|
1098
|
+
command.query['fields'] = fields unless fields.nil?
|
1099
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1100
|
+
execute_or_queue_command(command, &block)
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
# Sets the IAM access control policy for the specified Project. Replaces
|
1104
|
+
# any existing policy.
|
1105
|
+
# The following constraints apply when using `setIamPolicy()`:
|
1106
|
+
# + Project does not support `allUsers` and `allAuthenticatedUsers` as
|
1107
|
+
# `members` in a `Binding` of a `Policy`.
|
1108
|
+
# + The owner role can be granted only to `user` and `serviceAccount`.
|
1109
|
+
# + Service accounts can be made owners of a project directly
|
1110
|
+
# without any restrictions. However, to be added as an owner, a user must be
|
1111
|
+
# invited via Cloud Platform console and must accept the invitation.
|
1112
|
+
# + A user cannot be granted the owner role using `setIamPolicy()`. The user
|
1113
|
+
# must be granted the owner role using the Cloud Platform Console and must
|
1114
|
+
# explicitly accept the invitation.
|
1115
|
+
# + Invitations to grant the owner role cannot be sent using
|
1116
|
+
# `setIamPolicy()`;
|
1117
|
+
# they must be sent only using the Cloud Platform Console.
|
1118
|
+
# + Membership changes that leave the project without any owners that have
|
1119
|
+
# accepted the Terms of Service (ToS) will be rejected.
|
1120
|
+
# + There must be at least one owner who has accepted the Terms of
|
1121
|
+
# Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
|
1122
|
+
# remove the last ToS-accepted owner from the policy will fail. This
|
1123
|
+
# restriction also applies to legacy projects that no longer have owners
|
1124
|
+
# who have accepted the ToS. Edits to IAM policies will be rejected until
|
1125
|
+
# the lack of a ToS-accepting owner is rectified.
|
1126
|
+
# + Calling this method requires enabling the App Engine Admin API.
|
1127
|
+
# Note: Removing service accounts from policies or changing their roles
|
1128
|
+
# can render services completely inoperable. It is important to understand
|
1129
|
+
# how the service account is being used before removing or updating its
|
1130
|
+
# roles.
|
1131
|
+
# @param [String] resource
|
1132
|
+
# REQUIRED: The resource for which the policy is being specified.
|
1133
|
+
# See the operation documentation for the appropriate value for this field.
|
1134
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1135
|
+
# @param [String] fields
|
1136
|
+
# Selector specifying which fields to include in a partial response.
|
1137
|
+
# @param [String] quota_user
|
1138
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1139
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1140
|
+
# @param [Google::Apis::RequestOptions] options
|
1141
|
+
# Request-specific options
|
1142
|
+
#
|
1143
|
+
# @yield [result, err] Result & error if block supplied
|
1144
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
|
1145
|
+
# @yieldparam err [StandardError] error object if request failed
|
1146
|
+
#
|
1147
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
|
1148
|
+
#
|
1149
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1150
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1151
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1152
|
+
def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1153
|
+
command = make_simple_command(:post, 'v1/projects/{resource}:setIamPolicy', options)
|
1154
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
|
1155
|
+
command.request_object = set_iam_policy_request_object
|
1156
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
1157
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
|
1158
|
+
command.params['resource'] = resource unless resource.nil?
|
1159
|
+
command.query['fields'] = fields unless fields.nil?
|
1160
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1161
|
+
execute_or_queue_command(command, &block)
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
# Lists all the `Policies` set for a particular resource.
|
1165
|
+
# @param [String] resource
|
1166
|
+
# Name of the resource to list Policies for.
|
1167
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
|
1168
|
+
# @param [String] fields
|
1169
|
+
# Selector specifying which fields to include in a partial response.
|
1170
|
+
# @param [String] quota_user
|
1171
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1172
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1173
|
+
# @param [Google::Apis::RequestOptions] options
|
1174
|
+
# Request-specific options
|
1175
|
+
#
|
1176
|
+
# @yield [result, err] Result & error if block supplied
|
1177
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
|
1178
|
+
# @yieldparam err [StandardError] error object if request failed
|
1179
|
+
#
|
1180
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
|
1181
|
+
#
|
1182
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1183
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1184
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1185
|
+
def list_organization_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1186
|
+
command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
|
1187
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
|
1188
|
+
command.request_object = list_org_policies_request_object
|
1189
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
|
1190
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
|
1191
|
+
command.params['resource'] = resource unless resource.nil?
|
1192
|
+
command.query['fields'] = fields unless fields.nil?
|
1193
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1194
|
+
execute_or_queue_command(command, &block)
|
1195
|
+
end
|
1196
|
+
|
1197
|
+
# Searches Organization resources that are visible to the user and satisfy
|
1198
|
+
# the specified filter. This method returns Organizations in an unspecified
|
1199
|
+
# order. New Organizations do not necessarily appear at the end of the
|
1200
|
+
# results.
|
1201
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
|
1202
|
+
# @param [String] fields
|
1203
|
+
# Selector specifying which fields to include in a partial response.
|
1204
|
+
# @param [String] quota_user
|
1205
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1206
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1207
|
+
# @param [Google::Apis::RequestOptions] options
|
1208
|
+
# Request-specific options
|
1209
|
+
#
|
1210
|
+
# @yield [result, err] Result & error if block supplied
|
1211
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
|
1212
|
+
# @yieldparam err [StandardError] error object if request failed
|
1213
|
+
#
|
1214
|
+
# @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
|
1215
|
+
#
|
1216
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1217
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1218
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1219
|
+
def search_organizations(search_organizations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1220
|
+
command = make_simple_command(:post, 'v1/organizations:search', options)
|
1221
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
|
1222
|
+
command.request_object = search_organizations_request_object
|
1223
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
|
1224
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
|
1225
|
+
command.query['fields'] = fields unless fields.nil?
|
1226
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1227
|
+
execute_or_queue_command(command, &block)
|
1228
|
+
end
|
1229
|
+
|
1230
|
+
# Fetches an Organization resource identified by the specified resource name.
|
1231
|
+
# @param [String] name
|
1232
|
+
# The resource name of the Organization to fetch, e.g. "organizations/1234".
|
1233
|
+
# @param [String] fields
|
1234
|
+
# Selector specifying which fields to include in a partial response.
|
1235
|
+
# @param [String] quota_user
|
1236
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1237
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1238
|
+
# @param [Google::Apis::RequestOptions] options
|
1239
|
+
# Request-specific options
|
1240
|
+
#
|
1241
|
+
# @yield [result, err] Result & error if block supplied
|
1242
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object
|
1243
|
+
# @yieldparam err [StandardError] error object if request failed
|
1244
|
+
#
|
1245
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Organization]
|
1246
|
+
#
|
1247
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1248
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1249
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1250
|
+
def get_organization(name, fields: nil, quota_user: nil, options: nil, &block)
|
1251
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1252
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
|
1253
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
|
1254
|
+
command.params['name'] = name unless name.nil?
|
1255
|
+
command.query['fields'] = fields unless fields.nil?
|
1256
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1257
|
+
execute_or_queue_command(command, &block)
|
1258
|
+
end
|
1259
|
+
|
1260
|
+
# Gets the effective `Policy` on a resource. This is the result of merging
|
1261
|
+
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
1262
|
+
# an `etag`set because it is a computed `Policy` across multiple resources.
|
1263
|
+
# @param [String] resource
|
1264
|
+
# The name of the resource to start computing the effective `Policy`.
|
1265
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
1266
|
+
# @param [String] fields
|
1267
|
+
# Selector specifying which fields to include in a partial response.
|
1268
|
+
# @param [String] quota_user
|
1269
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1270
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1271
|
+
# @param [Google::Apis::RequestOptions] options
|
1272
|
+
# Request-specific options
|
1273
|
+
#
|
1274
|
+
# @yield [result, err] Result & error if block supplied
|
1275
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
1276
|
+
# @yieldparam err [StandardError] error object if request failed
|
1277
|
+
#
|
1278
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
1279
|
+
#
|
1280
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1281
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1282
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1283
|
+
def get_organization_effective_org_policy_v1(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1284
|
+
command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicyV1', options)
|
1285
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
|
1286
|
+
command.request_object = get_effective_org_policy_request_object
|
1287
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
1288
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
1289
|
+
command.params['resource'] = resource unless resource.nil?
|
1290
|
+
command.query['fields'] = fields unless fields.nil?
|
1291
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1292
|
+
execute_or_queue_command(command, &block)
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
# Returns permissions that a caller has on the specified Organization.
|
1296
|
+
# The `resource` field should be the organization's resource name,
|
1297
|
+
# e.g. "organizations/123".
|
1298
|
+
# @param [String] resource
|
1299
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
1300
|
+
# See the operation documentation for the appropriate value for this field.
|
1301
|
+
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1302
|
+
# @param [String] fields
|
1303
|
+
# Selector specifying which fields to include in a partial response.
|
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 [Google::Apis::RequestOptions] options
|
1308
|
+
# Request-specific options
|
1309
|
+
#
|
1310
|
+
# @yield [result, err] Result & error if block supplied
|
1311
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
|
1312
|
+
# @yieldparam err [StandardError] error object if request failed
|
1313
|
+
#
|
1314
|
+
# @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
|
1315
|
+
#
|
1316
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1317
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1318
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1319
|
+
def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1320
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1321
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
|
1322
|
+
command.request_object = test_iam_permissions_request_object
|
1323
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
|
1324
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
|
1325
|
+
command.params['resource'] = resource unless resource.nil?
|
1326
|
+
command.query['fields'] = fields unless fields.nil?
|
1327
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1328
|
+
execute_or_queue_command(command, &block)
|
1329
|
+
end
|
1330
|
+
|
1331
|
+
# Clears a `Policy` from a resource.
|
1332
|
+
# @param [String] resource
|
1333
|
+
# Name of the resource for the `Policy` to clear.
|
1334
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
|
1335
|
+
# @param [String] fields
|
1336
|
+
# Selector specifying which fields to include in a partial response.
|
1337
|
+
# @param [String] quota_user
|
1338
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1339
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1340
|
+
# @param [Google::Apis::RequestOptions] options
|
1341
|
+
# Request-specific options
|
1342
|
+
#
|
1343
|
+
# @yield [result, err] Result & error if block supplied
|
1344
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
1345
|
+
# @yieldparam err [StandardError] error object if request failed
|
1346
|
+
#
|
1347
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
1348
|
+
#
|
1349
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1350
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1351
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1352
|
+
def clear_organization_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1353
|
+
command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
|
1354
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
|
1355
|
+
command.request_object = clear_org_policy_request_object
|
1356
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
1357
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
1358
|
+
command.params['resource'] = resource unless resource.nil?
|
1359
|
+
command.query['fields'] = fields unless fields.nil?
|
1360
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1361
|
+
execute_or_queue_command(command, &block)
|
1362
|
+
end
|
1363
|
+
|
1364
|
+
# Sets the access control policy on an Organization resource. Replaces any
|
1365
|
+
# existing policy. The `resource` field should be the organization's resource
|
1366
|
+
# name, e.g. "organizations/123".
|
1367
|
+
# @param [String] resource
|
1368
|
+
# REQUIRED: The resource for which the policy is being specified.
|
1369
|
+
# See the operation documentation for the appropriate value for this field.
|
1370
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1371
|
+
# @param [String] fields
|
1372
|
+
# Selector specifying which fields to include in a partial response.
|
1373
|
+
# @param [String] quota_user
|
1374
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1375
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1376
|
+
# @param [Google::Apis::RequestOptions] options
|
1377
|
+
# Request-specific options
|
1378
|
+
#
|
1379
|
+
# @yield [result, err] Result & error if block supplied
|
1380
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
|
1381
|
+
# @yieldparam err [StandardError] error object if request failed
|
1382
|
+
#
|
1383
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
|
1384
|
+
#
|
1385
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1386
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1387
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1388
|
+
def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1389
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1390
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
|
1391
|
+
command.request_object = set_iam_policy_request_object
|
1392
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
1393
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
|
1394
|
+
command.params['resource'] = resource unless resource.nil?
|
1395
|
+
command.query['fields'] = fields unless fields.nil?
|
1396
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1397
|
+
execute_or_queue_command(command, &block)
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
# Lists `Constraints` that could be applied on the specified resource.
|
1401
|
+
# @param [String] resource
|
1402
|
+
# Name of the resource to list `Constraints` for.
|
1403
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
|
1404
|
+
# @param [String] fields
|
1405
|
+
# Selector specifying which fields to include in a partial response.
|
1406
|
+
# @param [String] quota_user
|
1407
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1408
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1409
|
+
# @param [Google::Apis::RequestOptions] options
|
1410
|
+
# Request-specific options
|
1411
|
+
#
|
1412
|
+
# @yield [result, err] Result & error if block supplied
|
1413
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
|
1414
|
+
# @yieldparam err [StandardError] error object if request failed
|
1415
|
+
#
|
1416
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
|
1417
|
+
#
|
1418
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1419
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1420
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1421
|
+
def list_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1422
|
+
command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
|
1423
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
|
1424
|
+
command.request_object = list_available_org_policy_constraints_request_object
|
1425
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
|
1426
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
|
1427
|
+
command.params['resource'] = resource unless resource.nil?
|
1428
|
+
command.query['fields'] = fields unless fields.nil?
|
1429
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1430
|
+
execute_or_queue_command(command, &block)
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
# Gets the access control policy for an Organization resource. May be empty
|
1434
|
+
# if no such policy or resource exists. The `resource` field should be the
|
1435
|
+
# organization's resource name, e.g. "organizations/123".
|
1436
|
+
# @param [String] resource
|
1437
|
+
# REQUIRED: The resource for which the policy is being requested.
|
1438
|
+
# See the operation documentation for the appropriate value for this field.
|
1439
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
1440
|
+
# @param [String] fields
|
1441
|
+
# Selector specifying which fields to include in a partial response.
|
1442
|
+
# @param [String] quota_user
|
1443
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1444
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1445
|
+
# @param [Google::Apis::RequestOptions] options
|
1446
|
+
# Request-specific options
|
1447
|
+
#
|
1448
|
+
# @yield [result, err] Result & error if block supplied
|
1449
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
|
1450
|
+
# @yieldparam err [StandardError] error object if request failed
|
1451
|
+
#
|
1452
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
|
1453
|
+
#
|
1454
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1455
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1456
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1457
|
+
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1458
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
1459
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
|
1460
|
+
command.request_object = get_iam_policy_request_object
|
1461
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
1462
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
|
1463
|
+
command.params['resource'] = resource unless resource.nil?
|
1464
|
+
command.query['fields'] = fields unless fields.nil?
|
1465
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1466
|
+
execute_or_queue_command(command, &block)
|
1467
|
+
end
|
1468
|
+
|
1469
|
+
# Gets a `Policy` on a resource.
|
1470
|
+
# If no `Policy` is set on the resource, a `Policy` is returned with default
|
1471
|
+
# values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
|
1472
|
+
# `etag` value can be used with `SetOrgPolicy()` to create or update a
|
1473
|
+
# `Policy` during read-modify-write.
|
1474
|
+
# @param [String] resource
|
1475
|
+
# Name of the resource the `Policy` is set on.
|
1476
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
|
1477
|
+
# @param [String] fields
|
1478
|
+
# Selector specifying which fields to include in a partial response.
|
1479
|
+
# @param [String] quota_user
|
1480
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1481
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1482
|
+
# @param [Google::Apis::RequestOptions] options
|
1483
|
+
# Request-specific options
|
1484
|
+
#
|
1485
|
+
# @yield [result, err] Result & error if block supplied
|
1486
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
1487
|
+
# @yieldparam err [StandardError] error object if request failed
|
1488
|
+
#
|
1489
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
1490
|
+
#
|
1491
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1492
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1493
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1494
|
+
def get_organization_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1495
|
+
command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
|
1496
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
|
1497
|
+
command.request_object = get_org_policy_request_object
|
1498
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
1499
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
1500
|
+
command.params['resource'] = resource unless resource.nil?
|
1501
|
+
command.query['fields'] = fields unless fields.nil?
|
1502
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1503
|
+
execute_or_queue_command(command, &block)
|
1504
|
+
end
|
1505
|
+
|
1506
|
+
# Gets the effective `Policy` on a resource. This is the result of merging
|
1507
|
+
# `Policies` in the resource hierarchy. The returned `Policy` will not have
|
1508
|
+
# an `etag`set because it is a computed `Policy` across multiple resources.
|
1509
|
+
# @param [String] resource
|
1510
|
+
# The name of the resource to start computing the effective `Policy`.
|
1511
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
|
1512
|
+
# @param [String] fields
|
1513
|
+
# Selector specifying which fields to include in a partial response.
|
1514
|
+
# @param [String] quota_user
|
1515
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1516
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1517
|
+
# @param [Google::Apis::RequestOptions] options
|
1518
|
+
# Request-specific options
|
1519
|
+
#
|
1520
|
+
# @yield [result, err] Result & error if block supplied
|
1521
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
1522
|
+
# @yieldparam err [StandardError] error object if request failed
|
1523
|
+
#
|
1524
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
1525
|
+
#
|
1526
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1527
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1528
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1529
|
+
def get_organization_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1530
|
+
command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
|
1531
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
|
1532
|
+
command.request_object = get_effective_org_policy_request_object
|
1533
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
1534
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
1535
|
+
command.params['resource'] = resource unless resource.nil?
|
1536
|
+
command.query['fields'] = fields unless fields.nil?
|
1537
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1538
|
+
execute_or_queue_command(command, &block)
|
1539
|
+
end
|
1540
|
+
|
1541
|
+
# Gets a `Policy` on a resource.
|
1542
|
+
# If no `Policy` is set on the resource, a `Policy` is returned with default
|
1543
|
+
# values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
|
1544
|
+
# `etag` value can be used with `SetOrgPolicy()` to create or update a
|
1545
|
+
# `Policy` during read-modify-write.
|
1546
|
+
# @param [String] resource
|
1547
|
+
# Name of the resource the `Policy` is set on.
|
1548
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
|
1549
|
+
# @param [String] fields
|
1550
|
+
# Selector specifying which fields to include in a partial response.
|
1551
|
+
# @param [String] quota_user
|
1552
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1553
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1554
|
+
# @param [Google::Apis::RequestOptions] options
|
1555
|
+
# Request-specific options
|
1556
|
+
#
|
1557
|
+
# @yield [result, err] Result & error if block supplied
|
1558
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
1559
|
+
# @yieldparam err [StandardError] error object if request failed
|
1560
|
+
#
|
1561
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
1562
|
+
#
|
1563
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1564
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1565
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1566
|
+
def get_organization_org_policy_v1(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1567
|
+
command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicyV1', options)
|
1568
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
|
1569
|
+
command.request_object = get_org_policy_request_object
|
1570
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
1571
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
1572
|
+
command.params['resource'] = resource unless resource.nil?
|
1573
|
+
command.query['fields'] = fields unless fields.nil?
|
1574
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1575
|
+
execute_or_queue_command(command, &block)
|
1576
|
+
end
|
1577
|
+
|
1578
|
+
# Updates the specified `Policy` on the resource. Creates a new `Policy` for
|
1579
|
+
# that `Constraint` on the resource if one does not exist.
|
1580
|
+
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
1581
|
+
# write of the `Policy`.
|
1582
|
+
# @param [String] resource
|
1583
|
+
# Resource name of the resource to attach the `Policy`.
|
1584
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
|
1585
|
+
# @param [String] fields
|
1586
|
+
# Selector specifying which fields to include in a partial response.
|
1587
|
+
# @param [String] quota_user
|
1588
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1589
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1590
|
+
# @param [Google::Apis::RequestOptions] options
|
1591
|
+
# Request-specific options
|
1592
|
+
#
|
1593
|
+
# @yield [result, err] Result & error if block supplied
|
1594
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
1595
|
+
# @yieldparam err [StandardError] error object if request failed
|
1596
|
+
#
|
1597
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
1598
|
+
#
|
1599
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1600
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1601
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1602
|
+
def set_organization_org_policy_v1(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1603
|
+
command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicyV1', options)
|
1604
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
|
1605
|
+
command.request_object = set_org_policy_request_object
|
1606
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
1607
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
1608
|
+
command.params['resource'] = resource unless resource.nil?
|
1609
|
+
command.query['fields'] = fields unless fields.nil?
|
1610
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1611
|
+
execute_or_queue_command(command, &block)
|
1612
|
+
end
|
1613
|
+
|
1614
|
+
# Updates the specified `Policy` on the resource. Creates a new `Policy` for
|
1615
|
+
# that `Constraint` on the resource if one does not exist.
|
1616
|
+
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
1617
|
+
# write of the `Policy`.
|
1618
|
+
# @param [String] resource
|
1619
|
+
# Resource name of the resource to attach the `Policy`.
|
1620
|
+
# @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
|
1621
|
+
# @param [String] fields
|
1622
|
+
# Selector specifying which fields to include in a partial response.
|
1623
|
+
# @param [String] quota_user
|
1624
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1625
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1626
|
+
# @param [Google::Apis::RequestOptions] options
|
1627
|
+
# Request-specific options
|
1628
|
+
#
|
1629
|
+
# @yield [result, err] Result & error if block supplied
|
1630
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
|
1631
|
+
# @yieldparam err [StandardError] error object if request failed
|
1632
|
+
#
|
1633
|
+
# @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
|
1634
|
+
#
|
1635
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1636
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1637
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1638
|
+
def set_organization_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1639
|
+
command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
|
1640
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
|
1641
|
+
command.request_object = set_org_policy_request_object
|
1642
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
|
1643
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
|
1644
|
+
command.params['resource'] = resource unless resource.nil?
|
1645
|
+
command.query['fields'] = fields unless fields.nil?
|
1646
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1647
|
+
execute_or_queue_command(command, &block)
|
1648
|
+
end
|
1649
|
+
|
1650
|
+
# Clears a `Policy` from a resource.
|
1651
|
+
# @param [String] resource
|
1652
|
+
# Name of the resource for the `Policy` to clear.
|
1653
|
+
# @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
|
1654
|
+
# @param [String] fields
|
1655
|
+
# Selector specifying which fields to include in a partial response.
|
1656
|
+
# @param [String] quota_user
|
1657
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1658
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1659
|
+
# @param [Google::Apis::RequestOptions] options
|
1660
|
+
# Request-specific options
|
1661
|
+
#
|
1662
|
+
# @yield [result, err] Result & error if block supplied
|
1663
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
1664
|
+
# @yieldparam err [StandardError] error object if request failed
|
1665
|
+
#
|
1666
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
1667
|
+
#
|
1668
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1669
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1670
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1671
|
+
def clear_organization_org_policy_v1(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1672
|
+
command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicyV1', options)
|
1673
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
|
1674
|
+
command.request_object = clear_org_policy_request_object
|
1675
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
1676
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
1677
|
+
command.params['resource'] = resource unless resource.nil?
|
1678
|
+
command.query['fields'] = fields unless fields.nil?
|
1679
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1680
|
+
execute_or_queue_command(command, &block)
|
1681
|
+
end
|
1682
|
+
|
1683
|
+
# Create a Lien which applies to the resource denoted by the `parent` field.
|
1684
|
+
# Callers of this method will require permission on the `parent` resource.
|
1685
|
+
# For example, applying to `projects/1234` requires permission
|
1686
|
+
# `resourcemanager.projects.updateLiens`.
|
1687
|
+
# NOTE: Some resources may limit the number of Liens which may be applied.
|
1688
|
+
# @param [Google::Apis::CloudresourcemanagerV1::Lien] lien_object
|
1689
|
+
# @param [String] fields
|
1690
|
+
# Selector specifying which fields to include in a partial response.
|
1691
|
+
# @param [String] quota_user
|
1692
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1693
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1694
|
+
# @param [Google::Apis::RequestOptions] options
|
1695
|
+
# Request-specific options
|
1696
|
+
#
|
1697
|
+
# @yield [result, err] Result & error if block supplied
|
1698
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Lien] parsed result object
|
1699
|
+
# @yieldparam err [StandardError] error object if request failed
|
1700
|
+
#
|
1701
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Lien]
|
1702
|
+
#
|
1703
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1704
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1705
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1706
|
+
def create_lien(lien_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1707
|
+
command = make_simple_command(:post, 'v1/liens', options)
|
1708
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
|
1709
|
+
command.request_object = lien_object
|
1710
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
|
1711
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Lien
|
1712
|
+
command.query['fields'] = fields unless fields.nil?
|
1713
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1714
|
+
execute_or_queue_command(command, &block)
|
1715
|
+
end
|
1716
|
+
|
1717
|
+
# Delete a Lien by `name`.
|
1718
|
+
# Callers of this method will require permission on the `parent` resource.
|
1719
|
+
# For example, a Lien with a `parent` of `projects/1234` requires permission
|
1720
|
+
# `resourcemanager.projects.updateLiens`.
|
1721
|
+
# @param [String] name
|
1722
|
+
# The name/identifier of the Lien to delete.
|
1723
|
+
# @param [String] fields
|
1724
|
+
# Selector specifying which fields to include in a partial response.
|
1725
|
+
# @param [String] quota_user
|
1726
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1727
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1728
|
+
# @param [Google::Apis::RequestOptions] options
|
1729
|
+
# Request-specific options
|
1730
|
+
#
|
1731
|
+
# @yield [result, err] Result & error if block supplied
|
1732
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
|
1733
|
+
# @yieldparam err [StandardError] error object if request failed
|
1734
|
+
#
|
1735
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Empty]
|
1736
|
+
#
|
1737
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1738
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1739
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1740
|
+
def delete_lien(name, fields: nil, quota_user: nil, options: nil, &block)
|
1741
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1742
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
|
1743
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
|
1744
|
+
command.params['name'] = name unless name.nil?
|
1745
|
+
command.query['fields'] = fields unless fields.nil?
|
1746
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1747
|
+
execute_or_queue_command(command, &block)
|
1748
|
+
end
|
1749
|
+
|
1750
|
+
# List all Liens applied to the `parent` resource.
|
1751
|
+
# Callers of this method will require permission on the `parent` resource.
|
1752
|
+
# For example, a Lien with a `parent` of `projects/1234` requires permission
|
1753
|
+
# `resourcemanager.projects.get`.
|
1754
|
+
# @param [String] parent
|
1755
|
+
# The name of the resource to list all attached Liens.
|
1756
|
+
# For example, `projects/1234`.
|
1757
|
+
# @param [String] page_token
|
1758
|
+
# The `next_page_token` value returned from a previous List request, if any.
|
1759
|
+
# @param [Fixnum] page_size
|
1760
|
+
# The maximum number of items to return. This is a suggestion for the server.
|
1761
|
+
# @param [String] fields
|
1762
|
+
# Selector specifying which fields to include in a partial response.
|
1763
|
+
# @param [String] quota_user
|
1764
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1765
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1766
|
+
# @param [Google::Apis::RequestOptions] options
|
1767
|
+
# Request-specific options
|
1768
|
+
#
|
1769
|
+
# @yield [result, err] Result & error if block supplied
|
1770
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListLiensResponse] parsed result object
|
1771
|
+
# @yieldparam err [StandardError] error object if request failed
|
1772
|
+
#
|
1773
|
+
# @return [Google::Apis::CloudresourcemanagerV1::ListLiensResponse]
|
1774
|
+
#
|
1775
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1776
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1777
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1778
|
+
def list_liens(parent: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1779
|
+
command = make_simple_command(:get, 'v1/liens', options)
|
1780
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::ListLiensResponse::Representation
|
1781
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::ListLiensResponse
|
1782
|
+
command.query['parent'] = parent unless parent.nil?
|
1783
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1784
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1785
|
+
command.query['fields'] = fields unless fields.nil?
|
1786
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1787
|
+
execute_or_queue_command(command, &block)
|
1788
|
+
end
|
1789
|
+
|
1790
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
1791
|
+
# method to poll the operation result at intervals as recommended by the API
|
1792
|
+
# service.
|
1793
|
+
# @param [String] name
|
1794
|
+
# The name of the operation resource.
|
1795
|
+
# @param [String] fields
|
1796
|
+
# Selector specifying which fields to include in a partial response.
|
1797
|
+
# @param [String] quota_user
|
1798
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1799
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1800
|
+
# @param [Google::Apis::RequestOptions] options
|
1801
|
+
# Request-specific options
|
1802
|
+
#
|
1803
|
+
# @yield [result, err] Result & error if block supplied
|
1804
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
|
1805
|
+
# @yieldparam err [StandardError] error object if request failed
|
1806
|
+
#
|
1807
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Operation]
|
1808
|
+
#
|
1809
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1810
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1811
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1812
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1813
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1814
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
|
1815
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
|
1816
|
+
command.params['name'] = name unless name.nil?
|
1817
|
+
command.query['fields'] = fields unless fields.nil?
|
1818
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1819
|
+
execute_or_queue_command(command, &block)
|
1820
|
+
end
|
363
1821
|
|
364
1822
|
protected
|
365
1823
|
|