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
@@ -22,6 +22,18 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module MonitoringV3
|
24
24
|
|
25
|
+
class Aggregation
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class AlertPolicy
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
25
37
|
class BasicAuthentication
|
26
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
39
|
|
@@ -58,6 +70,12 @@ module Google
|
|
58
70
|
include Google::Apis::Core::JsonObjectSupport
|
59
71
|
end
|
60
72
|
|
73
|
+
class Condition
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
61
79
|
class ContentMatcher
|
62
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
81
|
|
@@ -88,6 +106,12 @@ module Google
|
|
88
106
|
include Google::Apis::Core::JsonObjectSupport
|
89
107
|
end
|
90
108
|
|
109
|
+
class Documentation
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
91
115
|
class Empty
|
92
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
117
|
|
@@ -112,6 +136,18 @@ module Google
|
|
112
136
|
include Google::Apis::Core::JsonObjectSupport
|
113
137
|
end
|
114
138
|
|
139
|
+
class GetNotificationChannelVerificationCodeRequest
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class GetNotificationChannelVerificationCodeResponse
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
115
151
|
class Group
|
116
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
153
|
|
@@ -142,6 +178,12 @@ module Google
|
|
142
178
|
include Google::Apis::Core::JsonObjectSupport
|
143
179
|
end
|
144
180
|
|
181
|
+
class ListAlertPoliciesResponse
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
145
187
|
class ListGroupMembersResponse
|
146
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
189
|
|
@@ -166,6 +208,18 @@ module Google
|
|
166
208
|
include Google::Apis::Core::JsonObjectSupport
|
167
209
|
end
|
168
210
|
|
211
|
+
class ListNotificationChannelDescriptorsResponse
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
217
|
+
class ListNotificationChannelsResponse
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
169
223
|
class ListTimeSeriesResponse
|
170
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
225
|
|
@@ -190,12 +244,24 @@ module Google
|
|
190
244
|
include Google::Apis::Core::JsonObjectSupport
|
191
245
|
end
|
192
246
|
|
247
|
+
class MetricAbsence
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
193
253
|
class MetricDescriptor
|
194
254
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
255
|
|
196
256
|
include Google::Apis::Core::JsonObjectSupport
|
197
257
|
end
|
198
258
|
|
259
|
+
class MetricThreshold
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
199
265
|
class MonitoredResource
|
200
266
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
267
|
|
@@ -214,6 +280,24 @@ module Google
|
|
214
280
|
include Google::Apis::Core::JsonObjectSupport
|
215
281
|
end
|
216
282
|
|
283
|
+
class MutationRecord
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
289
|
+
class NotificationChannel
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
|
+
|
292
|
+
include Google::Apis::Core::JsonObjectSupport
|
293
|
+
end
|
294
|
+
|
295
|
+
class NotificationChannelDescriptor
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
217
301
|
class Option
|
218
302
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
303
|
|
@@ -238,6 +322,12 @@ module Google
|
|
238
322
|
include Google::Apis::Core::JsonObjectSupport
|
239
323
|
end
|
240
324
|
|
325
|
+
class SendNotificationChannelVerificationCodeRequest
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
|
+
|
328
|
+
include Google::Apis::Core::JsonObjectSupport
|
329
|
+
end
|
330
|
+
|
241
331
|
class SourceContext
|
242
332
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
333
|
|
@@ -268,6 +358,12 @@ module Google
|
|
268
358
|
include Google::Apis::Core::JsonObjectSupport
|
269
359
|
end
|
270
360
|
|
361
|
+
class Trigger
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
271
367
|
class Type
|
272
368
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
369
|
|
@@ -292,6 +388,42 @@ module Google
|
|
292
388
|
include Google::Apis::Core::JsonObjectSupport
|
293
389
|
end
|
294
390
|
|
391
|
+
class VerifyNotificationChannelRequest
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
+
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
395
|
+
end
|
396
|
+
|
397
|
+
class Aggregation
|
398
|
+
# @private
|
399
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
400
|
+
property :alignment_period, as: 'alignmentPeriod'
|
401
|
+
property :cross_series_reducer, as: 'crossSeriesReducer'
|
402
|
+
collection :group_by_fields, as: 'groupByFields'
|
403
|
+
property :per_series_aligner, as: 'perSeriesAligner'
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
407
|
+
class AlertPolicy
|
408
|
+
# @private
|
409
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
410
|
+
property :combiner, as: 'combiner'
|
411
|
+
collection :conditions, as: 'conditions', class: Google::Apis::MonitoringV3::Condition, decorator: Google::Apis::MonitoringV3::Condition::Representation
|
412
|
+
|
413
|
+
property :creation_record, as: 'creationRecord', class: Google::Apis::MonitoringV3::MutationRecord, decorator: Google::Apis::MonitoringV3::MutationRecord::Representation
|
414
|
+
|
415
|
+
property :display_name, as: 'displayName'
|
416
|
+
property :documentation, as: 'documentation', class: Google::Apis::MonitoringV3::Documentation, decorator: Google::Apis::MonitoringV3::Documentation::Representation
|
417
|
+
|
418
|
+
property :enabled, as: 'enabled'
|
419
|
+
property :mutation_record, as: 'mutationRecord', class: Google::Apis::MonitoringV3::MutationRecord, decorator: Google::Apis::MonitoringV3::MutationRecord::Representation
|
420
|
+
|
421
|
+
property :name, as: 'name'
|
422
|
+
collection :notification_channels, as: 'notificationChannels'
|
423
|
+
hash :user_labels, as: 'userLabels'
|
424
|
+
end
|
425
|
+
end
|
426
|
+
|
295
427
|
class BasicAuthentication
|
296
428
|
# @private
|
297
429
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -358,6 +490,18 @@ module Google
|
|
358
490
|
end
|
359
491
|
end
|
360
492
|
|
493
|
+
class Condition
|
494
|
+
# @private
|
495
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
496
|
+
property :condition_absent, as: 'conditionAbsent', class: Google::Apis::MonitoringV3::MetricAbsence, decorator: Google::Apis::MonitoringV3::MetricAbsence::Representation
|
497
|
+
|
498
|
+
property :condition_threshold, as: 'conditionThreshold', class: Google::Apis::MonitoringV3::MetricThreshold, decorator: Google::Apis::MonitoringV3::MetricThreshold::Representation
|
499
|
+
|
500
|
+
property :display_name, as: 'displayName'
|
501
|
+
property :name, as: 'name'
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
361
505
|
class ContentMatcher
|
362
506
|
# @private
|
363
507
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -406,6 +550,14 @@ module Google
|
|
406
550
|
end
|
407
551
|
end
|
408
552
|
|
553
|
+
class Documentation
|
554
|
+
# @private
|
555
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
556
|
+
property :content, as: 'content'
|
557
|
+
property :mime_type, as: 'mimeType'
|
558
|
+
end
|
559
|
+
end
|
560
|
+
|
409
561
|
class Empty
|
410
562
|
# @private
|
411
563
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -445,6 +597,21 @@ module Google
|
|
445
597
|
end
|
446
598
|
end
|
447
599
|
|
600
|
+
class GetNotificationChannelVerificationCodeRequest
|
601
|
+
# @private
|
602
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
603
|
+
property :expire_time, as: 'expireTime'
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
607
|
+
class GetNotificationChannelVerificationCodeResponse
|
608
|
+
# @private
|
609
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
610
|
+
property :code, as: 'code'
|
611
|
+
property :expire_time, as: 'expireTime'
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
448
615
|
class Group
|
449
616
|
# @private
|
450
617
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -498,6 +665,15 @@ module Google
|
|
498
665
|
end
|
499
666
|
end
|
500
667
|
|
668
|
+
class ListAlertPoliciesResponse
|
669
|
+
# @private
|
670
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
671
|
+
collection :alert_policies, as: 'alertPolicies', class: Google::Apis::MonitoringV3::AlertPolicy, decorator: Google::Apis::MonitoringV3::AlertPolicy::Representation
|
672
|
+
|
673
|
+
property :next_page_token, as: 'nextPageToken'
|
674
|
+
end
|
675
|
+
end
|
676
|
+
|
501
677
|
class ListGroupMembersResponse
|
502
678
|
# @private
|
503
679
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -535,6 +711,24 @@ module Google
|
|
535
711
|
end
|
536
712
|
end
|
537
713
|
|
714
|
+
class ListNotificationChannelDescriptorsResponse
|
715
|
+
# @private
|
716
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
717
|
+
collection :channel_descriptors, as: 'channelDescriptors', class: Google::Apis::MonitoringV3::NotificationChannelDescriptor, decorator: Google::Apis::MonitoringV3::NotificationChannelDescriptor::Representation
|
718
|
+
|
719
|
+
property :next_page_token, as: 'nextPageToken'
|
720
|
+
end
|
721
|
+
end
|
722
|
+
|
723
|
+
class ListNotificationChannelsResponse
|
724
|
+
# @private
|
725
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
726
|
+
property :next_page_token, as: 'nextPageToken'
|
727
|
+
collection :notification_channels, as: 'notificationChannels', class: Google::Apis::MonitoringV3::NotificationChannel, decorator: Google::Apis::MonitoringV3::NotificationChannel::Representation
|
728
|
+
|
729
|
+
end
|
730
|
+
end
|
731
|
+
|
538
732
|
class ListTimeSeriesResponse
|
539
733
|
# @private
|
540
734
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -571,6 +765,18 @@ module Google
|
|
571
765
|
end
|
572
766
|
end
|
573
767
|
|
768
|
+
class MetricAbsence
|
769
|
+
# @private
|
770
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
771
|
+
collection :aggregations, as: 'aggregations', class: Google::Apis::MonitoringV3::Aggregation, decorator: Google::Apis::MonitoringV3::Aggregation::Representation
|
772
|
+
|
773
|
+
property :duration, as: 'duration'
|
774
|
+
property :filter, as: 'filter'
|
775
|
+
property :trigger, as: 'trigger', class: Google::Apis::MonitoringV3::Trigger, decorator: Google::Apis::MonitoringV3::Trigger::Representation
|
776
|
+
|
777
|
+
end
|
778
|
+
end
|
779
|
+
|
574
780
|
class MetricDescriptor
|
575
781
|
# @private
|
576
782
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -586,6 +792,23 @@ module Google
|
|
586
792
|
end
|
587
793
|
end
|
588
794
|
|
795
|
+
class MetricThreshold
|
796
|
+
# @private
|
797
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
798
|
+
collection :aggregations, as: 'aggregations', class: Google::Apis::MonitoringV3::Aggregation, decorator: Google::Apis::MonitoringV3::Aggregation::Representation
|
799
|
+
|
800
|
+
property :comparison, as: 'comparison'
|
801
|
+
collection :denominator_aggregations, as: 'denominatorAggregations', class: Google::Apis::MonitoringV3::Aggregation, decorator: Google::Apis::MonitoringV3::Aggregation::Representation
|
802
|
+
|
803
|
+
property :denominator_filter, as: 'denominatorFilter'
|
804
|
+
property :duration, as: 'duration'
|
805
|
+
property :filter, as: 'filter'
|
806
|
+
property :threshold_value, as: 'thresholdValue'
|
807
|
+
property :trigger, as: 'trigger', class: Google::Apis::MonitoringV3::Trigger, decorator: Google::Apis::MonitoringV3::Trigger::Representation
|
808
|
+
|
809
|
+
end
|
810
|
+
end
|
811
|
+
|
589
812
|
class MonitoredResource
|
590
813
|
# @private
|
591
814
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -614,6 +837,41 @@ module Google
|
|
614
837
|
end
|
615
838
|
end
|
616
839
|
|
840
|
+
class MutationRecord
|
841
|
+
# @private
|
842
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
843
|
+
property :mutate_time, as: 'mutateTime'
|
844
|
+
property :mutated_by, as: 'mutatedBy'
|
845
|
+
end
|
846
|
+
end
|
847
|
+
|
848
|
+
class NotificationChannel
|
849
|
+
# @private
|
850
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
851
|
+
property :description, as: 'description'
|
852
|
+
property :display_name, as: 'displayName'
|
853
|
+
property :enabled, as: 'enabled'
|
854
|
+
hash :labels, as: 'labels'
|
855
|
+
property :name, as: 'name'
|
856
|
+
property :type, as: 'type'
|
857
|
+
hash :user_labels, as: 'userLabels'
|
858
|
+
property :verification_status, as: 'verificationStatus'
|
859
|
+
end
|
860
|
+
end
|
861
|
+
|
862
|
+
class NotificationChannelDescriptor
|
863
|
+
# @private
|
864
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
865
|
+
property :description, as: 'description'
|
866
|
+
property :display_name, as: 'displayName'
|
867
|
+
collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation
|
868
|
+
|
869
|
+
property :name, as: 'name'
|
870
|
+
collection :supported_tiers, as: 'supportedTiers'
|
871
|
+
property :type, as: 'type'
|
872
|
+
end
|
873
|
+
end
|
874
|
+
|
617
875
|
class Option
|
618
876
|
# @private
|
619
877
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -648,6 +906,12 @@ module Google
|
|
648
906
|
end
|
649
907
|
end
|
650
908
|
|
909
|
+
class SendNotificationChannelVerificationCodeRequest
|
910
|
+
# @private
|
911
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
912
|
+
end
|
913
|
+
end
|
914
|
+
|
651
915
|
class SourceContext
|
652
916
|
# @private
|
653
917
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -695,6 +959,14 @@ module Google
|
|
695
959
|
end
|
696
960
|
end
|
697
961
|
|
962
|
+
class Trigger
|
963
|
+
# @private
|
964
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
965
|
+
property :count, as: 'count'
|
966
|
+
property :percent, as: 'percent'
|
967
|
+
end
|
968
|
+
end
|
969
|
+
|
698
970
|
class Type
|
699
971
|
# @private
|
700
972
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -754,6 +1026,13 @@ module Google
|
|
754
1026
|
property :region, as: 'region'
|
755
1027
|
end
|
756
1028
|
end
|
1029
|
+
|
1030
|
+
class VerifyNotificationChannelRequest
|
1031
|
+
# @private
|
1032
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1033
|
+
property :code, as: 'code'
|
1034
|
+
end
|
1035
|
+
end
|
757
1036
|
end
|
758
1037
|
end
|
759
1038
|
end
|
@@ -49,6 +49,219 @@ module Google
|
|
49
49
|
@batch_path = 'batch'
|
50
50
|
end
|
51
51
|
|
52
|
+
# Creates a new alerting policy.
|
53
|
+
# @param [String] name
|
54
|
+
# The project in which to create the alerting policy. The format is projects/[
|
55
|
+
# PROJECT_ID].Note that this field names the parent container in which the
|
56
|
+
# alerting policy will be written, not the name of the created policy. The
|
57
|
+
# alerting policy that is returned will have a name that contains a normalized
|
58
|
+
# representation of this name as a prefix but adds a suffix of the form /
|
59
|
+
# alertPolicies/[POLICY_ID], identifying the policy in the container.
|
60
|
+
# @param [Google::Apis::MonitoringV3::AlertPolicy] alert_policy_object
|
61
|
+
# @param [String] fields
|
62
|
+
# Selector specifying which fields to include in a partial response.
|
63
|
+
# @param [String] quota_user
|
64
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
65
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
66
|
+
# @param [Google::Apis::RequestOptions] options
|
67
|
+
# Request-specific options
|
68
|
+
#
|
69
|
+
# @yield [result, err] Result & error if block supplied
|
70
|
+
# @yieldparam result [Google::Apis::MonitoringV3::AlertPolicy] parsed result object
|
71
|
+
# @yieldparam err [StandardError] error object if request failed
|
72
|
+
#
|
73
|
+
# @return [Google::Apis::MonitoringV3::AlertPolicy]
|
74
|
+
#
|
75
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
+
def create_project_alert_policy(name, alert_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
79
|
+
command = make_simple_command(:post, 'v3/{+name}/alertPolicies', options)
|
80
|
+
command.request_representation = Google::Apis::MonitoringV3::AlertPolicy::Representation
|
81
|
+
command.request_object = alert_policy_object
|
82
|
+
command.response_representation = Google::Apis::MonitoringV3::AlertPolicy::Representation
|
83
|
+
command.response_class = Google::Apis::MonitoringV3::AlertPolicy
|
84
|
+
command.params['name'] = name unless name.nil?
|
85
|
+
command.query['fields'] = fields unless fields.nil?
|
86
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
87
|
+
execute_or_queue_command(command, &block)
|
88
|
+
end
|
89
|
+
|
90
|
+
# Deletes an alerting policy.
|
91
|
+
# @param [String] name
|
92
|
+
# The alerting policy to delete. The format is:
|
93
|
+
# projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID]
|
94
|
+
# For more information, see AlertPolicy.
|
95
|
+
# @param [String] fields
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
97
|
+
# @param [String] quota_user
|
98
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
99
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
100
|
+
# @param [Google::Apis::RequestOptions] options
|
101
|
+
# Request-specific options
|
102
|
+
#
|
103
|
+
# @yield [result, err] Result & error if block supplied
|
104
|
+
# @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
|
105
|
+
# @yieldparam err [StandardError] error object if request failed
|
106
|
+
#
|
107
|
+
# @return [Google::Apis::MonitoringV3::Empty]
|
108
|
+
#
|
109
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
110
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
111
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
112
|
+
def delete_project_alert_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
113
|
+
command = make_simple_command(:delete, 'v3/{+name}', options)
|
114
|
+
command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
|
115
|
+
command.response_class = Google::Apis::MonitoringV3::Empty
|
116
|
+
command.params['name'] = name unless name.nil?
|
117
|
+
command.query['fields'] = fields unless fields.nil?
|
118
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
119
|
+
execute_or_queue_command(command, &block)
|
120
|
+
end
|
121
|
+
|
122
|
+
# Gets a single alerting policy.
|
123
|
+
# @param [String] name
|
124
|
+
# The alerting policy to retrieve. The format is
|
125
|
+
# projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID]
|
126
|
+
# @param [String] fields
|
127
|
+
# Selector specifying which fields to include in a partial response.
|
128
|
+
# @param [String] quota_user
|
129
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
130
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
131
|
+
# @param [Google::Apis::RequestOptions] options
|
132
|
+
# Request-specific options
|
133
|
+
#
|
134
|
+
# @yield [result, err] Result & error if block supplied
|
135
|
+
# @yieldparam result [Google::Apis::MonitoringV3::AlertPolicy] parsed result object
|
136
|
+
# @yieldparam err [StandardError] error object if request failed
|
137
|
+
#
|
138
|
+
# @return [Google::Apis::MonitoringV3::AlertPolicy]
|
139
|
+
#
|
140
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
141
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
142
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
143
|
+
def get_project_alert_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
144
|
+
command = make_simple_command(:get, 'v3/{+name}', options)
|
145
|
+
command.response_representation = Google::Apis::MonitoringV3::AlertPolicy::Representation
|
146
|
+
command.response_class = Google::Apis::MonitoringV3::AlertPolicy
|
147
|
+
command.params['name'] = name unless name.nil?
|
148
|
+
command.query['fields'] = fields unless fields.nil?
|
149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
150
|
+
execute_or_queue_command(command, &block)
|
151
|
+
end
|
152
|
+
|
153
|
+
# Lists the existing alerting policies for the project.
|
154
|
+
# @param [String] name
|
155
|
+
# The project whose alert policies are to be listed. The format is
|
156
|
+
# projects/[PROJECT_ID]
|
157
|
+
# Note that this field names the parent container in which the alerting policies
|
158
|
+
# to be listed are stored. To retrieve a single alerting policy by name, use the
|
159
|
+
# GetAlertPolicy operation, instead.
|
160
|
+
# @param [String] filter
|
161
|
+
# If provided, this field specifies the criteria that must be met by alert
|
162
|
+
# policies to be included in the response.For more details, see sorting and
|
163
|
+
# filtering.
|
164
|
+
# @param [String] order_by
|
165
|
+
# A comma-separated list of fields by which to sort the result. Supports the
|
166
|
+
# same set of field references as the filter field. Entries can be prefixed with
|
167
|
+
# a minus sign to sort by the field in descending order.For more details, see
|
168
|
+
# sorting and filtering.
|
169
|
+
# @param [Fixnum] page_size
|
170
|
+
# The maximum number of results to return in a single response.
|
171
|
+
# @param [String] page_token
|
172
|
+
# If this field is not empty then it must contain the nextPageToken value
|
173
|
+
# returned by a previous call to this method. Using this field causes the method
|
174
|
+
# to return more results from the previous method call.
|
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
|
+
# @param [Google::Apis::RequestOptions] options
|
181
|
+
# Request-specific options
|
182
|
+
#
|
183
|
+
# @yield [result, err] Result & error if block supplied
|
184
|
+
# @yieldparam result [Google::Apis::MonitoringV3::ListAlertPoliciesResponse] parsed result object
|
185
|
+
# @yieldparam err [StandardError] error object if request failed
|
186
|
+
#
|
187
|
+
# @return [Google::Apis::MonitoringV3::ListAlertPoliciesResponse]
|
188
|
+
#
|
189
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
190
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
191
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
192
|
+
def list_project_alert_policies(name, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
193
|
+
command = make_simple_command(:get, 'v3/{+name}/alertPolicies', options)
|
194
|
+
command.response_representation = Google::Apis::MonitoringV3::ListAlertPoliciesResponse::Representation
|
195
|
+
command.response_class = Google::Apis::MonitoringV3::ListAlertPoliciesResponse
|
196
|
+
command.params['name'] = name unless name.nil?
|
197
|
+
command.query['filter'] = filter unless filter.nil?
|
198
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
199
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
200
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
201
|
+
command.query['fields'] = fields unless fields.nil?
|
202
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
203
|
+
execute_or_queue_command(command, &block)
|
204
|
+
end
|
205
|
+
|
206
|
+
# Updates an alerting policy. You can either replace the entire policy with a
|
207
|
+
# new one or replace only certain fields in the current alerting policy by
|
208
|
+
# specifying the fields to be updated via updateMask. Returns the updated
|
209
|
+
# alerting policy.
|
210
|
+
# @param [String] name
|
211
|
+
# Required if the policy exists. The resource name for this policy. The syntax
|
212
|
+
# is:
|
213
|
+
# projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID]
|
214
|
+
# [ALERT_POLICY_ID] is assigned by Stackdriver Monitoring when the policy is
|
215
|
+
# created. When calling the alertPolicies.create method, do not include the name
|
216
|
+
# field in the alerting policy passed as part of the request.
|
217
|
+
# @param [Google::Apis::MonitoringV3::AlertPolicy] alert_policy_object
|
218
|
+
# @param [String] update_mask
|
219
|
+
# Optional. A list of alerting policy field names. If this field is not empty,
|
220
|
+
# each listed field in the existing alerting policy is set to the value of the
|
221
|
+
# corresponding field in the supplied policy (alert_policy), or to the field's
|
222
|
+
# default value if the field is not in the supplied alerting policy. Fields not
|
223
|
+
# listed retain their previous value.Examples of valid field masks include
|
224
|
+
# display_name, documentation, documentation.content, documentation.mime_type,
|
225
|
+
# user_labels, user_label.nameofkey, enabled, conditions, combiner, etc.If this
|
226
|
+
# field is empty, then the supplied alerting policy replaces the existing policy.
|
227
|
+
# It is the same as deleting the existing policy and adding the supplied policy,
|
228
|
+
# except for the following:
|
229
|
+
# The new policy will have the same [ALERT_POLICY_ID] as the former policy. This
|
230
|
+
# gives you continuity with the former policy in your notifications and
|
231
|
+
# incidents.
|
232
|
+
# Conditions in the new policy will keep their former [CONDITION_ID] if the
|
233
|
+
# supplied condition includes the name field with that [CONDITION_ID]. If the
|
234
|
+
# supplied condition omits the name field, then a new [CONDITION_ID] is created.
|
235
|
+
# @param [String] fields
|
236
|
+
# Selector specifying which fields to include in a partial response.
|
237
|
+
# @param [String] quota_user
|
238
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
239
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
240
|
+
# @param [Google::Apis::RequestOptions] options
|
241
|
+
# Request-specific options
|
242
|
+
#
|
243
|
+
# @yield [result, err] Result & error if block supplied
|
244
|
+
# @yieldparam result [Google::Apis::MonitoringV3::AlertPolicy] parsed result object
|
245
|
+
# @yieldparam err [StandardError] error object if request failed
|
246
|
+
#
|
247
|
+
# @return [Google::Apis::MonitoringV3::AlertPolicy]
|
248
|
+
#
|
249
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
250
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
251
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
252
|
+
def patch_project_alert_policy(name, alert_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
253
|
+
command = make_simple_command(:patch, 'v3/{+name}', options)
|
254
|
+
command.request_representation = Google::Apis::MonitoringV3::AlertPolicy::Representation
|
255
|
+
command.request_object = alert_policy_object
|
256
|
+
command.response_representation = Google::Apis::MonitoringV3::AlertPolicy::Representation
|
257
|
+
command.response_class = Google::Apis::MonitoringV3::AlertPolicy
|
258
|
+
command.params['name'] = name unless name.nil?
|
259
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
260
|
+
command.query['fields'] = fields unless fields.nil?
|
261
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
262
|
+
execute_or_queue_command(command, &block)
|
263
|
+
end
|
264
|
+
|
52
265
|
# Stackdriver Monitoring Agent only: Creates a new time series.<aside class="
|
53
266
|
# caution">This method is only for use by the Stackdriver Monitoring Agent. Use
|
54
267
|
# projects.timeSeries.create instead.</aside>
|
@@ -557,6 +770,405 @@ module Google
|
|
557
770
|
execute_or_queue_command(command, &block)
|
558
771
|
end
|
559
772
|
|
773
|
+
# Gets a single channel descriptor. The descriptor indicates which fields are
|
774
|
+
# expected / permitted for a notification channel of the given type.
|
775
|
+
# @param [String] name
|
776
|
+
# The channel type for which to execute the request. The format is projects/[
|
777
|
+
# PROJECT_ID]/notificationChannelDescriptors/`channel_type`.
|
778
|
+
# @param [String] fields
|
779
|
+
# Selector specifying which fields to include in a partial response.
|
780
|
+
# @param [String] quota_user
|
781
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
782
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
783
|
+
# @param [Google::Apis::RequestOptions] options
|
784
|
+
# Request-specific options
|
785
|
+
#
|
786
|
+
# @yield [result, err] Result & error if block supplied
|
787
|
+
# @yieldparam result [Google::Apis::MonitoringV3::NotificationChannelDescriptor] parsed result object
|
788
|
+
# @yieldparam err [StandardError] error object if request failed
|
789
|
+
#
|
790
|
+
# @return [Google::Apis::MonitoringV3::NotificationChannelDescriptor]
|
791
|
+
#
|
792
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
793
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
794
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
795
|
+
def get_project_notification_channel_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
|
796
|
+
command = make_simple_command(:get, 'v3/{+name}', options)
|
797
|
+
command.response_representation = Google::Apis::MonitoringV3::NotificationChannelDescriptor::Representation
|
798
|
+
command.response_class = Google::Apis::MonitoringV3::NotificationChannelDescriptor
|
799
|
+
command.params['name'] = name unless name.nil?
|
800
|
+
command.query['fields'] = fields unless fields.nil?
|
801
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
802
|
+
execute_or_queue_command(command, &block)
|
803
|
+
end
|
804
|
+
|
805
|
+
# Lists the descriptors for supported channel types. The use of descriptors
|
806
|
+
# makes it possible for new channel types to be dynamically added.
|
807
|
+
# @param [String] name
|
808
|
+
# The REST resource name of the parent from which to retrieve the notification
|
809
|
+
# channel descriptors. The expected syntax is:
|
810
|
+
# projects/[PROJECT_ID]
|
811
|
+
# Note that this names the parent container in which to look for the descriptors;
|
812
|
+
# to retrieve a single descriptor by name, use the
|
813
|
+
# GetNotificationChannelDescriptor operation, instead.
|
814
|
+
# @param [Fixnum] page_size
|
815
|
+
# The maximum number of results to return in a single response. If not set to a
|
816
|
+
# positive number, a reasonable value will be chosen by the service.
|
817
|
+
# @param [String] page_token
|
818
|
+
# If non-empty, page_token must contain a value returned as the next_page_token
|
819
|
+
# in a previous response to request the next set of results.
|
820
|
+
# @param [String] fields
|
821
|
+
# Selector specifying which fields to include in a partial response.
|
822
|
+
# @param [String] quota_user
|
823
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
824
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
825
|
+
# @param [Google::Apis::RequestOptions] options
|
826
|
+
# Request-specific options
|
827
|
+
#
|
828
|
+
# @yield [result, err] Result & error if block supplied
|
829
|
+
# @yieldparam result [Google::Apis::MonitoringV3::ListNotificationChannelDescriptorsResponse] parsed result object
|
830
|
+
# @yieldparam err [StandardError] error object if request failed
|
831
|
+
#
|
832
|
+
# @return [Google::Apis::MonitoringV3::ListNotificationChannelDescriptorsResponse]
|
833
|
+
#
|
834
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
835
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
836
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
837
|
+
def list_project_notification_channel_descriptors(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
838
|
+
command = make_simple_command(:get, 'v3/{+name}/notificationChannelDescriptors', options)
|
839
|
+
command.response_representation = Google::Apis::MonitoringV3::ListNotificationChannelDescriptorsResponse::Representation
|
840
|
+
command.response_class = Google::Apis::MonitoringV3::ListNotificationChannelDescriptorsResponse
|
841
|
+
command.params['name'] = name unless name.nil?
|
842
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
843
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
844
|
+
command.query['fields'] = fields unless fields.nil?
|
845
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
846
|
+
execute_or_queue_command(command, &block)
|
847
|
+
end
|
848
|
+
|
849
|
+
# Creates a new notification channel, representing a single notification
|
850
|
+
# endpoint such as an email address, SMS number, or pagerduty service.
|
851
|
+
# @param [String] name
|
852
|
+
# The project on which to execute the request. The format is:
|
853
|
+
# projects/[PROJECT_ID]
|
854
|
+
# Note that this names the container into which the channel will be written.
|
855
|
+
# This does not name the newly created channel. The resulting channel's name
|
856
|
+
# will have a normalized version of this field as a prefix, but will add /
|
857
|
+
# notificationChannels/[CHANNEL_ID] to identify the channel.
|
858
|
+
# @param [Google::Apis::MonitoringV3::NotificationChannel] notification_channel_object
|
859
|
+
# @param [String] fields
|
860
|
+
# Selector specifying which fields to include in a partial response.
|
861
|
+
# @param [String] quota_user
|
862
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
863
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
864
|
+
# @param [Google::Apis::RequestOptions] options
|
865
|
+
# Request-specific options
|
866
|
+
#
|
867
|
+
# @yield [result, err] Result & error if block supplied
|
868
|
+
# @yieldparam result [Google::Apis::MonitoringV3::NotificationChannel] parsed result object
|
869
|
+
# @yieldparam err [StandardError] error object if request failed
|
870
|
+
#
|
871
|
+
# @return [Google::Apis::MonitoringV3::NotificationChannel]
|
872
|
+
#
|
873
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
874
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
875
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
876
|
+
def create_project_notification_channel(name, notification_channel_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
877
|
+
command = make_simple_command(:post, 'v3/{+name}/notificationChannels', options)
|
878
|
+
command.request_representation = Google::Apis::MonitoringV3::NotificationChannel::Representation
|
879
|
+
command.request_object = notification_channel_object
|
880
|
+
command.response_representation = Google::Apis::MonitoringV3::NotificationChannel::Representation
|
881
|
+
command.response_class = Google::Apis::MonitoringV3::NotificationChannel
|
882
|
+
command.params['name'] = name unless name.nil?
|
883
|
+
command.query['fields'] = fields unless fields.nil?
|
884
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
885
|
+
execute_or_queue_command(command, &block)
|
886
|
+
end
|
887
|
+
|
888
|
+
# Deletes a notification channel.
|
889
|
+
# @param [String] name
|
890
|
+
# The channel for which to execute the request. The format is projects/[
|
891
|
+
# PROJECT_ID]/notificationChannels/[CHANNEL_ID].
|
892
|
+
# @param [Boolean] force
|
893
|
+
# If true, the notification channel will be deleted regardless of its use in
|
894
|
+
# alert policies (the policies will be updated to remove the channel). If false,
|
895
|
+
# channels that are still referenced by an existing alerting policy will fail to
|
896
|
+
# be deleted in a delete operation.
|
897
|
+
# @param [String] fields
|
898
|
+
# Selector specifying which fields to include in a partial response.
|
899
|
+
# @param [String] quota_user
|
900
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
901
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
902
|
+
# @param [Google::Apis::RequestOptions] options
|
903
|
+
# Request-specific options
|
904
|
+
#
|
905
|
+
# @yield [result, err] Result & error if block supplied
|
906
|
+
# @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
|
907
|
+
# @yieldparam err [StandardError] error object if request failed
|
908
|
+
#
|
909
|
+
# @return [Google::Apis::MonitoringV3::Empty]
|
910
|
+
#
|
911
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
912
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
913
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
914
|
+
def delete_project_notification_channel(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
915
|
+
command = make_simple_command(:delete, 'v3/{+name}', options)
|
916
|
+
command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
|
917
|
+
command.response_class = Google::Apis::MonitoringV3::Empty
|
918
|
+
command.params['name'] = name unless name.nil?
|
919
|
+
command.query['force'] = force unless force.nil?
|
920
|
+
command.query['fields'] = fields unless fields.nil?
|
921
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
922
|
+
execute_or_queue_command(command, &block)
|
923
|
+
end
|
924
|
+
|
925
|
+
# Gets a single notification channel. The channel includes the relevant
|
926
|
+
# configuration details with which the channel was created. However, the
|
927
|
+
# response may truncate or omit passwords, API keys, or other private key matter
|
928
|
+
# and thus the response may not be 100% identical to the information that was
|
929
|
+
# supplied in the call to the create method.
|
930
|
+
# @param [String] name
|
931
|
+
# The channel for which to execute the request. The format is projects/[
|
932
|
+
# PROJECT_ID]/notificationChannels/[CHANNEL_ID].
|
933
|
+
# @param [String] fields
|
934
|
+
# Selector specifying which fields to include in a partial response.
|
935
|
+
# @param [String] quota_user
|
936
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
937
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
938
|
+
# @param [Google::Apis::RequestOptions] options
|
939
|
+
# Request-specific options
|
940
|
+
#
|
941
|
+
# @yield [result, err] Result & error if block supplied
|
942
|
+
# @yieldparam result [Google::Apis::MonitoringV3::NotificationChannel] parsed result object
|
943
|
+
# @yieldparam err [StandardError] error object if request failed
|
944
|
+
#
|
945
|
+
# @return [Google::Apis::MonitoringV3::NotificationChannel]
|
946
|
+
#
|
947
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
948
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
949
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
950
|
+
def get_project_notification_channel(name, fields: nil, quota_user: nil, options: nil, &block)
|
951
|
+
command = make_simple_command(:get, 'v3/{+name}', options)
|
952
|
+
command.response_representation = Google::Apis::MonitoringV3::NotificationChannel::Representation
|
953
|
+
command.response_class = Google::Apis::MonitoringV3::NotificationChannel
|
954
|
+
command.params['name'] = name unless name.nil?
|
955
|
+
command.query['fields'] = fields unless fields.nil?
|
956
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
957
|
+
execute_or_queue_command(command, &block)
|
958
|
+
end
|
959
|
+
|
960
|
+
# Requests a verification code for an already verified channel that can then be
|
961
|
+
# used in a call to VerifyNotificationChannel() on a different channel with an
|
962
|
+
# equivalent identity in the same or in a different project. This makes it
|
963
|
+
# possible to copy a channel between projects without requiring manual
|
964
|
+
# reverification of the channel. If the channel is not in the verified state,
|
965
|
+
# this method will fail (in other words, this may only be used if the
|
966
|
+
# SendNotificationChannelVerificationCode and VerifyNotificationChannel paths
|
967
|
+
# have already been used to put the given channel into the verified state).There
|
968
|
+
# is no guarantee that the verification codes returned by this method will be of
|
969
|
+
# a similar structure or form as the ones that are delivered to the channel via
|
970
|
+
# SendNotificationChannelVerificationCode; while VerifyNotificationChannel()
|
971
|
+
# will recognize both the codes delivered via
|
972
|
+
# SendNotificationChannelVerificationCode() and returned from
|
973
|
+
# GetNotificationChannelVerificationCode(), it is typically the case that the
|
974
|
+
# verification codes delivered via SendNotificationChannelVerificationCode()
|
975
|
+
# will be shorter and also have a shorter expiration (e.g. codes such as "G-
|
976
|
+
# 123456") whereas GetVerificationCode() will typically return a much longer,
|
977
|
+
# websafe base 64 encoded string that has a longer expiration time.
|
978
|
+
# @param [String] name
|
979
|
+
# The notification channel for which a verification code is to be generated and
|
980
|
+
# retrieved. This must name a channel that is already verified; if the specified
|
981
|
+
# channel is not verified, the request will fail.
|
982
|
+
# @param [Google::Apis::MonitoringV3::GetNotificationChannelVerificationCodeRequest] get_notification_channel_verification_code_request_object
|
983
|
+
# @param [String] fields
|
984
|
+
# Selector specifying which fields to include in a partial response.
|
985
|
+
# @param [String] quota_user
|
986
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
987
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
988
|
+
# @param [Google::Apis::RequestOptions] options
|
989
|
+
# Request-specific options
|
990
|
+
#
|
991
|
+
# @yield [result, err] Result & error if block supplied
|
992
|
+
# @yieldparam result [Google::Apis::MonitoringV3::GetNotificationChannelVerificationCodeResponse] parsed result object
|
993
|
+
# @yieldparam err [StandardError] error object if request failed
|
994
|
+
#
|
995
|
+
# @return [Google::Apis::MonitoringV3::GetNotificationChannelVerificationCodeResponse]
|
996
|
+
#
|
997
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
998
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
999
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1000
|
+
def get_project_notification_channel_verification_code(name, get_notification_channel_verification_code_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1001
|
+
command = make_simple_command(:post, 'v3/{+name}:getVerificationCode', options)
|
1002
|
+
command.request_representation = Google::Apis::MonitoringV3::GetNotificationChannelVerificationCodeRequest::Representation
|
1003
|
+
command.request_object = get_notification_channel_verification_code_request_object
|
1004
|
+
command.response_representation = Google::Apis::MonitoringV3::GetNotificationChannelVerificationCodeResponse::Representation
|
1005
|
+
command.response_class = Google::Apis::MonitoringV3::GetNotificationChannelVerificationCodeResponse
|
1006
|
+
command.params['name'] = name unless name.nil?
|
1007
|
+
command.query['fields'] = fields unless fields.nil?
|
1008
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1009
|
+
execute_or_queue_command(command, &block)
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
# Lists the notification channels that have been created for the project.
|
1013
|
+
# @param [String] name
|
1014
|
+
# The project on which to execute the request. The format is projects/[
|
1015
|
+
# PROJECT_ID]. That is, this names the container in which to look for the
|
1016
|
+
# notification channels; it does not name a specific channel. To query a
|
1017
|
+
# specific channel by REST resource name, use the GetNotificationChannel
|
1018
|
+
# operation.
|
1019
|
+
# @param [String] filter
|
1020
|
+
# If provided, this field specifies the criteria that must be met by
|
1021
|
+
# notification channels to be included in the response.For more details, see
|
1022
|
+
# sorting and filtering.
|
1023
|
+
# @param [String] order_by
|
1024
|
+
# A comma-separated list of fields by which to sort the result. Supports the
|
1025
|
+
# same set of fields as in filter. Entries can be prefixed with a minus sign to
|
1026
|
+
# sort in descending rather than ascending order.For more details, see sorting
|
1027
|
+
# and filtering.
|
1028
|
+
# @param [Fixnum] page_size
|
1029
|
+
# The maximum number of results to return in a single response. If not set to a
|
1030
|
+
# positive number, a reasonable value will be chosen by the service.
|
1031
|
+
# @param [String] page_token
|
1032
|
+
# If non-empty, page_token must contain a value returned as the next_page_token
|
1033
|
+
# in a previous response to request the next set of results.
|
1034
|
+
# @param [String] fields
|
1035
|
+
# Selector specifying which fields to include in a partial response.
|
1036
|
+
# @param [String] quota_user
|
1037
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1038
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1039
|
+
# @param [Google::Apis::RequestOptions] options
|
1040
|
+
# Request-specific options
|
1041
|
+
#
|
1042
|
+
# @yield [result, err] Result & error if block supplied
|
1043
|
+
# @yieldparam result [Google::Apis::MonitoringV3::ListNotificationChannelsResponse] parsed result object
|
1044
|
+
# @yieldparam err [StandardError] error object if request failed
|
1045
|
+
#
|
1046
|
+
# @return [Google::Apis::MonitoringV3::ListNotificationChannelsResponse]
|
1047
|
+
#
|
1048
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1049
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1050
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1051
|
+
def list_project_notification_channels(name, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1052
|
+
command = make_simple_command(:get, 'v3/{+name}/notificationChannels', options)
|
1053
|
+
command.response_representation = Google::Apis::MonitoringV3::ListNotificationChannelsResponse::Representation
|
1054
|
+
command.response_class = Google::Apis::MonitoringV3::ListNotificationChannelsResponse
|
1055
|
+
command.params['name'] = name unless name.nil?
|
1056
|
+
command.query['filter'] = filter unless filter.nil?
|
1057
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1058
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1059
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1060
|
+
command.query['fields'] = fields unless fields.nil?
|
1061
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1062
|
+
execute_or_queue_command(command, &block)
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
# Updates a notification channel. Fields not specified in the field mask remain
|
1066
|
+
# unchanged.
|
1067
|
+
# @param [String] name
|
1068
|
+
# The full REST resource name for this channel. The syntax is:
|
1069
|
+
# projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]
|
1070
|
+
# The [CHANNEL_ID] is automatically assigned by the server on creation.
|
1071
|
+
# @param [Google::Apis::MonitoringV3::NotificationChannel] notification_channel_object
|
1072
|
+
# @param [String] update_mask
|
1073
|
+
# The fields to update.
|
1074
|
+
# @param [String] fields
|
1075
|
+
# Selector specifying which fields to include in a partial response.
|
1076
|
+
# @param [String] quota_user
|
1077
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1078
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1079
|
+
# @param [Google::Apis::RequestOptions] options
|
1080
|
+
# Request-specific options
|
1081
|
+
#
|
1082
|
+
# @yield [result, err] Result & error if block supplied
|
1083
|
+
# @yieldparam result [Google::Apis::MonitoringV3::NotificationChannel] parsed result object
|
1084
|
+
# @yieldparam err [StandardError] error object if request failed
|
1085
|
+
#
|
1086
|
+
# @return [Google::Apis::MonitoringV3::NotificationChannel]
|
1087
|
+
#
|
1088
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1089
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1090
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1091
|
+
def patch_project_notification_channel(name, notification_channel_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1092
|
+
command = make_simple_command(:patch, 'v3/{+name}', options)
|
1093
|
+
command.request_representation = Google::Apis::MonitoringV3::NotificationChannel::Representation
|
1094
|
+
command.request_object = notification_channel_object
|
1095
|
+
command.response_representation = Google::Apis::MonitoringV3::NotificationChannel::Representation
|
1096
|
+
command.response_class = Google::Apis::MonitoringV3::NotificationChannel
|
1097
|
+
command.params['name'] = name unless name.nil?
|
1098
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1099
|
+
command.query['fields'] = fields unless fields.nil?
|
1100
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1101
|
+
execute_or_queue_command(command, &block)
|
1102
|
+
end
|
1103
|
+
|
1104
|
+
# Causes a verification code to be delivered to the channel. The code can then
|
1105
|
+
# be supplied in VerifyNotificationChannel to verify the channel.
|
1106
|
+
# @param [String] name
|
1107
|
+
# The notification channel to which to send a verification code.
|
1108
|
+
# @param [Google::Apis::MonitoringV3::SendNotificationChannelVerificationCodeRequest] send_notification_channel_verification_code_request_object
|
1109
|
+
# @param [String] fields
|
1110
|
+
# Selector specifying which fields to include in a partial response.
|
1111
|
+
# @param [String] quota_user
|
1112
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1113
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1114
|
+
# @param [Google::Apis::RequestOptions] options
|
1115
|
+
# Request-specific options
|
1116
|
+
#
|
1117
|
+
# @yield [result, err] Result & error if block supplied
|
1118
|
+
# @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
|
1119
|
+
# @yieldparam err [StandardError] error object if request failed
|
1120
|
+
#
|
1121
|
+
# @return [Google::Apis::MonitoringV3::Empty]
|
1122
|
+
#
|
1123
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1124
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1125
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1126
|
+
def send_project_notification_channel_verification_code(name, send_notification_channel_verification_code_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1127
|
+
command = make_simple_command(:post, 'v3/{+name}:sendVerificationCode', options)
|
1128
|
+
command.request_representation = Google::Apis::MonitoringV3::SendNotificationChannelVerificationCodeRequest::Representation
|
1129
|
+
command.request_object = send_notification_channel_verification_code_request_object
|
1130
|
+
command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
|
1131
|
+
command.response_class = Google::Apis::MonitoringV3::Empty
|
1132
|
+
command.params['name'] = name unless name.nil?
|
1133
|
+
command.query['fields'] = fields unless fields.nil?
|
1134
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1135
|
+
execute_or_queue_command(command, &block)
|
1136
|
+
end
|
1137
|
+
|
1138
|
+
# Verifies a NotificationChannel by proving receipt of the code delivered to the
|
1139
|
+
# channel as a result of calling SendNotificationChannelVerificationCode.
|
1140
|
+
# @param [String] name
|
1141
|
+
# The notification channel to verify.
|
1142
|
+
# @param [Google::Apis::MonitoringV3::VerifyNotificationChannelRequest] verify_notification_channel_request_object
|
1143
|
+
# @param [String] fields
|
1144
|
+
# Selector specifying which fields to include in a partial response.
|
1145
|
+
# @param [String] quota_user
|
1146
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1147
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1148
|
+
# @param [Google::Apis::RequestOptions] options
|
1149
|
+
# Request-specific options
|
1150
|
+
#
|
1151
|
+
# @yield [result, err] Result & error if block supplied
|
1152
|
+
# @yieldparam result [Google::Apis::MonitoringV3::NotificationChannel] parsed result object
|
1153
|
+
# @yieldparam err [StandardError] error object if request failed
|
1154
|
+
#
|
1155
|
+
# @return [Google::Apis::MonitoringV3::NotificationChannel]
|
1156
|
+
#
|
1157
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1158
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1159
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1160
|
+
def verify_notification_channel(name, verify_notification_channel_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1161
|
+
command = make_simple_command(:post, 'v3/{+name}:verify', options)
|
1162
|
+
command.request_representation = Google::Apis::MonitoringV3::VerifyNotificationChannelRequest::Representation
|
1163
|
+
command.request_object = verify_notification_channel_request_object
|
1164
|
+
command.response_representation = Google::Apis::MonitoringV3::NotificationChannel::Representation
|
1165
|
+
command.response_class = Google::Apis::MonitoringV3::NotificationChannel
|
1166
|
+
command.params['name'] = name unless name.nil?
|
1167
|
+
command.query['fields'] = fields unless fields.nil?
|
1168
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1169
|
+
execute_or_queue_command(command, &block)
|
1170
|
+
end
|
1171
|
+
|
560
1172
|
# Creates or adds data to one or more time series. The response is empty if all
|
561
1173
|
# time series in the request were written. If any time series could not be
|
562
1174
|
# written, a corresponding failure message is included in the error response.
|