google-api-client 0.32.1 → 0.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.kokoro/continuous/linux.cfg +2 -2
- data/.kokoro/continuous/post.cfg +30 -0
- data/.kokoro/presubmit/linux.cfg +1 -1
- data/.kokoro/release.cfg +94 -0
- data/.repo-metadata.json +5 -0
- data/.rubocop.yml +5 -0
- data/.yardopts +16 -2
- data/CHANGELOG.md +1354 -0
- data/Gemfile +1 -0
- data/OVERVIEW.md +36 -0
- data/README.md +50 -2
- data/Rakefile +71 -2
- data/api_list_config.yaml +1 -0
- data/api_names.yaml +2 -0
- data/bin/generate-api +10 -2
- data/docs/api-keys.md +20 -0
- data/docs/auth.md +53 -0
- data/docs/client-secrets.md +69 -0
- data/docs/getting-started.md +340 -0
- data/docs/installation.md +0 -0
- data/docs/logging.md +34 -0
- data/docs/media-upload.md +25 -0
- data/docs/oauth-installed.md +191 -0
- data/docs/oauth-server.md +135 -0
- data/docs/oauth-web.md +280 -0
- data/docs/oauth.md +268 -0
- data/docs/pagination.md +29 -0
- data/docs/performance.md +25 -0
- data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -4
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1/classes.rb +417 -0
- data/generated/google/apis/accessapproval_v1/representations.rb +203 -0
- data/generated/google/apis/accessapproval_v1/service.rb +869 -0
- data/generated/google/apis/{servicebroker_v1.rb → accessapproval_v1.rb} +8 -10
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +35 -2
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +13 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +108 -6
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +357 -56
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +137 -6
- data/generated/google/apis/accesscontextmanager_v1/service.rb +143 -5
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +133 -125
- data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +21 -27
- data/generated/google/apis/accesscontextmanager_v1beta/service.rb +6 -5
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +35 -5
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +4 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +24 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -3
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1.rb +1 -4
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +5 -5
- data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +4 -150
- data/generated/google/apis/admin_directory_v1/representations.rb +0 -54
- data/generated/google/apis/admin_directory_v1/service.rb +0 -60
- data/generated/google/apis/admin_directory_v1.rb +4 -1
- data/generated/google/apis/admin_reports_v1/classes.rb +87 -44
- data/generated/google/apis/admin_reports_v1/service.rb +310 -64
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- data/generated/google/apis/admob_v1/classes.rb +951 -0
- data/generated/google/apis/admob_v1/representations.rb +378 -0
- data/generated/google/apis/admob_v1/service.rb +196 -0
- data/generated/google/apis/{analytics_v2_4/classes.rb → admob_v1.rb} +11 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +5 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +259 -7
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +126 -0
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -2
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +39 -60
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -403
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +203 -6
- data/generated/google/apis/androidmanagement_v1/representations.rb +68 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +6 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1/classes.rb +0 -41
- data/generated/google/apis/androidpublisher_v1/representations.rb +0 -16
- data/generated/google/apis/androidpublisher_v1/service.rb +1 -81
- data/generated/google/apis/androidpublisher_v1.rb +1 -4
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +0 -41
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +0 -16
- data/generated/google/apis/androidpublisher_v1_1/service.rb +0 -80
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +37 -1755
- data/generated/google/apis/androidpublisher_v2/representations.rb +15 -804
- data/generated/google/apis/androidpublisher_v2/service.rb +0 -2359
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +404 -65
- data/generated/google/apis/androidpublisher_v3/representations.rb +180 -27
- data/generated/google/apis/androidpublisher_v3/service.rb +162 -3
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +4928 -0
- data/generated/google/apis/apigee_v1/representations.rb +1822 -0
- data/generated/google/apis/apigee_v1/service.rb +5578 -0
- data/generated/google/apis/apigee_v1.rb +40 -0
- data/generated/google/apis/appengine_v1/classes.rb +7 -0
- data/generated/google/apis/appengine_v1/representations.rb +1 -0
- data/generated/google/apis/appengine_v1/service.rb +10 -6
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +7 -38
- data/generated/google/apis/appengine_v1beta/representations.rb +1 -17
- data/generated/google/apis/appengine_v1beta/service.rb +10 -6
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1 → artifactregistry_v1beta1}/classes.rb +591 -765
- data/generated/google/apis/{servicebroker_v1alpha1 → artifactregistry_v1beta1}/representations.rb +128 -115
- data/generated/google/apis/artifactregistry_v1beta1/service.rb +957 -0
- data/generated/google/apis/artifactregistry_v1beta1.rb +38 -0
- data/generated/google/apis/bigquery_v2/classes.rb +993 -43
- data/generated/google/apis/bigquery_v2/representations.rb +273 -2
- data/generated/google/apis/bigquery_v2/service.rb +137 -4
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +149 -59
- data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +2 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +11 -10
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +49 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +19 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +90 -34
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +392 -16
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +174 -6
- data/generated/google/apis/bigqueryreservation_v1/service.rb +758 -0
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +109 -10
- data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +26 -3
- data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +71 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +166 -160
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +49 -38
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +257 -146
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +21 -18
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +189 -82
- data/generated/google/apis/bigtableadmin_v2/service.rb +170 -58
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +413 -0
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +197 -0
- data/generated/google/apis/billingbudgets_v1beta1/service.rb +244 -0
- data/generated/google/apis/{servicebroker_v1beta1.rb → billingbudgets_v1beta1.rb} +9 -10
- data/generated/google/apis/binaryauthorization_v1/classes.rb +143 -58
- data/generated/google/apis/binaryauthorization_v1/service.rb +10 -2
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +139 -57
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +10 -2
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/blogger_v2/classes.rb +297 -45
- data/generated/google/apis/blogger_v2/representations.rb +105 -26
- data/generated/google/apis/blogger_v2/service.rb +79 -134
- data/generated/google/apis/blogger_v2.rb +5 -4
- data/generated/google/apis/blogger_v3/classes.rb +60 -53
- data/generated/google/apis/blogger_v3/representations.rb +10 -18
- data/generated/google/apis/blogger_v3/service.rb +183 -463
- data/generated/google/apis/blogger_v3.rb +4 -3
- data/generated/google/apis/books_v1/classes.rb +494 -242
- data/generated/google/apis/books_v1/representations.rb +145 -72
- data/generated/google/apis/books_v1/service.rb +354 -484
- data/generated/google/apis/books_v1.rb +3 -3
- data/generated/google/apis/calendar_v3/classes.rb +8 -21
- data/generated/google/apis/calendar_v3/service.rb +18 -30
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +29 -3
- data/generated/google/apis/chat_v1/representations.rb +3 -0
- data/generated/google/apis/chat_v1/service.rb +5 -2
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chromeuxreport_v1/classes.rb +297 -0
- data/generated/google/apis/chromeuxreport_v1/representations.rb +147 -0
- data/generated/google/apis/chromeuxreport_v1/service.rb +92 -0
- data/generated/google/apis/{pagespeedonline_v1.rb → chromeuxreport_v1.rb} +9 -9
- data/generated/google/apis/civicinfo_v2/classes.rb +0 -156
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -60
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +14 -14
- data/generated/google/apis/classroom_v1/service.rb +11 -11
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +917 -195
- data/generated/google/apis/cloudasset_v1/representations.rb +234 -6
- data/generated/google/apis/cloudasset_v1/service.rb +363 -12
- data/generated/google/apis/cloudasset_v1.rb +2 -2
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +139 -57
- data/generated/google/apis/cloudasset_v1beta1/service.rb +13 -4
- data/generated/google/apis/cloudasset_v1beta1.rb +2 -2
- data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +701 -0
- data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +201 -0
- data/generated/google/apis/cloudasset_v1p1beta1/service.rb +189 -0
- data/generated/google/apis/cloudasset_v1p1beta1.rb +34 -0
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +924 -0
- data/generated/google/apis/cloudasset_v1p4beta1/representations.rb +377 -0
- data/generated/google/apis/cloudasset_v1p4beta1/service.rb +217 -0
- data/generated/google/apis/cloudasset_v1p4beta1.rb +34 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +179 -68
- data/generated/google/apis/cloudbilling_v1/representations.rb +0 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +16 -9
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +55 -10
- data/generated/google/apis/cloudbuild_v1/representations.rb +5 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +139 -18
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +170 -5
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +63 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +121 -5
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +1283 -0
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +491 -0
- data/generated/google/apis/cloudbuild_v1alpha2/service.rb +353 -0
- data/generated/google/apis/cloudbuild_v1alpha2.rb +34 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +34 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +4 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +24 -17
- data/generated/google/apis/clouddebugger_v2.rb +2 -2
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +13 -13
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +2 -2
- data/generated/google/apis/cloudfunctions_v1/classes.rb +161 -59
- data/generated/google/apis/cloudfunctions_v1/representations.rb +3 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +13 -4
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +10 -4
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +11 -8
- data/generated/google/apis/cloudidentity_v1/service.rb +22 -14
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1009 -69
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +390 -0
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +189 -78
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +142 -57
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +461 -61
- data/generated/google/apis/cloudkms_v1/representations.rb +33 -0
- data/generated/google/apis/cloudkms_v1/service.rb +15 -3
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudprofiler_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +155 -71
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +6 -3
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +143 -59
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +147 -67
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +11 -13
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +147 -67
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +11 -13
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +3 -2
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +3 -2
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +86 -195
- data/generated/google/apis/cloudsearch_v1/representations.rb +1 -75
- data/generated/google/apis/cloudsearch_v1/service.rb +62 -10
- data/generated/google/apis/cloudsearch_v1.rb +8 -8
- data/generated/google/apis/cloudshell_v1/classes.rb +24 -1
- data/generated/google/apis/cloudshell_v1/representations.rb +3 -0
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +30 -1
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +5 -0
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +388 -70
- data/generated/google/apis/cloudtasks_v2/representations.rb +65 -0
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +148 -66
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +6 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +156 -74
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/service.rb +10 -4
- data/generated/google/apis/cloudtrace_v1.rb +5 -5
- data/generated/google/apis/cloudtrace_v2/classes.rb +8 -7
- data/generated/google/apis/cloudtrace_v2/service.rb +8 -4
- data/generated/google/apis/cloudtrace_v2.rb +5 -5
- data/generated/google/apis/cloudtrace_v2beta1/classes.rb +143 -0
- data/generated/google/apis/{oauth2_v1 → cloudtrace_v2beta1}/representations.rb +36 -27
- data/generated/google/apis/cloudtrace_v2beta1/service.rb +258 -0
- data/generated/google/apis/cloudtrace_v2beta1.rb +44 -0
- data/generated/google/apis/composer_v1/classes.rb +180 -0
- data/generated/google/apis/composer_v1/representations.rb +54 -0
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +152 -5
- data/generated/google/apis/composer_v1beta1/representations.rb +64 -0
- data/generated/google/apis/composer_v1beta1/service.rb +5 -0
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +3252 -973
- data/generated/google/apis/compute_alpha/representations.rb +634 -69
- data/generated/google/apis/compute_alpha/service.rb +9085 -6210
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +4787 -1066
- data/generated/google/apis/compute_beta/representations.rb +1394 -31
- data/generated/google/apis/compute_beta/service.rb +8858 -5018
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2976 -599
- data/generated/google/apis/compute_v1/representations.rb +850 -0
- data/generated/google/apis/compute_v1/service.rb +4634 -2481
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +925 -164
- data/generated/google/apis/container_v1/representations.rb +278 -0
- data/generated/google/apis/container_v1/service.rb +175 -158
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +803 -340
- data/generated/google/apis/container_v1beta1/representations.rb +185 -39
- data/generated/google/apis/container_v1beta1/service.rb +294 -277
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +142 -57
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +478 -59
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +159 -0
- data/generated/google/apis/containeranalysis_v1beta1/service.rb +26 -20
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +1566 -634
- data/generated/google/apis/content_v2/representations.rb +78 -115
- data/generated/google/apis/content_v2/service.rb +81 -206
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +2706 -683
- data/generated/google/apis/content_v2_1/representations.rb +551 -0
- data/generated/google/apis/content_v2_1/service.rb +520 -46
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/customsearch_v1/classes.rb +1194 -353
- data/generated/google/apis/customsearch_v1/representations.rb +166 -95
- data/generated/google/apis/customsearch_v1/service.rb +373 -104
- data/generated/google/apis/customsearch_v1.rb +3 -3
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +1907 -0
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +739 -0
- data/generated/google/apis/datacatalog_v1beta1/service.rb +2247 -0
- data/generated/google/apis/{cloudprivatecatalog_v1beta1.rb → datacatalog_v1beta1.rb} +9 -9
- data/generated/google/apis/dataflow_v1b3/classes.rb +786 -11
- data/generated/google/apis/dataflow_v1b3/representations.rb +377 -1
- data/generated/google/apis/dataflow_v1b3/service.rb +626 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +245 -362
- data/generated/google/apis/datafusion_v1beta1/representations.rb +29 -112
- data/generated/google/apis/datafusion_v1beta1/service.rb +15 -2
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +533 -177
- data/generated/google/apis/dataproc_v1/representations.rb +85 -0
- data/generated/google/apis/dataproc_v1/service.rb +102 -36
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +477 -182
- data/generated/google/apis/dataproc_v1beta2/representations.rb +81 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +199 -43
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +17 -23
- data/generated/google/apis/datastore_v1/service.rb +93 -9
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +6 -5
- data/generated/google/apis/datastore_v1beta3/service.rb +7 -7
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +362 -176
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +22 -4
- data/generated/google/apis/deploymentmanager_alpha/service.rb +198 -311
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +295 -146
- data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -1
- data/generated/google/apis/deploymentmanager_v2/service.rb +101 -99
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +350 -170
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +18 -1
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +154 -152
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +39 -13
- data/generated/google/apis/dfareporting_v3_3/service.rb +9 -8
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/classes.rb +1361 -813
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/representations.rb +639 -396
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/service.rb +969 -1076
- data/generated/google/apis/{dfareporting_v3_2.rb → dfareporting_v3_4.rb} +6 -6
- data/generated/google/apis/dialogflow_v2/classes.rb +1778 -219
- data/generated/google/apis/dialogflow_v2/representations.rb +603 -0
- data/generated/google/apis/dialogflow_v2/service.rb +849 -158
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +1776 -242
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +592 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +436 -172
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3alpha1/classes.rb +5579 -0
- data/generated/google/apis/dialogflow_v3alpha1/representations.rb +2295 -0
- data/generated/google/apis/dialogflow_v3alpha1/service.rb +296 -0
- data/generated/google/apis/dialogflow_v3alpha1.rb +38 -0
- data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +7527 -0
- data/generated/google/apis/displayvideo_v1/representations.rb +3034 -0
- data/generated/google/apis/displayvideo_v1/service.rb +3126 -0
- data/generated/google/apis/displayvideo_v1.rb +38 -0
- data/generated/google/apis/dlp_v2/classes.rb +798 -130
- data/generated/google/apis/dlp_v2/representations.rb +277 -3
- data/generated/google/apis/dlp_v2/service.rb +2074 -231
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +220 -251
- data/generated/google/apis/dns_v1/representations.rb +49 -0
- data/generated/google/apis/dns_v1/service.rb +21 -141
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +224 -261
- data/generated/google/apis/dns_v1beta2/representations.rb +49 -0
- data/generated/google/apis/dns_v1beta2/service.rb +21 -141
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +220 -251
- data/generated/google/apis/dns_v2beta1/representations.rb +49 -0
- data/generated/google/apis/dns_v2beta1/service.rb +21 -141
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +608 -2
- data/generated/google/apis/docs_v1/representations.rb +211 -0
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/domainsrdap_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +860 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +388 -0
- data/generated/google/apis/{surveys_v2 → doubleclickbidmanager_v1_1}/service.rb +140 -110
- data/generated/google/apis/{proximitybeacon_v1beta1.rb → doubleclickbidmanager_v1_1.rb} +11 -11
- data/generated/google/apis/doubleclicksearch_v2/service.rb +0 -55
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +58 -5
- data/generated/google/apis/drive_v2/representations.rb +18 -0
- data/generated/google/apis/drive_v2/service.rb +92 -118
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +66 -5
- data/generated/google/apis/drive_v3/representations.rb +18 -0
- data/generated/google/apis/drive_v3/service.rb +46 -14
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/driveactivity_v2/classes.rb +15 -5
- data/generated/google/apis/driveactivity_v2/representations.rb +2 -0
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
- data/generated/google/apis/fcm_v1/classes.rb +15 -0
- data/generated/google/apis/fcm_v1/representations.rb +2 -0
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +1235 -158
- data/generated/google/apis/file_v1/representations.rb +401 -22
- data/generated/google/apis/file_v1/service.rb +14 -10
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +1236 -159
- data/generated/google/apis/file_v1beta1/representations.rb +401 -22
- data/generated/google/apis/file_v1beta1/service.rb +18 -11
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +20 -16
- data/generated/google/apis/firebase_v1beta1/representations.rb +2 -0
- data/generated/google/apis/firebase_v1beta1/service.rb +22 -16
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +174 -1
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +65 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +805 -2
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebaseml_v1/classes.rb +213 -0
- data/generated/google/apis/{servicebroker_v1 → firebaseml_v1}/representations.rb +26 -28
- data/generated/google/apis/firebaseml_v1/service.rb +181 -0
- data/generated/google/apis/firebaseml_v1.rb +34 -0
- data/generated/google/apis/firebaseml_v1beta2/classes.rb +344 -0
- data/generated/google/apis/{cloudprivatecatalog_v1beta1 → firebaseml_v1beta2}/representations.rb +62 -31
- data/generated/google/apis/firebaseml_v1beta2/service.rb +267 -0
- data/generated/google/apis/firebaseml_v1beta2.rb +34 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +113 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +52 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +16 -5
- data/generated/google/apis/firestore_v1/representations.rb +2 -0
- data/generated/google/apis/firestore_v1/service.rb +26 -24
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +16 -5
- data/generated/google/apis/firestore_v1beta1/representations.rb +2 -0
- data/generated/google/apis/firestore_v1beta1/service.rb +18 -16
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +189 -153
- data/generated/google/apis/fitness_v1/service.rb +192 -198
- data/generated/google/apis/fitness_v1.rb +14 -14
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +38 -53
- data/generated/google/apis/games_configuration_v1configuration/service.rb +58 -169
- data/generated/google/apis/games_configuration_v1configuration.rb +4 -3
- data/generated/google/apis/games_management_v1management/classes.rb +50 -109
- data/generated/google/apis/games_management_v1management/representations.rb +0 -30
- data/generated/google/apis/games_management_v1management/service.rb +116 -452
- data/generated/google/apis/games_management_v1management.rb +6 -4
- data/generated/google/apis/games_v1/classes.rb +14 -293
- data/generated/google/apis/games_v1/representations.rb +2 -98
- data/generated/google/apis/games_v1/service.rb +3 -135
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/gameservices_v1beta/classes.rb +2354 -0
- data/generated/google/apis/gameservices_v1beta/representations.rb +971 -0
- data/generated/google/apis/gameservices_v1beta/service.rb +1472 -0
- data/generated/google/apis/gameservices_v1beta.rb +34 -0
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +32 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
- data/generated/google/apis/genomics_v2alpha1/service.rb +34 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +6 -2
- data/generated/google/apis/gmail_v1/service.rb +1 -1
- data/generated/google/apis/gmail_v1.rb +13 -1
- data/generated/google/apis/healthcare_v1/classes.rb +2659 -0
- data/generated/google/apis/healthcare_v1/representations.rb +1114 -0
- data/generated/google/apis/healthcare_v1/service.rb +3439 -0
- data/generated/google/apis/healthcare_v1.rb +34 -0
- data/generated/google/apis/healthcare_v1beta1/classes.rb +1013 -128
- data/generated/google/apis/healthcare_v1beta1/representations.rb +341 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +762 -275
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/homegraph_v1/classes.rb +79 -56
- data/generated/google/apis/homegraph_v1/representations.rb +2 -1
- data/generated/google/apis/homegraph_v1/service.rb +43 -47
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +201 -169
- data/generated/google/apis/iam_v1/representations.rb +1 -6
- data/generated/google/apis/iam_v1/service.rb +18 -21
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/classes.rb +40 -8
- data/generated/google/apis/iamcredentials_v1/service.rb +4 -4
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +691 -59
- data/generated/google/apis/iap_v1/representations.rb +254 -0
- data/generated/google/apis/iap_v1/service.rb +362 -0
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +144 -59
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/indexing_v3.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +167 -0
- data/generated/google/apis/jobs_v2/representations.rb +40 -0
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +180 -0
- data/generated/google/apis/jobs_v3/representations.rb +41 -0
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +187 -2
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +41 -0
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/kgsearch_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +6 -6
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +5 -5
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +23 -7
- data/generated/google/apis/language_v1beta2/representations.rb +2 -0
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/libraryagent_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/classes.rb +15 -7
- data/generated/google/apis/licensing_v1/service.rb +81 -37
- data/generated/google/apis/licensing_v1.rb +4 -4
- data/generated/google/apis/lifesciences_v2beta/classes.rb +1329 -0
- data/generated/google/apis/lifesciences_v2beta/representations.rb +533 -0
- data/generated/google/apis/lifesciences_v2beta/service.rb +303 -0
- data/generated/google/apis/lifesciences_v2beta.rb +35 -0
- data/generated/google/apis/logging_v2/classes.rb +292 -91
- data/generated/google/apis/logging_v2/representations.rb +51 -0
- data/generated/google/apis/logging_v2/service.rb +888 -15
- data/generated/google/apis/logging_v2.rb +6 -6
- data/generated/google/apis/managedidentities_v1/classes.rb +1571 -0
- data/generated/google/apis/managedidentities_v1/representations.rb +560 -0
- data/generated/google/apis/managedidentities_v1/service.rb +779 -0
- data/generated/google/apis/managedidentities_v1.rb +35 -0
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +1570 -0
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +560 -0
- data/generated/google/apis/managedidentities_v1alpha1/service.rb +782 -0
- data/generated/google/apis/{servicebroker_v1alpha1.rb → managedidentities_v1alpha1.rb} +9 -10
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +1568 -0
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +560 -0
- data/generated/google/apis/managedidentities_v1beta1/service.rb +778 -0
- data/generated/google/apis/managedidentities_v1beta1.rb +35 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +7 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +1 -0
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +1587 -0
- data/generated/google/apis/memcache_v1beta2/representations.rb +557 -0
- data/generated/google/apis/memcache_v1beta2/service.rb +677 -0
- data/generated/google/apis/memcache_v1beta2.rb +35 -0
- data/generated/google/apis/ml_v1/classes.rb +1518 -233
- data/generated/google/apis/ml_v1/representations.rb +559 -0
- data/generated/google/apis/ml_v1/service.rb +560 -25
- data/generated/google/apis/ml_v1.rb +5 -2
- data/generated/google/apis/monitoring_v1/classes.rb +1231 -0
- data/generated/google/apis/monitoring_v1/representations.rb +513 -0
- data/generated/google/apis/monitoring_v1/service.rb +246 -0
- data/generated/google/apis/monitoring_v1.rb +47 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1330 -172
- data/generated/google/apis/monitoring_v3/representations.rb +482 -1
- data/generated/google/apis/monitoring_v3/service.rb +614 -162
- data/generated/google/apis/monitoring_v3.rb +7 -8
- data/generated/google/apis/networkmanagement_v1/classes.rb +1868 -0
- data/generated/google/apis/networkmanagement_v1/representations.rb +661 -0
- data/generated/google/apis/networkmanagement_v1/service.rb +667 -0
- data/generated/google/apis/networkmanagement_v1.rb +35 -0
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +1868 -0
- data/generated/google/apis/networkmanagement_v1beta1/representations.rb +661 -0
- data/generated/google/apis/networkmanagement_v1beta1/service.rb +667 -0
- data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1.rb → networkmanagement_v1beta1.rb} +9 -9
- data/generated/google/apis/oauth2_v2/classes.rb +1 -81
- data/generated/google/apis/oauth2_v2/representations.rb +2 -36
- data/generated/google/apis/oauth2_v2/service.rb +10 -42
- data/generated/google/apis/oauth2_v2.rb +5 -5
- data/generated/google/apis/osconfig_v1/classes.rb +1225 -0
- data/generated/google/apis/osconfig_v1/representations.rb +506 -0
- data/generated/google/apis/osconfig_v1/service.rb +386 -0
- data/generated/google/apis/osconfig_v1.rb +35 -0
- data/generated/google/apis/osconfig_v1beta/classes.rb +2362 -0
- data/generated/google/apis/osconfig_v1beta/representations.rb +966 -0
- data/generated/google/apis/osconfig_v1beta/service.rb +605 -0
- data/generated/google/apis/osconfig_v1beta.rb +35 -0
- data/generated/google/apis/oslogin_v1/classes.rb +1 -1
- data/generated/google/apis/oslogin_v1/service.rb +10 -7
- data/generated/google/apis/oslogin_v1.rb +1 -2
- data/generated/google/apis/oslogin_v1alpha/service.rb +0 -1
- data/generated/google/apis/oslogin_v1alpha.rb +1 -2
- data/generated/google/apis/oslogin_v1beta/classes.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/service.rb +9 -6
- data/generated/google/apis/oslogin_v1beta.rb +1 -2
- data/generated/google/apis/pagespeedonline_v5/classes.rb +534 -495
- data/generated/google/apis/pagespeedonline_v5/representations.rb +226 -221
- data/generated/google/apis/pagespeedonline_v5/service.rb +22 -24
- data/generated/google/apis/pagespeedonline_v5.rb +9 -4
- data/generated/google/apis/people_v1/classes.rb +104 -81
- data/generated/google/apis/people_v1/representations.rb +1 -0
- data/generated/google/apis/people_v1/service.rb +72 -79
- data/generated/google/apis/people_v1.rb +10 -1
- data/generated/google/apis/policytroubleshooter_v1/classes.rb +765 -0
- data/generated/google/apis/policytroubleshooter_v1/representations.rb +203 -0
- data/generated/google/apis/policytroubleshooter_v1/service.rb +90 -0
- data/generated/google/apis/policytroubleshooter_v1.rb +34 -0
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +254 -111
- data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -3
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/poly_v1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +1137 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +532 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +1676 -0
- data/generated/google/apis/{pagespeedonline_v4.rb → prod_tt_sasportal_v1alpha1.rb} +12 -10
- data/generated/google/apis/pubsub_v1/classes.rb +248 -76
- data/generated/google/apis/pubsub_v1/representations.rb +18 -0
- data/generated/google/apis/pubsub_v1/service.rb +43 -31
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +144 -59
- data/generated/google/apis/pubsub_v1beta2/service.rb +10 -2
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +221 -7
- data/generated/google/apis/recommender_v1beta1/representations.rb +96 -0
- data/generated/google/apis/recommender_v1beta1/service.rb +146 -19
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +48 -18
- data/generated/google/apis/redis_v1/representations.rb +14 -0
- data/generated/google/apis/redis_v1/service.rb +41 -5
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +48 -18
- data/generated/google/apis/redis_v1beta1/representations.rb +14 -0
- data/generated/google/apis/redis_v1beta1/service.rb +41 -5
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +352 -37
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +99 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +352 -37
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +99 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +362 -45
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +100 -0
- data/generated/google/apis/remotebuildexecution_v2/service.rb +5 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/reseller_v1/service.rb +1 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +308 -325
- data/generated/google/apis/run_v1/representations.rb +63 -103
- data/generated/google/apis/run_v1/service.rb +336 -933
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +1045 -392
- data/generated/google/apis/run_v1alpha1/representations.rb +343 -144
- data/generated/google/apis/run_v1alpha1/service.rb +1735 -492
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1beta1/classes.rb +1 -1
- data/generated/google/apis/run_v1beta1.rb +4 -1
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +139 -57
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +8 -5
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/safebrowsing_v4/classes.rb +2 -2
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +1137 -0
- data/generated/google/apis/sasportal_v1alpha1/representations.rb +532 -0
- data/generated/google/apis/sasportal_v1alpha1/service.rb +1676 -0
- data/generated/google/apis/{pagespeedonline_v2.rb → sasportal_v1alpha1.rb} +12 -10
- data/generated/google/apis/script_v1/classes.rb +4 -22
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1/classes.rb +982 -0
- data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1 → secretmanager_v1}/representations.rb +105 -116
- data/generated/google/apis/secretmanager_v1/service.rb +681 -0
- data/generated/google/apis/secretmanager_v1.rb +35 -0
- data/generated/google/apis/secretmanager_v1beta1/classes.rb +982 -0
- data/generated/google/apis/{servicebroker_v1beta1 → secretmanager_v1beta1}/representations.rb +114 -142
- data/generated/google/apis/secretmanager_v1beta1/service.rb +681 -0
- data/generated/google/apis/secretmanager_v1beta1.rb +35 -0
- data/generated/google/apis/securitycenter_v1/classes.rb +862 -138
- data/generated/google/apis/securitycenter_v1/representations.rb +221 -0
- data/generated/google/apis/securitycenter_v1/service.rb +225 -21
- data/generated/google/apis/securitycenter_v1.rb +4 -4
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +782 -125
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +192 -2
- data/generated/google/apis/securitycenter_v1beta1/service.rb +53 -51
- data/generated/google/apis/securitycenter_v1beta1.rb +4 -4
- data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +568 -0
- data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +190 -0
- data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +3 -3
- data/generated/google/apis/securitycenter_v1p1alpha1.rb +4 -4
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +2205 -0
- data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +751 -0
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +1329 -0
- data/generated/google/apis/securitycenter_v1p1beta1.rb +35 -0
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +419 -64
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +98 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +4159 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1307 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1/service.rb +428 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +34 -0
- data/generated/google/apis/servicecontrol_v1/classes.rb +255 -20
- data/generated/google/apis/servicecontrol_v1/representations.rb +87 -1
- data/generated/google/apis/servicecontrol_v1/service.rb +2 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicedirectory_v1beta1/classes.rb +816 -0
- data/generated/google/apis/{surveys_v2 → servicedirectory_v1beta1}/representations.rb +103 -104
- data/generated/google/apis/servicedirectory_v1beta1/service.rb +992 -0
- data/generated/google/apis/servicedirectory_v1beta1.rb +35 -0
- data/generated/google/apis/servicemanagement_v1/classes.rb +459 -125
- data/generated/google/apis/servicemanagement_v1/representations.rb +61 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +40 -29
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +986 -68
- data/generated/google/apis/servicenetworking_v1/representations.rb +403 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +351 -23
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +575 -57
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +223 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +417 -64
- data/generated/google/apis/serviceusage_v1/representations.rb +110 -0
- data/generated/google/apis/serviceusage_v1/service.rb +42 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +644 -64
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +198 -0
- data/generated/google/apis/serviceusage_v1beta1/service.rb +472 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +1741 -253
- data/generated/google/apis/sheets_v4/representations.rb +283 -0
- data/generated/google/apis/sheets_v4/service.rb +9 -11
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +1 -1
- data/generated/google/apis/slides_v1/service.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +173 -67
- data/generated/google/apis/sourcerepo_v1/service.rb +9 -1
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +706 -71
- data/generated/google/apis/spanner_v1/representations.rb +194 -0
- data/generated/google/apis/spanner_v1/service.rb +770 -7
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +15 -11
- data/generated/google/apis/speech_v1/representations.rb +2 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +197 -11
- data/generated/google/apis/speech_v1p1beta1/representations.rb +79 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/classes.rb +16 -8
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/representations.rb +7 -6
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/service.rb +13 -13
- data/generated/google/apis/{speech_v2beta.rb → speech_v2beta1.rb} +6 -6
- data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/classes.rb +701 -383
- data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/representations.rb +209 -104
- data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/service.rb +579 -597
- data/generated/google/apis/{sqladmin_v1beta4.rb → sql_v1beta4.rb} +7 -8
- data/generated/google/apis/storage_v1/classes.rb +73 -7
- data/generated/google/apis/storage_v1/representations.rb +10 -0
- data/generated/google/apis/storage_v1/service.rb +29 -4
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1beta2/service.rb +1 -1
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +280 -79
- data/generated/google/apis/storagetransfer_v1/representations.rb +52 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +19 -41
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/service.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +2 -0
- data/generated/google/apis/tagmanager_v1/service.rb +1 -1
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v2/classes.rb +170 -0
- data/generated/google/apis/tagmanager_v2/representations.rb +49 -0
- data/generated/google/apis/tagmanager_v2/service.rb +1 -1
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tasks_v1/classes.rb +26 -25
- data/generated/google/apis/tasks_v1/representations.rb +4 -8
- data/generated/google/apis/tasks_v1/service.rb +78 -124
- data/generated/google/apis/tasks_v1.rb +3 -3
- data/generated/google/apis/testing_v1/classes.rb +187 -1
- data/generated/google/apis/testing_v1/representations.rb +93 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +2061 -1133
- data/generated/google/apis/toolresults_v1beta3/representations.rb +723 -13
- data/generated/google/apis/toolresults_v1beta3/service.rb +663 -591
- data/generated/google/apis/toolresults_v1beta3.rb +2 -2
- data/generated/google/apis/tpu_v1/classes.rb +3 -4
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -4
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/translate_v3/classes.rb +946 -0
- data/generated/google/apis/translate_v3/representations.rb +439 -0
- data/generated/google/apis/translate_v3/service.rb +781 -0
- data/generated/google/apis/translate_v3.rb +37 -0
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +10 -7
- data/generated/google/apis/vault_v1/service.rb +7 -7
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/verifiedaccess_v1/service.rb +2 -2
- data/generated/google/apis/verifiedaccess_v1.rb +3 -3
- data/generated/google/apis/videointelligence_v1/classes.rb +1205 -118
- data/generated/google/apis/videointelligence_v1/representations.rb +492 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +1205 -118
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +492 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1216 -129
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +492 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1205 -118
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +492 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1290 -116
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +526 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +67 -1
- data/generated/google/apis/vision_v1/representations.rb +32 -0
- data/generated/google/apis/vision_v1/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +67 -1
- data/generated/google/apis/vision_v1p1beta1/representations.rb +32 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +67 -1
- data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1/classes.rb +75 -4
- data/generated/google/apis/websecurityscanner_v1/representations.rb +32 -0
- data/generated/google/apis/websecurityscanner_v1/service.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1.rb +2 -2
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +5 -4
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
- data/generated/google/apis/websecurityscanner_v1beta/classes.rb +77 -6
- data/generated/google/apis/websecurityscanner_v1beta/representations.rb +32 -0
- data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1beta.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v2.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +2 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +1376 -1262
- data/generated/google/apis/youtube_v3/representations.rb +99 -191
- data/generated/google/apis/youtube_v3/service.rb +1829 -2150
- data/generated/google/apis/youtube_v3.rb +8 -5
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/google-api-client.gemspec +6 -3
- data/lib/google/apis/core/api_command.rb +7 -0
- data/lib/google/apis/core/base_service.rb +1 -1
- data/lib/google/apis/core/http_command.rb +11 -10
- data/lib/google/apis/core/upload.rb +4 -0
- data/lib/google/apis/generator/annotator.rb +1 -1
- data/lib/google/apis/version.rb +9 -4
- data/rakelib/devsite/devsite_builder.rb +126 -0
- data/rakelib/devsite/link_checker.rb +64 -0
- data/rakelib/devsite/repo_metadata.rb +56 -0
- metadata +193 -110
- data/generated/google/apis/analytics_v2_4/representations.rb +0 -26
- data/generated/google/apis/analytics_v2_4/service.rb +0 -331
- data/generated/google/apis/analytics_v2_4.rb +0 -37
- data/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb +0 -358
- data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +0 -486
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +0 -1081
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +0 -485
- data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +0 -210
- data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +0 -124
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +0 -39
- data/generated/google/apis/fusiontables_v1/classes.rb +0 -977
- data/generated/google/apis/fusiontables_v1/representations.rb +0 -449
- data/generated/google/apis/fusiontables_v1/service.rb +0 -1307
- data/generated/google/apis/fusiontables_v1.rb +0 -37
- data/generated/google/apis/fusiontables_v2/classes.rb +0 -1049
- data/generated/google/apis/fusiontables_v2/representations.rb +0 -457
- data/generated/google/apis/fusiontables_v2/service.rb +0 -1431
- data/generated/google/apis/fusiontables_v2.rb +0 -37
- data/generated/google/apis/mirror_v1/classes.rb +0 -1072
- data/generated/google/apis/mirror_v1/representations.rb +0 -390
- data/generated/google/apis/mirror_v1/service.rb +0 -928
- data/generated/google/apis/mirror_v1.rb +0 -37
- data/generated/google/apis/oauth2_v1/classes.rb +0 -197
- data/generated/google/apis/oauth2_v1/service.rb +0 -160
- data/generated/google/apis/oauth2_v1.rb +0 -40
- data/generated/google/apis/pagespeedonline_v1/classes.rb +0 -542
- data/generated/google/apis/pagespeedonline_v1/representations.rb +0 -258
- data/generated/google/apis/pagespeedonline_v1/service.rb +0 -116
- data/generated/google/apis/pagespeedonline_v2/classes.rb +0 -621
- data/generated/google/apis/pagespeedonline_v2/representations.rb +0 -273
- data/generated/google/apis/pagespeedonline_v2/service.rb +0 -116
- data/generated/google/apis/pagespeedonline_v4/classes.rb +0 -795
- data/generated/google/apis/pagespeedonline_v4/representations.rb +0 -335
- data/generated/google/apis/pagespeedonline_v4/service.rb +0 -125
- data/generated/google/apis/plus_domains_v1/classes.rb +0 -2609
- data/generated/google/apis/plus_domains_v1/representations.rb +0 -1111
- data/generated/google/apis/plus_domains_v1/service.rb +0 -489
- data/generated/google/apis/plus_domains_v1.rb +0 -55
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +0 -845
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +0 -350
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +0 -933
- data/generated/google/apis/replicapool_v1beta1/classes.rb +0 -918
- data/generated/google/apis/replicapool_v1beta1/representations.rb +0 -409
- data/generated/google/apis/replicapool_v1beta1/service.rb +0 -489
- data/generated/google/apis/replicapool_v1beta1.rb +0 -50
- data/generated/google/apis/servicebroker_v1/classes.rb +0 -333
- data/generated/google/apis/servicebroker_v1/service.rb +0 -177
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +0 -1037
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +0 -737
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +0 -1173
- data/generated/google/apis/servicebroker_v1beta1/service.rb +0 -926
- data/generated/google/apis/storage_v1beta1/classes.rb +0 -616
- data/generated/google/apis/storage_v1beta1/representations.rb +0 -249
- data/generated/google/apis/storage_v1beta1/service.rb +0 -1032
- data/generated/google/apis/storage_v1beta1.rb +0 -40
- data/generated/google/apis/surveys_v2/classes.rb +0 -691
- data/generated/google/apis/surveys_v2.rb +0 -40
- data/generated/google/apis/urlshortener_v1/classes.rb +0 -246
- data/generated/google/apis/urlshortener_v1/representations.rb +0 -121
- data/generated/google/apis/urlshortener_v1/service.rb +0 -169
- data/generated/google/apis/urlshortener_v1.rb +0 -34
@@ -53,15 +53,16 @@ module Google
|
|
53
53
|
# supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
|
54
54
|
# learn more.
|
55
55
|
# @param [String] filter
|
56
|
-
#
|
56
|
+
# filter to only return infoTypes supported by certain parts of the
|
57
57
|
# API. Defaults to supported_by=INSPECT.
|
58
58
|
# @param [String] language_code
|
59
|
-
#
|
59
|
+
# 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]
|
63
|
-
#
|
64
|
-
#
|
62
|
+
# @param [String] location_id
|
63
|
+
# Deprecated. This field has no effect.
|
64
|
+
# @param [String] parent
|
65
|
+
# The parent resource name, for example locations/`location_id`.
|
65
66
|
# @param [String] fields
|
66
67
|
# Selector specifying which fields to include in a partial response.
|
67
68
|
# @param [String] quota_user
|
@@ -79,13 +80,14 @@ module Google
|
|
79
80
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
80
81
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
81
82
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
82
|
-
def list_info_types(filter: nil, language_code: nil,
|
83
|
+
def list_info_types(filter: nil, language_code: nil, location_id: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
83
84
|
command = make_simple_command(:get, 'v2/infoTypes', options)
|
84
85
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
|
85
86
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
|
86
87
|
command.query['filter'] = filter unless filter.nil?
|
87
88
|
command.query['languageCode'] = language_code unless language_code.nil?
|
88
|
-
command.query['
|
89
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
90
|
+
command.query['parent'] = parent unless parent.nil?
|
89
91
|
command.query['fields'] = fields unless fields.nil?
|
90
92
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
91
93
|
execute_or_queue_command(command, &block)
|
@@ -94,16 +96,17 @@ module Google
|
|
94
96
|
# Returns a list of the sensitive information types that the DLP API
|
95
97
|
# supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
|
96
98
|
# learn more.
|
97
|
-
# @param [String]
|
98
|
-
# The
|
99
|
-
# extensions.
|
99
|
+
# @param [String] parent
|
100
|
+
# The parent resource name, for example locations/`location_id`.
|
100
101
|
# @param [String] filter
|
101
|
-
#
|
102
|
+
# filter to only return infoTypes supported by certain parts of the
|
102
103
|
# API. Defaults to supported_by=INSPECT.
|
103
104
|
# @param [String] language_code
|
104
|
-
#
|
105
|
+
# BCP-47 language code for localized infoType friendly
|
105
106
|
# names. If omitted, or if localized strings are not available,
|
106
107
|
# en-US strings will be returned.
|
108
|
+
# @param [String] location_id
|
109
|
+
# Deprecated. This field has no effect.
|
107
110
|
# @param [String] fields
|
108
111
|
# Selector specifying which fields to include in a partial response.
|
109
112
|
# @param [String] quota_user
|
@@ -121,13 +124,14 @@ module Google
|
|
121
124
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
122
125
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
123
126
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
124
|
-
def list_location_info_types(
|
125
|
-
command = make_simple_command(:get, 'v2/
|
127
|
+
def list_location_info_types(parent, filter: nil, language_code: nil, location_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
128
|
+
command = make_simple_command(:get, 'v2/{+parent}/infoTypes', options)
|
126
129
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
|
127
130
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
|
128
|
-
command.params['
|
131
|
+
command.params['parent'] = parent unless parent.nil?
|
129
132
|
command.query['filter'] = filter unless filter.nil?
|
130
133
|
command.query['languageCode'] = language_code unless language_code.nil?
|
134
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
131
135
|
command.query['fields'] = fields unless fields.nil?
|
132
136
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
133
137
|
execute_or_queue_command(command, &block)
|
@@ -138,7 +142,7 @@ module Google
|
|
138
142
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
139
143
|
# more.
|
140
144
|
# @param [String] parent
|
141
|
-
# The parent resource name, for example projects/my-project-id or
|
145
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
142
146
|
# organizations/my-org-id.
|
143
147
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
|
144
148
|
# @param [String] fields
|
@@ -174,7 +178,8 @@ module Google
|
|
174
178
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
175
179
|
# more.
|
176
180
|
# @param [String] name
|
177
|
-
# Resource name of the organization and deidentify template to be
|
181
|
+
# Required. Resource name of the organization and deidentify template to be
|
182
|
+
# deleted,
|
178
183
|
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
179
184
|
# projects/project-id/deidentifyTemplates/432452342.
|
180
185
|
# @param [String] fields
|
@@ -208,7 +213,8 @@ module Google
|
|
208
213
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
209
214
|
# more.
|
210
215
|
# @param [String] name
|
211
|
-
# Resource name of the organization and deidentify template to be read,
|
216
|
+
# Required. Resource name of the organization and deidentify template to be read,
|
217
|
+
# for
|
212
218
|
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
213
219
|
# projects/project-id/deidentifyTemplates/432452342.
|
214
220
|
# @param [String] fields
|
@@ -242,10 +248,12 @@ module Google
|
|
242
248
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
243
249
|
# more.
|
244
250
|
# @param [String] parent
|
245
|
-
# The parent resource name, for example projects/my-project-id or
|
251
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
246
252
|
# organizations/my-org-id.
|
253
|
+
# @param [String] location_id
|
254
|
+
# Deprecated. This field has no effect.
|
247
255
|
# @param [String] order_by
|
248
|
-
#
|
256
|
+
# Comma separated list of fields to order by,
|
249
257
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
250
258
|
# default sorting order is ascending, redundant space characters are
|
251
259
|
# insignificant.
|
@@ -256,10 +264,10 @@ module Google
|
|
256
264
|
# - `name`: corresponds to template's name.
|
257
265
|
# - `display_name`: corresponds to template's display name.
|
258
266
|
# @param [Fixnum] page_size
|
259
|
-
#
|
267
|
+
# Size of the page, can be limited by server. If zero server returns
|
260
268
|
# a page of max size 100.
|
261
269
|
# @param [String] page_token
|
262
|
-
#
|
270
|
+
# Page token to continue retrieval. Comes from previous call
|
263
271
|
# to `ListDeidentifyTemplates`.
|
264
272
|
# @param [String] fields
|
265
273
|
# Selector specifying which fields to include in a partial response.
|
@@ -278,11 +286,12 @@ module Google
|
|
278
286
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
279
287
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
280
288
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
281
|
-
def list_organization_deidentify_templates(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
289
|
+
def list_organization_deidentify_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
282
290
|
command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', options)
|
283
291
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
|
284
292
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
|
285
293
|
command.params['parent'] = parent unless parent.nil?
|
294
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
286
295
|
command.query['orderBy'] = order_by unless order_by.nil?
|
287
296
|
command.query['pageSize'] = page_size unless page_size.nil?
|
288
297
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -295,7 +304,8 @@ module Google
|
|
295
304
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
296
305
|
# more.
|
297
306
|
# @param [String] name
|
298
|
-
# Resource name of organization and deidentify template to be updated,
|
307
|
+
# Required. Resource name of organization and deidentify template to be updated,
|
308
|
+
# for
|
299
309
|
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
300
310
|
# projects/project-id/deidentifyTemplates/432452342.
|
301
311
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object
|
@@ -332,7 +342,7 @@ module Google
|
|
332
342
|
# for inspecting content, images, and storage.
|
333
343
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
334
344
|
# @param [String] parent
|
335
|
-
# The parent resource name, for example projects/my-project-id or
|
345
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
336
346
|
# organizations/my-org-id.
|
337
347
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
|
338
348
|
# @param [String] fields
|
@@ -367,7 +377,8 @@ module Google
|
|
367
377
|
# Deletes an InspectTemplate.
|
368
378
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
369
379
|
# @param [String] name
|
370
|
-
# Resource name of the organization and inspectTemplate to be deleted,
|
380
|
+
# Required. Resource name of the organization and inspectTemplate to be deleted,
|
381
|
+
# for
|
371
382
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
372
383
|
# projects/project-id/inspectTemplates/432452342.
|
373
384
|
# @param [String] fields
|
@@ -400,7 +411,8 @@ module Google
|
|
400
411
|
# Gets an InspectTemplate.
|
401
412
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
402
413
|
# @param [String] name
|
403
|
-
# Resource name of the organization and inspectTemplate to be read,
|
414
|
+
# Required. Resource name of the organization and inspectTemplate to be read,
|
415
|
+
# for
|
404
416
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
405
417
|
# projects/project-id/inspectTemplates/432452342.
|
406
418
|
# @param [String] fields
|
@@ -433,10 +445,12 @@ module Google
|
|
433
445
|
# Lists InspectTemplates.
|
434
446
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
435
447
|
# @param [String] parent
|
436
|
-
# The parent resource name, for example projects/my-project-id or
|
448
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
437
449
|
# organizations/my-org-id.
|
450
|
+
# @param [String] location_id
|
451
|
+
# Deprecated. This field has no effect.
|
438
452
|
# @param [String] order_by
|
439
|
-
#
|
453
|
+
# Comma separated list of fields to order by,
|
440
454
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
441
455
|
# default sorting order is ascending, redundant space characters are
|
442
456
|
# insignificant.
|
@@ -447,10 +461,10 @@ module Google
|
|
447
461
|
# - `name`: corresponds to template's name.
|
448
462
|
# - `display_name`: corresponds to template's display name.
|
449
463
|
# @param [Fixnum] page_size
|
450
|
-
#
|
464
|
+
# Size of the page, can be limited by server. If zero server returns
|
451
465
|
# a page of max size 100.
|
452
466
|
# @param [String] page_token
|
453
|
-
#
|
467
|
+
# Page token to continue retrieval. Comes from previous call
|
454
468
|
# to `ListInspectTemplates`.
|
455
469
|
# @param [String] fields
|
456
470
|
# Selector specifying which fields to include in a partial response.
|
@@ -469,11 +483,12 @@ module Google
|
|
469
483
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
470
484
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
471
485
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
472
|
-
def list_organization_inspect_templates(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
486
|
+
def list_organization_inspect_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
473
487
|
command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', options)
|
474
488
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
|
475
489
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
|
476
490
|
command.params['parent'] = parent unless parent.nil?
|
491
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
477
492
|
command.query['orderBy'] = order_by unless order_by.nil?
|
478
493
|
command.query['pageSize'] = page_size unless page_size.nil?
|
479
494
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -485,7 +500,7 @@ module Google
|
|
485
500
|
# Updates the InspectTemplate.
|
486
501
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
487
502
|
# @param [String] name
|
488
|
-
# Resource name of organization and inspectTemplate to be updated, for
|
503
|
+
# Required. Resource name of organization and inspectTemplate to be updated, for
|
489
504
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
490
505
|
# projects/project-id/inspectTemplates/432452342.
|
491
506
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object
|
@@ -518,13 +533,14 @@ module Google
|
|
518
533
|
execute_or_queue_command(command, &block)
|
519
534
|
end
|
520
535
|
|
521
|
-
# Creates a
|
522
|
-
#
|
523
|
-
#
|
536
|
+
# Creates a DeidentifyTemplate for re-using frequently used configuration
|
537
|
+
# for de-identifying content, images, and storage.
|
538
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
539
|
+
# more.
|
524
540
|
# @param [String] parent
|
525
|
-
# The parent resource name, for example projects/my-project-id or
|
541
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
526
542
|
# organizations/my-org-id.
|
527
|
-
# @param [Google::Apis::DlpV2::
|
543
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
|
528
544
|
# @param [String] fields
|
529
545
|
# Selector specifying which fields to include in a partial response.
|
530
546
|
# @param [String] quota_user
|
@@ -534,33 +550,34 @@ module Google
|
|
534
550
|
# Request-specific options
|
535
551
|
#
|
536
552
|
# @yield [result, err] Result & error if block supplied
|
537
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
553
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
538
554
|
# @yieldparam err [StandardError] error object if request failed
|
539
555
|
#
|
540
|
-
# @return [Google::Apis::DlpV2::
|
556
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
541
557
|
#
|
542
558
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
543
559
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
544
560
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
545
|
-
def
|
546
|
-
command = make_simple_command(:post, 'v2/{+parent}/
|
547
|
-
command.request_representation = Google::Apis::DlpV2::
|
548
|
-
command.request_object =
|
549
|
-
command.response_representation = Google::Apis::DlpV2::
|
550
|
-
command.response_class = Google::Apis::DlpV2::
|
561
|
+
def create_organization_location_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
562
|
+
command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
|
563
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
|
564
|
+
command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
|
565
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
566
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
551
567
|
command.params['parent'] = parent unless parent.nil?
|
552
568
|
command.query['fields'] = fields unless fields.nil?
|
553
569
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
554
570
|
execute_or_queue_command(command, &block)
|
555
571
|
end
|
556
572
|
|
557
|
-
# Deletes a
|
558
|
-
# See https://cloud.google.com/dlp/docs/creating-
|
559
|
-
#
|
573
|
+
# Deletes a DeidentifyTemplate.
|
574
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
575
|
+
# more.
|
560
576
|
# @param [String] name
|
561
|
-
# Resource name of the organization and
|
562
|
-
#
|
563
|
-
#
|
577
|
+
# Required. Resource name of the organization and deidentify template to be
|
578
|
+
# deleted,
|
579
|
+
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
580
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
564
581
|
# @param [String] fields
|
565
582
|
# Selector specifying which fields to include in a partial response.
|
566
583
|
# @param [String] quota_user
|
@@ -578,7 +595,7 @@ module Google
|
|
578
595
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
579
596
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
580
597
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
581
|
-
def
|
598
|
+
def delete_organization_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
582
599
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
583
600
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
584
601
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
@@ -588,13 +605,14 @@ module Google
|
|
588
605
|
execute_or_queue_command(command, &block)
|
589
606
|
end
|
590
607
|
|
591
|
-
# Gets a
|
592
|
-
# See https://cloud.google.com/dlp/docs/creating-
|
593
|
-
#
|
608
|
+
# Gets a DeidentifyTemplate.
|
609
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
610
|
+
# more.
|
594
611
|
# @param [String] name
|
595
|
-
# Resource name of the organization and
|
596
|
-
#
|
597
|
-
#
|
612
|
+
# Required. Resource name of the organization and deidentify template to be read,
|
613
|
+
# for
|
614
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
615
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
598
616
|
# @param [String] fields
|
599
617
|
# Selector specifying which fields to include in a partial response.
|
600
618
|
# @param [String] quota_user
|
@@ -604,48 +622,49 @@ module Google
|
|
604
622
|
# Request-specific options
|
605
623
|
#
|
606
624
|
# @yield [result, err] Result & error if block supplied
|
607
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
625
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
608
626
|
# @yieldparam err [StandardError] error object if request failed
|
609
627
|
#
|
610
|
-
# @return [Google::Apis::DlpV2::
|
628
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
611
629
|
#
|
612
630
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
613
631
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
614
632
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
615
|
-
def
|
633
|
+
def get_organization_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
616
634
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
617
|
-
command.response_representation = Google::Apis::DlpV2::
|
618
|
-
command.response_class = Google::Apis::DlpV2::
|
635
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
636
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
619
637
|
command.params['name'] = name unless name.nil?
|
620
638
|
command.query['fields'] = fields unless fields.nil?
|
621
639
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
622
640
|
execute_or_queue_command(command, &block)
|
623
641
|
end
|
624
642
|
|
625
|
-
# Lists
|
626
|
-
# See https://cloud.google.com/dlp/docs/creating-
|
627
|
-
#
|
643
|
+
# Lists DeidentifyTemplates.
|
644
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
645
|
+
# more.
|
628
646
|
# @param [String] parent
|
629
|
-
# The parent resource name, for example projects/my-project-id or
|
647
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
630
648
|
# organizations/my-org-id.
|
649
|
+
# @param [String] location_id
|
650
|
+
# Deprecated. This field has no effect.
|
631
651
|
# @param [String] order_by
|
632
|
-
#
|
652
|
+
# Comma separated list of fields to order by,
|
633
653
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
634
654
|
# default sorting order is ascending, redundant space characters are
|
635
655
|
# insignificant.
|
636
|
-
# Example: `name asc,
|
656
|
+
# Example: `name asc,update_time, create_time desc`
|
637
657
|
# Supported fields are:
|
638
|
-
# - `create_time`: corresponds to time the
|
639
|
-
#
|
640
|
-
# - `
|
641
|
-
# - `
|
642
|
-
# - `display_name`: corresponds to info type's display name.
|
658
|
+
# - `create_time`: corresponds to time the template was created.
|
659
|
+
# - `update_time`: corresponds to time the template was last updated.
|
660
|
+
# - `name`: corresponds to template's name.
|
661
|
+
# - `display_name`: corresponds to template's display name.
|
643
662
|
# @param [Fixnum] page_size
|
644
|
-
#
|
663
|
+
# Size of the page, can be limited by server. If zero server returns
|
645
664
|
# a page of max size 100.
|
646
665
|
# @param [String] page_token
|
647
|
-
#
|
648
|
-
# to `
|
666
|
+
# Page token to continue retrieval. Comes from previous call
|
667
|
+
# to `ListDeidentifyTemplates`.
|
649
668
|
# @param [String] fields
|
650
669
|
# Selector specifying which fields to include in a partial response.
|
651
670
|
# @param [String] quota_user
|
@@ -655,19 +674,20 @@ module Google
|
|
655
674
|
# Request-specific options
|
656
675
|
#
|
657
676
|
# @yield [result, err] Result & error if block supplied
|
658
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
677
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse] parsed result object
|
659
678
|
# @yieldparam err [StandardError] error object if request failed
|
660
679
|
#
|
661
|
-
# @return [Google::Apis::DlpV2::
|
680
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse]
|
662
681
|
#
|
663
682
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
664
683
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
665
684
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
666
|
-
def
|
667
|
-
command = make_simple_command(:get, 'v2/{+parent}/
|
668
|
-
command.response_representation = Google::Apis::DlpV2::
|
669
|
-
command.response_class = Google::Apis::DlpV2::
|
685
|
+
def list_organization_location_deidentify_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
686
|
+
command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', options)
|
687
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
|
688
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
|
670
689
|
command.params['parent'] = parent unless parent.nil?
|
690
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
671
691
|
command.query['orderBy'] = order_by unless order_by.nil?
|
672
692
|
command.query['pageSize'] = page_size unless page_size.nil?
|
673
693
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -676,15 +696,15 @@ module Google
|
|
676
696
|
execute_or_queue_command(command, &block)
|
677
697
|
end
|
678
698
|
|
679
|
-
# Updates the
|
680
|
-
#
|
681
|
-
#
|
682
|
-
# learn more.
|
699
|
+
# Updates the DeidentifyTemplate.
|
700
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
701
|
+
# more.
|
683
702
|
# @param [String] name
|
684
|
-
# Resource name of organization and
|
685
|
-
#
|
686
|
-
#
|
687
|
-
#
|
703
|
+
# Required. Resource name of organization and deidentify template to be updated,
|
704
|
+
# for
|
705
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
706
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
707
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object
|
688
708
|
# @param [String] fields
|
689
709
|
# Selector specifying which fields to include in a partial response.
|
690
710
|
# @param [String] quota_user
|
@@ -694,20 +714,1633 @@ module Google
|
|
694
714
|
# Request-specific options
|
695
715
|
#
|
696
716
|
# @yield [result, err] Result & error if block supplied
|
697
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
717
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
698
718
|
# @yieldparam err [StandardError] error object if request failed
|
699
719
|
#
|
700
|
-
# @return [Google::Apis::DlpV2::
|
720
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
701
721
|
#
|
702
722
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
703
723
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
704
724
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
705
|
-
def
|
725
|
+
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)
|
706
726
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
707
|
-
command.request_representation = Google::Apis::DlpV2::
|
708
|
-
command.request_object =
|
709
|
-
command.response_representation = Google::Apis::DlpV2::
|
710
|
-
command.response_class = Google::Apis::DlpV2::
|
727
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation
|
728
|
+
command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object
|
729
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
730
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
731
|
+
command.params['name'] = name unless name.nil?
|
732
|
+
command.query['fields'] = fields unless fields.nil?
|
733
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
734
|
+
execute_or_queue_command(command, &block)
|
735
|
+
end
|
736
|
+
|
737
|
+
# Creates an InspectTemplate for re-using frequently used configuration
|
738
|
+
# for inspecting content, images, and storage.
|
739
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
740
|
+
# @param [String] parent
|
741
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
742
|
+
# organizations/my-org-id.
|
743
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
|
744
|
+
# @param [String] fields
|
745
|
+
# Selector specifying which fields to include in a partial response.
|
746
|
+
# @param [String] quota_user
|
747
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
748
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
749
|
+
# @param [Google::Apis::RequestOptions] options
|
750
|
+
# Request-specific options
|
751
|
+
#
|
752
|
+
# @yield [result, err] Result & error if block supplied
|
753
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
754
|
+
# @yieldparam err [StandardError] error object if request failed
|
755
|
+
#
|
756
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
757
|
+
#
|
758
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
759
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
760
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
761
|
+
def create_organization_location_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
762
|
+
command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
|
763
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
|
764
|
+
command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
|
765
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
766
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
767
|
+
command.params['parent'] = parent unless parent.nil?
|
768
|
+
command.query['fields'] = fields unless fields.nil?
|
769
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
770
|
+
execute_or_queue_command(command, &block)
|
771
|
+
end
|
772
|
+
|
773
|
+
# Deletes an InspectTemplate.
|
774
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
775
|
+
# @param [String] name
|
776
|
+
# Required. Resource name of the organization and inspectTemplate to be deleted,
|
777
|
+
# for
|
778
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
779
|
+
# projects/project-id/inspectTemplates/432452342.
|
780
|
+
# @param [String] fields
|
781
|
+
# Selector specifying which fields to include in a partial response.
|
782
|
+
# @param [String] quota_user
|
783
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
784
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
785
|
+
# @param [Google::Apis::RequestOptions] options
|
786
|
+
# Request-specific options
|
787
|
+
#
|
788
|
+
# @yield [result, err] Result & error if block supplied
|
789
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
790
|
+
# @yieldparam err [StandardError] error object if request failed
|
791
|
+
#
|
792
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
793
|
+
#
|
794
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
795
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
796
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
797
|
+
def delete_organization_location_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
798
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
799
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
800
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
801
|
+
command.params['name'] = name unless name.nil?
|
802
|
+
command.query['fields'] = fields unless fields.nil?
|
803
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
804
|
+
execute_or_queue_command(command, &block)
|
805
|
+
end
|
806
|
+
|
807
|
+
# Gets an InspectTemplate.
|
808
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
809
|
+
# @param [String] name
|
810
|
+
# Required. Resource name of the organization and inspectTemplate to be read,
|
811
|
+
# for
|
812
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
813
|
+
# projects/project-id/inspectTemplates/432452342.
|
814
|
+
# @param [String] fields
|
815
|
+
# Selector specifying which fields to include in a partial response.
|
816
|
+
# @param [String] quota_user
|
817
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
818
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
819
|
+
# @param [Google::Apis::RequestOptions] options
|
820
|
+
# Request-specific options
|
821
|
+
#
|
822
|
+
# @yield [result, err] Result & error if block supplied
|
823
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
824
|
+
# @yieldparam err [StandardError] error object if request failed
|
825
|
+
#
|
826
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
827
|
+
#
|
828
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
829
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
830
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
831
|
+
def get_organization_location_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
832
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
833
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
834
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
835
|
+
command.params['name'] = name unless name.nil?
|
836
|
+
command.query['fields'] = fields unless fields.nil?
|
837
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
838
|
+
execute_or_queue_command(command, &block)
|
839
|
+
end
|
840
|
+
|
841
|
+
# Lists InspectTemplates.
|
842
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
843
|
+
# @param [String] parent
|
844
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
845
|
+
# organizations/my-org-id.
|
846
|
+
# @param [String] location_id
|
847
|
+
# Deprecated. This field has no effect.
|
848
|
+
# @param [String] order_by
|
849
|
+
# Comma separated list of fields to order by,
|
850
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
851
|
+
# default sorting order is ascending, redundant space characters are
|
852
|
+
# insignificant.
|
853
|
+
# Example: `name asc,update_time, create_time desc`
|
854
|
+
# Supported fields are:
|
855
|
+
# - `create_time`: corresponds to time the template was created.
|
856
|
+
# - `update_time`: corresponds to time the template was last updated.
|
857
|
+
# - `name`: corresponds to template's name.
|
858
|
+
# - `display_name`: corresponds to template's display name.
|
859
|
+
# @param [Fixnum] page_size
|
860
|
+
# Size of the page, can be limited by server. If zero server returns
|
861
|
+
# a page of max size 100.
|
862
|
+
# @param [String] page_token
|
863
|
+
# Page token to continue retrieval. Comes from previous call
|
864
|
+
# to `ListInspectTemplates`.
|
865
|
+
# @param [String] fields
|
866
|
+
# Selector specifying which fields to include in a partial response.
|
867
|
+
# @param [String] quota_user
|
868
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
869
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
870
|
+
# @param [Google::Apis::RequestOptions] options
|
871
|
+
# Request-specific options
|
872
|
+
#
|
873
|
+
# @yield [result, err] Result & error if block supplied
|
874
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse] parsed result object
|
875
|
+
# @yieldparam err [StandardError] error object if request failed
|
876
|
+
#
|
877
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse]
|
878
|
+
#
|
879
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
880
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
881
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
882
|
+
def list_organization_location_inspect_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
883
|
+
command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', options)
|
884
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
|
885
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
|
886
|
+
command.params['parent'] = parent unless parent.nil?
|
887
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
888
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
889
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
890
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
891
|
+
command.query['fields'] = fields unless fields.nil?
|
892
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
893
|
+
execute_or_queue_command(command, &block)
|
894
|
+
end
|
895
|
+
|
896
|
+
# Updates the InspectTemplate.
|
897
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
898
|
+
# @param [String] name
|
899
|
+
# Required. Resource name of organization and inspectTemplate to be updated, for
|
900
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
901
|
+
# projects/project-id/inspectTemplates/432452342.
|
902
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object
|
903
|
+
# @param [String] fields
|
904
|
+
# Selector specifying which fields to include in a partial response.
|
905
|
+
# @param [String] quota_user
|
906
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
907
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
908
|
+
# @param [Google::Apis::RequestOptions] options
|
909
|
+
# Request-specific options
|
910
|
+
#
|
911
|
+
# @yield [result, err] Result & error if block supplied
|
912
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
913
|
+
# @yieldparam err [StandardError] error object if request failed
|
914
|
+
#
|
915
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
916
|
+
#
|
917
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
918
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
919
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
920
|
+
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)
|
921
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
922
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation
|
923
|
+
command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object
|
924
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
925
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
926
|
+
command.params['name'] = name unless name.nil?
|
927
|
+
command.query['fields'] = fields unless fields.nil?
|
928
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
929
|
+
execute_or_queue_command(command, &block)
|
930
|
+
end
|
931
|
+
|
932
|
+
# Creates a pre-built stored infoType to be used for inspection.
|
933
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
934
|
+
# learn more.
|
935
|
+
# @param [String] parent
|
936
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
937
|
+
# organizations/my-org-id.
|
938
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
|
939
|
+
# @param [String] fields
|
940
|
+
# Selector specifying which fields to include in a partial response.
|
941
|
+
# @param [String] quota_user
|
942
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
943
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
944
|
+
# @param [Google::Apis::RequestOptions] options
|
945
|
+
# Request-specific options
|
946
|
+
#
|
947
|
+
# @yield [result, err] Result & error if block supplied
|
948
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
949
|
+
# @yieldparam err [StandardError] error object if request failed
|
950
|
+
#
|
951
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
952
|
+
#
|
953
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
954
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
955
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
956
|
+
def create_organization_location_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
957
|
+
command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', options)
|
958
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation
|
959
|
+
command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object
|
960
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
961
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
962
|
+
command.params['parent'] = parent unless parent.nil?
|
963
|
+
command.query['fields'] = fields unless fields.nil?
|
964
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
965
|
+
execute_or_queue_command(command, &block)
|
966
|
+
end
|
967
|
+
|
968
|
+
# Deletes a stored infoType.
|
969
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
970
|
+
# learn more.
|
971
|
+
# @param [String] name
|
972
|
+
# Required. Resource name of the organization and storedInfoType to be deleted,
|
973
|
+
# for
|
974
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
975
|
+
# projects/project-id/storedInfoTypes/432452342.
|
976
|
+
# @param [String] fields
|
977
|
+
# Selector specifying which fields to include in a partial response.
|
978
|
+
# @param [String] quota_user
|
979
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
980
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
981
|
+
# @param [Google::Apis::RequestOptions] options
|
982
|
+
# Request-specific options
|
983
|
+
#
|
984
|
+
# @yield [result, err] Result & error if block supplied
|
985
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
986
|
+
# @yieldparam err [StandardError] error object if request failed
|
987
|
+
#
|
988
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
989
|
+
#
|
990
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
991
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
992
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
993
|
+
def delete_organization_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
994
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
995
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
996
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
997
|
+
command.params['name'] = name unless name.nil?
|
998
|
+
command.query['fields'] = fields unless fields.nil?
|
999
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1000
|
+
execute_or_queue_command(command, &block)
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
# Gets a stored infoType.
|
1004
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
1005
|
+
# learn more.
|
1006
|
+
# @param [String] name
|
1007
|
+
# Required. Resource name of the organization and storedInfoType to be read, for
|
1008
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
1009
|
+
# projects/project-id/storedInfoTypes/432452342.
|
1010
|
+
# @param [String] fields
|
1011
|
+
# Selector specifying which fields to include in a partial response.
|
1012
|
+
# @param [String] quota_user
|
1013
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1014
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1015
|
+
# @param [Google::Apis::RequestOptions] options
|
1016
|
+
# Request-specific options
|
1017
|
+
#
|
1018
|
+
# @yield [result, err] Result & error if block supplied
|
1019
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
1020
|
+
# @yieldparam err [StandardError] error object if request failed
|
1021
|
+
#
|
1022
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
1023
|
+
#
|
1024
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1025
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1026
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1027
|
+
def get_organization_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
1028
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1029
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
1030
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
1031
|
+
command.params['name'] = name unless name.nil?
|
1032
|
+
command.query['fields'] = fields unless fields.nil?
|
1033
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1034
|
+
execute_or_queue_command(command, &block)
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
# Lists stored infoTypes.
|
1038
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
1039
|
+
# learn more.
|
1040
|
+
# @param [String] parent
|
1041
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
1042
|
+
# organizations/my-org-id.
|
1043
|
+
# @param [String] location_id
|
1044
|
+
# Deprecated. This field has no effect.
|
1045
|
+
# @param [String] order_by
|
1046
|
+
# Comma separated list of fields to order by,
|
1047
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
1048
|
+
# default sorting order is ascending, redundant space characters are
|
1049
|
+
# insignificant.
|
1050
|
+
# Example: `name asc, display_name, create_time desc`
|
1051
|
+
# Supported fields are:
|
1052
|
+
# - `create_time`: corresponds to time the most recent version of the
|
1053
|
+
# resource was created.
|
1054
|
+
# - `state`: corresponds to the state of the resource.
|
1055
|
+
# - `name`: corresponds to resource name.
|
1056
|
+
# - `display_name`: corresponds to info type's display name.
|
1057
|
+
# @param [Fixnum] page_size
|
1058
|
+
# Size of the page, can be limited by server. If zero server returns
|
1059
|
+
# a page of max size 100.
|
1060
|
+
# @param [String] page_token
|
1061
|
+
# Page token to continue retrieval. Comes from previous call
|
1062
|
+
# to `ListStoredInfoTypes`.
|
1063
|
+
# @param [String] fields
|
1064
|
+
# Selector specifying which fields to include in a partial response.
|
1065
|
+
# @param [String] quota_user
|
1066
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1067
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1068
|
+
# @param [Google::Apis::RequestOptions] options
|
1069
|
+
# Request-specific options
|
1070
|
+
#
|
1071
|
+
# @yield [result, err] Result & error if block supplied
|
1072
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse] parsed result object
|
1073
|
+
# @yieldparam err [StandardError] error object if request failed
|
1074
|
+
#
|
1075
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse]
|
1076
|
+
#
|
1077
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1078
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1079
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1080
|
+
def list_organization_location_stored_info_types(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1081
|
+
command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', options)
|
1082
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
|
1083
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
|
1084
|
+
command.params['parent'] = parent unless parent.nil?
|
1085
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
1086
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1087
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1088
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1089
|
+
command.query['fields'] = fields unless fields.nil?
|
1090
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1091
|
+
execute_or_queue_command(command, &block)
|
1092
|
+
end
|
1093
|
+
|
1094
|
+
# Updates the stored infoType by creating a new version. The existing version
|
1095
|
+
# will continue to be used until the new version is ready.
|
1096
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
1097
|
+
# learn more.
|
1098
|
+
# @param [String] name
|
1099
|
+
# Required. Resource name of organization and storedInfoType to be updated, for
|
1100
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
1101
|
+
# projects/project-id/storedInfoTypes/432452342.
|
1102
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_request_object
|
1103
|
+
# @param [String] fields
|
1104
|
+
# Selector specifying which fields to include in a partial response.
|
1105
|
+
# @param [String] quota_user
|
1106
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1107
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1108
|
+
# @param [Google::Apis::RequestOptions] options
|
1109
|
+
# Request-specific options
|
1110
|
+
#
|
1111
|
+
# @yield [result, err] Result & error if block supplied
|
1112
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
1113
|
+
# @yieldparam err [StandardError] error object if request failed
|
1114
|
+
#
|
1115
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
1116
|
+
#
|
1117
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1118
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1119
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1120
|
+
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)
|
1121
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1122
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest::Representation
|
1123
|
+
command.request_object = google_privacy_dlp_v2_update_stored_info_type_request_object
|
1124
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
1125
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
1126
|
+
command.params['name'] = name unless name.nil?
|
1127
|
+
command.query['fields'] = fields unless fields.nil?
|
1128
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1129
|
+
execute_or_queue_command(command, &block)
|
1130
|
+
end
|
1131
|
+
|
1132
|
+
# Creates a pre-built stored infoType to be used for inspection.
|
1133
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
1134
|
+
# learn more.
|
1135
|
+
# @param [String] parent
|
1136
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
1137
|
+
# organizations/my-org-id.
|
1138
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
|
1139
|
+
# @param [String] fields
|
1140
|
+
# Selector specifying which fields to include in a partial response.
|
1141
|
+
# @param [String] quota_user
|
1142
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1143
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1144
|
+
# @param [Google::Apis::RequestOptions] options
|
1145
|
+
# Request-specific options
|
1146
|
+
#
|
1147
|
+
# @yield [result, err] Result & error if block supplied
|
1148
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
1149
|
+
# @yieldparam err [StandardError] error object if request failed
|
1150
|
+
#
|
1151
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
1152
|
+
#
|
1153
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1154
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1155
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1156
|
+
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)
|
1157
|
+
command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', options)
|
1158
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation
|
1159
|
+
command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object
|
1160
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
1161
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
1162
|
+
command.params['parent'] = parent unless parent.nil?
|
1163
|
+
command.query['fields'] = fields unless fields.nil?
|
1164
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1165
|
+
execute_or_queue_command(command, &block)
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
# Deletes a stored infoType.
|
1169
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
1170
|
+
# learn more.
|
1171
|
+
# @param [String] name
|
1172
|
+
# Required. Resource name of the organization and storedInfoType to be deleted,
|
1173
|
+
# for
|
1174
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
1175
|
+
# projects/project-id/storedInfoTypes/432452342.
|
1176
|
+
# @param [String] fields
|
1177
|
+
# Selector specifying which fields to include in a partial response.
|
1178
|
+
# @param [String] quota_user
|
1179
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1180
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1181
|
+
# @param [Google::Apis::RequestOptions] options
|
1182
|
+
# Request-specific options
|
1183
|
+
#
|
1184
|
+
# @yield [result, err] Result & error if block supplied
|
1185
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
1186
|
+
# @yieldparam err [StandardError] error object if request failed
|
1187
|
+
#
|
1188
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
1189
|
+
#
|
1190
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1191
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1192
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1193
|
+
def delete_organization_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
1194
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1195
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
1196
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
1197
|
+
command.params['name'] = name unless name.nil?
|
1198
|
+
command.query['fields'] = fields unless fields.nil?
|
1199
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1200
|
+
execute_or_queue_command(command, &block)
|
1201
|
+
end
|
1202
|
+
|
1203
|
+
# Gets a stored infoType.
|
1204
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
1205
|
+
# learn more.
|
1206
|
+
# @param [String] name
|
1207
|
+
# Required. Resource name of the organization and storedInfoType to be read, for
|
1208
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
1209
|
+
# projects/project-id/storedInfoTypes/432452342.
|
1210
|
+
# @param [String] fields
|
1211
|
+
# Selector specifying which fields to include in a partial response.
|
1212
|
+
# @param [String] quota_user
|
1213
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1214
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1215
|
+
# @param [Google::Apis::RequestOptions] options
|
1216
|
+
# Request-specific options
|
1217
|
+
#
|
1218
|
+
# @yield [result, err] Result & error if block supplied
|
1219
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
1220
|
+
# @yieldparam err [StandardError] error object if request failed
|
1221
|
+
#
|
1222
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
1223
|
+
#
|
1224
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1225
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1226
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1227
|
+
def get_organization_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
1228
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1229
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
1230
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
1231
|
+
command.params['name'] = name unless name.nil?
|
1232
|
+
command.query['fields'] = fields unless fields.nil?
|
1233
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1234
|
+
execute_or_queue_command(command, &block)
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
# Lists stored infoTypes.
|
1238
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
1239
|
+
# learn more.
|
1240
|
+
# @param [String] parent
|
1241
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
1242
|
+
# organizations/my-org-id.
|
1243
|
+
# @param [String] location_id
|
1244
|
+
# Deprecated. This field has no effect.
|
1245
|
+
# @param [String] order_by
|
1246
|
+
# Comma separated list of fields to order by,
|
1247
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
1248
|
+
# default sorting order is ascending, redundant space characters are
|
1249
|
+
# insignificant.
|
1250
|
+
# Example: `name asc, display_name, create_time desc`
|
1251
|
+
# Supported fields are:
|
1252
|
+
# - `create_time`: corresponds to time the most recent version of the
|
1253
|
+
# resource was created.
|
1254
|
+
# - `state`: corresponds to the state of the resource.
|
1255
|
+
# - `name`: corresponds to resource name.
|
1256
|
+
# - `display_name`: corresponds to info type's display name.
|
1257
|
+
# @param [Fixnum] page_size
|
1258
|
+
# Size of the page, can be limited by server. If zero server returns
|
1259
|
+
# a page of max size 100.
|
1260
|
+
# @param [String] page_token
|
1261
|
+
# Page token to continue retrieval. Comes from previous call
|
1262
|
+
# to `ListStoredInfoTypes`.
|
1263
|
+
# @param [String] fields
|
1264
|
+
# Selector specifying which fields to include in a partial response.
|
1265
|
+
# @param [String] quota_user
|
1266
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1267
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1268
|
+
# @param [Google::Apis::RequestOptions] options
|
1269
|
+
# Request-specific options
|
1270
|
+
#
|
1271
|
+
# @yield [result, err] Result & error if block supplied
|
1272
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse] parsed result object
|
1273
|
+
# @yieldparam err [StandardError] error object if request failed
|
1274
|
+
#
|
1275
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse]
|
1276
|
+
#
|
1277
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1278
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1279
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1280
|
+
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)
|
1281
|
+
command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', options)
|
1282
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
|
1283
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
|
1284
|
+
command.params['parent'] = parent unless parent.nil?
|
1285
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
1286
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1287
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1288
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1289
|
+
command.query['fields'] = fields unless fields.nil?
|
1290
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1291
|
+
execute_or_queue_command(command, &block)
|
1292
|
+
end
|
1293
|
+
|
1294
|
+
# Updates the stored infoType by creating a new version. The existing version
|
1295
|
+
# will continue to be used until the new version is ready.
|
1296
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
1297
|
+
# learn more.
|
1298
|
+
# @param [String] name
|
1299
|
+
# Required. Resource name of organization and storedInfoType to be updated, for
|
1300
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
1301
|
+
# projects/project-id/storedInfoTypes/432452342.
|
1302
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_request_object
|
1303
|
+
# @param [String] fields
|
1304
|
+
# Selector specifying which fields to include in a partial response.
|
1305
|
+
# @param [String] quota_user
|
1306
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1307
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1308
|
+
# @param [Google::Apis::RequestOptions] options
|
1309
|
+
# Request-specific options
|
1310
|
+
#
|
1311
|
+
# @yield [result, err] Result & error if block supplied
|
1312
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
1313
|
+
# @yieldparam err [StandardError] error object if request failed
|
1314
|
+
#
|
1315
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
1316
|
+
#
|
1317
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1318
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1319
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1320
|
+
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)
|
1321
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1322
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest::Representation
|
1323
|
+
command.request_object = google_privacy_dlp_v2_update_stored_info_type_request_object
|
1324
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
1325
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
1326
|
+
command.params['name'] = name unless name.nil?
|
1327
|
+
command.query['fields'] = fields unless fields.nil?
|
1328
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1329
|
+
execute_or_queue_command(command, &block)
|
1330
|
+
end
|
1331
|
+
|
1332
|
+
# De-identifies potentially sensitive info from a ContentItem.
|
1333
|
+
# This method has limits on input size and output size.
|
1334
|
+
# See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
|
1335
|
+
# learn more.
|
1336
|
+
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
1337
|
+
# system will automatically choose what detectors to run. By default this may
|
1338
|
+
# be all types, but may change over time as detectors are updated.
|
1339
|
+
# @param [String] parent
|
1340
|
+
# The parent resource name, for example projects/my-project-id.
|
1341
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object
|
1342
|
+
# @param [String] fields
|
1343
|
+
# Selector specifying which fields to include in a partial response.
|
1344
|
+
# @param [String] quota_user
|
1345
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1346
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1347
|
+
# @param [Google::Apis::RequestOptions] options
|
1348
|
+
# Request-specific options
|
1349
|
+
#
|
1350
|
+
# @yield [result, err] Result & error if block supplied
|
1351
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse] parsed result object
|
1352
|
+
# @yieldparam err [StandardError] error object if request failed
|
1353
|
+
#
|
1354
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse]
|
1355
|
+
#
|
1356
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1357
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1358
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1359
|
+
def deidentify_project_content(parent, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1360
|
+
command = make_simple_command(:post, 'v2/{+parent}/content:deidentify', options)
|
1361
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest::Representation
|
1362
|
+
command.request_object = google_privacy_dlp_v2_deidentify_content_request_object
|
1363
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse::Representation
|
1364
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse
|
1365
|
+
command.params['parent'] = parent unless parent.nil?
|
1366
|
+
command.query['fields'] = fields unless fields.nil?
|
1367
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1368
|
+
execute_or_queue_command(command, &block)
|
1369
|
+
end
|
1370
|
+
|
1371
|
+
# Finds potentially sensitive info in content.
|
1372
|
+
# This method has limits on input size, processing time, and output size.
|
1373
|
+
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
1374
|
+
# system will automatically choose what detectors to run. By default this may
|
1375
|
+
# be all types, but may change over time as detectors are updated.
|
1376
|
+
# For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images
|
1377
|
+
# and https://cloud.google.com/dlp/docs/inspecting-text,
|
1378
|
+
# @param [String] parent
|
1379
|
+
# The parent resource name, for example projects/my-project-id.
|
1380
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
|
1381
|
+
# @param [String] fields
|
1382
|
+
# Selector specifying which fields to include in a partial response.
|
1383
|
+
# @param [String] quota_user
|
1384
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1385
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1386
|
+
# @param [Google::Apis::RequestOptions] options
|
1387
|
+
# Request-specific options
|
1388
|
+
#
|
1389
|
+
# @yield [result, err] Result & error if block supplied
|
1390
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse] parsed result object
|
1391
|
+
# @yieldparam err [StandardError] error object if request failed
|
1392
|
+
#
|
1393
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse]
|
1394
|
+
#
|
1395
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1396
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1397
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1398
|
+
def inspect_project_content(parent, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1399
|
+
command = make_simple_command(:post, 'v2/{+parent}/content:inspect', options)
|
1400
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest::Representation
|
1401
|
+
command.request_object = google_privacy_dlp_v2_inspect_content_request_object
|
1402
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse::Representation
|
1403
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse
|
1404
|
+
command.params['parent'] = parent unless parent.nil?
|
1405
|
+
command.query['fields'] = fields unless fields.nil?
|
1406
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1407
|
+
execute_or_queue_command(command, &block)
|
1408
|
+
end
|
1409
|
+
|
1410
|
+
# Re-identifies content that has been de-identified.
|
1411
|
+
# See
|
1412
|
+
# https://cloud.google.com/dlp/docs/pseudonymization#re-
|
1413
|
+
# identification_in_free_text_code_example
|
1414
|
+
# to learn more.
|
1415
|
+
# @param [String] parent
|
1416
|
+
# Required. The parent resource name.
|
1417
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
|
1418
|
+
# @param [String] fields
|
1419
|
+
# Selector specifying which fields to include in a partial response.
|
1420
|
+
# @param [String] quota_user
|
1421
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1422
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1423
|
+
# @param [Google::Apis::RequestOptions] options
|
1424
|
+
# Request-specific options
|
1425
|
+
#
|
1426
|
+
# @yield [result, err] Result & error if block supplied
|
1427
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse] parsed result object
|
1428
|
+
# @yieldparam err [StandardError] error object if request failed
|
1429
|
+
#
|
1430
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse]
|
1431
|
+
#
|
1432
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1433
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1434
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1435
|
+
def reidentify_project_content(parent, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1436
|
+
command = make_simple_command(:post, 'v2/{+parent}/content:reidentify', options)
|
1437
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest::Representation
|
1438
|
+
command.request_object = google_privacy_dlp_v2_reidentify_content_request_object
|
1439
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse::Representation
|
1440
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse
|
1441
|
+
command.params['parent'] = parent unless parent.nil?
|
1442
|
+
command.query['fields'] = fields unless fields.nil?
|
1443
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1444
|
+
execute_or_queue_command(command, &block)
|
1445
|
+
end
|
1446
|
+
|
1447
|
+
# Creates a DeidentifyTemplate for re-using frequently used configuration
|
1448
|
+
# for de-identifying content, images, and storage.
|
1449
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
1450
|
+
# more.
|
1451
|
+
# @param [String] parent
|
1452
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
1453
|
+
# organizations/my-org-id.
|
1454
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
|
1455
|
+
# @param [String] fields
|
1456
|
+
# Selector specifying which fields to include in a partial response.
|
1457
|
+
# @param [String] quota_user
|
1458
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1459
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1460
|
+
# @param [Google::Apis::RequestOptions] options
|
1461
|
+
# Request-specific options
|
1462
|
+
#
|
1463
|
+
# @yield [result, err] Result & error if block supplied
|
1464
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
1465
|
+
# @yieldparam err [StandardError] error object if request failed
|
1466
|
+
#
|
1467
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
1468
|
+
#
|
1469
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1470
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1471
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1472
|
+
def create_project_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1473
|
+
command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
|
1474
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
|
1475
|
+
command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
|
1476
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
1477
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
1478
|
+
command.params['parent'] = parent unless parent.nil?
|
1479
|
+
command.query['fields'] = fields unless fields.nil?
|
1480
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1481
|
+
execute_or_queue_command(command, &block)
|
1482
|
+
end
|
1483
|
+
|
1484
|
+
# Deletes a DeidentifyTemplate.
|
1485
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
1486
|
+
# more.
|
1487
|
+
# @param [String] name
|
1488
|
+
# Required. Resource name of the organization and deidentify template to be
|
1489
|
+
# deleted,
|
1490
|
+
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
1491
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
1492
|
+
# @param [String] fields
|
1493
|
+
# Selector specifying which fields to include in a partial response.
|
1494
|
+
# @param [String] quota_user
|
1495
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1496
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1497
|
+
# @param [Google::Apis::RequestOptions] options
|
1498
|
+
# Request-specific options
|
1499
|
+
#
|
1500
|
+
# @yield [result, err] Result & error if block supplied
|
1501
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
1502
|
+
# @yieldparam err [StandardError] error object if request failed
|
1503
|
+
#
|
1504
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
1505
|
+
#
|
1506
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1507
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1508
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1509
|
+
def delete_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
1510
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1511
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
1512
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
1513
|
+
command.params['name'] = name unless name.nil?
|
1514
|
+
command.query['fields'] = fields unless fields.nil?
|
1515
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1516
|
+
execute_or_queue_command(command, &block)
|
1517
|
+
end
|
1518
|
+
|
1519
|
+
# Gets a DeidentifyTemplate.
|
1520
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
1521
|
+
# more.
|
1522
|
+
# @param [String] name
|
1523
|
+
# Required. Resource name of the organization and deidentify template to be read,
|
1524
|
+
# for
|
1525
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
1526
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
1527
|
+
# @param [String] fields
|
1528
|
+
# Selector specifying which fields to include in a partial response.
|
1529
|
+
# @param [String] quota_user
|
1530
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1531
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1532
|
+
# @param [Google::Apis::RequestOptions] options
|
1533
|
+
# Request-specific options
|
1534
|
+
#
|
1535
|
+
# @yield [result, err] Result & error if block supplied
|
1536
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
1537
|
+
# @yieldparam err [StandardError] error object if request failed
|
1538
|
+
#
|
1539
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
1540
|
+
#
|
1541
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1542
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1543
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1544
|
+
def get_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
1545
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1546
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
1547
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
1548
|
+
command.params['name'] = name unless name.nil?
|
1549
|
+
command.query['fields'] = fields unless fields.nil?
|
1550
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1551
|
+
execute_or_queue_command(command, &block)
|
1552
|
+
end
|
1553
|
+
|
1554
|
+
# Lists DeidentifyTemplates.
|
1555
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
1556
|
+
# more.
|
1557
|
+
# @param [String] parent
|
1558
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
1559
|
+
# organizations/my-org-id.
|
1560
|
+
# @param [String] location_id
|
1561
|
+
# Deprecated. This field has no effect.
|
1562
|
+
# @param [String] order_by
|
1563
|
+
# Comma separated list of fields to order by,
|
1564
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
1565
|
+
# default sorting order is ascending, redundant space characters are
|
1566
|
+
# insignificant.
|
1567
|
+
# Example: `name asc,update_time, create_time desc`
|
1568
|
+
# Supported fields are:
|
1569
|
+
# - `create_time`: corresponds to time the template was created.
|
1570
|
+
# - `update_time`: corresponds to time the template was last updated.
|
1571
|
+
# - `name`: corresponds to template's name.
|
1572
|
+
# - `display_name`: corresponds to template's display name.
|
1573
|
+
# @param [Fixnum] page_size
|
1574
|
+
# Size of the page, can be limited by server. If zero server returns
|
1575
|
+
# a page of max size 100.
|
1576
|
+
# @param [String] page_token
|
1577
|
+
# Page token to continue retrieval. Comes from previous call
|
1578
|
+
# to `ListDeidentifyTemplates`.
|
1579
|
+
# @param [String] fields
|
1580
|
+
# Selector specifying which fields to include in a partial response.
|
1581
|
+
# @param [String] quota_user
|
1582
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1583
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1584
|
+
# @param [Google::Apis::RequestOptions] options
|
1585
|
+
# Request-specific options
|
1586
|
+
#
|
1587
|
+
# @yield [result, err] Result & error if block supplied
|
1588
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse] parsed result object
|
1589
|
+
# @yieldparam err [StandardError] error object if request failed
|
1590
|
+
#
|
1591
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse]
|
1592
|
+
#
|
1593
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1594
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1595
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1596
|
+
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)
|
1597
|
+
command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', options)
|
1598
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
|
1599
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
|
1600
|
+
command.params['parent'] = parent unless parent.nil?
|
1601
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
1602
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1603
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1604
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1605
|
+
command.query['fields'] = fields unless fields.nil?
|
1606
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1607
|
+
execute_or_queue_command(command, &block)
|
1608
|
+
end
|
1609
|
+
|
1610
|
+
# Updates the DeidentifyTemplate.
|
1611
|
+
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
1612
|
+
# more.
|
1613
|
+
# @param [String] name
|
1614
|
+
# Required. Resource name of organization and deidentify template to be updated,
|
1615
|
+
# for
|
1616
|
+
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
1617
|
+
# projects/project-id/deidentifyTemplates/432452342.
|
1618
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object
|
1619
|
+
# @param [String] fields
|
1620
|
+
# Selector specifying which fields to include in a partial response.
|
1621
|
+
# @param [String] quota_user
|
1622
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1623
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1624
|
+
# @param [Google::Apis::RequestOptions] options
|
1625
|
+
# Request-specific options
|
1626
|
+
#
|
1627
|
+
# @yield [result, err] Result & error if block supplied
|
1628
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate] parsed result object
|
1629
|
+
# @yieldparam err [StandardError] error object if request failed
|
1630
|
+
#
|
1631
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
|
1632
|
+
#
|
1633
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1634
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1635
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1636
|
+
def patch_project_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1637
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1638
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation
|
1639
|
+
command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object
|
1640
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
1641
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
1642
|
+
command.params['name'] = name unless name.nil?
|
1643
|
+
command.query['fields'] = fields unless fields.nil?
|
1644
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1645
|
+
execute_or_queue_command(command, &block)
|
1646
|
+
end
|
1647
|
+
|
1648
|
+
# Starts asynchronous cancellation on a long-running DlpJob. The server
|
1649
|
+
# makes a best effort to cancel the DlpJob, but success is not
|
1650
|
+
# guaranteed.
|
1651
|
+
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
1652
|
+
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
1653
|
+
# @param [String] name
|
1654
|
+
# Required. The name of the DlpJob resource to be cancelled.
|
1655
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest] google_privacy_dlp_v2_cancel_dlp_job_request_object
|
1656
|
+
# @param [String] fields
|
1657
|
+
# Selector specifying which fields to include in a partial response.
|
1658
|
+
# @param [String] quota_user
|
1659
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1660
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1661
|
+
# @param [Google::Apis::RequestOptions] options
|
1662
|
+
# Request-specific options
|
1663
|
+
#
|
1664
|
+
# @yield [result, err] Result & error if block supplied
|
1665
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
1666
|
+
# @yieldparam err [StandardError] error object if request failed
|
1667
|
+
#
|
1668
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
1669
|
+
#
|
1670
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1671
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1672
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1673
|
+
def cancel_project_dlp_job(name, google_privacy_dlp_v2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1674
|
+
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
1675
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest::Representation
|
1676
|
+
command.request_object = google_privacy_dlp_v2_cancel_dlp_job_request_object
|
1677
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
1678
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
1679
|
+
command.params['name'] = name unless name.nil?
|
1680
|
+
command.query['fields'] = fields unless fields.nil?
|
1681
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1682
|
+
execute_or_queue_command(command, &block)
|
1683
|
+
end
|
1684
|
+
|
1685
|
+
# Creates a new job to inspect storage or calculate risk metrics.
|
1686
|
+
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
1687
|
+
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
1688
|
+
# When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
|
1689
|
+
# system will automatically choose what detectors to run. By default this may
|
1690
|
+
# be all types, but may change over time as detectors are updated.
|
1691
|
+
# @param [String] parent
|
1692
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
1693
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object
|
1694
|
+
# @param [String] fields
|
1695
|
+
# Selector specifying which fields to include in a partial response.
|
1696
|
+
# @param [String] quota_user
|
1697
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1698
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1699
|
+
# @param [Google::Apis::RequestOptions] options
|
1700
|
+
# Request-specific options
|
1701
|
+
#
|
1702
|
+
# @yield [result, err] Result & error if block supplied
|
1703
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob] parsed result object
|
1704
|
+
# @yieldparam err [StandardError] error object if request failed
|
1705
|
+
#
|
1706
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob]
|
1707
|
+
#
|
1708
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1709
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1710
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1711
|
+
def create_project_dlp_job(parent, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1712
|
+
command = make_simple_command(:post, 'v2/{+parent}/dlpJobs', options)
|
1713
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest::Representation
|
1714
|
+
command.request_object = google_privacy_dlp_v2_create_dlp_job_request_object
|
1715
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
|
1716
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
|
1717
|
+
command.params['parent'] = parent unless parent.nil?
|
1718
|
+
command.query['fields'] = fields unless fields.nil?
|
1719
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1720
|
+
execute_or_queue_command(command, &block)
|
1721
|
+
end
|
1722
|
+
|
1723
|
+
# Deletes a long-running DlpJob. This method indicates that the client is
|
1724
|
+
# no longer interested in the DlpJob result. The job will be cancelled if
|
1725
|
+
# possible.
|
1726
|
+
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
1727
|
+
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
1728
|
+
# @param [String] name
|
1729
|
+
# Required. The name of the DlpJob resource to be deleted.
|
1730
|
+
# @param [String] fields
|
1731
|
+
# Selector specifying which fields to include in a partial response.
|
1732
|
+
# @param [String] quota_user
|
1733
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1734
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1735
|
+
# @param [Google::Apis::RequestOptions] options
|
1736
|
+
# Request-specific options
|
1737
|
+
#
|
1738
|
+
# @yield [result, err] Result & error if block supplied
|
1739
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
1740
|
+
# @yieldparam err [StandardError] error object if request failed
|
1741
|
+
#
|
1742
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
1743
|
+
#
|
1744
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1745
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1746
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1747
|
+
def delete_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
1748
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1749
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
1750
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
1751
|
+
command.params['name'] = name unless name.nil?
|
1752
|
+
command.query['fields'] = fields unless fields.nil?
|
1753
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1754
|
+
execute_or_queue_command(command, &block)
|
1755
|
+
end
|
1756
|
+
|
1757
|
+
# Gets the latest state of a long-running DlpJob.
|
1758
|
+
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
1759
|
+
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
1760
|
+
# @param [String] name
|
1761
|
+
# Required. The name of the DlpJob resource.
|
1762
|
+
# @param [String] fields
|
1763
|
+
# Selector specifying which fields to include in a partial response.
|
1764
|
+
# @param [String] quota_user
|
1765
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1766
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1767
|
+
# @param [Google::Apis::RequestOptions] options
|
1768
|
+
# Request-specific options
|
1769
|
+
#
|
1770
|
+
# @yield [result, err] Result & error if block supplied
|
1771
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob] parsed result object
|
1772
|
+
# @yieldparam err [StandardError] error object if request failed
|
1773
|
+
#
|
1774
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob]
|
1775
|
+
#
|
1776
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1777
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1778
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1779
|
+
def get_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
1780
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1781
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
|
1782
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
|
1783
|
+
command.params['name'] = name unless name.nil?
|
1784
|
+
command.query['fields'] = fields unless fields.nil?
|
1785
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1786
|
+
execute_or_queue_command(command, &block)
|
1787
|
+
end
|
1788
|
+
|
1789
|
+
# Lists DlpJobs that match the specified filter in the request.
|
1790
|
+
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
1791
|
+
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
1792
|
+
# @param [String] parent
|
1793
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
1794
|
+
# @param [String] filter
|
1795
|
+
# Allows filtering.
|
1796
|
+
# Supported syntax:
|
1797
|
+
# * Filter expressions are made up of one or more restrictions.
|
1798
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
1799
|
+
# sequence of restrictions implicitly uses `AND`.
|
1800
|
+
# * A restriction has the form of ``field` `operator` `value``.
|
1801
|
+
# * Supported fields/values for inspect jobs:
|
1802
|
+
# - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
|
1803
|
+
# - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
1804
|
+
# - `trigger_name` - The resource name of the trigger that created job.
|
1805
|
+
# - 'end_time` - Corresponds to time the job finished.
|
1806
|
+
# - 'start_time` - Corresponds to time the job finished.
|
1807
|
+
# * Supported fields for risk analysis jobs:
|
1808
|
+
# - `state` - RUNNING|CANCELED|FINISHED|FAILED
|
1809
|
+
# - 'end_time` - Corresponds to time the job finished.
|
1810
|
+
# - 'start_time` - Corresponds to time the job finished.
|
1811
|
+
# * The operator must be `=` or `!=`.
|
1812
|
+
# Examples:
|
1813
|
+
# * inspected_storage = cloud_storage AND state = done
|
1814
|
+
# * inspected_storage = cloud_storage OR inspected_storage = bigquery
|
1815
|
+
# * inspected_storage = cloud_storage AND (state = done OR state = canceled)
|
1816
|
+
# * end_time > \"2017-12-12T00:00:00+00:00\"
|
1817
|
+
# The length of this field should be no more than 500 characters.
|
1818
|
+
# @param [String] location_id
|
1819
|
+
# Deprecated. This field has no effect.
|
1820
|
+
# @param [String] order_by
|
1821
|
+
# Comma separated list of fields to order by,
|
1822
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
1823
|
+
# default sorting order is ascending, redundant space characters are
|
1824
|
+
# insignificant.
|
1825
|
+
# Example: `name asc, end_time asc, create_time desc`
|
1826
|
+
# Supported fields are:
|
1827
|
+
# - `create_time`: corresponds to time the job was created.
|
1828
|
+
# - `end_time`: corresponds to time the job ended.
|
1829
|
+
# - `name`: corresponds to job's name.
|
1830
|
+
# - `state`: corresponds to `state`
|
1831
|
+
# @param [Fixnum] page_size
|
1832
|
+
# The standard list page size.
|
1833
|
+
# @param [String] page_token
|
1834
|
+
# The standard list page token.
|
1835
|
+
# @param [String] type
|
1836
|
+
# The type of job. Defaults to `DlpJobType.INSPECT`
|
1837
|
+
# @param [String] fields
|
1838
|
+
# Selector specifying which fields to include in a partial response.
|
1839
|
+
# @param [String] quota_user
|
1840
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1841
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1842
|
+
# @param [Google::Apis::RequestOptions] options
|
1843
|
+
# Request-specific options
|
1844
|
+
#
|
1845
|
+
# @yield [result, err] Result & error if block supplied
|
1846
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse] parsed result object
|
1847
|
+
# @yieldparam err [StandardError] error object if request failed
|
1848
|
+
#
|
1849
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse]
|
1850
|
+
#
|
1851
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1852
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1853
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1854
|
+
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)
|
1855
|
+
command = make_simple_command(:get, 'v2/{+parent}/dlpJobs', options)
|
1856
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse::Representation
|
1857
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse
|
1858
|
+
command.params['parent'] = parent unless parent.nil?
|
1859
|
+
command.query['filter'] = filter unless filter.nil?
|
1860
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
1861
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1862
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1863
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1864
|
+
command.query['type'] = type unless type.nil?
|
1865
|
+
command.query['fields'] = fields unless fields.nil?
|
1866
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1867
|
+
execute_or_queue_command(command, &block)
|
1868
|
+
end
|
1869
|
+
|
1870
|
+
# Redacts potentially sensitive info from an image.
|
1871
|
+
# This method has limits on input size, processing time, and output size.
|
1872
|
+
# See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
|
1873
|
+
# learn more.
|
1874
|
+
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
1875
|
+
# system will automatically choose what detectors to run. By default this may
|
1876
|
+
# be all types, but may change over time as detectors are updated.
|
1877
|
+
# @param [String] parent
|
1878
|
+
# The parent resource name, for example projects/my-project-id.
|
1879
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object
|
1880
|
+
# @param [String] fields
|
1881
|
+
# Selector specifying which fields to include in a partial response.
|
1882
|
+
# @param [String] quota_user
|
1883
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1884
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1885
|
+
# @param [Google::Apis::RequestOptions] options
|
1886
|
+
# Request-specific options
|
1887
|
+
#
|
1888
|
+
# @yield [result, err] Result & error if block supplied
|
1889
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse] parsed result object
|
1890
|
+
# @yieldparam err [StandardError] error object if request failed
|
1891
|
+
#
|
1892
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse]
|
1893
|
+
#
|
1894
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1895
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1896
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1897
|
+
def redact_project_image(parent, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1898
|
+
command = make_simple_command(:post, 'v2/{+parent}/image:redact', options)
|
1899
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest::Representation
|
1900
|
+
command.request_object = google_privacy_dlp_v2_redact_image_request_object
|
1901
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse::Representation
|
1902
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
|
1903
|
+
command.params['parent'] = parent unless parent.nil?
|
1904
|
+
command.query['fields'] = fields unless fields.nil?
|
1905
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1906
|
+
execute_or_queue_command(command, &block)
|
1907
|
+
end
|
1908
|
+
|
1909
|
+
# Creates an InspectTemplate for re-using frequently used configuration
|
1910
|
+
# for inspecting content, images, and storage.
|
1911
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
1912
|
+
# @param [String] parent
|
1913
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
1914
|
+
# organizations/my-org-id.
|
1915
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
|
1916
|
+
# @param [String] fields
|
1917
|
+
# Selector specifying which fields to include in a partial response.
|
1918
|
+
# @param [String] quota_user
|
1919
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1920
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1921
|
+
# @param [Google::Apis::RequestOptions] options
|
1922
|
+
# Request-specific options
|
1923
|
+
#
|
1924
|
+
# @yield [result, err] Result & error if block supplied
|
1925
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
1926
|
+
# @yieldparam err [StandardError] error object if request failed
|
1927
|
+
#
|
1928
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
1929
|
+
#
|
1930
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1931
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1932
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1933
|
+
def create_project_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1934
|
+
command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
|
1935
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
|
1936
|
+
command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
|
1937
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
1938
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
1939
|
+
command.params['parent'] = parent unless parent.nil?
|
1940
|
+
command.query['fields'] = fields unless fields.nil?
|
1941
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1942
|
+
execute_or_queue_command(command, &block)
|
1943
|
+
end
|
1944
|
+
|
1945
|
+
# Deletes an InspectTemplate.
|
1946
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
1947
|
+
# @param [String] name
|
1948
|
+
# Required. Resource name of the organization and inspectTemplate to be deleted,
|
1949
|
+
# for
|
1950
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
1951
|
+
# projects/project-id/inspectTemplates/432452342.
|
1952
|
+
# @param [String] fields
|
1953
|
+
# Selector specifying which fields to include in a partial response.
|
1954
|
+
# @param [String] quota_user
|
1955
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1956
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1957
|
+
# @param [Google::Apis::RequestOptions] options
|
1958
|
+
# Request-specific options
|
1959
|
+
#
|
1960
|
+
# @yield [result, err] Result & error if block supplied
|
1961
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
1962
|
+
# @yieldparam err [StandardError] error object if request failed
|
1963
|
+
#
|
1964
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
1965
|
+
#
|
1966
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1967
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1968
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1969
|
+
def delete_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
1970
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1971
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
1972
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
1973
|
+
command.params['name'] = name unless name.nil?
|
1974
|
+
command.query['fields'] = fields unless fields.nil?
|
1975
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1976
|
+
execute_or_queue_command(command, &block)
|
1977
|
+
end
|
1978
|
+
|
1979
|
+
# Gets an InspectTemplate.
|
1980
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
1981
|
+
# @param [String] name
|
1982
|
+
# Required. Resource name of the organization and inspectTemplate to be read,
|
1983
|
+
# for
|
1984
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
1985
|
+
# projects/project-id/inspectTemplates/432452342.
|
1986
|
+
# @param [String] fields
|
1987
|
+
# Selector specifying which fields to include in a partial response.
|
1988
|
+
# @param [String] quota_user
|
1989
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1990
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1991
|
+
# @param [Google::Apis::RequestOptions] options
|
1992
|
+
# Request-specific options
|
1993
|
+
#
|
1994
|
+
# @yield [result, err] Result & error if block supplied
|
1995
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
1996
|
+
# @yieldparam err [StandardError] error object if request failed
|
1997
|
+
#
|
1998
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
1999
|
+
#
|
2000
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2001
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2002
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2003
|
+
def get_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
2004
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
2005
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
2006
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
2007
|
+
command.params['name'] = name unless name.nil?
|
2008
|
+
command.query['fields'] = fields unless fields.nil?
|
2009
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2010
|
+
execute_or_queue_command(command, &block)
|
2011
|
+
end
|
2012
|
+
|
2013
|
+
# Lists InspectTemplates.
|
2014
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
2015
|
+
# @param [String] parent
|
2016
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
2017
|
+
# organizations/my-org-id.
|
2018
|
+
# @param [String] location_id
|
2019
|
+
# Deprecated. This field has no effect.
|
2020
|
+
# @param [String] order_by
|
2021
|
+
# Comma separated list of fields to order by,
|
2022
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
2023
|
+
# default sorting order is ascending, redundant space characters are
|
2024
|
+
# insignificant.
|
2025
|
+
# Example: `name asc,update_time, create_time desc`
|
2026
|
+
# Supported fields are:
|
2027
|
+
# - `create_time`: corresponds to time the template was created.
|
2028
|
+
# - `update_time`: corresponds to time the template was last updated.
|
2029
|
+
# - `name`: corresponds to template's name.
|
2030
|
+
# - `display_name`: corresponds to template's display name.
|
2031
|
+
# @param [Fixnum] page_size
|
2032
|
+
# Size of the page, can be limited by server. If zero server returns
|
2033
|
+
# a page of max size 100.
|
2034
|
+
# @param [String] page_token
|
2035
|
+
# Page token to continue retrieval. Comes from previous call
|
2036
|
+
# to `ListInspectTemplates`.
|
2037
|
+
# @param [String] fields
|
2038
|
+
# Selector specifying which fields to include in a partial response.
|
2039
|
+
# @param [String] quota_user
|
2040
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2041
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2042
|
+
# @param [Google::Apis::RequestOptions] options
|
2043
|
+
# Request-specific options
|
2044
|
+
#
|
2045
|
+
# @yield [result, err] Result & error if block supplied
|
2046
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse] parsed result object
|
2047
|
+
# @yieldparam err [StandardError] error object if request failed
|
2048
|
+
#
|
2049
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse]
|
2050
|
+
#
|
2051
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2052
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2053
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2054
|
+
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)
|
2055
|
+
command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', options)
|
2056
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
|
2057
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
|
2058
|
+
command.params['parent'] = parent unless parent.nil?
|
2059
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
2060
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
2061
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2062
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2063
|
+
command.query['fields'] = fields unless fields.nil?
|
2064
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2065
|
+
execute_or_queue_command(command, &block)
|
2066
|
+
end
|
2067
|
+
|
2068
|
+
# Updates the InspectTemplate.
|
2069
|
+
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
2070
|
+
# @param [String] name
|
2071
|
+
# Required. Resource name of organization and inspectTemplate to be updated, for
|
2072
|
+
# example `organizations/433245324/inspectTemplates/432452342` or
|
2073
|
+
# projects/project-id/inspectTemplates/432452342.
|
2074
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object
|
2075
|
+
# @param [String] fields
|
2076
|
+
# Selector specifying which fields to include in a partial response.
|
2077
|
+
# @param [String] quota_user
|
2078
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2079
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2080
|
+
# @param [Google::Apis::RequestOptions] options
|
2081
|
+
# Request-specific options
|
2082
|
+
#
|
2083
|
+
# @yield [result, err] Result & error if block supplied
|
2084
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate] parsed result object
|
2085
|
+
# @yieldparam err [StandardError] error object if request failed
|
2086
|
+
#
|
2087
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
|
2088
|
+
#
|
2089
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2090
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2091
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2092
|
+
def patch_project_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2093
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
2094
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation
|
2095
|
+
command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object
|
2096
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
2097
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
2098
|
+
command.params['name'] = name unless name.nil?
|
2099
|
+
command.query['fields'] = fields unless fields.nil?
|
2100
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2101
|
+
execute_or_queue_command(command, &block)
|
2102
|
+
end
|
2103
|
+
|
2104
|
+
# Activate a job trigger. Causes the immediate execute of a trigger
|
2105
|
+
# instead of waiting on the trigger event to occur.
|
2106
|
+
# @param [String] name
|
2107
|
+
# Required. Resource name of the trigger to activate, for example
|
2108
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
2109
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest] google_privacy_dlp_v2_activate_job_trigger_request_object
|
2110
|
+
# @param [String] fields
|
2111
|
+
# Selector specifying which fields to include in a partial response.
|
2112
|
+
# @param [String] quota_user
|
2113
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2114
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2115
|
+
# @param [Google::Apis::RequestOptions] options
|
2116
|
+
# Request-specific options
|
2117
|
+
#
|
2118
|
+
# @yield [result, err] Result & error if block supplied
|
2119
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob] parsed result object
|
2120
|
+
# @yieldparam err [StandardError] error object if request failed
|
2121
|
+
#
|
2122
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob]
|
2123
|
+
#
|
2124
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2125
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2126
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2127
|
+
def activate_project_job_trigger(name, google_privacy_dlp_v2_activate_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2128
|
+
command = make_simple_command(:post, 'v2/{+name}:activate', options)
|
2129
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest::Representation
|
2130
|
+
command.request_object = google_privacy_dlp_v2_activate_job_trigger_request_object
|
2131
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
|
2132
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
|
2133
|
+
command.params['name'] = name unless name.nil?
|
2134
|
+
command.query['fields'] = fields unless fields.nil?
|
2135
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2136
|
+
execute_or_queue_command(command, &block)
|
2137
|
+
end
|
2138
|
+
|
2139
|
+
# Creates a job trigger to run DLP actions such as scanning storage for
|
2140
|
+
# sensitive information on a set schedule.
|
2141
|
+
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
2142
|
+
# @param [String] parent
|
2143
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
2144
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
|
2145
|
+
# @param [String] fields
|
2146
|
+
# Selector specifying which fields to include in a partial response.
|
2147
|
+
# @param [String] quota_user
|
2148
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2149
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2150
|
+
# @param [Google::Apis::RequestOptions] options
|
2151
|
+
# Request-specific options
|
2152
|
+
#
|
2153
|
+
# @yield [result, err] Result & error if block supplied
|
2154
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger] parsed result object
|
2155
|
+
# @yieldparam err [StandardError] error object if request failed
|
2156
|
+
#
|
2157
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger]
|
2158
|
+
#
|
2159
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2160
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2161
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2162
|
+
def create_project_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2163
|
+
command = make_simple_command(:post, 'v2/{+parent}/jobTriggers', options)
|
2164
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest::Representation
|
2165
|
+
command.request_object = google_privacy_dlp_v2_create_job_trigger_request_object
|
2166
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
2167
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
|
2168
|
+
command.params['parent'] = parent unless parent.nil?
|
2169
|
+
command.query['fields'] = fields unless fields.nil?
|
2170
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2171
|
+
execute_or_queue_command(command, &block)
|
2172
|
+
end
|
2173
|
+
|
2174
|
+
# Deletes a job trigger.
|
2175
|
+
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
2176
|
+
# @param [String] name
|
2177
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
2178
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
2179
|
+
# @param [String] fields
|
2180
|
+
# Selector specifying which fields to include in a partial response.
|
2181
|
+
# @param [String] quota_user
|
2182
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2183
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2184
|
+
# @param [Google::Apis::RequestOptions] options
|
2185
|
+
# Request-specific options
|
2186
|
+
#
|
2187
|
+
# @yield [result, err] Result & error if block supplied
|
2188
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
2189
|
+
# @yieldparam err [StandardError] error object if request failed
|
2190
|
+
#
|
2191
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
2192
|
+
#
|
2193
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2194
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2195
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2196
|
+
def delete_project_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
|
2197
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
2198
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
2199
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
2200
|
+
command.params['name'] = name unless name.nil?
|
2201
|
+
command.query['fields'] = fields unless fields.nil?
|
2202
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2203
|
+
execute_or_queue_command(command, &block)
|
2204
|
+
end
|
2205
|
+
|
2206
|
+
# Gets a job trigger.
|
2207
|
+
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
2208
|
+
# @param [String] name
|
2209
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
2210
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
2211
|
+
# @param [String] fields
|
2212
|
+
# Selector specifying which fields to include in a partial response.
|
2213
|
+
# @param [String] quota_user
|
2214
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2215
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2216
|
+
# @param [Google::Apis::RequestOptions] options
|
2217
|
+
# Request-specific options
|
2218
|
+
#
|
2219
|
+
# @yield [result, err] Result & error if block supplied
|
2220
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger] parsed result object
|
2221
|
+
# @yieldparam err [StandardError] error object if request failed
|
2222
|
+
#
|
2223
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger]
|
2224
|
+
#
|
2225
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2226
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2227
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2228
|
+
def get_project_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
|
2229
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
2230
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
2231
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
|
2232
|
+
command.params['name'] = name unless name.nil?
|
2233
|
+
command.query['fields'] = fields unless fields.nil?
|
2234
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2235
|
+
execute_or_queue_command(command, &block)
|
2236
|
+
end
|
2237
|
+
|
2238
|
+
# Lists job triggers.
|
2239
|
+
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
2240
|
+
# @param [String] parent
|
2241
|
+
# Required. The parent resource name, for example `projects/my-project-id`.
|
2242
|
+
# @param [String] filter
|
2243
|
+
# Allows filtering.
|
2244
|
+
# Supported syntax:
|
2245
|
+
# * Filter expressions are made up of one or more restrictions.
|
2246
|
+
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
2247
|
+
# sequence of restrictions implicitly uses `AND`.
|
2248
|
+
# * A restriction has the form of ``field` `operator` `value``.
|
2249
|
+
# * Supported fields/values for inspect jobs:
|
2250
|
+
# - `status` - HEALTHY|PAUSED|CANCELLED
|
2251
|
+
# - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
2252
|
+
# - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by
|
2253
|
+
# quotation marks. Nanoseconds are ignored.
|
2254
|
+
# - 'error_count' - Number of errors that have occurred while running.
|
2255
|
+
# * The operator must be `=` or `!=` for status and inspected_storage.
|
2256
|
+
# Examples:
|
2257
|
+
# * inspected_storage = cloud_storage AND status = HEALTHY
|
2258
|
+
# * inspected_storage = cloud_storage OR inspected_storage = bigquery
|
2259
|
+
# * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY)
|
2260
|
+
# * last_run_time > \"2017-12-12T00:00:00+00:00\"
|
2261
|
+
# The length of this field should be no more than 500 characters.
|
2262
|
+
# @param [String] location_id
|
2263
|
+
# Deprecated. This field has no effect.
|
2264
|
+
# @param [String] order_by
|
2265
|
+
# Comma separated list of triggeredJob fields to order by,
|
2266
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
2267
|
+
# default sorting order is ascending, redundant space characters are
|
2268
|
+
# insignificant.
|
2269
|
+
# Example: `name asc,update_time, create_time desc`
|
2270
|
+
# Supported fields are:
|
2271
|
+
# - `create_time`: corresponds to time the JobTrigger was created.
|
2272
|
+
# - `update_time`: corresponds to time the JobTrigger was last updated.
|
2273
|
+
# - `last_run_time`: corresponds to the last time the JobTrigger ran.
|
2274
|
+
# - `name`: corresponds to JobTrigger's name.
|
2275
|
+
# - `display_name`: corresponds to JobTrigger's display name.
|
2276
|
+
# - `status`: corresponds to JobTrigger's status.
|
2277
|
+
# @param [Fixnum] page_size
|
2278
|
+
# Size of the page, can be limited by a server.
|
2279
|
+
# @param [String] page_token
|
2280
|
+
# Page token to continue retrieval. Comes from previous call
|
2281
|
+
# to ListJobTriggers. `order_by` field must not
|
2282
|
+
# change for subsequent calls.
|
2283
|
+
# @param [String] fields
|
2284
|
+
# Selector specifying which fields to include in a partial response.
|
2285
|
+
# @param [String] quota_user
|
2286
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2287
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2288
|
+
# @param [Google::Apis::RequestOptions] options
|
2289
|
+
# Request-specific options
|
2290
|
+
#
|
2291
|
+
# @yield [result, err] Result & error if block supplied
|
2292
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse] parsed result object
|
2293
|
+
# @yieldparam err [StandardError] error object if request failed
|
2294
|
+
#
|
2295
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse]
|
2296
|
+
#
|
2297
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2298
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2299
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2300
|
+
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)
|
2301
|
+
command = make_simple_command(:get, 'v2/{+parent}/jobTriggers', options)
|
2302
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse::Representation
|
2303
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse
|
2304
|
+
command.params['parent'] = parent unless parent.nil?
|
2305
|
+
command.query['filter'] = filter unless filter.nil?
|
2306
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
2307
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
2308
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2309
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2310
|
+
command.query['fields'] = fields unless fields.nil?
|
2311
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2312
|
+
execute_or_queue_command(command, &block)
|
2313
|
+
end
|
2314
|
+
|
2315
|
+
# Updates a job trigger.
|
2316
|
+
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
2317
|
+
# @param [String] name
|
2318
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
2319
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
2320
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest] google_privacy_dlp_v2_update_job_trigger_request_object
|
2321
|
+
# @param [String] fields
|
2322
|
+
# Selector specifying which fields to include in a partial response.
|
2323
|
+
# @param [String] quota_user
|
2324
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2325
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2326
|
+
# @param [Google::Apis::RequestOptions] options
|
2327
|
+
# Request-specific options
|
2328
|
+
#
|
2329
|
+
# @yield [result, err] Result & error if block supplied
|
2330
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger] parsed result object
|
2331
|
+
# @yieldparam err [StandardError] error object if request failed
|
2332
|
+
#
|
2333
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger]
|
2334
|
+
#
|
2335
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2336
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2337
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2338
|
+
def patch_project_job_trigger(name, google_privacy_dlp_v2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2339
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
2340
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest::Representation
|
2341
|
+
command.request_object = google_privacy_dlp_v2_update_job_trigger_request_object
|
2342
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
2343
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
|
711
2344
|
command.params['name'] = name unless name.nil?
|
712
2345
|
command.query['fields'] = fields unless fields.nil?
|
713
2346
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -741,7 +2374,7 @@ module Google
|
|
741
2374
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
742
2375
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
743
2376
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
744
|
-
def
|
2377
|
+
def deidentify_project_location_content(parent, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
745
2378
|
command = make_simple_command(:post, 'v2/{+parent}/content:deidentify', options)
|
746
2379
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest::Representation
|
747
2380
|
command.request_object = google_privacy_dlp_v2_deidentify_content_request_object
|
@@ -780,7 +2413,7 @@ module Google
|
|
780
2413
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
781
2414
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
782
2415
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
783
|
-
def
|
2416
|
+
def inspect_project_location_content(parent, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
784
2417
|
command = make_simple_command(:post, 'v2/{+parent}/content:inspect', options)
|
785
2418
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest::Representation
|
786
2419
|
command.request_object = google_privacy_dlp_v2_inspect_content_request_object
|
@@ -798,7 +2431,7 @@ module Google
|
|
798
2431
|
# identification_in_free_text_code_example
|
799
2432
|
# to learn more.
|
800
2433
|
# @param [String] parent
|
801
|
-
# The parent resource name.
|
2434
|
+
# Required. The parent resource name.
|
802
2435
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
|
803
2436
|
# @param [String] fields
|
804
2437
|
# Selector specifying which fields to include in a partial response.
|
@@ -817,7 +2450,7 @@ module Google
|
|
817
2450
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
818
2451
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
819
2452
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
820
|
-
def
|
2453
|
+
def reidentify_project_location_content(parent, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
821
2454
|
command = make_simple_command(:post, 'v2/{+parent}/content:reidentify', options)
|
822
2455
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest::Representation
|
823
2456
|
command.request_object = google_privacy_dlp_v2_reidentify_content_request_object
|
@@ -834,7 +2467,7 @@ module Google
|
|
834
2467
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
835
2468
|
# more.
|
836
2469
|
# @param [String] parent
|
837
|
-
# The parent resource name, for example projects/my-project-id or
|
2470
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
838
2471
|
# organizations/my-org-id.
|
839
2472
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
|
840
2473
|
# @param [String] fields
|
@@ -854,7 +2487,7 @@ module Google
|
|
854
2487
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
855
2488
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
856
2489
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
857
|
-
def
|
2490
|
+
def create_project_location_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
858
2491
|
command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
|
859
2492
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
|
860
2493
|
command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
|
@@ -870,7 +2503,8 @@ module Google
|
|
870
2503
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
871
2504
|
# more.
|
872
2505
|
# @param [String] name
|
873
|
-
# Resource name of the organization and deidentify template to be
|
2506
|
+
# Required. Resource name of the organization and deidentify template to be
|
2507
|
+
# deleted,
|
874
2508
|
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
875
2509
|
# projects/project-id/deidentifyTemplates/432452342.
|
876
2510
|
# @param [String] fields
|
@@ -890,7 +2524,7 @@ module Google
|
|
890
2524
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
891
2525
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
892
2526
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
893
|
-
def
|
2527
|
+
def delete_project_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
894
2528
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
895
2529
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
896
2530
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
@@ -904,7 +2538,8 @@ module Google
|
|
904
2538
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
905
2539
|
# more.
|
906
2540
|
# @param [String] name
|
907
|
-
# Resource name of the organization and deidentify template to be read,
|
2541
|
+
# Required. Resource name of the organization and deidentify template to be read,
|
2542
|
+
# for
|
908
2543
|
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
909
2544
|
# projects/project-id/deidentifyTemplates/432452342.
|
910
2545
|
# @param [String] fields
|
@@ -924,7 +2559,7 @@ module Google
|
|
924
2559
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
925
2560
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
926
2561
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
927
|
-
def
|
2562
|
+
def get_project_location_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
928
2563
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
929
2564
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
|
930
2565
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
|
@@ -938,10 +2573,12 @@ module Google
|
|
938
2573
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
939
2574
|
# more.
|
940
2575
|
# @param [String] parent
|
941
|
-
# The parent resource name, for example projects/my-project-id or
|
2576
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
942
2577
|
# organizations/my-org-id.
|
2578
|
+
# @param [String] location_id
|
2579
|
+
# Deprecated. This field has no effect.
|
943
2580
|
# @param [String] order_by
|
944
|
-
#
|
2581
|
+
# Comma separated list of fields to order by,
|
945
2582
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
946
2583
|
# default sorting order is ascending, redundant space characters are
|
947
2584
|
# insignificant.
|
@@ -952,10 +2589,10 @@ module Google
|
|
952
2589
|
# - `name`: corresponds to template's name.
|
953
2590
|
# - `display_name`: corresponds to template's display name.
|
954
2591
|
# @param [Fixnum] page_size
|
955
|
-
#
|
2592
|
+
# Size of the page, can be limited by server. If zero server returns
|
956
2593
|
# a page of max size 100.
|
957
2594
|
# @param [String] page_token
|
958
|
-
#
|
2595
|
+
# Page token to continue retrieval. Comes from previous call
|
959
2596
|
# to `ListDeidentifyTemplates`.
|
960
2597
|
# @param [String] fields
|
961
2598
|
# Selector specifying which fields to include in a partial response.
|
@@ -974,11 +2611,12 @@ module Google
|
|
974
2611
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
975
2612
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
976
2613
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
977
|
-
def
|
2614
|
+
def list_project_location_deidentify_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
978
2615
|
command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', options)
|
979
2616
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
|
980
2617
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
|
981
2618
|
command.params['parent'] = parent unless parent.nil?
|
2619
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
982
2620
|
command.query['orderBy'] = order_by unless order_by.nil?
|
983
2621
|
command.query['pageSize'] = page_size unless page_size.nil?
|
984
2622
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -991,7 +2629,8 @@ module Google
|
|
991
2629
|
# See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
992
2630
|
# more.
|
993
2631
|
# @param [String] name
|
994
|
-
# Resource name of organization and deidentify template to be updated,
|
2632
|
+
# Required. Resource name of organization and deidentify template to be updated,
|
2633
|
+
# for
|
995
2634
|
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
996
2635
|
# projects/project-id/deidentifyTemplates/432452342.
|
997
2636
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2_update_deidentify_template_request_object
|
@@ -1012,7 +2651,7 @@ module Google
|
|
1012
2651
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1013
2652
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1014
2653
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1015
|
-
def
|
2654
|
+
def patch_project_location_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1016
2655
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1017
2656
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation
|
1018
2657
|
command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object
|
@@ -1030,7 +2669,7 @@ module Google
|
|
1030
2669
|
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
1031
2670
|
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
1032
2671
|
# @param [String] name
|
1033
|
-
# The name of the DlpJob resource to be cancelled.
|
2672
|
+
# Required. The name of the DlpJob resource to be cancelled.
|
1034
2673
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest] google_privacy_dlp_v2_cancel_dlp_job_request_object
|
1035
2674
|
# @param [String] fields
|
1036
2675
|
# Selector specifying which fields to include in a partial response.
|
@@ -1049,7 +2688,7 @@ module Google
|
|
1049
2688
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1050
2689
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1051
2690
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1052
|
-
def
|
2691
|
+
def cancel_project_location_dlp_job(name, google_privacy_dlp_v2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1053
2692
|
command = make_simple_command(:post, 'v2/{+name}:cancel', options)
|
1054
2693
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest::Representation
|
1055
2694
|
command.request_object = google_privacy_dlp_v2_cancel_dlp_job_request_object
|
@@ -1068,7 +2707,7 @@ module Google
|
|
1068
2707
|
# system will automatically choose what detectors to run. By default this may
|
1069
2708
|
# be all types, but may change over time as detectors are updated.
|
1070
2709
|
# @param [String] parent
|
1071
|
-
# The parent resource name, for example projects/my-project-id.
|
2710
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
1072
2711
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object
|
1073
2712
|
# @param [String] fields
|
1074
2713
|
# Selector specifying which fields to include in a partial response.
|
@@ -1087,7 +2726,7 @@ module Google
|
|
1087
2726
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1088
2727
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1089
2728
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1090
|
-
def
|
2729
|
+
def create_project_location_dlp_job(parent, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1091
2730
|
command = make_simple_command(:post, 'v2/{+parent}/dlpJobs', options)
|
1092
2731
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest::Representation
|
1093
2732
|
command.request_object = google_privacy_dlp_v2_create_dlp_job_request_object
|
@@ -1105,7 +2744,7 @@ module Google
|
|
1105
2744
|
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
1106
2745
|
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
1107
2746
|
# @param [String] name
|
1108
|
-
# The name of the DlpJob resource to be deleted.
|
2747
|
+
# Required. The name of the DlpJob resource to be deleted.
|
1109
2748
|
# @param [String] fields
|
1110
2749
|
# Selector specifying which fields to include in a partial response.
|
1111
2750
|
# @param [String] quota_user
|
@@ -1123,7 +2762,7 @@ module Google
|
|
1123
2762
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1124
2763
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1125
2764
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1126
|
-
def
|
2765
|
+
def delete_project_location_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
1127
2766
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1128
2767
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
1129
2768
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
@@ -1133,11 +2772,48 @@ module Google
|
|
1133
2772
|
execute_or_queue_command(command, &block)
|
1134
2773
|
end
|
1135
2774
|
|
2775
|
+
# Finish a running hybrid DlpJob. Triggers the finalization steps and running
|
2776
|
+
# of any enabled actions that have not yet run.
|
2777
|
+
# Early access feature is in a pre-release state and might change or have
|
2778
|
+
# limited support. For more information, see
|
2779
|
+
# https://cloud.google.com/products#product-launch-stages.
|
2780
|
+
# @param [String] name
|
2781
|
+
# Required. The name of the DlpJob resource to be cancelled.
|
2782
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2FinishDlpJobRequest] google_privacy_dlp_v2_finish_dlp_job_request_object
|
2783
|
+
# @param [String] fields
|
2784
|
+
# Selector specifying which fields to include in a partial response.
|
2785
|
+
# @param [String] quota_user
|
2786
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2787
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2788
|
+
# @param [Google::Apis::RequestOptions] options
|
2789
|
+
# Request-specific options
|
2790
|
+
#
|
2791
|
+
# @yield [result, err] Result & error if block supplied
|
2792
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
2793
|
+
# @yieldparam err [StandardError] error object if request failed
|
2794
|
+
#
|
2795
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
2796
|
+
#
|
2797
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2798
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2799
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2800
|
+
def finish_project_location_dlp_job(name, google_privacy_dlp_v2_finish_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2801
|
+
command = make_simple_command(:post, 'v2/{+name}:finish', options)
|
2802
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2FinishDlpJobRequest::Representation
|
2803
|
+
command.request_object = google_privacy_dlp_v2_finish_dlp_job_request_object
|
2804
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
2805
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
2806
|
+
command.params['name'] = name unless name.nil?
|
2807
|
+
command.query['fields'] = fields unless fields.nil?
|
2808
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2809
|
+
execute_or_queue_command(command, &block)
|
2810
|
+
end
|
2811
|
+
|
1136
2812
|
# Gets the latest state of a long-running DlpJob.
|
1137
2813
|
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
1138
2814
|
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
1139
2815
|
# @param [String] name
|
1140
|
-
# The name of the DlpJob resource.
|
2816
|
+
# Required. The name of the DlpJob resource.
|
1141
2817
|
# @param [String] fields
|
1142
2818
|
# Selector specifying which fields to include in a partial response.
|
1143
2819
|
# @param [String] quota_user
|
@@ -1155,7 +2831,7 @@ module Google
|
|
1155
2831
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1156
2832
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1157
2833
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1158
|
-
def
|
2834
|
+
def get_project_location_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
1159
2835
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
1160
2836
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
|
1161
2837
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
|
@@ -1165,18 +2841,57 @@ module Google
|
|
1165
2841
|
execute_or_queue_command(command, &block)
|
1166
2842
|
end
|
1167
2843
|
|
2844
|
+
# Inspect hybrid content and store findings to a job.
|
2845
|
+
# To review the findings inspect the job. Inspection will occur
|
2846
|
+
# asynchronously.
|
2847
|
+
# Early access feature is in a pre-release state and might change or have
|
2848
|
+
# limited support. For more information, see
|
2849
|
+
# https://cloud.google.com/products#product-launch-stages.
|
2850
|
+
# @param [String] name
|
2851
|
+
# Required. Resource name of the job to execute a hybrid inspect on, for example
|
2852
|
+
# `projects/dlp-test-project/dlpJob/53234423`.
|
2853
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectDlpJobRequest] google_privacy_dlp_v2_hybrid_inspect_dlp_job_request_object
|
2854
|
+
# @param [String] fields
|
2855
|
+
# Selector specifying which fields to include in a partial response.
|
2856
|
+
# @param [String] quota_user
|
2857
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2858
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2859
|
+
# @param [Google::Apis::RequestOptions] options
|
2860
|
+
# Request-specific options
|
2861
|
+
#
|
2862
|
+
# @yield [result, err] Result & error if block supplied
|
2863
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse] parsed result object
|
2864
|
+
# @yieldparam err [StandardError] error object if request failed
|
2865
|
+
#
|
2866
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse]
|
2867
|
+
#
|
2868
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2869
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2870
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2871
|
+
def hybrid_project_location_dlp_job_inspect(name, google_privacy_dlp_v2_hybrid_inspect_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2872
|
+
command = make_simple_command(:post, 'v2/{+name}:hybridInspect', options)
|
2873
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectDlpJobRequest::Representation
|
2874
|
+
command.request_object = google_privacy_dlp_v2_hybrid_inspect_dlp_job_request_object
|
2875
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse::Representation
|
2876
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse
|
2877
|
+
command.params['name'] = name unless name.nil?
|
2878
|
+
command.query['fields'] = fields unless fields.nil?
|
2879
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2880
|
+
execute_or_queue_command(command, &block)
|
2881
|
+
end
|
2882
|
+
|
1168
2883
|
# Lists DlpJobs that match the specified filter in the request.
|
1169
2884
|
# See https://cloud.google.com/dlp/docs/inspecting-storage and
|
1170
2885
|
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
1171
2886
|
# @param [String] parent
|
1172
|
-
# The parent resource name, for example projects/my-project-id.
|
2887
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
1173
2888
|
# @param [String] filter
|
1174
|
-
#
|
2889
|
+
# Allows filtering.
|
1175
2890
|
# Supported syntax:
|
1176
2891
|
# * Filter expressions are made up of one or more restrictions.
|
1177
2892
|
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
1178
2893
|
# sequence of restrictions implicitly uses `AND`.
|
1179
|
-
# * A restriction has the form of
|
2894
|
+
# * A restriction has the form of ``field` `operator` `value``.
|
1180
2895
|
# * Supported fields/values for inspect jobs:
|
1181
2896
|
# - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
|
1182
2897
|
# - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
@@ -1194,8 +2909,10 @@ module Google
|
|
1194
2909
|
# * inspected_storage = cloud_storage AND (state = done OR state = canceled)
|
1195
2910
|
# * end_time > \"2017-12-12T00:00:00+00:00\"
|
1196
2911
|
# The length of this field should be no more than 500 characters.
|
2912
|
+
# @param [String] location_id
|
2913
|
+
# Deprecated. This field has no effect.
|
1197
2914
|
# @param [String] order_by
|
1198
|
-
#
|
2915
|
+
# Comma separated list of fields to order by,
|
1199
2916
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
1200
2917
|
# default sorting order is ascending, redundant space characters are
|
1201
2918
|
# insignificant.
|
@@ -1228,12 +2945,13 @@ module Google
|
|
1228
2945
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1229
2946
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1230
2947
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1231
|
-
def
|
2948
|
+
def list_project_location_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)
|
1232
2949
|
command = make_simple_command(:get, 'v2/{+parent}/dlpJobs', options)
|
1233
2950
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse::Representation
|
1234
2951
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse
|
1235
2952
|
command.params['parent'] = parent unless parent.nil?
|
1236
2953
|
command.query['filter'] = filter unless filter.nil?
|
2954
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
1237
2955
|
command.query['orderBy'] = order_by unless order_by.nil?
|
1238
2956
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1239
2957
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -1270,7 +2988,7 @@ module Google
|
|
1270
2988
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1271
2989
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1272
2990
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1273
|
-
def
|
2991
|
+
def redact_project_location_image(parent, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1274
2992
|
command = make_simple_command(:post, 'v2/{+parent}/image:redact', options)
|
1275
2993
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest::Representation
|
1276
2994
|
command.request_object = google_privacy_dlp_v2_redact_image_request_object
|
@@ -1286,7 +3004,7 @@ module Google
|
|
1286
3004
|
# for inspecting content, images, and storage.
|
1287
3005
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
1288
3006
|
# @param [String] parent
|
1289
|
-
# The parent resource name, for example projects/my-project-id or
|
3007
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
1290
3008
|
# organizations/my-org-id.
|
1291
3009
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
|
1292
3010
|
# @param [String] fields
|
@@ -1306,7 +3024,7 @@ module Google
|
|
1306
3024
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1307
3025
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1308
3026
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1309
|
-
def
|
3027
|
+
def create_project_location_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1310
3028
|
command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
|
1311
3029
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
|
1312
3030
|
command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
|
@@ -1321,7 +3039,8 @@ module Google
|
|
1321
3039
|
# Deletes an InspectTemplate.
|
1322
3040
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
1323
3041
|
# @param [String] name
|
1324
|
-
# Resource name of the organization and inspectTemplate to be deleted,
|
3042
|
+
# Required. Resource name of the organization and inspectTemplate to be deleted,
|
3043
|
+
# for
|
1325
3044
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
1326
3045
|
# projects/project-id/inspectTemplates/432452342.
|
1327
3046
|
# @param [String] fields
|
@@ -1341,7 +3060,7 @@ module Google
|
|
1341
3060
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1342
3061
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1343
3062
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1344
|
-
def
|
3063
|
+
def delete_project_location_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
1345
3064
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1346
3065
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
1347
3066
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
@@ -1354,7 +3073,8 @@ module Google
|
|
1354
3073
|
# Gets an InspectTemplate.
|
1355
3074
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
1356
3075
|
# @param [String] name
|
1357
|
-
# Resource name of the organization and inspectTemplate to be read,
|
3076
|
+
# Required. Resource name of the organization and inspectTemplate to be read,
|
3077
|
+
# for
|
1358
3078
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
1359
3079
|
# projects/project-id/inspectTemplates/432452342.
|
1360
3080
|
# @param [String] fields
|
@@ -1374,7 +3094,7 @@ module Google
|
|
1374
3094
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1375
3095
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1376
3096
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1377
|
-
def
|
3097
|
+
def get_project_location_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
1378
3098
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
1379
3099
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
|
1380
3100
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
|
@@ -1387,10 +3107,12 @@ module Google
|
|
1387
3107
|
# Lists InspectTemplates.
|
1388
3108
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
1389
3109
|
# @param [String] parent
|
1390
|
-
# The parent resource name, for example projects/my-project-id or
|
3110
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
1391
3111
|
# organizations/my-org-id.
|
3112
|
+
# @param [String] location_id
|
3113
|
+
# Deprecated. This field has no effect.
|
1392
3114
|
# @param [String] order_by
|
1393
|
-
#
|
3115
|
+
# Comma separated list of fields to order by,
|
1394
3116
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
1395
3117
|
# default sorting order is ascending, redundant space characters are
|
1396
3118
|
# insignificant.
|
@@ -1401,10 +3123,10 @@ module Google
|
|
1401
3123
|
# - `name`: corresponds to template's name.
|
1402
3124
|
# - `display_name`: corresponds to template's display name.
|
1403
3125
|
# @param [Fixnum] page_size
|
1404
|
-
#
|
3126
|
+
# Size of the page, can be limited by server. If zero server returns
|
1405
3127
|
# a page of max size 100.
|
1406
3128
|
# @param [String] page_token
|
1407
|
-
#
|
3129
|
+
# Page token to continue retrieval. Comes from previous call
|
1408
3130
|
# to `ListInspectTemplates`.
|
1409
3131
|
# @param [String] fields
|
1410
3132
|
# Selector specifying which fields to include in a partial response.
|
@@ -1423,11 +3145,12 @@ module Google
|
|
1423
3145
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1424
3146
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1425
3147
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1426
|
-
def
|
3148
|
+
def list_project_location_inspect_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1427
3149
|
command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', options)
|
1428
3150
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
|
1429
3151
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
|
1430
3152
|
command.params['parent'] = parent unless parent.nil?
|
3153
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
1431
3154
|
command.query['orderBy'] = order_by unless order_by.nil?
|
1432
3155
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1433
3156
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -1439,7 +3162,7 @@ module Google
|
|
1439
3162
|
# Updates the InspectTemplate.
|
1440
3163
|
# See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
1441
3164
|
# @param [String] name
|
1442
|
-
# Resource name of organization and inspectTemplate to be updated, for
|
3165
|
+
# Required. Resource name of organization and inspectTemplate to be updated, for
|
1443
3166
|
# example `organizations/433245324/inspectTemplates/432452342` or
|
1444
3167
|
# projects/project-id/inspectTemplates/432452342.
|
1445
3168
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest] google_privacy_dlp_v2_update_inspect_template_request_object
|
@@ -1460,7 +3183,7 @@ module Google
|
|
1460
3183
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1461
3184
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1462
3185
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1463
|
-
def
|
3186
|
+
def patch_project_location_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1464
3187
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1465
3188
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation
|
1466
3189
|
command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object
|
@@ -1475,7 +3198,7 @@ module Google
|
|
1475
3198
|
# Activate a job trigger. Causes the immediate execute of a trigger
|
1476
3199
|
# instead of waiting on the trigger event to occur.
|
1477
3200
|
# @param [String] name
|
1478
|
-
# Resource name of the trigger to activate, for example
|
3201
|
+
# Required. Resource name of the trigger to activate, for example
|
1479
3202
|
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1480
3203
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest] google_privacy_dlp_v2_activate_job_trigger_request_object
|
1481
3204
|
# @param [String] fields
|
@@ -1495,7 +3218,7 @@ module Google
|
|
1495
3218
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1496
3219
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1497
3220
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1498
|
-
def
|
3221
|
+
def activate_project_location_job_trigger(name, google_privacy_dlp_v2_activate_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1499
3222
|
command = make_simple_command(:post, 'v2/{+name}:activate', options)
|
1500
3223
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ActivateJobTriggerRequest::Representation
|
1501
3224
|
command.request_object = google_privacy_dlp_v2_activate_job_trigger_request_object
|
@@ -1511,7 +3234,7 @@ module Google
|
|
1511
3234
|
# sensitive information on a set schedule.
|
1512
3235
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
1513
3236
|
# @param [String] parent
|
1514
|
-
# The parent resource name, for example projects/my-project-id.
|
3237
|
+
# Required. The parent resource name, for example projects/my-project-id.
|
1515
3238
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
|
1516
3239
|
# @param [String] fields
|
1517
3240
|
# Selector specifying which fields to include in a partial response.
|
@@ -1530,7 +3253,7 @@ module Google
|
|
1530
3253
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1531
3254
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1532
3255
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1533
|
-
def
|
3256
|
+
def create_project_location_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1534
3257
|
command = make_simple_command(:post, 'v2/{+parent}/jobTriggers', options)
|
1535
3258
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest::Representation
|
1536
3259
|
command.request_object = google_privacy_dlp_v2_create_job_trigger_request_object
|
@@ -1545,7 +3268,7 @@ module Google
|
|
1545
3268
|
# Deletes a job trigger.
|
1546
3269
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
1547
3270
|
# @param [String] name
|
1548
|
-
# Resource name of the project and the triggeredJob, for example
|
3271
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
1549
3272
|
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1550
3273
|
# @param [String] fields
|
1551
3274
|
# Selector specifying which fields to include in a partial response.
|
@@ -1564,7 +3287,7 @@ module Google
|
|
1564
3287
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1565
3288
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1566
3289
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1567
|
-
def
|
3290
|
+
def delete_project_location_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
|
1568
3291
|
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1569
3292
|
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
1570
3293
|
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
@@ -1577,7 +3300,7 @@ module Google
|
|
1577
3300
|
# Gets a job trigger.
|
1578
3301
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
1579
3302
|
# @param [String] name
|
1580
|
-
# Resource name of the project and the triggeredJob, for example
|
3303
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
1581
3304
|
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1582
3305
|
# @param [String] fields
|
1583
3306
|
# Selector specifying which fields to include in a partial response.
|
@@ -1596,7 +3319,7 @@ module Google
|
|
1596
3319
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1597
3320
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1598
3321
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1599
|
-
def
|
3322
|
+
def get_project_location_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
|
1600
3323
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
1601
3324
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
|
1602
3325
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
|
@@ -1606,17 +3329,57 @@ module Google
|
|
1606
3329
|
execute_or_queue_command(command, &block)
|
1607
3330
|
end
|
1608
3331
|
|
3332
|
+
# Inspect hybrid content and store findings to a trigger. The inspection
|
3333
|
+
# will be processed asynchronously. To review the findings monitor the
|
3334
|
+
# jobs within the trigger.
|
3335
|
+
# Early access feature is in a pre-release state and might change or have
|
3336
|
+
# limited support. For more information, see
|
3337
|
+
# https://cloud.google.com/products#product-launch-stages.
|
3338
|
+
# @param [String] name
|
3339
|
+
# Required. Resource name of the trigger to execute a hybrid inspect on, for
|
3340
|
+
# example
|
3341
|
+
# `projects/dlp-test-project/jobTriggers/53234423`.
|
3342
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectJobTriggerRequest] google_privacy_dlp_v2_hybrid_inspect_job_trigger_request_object
|
3343
|
+
# @param [String] fields
|
3344
|
+
# Selector specifying which fields to include in a partial response.
|
3345
|
+
# @param [String] quota_user
|
3346
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3347
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3348
|
+
# @param [Google::Apis::RequestOptions] options
|
3349
|
+
# Request-specific options
|
3350
|
+
#
|
3351
|
+
# @yield [result, err] Result & error if block supplied
|
3352
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse] parsed result object
|
3353
|
+
# @yieldparam err [StandardError] error object if request failed
|
3354
|
+
#
|
3355
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse]
|
3356
|
+
#
|
3357
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3358
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3359
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3360
|
+
def hybrid_project_location_job_trigger_inspect(name, google_privacy_dlp_v2_hybrid_inspect_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3361
|
+
command = make_simple_command(:post, 'v2/{+name}:hybridInspect', options)
|
3362
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectJobTriggerRequest::Representation
|
3363
|
+
command.request_object = google_privacy_dlp_v2_hybrid_inspect_job_trigger_request_object
|
3364
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse::Representation
|
3365
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse
|
3366
|
+
command.params['name'] = name unless name.nil?
|
3367
|
+
command.query['fields'] = fields unless fields.nil?
|
3368
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3369
|
+
execute_or_queue_command(command, &block)
|
3370
|
+
end
|
3371
|
+
|
1609
3372
|
# Lists job triggers.
|
1610
3373
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
1611
3374
|
# @param [String] parent
|
1612
|
-
# The parent resource name, for example `projects/my-project-id`.
|
3375
|
+
# Required. The parent resource name, for example `projects/my-project-id`.
|
1613
3376
|
# @param [String] filter
|
1614
|
-
#
|
3377
|
+
# Allows filtering.
|
1615
3378
|
# Supported syntax:
|
1616
3379
|
# * Filter expressions are made up of one or more restrictions.
|
1617
3380
|
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
1618
3381
|
# sequence of restrictions implicitly uses `AND`.
|
1619
|
-
# * A restriction has the form of
|
3382
|
+
# * A restriction has the form of ``field` `operator` `value``.
|
1620
3383
|
# * Supported fields/values for inspect jobs:
|
1621
3384
|
# - `status` - HEALTHY|PAUSED|CANCELLED
|
1622
3385
|
# - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
@@ -1630,8 +3393,10 @@ module Google
|
|
1630
3393
|
# * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY)
|
1631
3394
|
# * last_run_time > \"2017-12-12T00:00:00+00:00\"
|
1632
3395
|
# The length of this field should be no more than 500 characters.
|
3396
|
+
# @param [String] location_id
|
3397
|
+
# Deprecated. This field has no effect.
|
1633
3398
|
# @param [String] order_by
|
1634
|
-
#
|
3399
|
+
# Comma separated list of triggeredJob fields to order by,
|
1635
3400
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
1636
3401
|
# default sorting order is ascending, redundant space characters are
|
1637
3402
|
# insignificant.
|
@@ -1644,9 +3409,9 @@ module Google
|
|
1644
3409
|
# - `display_name`: corresponds to JobTrigger's display name.
|
1645
3410
|
# - `status`: corresponds to JobTrigger's status.
|
1646
3411
|
# @param [Fixnum] page_size
|
1647
|
-
#
|
3412
|
+
# Size of the page, can be limited by a server.
|
1648
3413
|
# @param [String] page_token
|
1649
|
-
#
|
3414
|
+
# Page token to continue retrieval. Comes from previous call
|
1650
3415
|
# to ListJobTriggers. `order_by` field must not
|
1651
3416
|
# change for subsequent calls.
|
1652
3417
|
# @param [String] fields
|
@@ -1666,12 +3431,13 @@ module Google
|
|
1666
3431
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1667
3432
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1668
3433
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1669
|
-
def
|
3434
|
+
def list_project_location_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)
|
1670
3435
|
command = make_simple_command(:get, 'v2/{+parent}/jobTriggers', options)
|
1671
3436
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse::Representation
|
1672
3437
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse
|
1673
3438
|
command.params['parent'] = parent unless parent.nil?
|
1674
3439
|
command.query['filter'] = filter unless filter.nil?
|
3440
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
1675
3441
|
command.query['orderBy'] = order_by unless order_by.nil?
|
1676
3442
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1677
3443
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -1683,7 +3449,7 @@ module Google
|
|
1683
3449
|
# Updates a job trigger.
|
1684
3450
|
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
1685
3451
|
# @param [String] name
|
1686
|
-
# Resource name of the project and the triggeredJob, for example
|
3452
|
+
# Required. Resource name of the project and the triggeredJob, for example
|
1687
3453
|
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1688
3454
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest] google_privacy_dlp_v2_update_job_trigger_request_object
|
1689
3455
|
# @param [String] fields
|
@@ -1703,7 +3469,7 @@ module Google
|
|
1703
3469
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1704
3470
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1705
3471
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1706
|
-
def
|
3472
|
+
def patch_project_location_job_trigger(name, google_privacy_dlp_v2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1707
3473
|
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1708
3474
|
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest::Representation
|
1709
3475
|
command.request_object = google_privacy_dlp_v2_update_job_trigger_request_object
|
@@ -1715,19 +3481,13 @@ module Google
|
|
1715
3481
|
execute_or_queue_command(command, &block)
|
1716
3482
|
end
|
1717
3483
|
|
1718
|
-
#
|
1719
|
-
#
|
1720
|
-
# See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
|
3484
|
+
# Creates a pre-built stored infoType to be used for inspection.
|
3485
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
1721
3486
|
# learn more.
|
1722
|
-
# When no InfoTypes or CustomInfoTypes are specified in this request, the
|
1723
|
-
# system will automatically choose what detectors to run. By default this may
|
1724
|
-
# be all types, but may change over time as detectors are updated.
|
1725
3487
|
# @param [String] parent
|
1726
|
-
# The parent resource name, for example projects/my-project-id
|
1727
|
-
#
|
1728
|
-
#
|
1729
|
-
# extensions.
|
1730
|
-
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object
|
3488
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
3489
|
+
# organizations/my-org-id.
|
3490
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
|
1731
3491
|
# @param [String] fields
|
1732
3492
|
# Selector specifying which fields to include in a partial response.
|
1733
3493
|
# @param [String] quota_user
|
@@ -1737,40 +3497,34 @@ module Google
|
|
1737
3497
|
# Request-specific options
|
1738
3498
|
#
|
1739
3499
|
# @yield [result, err] Result & error if block supplied
|
1740
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
3500
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
1741
3501
|
# @yieldparam err [StandardError] error object if request failed
|
1742
3502
|
#
|
1743
|
-
# @return [Google::Apis::DlpV2::
|
3503
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
1744
3504
|
#
|
1745
3505
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1746
3506
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1747
3507
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1748
|
-
def
|
1749
|
-
command = make_simple_command(:post, 'v2/{+parent}/
|
1750
|
-
command.request_representation = Google::Apis::DlpV2::
|
1751
|
-
command.request_object =
|
1752
|
-
command.response_representation = Google::Apis::DlpV2::
|
1753
|
-
command.response_class = Google::Apis::DlpV2::
|
3508
|
+
def create_project_location_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3509
|
+
command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', options)
|
3510
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation
|
3511
|
+
command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object
|
3512
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
3513
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
1754
3514
|
command.params['parent'] = parent unless parent.nil?
|
1755
|
-
command.params['location'] = location unless location.nil?
|
1756
3515
|
command.query['fields'] = fields unless fields.nil?
|
1757
3516
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1758
3517
|
execute_or_queue_command(command, &block)
|
1759
3518
|
end
|
1760
3519
|
|
1761
|
-
#
|
1762
|
-
#
|
1763
|
-
#
|
1764
|
-
#
|
1765
|
-
#
|
1766
|
-
#
|
1767
|
-
#
|
1768
|
-
#
|
1769
|
-
# The parent resource name, for example projects/my-project-id.
|
1770
|
-
# @param [String] location
|
1771
|
-
# The geographic location to process content inspection. Reserved for future
|
1772
|
-
# extensions.
|
1773
|
-
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
|
3520
|
+
# Deletes a stored infoType.
|
3521
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
3522
|
+
# learn more.
|
3523
|
+
# @param [String] name
|
3524
|
+
# Required. Resource name of the organization and storedInfoType to be deleted,
|
3525
|
+
# for
|
3526
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
3527
|
+
# projects/project-id/storedInfoTypes/432452342.
|
1774
3528
|
# @param [String] fields
|
1775
3529
|
# Selector specifying which fields to include in a partial response.
|
1776
3530
|
# @param [String] quota_user
|
@@ -1780,38 +3534,84 @@ module Google
|
|
1780
3534
|
# Request-specific options
|
1781
3535
|
#
|
1782
3536
|
# @yield [result, err] Result & error if block supplied
|
1783
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
3537
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
1784
3538
|
# @yieldparam err [StandardError] error object if request failed
|
1785
3539
|
#
|
1786
|
-
# @return [Google::Apis::DlpV2::
|
3540
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
1787
3541
|
#
|
1788
3542
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1789
3543
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1790
3544
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1791
|
-
def
|
1792
|
-
command = make_simple_command(:
|
1793
|
-
command.
|
1794
|
-
command.
|
1795
|
-
command.
|
1796
|
-
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse
|
1797
|
-
command.params['parent'] = parent unless parent.nil?
|
1798
|
-
command.params['location'] = location unless location.nil?
|
3545
|
+
def delete_project_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
3546
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
3547
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
3548
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
3549
|
+
command.params['name'] = name unless name.nil?
|
1799
3550
|
command.query['fields'] = fields unless fields.nil?
|
1800
3551
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1801
3552
|
execute_or_queue_command(command, &block)
|
1802
3553
|
end
|
1803
3554
|
|
1804
|
-
#
|
1805
|
-
# See
|
1806
|
-
#
|
1807
|
-
#
|
1808
|
-
# to
|
3555
|
+
# Gets a stored infoType.
|
3556
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
3557
|
+
# learn more.
|
3558
|
+
# @param [String] name
|
3559
|
+
# Required. Resource name of the organization and storedInfoType to be read, for
|
3560
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
3561
|
+
# projects/project-id/storedInfoTypes/432452342.
|
3562
|
+
# @param [String] fields
|
3563
|
+
# Selector specifying which fields to include in a partial response.
|
3564
|
+
# @param [String] quota_user
|
3565
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3566
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3567
|
+
# @param [Google::Apis::RequestOptions] options
|
3568
|
+
# Request-specific options
|
3569
|
+
#
|
3570
|
+
# @yield [result, err] Result & error if block supplied
|
3571
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
3572
|
+
# @yieldparam err [StandardError] error object if request failed
|
3573
|
+
#
|
3574
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
3575
|
+
#
|
3576
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3577
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3578
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3579
|
+
def get_project_location_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
3580
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
3581
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
3582
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
3583
|
+
command.params['name'] = name unless name.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
|
+
# Lists stored infoTypes.
|
3590
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
3591
|
+
# learn more.
|
1809
3592
|
# @param [String] parent
|
1810
|
-
# The parent resource name
|
1811
|
-
#
|
1812
|
-
#
|
1813
|
-
#
|
1814
|
-
# @param [
|
3593
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
3594
|
+
# organizations/my-org-id.
|
3595
|
+
# @param [String] location_id
|
3596
|
+
# Deprecated. This field has no effect.
|
3597
|
+
# @param [String] order_by
|
3598
|
+
# Comma separated list of fields to order by,
|
3599
|
+
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
3600
|
+
# default sorting order is ascending, redundant space characters are
|
3601
|
+
# insignificant.
|
3602
|
+
# Example: `name asc, display_name, create_time desc`
|
3603
|
+
# Supported fields are:
|
3604
|
+
# - `create_time`: corresponds to time the most recent version of the
|
3605
|
+
# resource was created.
|
3606
|
+
# - `state`: corresponds to the state of the resource.
|
3607
|
+
# - `name`: corresponds to resource name.
|
3608
|
+
# - `display_name`: corresponds to info type's display name.
|
3609
|
+
# @param [Fixnum] page_size
|
3610
|
+
# Size of the page, can be limited by server. If zero server returns
|
3611
|
+
# a page of max size 100.
|
3612
|
+
# @param [String] page_token
|
3613
|
+
# Page token to continue retrieval. Comes from previous call
|
3614
|
+
# to `ListStoredInfoTypes`.
|
1815
3615
|
# @param [String] fields
|
1816
3616
|
# Selector specifying which fields to include in a partial response.
|
1817
3617
|
# @param [String] quota_user
|
@@ -1821,22 +3621,61 @@ module Google
|
|
1821
3621
|
# Request-specific options
|
1822
3622
|
#
|
1823
3623
|
# @yield [result, err] Result & error if block supplied
|
1824
|
-
# @yieldparam result [Google::Apis::DlpV2::
|
3624
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse] parsed result object
|
1825
3625
|
# @yieldparam err [StandardError] error object if request failed
|
1826
3626
|
#
|
1827
|
-
# @return [Google::Apis::DlpV2::
|
3627
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse]
|
1828
3628
|
#
|
1829
3629
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1830
3630
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1831
3631
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1832
|
-
def
|
1833
|
-
command = make_simple_command(:
|
1834
|
-
command.
|
1835
|
-
command.
|
1836
|
-
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse::Representation
|
1837
|
-
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse
|
3632
|
+
def list_project_location_stored_info_types(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3633
|
+
command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', options)
|
3634
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
|
3635
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
|
1838
3636
|
command.params['parent'] = parent unless parent.nil?
|
1839
|
-
command.
|
3637
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
3638
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
3639
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3640
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3641
|
+
command.query['fields'] = fields unless fields.nil?
|
3642
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3643
|
+
execute_or_queue_command(command, &block)
|
3644
|
+
end
|
3645
|
+
|
3646
|
+
# Updates the stored infoType by creating a new version. The existing version
|
3647
|
+
# will continue to be used until the new version is ready.
|
3648
|
+
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
3649
|
+
# learn more.
|
3650
|
+
# @param [String] name
|
3651
|
+
# Required. Resource name of organization and storedInfoType to be updated, for
|
3652
|
+
# example `organizations/433245324/storedInfoTypes/432452342` or
|
3653
|
+
# projects/project-id/storedInfoTypes/432452342.
|
3654
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_request_object
|
3655
|
+
# @param [String] fields
|
3656
|
+
# Selector specifying which fields to include in a partial response.
|
3657
|
+
# @param [String] quota_user
|
3658
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3659
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3660
|
+
# @param [Google::Apis::RequestOptions] options
|
3661
|
+
# Request-specific options
|
3662
|
+
#
|
3663
|
+
# @yield [result, err] Result & error if block supplied
|
3664
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType] parsed result object
|
3665
|
+
# @yieldparam err [StandardError] error object if request failed
|
3666
|
+
#
|
3667
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType]
|
3668
|
+
#
|
3669
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3670
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3671
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3672
|
+
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)
|
3673
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
3674
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest::Representation
|
3675
|
+
command.request_object = google_privacy_dlp_v2_update_stored_info_type_request_object
|
3676
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
|
3677
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
|
3678
|
+
command.params['name'] = name unless name.nil?
|
1840
3679
|
command.query['fields'] = fields unless fields.nil?
|
1841
3680
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1842
3681
|
execute_or_queue_command(command, &block)
|
@@ -1846,7 +3685,7 @@ module Google
|
|
1846
3685
|
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
1847
3686
|
# learn more.
|
1848
3687
|
# @param [String] parent
|
1849
|
-
# The parent resource name, for example projects/my-project-id or
|
3688
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
1850
3689
|
# organizations/my-org-id.
|
1851
3690
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
|
1852
3691
|
# @param [String] fields
|
@@ -1882,7 +3721,8 @@ module Google
|
|
1882
3721
|
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
1883
3722
|
# learn more.
|
1884
3723
|
# @param [String] name
|
1885
|
-
# Resource name of the organization and storedInfoType to be deleted,
|
3724
|
+
# Required. Resource name of the organization and storedInfoType to be deleted,
|
3725
|
+
# for
|
1886
3726
|
# example `organizations/433245324/storedInfoTypes/432452342` or
|
1887
3727
|
# projects/project-id/storedInfoTypes/432452342.
|
1888
3728
|
# @param [String] fields
|
@@ -1916,7 +3756,7 @@ module Google
|
|
1916
3756
|
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
1917
3757
|
# learn more.
|
1918
3758
|
# @param [String] name
|
1919
|
-
# Resource name of the organization and storedInfoType to be read, for
|
3759
|
+
# Required. Resource name of the organization and storedInfoType to be read, for
|
1920
3760
|
# example `organizations/433245324/storedInfoTypes/432452342` or
|
1921
3761
|
# projects/project-id/storedInfoTypes/432452342.
|
1922
3762
|
# @param [String] fields
|
@@ -1950,10 +3790,12 @@ module Google
|
|
1950
3790
|
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
1951
3791
|
# learn more.
|
1952
3792
|
# @param [String] parent
|
1953
|
-
# The parent resource name, for example projects/my-project-id or
|
3793
|
+
# Required. The parent resource name, for example projects/my-project-id or
|
1954
3794
|
# organizations/my-org-id.
|
3795
|
+
# @param [String] location_id
|
3796
|
+
# Deprecated. This field has no effect.
|
1955
3797
|
# @param [String] order_by
|
1956
|
-
#
|
3798
|
+
# Comma separated list of fields to order by,
|
1957
3799
|
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
1958
3800
|
# default sorting order is ascending, redundant space characters are
|
1959
3801
|
# insignificant.
|
@@ -1965,10 +3807,10 @@ module Google
|
|
1965
3807
|
# - `name`: corresponds to resource name.
|
1966
3808
|
# - `display_name`: corresponds to info type's display name.
|
1967
3809
|
# @param [Fixnum] page_size
|
1968
|
-
#
|
3810
|
+
# Size of the page, can be limited by server. If zero server returns
|
1969
3811
|
# a page of max size 100.
|
1970
3812
|
# @param [String] page_token
|
1971
|
-
#
|
3813
|
+
# Page token to continue retrieval. Comes from previous call
|
1972
3814
|
# to `ListStoredInfoTypes`.
|
1973
3815
|
# @param [String] fields
|
1974
3816
|
# Selector specifying which fields to include in a partial response.
|
@@ -1987,11 +3829,12 @@ module Google
|
|
1987
3829
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1988
3830
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1989
3831
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1990
|
-
def list_project_stored_info_types(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3832
|
+
def list_project_stored_info_types(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1991
3833
|
command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', options)
|
1992
3834
|
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
|
1993
3835
|
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
|
1994
3836
|
command.params['parent'] = parent unless parent.nil?
|
3837
|
+
command.query['locationId'] = location_id unless location_id.nil?
|
1995
3838
|
command.query['orderBy'] = order_by unless order_by.nil?
|
1996
3839
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1997
3840
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -2005,7 +3848,7 @@ module Google
|
|
2005
3848
|
# See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
2006
3849
|
# learn more.
|
2007
3850
|
# @param [String] name
|
2008
|
-
# Resource name of organization and storedInfoType to be updated, for
|
3851
|
+
# Required. Resource name of organization and storedInfoType to be updated, for
|
2009
3852
|
# example `organizations/433245324/storedInfoTypes/432452342` or
|
2010
3853
|
# projects/project-id/storedInfoTypes/432452342.
|
2011
3854
|
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest] google_privacy_dlp_v2_update_stored_info_type_request_object
|