google-api-client 0.34.1 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +16 -3
- data/CHANGELOG.md +114 -0
- data/OVERVIEW.md +36 -0
- data/README.md +49 -1
- data/Rakefile +1 -1
- 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/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +9 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +9 -0
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +93 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +49 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +46 -4
- data/generated/google/apis/bigquery_v2/representations.rb +17 -0
- data/generated/google/apis/bigquery_v2/service.rb +1 -5
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -5
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -4
- data/generated/google/apis/bigqueryreservation_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_v1alpha2.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_v1beta1.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 +112 -78
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
- data/generated/google/apis/{sqladmin_v1beta4.rb → billingbudgets_v1beta1.rb} +10 -13
- 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/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +6 -5
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +6 -5
- data/generated/google/apis/books_v1.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/calendar_v3.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/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +0 -156
- data/generated/google/apis/civicinfo_v2/representations.rb +0 -58
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +6 -5
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -5
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +17 -0
- data/generated/google/apis/cloudbuild_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_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -2
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +4 -1
- data/generated/google/apis/cloudfunctions_v1.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 +3 -1
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +6 -5
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +6 -5
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -5
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
- data/generated/google/apis/cloudsearch_v1.rb +8 -8
- data/generated/google/apis/cloudsearch_v1/classes.rb +5 -130
- data/generated/google/apis/cloudsearch_v1/representations.rb +0 -75
- data/generated/google/apis/cloudsearch_v1/service.rb +42 -7
- data/generated/google/apis/cloudtasks_v2.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_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +6 -5
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +6 -5
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +14 -19
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +75 -12
- data/generated/google/apis/compute_alpha/representations.rb +2 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +54 -10
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +54 -10
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +6 -5
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +6 -5
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +13 -4
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +13 -4
- data/generated/google/apis/datacatalog_v1beta1.rb +35 -0
- 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/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +75 -4
- data/generated/google/apis/dataproc_v1/representations.rb +22 -0
- data/generated/google/apis/dataproc_v1/service.rb +14 -7
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +2 -4
- data/generated/google/apis/dataproc_v1beta2/service.rb +14 -7
- data/generated/google/apis/dfareporting_v3_3.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_4.rb +40 -0
- data/generated/google/apis/dfareporting_v3_4/classes.rb +12717 -0
- data/generated/google/apis/dfareporting_v3_4/representations.rb +4595 -0
- data/generated/google/apis/dfareporting_v3_4/service.rb +8685 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +484 -1
- data/generated/google/apis/dialogflow_v2/representations.rb +220 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +497 -1
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +221 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +68 -25
- data/generated/google/apis/dlp_v2/representations.rb +9 -4
- data/generated/google/apis/dlp_v2/service.rb +1925 -193
- data/generated/google/apis/dns_v1beta2.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/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +4 -8
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +34 -0
- 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/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +12 -3
- data/generated/google/apis/fcm_v1.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/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +3 -4
- data/generated/google/apis/firebase_v1beta1/service.rb +6 -6
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +25 -0
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +15 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +47 -0
- data/generated/google/apis/firebaserules_v1.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/genomics_v2alpha1.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/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +8 -7
- data/generated/google/apis/homegraph_v1.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/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +6 -5
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +18 -2
- data/generated/google/apis/logging_v2/representations.rb +2 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +173 -97
- data/generated/google/apis/ml_v1/representations.rb +58 -0
- data/generated/google/apis/ml_v1/service.rb +37 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +780 -6
- data/generated/google/apis/monitoring_v3/representations.rb +347 -0
- data/generated/google/apis/monitoring_v3/service.rb +382 -0
- data/generated/google/apis/pagespeedonline_v5.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/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -5
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +8 -6
- data/generated/google/apis/pubsub_v1/service.rb +6 -7
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +6 -5
- data/generated/google/apis/recommender_v1beta1.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/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +33 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +15 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +33 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +15 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +33 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +15 -0
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +8 -169
- data/generated/google/apis/run_v1/representations.rb +0 -71
- data/generated/google/apis/run_v1/service.rb +229 -1207
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +9 -9
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -5
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +66 -11
- data/generated/google/apis/securitycenter_v1/representations.rb +19 -0
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +16 -13
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +6 -5
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +6 -5
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +6 -5
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +3 -2
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +8 -1
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +12 -9
- data/generated/google/apis/servicemanagement_v1/service.rb +1 -9
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +130 -13
- data/generated/google/apis/servicenetworking_v1/representations.rb +58 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +42 -3
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +3 -2
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +3 -2
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +3 -2
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/spanner_v1.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/speech_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_v1p1beta1.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/sql_v1beta4.rb +1 -1
- data/generated/google/apis/sql_v1beta4/service.rb +59 -10
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +62 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/core/api_command.rb +3 -0
- data/lib/google/apis/core/http_command.rb +10 -8
- data/lib/google/apis/version.rb +1 -1
- data/rakelib/devsite/devsite_builder.rb +1 -1
- metadata +33 -11
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +0 -2633
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +0 -1110
- data/generated/google/apis/sqladmin_v1beta4/service.rb +0 -1793
- data/generated/google/apis/storage_v1beta1.rb +0 -40
- 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
|
@@ -1365,6 +1365,7 @@ module Google
|
|
|
1365
1365
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1366
1366
|
property :deidentify_template, as: 'deidentifyTemplate', class: Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
1367
1367
|
|
|
1368
|
+
property :location_id, as: 'locationId'
|
|
1368
1369
|
property :template_id, as: 'templateId'
|
|
1369
1370
|
end
|
|
1370
1371
|
end
|
|
@@ -1375,6 +1376,7 @@ module Google
|
|
|
1375
1376
|
property :inspect_job, as: 'inspectJob', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectJobConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectJobConfig::Representation
|
|
1376
1377
|
|
|
1377
1378
|
property :job_id, as: 'jobId'
|
|
1379
|
+
property :location_id, as: 'locationId'
|
|
1378
1380
|
property :risk_job, as: 'riskJob', class: Google::Apis::DlpV2::GooglePrivacyDlpV2RiskAnalysisJobConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2RiskAnalysisJobConfig::Representation
|
|
1379
1381
|
|
|
1380
1382
|
end
|
|
@@ -1385,6 +1387,7 @@ module Google
|
|
|
1385
1387
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1386
1388
|
property :inspect_template, as: 'inspectTemplate', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
1387
1389
|
|
|
1390
|
+
property :location_id, as: 'locationId'
|
|
1388
1391
|
property :template_id, as: 'templateId'
|
|
1389
1392
|
end
|
|
1390
1393
|
end
|
|
@@ -1394,6 +1397,7 @@ module Google
|
|
|
1394
1397
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1395
1398
|
property :job_trigger, as: 'jobTrigger', class: Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
|
1396
1399
|
|
|
1400
|
+
property :location_id, as: 'locationId'
|
|
1397
1401
|
property :trigger_id, as: 'triggerId'
|
|
1398
1402
|
end
|
|
1399
1403
|
end
|
|
@@ -1403,6 +1407,7 @@ module Google
|
|
|
1403
1407
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1404
1408
|
property :config, as: 'config', class: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig::Representation
|
|
1405
1409
|
|
|
1410
|
+
property :location_id, as: 'locationId'
|
|
1406
1411
|
property :stored_info_type_id, as: 'storedInfoTypeId'
|
|
1407
1412
|
end
|
|
1408
1413
|
end
|
|
@@ -1538,7 +1543,7 @@ module Google
|
|
|
1538
1543
|
property :inspect_template_name, as: 'inspectTemplateName'
|
|
1539
1544
|
property :item, as: 'item', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem::Representation
|
|
1540
1545
|
|
|
1541
|
-
property :
|
|
1546
|
+
property :location_id, as: 'locationId'
|
|
1542
1547
|
end
|
|
1543
1548
|
end
|
|
1544
1549
|
|
|
@@ -1872,7 +1877,7 @@ module Google
|
|
|
1872
1877
|
property :inspect_template_name, as: 'inspectTemplateName'
|
|
1873
1878
|
property :item, as: 'item', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem::Representation
|
|
1874
1879
|
|
|
1875
|
-
property :
|
|
1880
|
+
property :location_id, as: 'locationId'
|
|
1876
1881
|
end
|
|
1877
1882
|
end
|
|
1878
1883
|
|
|
@@ -2449,7 +2454,7 @@ module Google
|
|
|
2449
2454
|
property :include_findings, as: 'includeFindings'
|
|
2450
2455
|
property :inspect_config, as: 'inspectConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig::Representation
|
|
2451
2456
|
|
|
2452
|
-
property :
|
|
2457
|
+
property :location_id, as: 'locationId'
|
|
2453
2458
|
end
|
|
2454
2459
|
end
|
|
2455
2460
|
|
|
@@ -2479,7 +2484,7 @@ module Google
|
|
|
2479
2484
|
property :inspect_template_name, as: 'inspectTemplateName'
|
|
2480
2485
|
property :item, as: 'item', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem::Representation
|
|
2481
2486
|
|
|
2482
|
-
property :
|
|
2487
|
+
property :location_id, as: 'locationId'
|
|
2483
2488
|
property :reidentify_config, as: 'reidentifyConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyConfig::Representation
|
|
2484
2489
|
|
|
2485
2490
|
property :reidentify_template_name, as: 'reidentifyTemplateName'
|
|
@@ -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?
|
|
@@ -246,6 +246,9 @@ module Google
|
|
|
246
246
|
# @param [String] parent
|
|
247
247
|
# Required. The parent resource name, for example projects/my-project-id or
|
|
248
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.
|
|
249
252
|
# @param [String] order_by
|
|
250
253
|
# Optional comma separated list of fields to order by,
|
|
251
254
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
@@ -280,11 +283,12 @@ module Google
|
|
|
280
283
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
281
284
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
282
285
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
283
|
-
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)
|
|
284
287
|
command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', options)
|
|
285
288
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
|
|
286
289
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
|
|
287
290
|
command.params['parent'] = parent unless parent.nil?
|
|
291
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
|
288
292
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
289
293
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
290
294
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -440,6 +444,9 @@ module Google
|
|
|
440
444
|
# @param [String] parent
|
|
441
445
|
# Required. The parent resource name, for example projects/my-project-id or
|
|
442
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.
|
|
443
450
|
# @param [String] order_by
|
|
444
451
|
# Optional comma separated list of fields to order by,
|
|
445
452
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
@@ -474,11 +481,12 @@ module Google
|
|
|
474
481
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
475
482
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
476
483
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
477
|
-
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)
|
|
478
485
|
command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', options)
|
|
479
486
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
|
|
480
487
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
|
|
481
488
|
command.params['parent'] = parent unless parent.nil?
|
|
489
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
|
482
490
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
483
491
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
484
492
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -523,13 +531,17 @@ module Google
|
|
|
523
531
|
execute_or_queue_command(command, &block)
|
|
524
532
|
end
|
|
525
533
|
|
|
526
|
-
# Creates a
|
|
527
|
-
#
|
|
528
|
-
#
|
|
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.
|
|
529
538
|
# @param [String] parent
|
|
530
539
|
# Required. The parent resource name, for example projects/my-project-id or
|
|
531
540
|
# organizations/my-org-id.
|
|
532
|
-
# @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
|
|
533
545
|
# @param [String] fields
|
|
534
546
|
# Selector specifying which fields to include in a partial response.
|
|
535
547
|
# @param [String] quota_user
|
|
@@ -539,34 +551,35 @@ module Google
|
|
|
539
551
|
# Request-specific options
|
|
540
552
|
#
|
|
541
553
|
# @yield [result, err] Result & error if block supplied
|
|
542
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
554
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
|
543
555
|
# @yieldparam err [StandardError] error object if request failed
|
|
544
556
|
#
|
|
545
|
-
# @return [Google::Apis::DlpV2::
|
|
557
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
|
546
558
|
#
|
|
547
559
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
548
560
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
549
561
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
550
|
-
def
|
|
551
|
-
command = make_simple_command(:post, 'v2/{+parent}/
|
|
552
|
-
command.request_representation = Google::Apis::DlpV2::
|
|
553
|
-
command.request_object =
|
|
554
|
-
command.response_representation = Google::Apis::DlpV2::
|
|
555
|
-
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
|
|
556
568
|
command.params['parent'] = parent unless parent.nil?
|
|
569
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
557
570
|
command.query['fields'] = fields unless fields.nil?
|
|
558
571
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
559
572
|
execute_or_queue_command(command, &block)
|
|
560
573
|
end
|
|
561
574
|
|
|
562
|
-
# Deletes a
|
|
563
|
-
# See https://cloud.google.com/dlp/docs/creating-
|
|
564
|
-
#
|
|
575
|
+
# Deletes a DeidentifyTemplate.
|
|
576
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
577
|
+
# more.
|
|
565
578
|
# @param [String] name
|
|
566
|
-
# Required. Resource name of the organization and
|
|
567
|
-
#
|
|
568
|
-
# example `organizations/433245324/
|
|
569
|
-
# projects/project-id/
|
|
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.
|
|
570
583
|
# @param [String] fields
|
|
571
584
|
# Selector specifying which fields to include in a partial response.
|
|
572
585
|
# @param [String] quota_user
|
|
@@ -584,7 +597,7 @@ module Google
|
|
|
584
597
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
585
598
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
586
599
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
587
|
-
def
|
|
600
|
+
def delete_organization_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
588
601
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
589
602
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
590
603
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
@@ -594,13 +607,14 @@ module Google
|
|
|
594
607
|
execute_or_queue_command(command, &block)
|
|
595
608
|
end
|
|
596
609
|
|
|
597
|
-
# Gets a
|
|
598
|
-
# See https://cloud.google.com/dlp/docs/creating-
|
|
599
|
-
#
|
|
610
|
+
# Gets a DeidentifyTemplate.
|
|
611
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
612
|
+
# more.
|
|
600
613
|
# @param [String] name
|
|
601
|
-
# Required. Resource name of the organization and
|
|
602
|
-
#
|
|
603
|
-
#
|
|
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.
|
|
604
618
|
# @param [String] fields
|
|
605
619
|
# Selector specifying which fields to include in a partial response.
|
|
606
620
|
# @param [String] quota_user
|
|
@@ -610,48 +624,1680 @@ module Google
|
|
|
610
624
|
# Request-specific options
|
|
611
625
|
#
|
|
612
626
|
# @yield [result, err] Result & error if block supplied
|
|
613
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
627
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
|
614
628
|
# @yieldparam err [StandardError] error object if request failed
|
|
615
629
|
#
|
|
616
|
-
# @return [Google::Apis::DlpV2::
|
|
630
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
|
617
631
|
#
|
|
618
632
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
619
633
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
620
634
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
621
|
-
def
|
|
635
|
+
def get_organization_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
622
636
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
623
|
-
command.response_representation = Google::Apis::DlpV2::
|
|
624
|
-
command.response_class = Google::Apis::DlpV2::
|
|
637
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
638
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
625
639
|
command.params['name'] = name unless name.nil?
|
|
626
640
|
command.query['fields'] = fields unless fields.nil?
|
|
627
641
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
628
642
|
execute_or_queue_command(command, &block)
|
|
629
643
|
end
|
|
630
644
|
|
|
631
|
-
# Lists
|
|
632
|
-
# See https://cloud.google.com/dlp/docs/creating-
|
|
633
|
-
#
|
|
645
|
+
# Lists DeidentifyTemplates.
|
|
646
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
647
|
+
# more.
|
|
634
648
|
# @param [String] parent
|
|
635
649
|
# Required. The parent resource name, for example projects/my-project-id or
|
|
636
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.
|
|
637
654
|
# @param [String] order_by
|
|
638
655
|
# Optional comma separated list of fields to order by,
|
|
639
656
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
640
657
|
# default sorting order is ascending, redundant space characters are
|
|
641
658
|
# insignificant.
|
|
642
|
-
# Example: `name asc,
|
|
659
|
+
# Example: `name asc,update_time, create_time desc`
|
|
643
660
|
# Supported fields are:
|
|
644
|
-
# - `create_time`: corresponds to time the
|
|
645
|
-
#
|
|
646
|
-
# - `
|
|
647
|
-
# - `
|
|
648
|
-
# - `display_name`: corresponds to info type's display name.
|
|
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.
|
|
649
665
|
# @param [Fixnum] page_size
|
|
650
666
|
# Optional size of the page, can be limited by server. If zero server returns
|
|
651
667
|
# a page of max size 100.
|
|
652
668
|
# @param [String] page_token
|
|
653
669
|
# Optional page token to continue retrieval. Comes from previous call
|
|
654
|
-
# to `
|
|
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.
|
|
867
|
+
# @param [Fixnum] page_size
|
|
868
|
+
# Optional size of the page, can be limited by server. If zero server returns
|
|
869
|
+
# a page of max size 100.
|
|
870
|
+
# @param [String] page_token
|
|
871
|
+
# Optional page token to continue retrieval. Comes from previous call
|
|
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.
|
|
655
2301
|
# @param [String] fields
|
|
656
2302
|
# Selector specifying which fields to include in a partial response.
|
|
657
2303
|
# @param [String] quota_user
|
|
@@ -661,19 +2307,21 @@ module Google
|
|
|
661
2307
|
# Request-specific options
|
|
662
2308
|
#
|
|
663
2309
|
# @yield [result, err] Result & error if block supplied
|
|
664
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
2310
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse] parsed result object
|
|
665
2311
|
# @yieldparam err [StandardError] error object if request failed
|
|
666
2312
|
#
|
|
667
|
-
# @return [Google::Apis::DlpV2::
|
|
2313
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse]
|
|
668
2314
|
#
|
|
669
2315
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
670
2316
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
671
2317
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
672
|
-
def
|
|
673
|
-
command = make_simple_command(:get, 'v2/{+parent}/
|
|
674
|
-
command.response_representation = Google::Apis::DlpV2::
|
|
675
|
-
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
|
|
676
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?
|
|
677
2325
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
678
2326
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
679
2327
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -682,15 +2330,12 @@ module Google
|
|
|
682
2330
|
execute_or_queue_command(command, &block)
|
|
683
2331
|
end
|
|
684
2332
|
|
|
685
|
-
# Updates
|
|
686
|
-
#
|
|
687
|
-
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
688
|
-
# learn more.
|
|
2333
|
+
# Updates a job trigger.
|
|
2334
|
+
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
689
2335
|
# @param [String] name
|
|
690
|
-
# Required. Resource name of
|
|
691
|
-
#
|
|
692
|
-
#
|
|
693
|
-
# @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
|
|
694
2339
|
# @param [String] fields
|
|
695
2340
|
# Selector specifying which fields to include in a partial response.
|
|
696
2341
|
# @param [String] quota_user
|
|
@@ -700,20 +2345,20 @@ module Google
|
|
|
700
2345
|
# Request-specific options
|
|
701
2346
|
#
|
|
702
2347
|
# @yield [result, err] Result & error if block supplied
|
|
703
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
2348
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger] parsed result object
|
|
704
2349
|
# @yieldparam err [StandardError] error object if request failed
|
|
705
2350
|
#
|
|
706
|
-
# @return [Google::Apis::DlpV2::
|
|
2351
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger]
|
|
707
2352
|
#
|
|
708
2353
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
709
2354
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
710
2355
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
711
|
-
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)
|
|
712
2357
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
713
|
-
command.request_representation = Google::Apis::DlpV2::
|
|
714
|
-
command.request_object =
|
|
715
|
-
command.response_representation = Google::Apis::DlpV2::
|
|
716
|
-
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
|
|
717
2362
|
command.params['name'] = name unless name.nil?
|
|
718
2363
|
command.query['fields'] = fields unless fields.nil?
|
|
719
2364
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -729,6 +2374,9 @@ module Google
|
|
|
729
2374
|
# be all types, but may change over time as detectors are updated.
|
|
730
2375
|
# @param [String] parent
|
|
731
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.
|
|
732
2380
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object
|
|
733
2381
|
# @param [String] fields
|
|
734
2382
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -747,13 +2395,14 @@ module Google
|
|
|
747
2395
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
748
2396
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
749
2397
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
750
|
-
def
|
|
751
|
-
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)
|
|
752
2400
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest::Representation
|
|
753
2401
|
command.request_object = google_privacy_dlp_v2_deidentify_content_request_object
|
|
754
2402
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse::Representation
|
|
755
2403
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse
|
|
756
2404
|
command.params['parent'] = parent unless parent.nil?
|
|
2405
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
757
2406
|
command.query['fields'] = fields unless fields.nil?
|
|
758
2407
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
759
2408
|
execute_or_queue_command(command, &block)
|
|
@@ -768,6 +2417,9 @@ module Google
|
|
|
768
2417
|
# and https://cloud.google.com/dlp/docs/inspecting-text,
|
|
769
2418
|
# @param [String] parent
|
|
770
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.
|
|
771
2423
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
|
|
772
2424
|
# @param [String] fields
|
|
773
2425
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -786,13 +2438,14 @@ module Google
|
|
|
786
2438
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
787
2439
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
788
2440
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
789
|
-
def
|
|
790
|
-
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)
|
|
791
2443
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest::Representation
|
|
792
2444
|
command.request_object = google_privacy_dlp_v2_inspect_content_request_object
|
|
793
2445
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse::Representation
|
|
794
2446
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse
|
|
795
2447
|
command.params['parent'] = parent unless parent.nil?
|
|
2448
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
796
2449
|
command.query['fields'] = fields unless fields.nil?
|
|
797
2450
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
798
2451
|
execute_or_queue_command(command, &block)
|
|
@@ -805,6 +2458,9 @@ module Google
|
|
|
805
2458
|
# to learn more.
|
|
806
2459
|
# @param [String] parent
|
|
807
2460
|
# Required. The parent resource name.
|
|
2461
|
+
# @param [String] location_id
|
|
2462
|
+
# The geographic location to process content reidentification. Reserved for
|
|
2463
|
+
# future extensions.
|
|
808
2464
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
|
|
809
2465
|
# @param [String] fields
|
|
810
2466
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -823,13 +2479,14 @@ module Google
|
|
|
823
2479
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
824
2480
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
825
2481
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
826
|
-
def
|
|
827
|
-
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)
|
|
828
2484
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest::Representation
|
|
829
2485
|
command.request_object = google_privacy_dlp_v2_reidentify_content_request_object
|
|
830
2486
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse::Representation
|
|
831
2487
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse
|
|
832
2488
|
command.params['parent'] = parent unless parent.nil?
|
|
2489
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
833
2490
|
command.query['fields'] = fields unless fields.nil?
|
|
834
2491
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
835
2492
|
execute_or_queue_command(command, &block)
|
|
@@ -842,6 +2499,9 @@ module Google
|
|
|
842
2499
|
# @param [String] parent
|
|
843
2500
|
# Required. The parent resource name, for example projects/my-project-id or
|
|
844
2501
|
# organizations/my-org-id.
|
|
2502
|
+
# @param [String] location_id
|
|
2503
|
+
# The geographic location to store the deidentification template. Reserved
|
|
2504
|
+
# for future extensions.
|
|
845
2505
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
|
|
846
2506
|
# @param [String] fields
|
|
847
2507
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -860,13 +2520,14 @@ module Google
|
|
|
860
2520
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
861
2521
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
862
2522
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
863
|
-
def
|
|
864
|
-
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)
|
|
865
2525
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
|
|
866
2526
|
command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
|
|
867
2527
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
868
2528
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
869
2529
|
command.params['parent'] = parent unless parent.nil?
|
|
2530
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
870
2531
|
command.query['fields'] = fields unless fields.nil?
|
|
871
2532
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
872
2533
|
execute_or_queue_command(command, &block)
|
|
@@ -897,7 +2558,7 @@ module Google
|
|
|
897
2558
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
898
2559
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
899
2560
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
900
|
-
def
|
|
2561
|
+
def delete_project_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
901
2562
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
902
2563
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
903
2564
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
@@ -932,7 +2593,7 @@ module Google
|
|
|
932
2593
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
933
2594
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
934
2595
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
935
|
-
def
|
|
2596
|
+
def get_project_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
936
2597
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
937
2598
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
|
938
2599
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
|
@@ -948,6 +2609,9 @@ module Google
|
|
|
948
2609
|
# @param [String] parent
|
|
949
2610
|
# Required. The parent resource name, for example projects/my-project-id or
|
|
950
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.
|
|
951
2615
|
# @param [String] order_by
|
|
952
2616
|
# Optional comma separated list of fields to order by,
|
|
953
2617
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
@@ -982,11 +2646,12 @@ module Google
|
|
|
982
2646
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
983
2647
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
984
2648
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
985
|
-
def
|
|
986
|
-
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)
|
|
987
2651
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
|
|
988
2652
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
|
|
989
2653
|
command.params['parent'] = parent unless parent.nil?
|
|
2654
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
990
2655
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
991
2656
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
992
2657
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -1021,7 +2686,7 @@ module Google
|
|
|
1021
2686
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1022
2687
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1023
2688
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1024
|
-
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)
|
|
1025
2690
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
1026
2691
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation
|
|
1027
2692
|
command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object
|
|
@@ -1058,7 +2723,7 @@ module Google
|
|
|
1058
2723
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1059
2724
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1060
2725
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1061
|
-
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)
|
|
1062
2727
|
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
|
1063
2728
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest::Representation
|
|
1064
2729
|
command.request_object = google_privacy_dlp_v2_cancel_dlp_job_request_object
|
|
@@ -1078,6 +2743,9 @@ module Google
|
|
|
1078
2743
|
# be all types, but may change over time as detectors are updated.
|
|
1079
2744
|
# @param [String] parent
|
|
1080
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.
|
|
1081
2749
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object
|
|
1082
2750
|
# @param [String] fields
|
|
1083
2751
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1096,13 +2764,14 @@ module Google
|
|
|
1096
2764
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1097
2765
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1098
2766
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1099
|
-
def
|
|
1100
|
-
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)
|
|
1101
2769
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest::Representation
|
|
1102
2770
|
command.request_object = google_privacy_dlp_v2_create_dlp_job_request_object
|
|
1103
2771
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
|
|
1104
2772
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
|
|
1105
2773
|
command.params['parent'] = parent unless parent.nil?
|
|
2774
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1106
2775
|
command.query['fields'] = fields unless fields.nil?
|
|
1107
2776
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1108
2777
|
execute_or_queue_command(command, &block)
|
|
@@ -1132,7 +2801,7 @@ module Google
|
|
|
1132
2801
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1133
2802
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1134
2803
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1135
|
-
def
|
|
2804
|
+
def delete_project_location_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1136
2805
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1137
2806
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
1138
2807
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
@@ -1164,7 +2833,7 @@ module Google
|
|
|
1164
2833
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1165
2834
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1166
2835
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1167
|
-
def
|
|
2836
|
+
def get_project_location_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1168
2837
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1169
2838
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
|
|
1170
2839
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
|
|
@@ -1179,6 +2848,9 @@ module Google
|
|
|
1179
2848
|
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1180
2849
|
# @param [String] parent
|
|
1181
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.
|
|
1182
2854
|
# @param [String] filter
|
|
1183
2855
|
# Optional. Allows filtering.
|
|
1184
2856
|
# Supported syntax:
|
|
@@ -1237,11 +2909,12 @@ module Google
|
|
|
1237
2909
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1238
2910
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1239
2911
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1240
|
-
def
|
|
1241
|
-
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)
|
|
1242
2914
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse::Representation
|
|
1243
2915
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse
|
|
1244
2916
|
command.params['parent'] = parent unless parent.nil?
|
|
2917
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1245
2918
|
command.query['filter'] = filter unless filter.nil?
|
|
1246
2919
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1247
2920
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
@@ -1261,6 +2934,9 @@ module Google
|
|
|
1261
2934
|
# be all types, but may change over time as detectors are updated.
|
|
1262
2935
|
# @param [String] parent
|
|
1263
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.
|
|
1264
2940
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object
|
|
1265
2941
|
# @param [String] fields
|
|
1266
2942
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1279,13 +2955,14 @@ module Google
|
|
|
1279
2955
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1280
2956
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1281
2957
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1282
|
-
def
|
|
1283
|
-
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)
|
|
1284
2960
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest::Representation
|
|
1285
2961
|
command.request_object = google_privacy_dlp_v2_redact_image_request_object
|
|
1286
2962
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse::Representation
|
|
1287
2963
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
|
|
1288
2964
|
command.params['parent'] = parent unless parent.nil?
|
|
2965
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1289
2966
|
command.query['fields'] = fields unless fields.nil?
|
|
1290
2967
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1291
2968
|
execute_or_queue_command(command, &block)
|
|
@@ -1297,6 +2974,9 @@ module Google
|
|
|
1297
2974
|
# @param [String] parent
|
|
1298
2975
|
# Required. The parent resource name, for example projects/my-project-id or
|
|
1299
2976
|
# organizations/my-org-id.
|
|
2977
|
+
# @param [String] location_id
|
|
2978
|
+
# The geographic location to store the inspection template. Reserved for
|
|
2979
|
+
# future extensions.
|
|
1300
2980
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
|
|
1301
2981
|
# @param [String] fields
|
|
1302
2982
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1315,13 +2995,14 @@ module Google
|
|
|
1315
2995
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1316
2996
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1317
2997
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1318
|
-
def
|
|
1319
|
-
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)
|
|
1320
3000
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
|
|
1321
3001
|
command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
|
|
1322
3002
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
1323
3003
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
1324
3004
|
command.params['parent'] = parent unless parent.nil?
|
|
3005
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1325
3006
|
command.query['fields'] = fields unless fields.nil?
|
|
1326
3007
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1327
3008
|
execute_or_queue_command(command, &block)
|
|
@@ -1351,7 +3032,7 @@ module Google
|
|
|
1351
3032
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1352
3033
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1353
3034
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1354
|
-
def
|
|
3035
|
+
def delete_project_location_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1355
3036
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1356
3037
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
1357
3038
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
@@ -1385,7 +3066,7 @@ module Google
|
|
|
1385
3066
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1386
3067
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1387
3068
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1388
|
-
def
|
|
3069
|
+
def get_project_location_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1389
3070
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1390
3071
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
|
1391
3072
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
|
@@ -1400,6 +3081,9 @@ module Google
|
|
|
1400
3081
|
# @param [String] parent
|
|
1401
3082
|
# Required. The parent resource name, for example projects/my-project-id or
|
|
1402
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.
|
|
1403
3087
|
# @param [String] order_by
|
|
1404
3088
|
# Optional comma separated list of fields to order by,
|
|
1405
3089
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
@@ -1434,11 +3118,12 @@ module Google
|
|
|
1434
3118
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1435
3119
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1436
3120
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1437
|
-
def
|
|
1438
|
-
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)
|
|
1439
3123
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
|
|
1440
3124
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
|
|
1441
3125
|
command.params['parent'] = parent unless parent.nil?
|
|
3126
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1442
3127
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1443
3128
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1444
3129
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -1471,7 +3156,7 @@ module Google
|
|
|
1471
3156
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1472
3157
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1473
3158
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1474
|
-
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)
|
|
1475
3160
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
1476
3161
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation
|
|
1477
3162
|
command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object
|
|
@@ -1506,7 +3191,7 @@ module Google
|
|
|
1506
3191
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1507
3192
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1508
3193
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1509
|
-
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)
|
|
1510
3195
|
command = make_simple_command(:post, 'v2/{+name}:activate', options)
|
|
1511
3196
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest::Representation
|
|
1512
3197
|
command.request_object = google_privacy_dlp_v2_activate_job_trigger_request_object
|
|
@@ -1523,6 +3208,9 @@ module Google
|
|
|
1523
3208
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
1524
3209
|
# @param [String] parent
|
|
1525
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.
|
|
1526
3214
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
|
|
1527
3215
|
# @param [String] fields
|
|
1528
3216
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -1541,13 +3229,14 @@ module Google
|
|
|
1541
3229
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1542
3230
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1543
3231
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1544
|
-
def
|
|
1545
|
-
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)
|
|
1546
3234
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest::Representation
|
|
1547
3235
|
command.request_object = google_privacy_dlp_v2_create_job_trigger_request_object
|
|
1548
3236
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
|
1549
3237
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
|
|
1550
3238
|
command.params['parent'] = parent unless parent.nil?
|
|
3239
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1551
3240
|
command.query['fields'] = fields unless fields.nil?
|
|
1552
3241
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1553
3242
|
execute_or_queue_command(command, &block)
|
|
@@ -1575,7 +3264,7 @@ module Google
|
|
|
1575
3264
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1576
3265
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1577
3266
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1578
|
-
def
|
|
3267
|
+
def delete_project_location_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1579
3268
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
1580
3269
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
|
1581
3270
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
|
@@ -1607,7 +3296,7 @@ module Google
|
|
|
1607
3296
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1608
3297
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1609
3298
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1610
|
-
def
|
|
3299
|
+
def get_project_location_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1611
3300
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
1612
3301
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
|
1613
3302
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
|
|
@@ -1621,6 +3310,9 @@ module Google
|
|
|
1621
3310
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
1622
3311
|
# @param [String] parent
|
|
1623
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.
|
|
1624
3316
|
# @param [String] filter
|
|
1625
3317
|
# Optional. Allows filtering.
|
|
1626
3318
|
# Supported syntax:
|
|
@@ -1677,11 +3369,12 @@ module Google
|
|
|
1677
3369
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1678
3370
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1679
3371
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1680
|
-
def
|
|
1681
|
-
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)
|
|
1682
3374
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse::Representation
|
|
1683
3375
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse
|
|
1684
3376
|
command.params['parent'] = parent unless parent.nil?
|
|
3377
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1685
3378
|
command.query['filter'] = filter unless filter.nil?
|
|
1686
3379
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1687
3380
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
@@ -1714,7 +3407,7 @@ module Google
|
|
|
1714
3407
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1715
3408
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1716
3409
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1717
|
-
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)
|
|
1718
3411
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
1719
3412
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest::Representation
|
|
1720
3413
|
command.request_object = google_privacy_dlp_v2_update_job_trigger_request_object
|
|
@@ -1726,19 +3419,16 @@ module Google
|
|
|
1726
3419
|
execute_or_queue_command(command, &block)
|
|
1727
3420
|
end
|
|
1728
3421
|
|
|
1729
|
-
#
|
|
1730
|
-
#
|
|
1731
|
-
# 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
|
|
1732
3424
|
# learn more.
|
|
1733
|
-
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
|
1734
|
-
# system will automatically choose what detectors to run. By default this may
|
|
1735
|
-
# be all types, but may change over time as detectors are updated.
|
|
1736
3425
|
# @param [String] parent
|
|
1737
|
-
# The parent resource name, for example projects/my-project-id
|
|
1738
|
-
#
|
|
1739
|
-
#
|
|
1740
|
-
#
|
|
1741
|
-
#
|
|
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
|
|
1742
3432
|
# @param [String] fields
|
|
1743
3433
|
# Selector specifying which fields to include in a partial response.
|
|
1744
3434
|
# @param [String] quota_user
|
|
@@ -1748,40 +3438,35 @@ module Google
|
|
|
1748
3438
|
# Request-specific options
|
|
1749
3439
|
#
|
|
1750
3440
|
# @yield [result, err] Result & error if block supplied
|
|
1751
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
3441
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
|
1752
3442
|
# @yieldparam err [StandardError] error object if request failed
|
|
1753
3443
|
#
|
|
1754
|
-
# @return [Google::Apis::DlpV2::
|
|
3444
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
|
1755
3445
|
#
|
|
1756
3446
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1757
3447
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1758
3448
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1759
|
-
def
|
|
1760
|
-
command = make_simple_command(:post, 'v2/{+parent}/locations/{
|
|
1761
|
-
command.request_representation = Google::Apis::DlpV2::
|
|
1762
|
-
command.request_object =
|
|
1763
|
-
command.response_representation = Google::Apis::DlpV2::
|
|
1764
|
-
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
|
|
1765
3455
|
command.params['parent'] = parent unless parent.nil?
|
|
1766
|
-
command.params['
|
|
3456
|
+
command.params['locationId'] = location_id unless location_id.nil?
|
|
1767
3457
|
command.query['fields'] = fields unless fields.nil?
|
|
1768
3458
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1769
3459
|
execute_or_queue_command(command, &block)
|
|
1770
3460
|
end
|
|
1771
3461
|
|
|
1772
|
-
#
|
|
1773
|
-
#
|
|
1774
|
-
#
|
|
1775
|
-
#
|
|
1776
|
-
#
|
|
1777
|
-
#
|
|
1778
|
-
#
|
|
1779
|
-
#
|
|
1780
|
-
# The parent resource name, for example projects/my-project-id.
|
|
1781
|
-
# @param [String] location
|
|
1782
|
-
# The geographic location to process content inspection. Reserved for future
|
|
1783
|
-
# extensions.
|
|
1784
|
-
# @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.
|
|
1785
3470
|
# @param [String] fields
|
|
1786
3471
|
# Selector specifying which fields to include in a partial response.
|
|
1787
3472
|
# @param [String] quota_user
|
|
@@ -1791,38 +3476,31 @@ module Google
|
|
|
1791
3476
|
# Request-specific options
|
|
1792
3477
|
#
|
|
1793
3478
|
# @yield [result, err] Result & error if block supplied
|
|
1794
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
3479
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
|
1795
3480
|
# @yieldparam err [StandardError] error object if request failed
|
|
1796
3481
|
#
|
|
1797
|
-
# @return [Google::Apis::DlpV2::
|
|
3482
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
|
1798
3483
|
#
|
|
1799
3484
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1800
3485
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1801
3486
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1802
|
-
def
|
|
1803
|
-
command = make_simple_command(:
|
|
1804
|
-
command.
|
|
1805
|
-
command.
|
|
1806
|
-
command.
|
|
1807
|
-
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse
|
|
1808
|
-
command.params['parent'] = parent unless parent.nil?
|
|
1809
|
-
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?
|
|
1810
3492
|
command.query['fields'] = fields unless fields.nil?
|
|
1811
3493
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1812
3494
|
execute_or_queue_command(command, &block)
|
|
1813
3495
|
end
|
|
1814
3496
|
|
|
1815
|
-
#
|
|
1816
|
-
# See
|
|
1817
|
-
#
|
|
1818
|
-
#
|
|
1819
|
-
# to
|
|
1820
|
-
#
|
|
1821
|
-
#
|
|
1822
|
-
# @param [String] location
|
|
1823
|
-
# The geographic location to process content reidentification. Reserved for
|
|
1824
|
-
# future extensions.
|
|
1825
|
-
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
|
|
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.
|
|
1826
3504
|
# @param [String] fields
|
|
1827
3505
|
# Selector specifying which fields to include in a partial response.
|
|
1828
3506
|
# @param [String] quota_user
|
|
@@ -1832,40 +3510,51 @@ module Google
|
|
|
1832
3510
|
# Request-specific options
|
|
1833
3511
|
#
|
|
1834
3512
|
# @yield [result, err] Result & error if block supplied
|
|
1835
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
3513
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
|
1836
3514
|
# @yieldparam err [StandardError] error object if request failed
|
|
1837
3515
|
#
|
|
1838
|
-
# @return [Google::Apis::DlpV2::
|
|
3516
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
|
1839
3517
|
#
|
|
1840
3518
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1841
3519
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1842
3520
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1843
|
-
def
|
|
1844
|
-
command = make_simple_command(:
|
|
1845
|
-
command.
|
|
1846
|
-
command.
|
|
1847
|
-
command.
|
|
1848
|
-
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse
|
|
1849
|
-
command.params['parent'] = parent unless parent.nil?
|
|
1850
|
-
command.params['location'] = location unless location.nil?
|
|
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?
|
|
1851
3526
|
command.query['fields'] = fields unless fields.nil?
|
|
1852
3527
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1853
3528
|
execute_or_queue_command(command, &block)
|
|
1854
3529
|
end
|
|
1855
3530
|
|
|
1856
|
-
#
|
|
1857
|
-
#
|
|
1858
|
-
# See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
|
|
3531
|
+
# Lists stored infoTypes.
|
|
3532
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1859
3533
|
# learn more.
|
|
1860
|
-
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
|
1861
|
-
# system will automatically choose what detectors to run. By default this may
|
|
1862
|
-
# be all types, but may change over time as detectors are updated.
|
|
1863
3534
|
# @param [String] parent
|
|
1864
|
-
# The parent resource name, for example projects/my-project-id
|
|
1865
|
-
#
|
|
1866
|
-
#
|
|
1867
|
-
#
|
|
1868
|
-
#
|
|
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`.
|
|
1869
3558
|
# @param [String] fields
|
|
1870
3559
|
# Selector specifying which fields to include in a partial response.
|
|
1871
3560
|
# @param [String] quota_user
|
|
@@ -1875,22 +3564,61 @@ module Google
|
|
|
1875
3564
|
# Request-specific options
|
|
1876
3565
|
#
|
|
1877
3566
|
# @yield [result, err] Result & error if block supplied
|
|
1878
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
|
3567
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse] parsed result object
|
|
1879
3568
|
# @yieldparam err [StandardError] error object if request failed
|
|
1880
3569
|
#
|
|
1881
|
-
# @return [Google::Apis::DlpV2::
|
|
3570
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse]
|
|
1882
3571
|
#
|
|
1883
3572
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1884
3573
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1885
3574
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1886
|
-
def
|
|
1887
|
-
command = make_simple_command(:
|
|
1888
|
-
command.
|
|
1889
|
-
command.
|
|
1890
|
-
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse::Representation
|
|
1891
|
-
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
|
|
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
|
|
1892
3579
|
command.params['parent'] = parent unless parent.nil?
|
|
1893
|
-
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?
|
|
1894
3622
|
command.query['fields'] = fields unless fields.nil?
|
|
1895
3623
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1896
3624
|
execute_or_queue_command(command, &block)
|
|
@@ -2007,6 +3735,9 @@ module Google
|
|
|
2007
3735
|
# @param [String] parent
|
|
2008
3736
|
# Required. The parent resource name, for example projects/my-project-id or
|
|
2009
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.
|
|
2010
3741
|
# @param [String] order_by
|
|
2011
3742
|
# Optional comma separated list of fields to order by,
|
|
2012
3743
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
@@ -2042,11 +3773,12 @@ module Google
|
|
|
2042
3773
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2043
3774
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2044
3775
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2045
|
-
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)
|
|
2046
3777
|
command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', options)
|
|
2047
3778
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
|
|
2048
3779
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
|
|
2049
3780
|
command.params['parent'] = parent unless parent.nil?
|
|
3781
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
|
2050
3782
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
2051
3783
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
2052
3784
|
command.query['pageToken'] = page_token unless page_token.nil?
|