google-api-client 0.19.8 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -4
- data/CHANGELOG.md +106 -0
- data/MIGRATING.md +3 -3
- data/README.md +6 -9
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1 -7
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -8
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +84 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +11 -10
- data/generated/google/apis/admin_directory_v1/service.rb +21 -7
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/service.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +52 -35
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +33 -20
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +44 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +17 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +66 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +10 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +37 -72
- data/generated/google/apis/androidpublisher_v2/representations.rb +5 -34
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -52
- data/generated/google/apis/appengine_v1.rb +2 -2
- data/generated/google/apis/appengine_v1/classes.rb +82 -7
- data/generated/google/apis/appengine_v1/representations.rb +32 -0
- data/generated/google/apis/appengine_v1/service.rb +2 -2
- data/generated/google/apis/appengine_v1alpha.rb +2 -2
- data/generated/google/apis/appengine_v1alpha/classes.rb +35 -0
- data/generated/google/apis/appengine_v1alpha/representations.rb +16 -0
- data/generated/google/apis/appengine_v1alpha/service.rb +2 -2
- data/generated/google/apis/appengine_v1beta.rb +2 -2
- data/generated/google/apis/appengine_v1beta/classes.rb +51 -7
- data/generated/google/apis/appengine_v1beta/representations.rb +17 -0
- data/generated/google/apis/appengine_v1beta/service.rb +2 -2
- data/generated/google/apis/appengine_v1beta4.rb +2 -2
- data/generated/google/apis/appengine_v1beta4/classes.rb +50 -6
- data/generated/google/apis/appengine_v1beta4/representations.rb +17 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +2 -2
- data/generated/google/apis/appengine_v1beta5.rb +2 -2
- data/generated/google/apis/appengine_v1beta5/classes.rb +50 -6
- data/generated/google/apis/appengine_v1beta5/representations.rb +17 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +2 -2
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +19 -11
- data/generated/google/apis/bigquery_v2/representations.rb +4 -3
- data/generated/google/apis/bigquery_v2/service.rb +9 -1
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +9 -6
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +1 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +3 -1
- data/generated/google/apis/{firebaseremoteconfig_v1.rb → chat_v1.rb} +8 -9
- data/generated/google/apis/chat_v1/classes.rb +890 -0
- data/generated/google/apis/chat_v1/representations.rb +445 -0
- data/generated/google/apis/chat_v1/service.rb +344 -0
- data/generated/google/apis/cloudbilling_v1.rb +2 -2
- data/generated/google/apis/cloudbilling_v1/classes.rb +341 -5
- data/generated/google/apis/cloudbilling_v1/representations.rb +103 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +217 -10
- data/generated/google/apis/cloudbuild_v1.rb +2 -2
- data/generated/google/apis/cloudbuild_v1/classes.rb +180 -84
- data/generated/google/apis/cloudbuild_v1/representations.rb +35 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +25 -25
- data/generated/google/apis/cloudiot_v1.rb +2 -2
- data/generated/google/apis/cloudiot_v1/classes.rb +13 -142
- data/generated/google/apis/cloudiot_v1/representations.rb +0 -32
- data/generated/google/apis/cloudiot_v1/service.rb +2 -2
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +7 -1
- data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
- data/generated/google/apis/cloudkms_v1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +4 -5
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +6 -6
- data/generated/google/apis/{clouduseraccounts_beta.rb → cloudresourcemanager_v2.rb} +10 -16
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +821 -0
- data/generated/google/apis/cloudresourcemanager_v2/representations.rb +304 -0
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +534 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +7 -0
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +2 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +216 -120
- data/generated/google/apis/compute_alpha/representations.rb +25 -1
- data/generated/google/apis/compute_alpha/service.rb +1354 -1621
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +548 -85
- data/generated/google/apis/compute_beta/representations.rb +159 -0
- data/generated/google/apis/compute_beta/service.rb +1971 -1460
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +206 -70
- data/generated/google/apis/compute_v1/representations.rb +32 -0
- data/generated/google/apis/compute_v1/service.rb +1184 -1278
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +742 -9
- data/generated/google/apis/container_v1/representations.rb +90 -0
- data/generated/google/apis/container_v1/service.rb +1380 -100
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +191 -138
- data/generated/google/apis/container_v1beta1/representations.rb +2 -0
- data/generated/google/apis/container_v1beta1/service.rb +236 -231
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2690 -1540
- data/generated/google/apis/content_v2/representations.rb +491 -0
- data/generated/google/apis/content_v2/service.rb +684 -0
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +2 -1
- data/generated/google/apis/dataflow_v1b3.rb +2 -2
- data/generated/google/apis/dataflow_v1b3/classes.rb +95 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +36 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +1 -1
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +56 -45
- data/generated/google/apis/dataproc_v1/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1/service.rb +30 -3
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +77 -53
- data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +484 -18
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +372 -0
- data/generated/google/apis/datastore_v1/representations.rb +132 -0
- data/generated/google/apis/datastore_v1/service.rb +77 -0
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +255 -0
- data/generated/google/apis/datastore_v1beta1/representations.rb +100 -0
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +255 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +100 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +6 -1
- data/generated/google/apis/deploymentmanager_alpha/service.rb +121 -145
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/service.rb +79 -91
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -1
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +121 -145
- data/generated/google/apis/dialogflow_v2.rb +35 -0
- data/generated/google/apis/dialogflow_v2/classes.rb +3994 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +1670 -0
- data/generated/google/apis/dialogflow_v2/service.rb +1397 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +39 -11
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +559 -16
- data/generated/google/apis/dlp_v2.rb +36 -0
- data/generated/google/apis/dlp_v2/classes.rb +6431 -0
- data/generated/google/apis/dlp_v2/representations.rb +3116 -0
- data/generated/google/apis/dlp_v2/service.rb +1300 -0
- data/generated/google/apis/dlp_v2beta1.rb +4 -4
- data/generated/google/apis/dlp_v2beta1/classes.rb +38 -0
- data/generated/google/apis/dlp_v2beta1/representations.rb +17 -0
- data/generated/google/apis/dlp_v2beta1/service.rb +3 -3
- data/generated/google/apis/dlp_v2beta2.rb +4 -4
- data/generated/google/apis/dlp_v2beta2/classes.rb +229 -1
- data/generated/google/apis/dlp_v2beta2/representations.rb +91 -0
- data/generated/google/apis/dlp_v2beta2/service.rb +3 -3
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +496 -0
- data/generated/google/apis/dns_v1/representations.rb +188 -0
- data/generated/google/apis/dns_v1/service.rb +319 -6
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +0 -19
- data/generated/google/apis/dns_v1beta2/representations.rb +0 -14
- data/generated/google/apis/dns_v1beta2/service.rb +2 -4
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +6 -19
- data/generated/google/apis/dns_v2beta1/representations.rb +1 -14
- data/generated/google/apis/dns_v2beta1/service.rb +2 -4
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +4 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +2 -2
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +271 -1
- data/generated/google/apis/genomics_v1/representations.rb +140 -0
- data/generated/google/apis/genomics_v1/service.rb +9 -1
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +271 -1
- data/generated/google/apis/genomics_v1alpha2/representations.rb +140 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +9 -1
- data/generated/google/apis/genomics_v2alpha1.rb +37 -0
- data/generated/google/apis/genomics_v2alpha1/classes.rb +1306 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +535 -0
- data/generated/google/apis/genomics_v2alpha1/service.rb +261 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +2 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +1 -1
- data/generated/google/apis/language_v1.rb +2 -2
- data/generated/google/apis/language_v1/classes.rb +2 -1
- data/generated/google/apis/language_v1/service.rb +1 -1
- data/generated/google/apis/language_v1beta1.rb +2 -2
- data/generated/google/apis/language_v1beta1/service.rb +1 -1
- data/generated/google/apis/language_v1beta2.rb +2 -2
- data/generated/google/apis/language_v1beta2/classes.rb +2 -1
- data/generated/google/apis/language_v1beta2/service.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/service.rb +14 -11
- data/generated/google/apis/ml_v1.rb +2 -2
- data/generated/google/apis/ml_v1/classes.rb +180 -5
- data/generated/google/apis/ml_v1/representations.rb +49 -0
- data/generated/google/apis/ml_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +797 -2
- data/generated/google/apis/monitoring_v3/representations.rb +279 -0
- data/generated/google/apis/monitoring_v3/service.rb +612 -0
- data/generated/google/apis/oslogin_v1.rb +2 -2
- data/generated/google/apis/oslogin_v1/service.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +2 -2
- data/generated/google/apis/oslogin_v1alpha/service.rb +1 -1
- data/generated/google/apis/oslogin_v1beta.rb +2 -2
- data/generated/google/apis/oslogin_v1beta/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v4.rb +32 -0
- data/generated/google/apis/pagespeedonline_v4/classes.rb +795 -0
- data/generated/google/apis/pagespeedonline_v4/representations.rb +335 -0
- data/generated/google/apis/pagespeedonline_v4/service.rb +129 -0
- data/generated/google/apis/people_v1.rb +2 -2
- data/generated/google/apis/people_v1/classes.rb +5 -2
- data/generated/google/apis/people_v1/service.rb +9 -7
- data/generated/google/apis/poly_v1.rb +1 -1
- data/generated/google/apis/poly_v1/classes.rb +153 -0
- data/generated/google/apis/poly_v1/representations.rb +67 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +2 -2
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +3 -0
- data/generated/google/apis/pubsub_v1/service.rb +7 -0
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/service.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +21 -126
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -30
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +14 -13
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +2 -1
- data/generated/google/apis/servicecontrol_v1/service.rb +9 -6
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +44 -157
- data/generated/google/apis/servicemanagement_v1/representations.rb +2 -48
- data/generated/google/apis/servicemanagement_v1/service.rb +9 -0
- data/generated/google/apis/{serviceusage_v1.rb → serviceusage_v1beta1.rb} +6 -6
- data/generated/google/apis/{serviceusage_v1 → serviceusage_v1beta1}/classes.rb +290 -325
- data/generated/google/apis/{serviceusage_v1 → serviceusage_v1beta1}/representations.rb +105 -163
- data/generated/google/apis/{serviceusage_v1 → serviceusage_v1beta1}/service.rb +105 -163
- data/generated/google/apis/serviceuser_v1.rb +2 -2
- data/generated/google/apis/serviceuser_v1/classes.rb +44 -101
- data/generated/google/apis/serviceuser_v1/representations.rb +2 -30
- data/generated/google/apis/serviceuser_v1/service.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +643 -10
- data/generated/google/apis/sheets_v4/representations.rb +53 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +92 -9
- data/generated/google/apis/slides_v1/representations.rb +21 -0
- data/generated/google/apis/slides_v1/service.rb +3 -2
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +4 -73
- data/generated/google/apis/sourcerepo_v1/representations.rb +0 -20
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +238 -2
- data/generated/google/apis/spanner_v1/representations.rb +86 -0
- data/generated/google/apis/spanner_v1/service.rb +80 -0
- data/generated/google/apis/speech_v1.rb +2 -2
- data/generated/google/apis/speech_v1/classes.rb +14 -19
- data/generated/google/apis/speech_v1/representations.rb +0 -1
- data/generated/google/apis/speech_v1/service.rb +1 -1
- data/generated/google/apis/speech_v1beta1.rb +2 -2
- data/generated/google/apis/speech_v1beta1/service.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -6
- 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/service.rb +3 -6
- data/generated/google/apis/storagetransfer_v1.rb +2 -2
- data/generated/google/apis/storagetransfer_v1/service.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +107 -2
- data/generated/google/apis/testing_v1/representations.rb +38 -0
- data/generated/google/apis/texttospeech_v1beta1.rb +34 -0
- data/generated/google/apis/texttospeech_v1beta1/classes.rb +278 -0
- data/generated/google/apis/texttospeech_v1beta1/representations.rb +133 -0
- data/generated/google/apis/texttospeech_v1beta1/service.rb +128 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +30 -16
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +57 -0
- data/generated/google/apis/tpu_v1alpha1/representations.rb +30 -0
- data/generated/google/apis/tpu_v1alpha1/service.rb +73 -1
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +29 -3
- data/generated/google/apis/vault_v1/representations.rb +15 -0
- data/generated/google/apis/vault_v1/service.rb +8 -2
- data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +650 -0
- data/generated/google/apis/videointelligence_v1beta1/representations.rb +315 -0
- data/generated/google/apis/vision_v1.rb +2 -2
- data/generated/google/apis/vision_v1/classes.rb +290 -2
- data/generated/google/apis/vision_v1/representations.rb +128 -0
- data/generated/google/apis/vision_v1/service.rb +187 -1
- data/generated/google/apis/vision_v1p1beta1.rb +2 -2
- data/generated/google/apis/vision_v1p1beta1/classes.rb +136 -2
- data/generated/google/apis/vision_v1p1beta1/representations.rb +71 -0
- data/generated/google/apis/vision_v1p1beta1/service.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1.rb +39 -0
- data/generated/google/apis/vision_v1p2beta1/classes.rb +2172 -0
- data/generated/google/apis/vision_v1p2beta1/representations.rb +895 -0
- data/generated/google/apis/vision_v1p2beta1/service.rb +126 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +12 -0
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/version.rb +3 -3
- data/samples/web/Gemfile +3 -0
- metadata +38 -26
- data/generated/google/apis/clouduseraccounts_alpha.rb +0 -44
- data/generated/google/apis/clouduseraccounts_alpha/classes.rb +0 -1188
- data/generated/google/apis/clouduseraccounts_alpha/representations.rb +0 -494
- data/generated/google/apis/clouduseraccounts_alpha/service.rb +0 -1152
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +0 -845
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +0 -352
- data/generated/google/apis/clouduseraccounts_beta/service.rb +0 -908
- data/generated/google/apis/clouduseraccounts_vm_alpha.rb +0 -44
- data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +0 -1188
- data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +0 -494
- data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +0 -1152
- data/generated/google/apis/clouduseraccounts_vm_beta.rb +0 -44
- data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +0 -845
- data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +0 -352
- data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +0 -908
- data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +0 -200
- data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +0 -89
- data/generated/google/apis/firebaseremoteconfig_v1/service.rb +0 -153
@@ -1,352 +0,0 @@
|
|
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 ClouduseraccountsBeta
|
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::ClouduseraccountsBeta::Group, decorator: Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::LinuxGroupView, decorator: Google::Apis::ClouduseraccountsBeta::LinuxGroupView::Representation
|
190
|
-
|
191
|
-
property :kind, as: 'kind'
|
192
|
-
collection :user_views, as: 'userViews', class: Google::Apis::ClouduseraccountsBeta::LinuxUserView, decorator: Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::AuthorizedKeysView, decorator: Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::LinuxAccountViews, decorator: Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation::Error, decorator: Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation::Warning, decorator: Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation::Error::Error, decorator: Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation::Warning::Datum, decorator: Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation, decorator: Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::PublicKey, decorator: Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::User, decorator: Google::Apis::ClouduseraccountsBeta::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
|
@@ -1,908 +0,0 @@
|
|
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 ClouduseraccountsBeta
|
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_beta'
|
30
|
-
#
|
31
|
-
# Clouduseraccounts = Google::Apis::ClouduseraccountsBeta # 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/beta/projects/')
|
54
|
-
@batch_path = 'batch/clouduseraccounts/beta'
|
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::ClouduseraccountsBeta::Operation] parsed result object
|
112
|
-
# @yieldparam err [StandardError] error object if request failed
|
113
|
-
#
|
114
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation::Representation
|
122
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::OperationList] parsed result object
|
189
|
-
# @yieldparam err [StandardError] error object if request failed
|
190
|
-
#
|
191
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::OperationList::Representation
|
199
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation] parsed result object
|
231
|
-
# @yieldparam err [StandardError] error object if request failed
|
232
|
-
#
|
233
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::GroupsAddMemberRequest::Representation
|
241
|
-
command.request_object = groups_add_member_request_object
|
242
|
-
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
243
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation] parsed result object
|
271
|
-
# @yieldparam err [StandardError] error object if request failed
|
272
|
-
#
|
273
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation::Representation
|
281
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Group] parsed result object
|
309
|
-
# @yieldparam err [StandardError] error object if request failed
|
310
|
-
#
|
311
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Group::Representation
|
319
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation] parsed result object
|
347
|
-
# @yieldparam err [StandardError] error object if request failed
|
348
|
-
#
|
349
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Group::Representation
|
357
|
-
command.request_object = group_object
|
358
|
-
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
359
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::GroupList] parsed result object
|
424
|
-
# @yieldparam err [StandardError] error object if request failed
|
425
|
-
#
|
426
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::GroupList::Representation
|
434
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation] parsed result object
|
466
|
-
# @yieldparam err [StandardError] error object if request failed
|
467
|
-
#
|
468
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::GroupsRemoveMemberRequest::Representation
|
476
|
-
command.request_object = groups_remove_member_request_object
|
477
|
-
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
478
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::LinuxGetAuthorizedKeysViewResponse] parsed result object
|
512
|
-
# @yieldparam err [StandardError] error object if request failed
|
513
|
-
#
|
514
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::LinuxGetAuthorizedKeysViewResponse::Representation
|
522
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::LinuxGetLinuxAccountViewsResponse] parsed result object
|
595
|
-
# @yieldparam err [StandardError] error object if request failed
|
596
|
-
#
|
597
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::LinuxGetLinuxAccountViewsResponse::Representation
|
605
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation] parsed result object
|
640
|
-
# @yieldparam err [StandardError] error object if request failed
|
641
|
-
#
|
642
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::PublicKey::Representation
|
650
|
-
command.request_object = public_key_object
|
651
|
-
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
652
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation] parsed result object
|
680
|
-
# @yieldparam err [StandardError] error object if request failed
|
681
|
-
#
|
682
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation::Representation
|
690
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::User] parsed result object
|
718
|
-
# @yieldparam err [StandardError] error object if request failed
|
719
|
-
#
|
720
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::User::Representation
|
728
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation] parsed result object
|
756
|
-
# @yieldparam err [StandardError] error object if request failed
|
757
|
-
#
|
758
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::User::Representation
|
766
|
-
command.request_object = user_object
|
767
|
-
command.response_representation = Google::Apis::ClouduseraccountsBeta::Operation::Representation
|
768
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::UserList] parsed result object
|
833
|
-
# @yieldparam err [StandardError] error object if request failed
|
834
|
-
#
|
835
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::UserList::Representation
|
843
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation] parsed result object
|
878
|
-
# @yieldparam err [StandardError] error object if request failed
|
879
|
-
#
|
880
|
-
# @return [Google::Apis::ClouduseraccountsBeta::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::ClouduseraccountsBeta::Operation::Representation
|
888
|
-
command.response_class = Google::Apis::ClouduseraccountsBeta::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
|