google-api-client 0.19.8 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.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
|
@@ -0,0 +1,1300 @@
|
|
|
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 DlpV2
|
|
23
|
+
# Cloud Data Loss Prevention (DLP) API
|
|
24
|
+
#
|
|
25
|
+
# Provides methods for detection, risk analysis, and de-identification of
|
|
26
|
+
# privacy-sensitive fragments in text, images, and Google Cloud Platform storage
|
|
27
|
+
# repositories.
|
|
28
|
+
#
|
|
29
|
+
# @example
|
|
30
|
+
# require 'google/apis/dlp_v2'
|
|
31
|
+
#
|
|
32
|
+
# Dlp = Google::Apis::DlpV2 # Alias the module
|
|
33
|
+
# service = Dlp::DLPService.new
|
|
34
|
+
#
|
|
35
|
+
# @see https://cloud.google.com/dlp/docs/
|
|
36
|
+
class DLPService < Google::Apis::Core::BaseService
|
|
37
|
+
# @return [String]
|
|
38
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
39
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
40
|
+
attr_accessor :key
|
|
41
|
+
|
|
42
|
+
# @return [String]
|
|
43
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
44
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
45
|
+
attr_accessor :quota_user
|
|
46
|
+
|
|
47
|
+
def initialize
|
|
48
|
+
super('https://dlp.googleapis.com/', '')
|
|
49
|
+
@batch_path = 'batch'
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Returns a list of the sensitive information types that the DLP API
|
|
53
|
+
# supports. For more information, see [Listing supported predefined
|
|
54
|
+
# infoTypes](/dlp/docs/listing-infotypes).
|
|
55
|
+
# @param [String] filter
|
|
56
|
+
# Optional filter to only return infoTypes supported by certain parts of the
|
|
57
|
+
# API. Defaults to supported_by=INSPECT.
|
|
58
|
+
# @param [String] language_code
|
|
59
|
+
# Optional BCP-47 language code for localized infoType friendly
|
|
60
|
+
# names. If omitted, or if localized strings are not available,
|
|
61
|
+
# en-US strings will be returned.
|
|
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
|
+
# @param [Google::Apis::RequestOptions] options
|
|
68
|
+
# Request-specific options
|
|
69
|
+
#
|
|
70
|
+
# @yield [result, err] Result & error if block supplied
|
|
71
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse] parsed result object
|
|
72
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
73
|
+
#
|
|
74
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse]
|
|
75
|
+
#
|
|
76
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
77
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
78
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
79
|
+
def list_info_types(filter: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
80
|
+
command = make_simple_command(:get, 'v2/infoTypes', options)
|
|
81
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
|
|
82
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
|
|
83
|
+
command.query['filter'] = filter unless filter.nil?
|
|
84
|
+
command.query['languageCode'] = language_code unless language_code.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
|
+
# Creates a de-identify template for re-using frequently used configuration
|
|
91
|
+
# for Deidentifying content, images, and storage.
|
|
92
|
+
# @param [String] parent
|
|
93
|
+
# The parent resource name, for example projects/my-project-id or
|
|
94
|
+
# organizations/my-org-id.
|
|
95
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
|
|
96
|
+
# @param [String] fields
|
|
97
|
+
# Selector specifying which fields to include in a partial response.
|
|
98
|
+
# @param [String] quota_user
|
|
99
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
100
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
101
|
+
# @param [Google::Apis::RequestOptions] options
|
|
102
|
+
# Request-specific options
|
|
103
|
+
#
|
|
104
|
+
# @yield [result, err] Result & error if block supplied
|
|
105
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
|
106
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
107
|
+
#
|
|
108
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
|
109
|
+
#
|
|
110
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
111
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
112
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
113
|
+
def create_organization_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
114
|
+
command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
|
|
115
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
|
|
116
|
+
command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
|
|
117
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
118
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
119
|
+
command.params['parent'] = parent unless parent.nil?
|
|
120
|
+
command.query['fields'] = fields unless fields.nil?
|
|
121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
122
|
+
execute_or_queue_command(command, &block)
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Deletes a de-identify template.
|
|
126
|
+
# @param [String] name
|
|
127
|
+
# Resource name of the organization and deidentify template to be deleted,
|
|
128
|
+
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
129
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
|
130
|
+
# @param [String] fields
|
|
131
|
+
# Selector specifying which fields to include in a partial response.
|
|
132
|
+
# @param [String] quota_user
|
|
133
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
134
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
135
|
+
# @param [Google::Apis::RequestOptions] options
|
|
136
|
+
# Request-specific options
|
|
137
|
+
#
|
|
138
|
+
# @yield [result, err] Result & error if block supplied
|
|
139
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
140
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
141
|
+
#
|
|
142
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
143
|
+
#
|
|
144
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
145
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
146
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
147
|
+
def delete_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
148
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
149
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
150
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
151
|
+
command.params['name'] = name unless name.nil?
|
|
152
|
+
command.query['fields'] = fields unless fields.nil?
|
|
153
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
154
|
+
execute_or_queue_command(command, &block)
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Gets a de-identify template.
|
|
158
|
+
# @param [String] name
|
|
159
|
+
# Resource name of the organization and deidentify template to be read, for
|
|
160
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
161
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
|
162
|
+
# @param [String] fields
|
|
163
|
+
# Selector specifying which fields to include in a partial response.
|
|
164
|
+
# @param [String] quota_user
|
|
165
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
166
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
167
|
+
# @param [Google::Apis::RequestOptions] options
|
|
168
|
+
# Request-specific options
|
|
169
|
+
#
|
|
170
|
+
# @yield [result, err] Result & error if block supplied
|
|
171
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
|
172
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
173
|
+
#
|
|
174
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
|
175
|
+
#
|
|
176
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
177
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
178
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
179
|
+
def get_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
180
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
181
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
182
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
183
|
+
command.params['name'] = name unless name.nil?
|
|
184
|
+
command.query['fields'] = fields unless fields.nil?
|
|
185
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
186
|
+
execute_or_queue_command(command, &block)
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Lists de-identify templates.
|
|
190
|
+
# @param [String] parent
|
|
191
|
+
# The parent resource name, for example projects/my-project-id or
|
|
192
|
+
# organizations/my-org-id.
|
|
193
|
+
# @param [Fixnum] page_size
|
|
194
|
+
# Optional size of the page, can be limited by server. If zero server returns
|
|
195
|
+
# a page of max size 100.
|
|
196
|
+
# @param [String] page_token
|
|
197
|
+
# Optional page token to continue retrieval. Comes from previous call
|
|
198
|
+
# to `ListDeidentifyTemplates`.
|
|
199
|
+
# @param [String] fields
|
|
200
|
+
# Selector specifying which fields to include in a partial response.
|
|
201
|
+
# @param [String] quota_user
|
|
202
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
203
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
204
|
+
# @param [Google::Apis::RequestOptions] options
|
|
205
|
+
# Request-specific options
|
|
206
|
+
#
|
|
207
|
+
# @yield [result, err] Result & error if block supplied
|
|
208
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse] parsed result object
|
|
209
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
210
|
+
#
|
|
211
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse]
|
|
212
|
+
#
|
|
213
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
214
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
215
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
216
|
+
def list_organization_deidentify_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
217
|
+
command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', options)
|
|
218
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
|
|
219
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
|
|
220
|
+
command.params['parent'] = parent unless parent.nil?
|
|
221
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
222
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
223
|
+
command.query['fields'] = fields unless fields.nil?
|
|
224
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
225
|
+
execute_or_queue_command(command, &block)
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# Updates the de-identify template.
|
|
229
|
+
# @param [String] name
|
|
230
|
+
# Resource name of organization and deidentify template to be updated, for
|
|
231
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
232
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
|
233
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object
|
|
234
|
+
# @param [String] fields
|
|
235
|
+
# Selector specifying which fields to include in a partial response.
|
|
236
|
+
# @param [String] quota_user
|
|
237
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
238
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
239
|
+
# @param [Google::Apis::RequestOptions] options
|
|
240
|
+
# Request-specific options
|
|
241
|
+
#
|
|
242
|
+
# @yield [result, err] Result & error if block supplied
|
|
243
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
|
244
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
245
|
+
#
|
|
246
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
|
247
|
+
#
|
|
248
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
249
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
250
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
251
|
+
def patch_organization_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
252
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
253
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation
|
|
254
|
+
command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object
|
|
255
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
256
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
257
|
+
command.params['name'] = name unless name.nil?
|
|
258
|
+
command.query['fields'] = fields unless fields.nil?
|
|
259
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
260
|
+
execute_or_queue_command(command, &block)
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# Creates an inspect template for re-using frequently used configuration
|
|
264
|
+
# for inspecting content, images, and storage.
|
|
265
|
+
# @param [String] parent
|
|
266
|
+
# The parent resource name, for example projects/my-project-id or
|
|
267
|
+
# organizations/my-org-id.
|
|
268
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
|
|
269
|
+
# @param [String] fields
|
|
270
|
+
# Selector specifying which fields to include in a partial response.
|
|
271
|
+
# @param [String] quota_user
|
|
272
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
273
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
274
|
+
# @param [Google::Apis::RequestOptions] options
|
|
275
|
+
# Request-specific options
|
|
276
|
+
#
|
|
277
|
+
# @yield [result, err] Result & error if block supplied
|
|
278
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
|
279
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
280
|
+
#
|
|
281
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
|
282
|
+
#
|
|
283
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
284
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
285
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
286
|
+
def create_organization_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
287
|
+
command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
|
|
288
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
|
|
289
|
+
command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
|
|
290
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
291
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
292
|
+
command.params['parent'] = parent unless parent.nil?
|
|
293
|
+
command.query['fields'] = fields unless fields.nil?
|
|
294
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
295
|
+
execute_or_queue_command(command, &block)
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Deletes an inspect template.
|
|
299
|
+
# @param [String] name
|
|
300
|
+
# Resource name of the organization and inspectTemplate to be deleted, for
|
|
301
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
302
|
+
# projects/project-id/inspectTemplates/432452342.
|
|
303
|
+
# @param [String] fields
|
|
304
|
+
# Selector specifying which fields to include in a partial response.
|
|
305
|
+
# @param [String] quota_user
|
|
306
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
307
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
308
|
+
# @param [Google::Apis::RequestOptions] options
|
|
309
|
+
# Request-specific options
|
|
310
|
+
#
|
|
311
|
+
# @yield [result, err] Result & error if block supplied
|
|
312
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
313
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
314
|
+
#
|
|
315
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
316
|
+
#
|
|
317
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
318
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
319
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
320
|
+
def delete_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
321
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
322
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
323
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
324
|
+
command.params['name'] = name unless name.nil?
|
|
325
|
+
command.query['fields'] = fields unless fields.nil?
|
|
326
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
327
|
+
execute_or_queue_command(command, &block)
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
# Gets an inspect template.
|
|
331
|
+
# @param [String] name
|
|
332
|
+
# Resource name of the organization and inspectTemplate to be read, for
|
|
333
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
334
|
+
# projects/project-id/inspectTemplates/432452342.
|
|
335
|
+
# @param [String] fields
|
|
336
|
+
# Selector specifying which fields to include in a partial response.
|
|
337
|
+
# @param [String] quota_user
|
|
338
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
339
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
340
|
+
# @param [Google::Apis::RequestOptions] options
|
|
341
|
+
# Request-specific options
|
|
342
|
+
#
|
|
343
|
+
# @yield [result, err] Result & error if block supplied
|
|
344
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
|
345
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
346
|
+
#
|
|
347
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
|
348
|
+
#
|
|
349
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
350
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
351
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
352
|
+
def get_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
353
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
354
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
355
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
356
|
+
command.params['name'] = name unless name.nil?
|
|
357
|
+
command.query['fields'] = fields unless fields.nil?
|
|
358
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
359
|
+
execute_or_queue_command(command, &block)
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Lists inspect templates.
|
|
363
|
+
# @param [String] parent
|
|
364
|
+
# The parent resource name, for example projects/my-project-id or
|
|
365
|
+
# organizations/my-org-id.
|
|
366
|
+
# @param [Fixnum] page_size
|
|
367
|
+
# Optional size of the page, can be limited by server. If zero server returns
|
|
368
|
+
# a page of max size 100.
|
|
369
|
+
# @param [String] page_token
|
|
370
|
+
# Optional page token to continue retrieval. Comes from previous call
|
|
371
|
+
# to `ListInspectTemplates`.
|
|
372
|
+
# @param [String] fields
|
|
373
|
+
# Selector specifying which fields to include in a partial response.
|
|
374
|
+
# @param [String] quota_user
|
|
375
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
376
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
377
|
+
# @param [Google::Apis::RequestOptions] options
|
|
378
|
+
# Request-specific options
|
|
379
|
+
#
|
|
380
|
+
# @yield [result, err] Result & error if block supplied
|
|
381
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse] parsed result object
|
|
382
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
383
|
+
#
|
|
384
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse]
|
|
385
|
+
#
|
|
386
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
387
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
388
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
389
|
+
def list_organization_inspect_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
390
|
+
command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', options)
|
|
391
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
|
|
392
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
|
|
393
|
+
command.params['parent'] = parent unless parent.nil?
|
|
394
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
395
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
396
|
+
command.query['fields'] = fields unless fields.nil?
|
|
397
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
398
|
+
execute_or_queue_command(command, &block)
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# Updates the inspect template.
|
|
402
|
+
# @param [String] name
|
|
403
|
+
# Resource name of organization and inspectTemplate to be updated, for
|
|
404
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
405
|
+
# projects/project-id/inspectTemplates/432452342.
|
|
406
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object
|
|
407
|
+
# @param [String] fields
|
|
408
|
+
# Selector specifying which fields to include in a partial response.
|
|
409
|
+
# @param [String] quota_user
|
|
410
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
411
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
412
|
+
# @param [Google::Apis::RequestOptions] options
|
|
413
|
+
# Request-specific options
|
|
414
|
+
#
|
|
415
|
+
# @yield [result, err] Result & error if block supplied
|
|
416
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
|
417
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
418
|
+
#
|
|
419
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
|
420
|
+
#
|
|
421
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
422
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
423
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
424
|
+
def patch_organization_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
425
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
426
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation
|
|
427
|
+
command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object
|
|
428
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
429
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
430
|
+
command.params['name'] = name unless name.nil?
|
|
431
|
+
command.query['fields'] = fields unless fields.nil?
|
|
432
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
433
|
+
execute_or_queue_command(command, &block)
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
# De-identifies potentially sensitive info from a ContentItem.
|
|
437
|
+
# This method has limits on input size and output size.
|
|
438
|
+
# [How-to guide](/dlp/docs/deidentify-sensitive-data)
|
|
439
|
+
# @param [String] parent
|
|
440
|
+
# The parent resource name, for example projects/my-project-id.
|
|
441
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object
|
|
442
|
+
# @param [String] fields
|
|
443
|
+
# Selector specifying which fields to include in a partial response.
|
|
444
|
+
# @param [String] quota_user
|
|
445
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
446
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
447
|
+
# @param [Google::Apis::RequestOptions] options
|
|
448
|
+
# Request-specific options
|
|
449
|
+
#
|
|
450
|
+
# @yield [result, err] Result & error if block supplied
|
|
451
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse] parsed result object
|
|
452
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
453
|
+
#
|
|
454
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse]
|
|
455
|
+
#
|
|
456
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
457
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
458
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
459
|
+
def deidentify_project_content(parent, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
460
|
+
command = make_simple_command(:post, 'v2/{+parent}/content:deidentify', options)
|
|
461
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest::Representation
|
|
462
|
+
command.request_object = google_privacy_dlp_v2_deidentify_content_request_object
|
|
463
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse::Representation
|
|
464
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse
|
|
465
|
+
command.params['parent'] = parent unless parent.nil?
|
|
466
|
+
command.query['fields'] = fields unless fields.nil?
|
|
467
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
468
|
+
execute_or_queue_command(command, &block)
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
# Finds potentially sensitive info in content.
|
|
472
|
+
# This method has limits on input size, processing time, and output size.
|
|
473
|
+
# [How-to guide for text](/dlp/docs/inspecting-text), [How-to guide for
|
|
474
|
+
# images](/dlp/docs/inspecting-images)
|
|
475
|
+
# @param [String] parent
|
|
476
|
+
# The parent resource name, for example projects/my-project-id.
|
|
477
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
|
|
478
|
+
# @param [String] fields
|
|
479
|
+
# Selector specifying which fields to include in a partial response.
|
|
480
|
+
# @param [String] quota_user
|
|
481
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
482
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
483
|
+
# @param [Google::Apis::RequestOptions] options
|
|
484
|
+
# Request-specific options
|
|
485
|
+
#
|
|
486
|
+
# @yield [result, err] Result & error if block supplied
|
|
487
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse] parsed result object
|
|
488
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
489
|
+
#
|
|
490
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse]
|
|
491
|
+
#
|
|
492
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
493
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
494
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
495
|
+
def inspect_project_content(parent, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
496
|
+
command = make_simple_command(:post, 'v2/{+parent}/content:inspect', options)
|
|
497
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest::Representation
|
|
498
|
+
command.request_object = google_privacy_dlp_v2_inspect_content_request_object
|
|
499
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse::Representation
|
|
500
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse
|
|
501
|
+
command.params['parent'] = parent unless parent.nil?
|
|
502
|
+
command.query['fields'] = fields unless fields.nil?
|
|
503
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
504
|
+
execute_or_queue_command(command, &block)
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
# Re-identifies content that has been de-identified.
|
|
508
|
+
# @param [String] parent
|
|
509
|
+
# The parent resource name.
|
|
510
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
|
|
511
|
+
# @param [String] fields
|
|
512
|
+
# Selector specifying which fields to include in a partial response.
|
|
513
|
+
# @param [String] quota_user
|
|
514
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
515
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
516
|
+
# @param [Google::Apis::RequestOptions] options
|
|
517
|
+
# Request-specific options
|
|
518
|
+
#
|
|
519
|
+
# @yield [result, err] Result & error if block supplied
|
|
520
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse] parsed result object
|
|
521
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
522
|
+
#
|
|
523
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse]
|
|
524
|
+
#
|
|
525
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
526
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
527
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
528
|
+
def reidentify_project_content(parent, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
529
|
+
command = make_simple_command(:post, 'v2/{+parent}/content:reidentify', options)
|
|
530
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest::Representation
|
|
531
|
+
command.request_object = google_privacy_dlp_v2_reidentify_content_request_object
|
|
532
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse::Representation
|
|
533
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse
|
|
534
|
+
command.params['parent'] = parent unless parent.nil?
|
|
535
|
+
command.query['fields'] = fields unless fields.nil?
|
|
536
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
537
|
+
execute_or_queue_command(command, &block)
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
# Creates a de-identify template for re-using frequently used configuration
|
|
541
|
+
# for Deidentifying content, images, and storage.
|
|
542
|
+
# @param [String] parent
|
|
543
|
+
# The parent resource name, for example projects/my-project-id or
|
|
544
|
+
# organizations/my-org-id.
|
|
545
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
|
|
546
|
+
# @param [String] fields
|
|
547
|
+
# Selector specifying which fields to include in a partial response.
|
|
548
|
+
# @param [String] quota_user
|
|
549
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
550
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
551
|
+
# @param [Google::Apis::RequestOptions] options
|
|
552
|
+
# Request-specific options
|
|
553
|
+
#
|
|
554
|
+
# @yield [result, err] Result & error if block supplied
|
|
555
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
|
556
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
557
|
+
#
|
|
558
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
|
559
|
+
#
|
|
560
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
561
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
562
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
563
|
+
def create_project_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
564
|
+
command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
|
|
565
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
|
|
566
|
+
command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
|
|
567
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
568
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
569
|
+
command.params['parent'] = parent unless parent.nil?
|
|
570
|
+
command.query['fields'] = fields unless fields.nil?
|
|
571
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
572
|
+
execute_or_queue_command(command, &block)
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
# Deletes a de-identify template.
|
|
576
|
+
# @param [String] name
|
|
577
|
+
# Resource name of the organization and deidentify template to be deleted,
|
|
578
|
+
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
579
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
|
580
|
+
# @param [String] fields
|
|
581
|
+
# Selector specifying which fields to include in a partial response.
|
|
582
|
+
# @param [String] quota_user
|
|
583
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
584
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
585
|
+
# @param [Google::Apis::RequestOptions] options
|
|
586
|
+
# Request-specific options
|
|
587
|
+
#
|
|
588
|
+
# @yield [result, err] Result & error if block supplied
|
|
589
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
590
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
591
|
+
#
|
|
592
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
593
|
+
#
|
|
594
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
595
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
596
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
597
|
+
def delete_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
598
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
599
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
600
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
601
|
+
command.params['name'] = name unless name.nil?
|
|
602
|
+
command.query['fields'] = fields unless fields.nil?
|
|
603
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
604
|
+
execute_or_queue_command(command, &block)
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
# Gets a de-identify template.
|
|
608
|
+
# @param [String] name
|
|
609
|
+
# Resource name of the organization and deidentify template to be read, for
|
|
610
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
611
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
|
612
|
+
# @param [String] fields
|
|
613
|
+
# Selector specifying which fields to include in a partial response.
|
|
614
|
+
# @param [String] quota_user
|
|
615
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
616
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
617
|
+
# @param [Google::Apis::RequestOptions] options
|
|
618
|
+
# Request-specific options
|
|
619
|
+
#
|
|
620
|
+
# @yield [result, err] Result & error if block supplied
|
|
621
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
|
622
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
623
|
+
#
|
|
624
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
|
625
|
+
#
|
|
626
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
627
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
628
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
629
|
+
def get_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
630
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
631
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
632
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
633
|
+
command.params['name'] = name unless name.nil?
|
|
634
|
+
command.query['fields'] = fields unless fields.nil?
|
|
635
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
636
|
+
execute_or_queue_command(command, &block)
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
# Lists de-identify templates.
|
|
640
|
+
# @param [String] parent
|
|
641
|
+
# The parent resource name, for example projects/my-project-id or
|
|
642
|
+
# organizations/my-org-id.
|
|
643
|
+
# @param [Fixnum] page_size
|
|
644
|
+
# Optional size of the page, can be limited by server. If zero server returns
|
|
645
|
+
# a page of max size 100.
|
|
646
|
+
# @param [String] page_token
|
|
647
|
+
# Optional page token to continue retrieval. Comes from previous call
|
|
648
|
+
# to `ListDeidentifyTemplates`.
|
|
649
|
+
# @param [String] fields
|
|
650
|
+
# Selector specifying which fields to include in a partial response.
|
|
651
|
+
# @param [String] quota_user
|
|
652
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
653
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
654
|
+
# @param [Google::Apis::RequestOptions] options
|
|
655
|
+
# Request-specific options
|
|
656
|
+
#
|
|
657
|
+
# @yield [result, err] Result & error if block supplied
|
|
658
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse] parsed result object
|
|
659
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
660
|
+
#
|
|
661
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse]
|
|
662
|
+
#
|
|
663
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
664
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
665
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
666
|
+
def list_project_deidentify_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
667
|
+
command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', options)
|
|
668
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
|
|
669
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
|
|
670
|
+
command.params['parent'] = parent unless parent.nil?
|
|
671
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
672
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
673
|
+
command.query['fields'] = fields unless fields.nil?
|
|
674
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
675
|
+
execute_or_queue_command(command, &block)
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
# Updates the de-identify template.
|
|
679
|
+
# @param [String] name
|
|
680
|
+
# Resource name of organization and deidentify template to be updated, for
|
|
681
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
682
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
|
683
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object
|
|
684
|
+
# @param [String] fields
|
|
685
|
+
# Selector specifying which fields to include in a partial response.
|
|
686
|
+
# @param [String] quota_user
|
|
687
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
688
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
689
|
+
# @param [Google::Apis::RequestOptions] options
|
|
690
|
+
# Request-specific options
|
|
691
|
+
#
|
|
692
|
+
# @yield [result, err] Result & error if block supplied
|
|
693
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
|
694
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
695
|
+
#
|
|
696
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
|
697
|
+
#
|
|
698
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
699
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
700
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
701
|
+
def patch_project_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
702
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
703
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation
|
|
704
|
+
command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object
|
|
705
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
706
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
707
|
+
command.params['name'] = name unless name.nil?
|
|
708
|
+
command.query['fields'] = fields unless fields.nil?
|
|
709
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
710
|
+
execute_or_queue_command(command, &block)
|
|
711
|
+
end
|
|
712
|
+
|
|
713
|
+
# Starts asynchronous cancellation on a long-running DlpJob. The server
|
|
714
|
+
# makes a best effort to cancel the DlpJob, but success is not
|
|
715
|
+
# guaranteed.
|
|
716
|
+
# @param [String] name
|
|
717
|
+
# The name of the DlpJob resource to be cancelled.
|
|
718
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest] google_privacy_dlp_v2_cancel_dlp_job_request_object
|
|
719
|
+
# @param [String] fields
|
|
720
|
+
# Selector specifying which fields to include in a partial response.
|
|
721
|
+
# @param [String] quota_user
|
|
722
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
723
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
724
|
+
# @param [Google::Apis::RequestOptions] options
|
|
725
|
+
# Request-specific options
|
|
726
|
+
#
|
|
727
|
+
# @yield [result, err] Result & error if block supplied
|
|
728
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
729
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
730
|
+
#
|
|
731
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
732
|
+
#
|
|
733
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
734
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
735
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
736
|
+
def cancel_project_dlp_job(name, google_privacy_dlp_v2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
737
|
+
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
|
738
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest::Representation
|
|
739
|
+
command.request_object = google_privacy_dlp_v2_cancel_dlp_job_request_object
|
|
740
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
741
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
742
|
+
command.params['name'] = name unless name.nil?
|
|
743
|
+
command.query['fields'] = fields unless fields.nil?
|
|
744
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
745
|
+
execute_or_queue_command(command, &block)
|
|
746
|
+
end
|
|
747
|
+
|
|
748
|
+
# Creates a new job to inspect storage or calculate risk metrics [How-to
|
|
749
|
+
# guide](/dlp/docs/compute-risk-analysis).
|
|
750
|
+
# @param [String] parent
|
|
751
|
+
# The parent resource name, for example projects/my-project-id.
|
|
752
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object
|
|
753
|
+
# @param [String] fields
|
|
754
|
+
# Selector specifying which fields to include in a partial response.
|
|
755
|
+
# @param [String] quota_user
|
|
756
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
757
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
758
|
+
# @param [Google::Apis::RequestOptions] options
|
|
759
|
+
# Request-specific options
|
|
760
|
+
#
|
|
761
|
+
# @yield [result, err] Result & error if block supplied
|
|
762
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob] parsed result object
|
|
763
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
764
|
+
#
|
|
765
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob]
|
|
766
|
+
#
|
|
767
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
768
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
769
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
770
|
+
def create_project_dlp_job(parent, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
771
|
+
command = make_simple_command(:post, 'v2/{+parent}/dlpJobs', options)
|
|
772
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest::Representation
|
|
773
|
+
command.request_object = google_privacy_dlp_v2_create_dlp_job_request_object
|
|
774
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
|
|
775
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
|
|
776
|
+
command.params['parent'] = parent unless parent.nil?
|
|
777
|
+
command.query['fields'] = fields unless fields.nil?
|
|
778
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
779
|
+
execute_or_queue_command(command, &block)
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
# Deletes a long-running DlpJob. This method indicates that the client is
|
|
783
|
+
# no longer interested in the DlpJob result. The job will be cancelled if
|
|
784
|
+
# possible.
|
|
785
|
+
# @param [String] name
|
|
786
|
+
# The name of the DlpJob resource to be deleted.
|
|
787
|
+
# @param [String] fields
|
|
788
|
+
# Selector specifying which fields to include in a partial response.
|
|
789
|
+
# @param [String] quota_user
|
|
790
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
791
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
792
|
+
# @param [Google::Apis::RequestOptions] options
|
|
793
|
+
# Request-specific options
|
|
794
|
+
#
|
|
795
|
+
# @yield [result, err] Result & error if block supplied
|
|
796
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
797
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
798
|
+
#
|
|
799
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
800
|
+
#
|
|
801
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
802
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
803
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
804
|
+
def delete_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
805
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
806
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
807
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
808
|
+
command.params['name'] = name unless name.nil?
|
|
809
|
+
command.query['fields'] = fields unless fields.nil?
|
|
810
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
811
|
+
execute_or_queue_command(command, &block)
|
|
812
|
+
end
|
|
813
|
+
|
|
814
|
+
# Gets the latest state of a long-running DlpJob.
|
|
815
|
+
# @param [String] name
|
|
816
|
+
# The name of the DlpJob resource.
|
|
817
|
+
# @param [String] fields
|
|
818
|
+
# Selector specifying which fields to include in a partial response.
|
|
819
|
+
# @param [String] quota_user
|
|
820
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
821
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
822
|
+
# @param [Google::Apis::RequestOptions] options
|
|
823
|
+
# Request-specific options
|
|
824
|
+
#
|
|
825
|
+
# @yield [result, err] Result & error if block supplied
|
|
826
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob] parsed result object
|
|
827
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
828
|
+
#
|
|
829
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob]
|
|
830
|
+
#
|
|
831
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
832
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
833
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
834
|
+
def get_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
835
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
836
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
|
|
837
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
|
|
838
|
+
command.params['name'] = name unless name.nil?
|
|
839
|
+
command.query['fields'] = fields unless fields.nil?
|
|
840
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
841
|
+
execute_or_queue_command(command, &block)
|
|
842
|
+
end
|
|
843
|
+
|
|
844
|
+
# Lists DlpJobs that match the specified filter in the request.
|
|
845
|
+
# @param [String] parent
|
|
846
|
+
# The parent resource name, for example projects/my-project-id.
|
|
847
|
+
# @param [String] filter
|
|
848
|
+
# Optional. Allows filtering.
|
|
849
|
+
# Supported syntax:
|
|
850
|
+
# * Filter expressions are made up of one or more restrictions.
|
|
851
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
852
|
+
# sequence of restrictions implicitly uses `AND`.
|
|
853
|
+
# * A restriction has the form of `<field> <operator> <value>`.
|
|
854
|
+
# * Supported fields/values for inspect jobs:
|
|
855
|
+
# - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
|
|
856
|
+
# - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
|
857
|
+
# - `trigger_name` - The resource name of the trigger that created job.
|
|
858
|
+
# * Supported fields for risk analysis jobs:
|
|
859
|
+
# - `state` - RUNNING|CANCELED|FINISHED|FAILED
|
|
860
|
+
# * The operator must be `=` or `!=`.
|
|
861
|
+
# Examples:
|
|
862
|
+
# * inspected_storage = cloud_storage AND state = done
|
|
863
|
+
# * inspected_storage = cloud_storage OR inspected_storage = bigquery
|
|
864
|
+
# * inspected_storage = cloud_storage AND (state = done OR state = canceled)
|
|
865
|
+
# The length of this field should be no more than 500 characters.
|
|
866
|
+
# @param [Fixnum] page_size
|
|
867
|
+
# The standard list page size.
|
|
868
|
+
# @param [String] page_token
|
|
869
|
+
# The standard list page token.
|
|
870
|
+
# @param [String] type
|
|
871
|
+
# The type of job. Defaults to `DlpJobType.INSPECT`
|
|
872
|
+
# @param [String] fields
|
|
873
|
+
# Selector specifying which fields to include in a partial response.
|
|
874
|
+
# @param [String] quota_user
|
|
875
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
876
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
877
|
+
# @param [Google::Apis::RequestOptions] options
|
|
878
|
+
# Request-specific options
|
|
879
|
+
#
|
|
880
|
+
# @yield [result, err] Result & error if block supplied
|
|
881
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse] parsed result object
|
|
882
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
883
|
+
#
|
|
884
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse]
|
|
885
|
+
#
|
|
886
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
887
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
888
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
889
|
+
def list_project_dlp_jobs(parent, filter: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
890
|
+
command = make_simple_command(:get, 'v2/{+parent}/dlpJobs', options)
|
|
891
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse::Representation
|
|
892
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse
|
|
893
|
+
command.params['parent'] = parent unless parent.nil?
|
|
894
|
+
command.query['filter'] = filter unless filter.nil?
|
|
895
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
896
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
897
|
+
command.query['type'] = type unless type.nil?
|
|
898
|
+
command.query['fields'] = fields unless fields.nil?
|
|
899
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
900
|
+
execute_or_queue_command(command, &block)
|
|
901
|
+
end
|
|
902
|
+
|
|
903
|
+
# Redacts potentially sensitive info from an image.
|
|
904
|
+
# This method has limits on input size, processing time, and output size.
|
|
905
|
+
# [How-to guide](/dlp/docs/redacting-sensitive-data-images)
|
|
906
|
+
# @param [String] parent
|
|
907
|
+
# The parent resource name, for example projects/my-project-id.
|
|
908
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object
|
|
909
|
+
# @param [String] fields
|
|
910
|
+
# Selector specifying which fields to include in a partial response.
|
|
911
|
+
# @param [String] quota_user
|
|
912
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
913
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
914
|
+
# @param [Google::Apis::RequestOptions] options
|
|
915
|
+
# Request-specific options
|
|
916
|
+
#
|
|
917
|
+
# @yield [result, err] Result & error if block supplied
|
|
918
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse] parsed result object
|
|
919
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
920
|
+
#
|
|
921
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse]
|
|
922
|
+
#
|
|
923
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
924
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
925
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
926
|
+
def redact_project_image(parent, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
927
|
+
command = make_simple_command(:post, 'v2/{+parent}/image:redact', options)
|
|
928
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest::Representation
|
|
929
|
+
command.request_object = google_privacy_dlp_v2_redact_image_request_object
|
|
930
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse::Representation
|
|
931
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
|
|
932
|
+
command.params['parent'] = parent unless parent.nil?
|
|
933
|
+
command.query['fields'] = fields unless fields.nil?
|
|
934
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
935
|
+
execute_or_queue_command(command, &block)
|
|
936
|
+
end
|
|
937
|
+
|
|
938
|
+
# Creates an inspect template for re-using frequently used configuration
|
|
939
|
+
# for inspecting content, images, and storage.
|
|
940
|
+
# @param [String] parent
|
|
941
|
+
# The parent resource name, for example projects/my-project-id or
|
|
942
|
+
# organizations/my-org-id.
|
|
943
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
|
|
944
|
+
# @param [String] fields
|
|
945
|
+
# Selector specifying which fields to include in a partial response.
|
|
946
|
+
# @param [String] quota_user
|
|
947
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
948
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
949
|
+
# @param [Google::Apis::RequestOptions] options
|
|
950
|
+
# Request-specific options
|
|
951
|
+
#
|
|
952
|
+
# @yield [result, err] Result & error if block supplied
|
|
953
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
|
954
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
955
|
+
#
|
|
956
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
|
957
|
+
#
|
|
958
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
959
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
960
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
961
|
+
def create_project_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
962
|
+
command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
|
|
963
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
|
|
964
|
+
command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
|
|
965
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
966
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
967
|
+
command.params['parent'] = parent unless parent.nil?
|
|
968
|
+
command.query['fields'] = fields unless fields.nil?
|
|
969
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
970
|
+
execute_or_queue_command(command, &block)
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
# Deletes an inspect template.
|
|
974
|
+
# @param [String] name
|
|
975
|
+
# Resource name of the organization and inspectTemplate to be deleted, for
|
|
976
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
977
|
+
# projects/project-id/inspectTemplates/432452342.
|
|
978
|
+
# @param [String] fields
|
|
979
|
+
# Selector specifying which fields to include in a partial response.
|
|
980
|
+
# @param [String] quota_user
|
|
981
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
982
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
983
|
+
# @param [Google::Apis::RequestOptions] options
|
|
984
|
+
# Request-specific options
|
|
985
|
+
#
|
|
986
|
+
# @yield [result, err] Result & error if block supplied
|
|
987
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
988
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
989
|
+
#
|
|
990
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
991
|
+
#
|
|
992
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
993
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
994
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
995
|
+
def delete_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
996
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
997
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
998
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
999
|
+
command.params['name'] = name unless name.nil?
|
|
1000
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1001
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1002
|
+
execute_or_queue_command(command, &block)
|
|
1003
|
+
end
|
|
1004
|
+
|
|
1005
|
+
# Gets an inspect template.
|
|
1006
|
+
# @param [String] name
|
|
1007
|
+
# Resource name of the organization and inspectTemplate to be read, for
|
|
1008
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
1009
|
+
# projects/project-id/inspectTemplates/432452342.
|
|
1010
|
+
# @param [String] fields
|
|
1011
|
+
# Selector specifying which fields to include in a partial response.
|
|
1012
|
+
# @param [String] quota_user
|
|
1013
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1014
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1015
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1016
|
+
# Request-specific options
|
|
1017
|
+
#
|
|
1018
|
+
# @yield [result, err] Result & error if block supplied
|
|
1019
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
|
1020
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1021
|
+
#
|
|
1022
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
|
1023
|
+
#
|
|
1024
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1025
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1026
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1027
|
+
def get_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1028
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1029
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
1030
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
1031
|
+
command.params['name'] = name unless name.nil?
|
|
1032
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1033
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1034
|
+
execute_or_queue_command(command, &block)
|
|
1035
|
+
end
|
|
1036
|
+
|
|
1037
|
+
# Lists inspect templates.
|
|
1038
|
+
# @param [String] parent
|
|
1039
|
+
# The parent resource name, for example projects/my-project-id or
|
|
1040
|
+
# organizations/my-org-id.
|
|
1041
|
+
# @param [Fixnum] page_size
|
|
1042
|
+
# Optional size of the page, can be limited by server. If zero server returns
|
|
1043
|
+
# a page of max size 100.
|
|
1044
|
+
# @param [String] page_token
|
|
1045
|
+
# Optional page token to continue retrieval. Comes from previous call
|
|
1046
|
+
# to `ListInspectTemplates`.
|
|
1047
|
+
# @param [String] fields
|
|
1048
|
+
# Selector specifying which fields to include in a partial response.
|
|
1049
|
+
# @param [String] quota_user
|
|
1050
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1051
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1052
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1053
|
+
# Request-specific options
|
|
1054
|
+
#
|
|
1055
|
+
# @yield [result, err] Result & error if block supplied
|
|
1056
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse] parsed result object
|
|
1057
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1058
|
+
#
|
|
1059
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse]
|
|
1060
|
+
#
|
|
1061
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1062
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1063
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1064
|
+
def list_project_inspect_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1065
|
+
command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', options)
|
|
1066
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
|
|
1067
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
|
|
1068
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1069
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1070
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1071
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1072
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1073
|
+
execute_or_queue_command(command, &block)
|
|
1074
|
+
end
|
|
1075
|
+
|
|
1076
|
+
# Updates the inspect template.
|
|
1077
|
+
# @param [String] name
|
|
1078
|
+
# Resource name of organization and inspectTemplate to be updated, for
|
|
1079
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
1080
|
+
# projects/project-id/inspectTemplates/432452342.
|
|
1081
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object
|
|
1082
|
+
# @param [String] fields
|
|
1083
|
+
# Selector specifying which fields to include in a partial response.
|
|
1084
|
+
# @param [String] quota_user
|
|
1085
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1086
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1087
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1088
|
+
# Request-specific options
|
|
1089
|
+
#
|
|
1090
|
+
# @yield [result, err] Result & error if block supplied
|
|
1091
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
|
1092
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1093
|
+
#
|
|
1094
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
|
1095
|
+
#
|
|
1096
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1097
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1098
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1099
|
+
def patch_project_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1100
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
1101
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation
|
|
1102
|
+
command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object
|
|
1103
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
1104
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
1105
|
+
command.params['name'] = name unless name.nil?
|
|
1106
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1107
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1108
|
+
execute_or_queue_command(command, &block)
|
|
1109
|
+
end
|
|
1110
|
+
|
|
1111
|
+
# Creates a job trigger to run DLP actions such as scanning storage for
|
|
1112
|
+
# sensitive information on a set schedule.
|
|
1113
|
+
# @param [String] parent
|
|
1114
|
+
# The parent resource name, for example projects/my-project-id.
|
|
1115
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
|
|
1116
|
+
# @param [String] fields
|
|
1117
|
+
# Selector specifying which fields to include in a partial response.
|
|
1118
|
+
# @param [String] quota_user
|
|
1119
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1120
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1121
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1122
|
+
# Request-specific options
|
|
1123
|
+
#
|
|
1124
|
+
# @yield [result, err] Result & error if block supplied
|
|
1125
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger] parsed result object
|
|
1126
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1127
|
+
#
|
|
1128
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger]
|
|
1129
|
+
#
|
|
1130
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1131
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1132
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1133
|
+
def create_project_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1134
|
+
command = make_simple_command(:post, 'v2/{+parent}/jobTriggers', options)
|
|
1135
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest::Representation
|
|
1136
|
+
command.request_object = google_privacy_dlp_v2_create_job_trigger_request_object
|
|
1137
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
|
1138
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
|
|
1139
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1140
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1141
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1142
|
+
execute_or_queue_command(command, &block)
|
|
1143
|
+
end
|
|
1144
|
+
|
|
1145
|
+
# Deletes a job trigger.
|
|
1146
|
+
# @param [String] name
|
|
1147
|
+
# Resource name of the project and the triggeredJob, for example
|
|
1148
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
|
1149
|
+
# @param [String] fields
|
|
1150
|
+
# Selector specifying which fields to include in a partial response.
|
|
1151
|
+
# @param [String] quota_user
|
|
1152
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1153
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1154
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1155
|
+
# Request-specific options
|
|
1156
|
+
#
|
|
1157
|
+
# @yield [result, err] Result & error if block supplied
|
|
1158
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
1159
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1160
|
+
#
|
|
1161
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
1162
|
+
#
|
|
1163
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1164
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1165
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1166
|
+
def delete_project_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1167
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1168
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
1169
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
1170
|
+
command.params['name'] = name unless name.nil?
|
|
1171
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1172
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1173
|
+
execute_or_queue_command(command, &block)
|
|
1174
|
+
end
|
|
1175
|
+
|
|
1176
|
+
# Gets a job trigger.
|
|
1177
|
+
# @param [String] name
|
|
1178
|
+
# Resource name of the project and the triggeredJob, for example
|
|
1179
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
|
1180
|
+
# @param [String] fields
|
|
1181
|
+
# Selector specifying which fields to include in a partial response.
|
|
1182
|
+
# @param [String] quota_user
|
|
1183
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1184
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1185
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1186
|
+
# Request-specific options
|
|
1187
|
+
#
|
|
1188
|
+
# @yield [result, err] Result & error if block supplied
|
|
1189
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger] parsed result object
|
|
1190
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1191
|
+
#
|
|
1192
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger]
|
|
1193
|
+
#
|
|
1194
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1195
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1196
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1197
|
+
def get_project_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1198
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1199
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
|
1200
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
|
|
1201
|
+
command.params['name'] = name unless name.nil?
|
|
1202
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1203
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1204
|
+
execute_or_queue_command(command, &block)
|
|
1205
|
+
end
|
|
1206
|
+
|
|
1207
|
+
# Lists job triggers.
|
|
1208
|
+
# @param [String] parent
|
|
1209
|
+
# The parent resource name, for example projects/my-project-id.
|
|
1210
|
+
# @param [String] order_by
|
|
1211
|
+
# Optional comma separated list of triggeredJob fields to order by,
|
|
1212
|
+
# followed by 'asc/desc' postfix, i.e.
|
|
1213
|
+
# `"create_time asc,name desc,schedule_mode asc"`. This list is
|
|
1214
|
+
# case-insensitive.
|
|
1215
|
+
# Example: `"name asc,schedule_mode desc, status desc"`
|
|
1216
|
+
# Supported filters keys and values are:
|
|
1217
|
+
# - `create_time`: corresponds to time the triggeredJob was created.
|
|
1218
|
+
# - `update_time`: corresponds to time the triggeredJob was last updated.
|
|
1219
|
+
# - `name`: corresponds to JobTrigger's display name.
|
|
1220
|
+
# - `status`: corresponds to the triggeredJob status.
|
|
1221
|
+
# @param [Fixnum] page_size
|
|
1222
|
+
# Optional size of the page, can be limited by a server.
|
|
1223
|
+
# @param [String] page_token
|
|
1224
|
+
# Optional page token to continue retrieval. Comes from previous call
|
|
1225
|
+
# to ListJobTriggers. `order_by` and `filter` should not change for
|
|
1226
|
+
# subsequent calls, but can be omitted if token is specified.
|
|
1227
|
+
# @param [String] fields
|
|
1228
|
+
# Selector specifying which fields to include in a partial response.
|
|
1229
|
+
# @param [String] quota_user
|
|
1230
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1231
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1232
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1233
|
+
# Request-specific options
|
|
1234
|
+
#
|
|
1235
|
+
# @yield [result, err] Result & error if block supplied
|
|
1236
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse] parsed result object
|
|
1237
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1238
|
+
#
|
|
1239
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse]
|
|
1240
|
+
#
|
|
1241
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1242
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1243
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1244
|
+
def list_project_job_triggers(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1245
|
+
command = make_simple_command(:get, 'v2/{+parent}/jobTriggers', options)
|
|
1246
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse::Representation
|
|
1247
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse
|
|
1248
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1249
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1250
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1251
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1252
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1253
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1254
|
+
execute_or_queue_command(command, &block)
|
|
1255
|
+
end
|
|
1256
|
+
|
|
1257
|
+
# Updates a job trigger.
|
|
1258
|
+
# @param [String] name
|
|
1259
|
+
# Resource name of the project and the triggeredJob, for example
|
|
1260
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
|
1261
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest] google_privacy_dlp_v2_update_job_trigger_request_object
|
|
1262
|
+
# @param [String] fields
|
|
1263
|
+
# Selector specifying which fields to include in a partial response.
|
|
1264
|
+
# @param [String] quota_user
|
|
1265
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1266
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1267
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1268
|
+
# Request-specific options
|
|
1269
|
+
#
|
|
1270
|
+
# @yield [result, err] Result & error if block supplied
|
|
1271
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger] parsed result object
|
|
1272
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1273
|
+
#
|
|
1274
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger]
|
|
1275
|
+
#
|
|
1276
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1277
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1278
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1279
|
+
def patch_project_job_trigger(name, google_privacy_dlp_v2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1280
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
1281
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest::Representation
|
|
1282
|
+
command.request_object = google_privacy_dlp_v2_update_job_trigger_request_object
|
|
1283
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
|
1284
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
|
|
1285
|
+
command.params['name'] = name unless name.nil?
|
|
1286
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1287
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1288
|
+
execute_or_queue_command(command, &block)
|
|
1289
|
+
end
|
|
1290
|
+
|
|
1291
|
+
protected
|
|
1292
|
+
|
|
1293
|
+
def apply_command_defaults(command)
|
|
1294
|
+
command.query['key'] = key unless key.nil?
|
|
1295
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1296
|
+
end
|
|
1297
|
+
end
|
|
1298
|
+
end
|
|
1299
|
+
end
|
|
1300
|
+
end
|