google-api-client 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +149 -0
- data/bin/generate-api +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
- data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
- data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
- data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
- data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
- data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
- data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
- data/generated/google/apis/adexperiencereport_v1.rb +35 -0
- data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
- data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
- data/generated/google/apis/admin_directory_v1/service.rb +39 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v2_4.rb +37 -0
- data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
- data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
- data/generated/google/apis/analytics_v2_4/service.rb +345 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +15 -2
- data/generated/google/apis/analytics_v3/representations.rb +3 -0
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
- data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
- data/generated/google/apis/androidmanagement_v1.rb +35 -0
- data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
- data/generated/google/apis/androidpublisher_v1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
- data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
- data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
- data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
- data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
- data/generated/google/apis/appengine_v1/representations.rb +351 -335
- data/generated/google/apis/appengine_v1/service.rb +255 -239
- data/generated/google/apis/appengine_v1alpha.rb +41 -0
- data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
- data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
- data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
- data/generated/google/apis/appengine_v1beta.rb +41 -0
- data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
- data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
- data/generated/google/apis/appengine_v1beta4.rb +41 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
- data/generated/google/apis/appengine_v1beta5.rb +41 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +106 -18
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
- data/generated/google/apis/blogger_v2.rb +34 -0
- data/generated/google/apis/blogger_v2/classes.rb +947 -0
- data/generated/google/apis/blogger_v2/representations.rb +465 -0
- data/generated/google/apis/blogger_v2/service.rb +424 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +4 -207
- data/generated/google/apis/calendar_v3/representations.rb +0 -97
- data/generated/google/apis/calendar_v3/service.rb +8 -4
- data/generated/google/apis/classroom_v1.rb +27 -27
- data/generated/google/apis/classroom_v1/classes.rb +1037 -926
- data/generated/google/apis/classroom_v1/representations.rb +294 -244
- data/generated/google/apis/classroom_v1/service.rb +1114 -1109
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
- data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
- data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
- data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
- data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
- data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
- data/generated/google/apis/cloudfunctions_v1.rb +4 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
- data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
- data/generated/google/apis/cloudkms_v1/service.rb +320 -320
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
- data/generated/google/apis/cloudtrace_v1.rb +5 -5
- data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
- data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
- data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
- data/generated/google/apis/cloudtrace_v2.rb +43 -0
- data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
- data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
- data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
- data/generated/google/apis/compute_alpha.rb +49 -0
- data/generated/google/apis/compute_alpha/classes.rb +23796 -0
- data/generated/google/apis/compute_alpha/representations.rb +9391 -0
- data/generated/google/apis/compute_alpha/service.rb +24188 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1597 -235
- data/generated/google/apis/compute_beta/representations.rb +477 -0
- data/generated/google/apis/compute_beta/service.rb +2875 -1677
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +319 -197
- data/generated/google/apis/compute_v1/representations.rb +51 -0
- data/generated/google/apis/compute_v1/service.rb +2057 -172
- data/generated/google/apis/consumersurveys_v2.rb +40 -0
- data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
- data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
- data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1072 -936
- data/generated/google/apis/container_v1/representations.rb +266 -202
- data/generated/google/apis/container_v1/service.rb +243 -243
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
- data/generated/google/apis/container_v1beta1/representations.rb +662 -0
- data/generated/google/apis/container_v1beta1/service.rb +1875 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +72 -3
- data/generated/google/apis/content_v2/representations.rb +23 -0
- data/generated/google/apis/content_v2/service.rb +23 -18
- data/generated/google/apis/content_v2sandbox.rb +35 -0
- data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
- data/generated/google/apis/content_v2sandbox/service.rb +709 -0
- data/generated/google/apis/dataflow_v1b3.rb +5 -5
- data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
- data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
- data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
- data/generated/google/apis/dataproc_v1/representations.rb +227 -227
- data/generated/google/apis/dataproc_v1/service.rb +254 -254
- data/generated/google/apis/dataproc_v1beta2.rb +34 -0
- data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +1311 -773
- data/generated/google/apis/datastore_v1/representations.rb +351 -148
- data/generated/google/apis/datastore_v1/service.rb +206 -55
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
- data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8.rb +1 -1
- data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
- data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +36 -0
- data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
- data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
- data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
- data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
- data/generated/google/apis/firebaserules_v1/service.rb +113 -113
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/fusiontables_v1.rb +37 -0
- data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
- data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
- data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +8 -8
- data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
- data/generated/google/apis/genomics_v1/representations.rb +482 -482
- data/generated/google/apis/genomics_v1/service.rb +966 -966
- data/generated/google/apis/genomics_v1alpha2.rb +40 -0
- data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +664 -395
- data/generated/google/apis/iam_v1/representations.rb +194 -81
- data/generated/google/apis/iam_v1/service.rb +657 -92
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +8 -8
- data/generated/google/apis/language_v1.rb +4 -1
- data/generated/google/apis/language_v1/classes.rb +393 -393
- data/generated/google/apis/language_v1/representations.rb +95 -95
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +4 -1
- data/generated/google/apis/language_v1beta1/classes.rb +457 -457
- data/generated/google/apis/language_v1beta1/representations.rb +114 -114
- data/generated/google/apis/language_v1beta1/service.rb +48 -48
- data/generated/google/apis/language_v1beta2.rb +39 -0
- data/generated/google/apis/language_v1beta2/classes.rb +824 -0
- data/generated/google/apis/language_v1beta2/representations.rb +373 -0
- data/generated/google/apis/language_v1beta2/service.rb +217 -0
- data/generated/google/apis/logging_v2.rb +9 -9
- data/generated/google/apis/logging_v2/classes.rb +840 -834
- data/generated/google/apis/logging_v2/representations.rb +168 -167
- data/generated/google/apis/logging_v2/service.rb +667 -463
- data/generated/google/apis/logging_v2beta1.rb +9 -9
- data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
- data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
- data/generated/google/apis/logging_v2beta1/service.rb +253 -255
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
- data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
- data/generated/google/apis/manufacturers_v1/service.rb +8 -7
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1487 -1676
- data/generated/google/apis/ml_v1/representations.rb +229 -299
- data/generated/google/apis/ml_v1/service.rb +359 -253
- data/generated/google/apis/ml_v1beta1.rb +34 -0
- data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
- data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
- data/generated/google/apis/ml_v1beta1/service.rb +975 -0
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +834 -834
- data/generated/google/apis/monitoring_v3/representations.rb +168 -168
- data/generated/google/apis/monitoring_v3/service.rb +330 -330
- data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
- data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
- data/generated/google/apis/mybusiness_v3/service.rb +241 -241
- data/generated/google/apis/oauth2_v1.rb +43 -0
- data/generated/google/apis/oauth2_v1/classes.rb +321 -0
- data/generated/google/apis/oauth2_v1/representations.rb +135 -0
- data/generated/google/apis/oauth2_v1/service.rb +337 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +37 -0
- data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
- data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
- data/generated/google/apis/pagespeedonline_v1.rb +32 -0
- data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
- data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
- data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1512 -1512
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +596 -596
- data/generated/google/apis/people_v1.rb +15 -15
- data/generated/google/apis/people_v1/classes.rb +1384 -1383
- data/generated/google/apis/people_v1/representations.rb +311 -311
- data/generated/google/apis/people_v1/service.rb +208 -202
- data/generated/google/apis/playcustomapp_v1.rb +34 -0
- data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
- data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
- data/generated/google/apis/playmoviespartner_v1.rb +34 -0
- data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
- data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
- data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/prediction_v1_2.rb +44 -0
- data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
- data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
- data/generated/google/apis/prediction_v1_2/service.rb +287 -0
- data/generated/google/apis/prediction_v1_3.rb +44 -0
- data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
- data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
- data/generated/google/apis/prediction_v1_3/service.rb +284 -0
- data/generated/google/apis/prediction_v1_4.rb +44 -0
- data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
- data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
- data/generated/google/apis/prediction_v1_4/service.rb +284 -0
- data/generated/google/apis/prediction_v1_5.rb +44 -0
- data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
- data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
- data/generated/google/apis/prediction_v1_5/service.rb +357 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +352 -352
- data/generated/google/apis/pubsub_v1/representations.rb +77 -77
- data/generated/google/apis/pubsub_v1/service.rb +346 -346
- data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
- data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
- data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
- data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
- data/generated/google/apis/replicapool_v1beta1.rb +50 -0
- data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
- data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
- data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
- data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
- data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
- data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
- data/generated/google/apis/safebrowsing_v4.rb +32 -0
- data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
- data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +99 -157
- data/generated/google/apis/script_v1/representations.rb +17 -47
- data/generated/google/apis/script_v1/service.rb +12 -12
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
- data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
- data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
- data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
- data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
- data/generated/google/apis/serviceuser_v1.rb +5 -5
- data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
- data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
- data/generated/google/apis/serviceuser_v1/service.rb +43 -43
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
- data/generated/google/apis/sheets_v4/representations.rb +931 -930
- data/generated/google/apis/sheets_v4/service.rb +244 -244
- data/generated/google/apis/slides_v1.rb +10 -10
- data/generated/google/apis/slides_v1/classes.rb +2915 -2915
- data/generated/google/apis/slides_v1/representations.rb +698 -698
- data/generated/google/apis/slides_v1/service.rb +35 -35
- data/generated/google/apis/sourcerepo_v1.rb +3 -3
- data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
- data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
- data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
- data/generated/google/apis/spanner_v1.rb +4 -4
- data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
- data/generated/google/apis/spanner_v1/representations.rb +338 -323
- data/generated/google/apis/spanner_v1/service.rb +689 -689
- data/generated/google/apis/spectrum_v1explorer.rb +31 -0
- data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
- data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
- data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
- data/generated/google/apis/speech_v1.rb +34 -0
- data/generated/google/apis/speech_v1/classes.rb +572 -0
- data/generated/google/apis/speech_v1/representations.rb +236 -0
- data/generated/google/apis/speech_v1/service.rb +277 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
- data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
- data/generated/google/apis/speech_v1beta1/service.rb +46 -46
- data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
- data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -6
- data/generated/google/apis/storage_v1/service.rb +51 -29
- data/generated/google/apis/storage_v1beta1.rb +40 -0
- data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
- data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
- data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
- data/generated/google/apis/storage_v1beta2.rb +40 -0
- data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
- data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
- data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
- data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
- data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
- data/generated/google/apis/streetviewpublish_v1.rb +36 -0
- data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
- data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
- data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
- data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
- data/generated/google/apis/translate_v2/classes.rb +111 -111
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +94 -94
- data/generated/google/apis/vault_v1.rb +31 -0
- data/generated/google/apis/vault_v1/classes.rb +554 -0
- data/generated/google/apis/vault_v1/representations.rb +318 -0
- data/generated/google/apis/vault_v1/service.rb +677 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
- data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
- data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +4 -4
- data/generated/google/apis/vision_v1/classes.rb +1176 -1178
- data/generated/google/apis/vision_v1/representations.rb +235 -235
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
- data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
- data/lib/google/apis/version.rb +1 -1
- metadata +246 -2
@@ -0,0 +1,352 @@
|
|
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 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module ClouduseraccountsVmBeta
|
24
|
+
|
25
|
+
class AuthorizedKeysView
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class Group
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class GroupList
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class GroupsAddMemberRequest
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class GroupsRemoveMemberRequest
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class LinuxAccountViews
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class LinuxGetAuthorizedKeysViewResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class LinuxGetLinuxAccountViewsResponse
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class LinuxGroupView
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class LinuxUserView
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class Operation
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
class Error
|
89
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
90
|
+
|
91
|
+
class Error
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
include Google::Apis::Core::JsonObjectSupport
|
98
|
+
end
|
99
|
+
|
100
|
+
class Warning
|
101
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
102
|
+
|
103
|
+
class Datum
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
include Google::Apis::Core::JsonObjectSupport
|
110
|
+
end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class OperationList
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class PublicKey
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class User
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class UserList
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class AuthorizedKeysView
|
140
|
+
# @private
|
141
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
142
|
+
collection :keys, as: 'keys'
|
143
|
+
property :sudoer, as: 'sudoer'
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
class Group
|
148
|
+
# @private
|
149
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
150
|
+
property :creation_timestamp, as: 'creationTimestamp'
|
151
|
+
property :description, as: 'description'
|
152
|
+
property :id, :numeric_string => true, as: 'id'
|
153
|
+
property :kind, as: 'kind'
|
154
|
+
collection :members, as: 'members'
|
155
|
+
property :name, as: 'name'
|
156
|
+
property :self_link, as: 'selfLink'
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
class GroupList
|
161
|
+
# @private
|
162
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
163
|
+
property :id, as: 'id'
|
164
|
+
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsVmBeta::Group, decorator: Google::Apis::ClouduseraccountsVmBeta::Group::Representation
|
165
|
+
|
166
|
+
property :kind, as: 'kind'
|
167
|
+
property :next_page_token, as: 'nextPageToken'
|
168
|
+
property :self_link, as: 'selfLink'
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
class GroupsAddMemberRequest
|
173
|
+
# @private
|
174
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
175
|
+
collection :users, as: 'users'
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
class GroupsRemoveMemberRequest
|
180
|
+
# @private
|
181
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
182
|
+
collection :users, as: 'users'
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
class LinuxAccountViews
|
187
|
+
# @private
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
189
|
+
collection :group_views, as: 'groupViews', class: Google::Apis::ClouduseraccountsVmBeta::LinuxGroupView, decorator: Google::Apis::ClouduseraccountsVmBeta::LinuxGroupView::Representation
|
190
|
+
|
191
|
+
property :kind, as: 'kind'
|
192
|
+
collection :user_views, as: 'userViews', class: Google::Apis::ClouduseraccountsVmBeta::LinuxUserView, decorator: Google::Apis::ClouduseraccountsVmBeta::LinuxUserView::Representation
|
193
|
+
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
class LinuxGetAuthorizedKeysViewResponse
|
198
|
+
# @private
|
199
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
200
|
+
property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsVmBeta::AuthorizedKeysView, decorator: Google::Apis::ClouduseraccountsVmBeta::AuthorizedKeysView::Representation
|
201
|
+
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
class LinuxGetLinuxAccountViewsResponse
|
206
|
+
# @private
|
207
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
208
|
+
property :resource, as: 'resource', class: Google::Apis::ClouduseraccountsVmBeta::LinuxAccountViews, decorator: Google::Apis::ClouduseraccountsVmBeta::LinuxAccountViews::Representation
|
209
|
+
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
class LinuxGroupView
|
214
|
+
# @private
|
215
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
216
|
+
property :gid, as: 'gid'
|
217
|
+
property :group_name, as: 'groupName'
|
218
|
+
collection :members, as: 'members'
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
class LinuxUserView
|
223
|
+
# @private
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
225
|
+
property :gecos, as: 'gecos'
|
226
|
+
property :gid, as: 'gid'
|
227
|
+
property :home_directory, as: 'homeDirectory'
|
228
|
+
property :shell, as: 'shell'
|
229
|
+
property :uid, as: 'uid'
|
230
|
+
property :username, as: 'username'
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
class Operation
|
235
|
+
# @private
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
237
|
+
property :client_operation_id, as: 'clientOperationId'
|
238
|
+
property :creation_timestamp, as: 'creationTimestamp'
|
239
|
+
property :description, as: 'description'
|
240
|
+
property :end_time, as: 'endTime'
|
241
|
+
property :error, as: 'error', class: Google::Apis::ClouduseraccountsVmBeta::Operation::Error, decorator: Google::Apis::ClouduseraccountsVmBeta::Operation::Error::Representation
|
242
|
+
|
243
|
+
property :http_error_message, as: 'httpErrorMessage'
|
244
|
+
property :http_error_status_code, as: 'httpErrorStatusCode'
|
245
|
+
property :id, :numeric_string => true, as: 'id'
|
246
|
+
property :insert_time, as: 'insertTime'
|
247
|
+
property :kind, as: 'kind'
|
248
|
+
property :name, as: 'name'
|
249
|
+
property :operation_type, as: 'operationType'
|
250
|
+
property :progress, as: 'progress'
|
251
|
+
property :region, as: 'region'
|
252
|
+
property :self_link, as: 'selfLink'
|
253
|
+
property :start_time, as: 'startTime'
|
254
|
+
property :status, as: 'status'
|
255
|
+
property :status_message, as: 'statusMessage'
|
256
|
+
property :target_id, :numeric_string => true, as: 'targetId'
|
257
|
+
property :target_link, as: 'targetLink'
|
258
|
+
property :user, as: 'user'
|
259
|
+
collection :warnings, as: 'warnings', class: Google::Apis::ClouduseraccountsVmBeta::Operation::Warning, decorator: Google::Apis::ClouduseraccountsVmBeta::Operation::Warning::Representation
|
260
|
+
|
261
|
+
property :zone, as: 'zone'
|
262
|
+
end
|
263
|
+
|
264
|
+
class Error
|
265
|
+
# @private
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
267
|
+
collection :errors, as: 'errors', class: Google::Apis::ClouduseraccountsVmBeta::Operation::Error::Error, decorator: Google::Apis::ClouduseraccountsVmBeta::Operation::Error::Error::Representation
|
268
|
+
|
269
|
+
end
|
270
|
+
|
271
|
+
class Error
|
272
|
+
# @private
|
273
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
274
|
+
property :code, as: 'code'
|
275
|
+
property :location, as: 'location'
|
276
|
+
property :message, as: 'message'
|
277
|
+
end
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
class Warning
|
282
|
+
# @private
|
283
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
284
|
+
property :code, as: 'code'
|
285
|
+
collection :data, as: 'data', class: Google::Apis::ClouduseraccountsVmBeta::Operation::Warning::Datum, decorator: Google::Apis::ClouduseraccountsVmBeta::Operation::Warning::Datum::Representation
|
286
|
+
|
287
|
+
property :message, as: 'message'
|
288
|
+
end
|
289
|
+
|
290
|
+
class Datum
|
291
|
+
# @private
|
292
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
293
|
+
property :key, as: 'key'
|
294
|
+
property :value, as: 'value'
|
295
|
+
end
|
296
|
+
end
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
class OperationList
|
301
|
+
# @private
|
302
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
303
|
+
property :id, as: 'id'
|
304
|
+
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsVmBeta::Operation, decorator: Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
305
|
+
|
306
|
+
property :kind, as: 'kind'
|
307
|
+
property :next_page_token, as: 'nextPageToken'
|
308
|
+
property :self_link, as: 'selfLink'
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
312
|
+
class PublicKey
|
313
|
+
# @private
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
315
|
+
property :creation_timestamp, as: 'creationTimestamp'
|
316
|
+
property :description, as: 'description'
|
317
|
+
property :expiration_timestamp, as: 'expirationTimestamp'
|
318
|
+
property :fingerprint, as: 'fingerprint'
|
319
|
+
property :key, as: 'key'
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
class User
|
324
|
+
# @private
|
325
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
326
|
+
property :creation_timestamp, as: 'creationTimestamp'
|
327
|
+
property :description, as: 'description'
|
328
|
+
collection :groups, as: 'groups'
|
329
|
+
property :id, :numeric_string => true, as: 'id'
|
330
|
+
property :kind, as: 'kind'
|
331
|
+
property :name, as: 'name'
|
332
|
+
property :owner, as: 'owner'
|
333
|
+
collection :public_keys, as: 'publicKeys', class: Google::Apis::ClouduseraccountsVmBeta::PublicKey, decorator: Google::Apis::ClouduseraccountsVmBeta::PublicKey::Representation
|
334
|
+
|
335
|
+
property :self_link, as: 'selfLink'
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
class UserList
|
340
|
+
# @private
|
341
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
342
|
+
property :id, as: 'id'
|
343
|
+
collection :items, as: 'items', class: Google::Apis::ClouduseraccountsVmBeta::User, decorator: Google::Apis::ClouduseraccountsVmBeta::User::Representation
|
344
|
+
|
345
|
+
property :kind, as: 'kind'
|
346
|
+
property :next_page_token, as: 'nextPageToken'
|
347
|
+
property :self_link, as: 'selfLink'
|
348
|
+
end
|
349
|
+
end
|
350
|
+
end
|
351
|
+
end
|
352
|
+
end
|
@@ -0,0 +1,908 @@
|
|
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 ClouduseraccountsVmBeta
|
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_vm_beta'
|
30
|
+
#
|
31
|
+
# Clouduseraccounts = Google::Apis::ClouduseraccountsVmBeta # 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/vm_beta/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::ClouduseraccountsVmBeta::Operation] parsed result object
|
112
|
+
# @yieldparam err [StandardError] error object if request failed
|
113
|
+
#
|
114
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::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::ClouduseraccountsVmBeta::Operation::Representation
|
122
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::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::ClouduseraccountsVmBeta::OperationList] parsed result object
|
189
|
+
# @yieldparam err [StandardError] error object if request failed
|
190
|
+
#
|
191
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::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::ClouduseraccountsVmBeta::OperationList::Representation
|
199
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::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::ClouduseraccountsVmBeta::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::ClouduseraccountsVmBeta::Operation] parsed result object
|
231
|
+
# @yieldparam err [StandardError] error object if request failed
|
232
|
+
#
|
233
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::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::ClouduseraccountsVmBeta::GroupsAddMemberRequest::Representation
|
241
|
+
command.request_object = groups_add_member_request_object
|
242
|
+
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
243
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::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::ClouduseraccountsVmBeta::Operation] parsed result object
|
271
|
+
# @yieldparam err [StandardError] error object if request failed
|
272
|
+
#
|
273
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::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::ClouduseraccountsVmBeta::Operation::Representation
|
281
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::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::ClouduseraccountsVmBeta::Group] parsed result object
|
309
|
+
# @yieldparam err [StandardError] error object if request failed
|
310
|
+
#
|
311
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::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::ClouduseraccountsVmBeta::Group::Representation
|
319
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::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
|
+
# Creates a Group resource in the specified project using the data included in
|
329
|
+
# the request.
|
330
|
+
# @param [String] project
|
331
|
+
# Project ID for this request.
|
332
|
+
# @param [Google::Apis::ClouduseraccountsVmBeta::Group] group_object
|
333
|
+
# @param [String] fields
|
334
|
+
# Selector specifying which fields to include in a partial response.
|
335
|
+
# @param [String] quota_user
|
336
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
337
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
338
|
+
# Overrides userIp if both are provided.
|
339
|
+
# @param [String] user_ip
|
340
|
+
# IP address of the site where the request originates. Use this if you want to
|
341
|
+
# enforce per-user limits.
|
342
|
+
# @param [Google::Apis::RequestOptions] options
|
343
|
+
# Request-specific options
|
344
|
+
#
|
345
|
+
# @yield [result, err] Result & error if block supplied
|
346
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
347
|
+
# @yieldparam err [StandardError] error object if request failed
|
348
|
+
#
|
349
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
350
|
+
#
|
351
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
352
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
353
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
354
|
+
def insert_group(project, group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
355
|
+
command = make_simple_command(:post, '{project}/global/groups', options)
|
356
|
+
command.request_representation = Google::Apis::ClouduseraccountsVmBeta::Group::Representation
|
357
|
+
command.request_object = group_object
|
358
|
+
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
359
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
360
|
+
command.params['project'] = project unless project.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
|
+
# Retrieves the list of groups contained within the specified project.
|
368
|
+
# @param [String] project
|
369
|
+
# Project ID for this request.
|
370
|
+
# @param [String] filter
|
371
|
+
# Sets a filter expression for filtering listed resources, in the form filter=`
|
372
|
+
# expression`. Your `expression` must be in the format: field_name
|
373
|
+
# comparison_string literal_string.
|
374
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
375
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
376
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
377
|
+
# to filter to. The literal value must be valid for the type of field you are
|
378
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
379
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
380
|
+
# must match the entire field.
|
381
|
+
# For example, to filter for instances that do not have a name of example-
|
382
|
+
# instance, you would use filter=name ne example-instance.
|
383
|
+
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
384
|
+
# also filter on nested fields. For example, you could filter on instances that
|
385
|
+
# have set the scheduling.automaticRestart field to true. In particular, use
|
386
|
+
# filtering on nested fields to take advantage of instance labels to organize
|
387
|
+
# and filter results based on label values.
|
388
|
+
# The Beta API also supports filtering on multiple expressions by providing each
|
389
|
+
# separate expression within parentheses. For example, (scheduling.
|
390
|
+
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
391
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
392
|
+
# to pass the filters.
|
393
|
+
# @param [Fixnum] max_results
|
394
|
+
# The maximum number of results per page that should be returned. If the number
|
395
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
396
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
397
|
+
# list requests.
|
398
|
+
# @param [String] order_by
|
399
|
+
# Sorts list results by a certain order. By default, results are returned in
|
400
|
+
# alphanumerical order based on the resource name.
|
401
|
+
# You can also sort results in descending order based on the creation timestamp
|
402
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
403
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
404
|
+
# Use this to sort resources like operations so that the newest operation is
|
405
|
+
# returned first.
|
406
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
407
|
+
# @param [String] page_token
|
408
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
409
|
+
# a previous list request to get the next page of results.
|
410
|
+
# @param [String] fields
|
411
|
+
# Selector specifying which fields to include in a partial response.
|
412
|
+
# @param [String] quota_user
|
413
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
414
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
415
|
+
# Overrides userIp if both are provided.
|
416
|
+
# @param [String] user_ip
|
417
|
+
# IP address of the site where the request originates. Use this if you want to
|
418
|
+
# enforce per-user limits.
|
419
|
+
# @param [Google::Apis::RequestOptions] options
|
420
|
+
# Request-specific options
|
421
|
+
#
|
422
|
+
# @yield [result, err] Result & error if block supplied
|
423
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::GroupList] parsed result object
|
424
|
+
# @yieldparam err [StandardError] error object if request failed
|
425
|
+
#
|
426
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::GroupList]
|
427
|
+
#
|
428
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
429
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
430
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
431
|
+
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)
|
432
|
+
command = make_simple_command(:get, '{project}/global/groups', options)
|
433
|
+
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::GroupList::Representation
|
434
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::GroupList
|
435
|
+
command.params['project'] = project unless project.nil?
|
436
|
+
command.query['filter'] = filter unless filter.nil?
|
437
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
438
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
439
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
440
|
+
command.query['fields'] = fields unless fields.nil?
|
441
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
442
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
443
|
+
execute_or_queue_command(command, &block)
|
444
|
+
end
|
445
|
+
|
446
|
+
# Removes users from the specified group.
|
447
|
+
# @param [String] project
|
448
|
+
# Project ID for this request.
|
449
|
+
# @param [String] group_name
|
450
|
+
# Name of the group for this request.
|
451
|
+
# @param [Google::Apis::ClouduseraccountsVmBeta::GroupsRemoveMemberRequest] groups_remove_member_request_object
|
452
|
+
# @param [String] fields
|
453
|
+
# Selector specifying which fields to include in a partial response.
|
454
|
+
# @param [String] quota_user
|
455
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
456
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
457
|
+
# Overrides userIp if both are provided.
|
458
|
+
# @param [String] user_ip
|
459
|
+
# IP address of the site where the request originates. Use this if you want to
|
460
|
+
# enforce per-user limits.
|
461
|
+
# @param [Google::Apis::RequestOptions] options
|
462
|
+
# Request-specific options
|
463
|
+
#
|
464
|
+
# @yield [result, err] Result & error if block supplied
|
465
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
466
|
+
# @yieldparam err [StandardError] error object if request failed
|
467
|
+
#
|
468
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
469
|
+
#
|
470
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
471
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
472
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
473
|
+
def remove_group_member(project, group_name, groups_remove_member_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
474
|
+
command = make_simple_command(:post, '{project}/global/groups/{groupName}/removeMember', options)
|
475
|
+
command.request_representation = Google::Apis::ClouduseraccountsVmBeta::GroupsRemoveMemberRequest::Representation
|
476
|
+
command.request_object = groups_remove_member_request_object
|
477
|
+
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
478
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
479
|
+
command.params['project'] = project unless project.nil?
|
480
|
+
command.params['groupName'] = group_name unless group_name.nil?
|
481
|
+
command.query['fields'] = fields unless fields.nil?
|
482
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
483
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
484
|
+
execute_or_queue_command(command, &block)
|
485
|
+
end
|
486
|
+
|
487
|
+
# Returns a list of authorized public keys for a specific user account.
|
488
|
+
# @param [String] project
|
489
|
+
# Project ID for this request.
|
490
|
+
# @param [String] zone
|
491
|
+
# Name of the zone for this request.
|
492
|
+
# @param [String] user
|
493
|
+
# The user account for which you want to get a list of authorized public keys.
|
494
|
+
# @param [String] instance
|
495
|
+
# The fully-qualified URL of the virtual machine requesting the view.
|
496
|
+
# @param [Boolean] login
|
497
|
+
# Whether the view was requested as part of a user-initiated login.
|
498
|
+
# @param [String] fields
|
499
|
+
# Selector specifying which fields to include in a partial response.
|
500
|
+
# @param [String] quota_user
|
501
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
502
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
503
|
+
# Overrides userIp if both are provided.
|
504
|
+
# @param [String] user_ip
|
505
|
+
# IP address of the site where the request originates. Use this if you want to
|
506
|
+
# enforce per-user limits.
|
507
|
+
# @param [Google::Apis::RequestOptions] options
|
508
|
+
# Request-specific options
|
509
|
+
#
|
510
|
+
# @yield [result, err] Result & error if block supplied
|
511
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::LinuxGetAuthorizedKeysViewResponse] parsed result object
|
512
|
+
# @yieldparam err [StandardError] error object if request failed
|
513
|
+
#
|
514
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::LinuxGetAuthorizedKeysViewResponse]
|
515
|
+
#
|
516
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
517
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
518
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
519
|
+
def get_linux_authorized_keys_view(project, zone, user, instance, login: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
520
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/authorizedKeysView/{user}', options)
|
521
|
+
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::LinuxGetAuthorizedKeysViewResponse::Representation
|
522
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::LinuxGetAuthorizedKeysViewResponse
|
523
|
+
command.params['project'] = project unless project.nil?
|
524
|
+
command.params['zone'] = zone unless zone.nil?
|
525
|
+
command.params['user'] = user unless user.nil?
|
526
|
+
command.query['instance'] = instance unless instance.nil?
|
527
|
+
command.query['login'] = login unless login.nil?
|
528
|
+
command.query['fields'] = fields unless fields.nil?
|
529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
530
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
531
|
+
execute_or_queue_command(command, &block)
|
532
|
+
end
|
533
|
+
|
534
|
+
# Retrieves a list of user accounts for an instance within a specific project.
|
535
|
+
# @param [String] project
|
536
|
+
# Project ID for this request.
|
537
|
+
# @param [String] zone
|
538
|
+
# Name of the zone for this request.
|
539
|
+
# @param [String] instance
|
540
|
+
# The fully-qualified URL of the virtual machine requesting the views.
|
541
|
+
# @param [String] filter
|
542
|
+
# Sets a filter expression for filtering listed resources, in the form filter=`
|
543
|
+
# expression`. Your `expression` must be in the format: field_name
|
544
|
+
# comparison_string literal_string.
|
545
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
546
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
547
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
548
|
+
# to filter to. The literal value must be valid for the type of field you are
|
549
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
550
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
551
|
+
# must match the entire field.
|
552
|
+
# For example, to filter for instances that do not have a name of example-
|
553
|
+
# instance, you would use filter=name ne example-instance.
|
554
|
+
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
555
|
+
# also filter on nested fields. For example, you could filter on instances that
|
556
|
+
# have set the scheduling.automaticRestart field to true. In particular, use
|
557
|
+
# filtering on nested fields to take advantage of instance labels to organize
|
558
|
+
# and filter results based on label values.
|
559
|
+
# The Beta API also supports filtering on multiple expressions by providing each
|
560
|
+
# separate expression within parentheses. For example, (scheduling.
|
561
|
+
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
562
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
563
|
+
# to pass the filters.
|
564
|
+
# @param [Fixnum] max_results
|
565
|
+
# The maximum number of results per page that should be returned. If the number
|
566
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
567
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
568
|
+
# list requests.
|
569
|
+
# @param [String] order_by
|
570
|
+
# Sorts list results by a certain order. By default, results are returned in
|
571
|
+
# alphanumerical order based on the resource name.
|
572
|
+
# You can also sort results in descending order based on the creation timestamp
|
573
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
574
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
575
|
+
# Use this to sort resources like operations so that the newest operation is
|
576
|
+
# returned first.
|
577
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
578
|
+
# @param [String] page_token
|
579
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
580
|
+
# a previous list request to get the next page of results.
|
581
|
+
# @param [String] fields
|
582
|
+
# Selector specifying which fields to include in a partial response.
|
583
|
+
# @param [String] quota_user
|
584
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
585
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
586
|
+
# Overrides userIp if both are provided.
|
587
|
+
# @param [String] user_ip
|
588
|
+
# IP address of the site where the request originates. Use this if you want to
|
589
|
+
# enforce per-user limits.
|
590
|
+
# @param [Google::Apis::RequestOptions] options
|
591
|
+
# Request-specific options
|
592
|
+
#
|
593
|
+
# @yield [result, err] Result & error if block supplied
|
594
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::LinuxGetLinuxAccountViewsResponse] parsed result object
|
595
|
+
# @yieldparam err [StandardError] error object if request failed
|
596
|
+
#
|
597
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::LinuxGetLinuxAccountViewsResponse]
|
598
|
+
#
|
599
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
600
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
601
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
602
|
+
def 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)
|
603
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/linuxAccountViews', options)
|
604
|
+
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::LinuxGetLinuxAccountViewsResponse::Representation
|
605
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::LinuxGetLinuxAccountViewsResponse
|
606
|
+
command.params['project'] = project unless project.nil?
|
607
|
+
command.params['zone'] = zone unless zone.nil?
|
608
|
+
command.query['filter'] = filter unless filter.nil?
|
609
|
+
command.query['instance'] = instance unless instance.nil?
|
610
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
611
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
612
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
613
|
+
command.query['fields'] = fields unless fields.nil?
|
614
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
615
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
616
|
+
execute_or_queue_command(command, &block)
|
617
|
+
end
|
618
|
+
|
619
|
+
# Adds a public key to the specified User resource with the data included in the
|
620
|
+
# request.
|
621
|
+
# @param [String] project
|
622
|
+
# Project ID for this request.
|
623
|
+
# @param [String] user
|
624
|
+
# Name of the user for this request.
|
625
|
+
# @param [Google::Apis::ClouduseraccountsVmBeta::PublicKey] public_key_object
|
626
|
+
# @param [String] fields
|
627
|
+
# Selector specifying which fields to include in a partial response.
|
628
|
+
# @param [String] quota_user
|
629
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
630
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
631
|
+
# Overrides userIp if both are provided.
|
632
|
+
# @param [String] user_ip
|
633
|
+
# IP address of the site where the request originates. Use this if you want to
|
634
|
+
# enforce per-user limits.
|
635
|
+
# @param [Google::Apis::RequestOptions] options
|
636
|
+
# Request-specific options
|
637
|
+
#
|
638
|
+
# @yield [result, err] Result & error if block supplied
|
639
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
640
|
+
# @yieldparam err [StandardError] error object if request failed
|
641
|
+
#
|
642
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
643
|
+
#
|
644
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
645
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
646
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
647
|
+
def add_user_public_key(project, user, public_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
648
|
+
command = make_simple_command(:post, '{project}/global/users/{user}/addPublicKey', options)
|
649
|
+
command.request_representation = Google::Apis::ClouduseraccountsVmBeta::PublicKey::Representation
|
650
|
+
command.request_object = public_key_object
|
651
|
+
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
652
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
653
|
+
command.params['project'] = project unless project.nil?
|
654
|
+
command.params['user'] = user unless user.nil?
|
655
|
+
command.query['fields'] = fields unless fields.nil?
|
656
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
657
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
658
|
+
execute_or_queue_command(command, &block)
|
659
|
+
end
|
660
|
+
|
661
|
+
# Deletes the specified User resource.
|
662
|
+
# @param [String] project
|
663
|
+
# Project ID for this request.
|
664
|
+
# @param [String] user
|
665
|
+
# Name of the user resource to delete.
|
666
|
+
# @param [String] fields
|
667
|
+
# Selector specifying which fields to include in a partial response.
|
668
|
+
# @param [String] quota_user
|
669
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
670
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
671
|
+
# Overrides userIp if both are provided.
|
672
|
+
# @param [String] user_ip
|
673
|
+
# IP address of the site where the request originates. Use this if you want to
|
674
|
+
# enforce per-user limits.
|
675
|
+
# @param [Google::Apis::RequestOptions] options
|
676
|
+
# Request-specific options
|
677
|
+
#
|
678
|
+
# @yield [result, err] Result & error if block supplied
|
679
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
680
|
+
# @yieldparam err [StandardError] error object if request failed
|
681
|
+
#
|
682
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
683
|
+
#
|
684
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
685
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
686
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
687
|
+
def delete_user(project, user, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
688
|
+
command = make_simple_command(:delete, '{project}/global/users/{user}', options)
|
689
|
+
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
690
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
691
|
+
command.params['project'] = project unless project.nil?
|
692
|
+
command.params['user'] = user unless user.nil?
|
693
|
+
command.query['fields'] = fields unless fields.nil?
|
694
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
695
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
696
|
+
execute_or_queue_command(command, &block)
|
697
|
+
end
|
698
|
+
|
699
|
+
# Returns the specified User resource.
|
700
|
+
# @param [String] project
|
701
|
+
# Project ID for this request.
|
702
|
+
# @param [String] user
|
703
|
+
# Name of the user resource to return.
|
704
|
+
# @param [String] fields
|
705
|
+
# Selector specifying which fields to include in a partial response.
|
706
|
+
# @param [String] quota_user
|
707
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
708
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
709
|
+
# Overrides userIp if both are provided.
|
710
|
+
# @param [String] user_ip
|
711
|
+
# IP address of the site where the request originates. Use this if you want to
|
712
|
+
# enforce per-user limits.
|
713
|
+
# @param [Google::Apis::RequestOptions] options
|
714
|
+
# Request-specific options
|
715
|
+
#
|
716
|
+
# @yield [result, err] Result & error if block supplied
|
717
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::User] parsed result object
|
718
|
+
# @yieldparam err [StandardError] error object if request failed
|
719
|
+
#
|
720
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::User]
|
721
|
+
#
|
722
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
723
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
724
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
725
|
+
def get_user(project, user, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
726
|
+
command = make_simple_command(:get, '{project}/global/users/{user}', options)
|
727
|
+
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::User::Representation
|
728
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::User
|
729
|
+
command.params['project'] = project unless project.nil?
|
730
|
+
command.params['user'] = user unless user.nil?
|
731
|
+
command.query['fields'] = fields unless fields.nil?
|
732
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
733
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
734
|
+
execute_or_queue_command(command, &block)
|
735
|
+
end
|
736
|
+
|
737
|
+
# Creates a User resource in the specified project using the data included in
|
738
|
+
# the request.
|
739
|
+
# @param [String] project
|
740
|
+
# Project ID for this request.
|
741
|
+
# @param [Google::Apis::ClouduseraccountsVmBeta::User] user_object
|
742
|
+
# @param [String] fields
|
743
|
+
# Selector specifying which fields to include in a partial response.
|
744
|
+
# @param [String] quota_user
|
745
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
746
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
747
|
+
# Overrides userIp if both are provided.
|
748
|
+
# @param [String] user_ip
|
749
|
+
# IP address of the site where the request originates. Use this if you want to
|
750
|
+
# enforce per-user limits.
|
751
|
+
# @param [Google::Apis::RequestOptions] options
|
752
|
+
# Request-specific options
|
753
|
+
#
|
754
|
+
# @yield [result, err] Result & error if block supplied
|
755
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
756
|
+
# @yieldparam err [StandardError] error object if request failed
|
757
|
+
#
|
758
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
759
|
+
#
|
760
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
761
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
762
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
763
|
+
def insert_user(project, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
764
|
+
command = make_simple_command(:post, '{project}/global/users', options)
|
765
|
+
command.request_representation = Google::Apis::ClouduseraccountsVmBeta::User::Representation
|
766
|
+
command.request_object = user_object
|
767
|
+
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
768
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
769
|
+
command.params['project'] = project unless project.nil?
|
770
|
+
command.query['fields'] = fields unless fields.nil?
|
771
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
772
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
773
|
+
execute_or_queue_command(command, &block)
|
774
|
+
end
|
775
|
+
|
776
|
+
# Retrieves a list of users contained within the specified project.
|
777
|
+
# @param [String] project
|
778
|
+
# Project ID for this request.
|
779
|
+
# @param [String] filter
|
780
|
+
# Sets a filter expression for filtering listed resources, in the form filter=`
|
781
|
+
# expression`. Your `expression` must be in the format: field_name
|
782
|
+
# comparison_string literal_string.
|
783
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
784
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
785
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
786
|
+
# to filter to. The literal value must be valid for the type of field you are
|
787
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
788
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
789
|
+
# must match the entire field.
|
790
|
+
# For example, to filter for instances that do not have a name of example-
|
791
|
+
# instance, you would use filter=name ne example-instance.
|
792
|
+
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
|
793
|
+
# also filter on nested fields. For example, you could filter on instances that
|
794
|
+
# have set the scheduling.automaticRestart field to true. In particular, use
|
795
|
+
# filtering on nested fields to take advantage of instance labels to organize
|
796
|
+
# and filter results based on label values.
|
797
|
+
# The Beta API also supports filtering on multiple expressions by providing each
|
798
|
+
# separate expression within parentheses. For example, (scheduling.
|
799
|
+
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
|
800
|
+
# treated as AND expressions, meaning that resources must match all expressions
|
801
|
+
# to pass the filters.
|
802
|
+
# @param [Fixnum] max_results
|
803
|
+
# The maximum number of results per page that should be returned. If the number
|
804
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
805
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
806
|
+
# list requests.
|
807
|
+
# @param [String] order_by
|
808
|
+
# Sorts list results by a certain order. By default, results are returned in
|
809
|
+
# alphanumerical order based on the resource name.
|
810
|
+
# You can also sort results in descending order based on the creation timestamp
|
811
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
812
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
813
|
+
# Use this to sort resources like operations so that the newest operation is
|
814
|
+
# returned first.
|
815
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
816
|
+
# @param [String] page_token
|
817
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
818
|
+
# a previous list request to get the next page of results.
|
819
|
+
# @param [String] fields
|
820
|
+
# Selector specifying which fields to include in a partial response.
|
821
|
+
# @param [String] quota_user
|
822
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
823
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
824
|
+
# Overrides userIp if both are provided.
|
825
|
+
# @param [String] user_ip
|
826
|
+
# IP address of the site where the request originates. Use this if you want to
|
827
|
+
# enforce per-user limits.
|
828
|
+
# @param [Google::Apis::RequestOptions] options
|
829
|
+
# Request-specific options
|
830
|
+
#
|
831
|
+
# @yield [result, err] Result & error if block supplied
|
832
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::UserList] parsed result object
|
833
|
+
# @yieldparam err [StandardError] error object if request failed
|
834
|
+
#
|
835
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::UserList]
|
836
|
+
#
|
837
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
838
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
839
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
840
|
+
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)
|
841
|
+
command = make_simple_command(:get, '{project}/global/users', options)
|
842
|
+
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::UserList::Representation
|
843
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::UserList
|
844
|
+
command.params['project'] = project unless project.nil?
|
845
|
+
command.query['filter'] = filter unless filter.nil?
|
846
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
847
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
848
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
849
|
+
command.query['fields'] = fields unless fields.nil?
|
850
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
851
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
852
|
+
execute_or_queue_command(command, &block)
|
853
|
+
end
|
854
|
+
|
855
|
+
# Removes the specified public key from the user.
|
856
|
+
# @param [String] project
|
857
|
+
# Project ID for this request.
|
858
|
+
# @param [String] user
|
859
|
+
# Name of the user for this request.
|
860
|
+
# @param [String] fingerprint
|
861
|
+
# The fingerprint of the public key to delete. Public keys are identified by
|
862
|
+
# their fingerprint, which is defined by RFC4716 to be the MD5 digest of the
|
863
|
+
# public key.
|
864
|
+
# @param [String] fields
|
865
|
+
# Selector specifying which fields to include in a partial response.
|
866
|
+
# @param [String] quota_user
|
867
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
868
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
869
|
+
# Overrides userIp if both are provided.
|
870
|
+
# @param [String] user_ip
|
871
|
+
# IP address of the site where the request originates. Use this if you want to
|
872
|
+
# enforce per-user limits.
|
873
|
+
# @param [Google::Apis::RequestOptions] options
|
874
|
+
# Request-specific options
|
875
|
+
#
|
876
|
+
# @yield [result, err] Result & error if block supplied
|
877
|
+
# @yieldparam result [Google::Apis::ClouduseraccountsVmBeta::Operation] parsed result object
|
878
|
+
# @yieldparam err [StandardError] error object if request failed
|
879
|
+
#
|
880
|
+
# @return [Google::Apis::ClouduseraccountsVmBeta::Operation]
|
881
|
+
#
|
882
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
883
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
884
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
885
|
+
def remove_user_public_key(project, user, fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
886
|
+
command = make_simple_command(:post, '{project}/global/users/{user}/removePublicKey', options)
|
887
|
+
command.response_representation = Google::Apis::ClouduseraccountsVmBeta::Operation::Representation
|
888
|
+
command.response_class = Google::Apis::ClouduseraccountsVmBeta::Operation
|
889
|
+
command.params['project'] = project unless project.nil?
|
890
|
+
command.params['user'] = user unless user.nil?
|
891
|
+
command.query['fingerprint'] = fingerprint unless fingerprint.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
|
+
protected
|
899
|
+
|
900
|
+
def apply_command_defaults(command)
|
901
|
+
command.query['key'] = key unless key.nil?
|
902
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
903
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
904
|
+
end
|
905
|
+
end
|
906
|
+
end
|
907
|
+
end
|
908
|
+
end
|