google-api-client 0.13.2 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +149 -0
- data/bin/generate-api +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
- data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
- data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
- data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
- data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
- data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
- data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
- data/generated/google/apis/adexperiencereport_v1.rb +35 -0
- data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
- data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
- data/generated/google/apis/admin_directory_v1/service.rb +39 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v2_4.rb +37 -0
- data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
- data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
- data/generated/google/apis/analytics_v2_4/service.rb +345 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +15 -2
- data/generated/google/apis/analytics_v3/representations.rb +3 -0
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
- data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
- data/generated/google/apis/androidmanagement_v1.rb +35 -0
- data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
- data/generated/google/apis/androidpublisher_v1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
- data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
- data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
- data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
- data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
- data/generated/google/apis/appengine_v1/representations.rb +351 -335
- data/generated/google/apis/appengine_v1/service.rb +255 -239
- data/generated/google/apis/appengine_v1alpha.rb +41 -0
- data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
- data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
- data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
- data/generated/google/apis/appengine_v1beta.rb +41 -0
- data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
- data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
- data/generated/google/apis/appengine_v1beta4.rb +41 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
- data/generated/google/apis/appengine_v1beta5.rb +41 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +106 -18
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
- data/generated/google/apis/blogger_v2.rb +34 -0
- data/generated/google/apis/blogger_v2/classes.rb +947 -0
- data/generated/google/apis/blogger_v2/representations.rb +465 -0
- data/generated/google/apis/blogger_v2/service.rb +424 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +4 -207
- data/generated/google/apis/calendar_v3/representations.rb +0 -97
- data/generated/google/apis/calendar_v3/service.rb +8 -4
- data/generated/google/apis/classroom_v1.rb +27 -27
- data/generated/google/apis/classroom_v1/classes.rb +1037 -926
- data/generated/google/apis/classroom_v1/representations.rb +294 -244
- data/generated/google/apis/classroom_v1/service.rb +1114 -1109
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
- data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
- data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
- data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
- data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
- data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
- data/generated/google/apis/cloudfunctions_v1.rb +4 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
- data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
- data/generated/google/apis/cloudkms_v1/service.rb +320 -320
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
- data/generated/google/apis/cloudtrace_v1.rb +5 -5
- data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
- data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
- data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
- data/generated/google/apis/cloudtrace_v2.rb +43 -0
- data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
- data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
- data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
- data/generated/google/apis/compute_alpha.rb +49 -0
- data/generated/google/apis/compute_alpha/classes.rb +23796 -0
- data/generated/google/apis/compute_alpha/representations.rb +9391 -0
- data/generated/google/apis/compute_alpha/service.rb +24188 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1597 -235
- data/generated/google/apis/compute_beta/representations.rb +477 -0
- data/generated/google/apis/compute_beta/service.rb +2875 -1677
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +319 -197
- data/generated/google/apis/compute_v1/representations.rb +51 -0
- data/generated/google/apis/compute_v1/service.rb +2057 -172
- data/generated/google/apis/consumersurveys_v2.rb +40 -0
- data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
- data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
- data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1072 -936
- data/generated/google/apis/container_v1/representations.rb +266 -202
- data/generated/google/apis/container_v1/service.rb +243 -243
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
- data/generated/google/apis/container_v1beta1/representations.rb +662 -0
- data/generated/google/apis/container_v1beta1/service.rb +1875 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +72 -3
- data/generated/google/apis/content_v2/representations.rb +23 -0
- data/generated/google/apis/content_v2/service.rb +23 -18
- data/generated/google/apis/content_v2sandbox.rb +35 -0
- data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
- data/generated/google/apis/content_v2sandbox/service.rb +709 -0
- data/generated/google/apis/dataflow_v1b3.rb +5 -5
- data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
- data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
- data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
- data/generated/google/apis/dataproc_v1/representations.rb +227 -227
- data/generated/google/apis/dataproc_v1/service.rb +254 -254
- data/generated/google/apis/dataproc_v1beta2.rb +34 -0
- data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +1311 -773
- data/generated/google/apis/datastore_v1/representations.rb +351 -148
- data/generated/google/apis/datastore_v1/service.rb +206 -55
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
- data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8.rb +1 -1
- data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
- data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +36 -0
- data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
- data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
- data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
- data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
- data/generated/google/apis/firebaserules_v1/service.rb +113 -113
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/fusiontables_v1.rb +37 -0
- data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
- data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
- data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +8 -8
- data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
- data/generated/google/apis/genomics_v1/representations.rb +482 -482
- data/generated/google/apis/genomics_v1/service.rb +966 -966
- data/generated/google/apis/genomics_v1alpha2.rb +40 -0
- data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +664 -395
- data/generated/google/apis/iam_v1/representations.rb +194 -81
- data/generated/google/apis/iam_v1/service.rb +657 -92
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +8 -8
- data/generated/google/apis/language_v1.rb +4 -1
- data/generated/google/apis/language_v1/classes.rb +393 -393
- data/generated/google/apis/language_v1/representations.rb +95 -95
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +4 -1
- data/generated/google/apis/language_v1beta1/classes.rb +457 -457
- data/generated/google/apis/language_v1beta1/representations.rb +114 -114
- data/generated/google/apis/language_v1beta1/service.rb +48 -48
- data/generated/google/apis/language_v1beta2.rb +39 -0
- data/generated/google/apis/language_v1beta2/classes.rb +824 -0
- data/generated/google/apis/language_v1beta2/representations.rb +373 -0
- data/generated/google/apis/language_v1beta2/service.rb +217 -0
- data/generated/google/apis/logging_v2.rb +9 -9
- data/generated/google/apis/logging_v2/classes.rb +840 -834
- data/generated/google/apis/logging_v2/representations.rb +168 -167
- data/generated/google/apis/logging_v2/service.rb +667 -463
- data/generated/google/apis/logging_v2beta1.rb +9 -9
- data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
- data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
- data/generated/google/apis/logging_v2beta1/service.rb +253 -255
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
- data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
- data/generated/google/apis/manufacturers_v1/service.rb +8 -7
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1487 -1676
- data/generated/google/apis/ml_v1/representations.rb +229 -299
- data/generated/google/apis/ml_v1/service.rb +359 -253
- data/generated/google/apis/ml_v1beta1.rb +34 -0
- data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
- data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
- data/generated/google/apis/ml_v1beta1/service.rb +975 -0
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +834 -834
- data/generated/google/apis/monitoring_v3/representations.rb +168 -168
- data/generated/google/apis/monitoring_v3/service.rb +330 -330
- data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
- data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
- data/generated/google/apis/mybusiness_v3/service.rb +241 -241
- data/generated/google/apis/oauth2_v1.rb +43 -0
- data/generated/google/apis/oauth2_v1/classes.rb +321 -0
- data/generated/google/apis/oauth2_v1/representations.rb +135 -0
- data/generated/google/apis/oauth2_v1/service.rb +337 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +37 -0
- data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
- data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
- data/generated/google/apis/pagespeedonline_v1.rb +32 -0
- data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
- data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
- data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1512 -1512
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +596 -596
- data/generated/google/apis/people_v1.rb +15 -15
- data/generated/google/apis/people_v1/classes.rb +1384 -1383
- data/generated/google/apis/people_v1/representations.rb +311 -311
- data/generated/google/apis/people_v1/service.rb +208 -202
- data/generated/google/apis/playcustomapp_v1.rb +34 -0
- data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
- data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
- data/generated/google/apis/playmoviespartner_v1.rb +34 -0
- data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
- data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
- data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/prediction_v1_2.rb +44 -0
- data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
- data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
- data/generated/google/apis/prediction_v1_2/service.rb +287 -0
- data/generated/google/apis/prediction_v1_3.rb +44 -0
- data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
- data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
- data/generated/google/apis/prediction_v1_3/service.rb +284 -0
- data/generated/google/apis/prediction_v1_4.rb +44 -0
- data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
- data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
- data/generated/google/apis/prediction_v1_4/service.rb +284 -0
- data/generated/google/apis/prediction_v1_5.rb +44 -0
- data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
- data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
- data/generated/google/apis/prediction_v1_5/service.rb +357 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +352 -352
- data/generated/google/apis/pubsub_v1/representations.rb +77 -77
- data/generated/google/apis/pubsub_v1/service.rb +346 -346
- data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
- data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
- data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
- data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
- data/generated/google/apis/replicapool_v1beta1.rb +50 -0
- data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
- data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
- data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
- data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
- data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
- data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
- data/generated/google/apis/safebrowsing_v4.rb +32 -0
- data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
- data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +99 -157
- data/generated/google/apis/script_v1/representations.rb +17 -47
- data/generated/google/apis/script_v1/service.rb +12 -12
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
- data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
- data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
- data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
- data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
- data/generated/google/apis/serviceuser_v1.rb +5 -5
- data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
- data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
- data/generated/google/apis/serviceuser_v1/service.rb +43 -43
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
- data/generated/google/apis/sheets_v4/representations.rb +931 -930
- data/generated/google/apis/sheets_v4/service.rb +244 -244
- data/generated/google/apis/slides_v1.rb +10 -10
- data/generated/google/apis/slides_v1/classes.rb +2915 -2915
- data/generated/google/apis/slides_v1/representations.rb +698 -698
- data/generated/google/apis/slides_v1/service.rb +35 -35
- data/generated/google/apis/sourcerepo_v1.rb +3 -3
- data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
- data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
- data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
- data/generated/google/apis/spanner_v1.rb +4 -4
- data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
- data/generated/google/apis/spanner_v1/representations.rb +338 -323
- data/generated/google/apis/spanner_v1/service.rb +689 -689
- data/generated/google/apis/spectrum_v1explorer.rb +31 -0
- data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
- data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
- data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
- data/generated/google/apis/speech_v1.rb +34 -0
- data/generated/google/apis/speech_v1/classes.rb +572 -0
- data/generated/google/apis/speech_v1/representations.rb +236 -0
- data/generated/google/apis/speech_v1/service.rb +277 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
- data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
- data/generated/google/apis/speech_v1beta1/service.rb +46 -46
- data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
- data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -6
- data/generated/google/apis/storage_v1/service.rb +51 -29
- data/generated/google/apis/storage_v1beta1.rb +40 -0
- data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
- data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
- data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
- data/generated/google/apis/storage_v1beta2.rb +40 -0
- data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
- data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
- data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
- data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
- data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
- data/generated/google/apis/streetviewpublish_v1.rb +36 -0
- data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
- data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
- data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
- data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
- data/generated/google/apis/translate_v2/classes.rb +111 -111
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +94 -94
- data/generated/google/apis/vault_v1.rb +31 -0
- data/generated/google/apis/vault_v1/classes.rb +554 -0
- data/generated/google/apis/vault_v1/representations.rb +318 -0
- data/generated/google/apis/vault_v1/service.rb +677 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
- data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
- data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +4 -4
- data/generated/google/apis/vision_v1/classes.rb +1176 -1178
- data/generated/google/apis/vision_v1/representations.rb +235 -235
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
- data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
- data/lib/google/apis/version.rb +1 -1
- metadata +246 -2
|
@@ -0,0 +1,1152 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/core/base_service'
|
|
16
|
+
require 'google/apis/core/json_representation'
|
|
17
|
+
require 'google/apis/core/hashable'
|
|
18
|
+
require 'google/apis/errors'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
module ClouduseraccountsAlpha
|
|
23
|
+
# Cloud User Accounts API
|
|
24
|
+
#
|
|
25
|
+
# Creates and manages users and groups for accessing Google Compute Engine
|
|
26
|
+
# virtual machines.
|
|
27
|
+
#
|
|
28
|
+
# @example
|
|
29
|
+
# require 'google/apis/clouduseraccounts_alpha'
|
|
30
|
+
#
|
|
31
|
+
# Clouduseraccounts = Google::Apis::ClouduseraccountsAlpha # Alias the module
|
|
32
|
+
# service = Clouduseraccounts::CloudUserAccountsService.new
|
|
33
|
+
#
|
|
34
|
+
# @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
|
|
35
|
+
class CloudUserAccountsService < Google::Apis::Core::BaseService
|
|
36
|
+
# @return [String]
|
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
39
|
+
attr_accessor :key
|
|
40
|
+
|
|
41
|
+
# @return [String]
|
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
44
|
+
# Overrides userIp if both are provided.
|
|
45
|
+
attr_accessor :quota_user
|
|
46
|
+
|
|
47
|
+
# @return [String]
|
|
48
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
49
|
+
# enforce per-user limits.
|
|
50
|
+
attr_accessor :user_ip
|
|
51
|
+
|
|
52
|
+
def initialize
|
|
53
|
+
super('https://www.googleapis.com/', 'clouduseraccounts/alpha/projects/')
|
|
54
|
+
@batch_path = 'batch'
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Deletes the specified operation resource.
|
|
58
|
+
# @param [String] project
|
|
59
|
+
# Project ID for this request.
|
|
60
|
+
# @param [String] operation
|
|
61
|
+
# Name of the Operations resource to delete.
|
|
62
|
+
# @param [String] fields
|
|
63
|
+
# Selector specifying which fields to include in a partial response.
|
|
64
|
+
# @param [String] quota_user
|
|
65
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
66
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
67
|
+
# Overrides userIp if both are provided.
|
|
68
|
+
# @param [String] user_ip
|
|
69
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
70
|
+
# enforce per-user limits.
|
|
71
|
+
# @param [Google::Apis::RequestOptions] options
|
|
72
|
+
# Request-specific options
|
|
73
|
+
#
|
|
74
|
+
# @yield [result, err] Result & error if block supplied
|
|
75
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
76
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
77
|
+
#
|
|
78
|
+
# @return [void]
|
|
79
|
+
#
|
|
80
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
81
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
82
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
83
|
+
def delete_global_accounts_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
84
|
+
command = make_simple_command(:delete, '{project}/global/operations/{operation}', options)
|
|
85
|
+
command.params['project'] = project unless project.nil?
|
|
86
|
+
command.params['operation'] = operation unless operation.nil?
|
|
87
|
+
command.query['fields'] = fields unless fields.nil?
|
|
88
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
89
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
90
|
+
execute_or_queue_command(command, &block)
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Retrieves the specified operation resource.
|
|
94
|
+
# @param [String] project
|
|
95
|
+
# Project ID for this request.
|
|
96
|
+
# @param [String] operation
|
|
97
|
+
# Name of the Operations resource to return.
|
|
98
|
+
# @param [String] fields
|
|
99
|
+
# Selector specifying which fields to include in a partial response.
|
|
100
|
+
# @param [String] quota_user
|
|
101
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
102
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
103
|
+
# Overrides userIp if both are provided.
|
|
104
|
+
# @param [String] user_ip
|
|
105
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
106
|
+
# enforce per-user limits.
|
|
107
|
+
# @param [Google::Apis::RequestOptions] options
|
|
108
|
+
# Request-specific options
|
|
109
|
+
#
|
|
110
|
+
# @yield [result, err] Result & error if block supplied
|
|
111
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::Operation] parsed result object
|
|
112
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
113
|
+
#
|
|
114
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::Operation]
|
|
115
|
+
#
|
|
116
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
117
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
118
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
119
|
+
def get_global_accounts_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
120
|
+
command = make_simple_command(:get, '{project}/global/operations/{operation}', options)
|
|
121
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::Operation::Representation
|
|
122
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::Operation
|
|
123
|
+
command.params['project'] = project unless project.nil?
|
|
124
|
+
command.params['operation'] = operation unless operation.nil?
|
|
125
|
+
command.query['fields'] = fields unless fields.nil?
|
|
126
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
127
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
128
|
+
execute_or_queue_command(command, &block)
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Retrieves the list of operation resources contained within the specified
|
|
132
|
+
# project.
|
|
133
|
+
# @param [String] project
|
|
134
|
+
# Project ID for this request.
|
|
135
|
+
# @param [String] filter
|
|
136
|
+
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
137
|
+
# expression`. Your `expression` must be in the format: field_name
|
|
138
|
+
# comparison_string literal_string.
|
|
139
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
|
140
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
|
141
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
|
142
|
+
# to filter to. The literal value must be valid for the type of field you are
|
|
143
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
|
144
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
145
|
+
# must match the entire field.
|
|
146
|
+
# For example, to filter for instances that do not have a name of example-
|
|
147
|
+
# instance, you would use filter=name ne example-instance.
|
|
148
|
+
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
149
|
+
# also filter on nested fields. For example, you could filter on instances that
|
|
150
|
+
# have set the scheduling.automaticRestart field to true. In particular, use
|
|
151
|
+
# filtering on nested fields to take advantage of instance labels to organize
|
|
152
|
+
# and filter results based on label values.
|
|
153
|
+
# The Beta API also supports filtering on multiple expressions by providing each
|
|
154
|
+
# separate expression within parentheses. For example, (scheduling.
|
|
155
|
+
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
156
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
157
|
+
# to pass the filters.
|
|
158
|
+
# @param [Fixnum] max_results
|
|
159
|
+
# The maximum number of results per page that should be returned. If the number
|
|
160
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
161
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
162
|
+
# list requests.
|
|
163
|
+
# @param [String] order_by
|
|
164
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
165
|
+
# alphanumerical order based on the resource name.
|
|
166
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
167
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
168
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
169
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
170
|
+
# returned first.
|
|
171
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
172
|
+
# @param [String] page_token
|
|
173
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
174
|
+
# a previous list request to get the next page of results.
|
|
175
|
+
# @param [String] fields
|
|
176
|
+
# Selector specifying which fields to include in a partial response.
|
|
177
|
+
# @param [String] quota_user
|
|
178
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
179
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
180
|
+
# Overrides userIp if both are provided.
|
|
181
|
+
# @param [String] user_ip
|
|
182
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
183
|
+
# enforce per-user limits.
|
|
184
|
+
# @param [Google::Apis::RequestOptions] options
|
|
185
|
+
# Request-specific options
|
|
186
|
+
#
|
|
187
|
+
# @yield [result, err] Result & error if block supplied
|
|
188
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::OperationList] parsed result object
|
|
189
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
190
|
+
#
|
|
191
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::OperationList]
|
|
192
|
+
#
|
|
193
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
194
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
195
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
196
|
+
def list_global_accounts_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
197
|
+
command = make_simple_command(:get, '{project}/global/operations', options)
|
|
198
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::OperationList::Representation
|
|
199
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::OperationList
|
|
200
|
+
command.params['project'] = project unless project.nil?
|
|
201
|
+
command.query['filter'] = filter unless filter.nil?
|
|
202
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
203
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
204
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
205
|
+
command.query['fields'] = fields unless fields.nil?
|
|
206
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
207
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
208
|
+
execute_or_queue_command(command, &block)
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Adds users to the specified group.
|
|
212
|
+
# @param [String] project
|
|
213
|
+
# Project ID for this request.
|
|
214
|
+
# @param [String] group_name
|
|
215
|
+
# Name of the group for this request.
|
|
216
|
+
# @param [Google::Apis::ClouduseraccountsAlpha::GroupsAddMemberRequest] groups_add_member_request_object
|
|
217
|
+
# @param [String] fields
|
|
218
|
+
# Selector specifying which fields to include in a partial response.
|
|
219
|
+
# @param [String] quota_user
|
|
220
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
221
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
222
|
+
# Overrides userIp if both are provided.
|
|
223
|
+
# @param [String] user_ip
|
|
224
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
225
|
+
# enforce per-user limits.
|
|
226
|
+
# @param [Google::Apis::RequestOptions] options
|
|
227
|
+
# Request-specific options
|
|
228
|
+
#
|
|
229
|
+
# @yield [result, err] Result & error if block supplied
|
|
230
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::Operation] parsed result object
|
|
231
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
232
|
+
#
|
|
233
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::Operation]
|
|
234
|
+
#
|
|
235
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
236
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
237
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
238
|
+
def add_group_member(project, group_name, groups_add_member_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
239
|
+
command = make_simple_command(:post, '{project}/global/groups/{groupName}/addMember', options)
|
|
240
|
+
command.request_representation = Google::Apis::ClouduseraccountsAlpha::GroupsAddMemberRequest::Representation
|
|
241
|
+
command.request_object = groups_add_member_request_object
|
|
242
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::Operation::Representation
|
|
243
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::Operation
|
|
244
|
+
command.params['project'] = project unless project.nil?
|
|
245
|
+
command.params['groupName'] = group_name unless group_name.nil?
|
|
246
|
+
command.query['fields'] = fields unless fields.nil?
|
|
247
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
248
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
249
|
+
execute_or_queue_command(command, &block)
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# Deletes the specified Group resource.
|
|
253
|
+
# @param [String] project
|
|
254
|
+
# Project ID for this request.
|
|
255
|
+
# @param [String] group_name
|
|
256
|
+
# Name of the Group resource to delete.
|
|
257
|
+
# @param [String] fields
|
|
258
|
+
# Selector specifying which fields to include in a partial response.
|
|
259
|
+
# @param [String] quota_user
|
|
260
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
261
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
262
|
+
# Overrides userIp if both are provided.
|
|
263
|
+
# @param [String] user_ip
|
|
264
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
265
|
+
# enforce per-user limits.
|
|
266
|
+
# @param [Google::Apis::RequestOptions] options
|
|
267
|
+
# Request-specific options
|
|
268
|
+
#
|
|
269
|
+
# @yield [result, err] Result & error if block supplied
|
|
270
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::Operation] parsed result object
|
|
271
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
272
|
+
#
|
|
273
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::Operation]
|
|
274
|
+
#
|
|
275
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
276
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
277
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
278
|
+
def delete_group(project, group_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
279
|
+
command = make_simple_command(:delete, '{project}/global/groups/{groupName}', options)
|
|
280
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::Operation::Representation
|
|
281
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::Operation
|
|
282
|
+
command.params['project'] = project unless project.nil?
|
|
283
|
+
command.params['groupName'] = group_name unless group_name.nil?
|
|
284
|
+
command.query['fields'] = fields unless fields.nil?
|
|
285
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
286
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
287
|
+
execute_or_queue_command(command, &block)
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# Returns the specified Group resource.
|
|
291
|
+
# @param [String] project
|
|
292
|
+
# Project ID for this request.
|
|
293
|
+
# @param [String] group_name
|
|
294
|
+
# Name of the Group resource to return.
|
|
295
|
+
# @param [String] fields
|
|
296
|
+
# Selector specifying which fields to include in a partial response.
|
|
297
|
+
# @param [String] quota_user
|
|
298
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
299
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
300
|
+
# Overrides userIp if both are provided.
|
|
301
|
+
# @param [String] user_ip
|
|
302
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
303
|
+
# enforce per-user limits.
|
|
304
|
+
# @param [Google::Apis::RequestOptions] options
|
|
305
|
+
# Request-specific options
|
|
306
|
+
#
|
|
307
|
+
# @yield [result, err] Result & error if block supplied
|
|
308
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::Group] parsed result object
|
|
309
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
310
|
+
#
|
|
311
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::Group]
|
|
312
|
+
#
|
|
313
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
314
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
315
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
316
|
+
def get_group(project, group_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
317
|
+
command = make_simple_command(:get, '{project}/global/groups/{groupName}', options)
|
|
318
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::Group::Representation
|
|
319
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::Group
|
|
320
|
+
command.params['project'] = project unless project.nil?
|
|
321
|
+
command.params['groupName'] = group_name unless group_name.nil?
|
|
322
|
+
command.query['fields'] = fields unless fields.nil?
|
|
323
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
324
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
325
|
+
execute_or_queue_command(command, &block)
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
|
329
|
+
# or resource exists.
|
|
330
|
+
# @param [String] project
|
|
331
|
+
# Project ID for this request.
|
|
332
|
+
# @param [String] resource
|
|
333
|
+
# Name of the resource for this request.
|
|
334
|
+
# @param [String] fields
|
|
335
|
+
# Selector specifying which fields to include in a partial response.
|
|
336
|
+
# @param [String] quota_user
|
|
337
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
338
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
339
|
+
# Overrides userIp if both are provided.
|
|
340
|
+
# @param [String] user_ip
|
|
341
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
342
|
+
# enforce per-user limits.
|
|
343
|
+
# @param [Google::Apis::RequestOptions] options
|
|
344
|
+
# Request-specific options
|
|
345
|
+
#
|
|
346
|
+
# @yield [result, err] Result & error if block supplied
|
|
347
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::Policy] parsed result object
|
|
348
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
349
|
+
#
|
|
350
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::Policy]
|
|
351
|
+
#
|
|
352
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
353
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
354
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
355
|
+
def get_group_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
356
|
+
command = make_simple_command(:get, '{project}/global/groups/{resource}/getIamPolicy', options)
|
|
357
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::Policy::Representation
|
|
358
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::Policy
|
|
359
|
+
command.params['project'] = project unless project.nil?
|
|
360
|
+
command.params['resource'] = resource unless resource.nil?
|
|
361
|
+
command.query['fields'] = fields unless fields.nil?
|
|
362
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
363
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
364
|
+
execute_or_queue_command(command, &block)
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
# Creates a Group resource in the specified project using the data included in
|
|
368
|
+
# the request.
|
|
369
|
+
# @param [String] project
|
|
370
|
+
# Project ID for this request.
|
|
371
|
+
# @param [Google::Apis::ClouduseraccountsAlpha::Group] group_object
|
|
372
|
+
# @param [String] fields
|
|
373
|
+
# Selector specifying which fields to include in a partial response.
|
|
374
|
+
# @param [String] quota_user
|
|
375
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
376
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
377
|
+
# Overrides userIp if both are provided.
|
|
378
|
+
# @param [String] user_ip
|
|
379
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
380
|
+
# enforce per-user limits.
|
|
381
|
+
# @param [Google::Apis::RequestOptions] options
|
|
382
|
+
# Request-specific options
|
|
383
|
+
#
|
|
384
|
+
# @yield [result, err] Result & error if block supplied
|
|
385
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::Operation] parsed result object
|
|
386
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
387
|
+
#
|
|
388
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::Operation]
|
|
389
|
+
#
|
|
390
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
391
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
392
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
393
|
+
def insert_group(project, group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
394
|
+
command = make_simple_command(:post, '{project}/global/groups', options)
|
|
395
|
+
command.request_representation = Google::Apis::ClouduseraccountsAlpha::Group::Representation
|
|
396
|
+
command.request_object = group_object
|
|
397
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::Operation::Representation
|
|
398
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::Operation
|
|
399
|
+
command.params['project'] = project unless project.nil?
|
|
400
|
+
command.query['fields'] = fields unless fields.nil?
|
|
401
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
402
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
403
|
+
execute_or_queue_command(command, &block)
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
# Retrieves the list of groups contained within the specified project.
|
|
407
|
+
# @param [String] project
|
|
408
|
+
# Project ID for this request.
|
|
409
|
+
# @param [String] filter
|
|
410
|
+
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
411
|
+
# expression`. Your `expression` must be in the format: field_name
|
|
412
|
+
# comparison_string literal_string.
|
|
413
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
|
414
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
|
415
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
|
416
|
+
# to filter to. The literal value must be valid for the type of field you are
|
|
417
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
|
418
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
419
|
+
# must match the entire field.
|
|
420
|
+
# For example, to filter for instances that do not have a name of example-
|
|
421
|
+
# instance, you would use filter=name ne example-instance.
|
|
422
|
+
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
423
|
+
# also filter on nested fields. For example, you could filter on instances that
|
|
424
|
+
# have set the scheduling.automaticRestart field to true. In particular, use
|
|
425
|
+
# filtering on nested fields to take advantage of instance labels to organize
|
|
426
|
+
# and filter results based on label values.
|
|
427
|
+
# The Beta API also supports filtering on multiple expressions by providing each
|
|
428
|
+
# separate expression within parentheses. For example, (scheduling.
|
|
429
|
+
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
430
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
431
|
+
# to pass the filters.
|
|
432
|
+
# @param [Fixnum] max_results
|
|
433
|
+
# The maximum number of results per page that should be returned. If the number
|
|
434
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
435
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
436
|
+
# list requests.
|
|
437
|
+
# @param [String] order_by
|
|
438
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
439
|
+
# alphanumerical order based on the resource name.
|
|
440
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
441
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
442
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
443
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
444
|
+
# returned first.
|
|
445
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
446
|
+
# @param [String] page_token
|
|
447
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
448
|
+
# a previous list request to get the next page of results.
|
|
449
|
+
# @param [String] fields
|
|
450
|
+
# Selector specifying which fields to include in a partial response.
|
|
451
|
+
# @param [String] quota_user
|
|
452
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
453
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
454
|
+
# Overrides userIp if both are provided.
|
|
455
|
+
# @param [String] user_ip
|
|
456
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
457
|
+
# enforce per-user limits.
|
|
458
|
+
# @param [Google::Apis::RequestOptions] options
|
|
459
|
+
# Request-specific options
|
|
460
|
+
#
|
|
461
|
+
# @yield [result, err] Result & error if block supplied
|
|
462
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::GroupList] parsed result object
|
|
463
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
464
|
+
#
|
|
465
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::GroupList]
|
|
466
|
+
#
|
|
467
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
468
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
469
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
470
|
+
def list_groups(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
471
|
+
command = make_simple_command(:get, '{project}/global/groups', options)
|
|
472
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::GroupList::Representation
|
|
473
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::GroupList
|
|
474
|
+
command.params['project'] = project unless project.nil?
|
|
475
|
+
command.query['filter'] = filter unless filter.nil?
|
|
476
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
477
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
478
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
479
|
+
command.query['fields'] = fields unless fields.nil?
|
|
480
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
481
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
482
|
+
execute_or_queue_command(command, &block)
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
# Removes users from the specified group.
|
|
486
|
+
# @param [String] project
|
|
487
|
+
# Project ID for this request.
|
|
488
|
+
# @param [String] group_name
|
|
489
|
+
# Name of the group for this request.
|
|
490
|
+
# @param [Google::Apis::ClouduseraccountsAlpha::GroupsRemoveMemberRequest] groups_remove_member_request_object
|
|
491
|
+
# @param [String] fields
|
|
492
|
+
# Selector specifying which fields to include in a partial response.
|
|
493
|
+
# @param [String] quota_user
|
|
494
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
495
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
496
|
+
# Overrides userIp if both are provided.
|
|
497
|
+
# @param [String] user_ip
|
|
498
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
499
|
+
# enforce per-user limits.
|
|
500
|
+
# @param [Google::Apis::RequestOptions] options
|
|
501
|
+
# Request-specific options
|
|
502
|
+
#
|
|
503
|
+
# @yield [result, err] Result & error if block supplied
|
|
504
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::Operation] parsed result object
|
|
505
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
506
|
+
#
|
|
507
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::Operation]
|
|
508
|
+
#
|
|
509
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
510
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
511
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
512
|
+
def remove_group_member(project, group_name, groups_remove_member_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
513
|
+
command = make_simple_command(:post, '{project}/global/groups/{groupName}/removeMember', options)
|
|
514
|
+
command.request_representation = Google::Apis::ClouduseraccountsAlpha::GroupsRemoveMemberRequest::Representation
|
|
515
|
+
command.request_object = groups_remove_member_request_object
|
|
516
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::Operation::Representation
|
|
517
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::Operation
|
|
518
|
+
command.params['project'] = project unless project.nil?
|
|
519
|
+
command.params['groupName'] = group_name unless group_name.nil?
|
|
520
|
+
command.query['fields'] = fields unless fields.nil?
|
|
521
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
522
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
523
|
+
execute_or_queue_command(command, &block)
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
527
|
+
# existing policy.
|
|
528
|
+
# @param [String] project
|
|
529
|
+
# Project ID for this request.
|
|
530
|
+
# @param [String] resource
|
|
531
|
+
# Name of the resource for this request.
|
|
532
|
+
# @param [Google::Apis::ClouduseraccountsAlpha::Policy] policy_object
|
|
533
|
+
# @param [String] fields
|
|
534
|
+
# Selector specifying which fields to include in a partial response.
|
|
535
|
+
# @param [String] quota_user
|
|
536
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
537
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
538
|
+
# Overrides userIp if both are provided.
|
|
539
|
+
# @param [String] user_ip
|
|
540
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
541
|
+
# enforce per-user limits.
|
|
542
|
+
# @param [Google::Apis::RequestOptions] options
|
|
543
|
+
# Request-specific options
|
|
544
|
+
#
|
|
545
|
+
# @yield [result, err] Result & error if block supplied
|
|
546
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::Policy] parsed result object
|
|
547
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
548
|
+
#
|
|
549
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::Policy]
|
|
550
|
+
#
|
|
551
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
552
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
553
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
554
|
+
def set_group_iam_policy(project, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
555
|
+
command = make_simple_command(:post, '{project}/global/groups/{resource}/setIamPolicy', options)
|
|
556
|
+
command.request_representation = Google::Apis::ClouduseraccountsAlpha::Policy::Representation
|
|
557
|
+
command.request_object = policy_object
|
|
558
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::Policy::Representation
|
|
559
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::Policy
|
|
560
|
+
command.params['project'] = project unless project.nil?
|
|
561
|
+
command.params['resource'] = resource unless resource.nil?
|
|
562
|
+
command.query['fields'] = fields unless fields.nil?
|
|
563
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
564
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
565
|
+
execute_or_queue_command(command, &block)
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
# Returns permissions that a caller has on the specified resource.
|
|
569
|
+
# @param [String] project
|
|
570
|
+
# Project ID for this request.
|
|
571
|
+
# @param [String] resource
|
|
572
|
+
# Name of the resource for this request.
|
|
573
|
+
# @param [Google::Apis::ClouduseraccountsAlpha::TestPermissionsRequest] test_permissions_request_object
|
|
574
|
+
# @param [String] fields
|
|
575
|
+
# Selector specifying which fields to include in a partial response.
|
|
576
|
+
# @param [String] quota_user
|
|
577
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
578
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
579
|
+
# Overrides userIp if both are provided.
|
|
580
|
+
# @param [String] user_ip
|
|
581
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
582
|
+
# enforce per-user limits.
|
|
583
|
+
# @param [Google::Apis::RequestOptions] options
|
|
584
|
+
# Request-specific options
|
|
585
|
+
#
|
|
586
|
+
# @yield [result, err] Result & error if block supplied
|
|
587
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::TestPermissionsResponse] parsed result object
|
|
588
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
589
|
+
#
|
|
590
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::TestPermissionsResponse]
|
|
591
|
+
#
|
|
592
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
593
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
594
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
595
|
+
def test_group_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
596
|
+
command = make_simple_command(:post, '{project}/global/groups/{resource}/testIamPermissions', options)
|
|
597
|
+
command.request_representation = Google::Apis::ClouduseraccountsAlpha::TestPermissionsRequest::Representation
|
|
598
|
+
command.request_object = test_permissions_request_object
|
|
599
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::TestPermissionsResponse::Representation
|
|
600
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::TestPermissionsResponse
|
|
601
|
+
command.params['project'] = project unless project.nil?
|
|
602
|
+
command.params['resource'] = resource unless resource.nil?
|
|
603
|
+
command.query['fields'] = fields unless fields.nil?
|
|
604
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
605
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
606
|
+
execute_or_queue_command(command, &block)
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
# Returns a list of authorized public keys for a specific user account.
|
|
610
|
+
# @param [String] project
|
|
611
|
+
# Project ID for this request.
|
|
612
|
+
# @param [String] zone
|
|
613
|
+
# Name of the zone for this request.
|
|
614
|
+
# @param [String] user
|
|
615
|
+
# The user account for which you want to get a list of authorized public keys.
|
|
616
|
+
# @param [String] instance
|
|
617
|
+
# The fully-qualified URL of the virtual machine requesting the view.
|
|
618
|
+
# @param [Boolean] login
|
|
619
|
+
# Whether the view was requested as part of a user-initiated login.
|
|
620
|
+
# @param [String] fields
|
|
621
|
+
# Selector specifying which fields to include in a partial response.
|
|
622
|
+
# @param [String] quota_user
|
|
623
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
624
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
625
|
+
# Overrides userIp if both are provided.
|
|
626
|
+
# @param [String] user_ip
|
|
627
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
628
|
+
# enforce per-user limits.
|
|
629
|
+
# @param [Google::Apis::RequestOptions] options
|
|
630
|
+
# Request-specific options
|
|
631
|
+
#
|
|
632
|
+
# @yield [result, err] Result & error if block supplied
|
|
633
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::LinuxGetAuthorizedKeysViewResponse] parsed result object
|
|
634
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
635
|
+
#
|
|
636
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::LinuxGetAuthorizedKeysViewResponse]
|
|
637
|
+
#
|
|
638
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
639
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
640
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
641
|
+
def get_linux_authorized_keys_view(project, zone, user, instance, login: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
642
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/authorizedKeysView/{user}', options)
|
|
643
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::LinuxGetAuthorizedKeysViewResponse::Representation
|
|
644
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::LinuxGetAuthorizedKeysViewResponse
|
|
645
|
+
command.params['project'] = project unless project.nil?
|
|
646
|
+
command.params['zone'] = zone unless zone.nil?
|
|
647
|
+
command.params['user'] = user unless user.nil?
|
|
648
|
+
command.query['instance'] = instance unless instance.nil?
|
|
649
|
+
command.query['login'] = login unless login.nil?
|
|
650
|
+
command.query['fields'] = fields unless fields.nil?
|
|
651
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
652
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
653
|
+
execute_or_queue_command(command, &block)
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
# Retrieves a list of user accounts for an instance within a specific project.
|
|
657
|
+
# @param [String] project
|
|
658
|
+
# Project ID for this request.
|
|
659
|
+
# @param [String] zone
|
|
660
|
+
# Name of the zone for this request.
|
|
661
|
+
# @param [String] instance
|
|
662
|
+
# The fully-qualified URL of the virtual machine requesting the views.
|
|
663
|
+
# @param [String] filter
|
|
664
|
+
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
665
|
+
# expression`. Your `expression` must be in the format: field_name
|
|
666
|
+
# comparison_string literal_string.
|
|
667
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
|
668
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
|
669
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
|
670
|
+
# to filter to. The literal value must be valid for the type of field you are
|
|
671
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
|
672
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
673
|
+
# must match the entire field.
|
|
674
|
+
# For example, to filter for instances that do not have a name of example-
|
|
675
|
+
# instance, you would use filter=name ne example-instance.
|
|
676
|
+
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
677
|
+
# also filter on nested fields. For example, you could filter on instances that
|
|
678
|
+
# have set the scheduling.automaticRestart field to true. In particular, use
|
|
679
|
+
# filtering on nested fields to take advantage of instance labels to organize
|
|
680
|
+
# and filter results based on label values.
|
|
681
|
+
# The Beta API also supports filtering on multiple expressions by providing each
|
|
682
|
+
# separate expression within parentheses. For example, (scheduling.
|
|
683
|
+
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
684
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
685
|
+
# to pass the filters.
|
|
686
|
+
# @param [Fixnum] max_results
|
|
687
|
+
# The maximum number of results per page that should be returned. If the number
|
|
688
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
689
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
690
|
+
# list requests.
|
|
691
|
+
# @param [String] order_by
|
|
692
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
693
|
+
# alphanumerical order based on the resource name.
|
|
694
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
695
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
696
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
697
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
698
|
+
# returned first.
|
|
699
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
700
|
+
# @param [String] page_token
|
|
701
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
702
|
+
# a previous list request to get the next page of results.
|
|
703
|
+
# @param [String] fields
|
|
704
|
+
# Selector specifying which fields to include in a partial response.
|
|
705
|
+
# @param [String] quota_user
|
|
706
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
707
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
708
|
+
# Overrides userIp if both are provided.
|
|
709
|
+
# @param [String] user_ip
|
|
710
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
711
|
+
# enforce per-user limits.
|
|
712
|
+
# @param [Google::Apis::RequestOptions] options
|
|
713
|
+
# Request-specific options
|
|
714
|
+
#
|
|
715
|
+
# @yield [result, err] Result & error if block supplied
|
|
716
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::LinuxGetLinuxAccountViewsResponse] parsed result object
|
|
717
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
718
|
+
#
|
|
719
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::LinuxGetLinuxAccountViewsResponse]
|
|
720
|
+
#
|
|
721
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
722
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
723
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
724
|
+
def get_linux_linux_account_views(project, zone, instance, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
725
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/linuxAccountViews', options)
|
|
726
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::LinuxGetLinuxAccountViewsResponse::Representation
|
|
727
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::LinuxGetLinuxAccountViewsResponse
|
|
728
|
+
command.params['project'] = project unless project.nil?
|
|
729
|
+
command.params['zone'] = zone unless zone.nil?
|
|
730
|
+
command.query['filter'] = filter unless filter.nil?
|
|
731
|
+
command.query['instance'] = instance unless instance.nil?
|
|
732
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
733
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
734
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
735
|
+
command.query['fields'] = fields unless fields.nil?
|
|
736
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
737
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
738
|
+
execute_or_queue_command(command, &block)
|
|
739
|
+
end
|
|
740
|
+
|
|
741
|
+
# Adds a public key to the specified User resource with the data included in the
|
|
742
|
+
# request.
|
|
743
|
+
# @param [String] project
|
|
744
|
+
# Project ID for this request.
|
|
745
|
+
# @param [String] user
|
|
746
|
+
# Name of the user for this request.
|
|
747
|
+
# @param [Google::Apis::ClouduseraccountsAlpha::PublicKey] public_key_object
|
|
748
|
+
# @param [String] fields
|
|
749
|
+
# Selector specifying which fields to include in a partial response.
|
|
750
|
+
# @param [String] quota_user
|
|
751
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
752
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
753
|
+
# Overrides userIp if both are provided.
|
|
754
|
+
# @param [String] user_ip
|
|
755
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
756
|
+
# enforce per-user limits.
|
|
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::ClouduseraccountsAlpha::Operation] parsed result object
|
|
762
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
763
|
+
#
|
|
764
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::Operation]
|
|
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 add_user_public_key(project, user, public_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
770
|
+
command = make_simple_command(:post, '{project}/global/users/{user}/addPublicKey', options)
|
|
771
|
+
command.request_representation = Google::Apis::ClouduseraccountsAlpha::PublicKey::Representation
|
|
772
|
+
command.request_object = public_key_object
|
|
773
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::Operation::Representation
|
|
774
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::Operation
|
|
775
|
+
command.params['project'] = project unless project.nil?
|
|
776
|
+
command.params['user'] = user unless user.nil?
|
|
777
|
+
command.query['fields'] = fields unless fields.nil?
|
|
778
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
779
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
780
|
+
execute_or_queue_command(command, &block)
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
# Deletes the specified User resource.
|
|
784
|
+
# @param [String] project
|
|
785
|
+
# Project ID for this request.
|
|
786
|
+
# @param [String] user
|
|
787
|
+
# Name of the user resource to delete.
|
|
788
|
+
# @param [String] fields
|
|
789
|
+
# Selector specifying which fields to include in a partial response.
|
|
790
|
+
# @param [String] quota_user
|
|
791
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
792
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
793
|
+
# Overrides userIp if both are provided.
|
|
794
|
+
# @param [String] user_ip
|
|
795
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
796
|
+
# enforce per-user limits.
|
|
797
|
+
# @param [Google::Apis::RequestOptions] options
|
|
798
|
+
# Request-specific options
|
|
799
|
+
#
|
|
800
|
+
# @yield [result, err] Result & error if block supplied
|
|
801
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::Operation] parsed result object
|
|
802
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
803
|
+
#
|
|
804
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::Operation]
|
|
805
|
+
#
|
|
806
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
807
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
808
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
809
|
+
def delete_user(project, user, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
810
|
+
command = make_simple_command(:delete, '{project}/global/users/{user}', options)
|
|
811
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::Operation::Representation
|
|
812
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::Operation
|
|
813
|
+
command.params['project'] = project unless project.nil?
|
|
814
|
+
command.params['user'] = user unless user.nil?
|
|
815
|
+
command.query['fields'] = fields unless fields.nil?
|
|
816
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
817
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
818
|
+
execute_or_queue_command(command, &block)
|
|
819
|
+
end
|
|
820
|
+
|
|
821
|
+
# Returns the specified User resource.
|
|
822
|
+
# @param [String] project
|
|
823
|
+
# Project ID for this request.
|
|
824
|
+
# @param [String] user
|
|
825
|
+
# Name of the user resource to return.
|
|
826
|
+
# @param [String] fields
|
|
827
|
+
# Selector specifying which fields to include in a partial response.
|
|
828
|
+
# @param [String] quota_user
|
|
829
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
830
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
831
|
+
# Overrides userIp if both are provided.
|
|
832
|
+
# @param [String] user_ip
|
|
833
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
834
|
+
# enforce per-user limits.
|
|
835
|
+
# @param [Google::Apis::RequestOptions] options
|
|
836
|
+
# Request-specific options
|
|
837
|
+
#
|
|
838
|
+
# @yield [result, err] Result & error if block supplied
|
|
839
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::User] parsed result object
|
|
840
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
841
|
+
#
|
|
842
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::User]
|
|
843
|
+
#
|
|
844
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
845
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
846
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
847
|
+
def get_user(project, user, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
848
|
+
command = make_simple_command(:get, '{project}/global/users/{user}', options)
|
|
849
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::User::Representation
|
|
850
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::User
|
|
851
|
+
command.params['project'] = project unless project.nil?
|
|
852
|
+
command.params['user'] = user unless user.nil?
|
|
853
|
+
command.query['fields'] = fields unless fields.nil?
|
|
854
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
855
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
856
|
+
execute_or_queue_command(command, &block)
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
|
860
|
+
# or resource exists.
|
|
861
|
+
# @param [String] project
|
|
862
|
+
# Project ID for this request.
|
|
863
|
+
# @param [String] resource
|
|
864
|
+
# Name of the resource for this request.
|
|
865
|
+
# @param [String] fields
|
|
866
|
+
# Selector specifying which fields to include in a partial response.
|
|
867
|
+
# @param [String] quota_user
|
|
868
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
869
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
870
|
+
# Overrides userIp if both are provided.
|
|
871
|
+
# @param [String] user_ip
|
|
872
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
873
|
+
# enforce per-user limits.
|
|
874
|
+
# @param [Google::Apis::RequestOptions] options
|
|
875
|
+
# Request-specific options
|
|
876
|
+
#
|
|
877
|
+
# @yield [result, err] Result & error if block supplied
|
|
878
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::Policy] parsed result object
|
|
879
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
880
|
+
#
|
|
881
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::Policy]
|
|
882
|
+
#
|
|
883
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
884
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
885
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
886
|
+
def get_user_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
887
|
+
command = make_simple_command(:get, '{project}/global/users/{resource}/getIamPolicy', options)
|
|
888
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::Policy::Representation
|
|
889
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::Policy
|
|
890
|
+
command.params['project'] = project unless project.nil?
|
|
891
|
+
command.params['resource'] = resource unless resource.nil?
|
|
892
|
+
command.query['fields'] = fields unless fields.nil?
|
|
893
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
894
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
895
|
+
execute_or_queue_command(command, &block)
|
|
896
|
+
end
|
|
897
|
+
|
|
898
|
+
# Creates a User resource in the specified project using the data included in
|
|
899
|
+
# the request.
|
|
900
|
+
# @param [String] project
|
|
901
|
+
# Project ID for this request.
|
|
902
|
+
# @param [Google::Apis::ClouduseraccountsAlpha::User] user_object
|
|
903
|
+
# @param [String] fields
|
|
904
|
+
# Selector specifying which fields to include in a partial response.
|
|
905
|
+
# @param [String] quota_user
|
|
906
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
907
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
908
|
+
# Overrides userIp if both are provided.
|
|
909
|
+
# @param [String] user_ip
|
|
910
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
911
|
+
# enforce per-user limits.
|
|
912
|
+
# @param [Google::Apis::RequestOptions] options
|
|
913
|
+
# Request-specific options
|
|
914
|
+
#
|
|
915
|
+
# @yield [result, err] Result & error if block supplied
|
|
916
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::Operation] parsed result object
|
|
917
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
918
|
+
#
|
|
919
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::Operation]
|
|
920
|
+
#
|
|
921
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
922
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
923
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
924
|
+
def insert_user(project, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
925
|
+
command = make_simple_command(:post, '{project}/global/users', options)
|
|
926
|
+
command.request_representation = Google::Apis::ClouduseraccountsAlpha::User::Representation
|
|
927
|
+
command.request_object = user_object
|
|
928
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::Operation::Representation
|
|
929
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::Operation
|
|
930
|
+
command.params['project'] = project unless project.nil?
|
|
931
|
+
command.query['fields'] = fields unless fields.nil?
|
|
932
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
933
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
934
|
+
execute_or_queue_command(command, &block)
|
|
935
|
+
end
|
|
936
|
+
|
|
937
|
+
# Retrieves a list of users contained within the specified project.
|
|
938
|
+
# @param [String] project
|
|
939
|
+
# Project ID for this request.
|
|
940
|
+
# @param [String] filter
|
|
941
|
+
# Sets a filter expression for filtering listed resources, in the form filter=`
|
|
942
|
+
# expression`. Your `expression` must be in the format: field_name
|
|
943
|
+
# comparison_string literal_string.
|
|
944
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
|
945
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
|
946
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
|
947
|
+
# to filter to. The literal value must be valid for the type of field you are
|
|
948
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
|
949
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
|
950
|
+
# must match the entire field.
|
|
951
|
+
# For example, to filter for instances that do not have a name of example-
|
|
952
|
+
# instance, you would use filter=name ne example-instance.
|
|
953
|
+
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
|
954
|
+
# also filter on nested fields. For example, you could filter on instances that
|
|
955
|
+
# have set the scheduling.automaticRestart field to true. In particular, use
|
|
956
|
+
# filtering on nested fields to take advantage of instance labels to organize
|
|
957
|
+
# and filter results based on label values.
|
|
958
|
+
# The Beta API also supports filtering on multiple expressions by providing each
|
|
959
|
+
# separate expression within parentheses. For example, (scheduling.
|
|
960
|
+
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
|
961
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
|
962
|
+
# to pass the filters.
|
|
963
|
+
# @param [Fixnum] max_results
|
|
964
|
+
# The maximum number of results per page that should be returned. If the number
|
|
965
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
|
966
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
|
967
|
+
# list requests.
|
|
968
|
+
# @param [String] order_by
|
|
969
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
970
|
+
# alphanumerical order based on the resource name.
|
|
971
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
972
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
973
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
974
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
975
|
+
# returned first.
|
|
976
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
977
|
+
# @param [String] page_token
|
|
978
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
979
|
+
# a previous list request to get the next page of results.
|
|
980
|
+
# @param [String] fields
|
|
981
|
+
# Selector specifying which fields to include in a partial response.
|
|
982
|
+
# @param [String] quota_user
|
|
983
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
984
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
985
|
+
# Overrides userIp if both are provided.
|
|
986
|
+
# @param [String] user_ip
|
|
987
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
988
|
+
# enforce per-user limits.
|
|
989
|
+
# @param [Google::Apis::RequestOptions] options
|
|
990
|
+
# Request-specific options
|
|
991
|
+
#
|
|
992
|
+
# @yield [result, err] Result & error if block supplied
|
|
993
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::UserList] parsed result object
|
|
994
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
995
|
+
#
|
|
996
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::UserList]
|
|
997
|
+
#
|
|
998
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
999
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1000
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1001
|
+
def list_users(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1002
|
+
command = make_simple_command(:get, '{project}/global/users', options)
|
|
1003
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::UserList::Representation
|
|
1004
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::UserList
|
|
1005
|
+
command.params['project'] = project unless project.nil?
|
|
1006
|
+
command.query['filter'] = filter unless filter.nil?
|
|
1007
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1008
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1009
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1010
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1011
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1012
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1013
|
+
execute_or_queue_command(command, &block)
|
|
1014
|
+
end
|
|
1015
|
+
|
|
1016
|
+
# Removes the specified public key from the user.
|
|
1017
|
+
# @param [String] project
|
|
1018
|
+
# Project ID for this request.
|
|
1019
|
+
# @param [String] user
|
|
1020
|
+
# Name of the user for this request.
|
|
1021
|
+
# @param [String] fingerprint
|
|
1022
|
+
# The fingerprint of the public key to delete. Public keys are identified by
|
|
1023
|
+
# their fingerprint, which is defined by RFC4716 to be the MD5 digest of the
|
|
1024
|
+
# public key.
|
|
1025
|
+
# @param [String] fields
|
|
1026
|
+
# Selector specifying which fields to include in a partial response.
|
|
1027
|
+
# @param [String] quota_user
|
|
1028
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1029
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1030
|
+
# Overrides userIp if both are provided.
|
|
1031
|
+
# @param [String] user_ip
|
|
1032
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1033
|
+
# enforce per-user limits.
|
|
1034
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1035
|
+
# Request-specific options
|
|
1036
|
+
#
|
|
1037
|
+
# @yield [result, err] Result & error if block supplied
|
|
1038
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::Operation] parsed result object
|
|
1039
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1040
|
+
#
|
|
1041
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::Operation]
|
|
1042
|
+
#
|
|
1043
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1044
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1045
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1046
|
+
def remove_user_public_key(project, user, fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1047
|
+
command = make_simple_command(:post, '{project}/global/users/{user}/removePublicKey', options)
|
|
1048
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::Operation::Representation
|
|
1049
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::Operation
|
|
1050
|
+
command.params['project'] = project unless project.nil?
|
|
1051
|
+
command.params['user'] = user unless user.nil?
|
|
1052
|
+
command.query['fingerprint'] = fingerprint unless fingerprint.nil?
|
|
1053
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1054
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1055
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1056
|
+
execute_or_queue_command(command, &block)
|
|
1057
|
+
end
|
|
1058
|
+
|
|
1059
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
1060
|
+
# existing policy.
|
|
1061
|
+
# @param [String] project
|
|
1062
|
+
# Project ID for this request.
|
|
1063
|
+
# @param [String] resource
|
|
1064
|
+
# Name of the resource for this request.
|
|
1065
|
+
# @param [Google::Apis::ClouduseraccountsAlpha::Policy] policy_object
|
|
1066
|
+
# @param [String] fields
|
|
1067
|
+
# Selector specifying which fields to include in a partial response.
|
|
1068
|
+
# @param [String] quota_user
|
|
1069
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1070
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1071
|
+
# Overrides userIp if both are provided.
|
|
1072
|
+
# @param [String] user_ip
|
|
1073
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1074
|
+
# enforce per-user limits.
|
|
1075
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1076
|
+
# Request-specific options
|
|
1077
|
+
#
|
|
1078
|
+
# @yield [result, err] Result & error if block supplied
|
|
1079
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::Policy] parsed result object
|
|
1080
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1081
|
+
#
|
|
1082
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::Policy]
|
|
1083
|
+
#
|
|
1084
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1085
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1086
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1087
|
+
def set_user_iam_policy(project, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1088
|
+
command = make_simple_command(:post, '{project}/global/users/{resource}/setIamPolicy', options)
|
|
1089
|
+
command.request_representation = Google::Apis::ClouduseraccountsAlpha::Policy::Representation
|
|
1090
|
+
command.request_object = policy_object
|
|
1091
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::Policy::Representation
|
|
1092
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::Policy
|
|
1093
|
+
command.params['project'] = project unless project.nil?
|
|
1094
|
+
command.params['resource'] = resource unless resource.nil?
|
|
1095
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1096
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1097
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1098
|
+
execute_or_queue_command(command, &block)
|
|
1099
|
+
end
|
|
1100
|
+
|
|
1101
|
+
# Returns permissions that a caller has on the specified resource.
|
|
1102
|
+
# @param [String] project
|
|
1103
|
+
# Project ID for this request.
|
|
1104
|
+
# @param [String] resource
|
|
1105
|
+
# Name of the resource for this request.
|
|
1106
|
+
# @param [Google::Apis::ClouduseraccountsAlpha::TestPermissionsRequest] test_permissions_request_object
|
|
1107
|
+
# @param [String] fields
|
|
1108
|
+
# Selector specifying which fields to include in a partial response.
|
|
1109
|
+
# @param [String] quota_user
|
|
1110
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1111
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1112
|
+
# Overrides userIp if both are provided.
|
|
1113
|
+
# @param [String] user_ip
|
|
1114
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1115
|
+
# enforce per-user limits.
|
|
1116
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1117
|
+
# Request-specific options
|
|
1118
|
+
#
|
|
1119
|
+
# @yield [result, err] Result & error if block supplied
|
|
1120
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsAlpha::TestPermissionsResponse] parsed result object
|
|
1121
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1122
|
+
#
|
|
1123
|
+
# @return [Google::Apis::ClouduseraccountsAlpha::TestPermissionsResponse]
|
|
1124
|
+
#
|
|
1125
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1126
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1127
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1128
|
+
def test_user_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1129
|
+
command = make_simple_command(:post, '{project}/global/users/{resource}/testIamPermissions', options)
|
|
1130
|
+
command.request_representation = Google::Apis::ClouduseraccountsAlpha::TestPermissionsRequest::Representation
|
|
1131
|
+
command.request_object = test_permissions_request_object
|
|
1132
|
+
command.response_representation = Google::Apis::ClouduseraccountsAlpha::TestPermissionsResponse::Representation
|
|
1133
|
+
command.response_class = Google::Apis::ClouduseraccountsAlpha::TestPermissionsResponse
|
|
1134
|
+
command.params['project'] = project unless project.nil?
|
|
1135
|
+
command.params['resource'] = resource unless resource.nil?
|
|
1136
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1137
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1138
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1139
|
+
execute_or_queue_command(command, &block)
|
|
1140
|
+
end
|
|
1141
|
+
|
|
1142
|
+
protected
|
|
1143
|
+
|
|
1144
|
+
def apply_command_defaults(command)
|
|
1145
|
+
command.query['key'] = key unless key.nil?
|
|
1146
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1147
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1148
|
+
end
|
|
1149
|
+
end
|
|
1150
|
+
end
|
|
1151
|
+
end
|
|
1152
|
+
end
|