google-api-client 0.32.1 → 0.36.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 +5 -5
- data/.kokoro/continuous/linux.cfg +2 -2
- data/.kokoro/continuous/post.cfg +30 -0
- data/.kokoro/presubmit/linux.cfg +1 -1
- data/.kokoro/release.cfg +94 -0
- data/.repo-metadata.json +5 -0
- data/.rubocop.yml +5 -0
- data/.yardopts +16 -3
- data/CHANGELOG.md +327 -0
- data/Gemfile +1 -0
- data/OVERVIEW.md +36 -0
- data/README.md +50 -2
- data/Rakefile +71 -2
- data/docs/api-keys.md +20 -0
- data/docs/auth.md +53 -0
- data/docs/client-secrets.md +69 -0
- data/docs/getting-started.md +340 -0
- data/docs/installation.md +0 -0
- data/docs/logging.md +34 -0
- data/docs/media-upload.md +25 -0
- data/docs/oauth-installed.md +191 -0
- data/docs/oauth-server.md +135 -0
- data/docs/oauth-web.md +280 -0
- data/docs/oauth.md +268 -0
- data/docs/pagination.md +29 -0
- data/docs/performance.md +25 -0
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +35 -2
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +13 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +108 -6
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +1 -73
- data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +0 -32
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +24 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -3
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +5 -5
- data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +4 -3
- data/generated/google/apis/admin_directory_v1.rb +4 -1
- data/generated/google/apis/admin_reports_v1/classes.rb +87 -44
- data/generated/google/apis/admin_reports_v1/service.rb +310 -64
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +105 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +51 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/appengine_v1/service.rb +10 -6
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta/service.rb +10 -6
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +104 -23
- data/generated/google/apis/bigquery_v2/representations.rb +37 -0
- data/generated/google/apis/bigquery_v2/service.rb +1 -5
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -5
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +3 -2
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -4
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +0 -21
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +0 -13
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +116 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +35 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +71 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +61 -77
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +16 -17
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +116 -78
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +63 -30
- data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +392 -0
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +191 -0
- data/generated/google/apis/billingbudgets_v1beta1/service.rb +233 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1/classes.rb +6 -5
- data/generated/google/apis/binaryauthorization_v1/service.rb +2 -0
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +6 -5
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +2 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +20 -0
- data/generated/google/apis/books_v1/representations.rb +3 -0
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +18 -30
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +0 -156
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -60
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +89 -55
- data/generated/google/apis/cloudasset_v1/service.rb +1 -2
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +75 -40
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +82 -36
- data/generated/google/apis/cloudbilling_v1/representations.rb +0 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +5 -3
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +8 -2
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +18 -18
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/service.rb +14 -14
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +13 -5
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +10 -4
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +10 -4
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +11 -8
- data/generated/google/apis/cloudidentity_v1/service.rb +2 -1
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +13 -10
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +2 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +6 -5
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +6 -5
- data/generated/google/apis/cloudkms_v1/service.rb +3 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +75 -40
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +18 -17
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +10 -13
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +11 -13
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +10 -13
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +11 -13
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +10 -132
- data/generated/google/apis/cloudsearch_v1/representations.rb +0 -75
- data/generated/google/apis/cloudsearch_v1/service.rb +47 -9
- data/generated/google/apis/cloudsearch_v1.rb +8 -8
- data/generated/google/apis/cloudshell_v1/classes.rb +24 -1
- data/generated/google/apis/cloudshell_v1/representations.rb +3 -0
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +24 -1
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +3 -0
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +212 -5
- data/generated/google/apis/cloudtasks_v2/representations.rb +50 -0
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +6 -5
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +6 -5
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +14 -19
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +594 -164
- data/generated/google/apis/compute_alpha/representations.rb +110 -2
- data/generated/google/apis/compute_alpha/service.rb +1035 -640
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1070 -276
- data/generated/google/apis/compute_beta/representations.rb +284 -0
- data/generated/google/apis/compute_beta/service.rb +1242 -532
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +335 -133
- data/generated/google/apis/compute_v1/representations.rb +24 -0
- data/generated/google/apis/compute_v1/service.rb +759 -473
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +410 -83
- data/generated/google/apis/container_v1/representations.rb +134 -0
- data/generated/google/apis/container_v1/service.rb +119 -119
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +157 -3
- data/generated/google/apis/container_v1beta1/representations.rb +38 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +6 -5
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +6 -5
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +35 -223
- data/generated/google/apis/content_v2/representations.rb +0 -115
- data/generated/google/apis/content_v2/service.rb +0 -160
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +69 -21
- data/generated/google/apis/content_v2_1/representations.rb +3 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +1646 -0
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +700 -0
- data/generated/google/apis/datacatalog_v1beta1/service.rb +1982 -0
- data/generated/google/apis/{cloudbuild_v1alpha1.rb → datacatalog_v1beta1.rb} +10 -9
- data/generated/google/apis/dataflow_v1b3/classes.rb +6 -9
- data/generated/google/apis/dataflow_v1b3/representations.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +156 -46
- data/generated/google/apis/datafusion_v1beta1/representations.rb +33 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +10 -1
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +119 -11
- data/generated/google/apis/dataproc_v1/representations.rb +39 -0
- data/generated/google/apis/dataproc_v1/service.rb +14 -7
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +9 -11
- data/generated/google/apis/dataproc_v1beta2/service.rb +26 -19
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1/service.rb +85 -1
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +21 -1
- data/generated/google/apis/dfareporting_v3_3/service.rb +6 -6
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/classes.rb +1215 -797
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/representations.rb +593 -395
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/service.rb +966 -1074
- data/generated/google/apis/{dfareporting_v3_2.rb → dfareporting_v3_4.rb} +6 -6
- data/generated/google/apis/dialogflow_v2/classes.rb +509 -8
- data/generated/google/apis/dialogflow_v2/representations.rb +222 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +530 -8
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +224 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +109 -33
- data/generated/google/apis/dlp_v2/representations.rb +23 -3
- data/generated/google/apis/dlp_v2/service.rb +1996 -209
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +47 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +17 -0
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +175 -0
- data/generated/google/apis/docs_v1/representations.rb +77 -0
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +826 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +372 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +371 -0
- data/generated/google/apis/{urlshortener_v1.rb → doubleclickbidmanager_v1_1.rb} +11 -11
- data/generated/google/apis/drive_v2/classes.rb +2 -1
- data/generated/google/apis/drive_v2/service.rb +3 -3
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +12 -3
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/fcm_v1/classes.rb +15 -0
- data/generated/google/apis/fcm_v1/representations.rb +2 -0
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +18 -4
- data/generated/google/apis/firebase_v1beta1/representations.rb +2 -0
- data/generated/google/apis/firebase_v1beta1/service.rb +6 -6
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +62 -0
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +31 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +47 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +1 -1
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +6 -26
- data/generated/google/apis/games_management_v1management/representations.rb +1 -14
- data/generated/google/apis/games_management_v1management/service.rb +0 -158
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +6 -292
- data/generated/google/apis/games_v1/representations.rb +1 -98
- data/generated/google/apis/games_v1/service.rb +0 -123
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +32 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +213 -16
- data/generated/google/apis/healthcare_v1beta1/representations.rb +101 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +207 -116
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/homegraph_v1/classes.rb +15 -1
- data/generated/google/apis/homegraph_v1/representations.rb +2 -1
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +15 -7
- data/generated/google/apis/iam_v1/representations.rb +1 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +187 -2
- data/generated/google/apis/iap_v1/representations.rb +102 -0
- data/generated/google/apis/iap_v1/service.rb +72 -0
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +2 -2
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +167 -0
- data/generated/google/apis/jobs_v2/representations.rb +40 -0
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +179 -0
- data/generated/google/apis/jobs_v3/representations.rb +41 -0
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +179 -0
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +41 -0
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/licensing_v1/classes.rb +15 -7
- data/generated/google/apis/licensing_v1/service.rb +81 -37
- data/generated/google/apis/licensing_v1.rb +4 -4
- data/generated/google/apis/lifesciences_v2beta/classes.rb +1329 -0
- data/generated/google/apis/lifesciences_v2beta/representations.rb +533 -0
- data/generated/google/apis/lifesciences_v2beta/service.rb +303 -0
- data/generated/google/apis/lifesciences_v2beta.rb +35 -0
- data/generated/google/apis/logging_v2/classes.rb +30 -2
- data/generated/google/apis/logging_v2/representations.rb +4 -0
- data/generated/google/apis/logging_v2/service.rb +10 -5
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +308 -155
- data/generated/google/apis/ml_v1/representations.rb +59 -0
- data/generated/google/apis/ml_v1/service.rb +44 -3
- data/generated/google/apis/ml_v1.rb +2 -2
- data/generated/google/apis/monitoring_v1/classes.rb +1153 -0
- data/generated/google/apis/monitoring_v1/representations.rb +528 -0
- data/generated/google/apis/{cloudbuild_v1alpha1 → monitoring_v1}/service.rb +86 -63
- data/generated/google/apis/monitoring_v1.rb +48 -0
- data/generated/google/apis/monitoring_v3/classes.rb +836 -60
- data/generated/google/apis/monitoring_v3/representations.rb +348 -0
- data/generated/google/apis/monitoring_v3/service.rb +384 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +1 -1
- data/generated/google/apis/oslogin_v1/service.rb +10 -6
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/service.rb +9 -5
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5/classes.rb +8 -0
- data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +67 -63
- data/generated/google/apis/people_v1/service.rb +53 -44
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +168 -90
- data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -3
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +8 -6
- data/generated/google/apis/pubsub_v1/service.rb +9 -7
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +6 -5
- data/generated/google/apis/pubsub_v1beta2/service.rb +2 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/service.rb +10 -8
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +11 -11
- data/generated/google/apis/redis_v1/service.rb +5 -5
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +11 -11
- data/generated/google/apis/redis_v1beta1/service.rb +5 -5
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +113 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +50 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +113 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +50 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +113 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +50 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/reseller_v1/service.rb +1 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +8 -176
- data/generated/google/apis/run_v1/representations.rb +0 -71
- data/generated/google/apis/run_v1/service.rb +209 -1125
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +328 -9
- data/generated/google/apis/run_v1alpha1/representations.rb +126 -0
- data/generated/google/apis/run_v1alpha1/service.rb +408 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +75 -40
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +159 -66
- data/generated/google/apis/securitycenter_v1/representations.rb +19 -0
- data/generated/google/apis/securitycenter_v1/service.rb +14 -12
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +95 -57
- data/generated/google/apis/securitycenter_v1beta1/service.rb +14 -12
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +75 -40
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +75 -40
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +75 -40
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +95 -43
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +8 -12
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +142 -91
- data/generated/google/apis/servicemanagement_v1/representations.rb +24 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +32 -26
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +181 -54
- data/generated/google/apis/servicenetworking_v1/representations.rb +71 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +77 -3
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +32 -43
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +87 -43
- data/generated/google/apis/serviceusage_v1/representations.rb +29 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +87 -43
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +29 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +1371 -232
- data/generated/google/apis/sheets_v4/representations.rb +180 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +70 -30
- data/generated/google/apis/spanner_v1/service.rb +270 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +6 -0
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +6 -0
- data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/classes.rb +9 -8
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/representations.rb +6 -6
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/service.rb +13 -13
- data/generated/google/apis/{speech_v2beta.rb → speech_v2beta1.rb} +6 -6
- data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/classes.rb +499 -380
- data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/representations.rb +125 -104
- data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/service.rb +637 -590
- data/generated/google/apis/{sqladmin_v1beta4.rb → sql_v1beta4.rb} +7 -8
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +142 -1
- data/generated/google/apis/testing_v1/representations.rb +76 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +66 -0
- data/generated/google/apis/vision_v1/representations.rb +32 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +66 -0
- data/generated/google/apis/vision_v1p1beta1/representations.rb +32 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +66 -0
- data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +2 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/google-api-client.gemspec +6 -3
- data/lib/google/apis/core/api_command.rb +3 -0
- data/lib/google/apis/core/http_command.rb +10 -8
- data/lib/google/apis/core/upload.rb +4 -0
- data/lib/google/apis/version.rb +1 -1
- data/rakelib/devsite/devsite_builder.rb +126 -0
- data/rakelib/devsite/link_checker.rb +64 -0
- data/rakelib/devsite/repo_metadata.rb +56 -0
- metadata +64 -42
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +0 -1168
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +0 -434
- data/generated/google/apis/storage_v1beta1/classes.rb +0 -616
- data/generated/google/apis/storage_v1beta1/representations.rb +0 -249
- data/generated/google/apis/storage_v1beta1/service.rb +0 -1032
- data/generated/google/apis/storage_v1beta1.rb +0 -40
- data/generated/google/apis/urlshortener_v1/classes.rb +0 -246
- data/generated/google/apis/urlshortener_v1/representations.rb +0 -121
- data/generated/google/apis/urlshortener_v1/service.rb +0 -169
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
# Optional BCP-47 language code for localized infoType friendly
|
|
60
60
|
# names. If omitted, or if localized strings are not available,
|
|
61
61
|
# en-US strings will be returned.
|
|
62
|
-
# @param [String]
|
|
62
|
+
# @param [String] location_id
|
|
63
63
|
# The geographic location to list info types. Reserved for future
|
|
64
64
|
# extensions.
|
|
65
65
|
# @param [String] fields
|
|
@@ -79,13 +79,13 @@ module Google
|
|
|
79
79
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
80
80
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
81
81
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
82
|
-
def list_info_types(filter: nil, language_code: nil,
|
|
82
|
+
def list_info_types(filter: nil, language_code: nil, location_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
83
83
|
command = make_simple_command(:get, 'v2/infoTypes', options)
|
|
84
84
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
|
|
85
85
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
|
|
86
86
|
command.query['filter'] = filter unless filter.nil?
|
|
87
87
|
command.query['languageCode'] = language_code unless language_code.nil?
|
|
88
|
-
command.query['
|
|
88
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
|
89
89
|
command.query['fields'] = fields unless fields.nil?
|
|
90
90
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
91
91
|
execute_or_queue_command(command, &block)
|
|
@@ -94,7 +94,7 @@ module Google
|
|
|
94
94
|
# Returns a list of the sensitive information types that the DLP API
|
|
95
95
|
# supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
|
|
96
96
|
# learn more.
|
|
97
|
-
# @param [String]
|
|
97
|
+
# @param [String] location_id
|
|
98
98
|
# The geographic location to list info types. Reserved for future
|
|
99
99
|
# extensions.
|
|
100
100
|
# @param [String] filter
|
|
@@ -121,11 +121,11 @@ module Google
|
|
|
121
121
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
122
122
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
123
123
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
124
|
-
def list_location_info_types(
|
|
125
|
-
command = make_simple_command(:get, 'v2/locations/{
|
|
124
|
+
def list_location_info_types(location_id, filter: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
125
|
+
command = make_simple_command(:get, 'v2/locations/{locationId}/infoTypes', options)
|
|
126
126
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
|
|
127
127
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
|
|
128
|
-
command.params['
|
|
128
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
129
129
|
command.query['filter'] = filter unless filter.nil?
|
|
130
130
|
command.query['languageCode'] = language_code unless language_code.nil?
|
|
131
131
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -138,7 +138,7 @@ module Google
|
|
|
138
138
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
139
139
|
# more.
|
|
140
140
|
# @param [String] parent
|
|
141
|
-
# The parent resource name, for example projects/my-project-id or
|
|
141
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
142
142
|
# organizations/my-org-id.
|
|
143
143
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
|
|
144
144
|
# @param [String] fields
|
|
@@ -174,7 +174,8 @@ module Google
|
|
|
174
174
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
175
175
|
# more.
|
|
176
176
|
# @param [String] name
|
|
177
|
-
# Resource name of the organization and deidentify template to be
|
|
177
|
+
# Required. Resource name of the organization and deidentify template to be
|
|
178
|
+
# deleted,
|
|
178
179
|
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
179
180
|
# projects/project-id/deidentifyTemplates/432452342.
|
|
180
181
|
# @param [String] fields
|
|
@@ -208,7 +209,8 @@ module Google
|
|
|
208
209
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
209
210
|
# more.
|
|
210
211
|
# @param [String] name
|
|
211
|
-
# Resource name of the organization and deidentify template to be read,
|
|
212
|
+
# Required. Resource name of the organization and deidentify template to be read,
|
|
213
|
+
# for
|
|
212
214
|
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
213
215
|
# projects/project-id/deidentifyTemplates/432452342.
|
|
214
216
|
# @param [String] fields
|
|
@@ -242,8 +244,11 @@ module Google
|
|
|
242
244
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
243
245
|
# more.
|
|
244
246
|
# @param [String] parent
|
|
245
|
-
# The parent resource name, for example projects/my-project-id or
|
|
247
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
246
248
|
# organizations/my-org-id.
|
|
249
|
+
# @param [String] location_id
|
|
250
|
+
# The geographic location where deidentifications templates will be retrieved
|
|
251
|
+
# from. Use `-` for all locations. Reserved for future extensions.
|
|
247
252
|
# @param [String] order_by
|
|
248
253
|
# Optional comma separated list of fields to order by,
|
|
249
254
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
@@ -278,11 +283,12 @@ module Google
|
|
|
278
283
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
279
284
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
280
285
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
281
|
-
def list_organization_deidentify_templates(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
286
|
+
def list_organization_deidentify_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
282
287
|
command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', options)
|
|
283
288
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
|
|
284
289
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
|
|
285
290
|
command.params['parent'] = parent unless parent.nil?
|
|
291
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
|
286
292
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
287
293
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
288
294
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -295,7 +301,8 @@ module Google
|
|
|
295
301
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
296
302
|
# more.
|
|
297
303
|
# @param [String] name
|
|
298
|
-
# Resource name of organization and deidentify template to be updated,
|
|
304
|
+
# Required. Resource name of organization and deidentify template to be updated,
|
|
305
|
+
# for
|
|
299
306
|
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
300
307
|
# projects/project-id/deidentifyTemplates/432452342.
|
|
301
308
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object
|
|
@@ -332,7 +339,7 @@ module Google
|
|
|
332
339
|
# for inspecting content, images, and storage.
|
|
333
340
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
334
341
|
# @param [String] parent
|
|
335
|
-
# The parent resource name, for example projects/my-project-id or
|
|
342
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
336
343
|
# organizations/my-org-id.
|
|
337
344
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
|
|
338
345
|
# @param [String] fields
|
|
@@ -367,7 +374,8 @@ module Google
|
|
|
367
374
|
# Deletes an InspectTemplate.
|
|
368
375
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
369
376
|
# @param [String] name
|
|
370
|
-
# Resource name of the organization and inspectTemplate to be deleted,
|
|
377
|
+
# Required. Resource name of the organization and inspectTemplate to be deleted,
|
|
378
|
+
# for
|
|
371
379
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
372
380
|
# projects/project-id/inspectTemplates/432452342.
|
|
373
381
|
# @param [String] fields
|
|
@@ -400,7 +408,8 @@ module Google
|
|
|
400
408
|
# Gets an InspectTemplate.
|
|
401
409
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
402
410
|
# @param [String] name
|
|
403
|
-
# Resource name of the organization and inspectTemplate to be read,
|
|
411
|
+
# Required. Resource name of the organization and inspectTemplate to be read,
|
|
412
|
+
# for
|
|
404
413
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
405
414
|
# projects/project-id/inspectTemplates/432452342.
|
|
406
415
|
# @param [String] fields
|
|
@@ -433,8 +442,11 @@ module Google
|
|
|
433
442
|
# Lists InspectTemplates.
|
|
434
443
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
435
444
|
# @param [String] parent
|
|
436
|
-
# The parent resource name, for example projects/my-project-id or
|
|
445
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
437
446
|
# organizations/my-org-id.
|
|
447
|
+
# @param [String] location_id
|
|
448
|
+
# The geographic location where inspection templates will be retrieved from.
|
|
449
|
+
# Use `-` for all locations. Reserved for future extensions.
|
|
438
450
|
# @param [String] order_by
|
|
439
451
|
# Optional comma separated list of fields to order by,
|
|
440
452
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
@@ -469,11 +481,12 @@ module Google
|
|
|
469
481
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
470
482
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
471
483
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
472
|
-
def list_organization_inspect_templates(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
484
|
+
def list_organization_inspect_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
473
485
|
command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', options)
|
|
474
486
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
|
|
475
487
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
|
|
476
488
|
command.params['parent'] = parent unless parent.nil?
|
|
489
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
|
477
490
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
478
491
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
479
492
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -485,7 +498,7 @@ module Google
|
|
|
485
498
|
# Updates the InspectTemplate.
|
|
486
499
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
487
500
|
# @param [String] name
|
|
488
|
-
# Resource name of organization and inspectTemplate to be updated, for
|
|
501
|
+
# Required. Resource name of organization and inspectTemplate to be updated, for
|
|
489
502
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
490
503
|
# projects/project-id/inspectTemplates/432452342.
|
|
491
504
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object
|
|
@@ -518,13 +531,17 @@ module Google
|
|
|
518
531
|
execute_or_queue_command(command, &block)
|
|
519
532
|
end
|
|
520
533
|
|
|
521
|
-
# Creates a
|
|
522
|
-
#
|
|
523
|
-
#
|
|
534
|
+
# Creates a DeidentifyTemplate for re-using frequently used configuration
|
|
535
|
+
# for de-identifying content, images, and storage.
|
|
536
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
537
|
+
# more.
|
|
524
538
|
# @param [String] parent
|
|
525
|
-
# The parent resource name, for example projects/my-project-id or
|
|
539
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
526
540
|
# organizations/my-org-id.
|
|
527
|
-
# @param [
|
|
541
|
+
# @param [String] location_id
|
|
542
|
+
# The geographic location to store the deidentification template. Reserved
|
|
543
|
+
# for future extensions.
|
|
544
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
|
|
528
545
|
# @param [String] fields
|
|
529
546
|
# Selector specifying which fields to include in a partial response.
|
|
530
547
|
# @param [String] quota_user
|
|
@@ -534,33 +551,35 @@ module Google
|
|
|
534
551
|
# Request-specific options
|
|
535
552
|
#
|
|
536
553
|
# @yield [result, err] Result & error if block supplied
|
|
537
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
554
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
|
538
555
|
# @yieldparam err [StandardError] error object if request failed
|
|
539
556
|
#
|
|
540
|
-
# @return [Google::Apis::DlpV2::
|
|
557
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
|
541
558
|
#
|
|
542
559
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
543
560
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
544
561
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
545
|
-
def
|
|
546
|
-
command = make_simple_command(:post, 'v2/{+parent}/
|
|
547
|
-
command.request_representation = Google::Apis::DlpV2::
|
|
548
|
-
command.request_object =
|
|
549
|
-
command.response_representation = Google::Apis::DlpV2::
|
|
550
|
-
command.response_class = Google::Apis::DlpV2::
|
|
562
|
+
def create_organization_location_deidentify_template(parent, location_id, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
563
|
+
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/deidentifyTemplates', options)
|
|
564
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
|
|
565
|
+
command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
|
|
566
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
567
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
551
568
|
command.params['parent'] = parent unless parent.nil?
|
|
569
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
552
570
|
command.query['fields'] = fields unless fields.nil?
|
|
553
571
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
554
572
|
execute_or_queue_command(command, &block)
|
|
555
573
|
end
|
|
556
574
|
|
|
557
|
-
# Deletes a
|
|
558
|
-
# See https://cloud.google.com/dlp/docs/creating-
|
|
559
|
-
#
|
|
575
|
+
# Deletes a DeidentifyTemplate.
|
|
576
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
577
|
+
# more.
|
|
560
578
|
# @param [String] name
|
|
561
|
-
# Resource name of the organization and
|
|
562
|
-
#
|
|
563
|
-
#
|
|
579
|
+
# Required. Resource name of the organization and deidentify template to be
|
|
580
|
+
# deleted,
|
|
581
|
+
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
582
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
|
564
583
|
# @param [String] fields
|
|
565
584
|
# Selector specifying which fields to include in a partial response.
|
|
566
585
|
# @param [String] quota_user
|
|
@@ -578,7 +597,7 @@ module Google
|
|
|
578
597
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
579
598
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
580
599
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
581
|
-
def
|
|
600
|
+
def delete_organization_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
582
601
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
583
602
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
584
603
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
@@ -588,13 +607,14 @@ module Google
|
|
|
588
607
|
execute_or_queue_command(command, &block)
|
|
589
608
|
end
|
|
590
609
|
|
|
591
|
-
# Gets a
|
|
592
|
-
# See https://cloud.google.com/dlp/docs/creating-
|
|
593
|
-
#
|
|
610
|
+
# Gets a DeidentifyTemplate.
|
|
611
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
612
|
+
# more.
|
|
594
613
|
# @param [String] name
|
|
595
|
-
# Resource name of the organization and
|
|
596
|
-
#
|
|
597
|
-
#
|
|
614
|
+
# Required. Resource name of the organization and deidentify template to be read,
|
|
615
|
+
# for
|
|
616
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
617
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
|
598
618
|
# @param [String] fields
|
|
599
619
|
# Selector specifying which fields to include in a partial response.
|
|
600
620
|
# @param [String] quota_user
|
|
@@ -604,48 +624,1680 @@ module Google
|
|
|
604
624
|
# Request-specific options
|
|
605
625
|
#
|
|
606
626
|
# @yield [result, err] Result & error if block supplied
|
|
607
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
627
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
|
608
628
|
# @yieldparam err [StandardError] error object if request failed
|
|
609
629
|
#
|
|
610
|
-
# @return [Google::Apis::DlpV2::
|
|
630
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
|
611
631
|
#
|
|
612
632
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
613
633
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
614
634
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
615
|
-
def
|
|
635
|
+
def get_organization_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
616
636
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
617
|
-
command.response_representation = Google::Apis::DlpV2::
|
|
618
|
-
command.response_class = Google::Apis::DlpV2::
|
|
637
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
638
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
619
639
|
command.params['name'] = name unless name.nil?
|
|
620
640
|
command.query['fields'] = fields unless fields.nil?
|
|
621
641
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
622
642
|
execute_or_queue_command(command, &block)
|
|
623
643
|
end
|
|
624
644
|
|
|
625
|
-
# Lists
|
|
626
|
-
# See https://cloud.google.com/dlp/docs/creating-
|
|
627
|
-
#
|
|
645
|
+
# Lists DeidentifyTemplates.
|
|
646
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
647
|
+
# more.
|
|
628
648
|
# @param [String] parent
|
|
629
|
-
# The parent resource name, for example projects/my-project-id or
|
|
649
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
630
650
|
# organizations/my-org-id.
|
|
651
|
+
# @param [String] location_id
|
|
652
|
+
# The geographic location where deidentifications templates will be retrieved
|
|
653
|
+
# from. Use `-` for all locations. Reserved for future extensions.
|
|
631
654
|
# @param [String] order_by
|
|
632
655
|
# Optional comma separated list of fields to order by,
|
|
633
656
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
634
657
|
# default sorting order is ascending, redundant space characters are
|
|
635
658
|
# insignificant.
|
|
636
|
-
# Example: `name asc,
|
|
659
|
+
# Example: `name asc,update_time, create_time desc`
|
|
637
660
|
# Supported fields are:
|
|
638
|
-
# - `create_time`: corresponds to time the
|
|
639
|
-
#
|
|
640
|
-
# - `
|
|
641
|
-
# - `
|
|
642
|
-
#
|
|
661
|
+
# - `create_time`: corresponds to time the template was created.
|
|
662
|
+
# - `update_time`: corresponds to time the template was last updated.
|
|
663
|
+
# - `name`: corresponds to template's name.
|
|
664
|
+
# - `display_name`: corresponds to template's display name.
|
|
665
|
+
# @param [Fixnum] page_size
|
|
666
|
+
# Optional size of the page, can be limited by server. If zero server returns
|
|
667
|
+
# a page of max size 100.
|
|
668
|
+
# @param [String] page_token
|
|
669
|
+
# Optional page token to continue retrieval. Comes from previous call
|
|
670
|
+
# to `ListDeidentifyTemplates`.
|
|
671
|
+
# @param [String] fields
|
|
672
|
+
# Selector specifying which fields to include in a partial response.
|
|
673
|
+
# @param [String] quota_user
|
|
674
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
675
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
676
|
+
# @param [Google::Apis::RequestOptions] options
|
|
677
|
+
# Request-specific options
|
|
678
|
+
#
|
|
679
|
+
# @yield [result, err] Result & error if block supplied
|
|
680
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse] parsed result object
|
|
681
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
682
|
+
#
|
|
683
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse]
|
|
684
|
+
#
|
|
685
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
686
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
687
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
688
|
+
def list_organization_location_deidentify_templates(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
689
|
+
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/deidentifyTemplates', options)
|
|
690
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
|
|
691
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
|
|
692
|
+
command.params['parent'] = parent unless parent.nil?
|
|
693
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
694
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
695
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
696
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
697
|
+
command.query['fields'] = fields unless fields.nil?
|
|
698
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
699
|
+
execute_or_queue_command(command, &block)
|
|
700
|
+
end
|
|
701
|
+
|
|
702
|
+
# Updates the DeidentifyTemplate.
|
|
703
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
704
|
+
# more.
|
|
705
|
+
# @param [String] name
|
|
706
|
+
# Required. Resource name of organization and deidentify template to be updated,
|
|
707
|
+
# for
|
|
708
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
709
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
|
710
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object
|
|
711
|
+
# @param [String] fields
|
|
712
|
+
# Selector specifying which fields to include in a partial response.
|
|
713
|
+
# @param [String] quota_user
|
|
714
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
715
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
716
|
+
# @param [Google::Apis::RequestOptions] options
|
|
717
|
+
# Request-specific options
|
|
718
|
+
#
|
|
719
|
+
# @yield [result, err] Result & error if block supplied
|
|
720
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
|
721
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
722
|
+
#
|
|
723
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
|
724
|
+
#
|
|
725
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
726
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
727
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
728
|
+
def patch_organization_location_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
729
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
730
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation
|
|
731
|
+
command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object
|
|
732
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
733
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
734
|
+
command.params['name'] = name unless name.nil?
|
|
735
|
+
command.query['fields'] = fields unless fields.nil?
|
|
736
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
737
|
+
execute_or_queue_command(command, &block)
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
# Creates an InspectTemplate for re-using frequently used configuration
|
|
741
|
+
# for inspecting content, images, and storage.
|
|
742
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
743
|
+
# @param [String] parent
|
|
744
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
745
|
+
# organizations/my-org-id.
|
|
746
|
+
# @param [String] location_id
|
|
747
|
+
# The geographic location to store the inspection template. Reserved for
|
|
748
|
+
# future extensions.
|
|
749
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
|
|
750
|
+
# @param [String] fields
|
|
751
|
+
# Selector specifying which fields to include in a partial response.
|
|
752
|
+
# @param [String] quota_user
|
|
753
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
754
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
755
|
+
# @param [Google::Apis::RequestOptions] options
|
|
756
|
+
# Request-specific options
|
|
757
|
+
#
|
|
758
|
+
# @yield [result, err] Result & error if block supplied
|
|
759
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
|
760
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
761
|
+
#
|
|
762
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
|
763
|
+
#
|
|
764
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
765
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
766
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
767
|
+
def create_organization_location_inspect_template(parent, location_id, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
768
|
+
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/inspectTemplates', options)
|
|
769
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
|
|
770
|
+
command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
|
|
771
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
772
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
773
|
+
command.params['parent'] = parent unless parent.nil?
|
|
774
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
775
|
+
command.query['fields'] = fields unless fields.nil?
|
|
776
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
777
|
+
execute_or_queue_command(command, &block)
|
|
778
|
+
end
|
|
779
|
+
|
|
780
|
+
# Deletes an InspectTemplate.
|
|
781
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
782
|
+
# @param [String] name
|
|
783
|
+
# Required. Resource name of the organization and inspectTemplate to be deleted,
|
|
784
|
+
# for
|
|
785
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
786
|
+
# projects/project-id/inspectTemplates/432452342.
|
|
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_organization_location_inspect_template(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 an InspectTemplate.
|
|
815
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
816
|
+
# @param [String] name
|
|
817
|
+
# Required. Resource name of the organization and inspectTemplate to be read,
|
|
818
|
+
# for
|
|
819
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
820
|
+
# projects/project-id/inspectTemplates/432452342.
|
|
821
|
+
# @param [String] fields
|
|
822
|
+
# Selector specifying which fields to include in a partial response.
|
|
823
|
+
# @param [String] quota_user
|
|
824
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
825
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
826
|
+
# @param [Google::Apis::RequestOptions] options
|
|
827
|
+
# Request-specific options
|
|
828
|
+
#
|
|
829
|
+
# @yield [result, err] Result & error if block supplied
|
|
830
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
|
831
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
832
|
+
#
|
|
833
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
|
834
|
+
#
|
|
835
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
836
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
837
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
838
|
+
def get_organization_location_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
839
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
840
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
841
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
842
|
+
command.params['name'] = name unless name.nil?
|
|
843
|
+
command.query['fields'] = fields unless fields.nil?
|
|
844
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
845
|
+
execute_or_queue_command(command, &block)
|
|
846
|
+
end
|
|
847
|
+
|
|
848
|
+
# Lists InspectTemplates.
|
|
849
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
850
|
+
# @param [String] parent
|
|
851
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
852
|
+
# organizations/my-org-id.
|
|
853
|
+
# @param [String] location_id
|
|
854
|
+
# The geographic location where inspection templates will be retrieved from.
|
|
855
|
+
# Use `-` for all locations. Reserved for future extensions.
|
|
856
|
+
# @param [String] order_by
|
|
857
|
+
# Optional comma separated list of fields to order by,
|
|
858
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
859
|
+
# default sorting order is ascending, redundant space characters are
|
|
860
|
+
# insignificant.
|
|
861
|
+
# Example: `name asc,update_time, create_time desc`
|
|
862
|
+
# Supported fields are:
|
|
863
|
+
# - `create_time`: corresponds to time the template was created.
|
|
864
|
+
# - `update_time`: corresponds to time the template was last updated.
|
|
865
|
+
# - `name`: corresponds to template's name.
|
|
866
|
+
# - `display_name`: corresponds to template's display name.
|
|
643
867
|
# @param [Fixnum] page_size
|
|
644
868
|
# Optional size of the page, can be limited by server. If zero server returns
|
|
645
869
|
# a page of max size 100.
|
|
646
870
|
# @param [String] page_token
|
|
647
871
|
# Optional page token to continue retrieval. Comes from previous call
|
|
648
|
-
# to `
|
|
872
|
+
# to `ListInspectTemplates`.
|
|
873
|
+
# @param [String] fields
|
|
874
|
+
# Selector specifying which fields to include in a partial response.
|
|
875
|
+
# @param [String] quota_user
|
|
876
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
877
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
878
|
+
# @param [Google::Apis::RequestOptions] options
|
|
879
|
+
# Request-specific options
|
|
880
|
+
#
|
|
881
|
+
# @yield [result, err] Result & error if block supplied
|
|
882
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse] parsed result object
|
|
883
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
884
|
+
#
|
|
885
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse]
|
|
886
|
+
#
|
|
887
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
888
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
889
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
890
|
+
def list_organization_location_inspect_templates(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
891
|
+
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/inspectTemplates', options)
|
|
892
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
|
|
893
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
|
|
894
|
+
command.params['parent'] = parent unless parent.nil?
|
|
895
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
896
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
897
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
898
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
899
|
+
command.query['fields'] = fields unless fields.nil?
|
|
900
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
901
|
+
execute_or_queue_command(command, &block)
|
|
902
|
+
end
|
|
903
|
+
|
|
904
|
+
# Updates the InspectTemplate.
|
|
905
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
906
|
+
# @param [String] name
|
|
907
|
+
# Required. Resource name of organization and inspectTemplate to be updated, for
|
|
908
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
909
|
+
# projects/project-id/inspectTemplates/432452342.
|
|
910
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object
|
|
911
|
+
# @param [String] fields
|
|
912
|
+
# Selector specifying which fields to include in a partial response.
|
|
913
|
+
# @param [String] quota_user
|
|
914
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
915
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
916
|
+
# @param [Google::Apis::RequestOptions] options
|
|
917
|
+
# Request-specific options
|
|
918
|
+
#
|
|
919
|
+
# @yield [result, err] Result & error if block supplied
|
|
920
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
|
921
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
922
|
+
#
|
|
923
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
|
924
|
+
#
|
|
925
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
926
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
927
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
928
|
+
def patch_organization_location_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
929
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
930
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation
|
|
931
|
+
command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object
|
|
932
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
933
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
934
|
+
command.params['name'] = name unless name.nil?
|
|
935
|
+
command.query['fields'] = fields unless fields.nil?
|
|
936
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
937
|
+
execute_or_queue_command(command, &block)
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
# Creates a pre-built stored infoType to be used for inspection.
|
|
941
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
942
|
+
# learn more.
|
|
943
|
+
# @param [String] parent
|
|
944
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
945
|
+
# organizations/my-org-id.
|
|
946
|
+
# @param [String] location_id
|
|
947
|
+
# The geographic location to store the stored infoType. Reserved for
|
|
948
|
+
# future extensions.
|
|
949
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
|
|
950
|
+
# @param [String] fields
|
|
951
|
+
# Selector specifying which fields to include in a partial response.
|
|
952
|
+
# @param [String] quota_user
|
|
953
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
954
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
955
|
+
# @param [Google::Apis::RequestOptions] options
|
|
956
|
+
# Request-specific options
|
|
957
|
+
#
|
|
958
|
+
# @yield [result, err] Result & error if block supplied
|
|
959
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
|
960
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
961
|
+
#
|
|
962
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
|
963
|
+
#
|
|
964
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
965
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
966
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
967
|
+
def create_organization_location_stored_info_type(parent, location_id, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
968
|
+
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/storedInfoTypes', options)
|
|
969
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation
|
|
970
|
+
command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object
|
|
971
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
|
972
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
|
973
|
+
command.params['parent'] = parent unless parent.nil?
|
|
974
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
975
|
+
command.query['fields'] = fields unless fields.nil?
|
|
976
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
977
|
+
execute_or_queue_command(command, &block)
|
|
978
|
+
end
|
|
979
|
+
|
|
980
|
+
# Deletes a stored infoType.
|
|
981
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
982
|
+
# learn more.
|
|
983
|
+
# @param [String] name
|
|
984
|
+
# Required. Resource name of the organization and storedInfoType to be deleted,
|
|
985
|
+
# for
|
|
986
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
|
987
|
+
# projects/project-id/storedInfoTypes/432452342.
|
|
988
|
+
# @param [String] fields
|
|
989
|
+
# Selector specifying which fields to include in a partial response.
|
|
990
|
+
# @param [String] quota_user
|
|
991
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
992
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
993
|
+
# @param [Google::Apis::RequestOptions] options
|
|
994
|
+
# Request-specific options
|
|
995
|
+
#
|
|
996
|
+
# @yield [result, err] Result & error if block supplied
|
|
997
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
998
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
999
|
+
#
|
|
1000
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
1001
|
+
#
|
|
1002
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1003
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1004
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1005
|
+
def delete_organization_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1006
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1007
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
1008
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
1009
|
+
command.params['name'] = name unless name.nil?
|
|
1010
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1011
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1012
|
+
execute_or_queue_command(command, &block)
|
|
1013
|
+
end
|
|
1014
|
+
|
|
1015
|
+
# Gets a stored infoType.
|
|
1016
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1017
|
+
# learn more.
|
|
1018
|
+
# @param [String] name
|
|
1019
|
+
# Required. Resource name of the organization and storedInfoType to be read, for
|
|
1020
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
|
1021
|
+
# projects/project-id/storedInfoTypes/432452342.
|
|
1022
|
+
# @param [String] fields
|
|
1023
|
+
# Selector specifying which fields to include in a partial response.
|
|
1024
|
+
# @param [String] quota_user
|
|
1025
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1026
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1027
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1028
|
+
# Request-specific options
|
|
1029
|
+
#
|
|
1030
|
+
# @yield [result, err] Result & error if block supplied
|
|
1031
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
|
1032
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1033
|
+
#
|
|
1034
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
|
1035
|
+
#
|
|
1036
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1037
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1038
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1039
|
+
def get_organization_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1040
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1041
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
|
1042
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
|
1043
|
+
command.params['name'] = name unless name.nil?
|
|
1044
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1045
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1046
|
+
execute_or_queue_command(command, &block)
|
|
1047
|
+
end
|
|
1048
|
+
|
|
1049
|
+
# Lists stored infoTypes.
|
|
1050
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1051
|
+
# learn more.
|
|
1052
|
+
# @param [String] parent
|
|
1053
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
1054
|
+
# organizations/my-org-id.
|
|
1055
|
+
# @param [String] location_id
|
|
1056
|
+
# The geographic location where stored infoTypes will be retrieved from.
|
|
1057
|
+
# Use `-` for all locations. Reserved for future extensions.
|
|
1058
|
+
# @param [String] order_by
|
|
1059
|
+
# Optional comma separated list of fields to order by,
|
|
1060
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
1061
|
+
# default sorting order is ascending, redundant space characters are
|
|
1062
|
+
# insignificant.
|
|
1063
|
+
# Example: `name asc, display_name, create_time desc`
|
|
1064
|
+
# Supported fields are:
|
|
1065
|
+
# - `create_time`: corresponds to time the most recent version of the
|
|
1066
|
+
# resource was created.
|
|
1067
|
+
# - `state`: corresponds to the state of the resource.
|
|
1068
|
+
# - `name`: corresponds to resource name.
|
|
1069
|
+
# - `display_name`: corresponds to info type's display name.
|
|
1070
|
+
# @param [Fixnum] page_size
|
|
1071
|
+
# Optional size of the page, can be limited by server. If zero server returns
|
|
1072
|
+
# a page of max size 100.
|
|
1073
|
+
# @param [String] page_token
|
|
1074
|
+
# Optional page token to continue retrieval. Comes from previous call
|
|
1075
|
+
# to `ListStoredInfoTypes`.
|
|
1076
|
+
# @param [String] fields
|
|
1077
|
+
# Selector specifying which fields to include in a partial response.
|
|
1078
|
+
# @param [String] quota_user
|
|
1079
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1080
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1081
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1082
|
+
# Request-specific options
|
|
1083
|
+
#
|
|
1084
|
+
# @yield [result, err] Result & error if block supplied
|
|
1085
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse] parsed result object
|
|
1086
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1087
|
+
#
|
|
1088
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse]
|
|
1089
|
+
#
|
|
1090
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1091
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1092
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1093
|
+
def list_organization_location_stored_info_types(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1094
|
+
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/storedInfoTypes', options)
|
|
1095
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
|
|
1096
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
|
|
1097
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1098
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1099
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1100
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1101
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1102
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1103
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1104
|
+
execute_or_queue_command(command, &block)
|
|
1105
|
+
end
|
|
1106
|
+
|
|
1107
|
+
# Updates the stored infoType by creating a new version. The existing version
|
|
1108
|
+
# will continue to be used until the new version is ready.
|
|
1109
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1110
|
+
# learn more.
|
|
1111
|
+
# @param [String] name
|
|
1112
|
+
# Required. Resource name of organization and storedInfoType to be updated, for
|
|
1113
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
|
1114
|
+
# projects/project-id/storedInfoTypes/432452342.
|
|
1115
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_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::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
|
1126
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1127
|
+
#
|
|
1128
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
|
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 patch_organization_location_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1134
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
1135
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest::Representation
|
|
1136
|
+
command.request_object = google_privacy_dlp_v2_update_stored_info_type_request_object
|
|
1137
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
|
1138
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
|
1139
|
+
command.params['name'] = name unless name.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
|
+
# Creates a pre-built stored infoType to be used for inspection.
|
|
1146
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1147
|
+
# learn more.
|
|
1148
|
+
# @param [String] parent
|
|
1149
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
1150
|
+
# organizations/my-org-id.
|
|
1151
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
|
|
1152
|
+
# @param [String] fields
|
|
1153
|
+
# Selector specifying which fields to include in a partial response.
|
|
1154
|
+
# @param [String] quota_user
|
|
1155
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1156
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1157
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1158
|
+
# Request-specific options
|
|
1159
|
+
#
|
|
1160
|
+
# @yield [result, err] Result & error if block supplied
|
|
1161
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
|
1162
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1163
|
+
#
|
|
1164
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
|
1165
|
+
#
|
|
1166
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1167
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1168
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1169
|
+
def create_organization_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1170
|
+
command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', options)
|
|
1171
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation
|
|
1172
|
+
command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object
|
|
1173
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
|
1174
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
|
1175
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1176
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1177
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1178
|
+
execute_or_queue_command(command, &block)
|
|
1179
|
+
end
|
|
1180
|
+
|
|
1181
|
+
# Deletes a stored infoType.
|
|
1182
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1183
|
+
# learn more.
|
|
1184
|
+
# @param [String] name
|
|
1185
|
+
# Required. Resource name of the organization and storedInfoType to be deleted,
|
|
1186
|
+
# for
|
|
1187
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
|
1188
|
+
# projects/project-id/storedInfoTypes/432452342.
|
|
1189
|
+
# @param [String] fields
|
|
1190
|
+
# Selector specifying which fields to include in a partial response.
|
|
1191
|
+
# @param [String] quota_user
|
|
1192
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1193
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1194
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1195
|
+
# Request-specific options
|
|
1196
|
+
#
|
|
1197
|
+
# @yield [result, err] Result & error if block supplied
|
|
1198
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
1199
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1200
|
+
#
|
|
1201
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
1202
|
+
#
|
|
1203
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1204
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1205
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1206
|
+
def delete_organization_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1207
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1208
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
1209
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
1210
|
+
command.params['name'] = name unless name.nil?
|
|
1211
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1212
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1213
|
+
execute_or_queue_command(command, &block)
|
|
1214
|
+
end
|
|
1215
|
+
|
|
1216
|
+
# Gets a stored infoType.
|
|
1217
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1218
|
+
# learn more.
|
|
1219
|
+
# @param [String] name
|
|
1220
|
+
# Required. Resource name of the organization and storedInfoType to be read, for
|
|
1221
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
|
1222
|
+
# projects/project-id/storedInfoTypes/432452342.
|
|
1223
|
+
# @param [String] fields
|
|
1224
|
+
# Selector specifying which fields to include in a partial response.
|
|
1225
|
+
# @param [String] quota_user
|
|
1226
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1227
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1228
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1229
|
+
# Request-specific options
|
|
1230
|
+
#
|
|
1231
|
+
# @yield [result, err] Result & error if block supplied
|
|
1232
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
|
1233
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1234
|
+
#
|
|
1235
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
|
1236
|
+
#
|
|
1237
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1238
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1239
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1240
|
+
def get_organization_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1241
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1242
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
|
1243
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
|
1244
|
+
command.params['name'] = name unless name.nil?
|
|
1245
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1246
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1247
|
+
execute_or_queue_command(command, &block)
|
|
1248
|
+
end
|
|
1249
|
+
|
|
1250
|
+
# Lists stored infoTypes.
|
|
1251
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1252
|
+
# learn more.
|
|
1253
|
+
# @param [String] parent
|
|
1254
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
1255
|
+
# organizations/my-org-id.
|
|
1256
|
+
# @param [String] location_id
|
|
1257
|
+
# The geographic location where stored infoTypes will be retrieved from.
|
|
1258
|
+
# Use `-` for all locations. Reserved for future extensions.
|
|
1259
|
+
# @param [String] order_by
|
|
1260
|
+
# Optional comma separated list of fields to order by,
|
|
1261
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
1262
|
+
# default sorting order is ascending, redundant space characters are
|
|
1263
|
+
# insignificant.
|
|
1264
|
+
# Example: `name asc, display_name, create_time desc`
|
|
1265
|
+
# Supported fields are:
|
|
1266
|
+
# - `create_time`: corresponds to time the most recent version of the
|
|
1267
|
+
# resource was created.
|
|
1268
|
+
# - `state`: corresponds to the state of the resource.
|
|
1269
|
+
# - `name`: corresponds to resource name.
|
|
1270
|
+
# - `display_name`: corresponds to info type's display name.
|
|
1271
|
+
# @param [Fixnum] page_size
|
|
1272
|
+
# Optional size of the page, can be limited by server. If zero server returns
|
|
1273
|
+
# a page of max size 100.
|
|
1274
|
+
# @param [String] page_token
|
|
1275
|
+
# Optional page token to continue retrieval. Comes from previous call
|
|
1276
|
+
# to `ListStoredInfoTypes`.
|
|
1277
|
+
# @param [String] fields
|
|
1278
|
+
# Selector specifying which fields to include in a partial response.
|
|
1279
|
+
# @param [String] quota_user
|
|
1280
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1281
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1282
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1283
|
+
# Request-specific options
|
|
1284
|
+
#
|
|
1285
|
+
# @yield [result, err] Result & error if block supplied
|
|
1286
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse] parsed result object
|
|
1287
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1288
|
+
#
|
|
1289
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse]
|
|
1290
|
+
#
|
|
1291
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1292
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1293
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1294
|
+
def list_organization_stored_info_types(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1295
|
+
command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', options)
|
|
1296
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
|
|
1297
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
|
|
1298
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1299
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
|
1300
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1301
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1302
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1303
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1304
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1305
|
+
execute_or_queue_command(command, &block)
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1308
|
+
# Updates the stored infoType by creating a new version. The existing version
|
|
1309
|
+
# will continue to be used until the new version is ready.
|
|
1310
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1311
|
+
# learn more.
|
|
1312
|
+
# @param [String] name
|
|
1313
|
+
# Required. Resource name of organization and storedInfoType to be updated, for
|
|
1314
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
|
1315
|
+
# projects/project-id/storedInfoTypes/432452342.
|
|
1316
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_request_object
|
|
1317
|
+
# @param [String] fields
|
|
1318
|
+
# Selector specifying which fields to include in a partial response.
|
|
1319
|
+
# @param [String] quota_user
|
|
1320
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1321
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1322
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1323
|
+
# Request-specific options
|
|
1324
|
+
#
|
|
1325
|
+
# @yield [result, err] Result & error if block supplied
|
|
1326
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
|
1327
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1328
|
+
#
|
|
1329
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
|
1330
|
+
#
|
|
1331
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1332
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1333
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1334
|
+
def patch_organization_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1335
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
1336
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest::Representation
|
|
1337
|
+
command.request_object = google_privacy_dlp_v2_update_stored_info_type_request_object
|
|
1338
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
|
1339
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
|
1340
|
+
command.params['name'] = name unless name.nil?
|
|
1341
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1342
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1343
|
+
execute_or_queue_command(command, &block)
|
|
1344
|
+
end
|
|
1345
|
+
|
|
1346
|
+
# De-identifies potentially sensitive info from a ContentItem.
|
|
1347
|
+
# This method has limits on input size and output size.
|
|
1348
|
+
# See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
|
|
1349
|
+
# learn more.
|
|
1350
|
+
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
|
1351
|
+
# system will automatically choose what detectors to run. By default this may
|
|
1352
|
+
# be all types, but may change over time as detectors are updated.
|
|
1353
|
+
# @param [String] parent
|
|
1354
|
+
# The parent resource name, for example projects/my-project-id.
|
|
1355
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object
|
|
1356
|
+
# @param [String] fields
|
|
1357
|
+
# Selector specifying which fields to include in a partial response.
|
|
1358
|
+
# @param [String] quota_user
|
|
1359
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1360
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1361
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1362
|
+
# Request-specific options
|
|
1363
|
+
#
|
|
1364
|
+
# @yield [result, err] Result & error if block supplied
|
|
1365
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse] parsed result object
|
|
1366
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1367
|
+
#
|
|
1368
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse]
|
|
1369
|
+
#
|
|
1370
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1371
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1372
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1373
|
+
def deidentify_project_content(parent, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1374
|
+
command = make_simple_command(:post, 'v2/{+parent}/content:deidentify', options)
|
|
1375
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest::Representation
|
|
1376
|
+
command.request_object = google_privacy_dlp_v2_deidentify_content_request_object
|
|
1377
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse::Representation
|
|
1378
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse
|
|
1379
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1380
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1381
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1382
|
+
execute_or_queue_command(command, &block)
|
|
1383
|
+
end
|
|
1384
|
+
|
|
1385
|
+
# Finds potentially sensitive info in content.
|
|
1386
|
+
# This method has limits on input size, processing time, and output size.
|
|
1387
|
+
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
|
1388
|
+
# system will automatically choose what detectors to run. By default this may
|
|
1389
|
+
# be all types, but may change over time as detectors are updated.
|
|
1390
|
+
# For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images
|
|
1391
|
+
# and https://cloud.google.com/dlp/docs/inspecting-text,
|
|
1392
|
+
# @param [String] parent
|
|
1393
|
+
# The parent resource name, for example projects/my-project-id.
|
|
1394
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
|
|
1395
|
+
# @param [String] fields
|
|
1396
|
+
# Selector specifying which fields to include in a partial response.
|
|
1397
|
+
# @param [String] quota_user
|
|
1398
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1399
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1400
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1401
|
+
# Request-specific options
|
|
1402
|
+
#
|
|
1403
|
+
# @yield [result, err] Result & error if block supplied
|
|
1404
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse] parsed result object
|
|
1405
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1406
|
+
#
|
|
1407
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse]
|
|
1408
|
+
#
|
|
1409
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1410
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1411
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1412
|
+
def inspect_project_content(parent, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1413
|
+
command = make_simple_command(:post, 'v2/{+parent}/content:inspect', options)
|
|
1414
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest::Representation
|
|
1415
|
+
command.request_object = google_privacy_dlp_v2_inspect_content_request_object
|
|
1416
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse::Representation
|
|
1417
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse
|
|
1418
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1419
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1420
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1421
|
+
execute_or_queue_command(command, &block)
|
|
1422
|
+
end
|
|
1423
|
+
|
|
1424
|
+
# Re-identifies content that has been de-identified.
|
|
1425
|
+
# See
|
|
1426
|
+
# https://cloud.google.com/dlp/docs/pseudonymization#re-
|
|
1427
|
+
# identification_in_free_text_code_example
|
|
1428
|
+
# to learn more.
|
|
1429
|
+
# @param [String] parent
|
|
1430
|
+
# Required. The parent resource name.
|
|
1431
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
|
|
1432
|
+
# @param [String] fields
|
|
1433
|
+
# Selector specifying which fields to include in a partial response.
|
|
1434
|
+
# @param [String] quota_user
|
|
1435
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1436
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1437
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1438
|
+
# Request-specific options
|
|
1439
|
+
#
|
|
1440
|
+
# @yield [result, err] Result & error if block supplied
|
|
1441
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse] parsed result object
|
|
1442
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1443
|
+
#
|
|
1444
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse]
|
|
1445
|
+
#
|
|
1446
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1447
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1448
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1449
|
+
def reidentify_project_content(parent, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1450
|
+
command = make_simple_command(:post, 'v2/{+parent}/content:reidentify', options)
|
|
1451
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest::Representation
|
|
1452
|
+
command.request_object = google_privacy_dlp_v2_reidentify_content_request_object
|
|
1453
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse::Representation
|
|
1454
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse
|
|
1455
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1456
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1457
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1458
|
+
execute_or_queue_command(command, &block)
|
|
1459
|
+
end
|
|
1460
|
+
|
|
1461
|
+
# Creates a DeidentifyTemplate for re-using frequently used configuration
|
|
1462
|
+
# for de-identifying content, images, and storage.
|
|
1463
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
1464
|
+
# more.
|
|
1465
|
+
# @param [String] parent
|
|
1466
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
1467
|
+
# organizations/my-org-id.
|
|
1468
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
|
|
1469
|
+
# @param [String] fields
|
|
1470
|
+
# Selector specifying which fields to include in a partial response.
|
|
1471
|
+
# @param [String] quota_user
|
|
1472
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1473
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1474
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1475
|
+
# Request-specific options
|
|
1476
|
+
#
|
|
1477
|
+
# @yield [result, err] Result & error if block supplied
|
|
1478
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
|
1479
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1480
|
+
#
|
|
1481
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
|
1482
|
+
#
|
|
1483
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1484
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1485
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1486
|
+
def create_project_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1487
|
+
command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
|
|
1488
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
|
|
1489
|
+
command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
|
|
1490
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
1491
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
1492
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1493
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1494
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1495
|
+
execute_or_queue_command(command, &block)
|
|
1496
|
+
end
|
|
1497
|
+
|
|
1498
|
+
# Deletes a DeidentifyTemplate.
|
|
1499
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
1500
|
+
# more.
|
|
1501
|
+
# @param [String] name
|
|
1502
|
+
# Required. Resource name of the organization and deidentify template to be
|
|
1503
|
+
# deleted,
|
|
1504
|
+
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
1505
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
|
1506
|
+
# @param [String] fields
|
|
1507
|
+
# Selector specifying which fields to include in a partial response.
|
|
1508
|
+
# @param [String] quota_user
|
|
1509
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1510
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1511
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1512
|
+
# Request-specific options
|
|
1513
|
+
#
|
|
1514
|
+
# @yield [result, err] Result & error if block supplied
|
|
1515
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
1516
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1517
|
+
#
|
|
1518
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
1519
|
+
#
|
|
1520
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1521
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1522
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1523
|
+
def delete_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1524
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1525
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
1526
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
1527
|
+
command.params['name'] = name unless name.nil?
|
|
1528
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1530
|
+
execute_or_queue_command(command, &block)
|
|
1531
|
+
end
|
|
1532
|
+
|
|
1533
|
+
# Gets a DeidentifyTemplate.
|
|
1534
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
1535
|
+
# more.
|
|
1536
|
+
# @param [String] name
|
|
1537
|
+
# Required. Resource name of the organization and deidentify template to be read,
|
|
1538
|
+
# for
|
|
1539
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
1540
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
|
1541
|
+
# @param [String] fields
|
|
1542
|
+
# Selector specifying which fields to include in a partial response.
|
|
1543
|
+
# @param [String] quota_user
|
|
1544
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1545
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1546
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1547
|
+
# Request-specific options
|
|
1548
|
+
#
|
|
1549
|
+
# @yield [result, err] Result & error if block supplied
|
|
1550
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
|
1551
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1552
|
+
#
|
|
1553
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
|
1554
|
+
#
|
|
1555
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1556
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1557
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1558
|
+
def get_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1559
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1560
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
1561
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
1562
|
+
command.params['name'] = name unless name.nil?
|
|
1563
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1564
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1565
|
+
execute_or_queue_command(command, &block)
|
|
1566
|
+
end
|
|
1567
|
+
|
|
1568
|
+
# Lists DeidentifyTemplates.
|
|
1569
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
1570
|
+
# more.
|
|
1571
|
+
# @param [String] parent
|
|
1572
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
1573
|
+
# organizations/my-org-id.
|
|
1574
|
+
# @param [String] location_id
|
|
1575
|
+
# The geographic location where deidentifications templates will be retrieved
|
|
1576
|
+
# from. Use `-` for all locations. Reserved for future extensions.
|
|
1577
|
+
# @param [String] order_by
|
|
1578
|
+
# Optional comma separated list of fields to order by,
|
|
1579
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
1580
|
+
# default sorting order is ascending, redundant space characters are
|
|
1581
|
+
# insignificant.
|
|
1582
|
+
# Example: `name asc,update_time, create_time desc`
|
|
1583
|
+
# Supported fields are:
|
|
1584
|
+
# - `create_time`: corresponds to time the template was created.
|
|
1585
|
+
# - `update_time`: corresponds to time the template was last updated.
|
|
1586
|
+
# - `name`: corresponds to template's name.
|
|
1587
|
+
# - `display_name`: corresponds to template's display name.
|
|
1588
|
+
# @param [Fixnum] page_size
|
|
1589
|
+
# Optional size of the page, can be limited by server. If zero server returns
|
|
1590
|
+
# a page of max size 100.
|
|
1591
|
+
# @param [String] page_token
|
|
1592
|
+
# Optional page token to continue retrieval. Comes from previous call
|
|
1593
|
+
# to `ListDeidentifyTemplates`.
|
|
1594
|
+
# @param [String] fields
|
|
1595
|
+
# Selector specifying which fields to include in a partial response.
|
|
1596
|
+
# @param [String] quota_user
|
|
1597
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1598
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1599
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1600
|
+
# Request-specific options
|
|
1601
|
+
#
|
|
1602
|
+
# @yield [result, err] Result & error if block supplied
|
|
1603
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse] parsed result object
|
|
1604
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1605
|
+
#
|
|
1606
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse]
|
|
1607
|
+
#
|
|
1608
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1609
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1610
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1611
|
+
def list_project_deidentify_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1612
|
+
command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', options)
|
|
1613
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
|
|
1614
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
|
|
1615
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1616
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
|
1617
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1618
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1619
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1620
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1621
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1622
|
+
execute_or_queue_command(command, &block)
|
|
1623
|
+
end
|
|
1624
|
+
|
|
1625
|
+
# Updates the DeidentifyTemplate.
|
|
1626
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
1627
|
+
# more.
|
|
1628
|
+
# @param [String] name
|
|
1629
|
+
# Required. Resource name of organization and deidentify template to be updated,
|
|
1630
|
+
# for
|
|
1631
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
1632
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
|
1633
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object
|
|
1634
|
+
# @param [String] fields
|
|
1635
|
+
# Selector specifying which fields to include in a partial response.
|
|
1636
|
+
# @param [String] quota_user
|
|
1637
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1638
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1639
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1640
|
+
# Request-specific options
|
|
1641
|
+
#
|
|
1642
|
+
# @yield [result, err] Result & error if block supplied
|
|
1643
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
|
1644
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1645
|
+
#
|
|
1646
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
|
1647
|
+
#
|
|
1648
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1649
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1650
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1651
|
+
def patch_project_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1652
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
1653
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation
|
|
1654
|
+
command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object
|
|
1655
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
1656
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
1657
|
+
command.params['name'] = name unless name.nil?
|
|
1658
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1659
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1660
|
+
execute_or_queue_command(command, &block)
|
|
1661
|
+
end
|
|
1662
|
+
|
|
1663
|
+
# Starts asynchronous cancellation on a long-running DlpJob. The server
|
|
1664
|
+
# makes a best effort to cancel the DlpJob, but success is not
|
|
1665
|
+
# guaranteed.
|
|
1666
|
+
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
1667
|
+
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1668
|
+
# @param [String] name
|
|
1669
|
+
# Required. The name of the DlpJob resource to be cancelled.
|
|
1670
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest] google_privacy_dlp_v2_cancel_dlp_job_request_object
|
|
1671
|
+
# @param [String] fields
|
|
1672
|
+
# Selector specifying which fields to include in a partial response.
|
|
1673
|
+
# @param [String] quota_user
|
|
1674
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1675
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1676
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1677
|
+
# Request-specific options
|
|
1678
|
+
#
|
|
1679
|
+
# @yield [result, err] Result & error if block supplied
|
|
1680
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
1681
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1682
|
+
#
|
|
1683
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
1684
|
+
#
|
|
1685
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1686
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1687
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1688
|
+
def cancel_project_dlp_job(name, google_privacy_dlp_v2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1689
|
+
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
|
1690
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest::Representation
|
|
1691
|
+
command.request_object = google_privacy_dlp_v2_cancel_dlp_job_request_object
|
|
1692
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
1693
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
1694
|
+
command.params['name'] = name unless name.nil?
|
|
1695
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1696
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1697
|
+
execute_or_queue_command(command, &block)
|
|
1698
|
+
end
|
|
1699
|
+
|
|
1700
|
+
# Creates a new job to inspect storage or calculate risk metrics.
|
|
1701
|
+
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
1702
|
+
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1703
|
+
# When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
|
|
1704
|
+
# system will automatically choose what detectors to run. By default this may
|
|
1705
|
+
# be all types, but may change over time as detectors are updated.
|
|
1706
|
+
# @param [String] parent
|
|
1707
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
|
1708
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object
|
|
1709
|
+
# @param [String] fields
|
|
1710
|
+
# Selector specifying which fields to include in a partial response.
|
|
1711
|
+
# @param [String] quota_user
|
|
1712
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1713
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1714
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1715
|
+
# Request-specific options
|
|
1716
|
+
#
|
|
1717
|
+
# @yield [result, err] Result & error if block supplied
|
|
1718
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob] parsed result object
|
|
1719
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1720
|
+
#
|
|
1721
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob]
|
|
1722
|
+
#
|
|
1723
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1724
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1725
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1726
|
+
def create_project_dlp_job(parent, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1727
|
+
command = make_simple_command(:post, 'v2/{+parent}/dlpJobs', options)
|
|
1728
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest::Representation
|
|
1729
|
+
command.request_object = google_privacy_dlp_v2_create_dlp_job_request_object
|
|
1730
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
|
|
1731
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
|
|
1732
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1733
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1734
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1735
|
+
execute_or_queue_command(command, &block)
|
|
1736
|
+
end
|
|
1737
|
+
|
|
1738
|
+
# Deletes a long-running DlpJob. This method indicates that the client is
|
|
1739
|
+
# no longer interested in the DlpJob result. The job will be cancelled if
|
|
1740
|
+
# possible.
|
|
1741
|
+
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
1742
|
+
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1743
|
+
# @param [String] name
|
|
1744
|
+
# Required. The name of the DlpJob resource to be deleted.
|
|
1745
|
+
# @param [String] fields
|
|
1746
|
+
# Selector specifying which fields to include in a partial response.
|
|
1747
|
+
# @param [String] quota_user
|
|
1748
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1749
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1750
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1751
|
+
# Request-specific options
|
|
1752
|
+
#
|
|
1753
|
+
# @yield [result, err] Result & error if block supplied
|
|
1754
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
1755
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1756
|
+
#
|
|
1757
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
1758
|
+
#
|
|
1759
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1760
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1761
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1762
|
+
def delete_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1763
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1764
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
1765
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
1766
|
+
command.params['name'] = name unless name.nil?
|
|
1767
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1768
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1769
|
+
execute_or_queue_command(command, &block)
|
|
1770
|
+
end
|
|
1771
|
+
|
|
1772
|
+
# Gets the latest state of a long-running DlpJob.
|
|
1773
|
+
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
1774
|
+
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1775
|
+
# @param [String] name
|
|
1776
|
+
# Required. The name of the DlpJob resource.
|
|
1777
|
+
# @param [String] fields
|
|
1778
|
+
# Selector specifying which fields to include in a partial response.
|
|
1779
|
+
# @param [String] quota_user
|
|
1780
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1781
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1782
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1783
|
+
# Request-specific options
|
|
1784
|
+
#
|
|
1785
|
+
# @yield [result, err] Result & error if block supplied
|
|
1786
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob] parsed result object
|
|
1787
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1788
|
+
#
|
|
1789
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob]
|
|
1790
|
+
#
|
|
1791
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1792
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1793
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1794
|
+
def get_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1795
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1796
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
|
|
1797
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
|
|
1798
|
+
command.params['name'] = name unless name.nil?
|
|
1799
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1800
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1801
|
+
execute_or_queue_command(command, &block)
|
|
1802
|
+
end
|
|
1803
|
+
|
|
1804
|
+
# Lists DlpJobs that match the specified filter in the request.
|
|
1805
|
+
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
1806
|
+
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1807
|
+
# @param [String] parent
|
|
1808
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
|
1809
|
+
# @param [String] filter
|
|
1810
|
+
# Optional. Allows filtering.
|
|
1811
|
+
# Supported syntax:
|
|
1812
|
+
# * Filter expressions are made up of one or more restrictions.
|
|
1813
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
1814
|
+
# sequence of restrictions implicitly uses `AND`.
|
|
1815
|
+
# * A restriction has the form of `<field> <operator> <value>`.
|
|
1816
|
+
# * Supported fields/values for inspect jobs:
|
|
1817
|
+
# - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
|
|
1818
|
+
# - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
|
1819
|
+
# - `trigger_name` - The resource name of the trigger that created job.
|
|
1820
|
+
# - 'end_time` - Corresponds to time the job finished.
|
|
1821
|
+
# - 'start_time` - Corresponds to time the job finished.
|
|
1822
|
+
# * Supported fields for risk analysis jobs:
|
|
1823
|
+
# - `state` - RUNNING|CANCELED|FINISHED|FAILED
|
|
1824
|
+
# - 'end_time` - Corresponds to time the job finished.
|
|
1825
|
+
# - 'start_time` - Corresponds to time the job finished.
|
|
1826
|
+
# * The operator must be `=` or `!=`.
|
|
1827
|
+
# Examples:
|
|
1828
|
+
# * inspected_storage = cloud_storage AND state = done
|
|
1829
|
+
# * inspected_storage = cloud_storage OR inspected_storage = bigquery
|
|
1830
|
+
# * inspected_storage = cloud_storage AND (state = done OR state = canceled)
|
|
1831
|
+
# * end_time > \"2017-12-12T00:00:00+00:00\"
|
|
1832
|
+
# The length of this field should be no more than 500 characters.
|
|
1833
|
+
# @param [String] location_id
|
|
1834
|
+
# The geographic location where jobs will be retrieved from.
|
|
1835
|
+
# Use `-` for all locations. Reserved for future extensions.
|
|
1836
|
+
# @param [String] order_by
|
|
1837
|
+
# Optional comma separated list of fields to order by,
|
|
1838
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
1839
|
+
# default sorting order is ascending, redundant space characters are
|
|
1840
|
+
# insignificant.
|
|
1841
|
+
# Example: `name asc, end_time asc, create_time desc`
|
|
1842
|
+
# Supported fields are:
|
|
1843
|
+
# - `create_time`: corresponds to time the job was created.
|
|
1844
|
+
# - `end_time`: corresponds to time the job ended.
|
|
1845
|
+
# - `name`: corresponds to job's name.
|
|
1846
|
+
# - `state`: corresponds to `state`
|
|
1847
|
+
# @param [Fixnum] page_size
|
|
1848
|
+
# The standard list page size.
|
|
1849
|
+
# @param [String] page_token
|
|
1850
|
+
# The standard list page token.
|
|
1851
|
+
# @param [String] type
|
|
1852
|
+
# The type of job. Defaults to `DlpJobType.INSPECT`
|
|
1853
|
+
# @param [String] fields
|
|
1854
|
+
# Selector specifying which fields to include in a partial response.
|
|
1855
|
+
# @param [String] quota_user
|
|
1856
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1857
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1858
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1859
|
+
# Request-specific options
|
|
1860
|
+
#
|
|
1861
|
+
# @yield [result, err] Result & error if block supplied
|
|
1862
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse] parsed result object
|
|
1863
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1864
|
+
#
|
|
1865
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse]
|
|
1866
|
+
#
|
|
1867
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1868
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1869
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1870
|
+
def list_project_dlp_jobs(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1871
|
+
command = make_simple_command(:get, 'v2/{+parent}/dlpJobs', options)
|
|
1872
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse::Representation
|
|
1873
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse
|
|
1874
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1875
|
+
command.query['filter'] = filter unless filter.nil?
|
|
1876
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
|
1877
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1878
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1879
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1880
|
+
command.query['type'] = type unless type.nil?
|
|
1881
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1882
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1883
|
+
execute_or_queue_command(command, &block)
|
|
1884
|
+
end
|
|
1885
|
+
|
|
1886
|
+
# Redacts potentially sensitive info from an image.
|
|
1887
|
+
# This method has limits on input size, processing time, and output size.
|
|
1888
|
+
# See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
|
|
1889
|
+
# learn more.
|
|
1890
|
+
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
|
1891
|
+
# system will automatically choose what detectors to run. By default this may
|
|
1892
|
+
# be all types, but may change over time as detectors are updated.
|
|
1893
|
+
# @param [String] parent
|
|
1894
|
+
# The parent resource name, for example projects/my-project-id.
|
|
1895
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object
|
|
1896
|
+
# @param [String] fields
|
|
1897
|
+
# Selector specifying which fields to include in a partial response.
|
|
1898
|
+
# @param [String] quota_user
|
|
1899
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1900
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1901
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1902
|
+
# Request-specific options
|
|
1903
|
+
#
|
|
1904
|
+
# @yield [result, err] Result & error if block supplied
|
|
1905
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse] parsed result object
|
|
1906
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1907
|
+
#
|
|
1908
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse]
|
|
1909
|
+
#
|
|
1910
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1911
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1912
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1913
|
+
def redact_project_image(parent, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1914
|
+
command = make_simple_command(:post, 'v2/{+parent}/image:redact', options)
|
|
1915
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest::Representation
|
|
1916
|
+
command.request_object = google_privacy_dlp_v2_redact_image_request_object
|
|
1917
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse::Representation
|
|
1918
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
|
|
1919
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1920
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1921
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1922
|
+
execute_or_queue_command(command, &block)
|
|
1923
|
+
end
|
|
1924
|
+
|
|
1925
|
+
# Creates an InspectTemplate for re-using frequently used configuration
|
|
1926
|
+
# for inspecting content, images, and storage.
|
|
1927
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
1928
|
+
# @param [String] parent
|
|
1929
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
1930
|
+
# organizations/my-org-id.
|
|
1931
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
|
|
1932
|
+
# @param [String] fields
|
|
1933
|
+
# Selector specifying which fields to include in a partial response.
|
|
1934
|
+
# @param [String] quota_user
|
|
1935
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1936
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1937
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1938
|
+
# Request-specific options
|
|
1939
|
+
#
|
|
1940
|
+
# @yield [result, err] Result & error if block supplied
|
|
1941
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
|
1942
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1943
|
+
#
|
|
1944
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
|
1945
|
+
#
|
|
1946
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1947
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1948
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1949
|
+
def create_project_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1950
|
+
command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
|
|
1951
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
|
|
1952
|
+
command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
|
|
1953
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
1954
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
1955
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1956
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1957
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1958
|
+
execute_or_queue_command(command, &block)
|
|
1959
|
+
end
|
|
1960
|
+
|
|
1961
|
+
# Deletes an InspectTemplate.
|
|
1962
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
1963
|
+
# @param [String] name
|
|
1964
|
+
# Required. Resource name of the organization and inspectTemplate to be deleted,
|
|
1965
|
+
# for
|
|
1966
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
1967
|
+
# projects/project-id/inspectTemplates/432452342.
|
|
1968
|
+
# @param [String] fields
|
|
1969
|
+
# Selector specifying which fields to include in a partial response.
|
|
1970
|
+
# @param [String] quota_user
|
|
1971
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1972
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1973
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1974
|
+
# Request-specific options
|
|
1975
|
+
#
|
|
1976
|
+
# @yield [result, err] Result & error if block supplied
|
|
1977
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
1978
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1979
|
+
#
|
|
1980
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
1981
|
+
#
|
|
1982
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1983
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1984
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1985
|
+
def delete_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1986
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1987
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
1988
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
1989
|
+
command.params['name'] = name unless name.nil?
|
|
1990
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1991
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1992
|
+
execute_or_queue_command(command, &block)
|
|
1993
|
+
end
|
|
1994
|
+
|
|
1995
|
+
# Gets an InspectTemplate.
|
|
1996
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
1997
|
+
# @param [String] name
|
|
1998
|
+
# Required. Resource name of the organization and inspectTemplate to be read,
|
|
1999
|
+
# for
|
|
2000
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
2001
|
+
# projects/project-id/inspectTemplates/432452342.
|
|
2002
|
+
# @param [String] fields
|
|
2003
|
+
# Selector specifying which fields to include in a partial response.
|
|
2004
|
+
# @param [String] quota_user
|
|
2005
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2006
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2007
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2008
|
+
# Request-specific options
|
|
2009
|
+
#
|
|
2010
|
+
# @yield [result, err] Result & error if block supplied
|
|
2011
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
|
2012
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2013
|
+
#
|
|
2014
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
|
2015
|
+
#
|
|
2016
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2017
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2018
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2019
|
+
def get_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
2020
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
2021
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
2022
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
2023
|
+
command.params['name'] = name unless name.nil?
|
|
2024
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2025
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2026
|
+
execute_or_queue_command(command, &block)
|
|
2027
|
+
end
|
|
2028
|
+
|
|
2029
|
+
# Lists InspectTemplates.
|
|
2030
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
2031
|
+
# @param [String] parent
|
|
2032
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
2033
|
+
# organizations/my-org-id.
|
|
2034
|
+
# @param [String] location_id
|
|
2035
|
+
# The geographic location where inspection templates will be retrieved from.
|
|
2036
|
+
# Use `-` for all locations. Reserved for future extensions.
|
|
2037
|
+
# @param [String] order_by
|
|
2038
|
+
# Optional comma separated list of fields to order by,
|
|
2039
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
2040
|
+
# default sorting order is ascending, redundant space characters are
|
|
2041
|
+
# insignificant.
|
|
2042
|
+
# Example: `name asc,update_time, create_time desc`
|
|
2043
|
+
# Supported fields are:
|
|
2044
|
+
# - `create_time`: corresponds to time the template was created.
|
|
2045
|
+
# - `update_time`: corresponds to time the template was last updated.
|
|
2046
|
+
# - `name`: corresponds to template's name.
|
|
2047
|
+
# - `display_name`: corresponds to template's display name.
|
|
2048
|
+
# @param [Fixnum] page_size
|
|
2049
|
+
# Optional size of the page, can be limited by server. If zero server returns
|
|
2050
|
+
# a page of max size 100.
|
|
2051
|
+
# @param [String] page_token
|
|
2052
|
+
# Optional page token to continue retrieval. Comes from previous call
|
|
2053
|
+
# to `ListInspectTemplates`.
|
|
2054
|
+
# @param [String] fields
|
|
2055
|
+
# Selector specifying which fields to include in a partial response.
|
|
2056
|
+
# @param [String] quota_user
|
|
2057
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2058
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2059
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2060
|
+
# Request-specific options
|
|
2061
|
+
#
|
|
2062
|
+
# @yield [result, err] Result & error if block supplied
|
|
2063
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse] parsed result object
|
|
2064
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2065
|
+
#
|
|
2066
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse]
|
|
2067
|
+
#
|
|
2068
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2069
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2070
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2071
|
+
def list_project_inspect_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2072
|
+
command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', options)
|
|
2073
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
|
|
2074
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
|
|
2075
|
+
command.params['parent'] = parent unless parent.nil?
|
|
2076
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
|
2077
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
2078
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
2079
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2080
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2081
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2082
|
+
execute_or_queue_command(command, &block)
|
|
2083
|
+
end
|
|
2084
|
+
|
|
2085
|
+
# Updates the InspectTemplate.
|
|
2086
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
2087
|
+
# @param [String] name
|
|
2088
|
+
# Required. Resource name of organization and inspectTemplate to be updated, for
|
|
2089
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
2090
|
+
# projects/project-id/inspectTemplates/432452342.
|
|
2091
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object
|
|
2092
|
+
# @param [String] fields
|
|
2093
|
+
# Selector specifying which fields to include in a partial response.
|
|
2094
|
+
# @param [String] quota_user
|
|
2095
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2096
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2097
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2098
|
+
# Request-specific options
|
|
2099
|
+
#
|
|
2100
|
+
# @yield [result, err] Result & error if block supplied
|
|
2101
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
|
2102
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2103
|
+
#
|
|
2104
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
|
2105
|
+
#
|
|
2106
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2107
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2108
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2109
|
+
def patch_project_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2110
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
2111
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation
|
|
2112
|
+
command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object
|
|
2113
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
2114
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
2115
|
+
command.params['name'] = name unless name.nil?
|
|
2116
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2117
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2118
|
+
execute_or_queue_command(command, &block)
|
|
2119
|
+
end
|
|
2120
|
+
|
|
2121
|
+
# Activate a job trigger. Causes the immediate execute of a trigger
|
|
2122
|
+
# instead of waiting on the trigger event to occur.
|
|
2123
|
+
# @param [String] name
|
|
2124
|
+
# Required. Resource name of the trigger to activate, for example
|
|
2125
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
|
2126
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest] google_privacy_dlp_v2_activate_job_trigger_request_object
|
|
2127
|
+
# @param [String] fields
|
|
2128
|
+
# Selector specifying which fields to include in a partial response.
|
|
2129
|
+
# @param [String] quota_user
|
|
2130
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2131
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2132
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2133
|
+
# Request-specific options
|
|
2134
|
+
#
|
|
2135
|
+
# @yield [result, err] Result & error if block supplied
|
|
2136
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob] parsed result object
|
|
2137
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2138
|
+
#
|
|
2139
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob]
|
|
2140
|
+
#
|
|
2141
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2142
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2143
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2144
|
+
def activate_project_job_trigger(name, google_privacy_dlp_v2_activate_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2145
|
+
command = make_simple_command(:post, 'v2/{+name}:activate', options)
|
|
2146
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest::Representation
|
|
2147
|
+
command.request_object = google_privacy_dlp_v2_activate_job_trigger_request_object
|
|
2148
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
|
|
2149
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
|
|
2150
|
+
command.params['name'] = name unless name.nil?
|
|
2151
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2152
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2153
|
+
execute_or_queue_command(command, &block)
|
|
2154
|
+
end
|
|
2155
|
+
|
|
2156
|
+
# Creates a job trigger to run DLP actions such as scanning storage for
|
|
2157
|
+
# sensitive information on a set schedule.
|
|
2158
|
+
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
2159
|
+
# @param [String] parent
|
|
2160
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
|
2161
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
|
|
2162
|
+
# @param [String] fields
|
|
2163
|
+
# Selector specifying which fields to include in a partial response.
|
|
2164
|
+
# @param [String] quota_user
|
|
2165
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2166
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2167
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2168
|
+
# Request-specific options
|
|
2169
|
+
#
|
|
2170
|
+
# @yield [result, err] Result & error if block supplied
|
|
2171
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger] parsed result object
|
|
2172
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2173
|
+
#
|
|
2174
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger]
|
|
2175
|
+
#
|
|
2176
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2177
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2178
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2179
|
+
def create_project_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2180
|
+
command = make_simple_command(:post, 'v2/{+parent}/jobTriggers', options)
|
|
2181
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest::Representation
|
|
2182
|
+
command.request_object = google_privacy_dlp_v2_create_job_trigger_request_object
|
|
2183
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
|
2184
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
|
|
2185
|
+
command.params['parent'] = parent unless parent.nil?
|
|
2186
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2187
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2188
|
+
execute_or_queue_command(command, &block)
|
|
2189
|
+
end
|
|
2190
|
+
|
|
2191
|
+
# Deletes a job trigger.
|
|
2192
|
+
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
2193
|
+
# @param [String] name
|
|
2194
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
|
2195
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
|
2196
|
+
# @param [String] fields
|
|
2197
|
+
# Selector specifying which fields to include in a partial response.
|
|
2198
|
+
# @param [String] quota_user
|
|
2199
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2200
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2201
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2202
|
+
# Request-specific options
|
|
2203
|
+
#
|
|
2204
|
+
# @yield [result, err] Result & error if block supplied
|
|
2205
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
2206
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2207
|
+
#
|
|
2208
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
2209
|
+
#
|
|
2210
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2211
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2212
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2213
|
+
def delete_project_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
2214
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
2215
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
2216
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
2217
|
+
command.params['name'] = name unless name.nil?
|
|
2218
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2219
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2220
|
+
execute_or_queue_command(command, &block)
|
|
2221
|
+
end
|
|
2222
|
+
|
|
2223
|
+
# Gets a job trigger.
|
|
2224
|
+
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
2225
|
+
# @param [String] name
|
|
2226
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
|
2227
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
|
2228
|
+
# @param [String] fields
|
|
2229
|
+
# Selector specifying which fields to include in a partial response.
|
|
2230
|
+
# @param [String] quota_user
|
|
2231
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2232
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2233
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2234
|
+
# Request-specific options
|
|
2235
|
+
#
|
|
2236
|
+
# @yield [result, err] Result & error if block supplied
|
|
2237
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger] parsed result object
|
|
2238
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2239
|
+
#
|
|
2240
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger]
|
|
2241
|
+
#
|
|
2242
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2243
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2244
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2245
|
+
def get_project_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
2246
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
2247
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
|
2248
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
|
|
2249
|
+
command.params['name'] = name unless name.nil?
|
|
2250
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2251
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2252
|
+
execute_or_queue_command(command, &block)
|
|
2253
|
+
end
|
|
2254
|
+
|
|
2255
|
+
# Lists job triggers.
|
|
2256
|
+
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
2257
|
+
# @param [String] parent
|
|
2258
|
+
# Required. The parent resource name, for example `projects/my-project-id`.
|
|
2259
|
+
# @param [String] filter
|
|
2260
|
+
# Optional. Allows filtering.
|
|
2261
|
+
# Supported syntax:
|
|
2262
|
+
# * Filter expressions are made up of one or more restrictions.
|
|
2263
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
2264
|
+
# sequence of restrictions implicitly uses `AND`.
|
|
2265
|
+
# * A restriction has the form of `<field> <operator> <value>`.
|
|
2266
|
+
# * Supported fields/values for inspect jobs:
|
|
2267
|
+
# - `status` - HEALTHY|PAUSED|CANCELLED
|
|
2268
|
+
# - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
|
2269
|
+
# - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by
|
|
2270
|
+
# quotation marks. Nanoseconds are ignored.
|
|
2271
|
+
# - 'error_count' - Number of errors that have occurred while running.
|
|
2272
|
+
# * The operator must be `=` or `!=` for status and inspected_storage.
|
|
2273
|
+
# Examples:
|
|
2274
|
+
# * inspected_storage = cloud_storage AND status = HEALTHY
|
|
2275
|
+
# * inspected_storage = cloud_storage OR inspected_storage = bigquery
|
|
2276
|
+
# * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY)
|
|
2277
|
+
# * last_run_time > \"2017-12-12T00:00:00+00:00\"
|
|
2278
|
+
# The length of this field should be no more than 500 characters.
|
|
2279
|
+
# @param [String] location_id
|
|
2280
|
+
# The geographic location where job triggers will be retrieved from.
|
|
2281
|
+
# Use `-` for all locations. Reserved for future extensions.
|
|
2282
|
+
# @param [String] order_by
|
|
2283
|
+
# Optional comma separated list of triggeredJob fields to order by,
|
|
2284
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
2285
|
+
# default sorting order is ascending, redundant space characters are
|
|
2286
|
+
# insignificant.
|
|
2287
|
+
# Example: `name asc,update_time, create_time desc`
|
|
2288
|
+
# Supported fields are:
|
|
2289
|
+
# - `create_time`: corresponds to time the JobTrigger was created.
|
|
2290
|
+
# - `update_time`: corresponds to time the JobTrigger was last updated.
|
|
2291
|
+
# - `last_run_time`: corresponds to the last time the JobTrigger ran.
|
|
2292
|
+
# - `name`: corresponds to JobTrigger's name.
|
|
2293
|
+
# - `display_name`: corresponds to JobTrigger's display name.
|
|
2294
|
+
# - `status`: corresponds to JobTrigger's status.
|
|
2295
|
+
# @param [Fixnum] page_size
|
|
2296
|
+
# Optional size of the page, can be limited by a server.
|
|
2297
|
+
# @param [String] page_token
|
|
2298
|
+
# Optional page token to continue retrieval. Comes from previous call
|
|
2299
|
+
# to ListJobTriggers. `order_by` field must not
|
|
2300
|
+
# change for subsequent calls.
|
|
649
2301
|
# @param [String] fields
|
|
650
2302
|
# Selector specifying which fields to include in a partial response.
|
|
651
2303
|
# @param [String] quota_user
|
|
@@ -655,19 +2307,21 @@ module Google
|
|
|
655
2307
|
# Request-specific options
|
|
656
2308
|
#
|
|
657
2309
|
# @yield [result, err] Result & error if block supplied
|
|
658
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
2310
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse] parsed result object
|
|
659
2311
|
# @yieldparam err [StandardError] error object if request failed
|
|
660
2312
|
#
|
|
661
|
-
# @return [Google::Apis::DlpV2::
|
|
2313
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse]
|
|
662
2314
|
#
|
|
663
2315
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
664
2316
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
665
2317
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
666
|
-
def
|
|
667
|
-
command = make_simple_command(:get, 'v2/{+parent}/
|
|
668
|
-
command.response_representation = Google::Apis::DlpV2::
|
|
669
|
-
command.response_class = Google::Apis::DlpV2::
|
|
2318
|
+
def list_project_job_triggers(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2319
|
+
command = make_simple_command(:get, 'v2/{+parent}/jobTriggers', options)
|
|
2320
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse::Representation
|
|
2321
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse
|
|
670
2322
|
command.params['parent'] = parent unless parent.nil?
|
|
2323
|
+
command.query['filter'] = filter unless filter.nil?
|
|
2324
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
|
671
2325
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
672
2326
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
673
2327
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -676,15 +2330,12 @@ module Google
|
|
|
676
2330
|
execute_or_queue_command(command, &block)
|
|
677
2331
|
end
|
|
678
2332
|
|
|
679
|
-
# Updates
|
|
680
|
-
#
|
|
681
|
-
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
682
|
-
# learn more.
|
|
2333
|
+
# Updates a job trigger.
|
|
2334
|
+
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
683
2335
|
# @param [String] name
|
|
684
|
-
# Resource name of
|
|
685
|
-
#
|
|
686
|
-
#
|
|
687
|
-
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_request_object
|
|
2336
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
|
2337
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
|
2338
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest] google_privacy_dlp_v2_update_job_trigger_request_object
|
|
688
2339
|
# @param [String] fields
|
|
689
2340
|
# Selector specifying which fields to include in a partial response.
|
|
690
2341
|
# @param [String] quota_user
|
|
@@ -694,20 +2345,20 @@ module Google
|
|
|
694
2345
|
# Request-specific options
|
|
695
2346
|
#
|
|
696
2347
|
# @yield [result, err] Result & error if block supplied
|
|
697
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
2348
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger] parsed result object
|
|
698
2349
|
# @yieldparam err [StandardError] error object if request failed
|
|
699
2350
|
#
|
|
700
|
-
# @return [Google::Apis::DlpV2::
|
|
2351
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger]
|
|
701
2352
|
#
|
|
702
2353
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
703
2354
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
704
2355
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
705
|
-
def
|
|
2356
|
+
def patch_project_job_trigger(name, google_privacy_dlp_v2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
706
2357
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
707
|
-
command.request_representation = Google::Apis::DlpV2::
|
|
708
|
-
command.request_object =
|
|
709
|
-
command.response_representation = Google::Apis::DlpV2::
|
|
710
|
-
command.response_class = Google::Apis::DlpV2::
|
|
2358
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest::Representation
|
|
2359
|
+
command.request_object = google_privacy_dlp_v2_update_job_trigger_request_object
|
|
2360
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
|
2361
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
|
|
711
2362
|
command.params['name'] = name unless name.nil?
|
|
712
2363
|
command.query['fields'] = fields unless fields.nil?
|
|
713
2364
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -723,6 +2374,9 @@ module Google
|
|
|
723
2374
|
# be all types, but may change over time as detectors are updated.
|
|
724
2375
|
# @param [String] parent
|
|
725
2376
|
# The parent resource name, for example projects/my-project-id.
|
|
2377
|
+
# @param [String] location_id
|
|
2378
|
+
# The geographic location to process de-identification. Reserved for future
|
|
2379
|
+
# extensions.
|
|
726
2380
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object
|
|
727
2381
|
# @param [String] fields
|
|
728
2382
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -741,13 +2395,14 @@ module Google
|
|
|
741
2395
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
742
2396
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
743
2397
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
744
|
-
def
|
|
745
|
-
command = make_simple_command(:post, 'v2/{+parent}/content:deidentify', options)
|
|
2398
|
+
def deidentify_project_location_content(parent, location_id, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2399
|
+
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/content:deidentify', options)
|
|
746
2400
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest::Representation
|
|
747
2401
|
command.request_object = google_privacy_dlp_v2_deidentify_content_request_object
|
|
748
2402
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse::Representation
|
|
749
2403
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse
|
|
750
2404
|
command.params['parent'] = parent unless parent.nil?
|
|
2405
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
751
2406
|
command.query['fields'] = fields unless fields.nil?
|
|
752
2407
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
753
2408
|
execute_or_queue_command(command, &block)
|
|
@@ -762,6 +2417,9 @@ module Google
|
|
|
762
2417
|
# and https://cloud.google.com/dlp/docs/inspecting-text,
|
|
763
2418
|
# @param [String] parent
|
|
764
2419
|
# The parent resource name, for example projects/my-project-id.
|
|
2420
|
+
# @param [String] location_id
|
|
2421
|
+
# The geographic location to process content inspection. Reserved for future
|
|
2422
|
+
# extensions.
|
|
765
2423
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
|
|
766
2424
|
# @param [String] fields
|
|
767
2425
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -780,13 +2438,14 @@ module Google
|
|
|
780
2438
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
781
2439
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
782
2440
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
783
|
-
def
|
|
784
|
-
command = make_simple_command(:post, 'v2/{+parent}/content:inspect', options)
|
|
2441
|
+
def inspect_project_location_content(parent, location_id, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2442
|
+
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/content:inspect', options)
|
|
785
2443
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest::Representation
|
|
786
2444
|
command.request_object = google_privacy_dlp_v2_inspect_content_request_object
|
|
787
2445
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse::Representation
|
|
788
2446
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse
|
|
789
2447
|
command.params['parent'] = parent unless parent.nil?
|
|
2448
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
790
2449
|
command.query['fields'] = fields unless fields.nil?
|
|
791
2450
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
792
2451
|
execute_or_queue_command(command, &block)
|
|
@@ -798,7 +2457,10 @@ module Google
|
|
|
798
2457
|
# identification_in_free_text_code_example
|
|
799
2458
|
# to learn more.
|
|
800
2459
|
# @param [String] parent
|
|
801
|
-
# The parent resource name.
|
|
2460
|
+
# Required. The parent resource name.
|
|
2461
|
+
# @param [String] location_id
|
|
2462
|
+
# The geographic location to process content reidentification. Reserved for
|
|
2463
|
+
# future extensions.
|
|
802
2464
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
|
|
803
2465
|
# @param [String] fields
|
|
804
2466
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -817,13 +2479,14 @@ module Google
|
|
|
817
2479
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
818
2480
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
819
2481
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
820
|
-
def
|
|
821
|
-
command = make_simple_command(:post, 'v2/{+parent}/content:reidentify', options)
|
|
2482
|
+
def reidentify_project_location_content(parent, location_id, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2483
|
+
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/content:reidentify', options)
|
|
822
2484
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest::Representation
|
|
823
2485
|
command.request_object = google_privacy_dlp_v2_reidentify_content_request_object
|
|
824
2486
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse::Representation
|
|
825
2487
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse
|
|
826
2488
|
command.params['parent'] = parent unless parent.nil?
|
|
2489
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
827
2490
|
command.query['fields'] = fields unless fields.nil?
|
|
828
2491
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
829
2492
|
execute_or_queue_command(command, &block)
|
|
@@ -834,8 +2497,11 @@ module Google
|
|
|
834
2497
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
835
2498
|
# more.
|
|
836
2499
|
# @param [String] parent
|
|
837
|
-
# The parent resource name, for example projects/my-project-id or
|
|
2500
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
838
2501
|
# organizations/my-org-id.
|
|
2502
|
+
# @param [String] location_id
|
|
2503
|
+
# The geographic location to store the deidentification template. Reserved
|
|
2504
|
+
# for future extensions.
|
|
839
2505
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
|
|
840
2506
|
# @param [String] fields
|
|
841
2507
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -854,13 +2520,14 @@ module Google
|
|
|
854
2520
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
855
2521
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
856
2522
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
857
|
-
def
|
|
858
|
-
command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
|
|
2523
|
+
def create_project_location_deidentify_template(parent, location_id, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2524
|
+
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/deidentifyTemplates', options)
|
|
859
2525
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
|
|
860
2526
|
command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
|
|
861
2527
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
862
2528
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
863
2529
|
command.params['parent'] = parent unless parent.nil?
|
|
2530
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
864
2531
|
command.query['fields'] = fields unless fields.nil?
|
|
865
2532
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
866
2533
|
execute_or_queue_command(command, &block)
|
|
@@ -870,7 +2537,8 @@ module Google
|
|
|
870
2537
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
871
2538
|
# more.
|
|
872
2539
|
# @param [String] name
|
|
873
|
-
# Resource name of the organization and deidentify template to be
|
|
2540
|
+
# Required. Resource name of the organization and deidentify template to be
|
|
2541
|
+
# deleted,
|
|
874
2542
|
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
875
2543
|
# projects/project-id/deidentifyTemplates/432452342.
|
|
876
2544
|
# @param [String] fields
|
|
@@ -890,7 +2558,7 @@ module Google
|
|
|
890
2558
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
891
2559
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
892
2560
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
893
|
-
def
|
|
2561
|
+
def delete_project_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
894
2562
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
895
2563
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
896
2564
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
@@ -904,7 +2572,8 @@ module Google
|
|
|
904
2572
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
905
2573
|
# more.
|
|
906
2574
|
# @param [String] name
|
|
907
|
-
# Resource name of the organization and deidentify template to be read,
|
|
2575
|
+
# Required. Resource name of the organization and deidentify template to be read,
|
|
2576
|
+
# for
|
|
908
2577
|
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
909
2578
|
# projects/project-id/deidentifyTemplates/432452342.
|
|
910
2579
|
# @param [String] fields
|
|
@@ -924,7 +2593,7 @@ module Google
|
|
|
924
2593
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
925
2594
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
926
2595
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
927
|
-
def
|
|
2596
|
+
def get_project_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
928
2597
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
929
2598
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
930
2599
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
@@ -938,8 +2607,11 @@ module Google
|
|
|
938
2607
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
939
2608
|
# more.
|
|
940
2609
|
# @param [String] parent
|
|
941
|
-
# The parent resource name, for example projects/my-project-id or
|
|
2610
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
942
2611
|
# organizations/my-org-id.
|
|
2612
|
+
# @param [String] location_id
|
|
2613
|
+
# The geographic location where deidentifications templates will be retrieved
|
|
2614
|
+
# from. Use `-` for all locations. Reserved for future extensions.
|
|
943
2615
|
# @param [String] order_by
|
|
944
2616
|
# Optional comma separated list of fields to order by,
|
|
945
2617
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
@@ -974,11 +2646,12 @@ module Google
|
|
|
974
2646
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
975
2647
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
976
2648
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
977
|
-
def
|
|
978
|
-
command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', options)
|
|
2649
|
+
def list_project_location_deidentify_templates(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2650
|
+
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/deidentifyTemplates', options)
|
|
979
2651
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
|
|
980
2652
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
|
|
981
2653
|
command.params['parent'] = parent unless parent.nil?
|
|
2654
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
982
2655
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
983
2656
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
984
2657
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -991,7 +2664,8 @@ module Google
|
|
|
991
2664
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
992
2665
|
# more.
|
|
993
2666
|
# @param [String] name
|
|
994
|
-
# Resource name of organization and deidentify template to be updated,
|
|
2667
|
+
# Required. Resource name of organization and deidentify template to be updated,
|
|
2668
|
+
# for
|
|
995
2669
|
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
996
2670
|
# projects/project-id/deidentifyTemplates/432452342.
|
|
997
2671
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object
|
|
@@ -1012,7 +2686,7 @@ module Google
|
|
|
1012
2686
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1013
2687
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1014
2688
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1015
|
-
def
|
|
2689
|
+
def patch_project_location_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1016
2690
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
1017
2691
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation
|
|
1018
2692
|
command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object
|
|
@@ -1030,7 +2704,7 @@ module Google
|
|
|
1030
2704
|
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
1031
2705
|
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1032
2706
|
# @param [String] name
|
|
1033
|
-
# The name of the DlpJob resource to be cancelled.
|
|
2707
|
+
# Required. The name of the DlpJob resource to be cancelled.
|
|
1034
2708
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest] google_privacy_dlp_v2_cancel_dlp_job_request_object
|
|
1035
2709
|
# @param [String] fields
|
|
1036
2710
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1049,7 +2723,7 @@ module Google
|
|
|
1049
2723
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1050
2724
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1051
2725
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1052
|
-
def
|
|
2726
|
+
def cancel_project_location_dlp_job(name, google_privacy_dlp_v2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1053
2727
|
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
|
1054
2728
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest::Representation
|
|
1055
2729
|
command.request_object = google_privacy_dlp_v2_cancel_dlp_job_request_object
|
|
@@ -1068,7 +2742,10 @@ module Google
|
|
|
1068
2742
|
# system will automatically choose what detectors to run. By default this may
|
|
1069
2743
|
# be all types, but may change over time as detectors are updated.
|
|
1070
2744
|
# @param [String] parent
|
|
1071
|
-
# The parent resource name, for example projects/my-project-id.
|
|
2745
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
|
2746
|
+
# @param [String] location_id
|
|
2747
|
+
# The geographic location to store and process the job. Reserved for
|
|
2748
|
+
# future extensions.
|
|
1072
2749
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object
|
|
1073
2750
|
# @param [String] fields
|
|
1074
2751
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1087,13 +2764,14 @@ module Google
|
|
|
1087
2764
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1088
2765
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1089
2766
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1090
|
-
def
|
|
1091
|
-
command = make_simple_command(:post, 'v2/{+parent}/dlpJobs', options)
|
|
2767
|
+
def create_project_location_dlp_job(parent, location_id, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2768
|
+
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/dlpJobs', options)
|
|
1092
2769
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest::Representation
|
|
1093
2770
|
command.request_object = google_privacy_dlp_v2_create_dlp_job_request_object
|
|
1094
2771
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
|
|
1095
2772
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
|
|
1096
2773
|
command.params['parent'] = parent unless parent.nil?
|
|
2774
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1097
2775
|
command.query['fields'] = fields unless fields.nil?
|
|
1098
2776
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1099
2777
|
execute_or_queue_command(command, &block)
|
|
@@ -1105,7 +2783,7 @@ module Google
|
|
|
1105
2783
|
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
1106
2784
|
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1107
2785
|
# @param [String] name
|
|
1108
|
-
# The name of the DlpJob resource to be deleted.
|
|
2786
|
+
# Required. The name of the DlpJob resource to be deleted.
|
|
1109
2787
|
# @param [String] fields
|
|
1110
2788
|
# Selector specifying which fields to include in a partial response.
|
|
1111
2789
|
# @param [String] quota_user
|
|
@@ -1123,7 +2801,7 @@ module Google
|
|
|
1123
2801
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1124
2802
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1125
2803
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1126
|
-
def
|
|
2804
|
+
def delete_project_location_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1127
2805
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1128
2806
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
1129
2807
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
@@ -1137,7 +2815,7 @@ module Google
|
|
|
1137
2815
|
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
1138
2816
|
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1139
2817
|
# @param [String] name
|
|
1140
|
-
# The name of the DlpJob resource.
|
|
2818
|
+
# Required. The name of the DlpJob resource.
|
|
1141
2819
|
# @param [String] fields
|
|
1142
2820
|
# Selector specifying which fields to include in a partial response.
|
|
1143
2821
|
# @param [String] quota_user
|
|
@@ -1155,7 +2833,7 @@ module Google
|
|
|
1155
2833
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1156
2834
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1157
2835
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1158
|
-
def
|
|
2836
|
+
def get_project_location_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1159
2837
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1160
2838
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
|
|
1161
2839
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
|
|
@@ -1169,7 +2847,10 @@ module Google
|
|
|
1169
2847
|
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
1170
2848
|
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1171
2849
|
# @param [String] parent
|
|
1172
|
-
# The parent resource name, for example projects/my-project-id.
|
|
2850
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
|
2851
|
+
# @param [String] location_id
|
|
2852
|
+
# The geographic location where jobs will be retrieved from.
|
|
2853
|
+
# Use `-` for all locations. Reserved for future extensions.
|
|
1173
2854
|
# @param [String] filter
|
|
1174
2855
|
# Optional. Allows filtering.
|
|
1175
2856
|
# Supported syntax:
|
|
@@ -1228,11 +2909,12 @@ module Google
|
|
|
1228
2909
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1229
2910
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1230
2911
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1231
|
-
def
|
|
1232
|
-
command = make_simple_command(:get, 'v2/{+parent}/dlpJobs', options)
|
|
2912
|
+
def list_project_location_dlp_jobs(parent, location_id, filter: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2913
|
+
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/dlpJobs', options)
|
|
1233
2914
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse::Representation
|
|
1234
2915
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse
|
|
1235
2916
|
command.params['parent'] = parent unless parent.nil?
|
|
2917
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1236
2918
|
command.query['filter'] = filter unless filter.nil?
|
|
1237
2919
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1238
2920
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
@@ -1252,6 +2934,9 @@ module Google
|
|
|
1252
2934
|
# be all types, but may change over time as detectors are updated.
|
|
1253
2935
|
# @param [String] parent
|
|
1254
2936
|
# The parent resource name, for example projects/my-project-id.
|
|
2937
|
+
# @param [String] location_id
|
|
2938
|
+
# The geographic location to process the request. Reserved for future
|
|
2939
|
+
# extensions.
|
|
1255
2940
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object
|
|
1256
2941
|
# @param [String] fields
|
|
1257
2942
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1270,13 +2955,14 @@ module Google
|
|
|
1270
2955
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1271
2956
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1272
2957
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1273
|
-
def
|
|
1274
|
-
command = make_simple_command(:post, 'v2/{+parent}/image:redact', options)
|
|
2958
|
+
def redact_project_location_image(parent, location_id, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2959
|
+
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/image:redact', options)
|
|
1275
2960
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest::Representation
|
|
1276
2961
|
command.request_object = google_privacy_dlp_v2_redact_image_request_object
|
|
1277
2962
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse::Representation
|
|
1278
2963
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
|
|
1279
2964
|
command.params['parent'] = parent unless parent.nil?
|
|
2965
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1280
2966
|
command.query['fields'] = fields unless fields.nil?
|
|
1281
2967
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1282
2968
|
execute_or_queue_command(command, &block)
|
|
@@ -1286,8 +2972,11 @@ module Google
|
|
|
1286
2972
|
# for inspecting content, images, and storage.
|
|
1287
2973
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
1288
2974
|
# @param [String] parent
|
|
1289
|
-
# The parent resource name, for example projects/my-project-id or
|
|
2975
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
1290
2976
|
# organizations/my-org-id.
|
|
2977
|
+
# @param [String] location_id
|
|
2978
|
+
# The geographic location to store the inspection template. Reserved for
|
|
2979
|
+
# future extensions.
|
|
1291
2980
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
|
|
1292
2981
|
# @param [String] fields
|
|
1293
2982
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1306,13 +2995,14 @@ module Google
|
|
|
1306
2995
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1307
2996
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1308
2997
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1309
|
-
def
|
|
1310
|
-
command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
|
|
2998
|
+
def create_project_location_inspect_template(parent, location_id, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2999
|
+
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/inspectTemplates', options)
|
|
1311
3000
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
|
|
1312
3001
|
command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
|
|
1313
3002
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
1314
3003
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
1315
3004
|
command.params['parent'] = parent unless parent.nil?
|
|
3005
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1316
3006
|
command.query['fields'] = fields unless fields.nil?
|
|
1317
3007
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1318
3008
|
execute_or_queue_command(command, &block)
|
|
@@ -1321,7 +3011,8 @@ module Google
|
|
|
1321
3011
|
# Deletes an InspectTemplate.
|
|
1322
3012
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
1323
3013
|
# @param [String] name
|
|
1324
|
-
# Resource name of the organization and inspectTemplate to be deleted,
|
|
3014
|
+
# Required. Resource name of the organization and inspectTemplate to be deleted,
|
|
3015
|
+
# for
|
|
1325
3016
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
1326
3017
|
# projects/project-id/inspectTemplates/432452342.
|
|
1327
3018
|
# @param [String] fields
|
|
@@ -1341,7 +3032,7 @@ module Google
|
|
|
1341
3032
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1342
3033
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1343
3034
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1344
|
-
def
|
|
3035
|
+
def delete_project_location_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1345
3036
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1346
3037
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
1347
3038
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
@@ -1354,7 +3045,8 @@ module Google
|
|
|
1354
3045
|
# Gets an InspectTemplate.
|
|
1355
3046
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
1356
3047
|
# @param [String] name
|
|
1357
|
-
# Resource name of the organization and inspectTemplate to be read,
|
|
3048
|
+
# Required. Resource name of the organization and inspectTemplate to be read,
|
|
3049
|
+
# for
|
|
1358
3050
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
1359
3051
|
# projects/project-id/inspectTemplates/432452342.
|
|
1360
3052
|
# @param [String] fields
|
|
@@ -1374,7 +3066,7 @@ module Google
|
|
|
1374
3066
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1375
3067
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1376
3068
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1377
|
-
def
|
|
3069
|
+
def get_project_location_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1378
3070
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1379
3071
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
1380
3072
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
@@ -1387,8 +3079,11 @@ module Google
|
|
|
1387
3079
|
# Lists InspectTemplates.
|
|
1388
3080
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
1389
3081
|
# @param [String] parent
|
|
1390
|
-
# The parent resource name, for example projects/my-project-id or
|
|
3082
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
1391
3083
|
# organizations/my-org-id.
|
|
3084
|
+
# @param [String] location_id
|
|
3085
|
+
# The geographic location where inspection templates will be retrieved from.
|
|
3086
|
+
# Use `-` for all locations. Reserved for future extensions.
|
|
1392
3087
|
# @param [String] order_by
|
|
1393
3088
|
# Optional comma separated list of fields to order by,
|
|
1394
3089
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
@@ -1423,11 +3118,12 @@ module Google
|
|
|
1423
3118
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1424
3119
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1425
3120
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1426
|
-
def
|
|
1427
|
-
command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', options)
|
|
3121
|
+
def list_project_location_inspect_templates(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
3122
|
+
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/inspectTemplates', options)
|
|
1428
3123
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
|
|
1429
3124
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
|
|
1430
3125
|
command.params['parent'] = parent unless parent.nil?
|
|
3126
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1431
3127
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1432
3128
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1433
3129
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -1439,7 +3135,7 @@ module Google
|
|
|
1439
3135
|
# Updates the InspectTemplate.
|
|
1440
3136
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
1441
3137
|
# @param [String] name
|
|
1442
|
-
# Resource name of organization and inspectTemplate to be updated, for
|
|
3138
|
+
# Required. Resource name of organization and inspectTemplate to be updated, for
|
|
1443
3139
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
|
1444
3140
|
# projects/project-id/inspectTemplates/432452342.
|
|
1445
3141
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object
|
|
@@ -1460,7 +3156,7 @@ module Google
|
|
|
1460
3156
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1461
3157
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1462
3158
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1463
|
-
def
|
|
3159
|
+
def patch_project_location_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1464
3160
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
1465
3161
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation
|
|
1466
3162
|
command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object
|
|
@@ -1475,7 +3171,7 @@ module Google
|
|
|
1475
3171
|
# Activate a job trigger. Causes the immediate execute of a trigger
|
|
1476
3172
|
# instead of waiting on the trigger event to occur.
|
|
1477
3173
|
# @param [String] name
|
|
1478
|
-
# Resource name of the trigger to activate, for example
|
|
3174
|
+
# Required. Resource name of the trigger to activate, for example
|
|
1479
3175
|
# `projects/dlp-test-project/jobTriggers/53234423`.
|
|
1480
3176
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest] google_privacy_dlp_v2_activate_job_trigger_request_object
|
|
1481
3177
|
# @param [String] fields
|
|
@@ -1495,7 +3191,7 @@ module Google
|
|
|
1495
3191
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1496
3192
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1497
3193
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1498
|
-
def
|
|
3194
|
+
def activate_project_location_job_trigger(name, google_privacy_dlp_v2_activate_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1499
3195
|
command = make_simple_command(:post, 'v2/{+name}:activate', options)
|
|
1500
3196
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest::Representation
|
|
1501
3197
|
command.request_object = google_privacy_dlp_v2_activate_job_trigger_request_object
|
|
@@ -1511,7 +3207,10 @@ module Google
|
|
|
1511
3207
|
# sensitive information on a set schedule.
|
|
1512
3208
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
1513
3209
|
# @param [String] parent
|
|
1514
|
-
# The parent resource name, for example projects/my-project-id.
|
|
3210
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
|
3211
|
+
# @param [String] location_id
|
|
3212
|
+
# The geographic location to store the job trigger. Reserved for
|
|
3213
|
+
# future extensions.
|
|
1515
3214
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
|
|
1516
3215
|
# @param [String] fields
|
|
1517
3216
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1530,13 +3229,14 @@ module Google
|
|
|
1530
3229
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1531
3230
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1532
3231
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1533
|
-
def
|
|
1534
|
-
command = make_simple_command(:post, 'v2/{+parent}/jobTriggers', options)
|
|
3232
|
+
def create_project_location_job_trigger(parent, location_id, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
3233
|
+
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/jobTriggers', options)
|
|
1535
3234
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest::Representation
|
|
1536
3235
|
command.request_object = google_privacy_dlp_v2_create_job_trigger_request_object
|
|
1537
3236
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
|
1538
3237
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
|
|
1539
3238
|
command.params['parent'] = parent unless parent.nil?
|
|
3239
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1540
3240
|
command.query['fields'] = fields unless fields.nil?
|
|
1541
3241
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1542
3242
|
execute_or_queue_command(command, &block)
|
|
@@ -1545,7 +3245,7 @@ module Google
|
|
|
1545
3245
|
# Deletes a job trigger.
|
|
1546
3246
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
1547
3247
|
# @param [String] name
|
|
1548
|
-
# Resource name of the project and the triggeredJob, for example
|
|
3248
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
|
1549
3249
|
# `projects/dlp-test-project/jobTriggers/53234423`.
|
|
1550
3250
|
# @param [String] fields
|
|
1551
3251
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1564,7 +3264,7 @@ module Google
|
|
|
1564
3264
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1565
3265
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1566
3266
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1567
|
-
def
|
|
3267
|
+
def delete_project_location_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1568
3268
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1569
3269
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
1570
3270
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
@@ -1577,7 +3277,7 @@ module Google
|
|
|
1577
3277
|
# Gets a job trigger.
|
|
1578
3278
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
1579
3279
|
# @param [String] name
|
|
1580
|
-
# Resource name of the project and the triggeredJob, for example
|
|
3280
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
|
1581
3281
|
# `projects/dlp-test-project/jobTriggers/53234423`.
|
|
1582
3282
|
# @param [String] fields
|
|
1583
3283
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1596,7 +3296,7 @@ module Google
|
|
|
1596
3296
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1597
3297
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1598
3298
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1599
|
-
def
|
|
3299
|
+
def get_project_location_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1600
3300
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1601
3301
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
|
1602
3302
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
|
|
@@ -1609,7 +3309,10 @@ module Google
|
|
|
1609
3309
|
# Lists job triggers.
|
|
1610
3310
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
1611
3311
|
# @param [String] parent
|
|
1612
|
-
# The parent resource name, for example `projects/my-project-id`.
|
|
3312
|
+
# Required. The parent resource name, for example `projects/my-project-id`.
|
|
3313
|
+
# @param [String] location_id
|
|
3314
|
+
# The geographic location where job triggers will be retrieved from.
|
|
3315
|
+
# Use `-` for all locations. Reserved for future extensions.
|
|
1613
3316
|
# @param [String] filter
|
|
1614
3317
|
# Optional. Allows filtering.
|
|
1615
3318
|
# Supported syntax:
|
|
@@ -1666,11 +3369,12 @@ module Google
|
|
|
1666
3369
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1667
3370
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1668
3371
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1669
|
-
def
|
|
1670
|
-
command = make_simple_command(:get, 'v2/{+parent}/jobTriggers', options)
|
|
3372
|
+
def list_project_location_job_triggers(parent, location_id, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
3373
|
+
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/jobTriggers', options)
|
|
1671
3374
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse::Representation
|
|
1672
3375
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse
|
|
1673
3376
|
command.params['parent'] = parent unless parent.nil?
|
|
3377
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1674
3378
|
command.query['filter'] = filter unless filter.nil?
|
|
1675
3379
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1676
3380
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
@@ -1683,7 +3387,7 @@ module Google
|
|
|
1683
3387
|
# Updates a job trigger.
|
|
1684
3388
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
1685
3389
|
# @param [String] name
|
|
1686
|
-
# Resource name of the project and the triggeredJob, for example
|
|
3390
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
|
1687
3391
|
# `projects/dlp-test-project/jobTriggers/53234423`.
|
|
1688
3392
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest] google_privacy_dlp_v2_update_job_trigger_request_object
|
|
1689
3393
|
# @param [String] fields
|
|
@@ -1703,7 +3407,7 @@ module Google
|
|
|
1703
3407
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1704
3408
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1705
3409
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1706
|
-
def
|
|
3410
|
+
def patch_project_location_job_trigger(name, google_privacy_dlp_v2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1707
3411
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
1708
3412
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest::Representation
|
|
1709
3413
|
command.request_object = google_privacy_dlp_v2_update_job_trigger_request_object
|
|
@@ -1715,19 +3419,16 @@ module Google
|
|
|
1715
3419
|
execute_or_queue_command(command, &block)
|
|
1716
3420
|
end
|
|
1717
3421
|
|
|
1718
|
-
#
|
|
1719
|
-
#
|
|
1720
|
-
# See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
|
|
3422
|
+
# Creates a pre-built stored infoType to be used for inspection.
|
|
3423
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1721
3424
|
# learn more.
|
|
1722
|
-
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
|
1723
|
-
# system will automatically choose what detectors to run. By default this may
|
|
1724
|
-
# be all types, but may change over time as detectors are updated.
|
|
1725
3425
|
# @param [String] parent
|
|
1726
|
-
# The parent resource name, for example projects/my-project-id
|
|
1727
|
-
#
|
|
1728
|
-
#
|
|
1729
|
-
#
|
|
1730
|
-
#
|
|
3426
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
3427
|
+
# organizations/my-org-id.
|
|
3428
|
+
# @param [String] location_id
|
|
3429
|
+
# The geographic location to store the stored infoType. Reserved for
|
|
3430
|
+
# future extensions.
|
|
3431
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
|
|
1731
3432
|
# @param [String] fields
|
|
1732
3433
|
# Selector specifying which fields to include in a partial response.
|
|
1733
3434
|
# @param [String] quota_user
|
|
@@ -1737,40 +3438,35 @@ module Google
|
|
|
1737
3438
|
# Request-specific options
|
|
1738
3439
|
#
|
|
1739
3440
|
# @yield [result, err] Result & error if block supplied
|
|
1740
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
3441
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
|
1741
3442
|
# @yieldparam err [StandardError] error object if request failed
|
|
1742
3443
|
#
|
|
1743
|
-
# @return [Google::Apis::DlpV2::
|
|
3444
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
|
1744
3445
|
#
|
|
1745
3446
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1746
3447
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1747
3448
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1748
|
-
def
|
|
1749
|
-
command = make_simple_command(:post, 'v2/{+parent}/locations/{
|
|
1750
|
-
command.request_representation = Google::Apis::DlpV2::
|
|
1751
|
-
command.request_object =
|
|
1752
|
-
command.response_representation = Google::Apis::DlpV2::
|
|
1753
|
-
command.response_class = Google::Apis::DlpV2::
|
|
3449
|
+
def create_project_location_stored_info_type(parent, location_id, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
3450
|
+
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/storedInfoTypes', options)
|
|
3451
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation
|
|
3452
|
+
command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object
|
|
3453
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
|
3454
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
|
1754
3455
|
command.params['parent'] = parent unless parent.nil?
|
|
1755
|
-
command.params['
|
|
3456
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1756
3457
|
command.query['fields'] = fields unless fields.nil?
|
|
1757
3458
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1758
3459
|
execute_or_queue_command(command, &block)
|
|
1759
3460
|
end
|
|
1760
3461
|
|
|
1761
|
-
#
|
|
1762
|
-
#
|
|
1763
|
-
#
|
|
1764
|
-
#
|
|
1765
|
-
#
|
|
1766
|
-
#
|
|
1767
|
-
#
|
|
1768
|
-
#
|
|
1769
|
-
# The parent resource name, for example projects/my-project-id.
|
|
1770
|
-
# @param [String] location
|
|
1771
|
-
# The geographic location to process content inspection. Reserved for future
|
|
1772
|
-
# extensions.
|
|
1773
|
-
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
|
|
3462
|
+
# Deletes a stored infoType.
|
|
3463
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
3464
|
+
# learn more.
|
|
3465
|
+
# @param [String] name
|
|
3466
|
+
# Required. Resource name of the organization and storedInfoType to be deleted,
|
|
3467
|
+
# for
|
|
3468
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
|
3469
|
+
# projects/project-id/storedInfoTypes/432452342.
|
|
1774
3470
|
# @param [String] fields
|
|
1775
3471
|
# Selector specifying which fields to include in a partial response.
|
|
1776
3472
|
# @param [String] quota_user
|
|
@@ -1780,38 +3476,85 @@ module Google
|
|
|
1780
3476
|
# Request-specific options
|
|
1781
3477
|
#
|
|
1782
3478
|
# @yield [result, err] Result & error if block supplied
|
|
1783
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
3479
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
1784
3480
|
# @yieldparam err [StandardError] error object if request failed
|
|
1785
3481
|
#
|
|
1786
|
-
# @return [Google::Apis::DlpV2::
|
|
3482
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
1787
3483
|
#
|
|
1788
3484
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1789
3485
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1790
3486
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1791
|
-
def
|
|
1792
|
-
command = make_simple_command(:
|
|
1793
|
-
command.
|
|
1794
|
-
command.
|
|
1795
|
-
command.
|
|
1796
|
-
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse
|
|
1797
|
-
command.params['parent'] = parent unless parent.nil?
|
|
1798
|
-
command.params['location'] = location unless location.nil?
|
|
3487
|
+
def delete_project_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
3488
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
3489
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
3490
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
3491
|
+
command.params['name'] = name unless name.nil?
|
|
1799
3492
|
command.query['fields'] = fields unless fields.nil?
|
|
1800
3493
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1801
3494
|
execute_or_queue_command(command, &block)
|
|
1802
3495
|
end
|
|
1803
3496
|
|
|
1804
|
-
#
|
|
1805
|
-
# See
|
|
1806
|
-
#
|
|
1807
|
-
#
|
|
1808
|
-
# to
|
|
3497
|
+
# Gets a stored infoType.
|
|
3498
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
3499
|
+
# learn more.
|
|
3500
|
+
# @param [String] name
|
|
3501
|
+
# Required. Resource name of the organization and storedInfoType to be read, for
|
|
3502
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
|
3503
|
+
# projects/project-id/storedInfoTypes/432452342.
|
|
3504
|
+
# @param [String] fields
|
|
3505
|
+
# Selector specifying which fields to include in a partial response.
|
|
3506
|
+
# @param [String] quota_user
|
|
3507
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3508
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3509
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3510
|
+
# Request-specific options
|
|
3511
|
+
#
|
|
3512
|
+
# @yield [result, err] Result & error if block supplied
|
|
3513
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
|
3514
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3515
|
+
#
|
|
3516
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
|
3517
|
+
#
|
|
3518
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3519
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3520
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3521
|
+
def get_project_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
3522
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
3523
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
|
3524
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
|
3525
|
+
command.params['name'] = name unless name.nil?
|
|
3526
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3527
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3528
|
+
execute_or_queue_command(command, &block)
|
|
3529
|
+
end
|
|
3530
|
+
|
|
3531
|
+
# Lists stored infoTypes.
|
|
3532
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
3533
|
+
# learn more.
|
|
1809
3534
|
# @param [String] parent
|
|
1810
|
-
# The parent resource name
|
|
1811
|
-
#
|
|
1812
|
-
#
|
|
1813
|
-
#
|
|
1814
|
-
#
|
|
3535
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
3536
|
+
# organizations/my-org-id.
|
|
3537
|
+
# @param [String] location_id
|
|
3538
|
+
# The geographic location where stored infoTypes will be retrieved from.
|
|
3539
|
+
# Use `-` for all locations. Reserved for future extensions.
|
|
3540
|
+
# @param [String] order_by
|
|
3541
|
+
# Optional comma separated list of fields to order by,
|
|
3542
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
3543
|
+
# default sorting order is ascending, redundant space characters are
|
|
3544
|
+
# insignificant.
|
|
3545
|
+
# Example: `name asc, display_name, create_time desc`
|
|
3546
|
+
# Supported fields are:
|
|
3547
|
+
# - `create_time`: corresponds to time the most recent version of the
|
|
3548
|
+
# resource was created.
|
|
3549
|
+
# - `state`: corresponds to the state of the resource.
|
|
3550
|
+
# - `name`: corresponds to resource name.
|
|
3551
|
+
# - `display_name`: corresponds to info type's display name.
|
|
3552
|
+
# @param [Fixnum] page_size
|
|
3553
|
+
# Optional size of the page, can be limited by server. If zero server returns
|
|
3554
|
+
# a page of max size 100.
|
|
3555
|
+
# @param [String] page_token
|
|
3556
|
+
# Optional page token to continue retrieval. Comes from previous call
|
|
3557
|
+
# to `ListStoredInfoTypes`.
|
|
1815
3558
|
# @param [String] fields
|
|
1816
3559
|
# Selector specifying which fields to include in a partial response.
|
|
1817
3560
|
# @param [String] quota_user
|
|
@@ -1821,22 +3564,61 @@ module Google
|
|
|
1821
3564
|
# Request-specific options
|
|
1822
3565
|
#
|
|
1823
3566
|
# @yield [result, err] Result & error if block supplied
|
|
1824
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
3567
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse] parsed result object
|
|
1825
3568
|
# @yieldparam err [StandardError] error object if request failed
|
|
1826
3569
|
#
|
|
1827
|
-
# @return [Google::Apis::DlpV2::
|
|
3570
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse]
|
|
1828
3571
|
#
|
|
1829
3572
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1830
3573
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1831
3574
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1832
|
-
def
|
|
1833
|
-
command = make_simple_command(:
|
|
1834
|
-
command.
|
|
1835
|
-
command.
|
|
1836
|
-
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse::Representation
|
|
1837
|
-
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse
|
|
3575
|
+
def list_project_location_stored_info_types(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
3576
|
+
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/storedInfoTypes', options)
|
|
3577
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
|
|
3578
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
|
|
1838
3579
|
command.params['parent'] = parent unless parent.nil?
|
|
1839
|
-
command.params['
|
|
3580
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
3581
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
3582
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
3583
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
3584
|
+
command.query['fields'] = fields unless fields.nil?
|
|
3585
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
3586
|
+
execute_or_queue_command(command, &block)
|
|
3587
|
+
end
|
|
3588
|
+
|
|
3589
|
+
# Updates the stored infoType by creating a new version. The existing version
|
|
3590
|
+
# will continue to be used until the new version is ready.
|
|
3591
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
3592
|
+
# learn more.
|
|
3593
|
+
# @param [String] name
|
|
3594
|
+
# Required. Resource name of organization and storedInfoType to be updated, for
|
|
3595
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
|
3596
|
+
# projects/project-id/storedInfoTypes/432452342.
|
|
3597
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_request_object
|
|
3598
|
+
# @param [String] fields
|
|
3599
|
+
# Selector specifying which fields to include in a partial response.
|
|
3600
|
+
# @param [String] quota_user
|
|
3601
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
3602
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
3603
|
+
# @param [Google::Apis::RequestOptions] options
|
|
3604
|
+
# Request-specific options
|
|
3605
|
+
#
|
|
3606
|
+
# @yield [result, err] Result & error if block supplied
|
|
3607
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
|
3608
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3609
|
+
#
|
|
3610
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
|
3611
|
+
#
|
|
3612
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
3613
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
3614
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
3615
|
+
def patch_project_location_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
3616
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
3617
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest::Representation
|
|
3618
|
+
command.request_object = google_privacy_dlp_v2_update_stored_info_type_request_object
|
|
3619
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
|
3620
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
|
3621
|
+
command.params['name'] = name unless name.nil?
|
|
1840
3622
|
command.query['fields'] = fields unless fields.nil?
|
|
1841
3623
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1842
3624
|
execute_or_queue_command(command, &block)
|
|
@@ -1846,7 +3628,7 @@ module Google
|
|
|
1846
3628
|
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1847
3629
|
# learn more.
|
|
1848
3630
|
# @param [String] parent
|
|
1849
|
-
# The parent resource name, for example projects/my-project-id or
|
|
3631
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
1850
3632
|
# organizations/my-org-id.
|
|
1851
3633
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
|
|
1852
3634
|
# @param [String] fields
|
|
@@ -1882,7 +3664,8 @@ module Google
|
|
|
1882
3664
|
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1883
3665
|
# learn more.
|
|
1884
3666
|
# @param [String] name
|
|
1885
|
-
# Resource name of the organization and storedInfoType to be deleted,
|
|
3667
|
+
# Required. Resource name of the organization and storedInfoType to be deleted,
|
|
3668
|
+
# for
|
|
1886
3669
|
# example `organizations/433245324/storedInfoTypes/432452342` or
|
|
1887
3670
|
# projects/project-id/storedInfoTypes/432452342.
|
|
1888
3671
|
# @param [String] fields
|
|
@@ -1916,7 +3699,7 @@ module Google
|
|
|
1916
3699
|
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1917
3700
|
# learn more.
|
|
1918
3701
|
# @param [String] name
|
|
1919
|
-
# Resource name of the organization and storedInfoType to be read, for
|
|
3702
|
+
# Required. Resource name of the organization and storedInfoType to be read, for
|
|
1920
3703
|
# example `organizations/433245324/storedInfoTypes/432452342` or
|
|
1921
3704
|
# projects/project-id/storedInfoTypes/432452342.
|
|
1922
3705
|
# @param [String] fields
|
|
@@ -1950,8 +3733,11 @@ module Google
|
|
|
1950
3733
|
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1951
3734
|
# learn more.
|
|
1952
3735
|
# @param [String] parent
|
|
1953
|
-
# The parent resource name, for example projects/my-project-id or
|
|
3736
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
|
1954
3737
|
# organizations/my-org-id.
|
|
3738
|
+
# @param [String] location_id
|
|
3739
|
+
# The geographic location where stored infoTypes will be retrieved from.
|
|
3740
|
+
# Use `-` for all locations. Reserved for future extensions.
|
|
1955
3741
|
# @param [String] order_by
|
|
1956
3742
|
# Optional comma separated list of fields to order by,
|
|
1957
3743
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
@@ -1987,11 +3773,12 @@ module Google
|
|
|
1987
3773
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1988
3774
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1989
3775
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1990
|
-
def list_project_stored_info_types(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
3776
|
+
def list_project_stored_info_types(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1991
3777
|
command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', options)
|
|
1992
3778
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
|
|
1993
3779
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
|
|
1994
3780
|
command.params['parent'] = parent unless parent.nil?
|
|
3781
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
|
1995
3782
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1996
3783
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1997
3784
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -2005,7 +3792,7 @@ module Google
|
|
|
2005
3792
|
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
2006
3793
|
# learn more.
|
|
2007
3794
|
# @param [String] name
|
|
2008
|
-
# Resource name of organization and storedInfoType to be updated, for
|
|
3795
|
+
# Required. Resource name of organization and storedInfoType to be updated, for
|
|
2009
3796
|
# example `organizations/433245324/storedInfoTypes/432452342` or
|
|
2010
3797
|
# projects/project-id/storedInfoTypes/432452342.
|
|
2011
3798
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_request_object
|