google-api-client 0.20.1 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +140 -0
- data/README.md +3 -12
- data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +11 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +24 -40
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +66 -110
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +117 -195
- data/generated/google/apis/adexchangeseller_v1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1/service.rb +36 -60
- data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +54 -90
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +45 -75
- data/generated/google/apis/adexperiencereport_v1.rb +2 -2
- data/generated/google/apis/adexperiencereport_v1/classes.rb +1 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/admin_datatransfer_v1/service.rb +18 -30
- data/generated/google/apis/admin_directory_v1.rb +3 -3
- data/generated/google/apis/admin_directory_v1/classes.rb +18 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +3 -0
- data/generated/google/apis/admin_directory_v1/service.rb +363 -577
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +21 -35
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/service.rb +117 -195
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +81 -135
- data/generated/google/apis/analytics_v2_4.rb +1 -1
- data/generated/google/apis/analytics_v2_4/service.rb +21 -35
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +32 -60
- data/generated/google/apis/analytics_v3/representations.rb +8 -12
- data/generated/google/apis/analytics_v3/service.rb +261 -435
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -12
- data/generated/google/apis/androidenterprise_v1/service.rb +254 -425
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +38 -6
- data/generated/google/apis/androidmanagement_v1/representations.rb +18 -0
- data/generated/google/apis/androidpublisher_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1/service.rb +9 -15
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1/service.rb +12 -20
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +102 -1
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +255 -286
- data/generated/google/apis/androidpublisher_v3.rb +34 -0
- data/generated/google/apis/androidpublisher_v3/classes.rb +1899 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +882 -0
- data/generated/google/apis/androidpublisher_v3/service.rb +2208 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +6 -10
- data/generated/google/apis/appsmarket_v2/service.rb +12 -20
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +18 -30
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +67 -9
- data/generated/google/apis/bigquery_v2/representations.rb +22 -0
- data/generated/google/apis/bigquery_v2/service.rb +69 -115
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +1 -2
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +2 -2
- data/generated/google/apis/blogger_v2/service.rb +30 -50
- data/generated/google/apis/blogger_v3/service.rb +102 -170
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/service.rb +156 -260
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +114 -190
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +6 -0
- data/generated/google/apis/chat_v1/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +18 -30
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +0 -69
- data/generated/google/apis/classroom_v1/representations.rb +0 -31
- data/generated/google/apis/classroom_v1/service.rb +0 -88
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +0 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +2 -1
- data/generated/google/apis/cloudfunctions_v1.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1beta2.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +14 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +2 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +3 -4
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +29 -7
- data/generated/google/apis/cloudiot_v1/service.rb +398 -1
- data/generated/google/apis/cloudkms_v1.rb +2 -2
- data/generated/google/apis/cloudkms_v1/classes.rb +29 -7
- data/generated/google/apis/cloudkms_v1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +30 -8
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -3
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +29 -7
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +29 -7
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +29 -7
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +39 -10
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +9 -11
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
- data/generated/google/apis/{dlp_v2beta1.rb → composer_v1beta1.rb} +9 -11
- data/generated/google/apis/composer_v1beta1/classes.rb +643 -0
- data/generated/google/apis/composer_v1beta1/representations.rb +195 -0
- data/generated/google/apis/composer_v1beta1/service.rb +462 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +3939 -2239
- data/generated/google/apis/compute_alpha/representations.rb +1063 -335
- data/generated/google/apis/compute_alpha/service.rb +3532 -3368
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +150 -53
- data/generated/google/apis/compute_beta/representations.rb +23 -0
- data/generated/google/apis/compute_beta/service.rb +1269 -2077
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +46 -43
- data/generated/google/apis/compute_v1/service.rb +1022 -1666
- data/generated/google/apis/container_v1.rb +2 -2
- data/generated/google/apis/container_v1/classes.rb +20 -15
- data/generated/google/apis/container_v1/representations.rb +1 -0
- data/generated/google/apis/container_v1/service.rb +33 -31
- data/generated/google/apis/container_v1beta1.rb +2 -2
- data/generated/google/apis/container_v1beta1/classes.rb +186 -14
- data/generated/google/apis/container_v1beta1/representations.rb +77 -0
- data/generated/google/apis/container_v1beta1/service.rb +111 -31
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +173 -8
- data/generated/google/apis/content_v2/representations.rb +71 -0
- data/generated/google/apis/content_v2/service.rb +246 -410
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +75 -8
- data/generated/google/apis/content_v2sandbox/representations.rb +33 -0
- data/generated/google/apis/content_v2sandbox/service.rb +63 -105
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +9 -15
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +15 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +6 -6
- data/generated/google/apis/dataproc_v1/service.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2.rb +2 -2
- data/generated/google/apis/dataproc_v1beta2/classes.rb +48 -13
- data/generated/google/apis/dataproc_v1beta2/representations.rb +12 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +1 -1
- data/generated/google/apis/datastore_v1.rb +2 -2
- data/generated/google/apis/datastore_v1/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta1.rb +2 -2
- data/generated/google/apis/datastore_v1beta1/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +2 -2
- data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +118 -194
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +61 -99
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +103 -169
- data/generated/google/apis/dfareporting_v2_8/service.rb +618 -1030
- data/generated/google/apis/dfareporting_v3_0/service.rb +615 -1025
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +94 -24
- data/generated/google/apis/dialogflow_v2/representations.rb +13 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +94 -24
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +13 -0
- data/generated/google/apis/discovery_v1/service.rb +9 -15
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +116 -1572
- data/generated/google/apis/dlp_v2/representations.rb +673 -1405
- data/generated/google/apis/dlp_v2/service.rb +24 -24
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +7 -0
- data/generated/google/apis/dns_v1/representations.rb +1 -0
- data/generated/google/apis/dns_v1/service.rb +49 -81
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +7 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
- data/generated/google/apis/dns_v1beta2/service.rb +49 -81
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +7 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +1 -0
- data/generated/google/apis/dns_v2beta1/service.rb +49 -81
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +30 -50
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/service.rb +33 -55
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +205 -341
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +120 -200
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +2 -2
- data/generated/google/apis/firestore_v1beta1/service.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +45 -75
- data/generated/google/apis/fusiontables_v1.rb +1 -1
- data/generated/google/apis/fusiontables_v1/service.rb +99 -165
- data/generated/google/apis/fusiontables_v2/service.rb +105 -175
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +42 -70
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/service.rb +84 -140
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +162 -270
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +41 -7
- data/generated/google/apis/genomics_v1/representations.rb +1 -0
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +12 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +70 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +20 -0
- data/generated/google/apis/gmail_v1/service.rb +189 -315
- data/generated/google/apis/groupsmigration_v1/service.rb +6 -10
- data/generated/google/apis/groupssettings_v1/service.rb +12 -20
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +29 -7
- data/generated/google/apis/iam_v1/service.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/service.rb +63 -105
- data/generated/google/apis/jobs_v2.rb +38 -0
- data/generated/google/apis/jobs_v2/classes.rb +3378 -0
- data/generated/google/apis/jobs_v2/representations.rb +1067 -0
- data/generated/google/apis/jobs_v2/service.rb +754 -0
- data/generated/google/apis/licensing_v1/service.rb +24 -40
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +55 -5
- data/generated/google/apis/logging_v2/representations.rb +16 -0
- data/generated/google/apis/logging_v2/service.rb +6 -4
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +55 -5
- data/generated/google/apis/logging_v2beta1/representations.rb +16 -0
- data/generated/google/apis/logging_v2beta1/service.rb +6 -4
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +75 -125
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +65 -28
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1/service.rb +2 -2
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v1/service.rb +27 -45
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +15 -25
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +6 -0
- data/generated/google/apis/oslogin_v1/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +7 -1
- data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +4 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +6 -0
- data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
- data/generated/google/apis/pagespeedonline_v1.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1/service.rb +6 -10
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/service.rb +6 -10
- data/generated/google/apis/pagespeedonline_v4/service.rb +6 -10
- data/generated/google/apis/photoslibrary_v1.rb +49 -0
- data/generated/google/apis/photoslibrary_v1/classes.rb +1330 -0
- data/generated/google/apis/photoslibrary_v1/representations.rb +625 -0
- data/generated/google/apis/photoslibrary_v1/service.rb +399 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +6 -10
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +63 -105
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +30 -50
- data/generated/google/apis/pubsub_v1.rb +2 -2
- data/generated/google/apis/pubsub_v1/classes.rb +29 -7
- data/generated/google/apis/pubsub_v1/service.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a.rb +2 -2
- data/generated/google/apis/pubsub_v1beta1a/service.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2.rb +2 -2
- data/generated/google/apis/pubsub_v1beta2/classes.rb +29 -7
- data/generated/google/apis/pubsub_v1beta2/service.rb +1 -1
- data/generated/google/apis/{dlp_v2beta2.rb → redis_v1beta1.rb} +10 -11
- data/generated/google/apis/redis_v1beta1/classes.rb +681 -0
- data/generated/google/apis/redis_v1beta1/representations.rb +240 -0
- data/generated/google/apis/redis_v1beta1/service.rb +426 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +33 -55
- data/generated/google/apis/replicapool_v1beta2/service.rb +39 -65
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +33 -55
- data/generated/google/apis/reseller_v1/service.rb +54 -90
- data/generated/google/apis/resourceviews_v1beta1/service.rb +45 -75
- data/generated/google/apis/resourceviews_v1beta2/service.rb +36 -60
- data/generated/google/apis/runtimeconfig_v1.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +28 -6
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
- data/generated/google/apis/script_v1.rb +8 -2
- data/generated/google/apis/script_v1/classes.rb +3 -3
- data/generated/google/apis/script_v1/service.rb +8 -2
- data/generated/google/apis/servicebroker_v1.rb +36 -0
- data/generated/google/apis/servicebroker_v1/classes.rb +240 -0
- data/generated/google/apis/servicebroker_v1/representations.rb +96 -0
- data/generated/google/apis/servicebroker_v1/service.rb +168 -0
- data/generated/google/apis/servicebroker_v1alpha1.rb +36 -0
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +939 -0
- data/generated/google/apis/servicebroker_v1alpha1/representations.rb +348 -0
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +728 -0
- data/generated/google/apis/servicebroker_v1beta1.rb +36 -0
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +1046 -0
- data/generated/google/apis/servicebroker_v1beta1/representations.rb +393 -0
- data/generated/google/apis/servicebroker_v1beta1/service.rb +917 -0
- data/generated/google/apis/servicecontrol_v1.rb +2 -2
- data/generated/google/apis/servicecontrol_v1/classes.rb +1 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +2 -2
- data/generated/google/apis/servicemanagement_v1/classes.rb +29 -7
- data/generated/google/apis/servicemanagement_v1/service.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +299 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +101 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +421 -0
- data/generated/google/apis/sheets_v4/representations.rb +120 -0
- data/generated/google/apis/site_verification_v1/service.rb +24 -40
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +6 -2
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +39 -12
- data/generated/google/apis/spanner_v1/service.rb +2 -2
- data/generated/google/apis/spectrum_v1explorer.rb +1 -1
- data/generated/google/apis/spectrum_v1explorer/service.rb +21 -35
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +12 -0
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/sqladmin_v1beta3.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta3/service.rb +75 -125
- data/generated/google/apis/sqladmin_v1beta4/service.rb +126 -210
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +3 -6
- data/generated/google/apis/storage_v1/service.rb +144 -240
- data/generated/google/apis/storage_v1beta1.rb +1 -1
- data/generated/google/apis/storage_v1beta1/service.rb +75 -125
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/storage_v1beta2/service.rb +105 -175
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +4 -3
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +19 -122
- data/generated/google/apis/surveys_v2/representations.rb +0 -38
- data/generated/google/apis/surveys_v2/service.rb +27 -157
- data/generated/google/apis/tagmanager_v1/service.rb +153 -255
- data/generated/google/apis/tagmanager_v2/service.rb +222 -370
- data/generated/google/apis/tasks_v1/service.rb +45 -75
- data/generated/google/apis/texttospeech_v1beta1.rb +2 -2
- data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/service.rb +75 -125
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/urlshortener_v1/service.rb +12 -20
- data/generated/google/apis/vault_v1.rb +2 -2
- data/generated/google/apis/vault_v1/service.rb +1 -1
- data/generated/google/apis/videointelligence_v1.rb +34 -0
- data/generated/google/apis/videointelligence_v1/classes.rb +2149 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +972 -0
- data/generated/google/apis/videointelligence_v1/service.rb +246 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +18 -18
- data/generated/google/apis/{taskqueue_v1beta2.rb → videointelligence_v1beta2.rb} +10 -13
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +2092 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +933 -0
- data/generated/google/apis/videointelligence_v1beta2/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1441 -62
- data/generated/google/apis/vision_v1/representations.rb +582 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1441 -62
- data/generated/google/apis/vision_v1p1beta1/representations.rb +582 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +63 -3
- data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
- data/generated/google/apis/webfonts_v1/service.rb +6 -10
- data/generated/google/apis/webmasters_v3/service.rb +42 -70
- data/generated/google/apis/websecurityscanner_v1alpha.rb +34 -0
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +760 -0
- data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +354 -0
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +548 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +27 -45
- data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +27 -45
- data/generated/google/apis/youtube_analytics_v2.rb +46 -0
- data/generated/google/apis/youtube_analytics_v2/classes.rb +532 -0
- data/generated/google/apis/youtube_analytics_v2/representations.rb +232 -0
- data/generated/google/apis/youtube_analytics_v2/service.rb +478 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +225 -375
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -168
- data/generated/google/apis/youtube_v3/representations.rb +0 -62
- data/generated/google/apis/youtube_v3/service.rb +216 -415
- data/lib/google/apis/generator/helpers.rb +3 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +50 -38
- data/generated/google/apis/dlp_v2beta1/classes.rb +0 -3820
- data/generated/google/apis/dlp_v2beta1/representations.rb +0 -1879
- data/generated/google/apis/dlp_v2beta1/service.rb +0 -603
- data/generated/google/apis/dlp_v2beta2/classes.rb +0 -6386
- data/generated/google/apis/dlp_v2beta2/representations.rb +0 -3085
- data/generated/google/apis/dlp_v2beta2/service.rb +0 -1332
- data/generated/google/apis/prediction_v1_2.rb +0 -44
- data/generated/google/apis/prediction_v1_2/classes.rb +0 -237
- data/generated/google/apis/prediction_v1_2/representations.rb +0 -133
- data/generated/google/apis/prediction_v1_2/service.rb +0 -287
- data/generated/google/apis/prediction_v1_3.rb +0 -44
- data/generated/google/apis/prediction_v1_3/classes.rb +0 -286
- data/generated/google/apis/prediction_v1_3/representations.rb +0 -139
- data/generated/google/apis/prediction_v1_3/service.rb +0 -284
- data/generated/google/apis/prediction_v1_4.rb +0 -44
- data/generated/google/apis/prediction_v1_4/classes.rb +0 -336
- data/generated/google/apis/prediction_v1_4/representations.rb +0 -158
- data/generated/google/apis/prediction_v1_4/service.rb +0 -284
- data/generated/google/apis/prediction_v1_5.rb +0 -44
- data/generated/google/apis/prediction_v1_5/classes.rb +0 -708
- data/generated/google/apis/prediction_v1_5/representations.rb +0 -352
- data/generated/google/apis/prediction_v1_5/service.rb +0 -357
- data/generated/google/apis/prediction_v1_6.rb +0 -47
- data/generated/google/apis/prediction_v1_6/classes.rb +0 -751
- data/generated/google/apis/prediction_v1_6/representations.rb +0 -369
- data/generated/google/apis/prediction_v1_6/service.rb +0 -381
- data/generated/google/apis/taskqueue_v1beta1.rb +0 -37
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +0 -242
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +0 -124
- data/generated/google/apis/taskqueue_v1beta1/service.rb +0 -269
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +0 -254
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +0 -126
- data/generated/google/apis/taskqueue_v1beta2/service.rb +0 -409
@@ -1,1332 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'google/apis/core/base_service'
|
16
|
-
require 'google/apis/core/json_representation'
|
17
|
-
require 'google/apis/core/hashable'
|
18
|
-
require 'google/apis/errors'
|
19
|
-
|
20
|
-
module Google
|
21
|
-
module Apis
|
22
|
-
module DlpV2beta2
|
23
|
-
# Cloud Data Loss Prevention (DLP) API
|
24
|
-
#
|
25
|
-
# Provides methods for detection, risk analysis, and de-identification of
|
26
|
-
# privacy-sensitive fragments in text, images, and Google Cloud Platform storage
|
27
|
-
# repositories.
|
28
|
-
#
|
29
|
-
# @example
|
30
|
-
# require 'google/apis/dlp_v2beta2'
|
31
|
-
#
|
32
|
-
# Dlp = Google::Apis::DlpV2beta2 # Alias the module
|
33
|
-
# service = Dlp::DLPService.new
|
34
|
-
#
|
35
|
-
# @see https://cloud.google.com/dlp/docs/
|
36
|
-
class DLPService < Google::Apis::Core::BaseService
|
37
|
-
# @return [String]
|
38
|
-
# API key. Your API key identifies your project and provides you with API access,
|
39
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
40
|
-
attr_accessor :key
|
41
|
-
|
42
|
-
# @return [String]
|
43
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
44
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
45
|
-
attr_accessor :quota_user
|
46
|
-
|
47
|
-
def initialize
|
48
|
-
super('https://dlp.googleapis.com/', '')
|
49
|
-
@batch_path = 'batch'
|
50
|
-
end
|
51
|
-
|
52
|
-
# Returns sensitive information types DLP supports.
|
53
|
-
# @param [String] filter
|
54
|
-
# Optional filter to only return infoTypes supported by certain parts of the
|
55
|
-
# API. Defaults to supported_by=INSPECT.
|
56
|
-
# @param [String] language_code
|
57
|
-
# Optional BCP-47 language code for localized infoType friendly
|
58
|
-
# names. If omitted, or if localized strings are not available,
|
59
|
-
# en-US strings will be returned.
|
60
|
-
# @param [String] fields
|
61
|
-
# Selector specifying which fields to include in a partial response.
|
62
|
-
# @param [String] quota_user
|
63
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
64
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
65
|
-
# @param [Google::Apis::RequestOptions] options
|
66
|
-
# Request-specific options
|
67
|
-
#
|
68
|
-
# @yield [result, err] Result & error if block supplied
|
69
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInfoTypesResponse] parsed result object
|
70
|
-
# @yieldparam err [StandardError] error object if request failed
|
71
|
-
#
|
72
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInfoTypesResponse]
|
73
|
-
#
|
74
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
75
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
76
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
77
|
-
def list_info_types(filter: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
78
|
-
command = make_simple_command(:get, 'v2beta2/infoTypes', options)
|
79
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInfoTypesResponse::Representation
|
80
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInfoTypesResponse
|
81
|
-
command.query['filter'] = filter unless filter.nil?
|
82
|
-
command.query['languageCode'] = language_code unless language_code.nil?
|
83
|
-
command.query['fields'] = fields unless fields.nil?
|
84
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
85
|
-
execute_or_queue_command(command, &block)
|
86
|
-
end
|
87
|
-
|
88
|
-
# Creates an Deidentify template for re-using frequently used configuration
|
89
|
-
# for Deidentifying content, images, and storage.
|
90
|
-
# @param [String] parent
|
91
|
-
# The parent resource name, for example projects/my-project-id or
|
92
|
-
# organizations/my-org-id.
|
93
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2beta2_create_deidentify_template_request_object
|
94
|
-
# @param [String] fields
|
95
|
-
# Selector specifying which fields to include in a partial response.
|
96
|
-
# @param [String] quota_user
|
97
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
98
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
99
|
-
# @param [Google::Apis::RequestOptions] options
|
100
|
-
# Request-specific options
|
101
|
-
#
|
102
|
-
# @yield [result, err] Result & error if block supplied
|
103
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate] parsed result object
|
104
|
-
# @yieldparam err [StandardError] error object if request failed
|
105
|
-
#
|
106
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate]
|
107
|
-
#
|
108
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
109
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
110
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
111
|
-
def create_organization_deidentify_template(parent, google_privacy_dlp_v2beta2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
112
|
-
command = make_simple_command(:post, 'v2beta2/{+parent}/deidentifyTemplates', options)
|
113
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest::Representation
|
114
|
-
command.request_object = google_privacy_dlp_v2beta2_create_deidentify_template_request_object
|
115
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation
|
116
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
|
117
|
-
command.params['parent'] = parent unless parent.nil?
|
118
|
-
command.query['fields'] = fields unless fields.nil?
|
119
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
120
|
-
execute_or_queue_command(command, &block)
|
121
|
-
end
|
122
|
-
|
123
|
-
# Deletes inspect templates.
|
124
|
-
# @param [String] name
|
125
|
-
# Resource name of the organization and deidentify template to be deleted,
|
126
|
-
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
127
|
-
# projects/project-id/deidentifyTemplates/432452342.
|
128
|
-
# @param [String] fields
|
129
|
-
# Selector specifying which fields to include in a partial response.
|
130
|
-
# @param [String] quota_user
|
131
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
132
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
133
|
-
# @param [Google::Apis::RequestOptions] options
|
134
|
-
# Request-specific options
|
135
|
-
#
|
136
|
-
# @yield [result, err] Result & error if block supplied
|
137
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GoogleProtobufEmpty] parsed result object
|
138
|
-
# @yieldparam err [StandardError] error object if request failed
|
139
|
-
#
|
140
|
-
# @return [Google::Apis::DlpV2beta2::GoogleProtobufEmpty]
|
141
|
-
#
|
142
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
143
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
144
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
145
|
-
def delete_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
146
|
-
command = make_simple_command(:delete, 'v2beta2/{+name}', options)
|
147
|
-
command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation
|
148
|
-
command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty
|
149
|
-
command.params['name'] = name unless name.nil?
|
150
|
-
command.query['fields'] = fields unless fields.nil?
|
151
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
152
|
-
execute_or_queue_command(command, &block)
|
153
|
-
end
|
154
|
-
|
155
|
-
# Gets an inspect template.
|
156
|
-
# @param [String] name
|
157
|
-
# Resource name of the organization and deidentify template to be read, for
|
158
|
-
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
159
|
-
# projects/project-id/deidentifyTemplates/432452342.
|
160
|
-
# @param [String] fields
|
161
|
-
# Selector specifying which fields to include in a partial response.
|
162
|
-
# @param [String] quota_user
|
163
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
164
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
165
|
-
# @param [Google::Apis::RequestOptions] options
|
166
|
-
# Request-specific options
|
167
|
-
#
|
168
|
-
# @yield [result, err] Result & error if block supplied
|
169
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate] parsed result object
|
170
|
-
# @yieldparam err [StandardError] error object if request failed
|
171
|
-
#
|
172
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate]
|
173
|
-
#
|
174
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
175
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
176
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
177
|
-
def get_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
178
|
-
command = make_simple_command(:get, 'v2beta2/{+name}', options)
|
179
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation
|
180
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
|
181
|
-
command.params['name'] = name unless name.nil?
|
182
|
-
command.query['fields'] = fields unless fields.nil?
|
183
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
184
|
-
execute_or_queue_command(command, &block)
|
185
|
-
end
|
186
|
-
|
187
|
-
# Lists inspect templates.
|
188
|
-
# @param [String] parent
|
189
|
-
# The parent resource name, for example projects/my-project-id or
|
190
|
-
# organizations/my-org-id.
|
191
|
-
# @param [Fixnum] page_size
|
192
|
-
# Optional size of the page, can be limited by server. If zero server returns
|
193
|
-
# a page of max size 100.
|
194
|
-
# @param [String] page_token
|
195
|
-
# Optional page token to continue retrieval. Comes from previous call
|
196
|
-
# to `ListDeidentifyTemplates`.
|
197
|
-
# @param [String] fields
|
198
|
-
# Selector specifying which fields to include in a partial response.
|
199
|
-
# @param [String] quota_user
|
200
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
201
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
202
|
-
# @param [Google::Apis::RequestOptions] options
|
203
|
-
# Request-specific options
|
204
|
-
#
|
205
|
-
# @yield [result, err] Result & error if block supplied
|
206
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse] parsed result object
|
207
|
-
# @yieldparam err [StandardError] error object if request failed
|
208
|
-
#
|
209
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse]
|
210
|
-
#
|
211
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
212
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
213
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
214
|
-
def list_organization_deidentify_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
215
|
-
command = make_simple_command(:get, 'v2beta2/{+parent}/deidentifyTemplates', options)
|
216
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse::Representation
|
217
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse
|
218
|
-
command.params['parent'] = parent unless parent.nil?
|
219
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
220
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
221
|
-
command.query['fields'] = fields unless fields.nil?
|
222
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
223
|
-
execute_or_queue_command(command, &block)
|
224
|
-
end
|
225
|
-
|
226
|
-
# Updates the inspect template.
|
227
|
-
# @param [String] name
|
228
|
-
# Resource name of organization and deidentify template to be updated, for
|
229
|
-
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
230
|
-
# projects/project-id/deidentifyTemplates/432452342.
|
231
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2beta2_update_deidentify_template_request_object
|
232
|
-
# @param [String] fields
|
233
|
-
# Selector specifying which fields to include in a partial response.
|
234
|
-
# @param [String] quota_user
|
235
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
236
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
237
|
-
# @param [Google::Apis::RequestOptions] options
|
238
|
-
# Request-specific options
|
239
|
-
#
|
240
|
-
# @yield [result, err] Result & error if block supplied
|
241
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate] parsed result object
|
242
|
-
# @yieldparam err [StandardError] error object if request failed
|
243
|
-
#
|
244
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate]
|
245
|
-
#
|
246
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
247
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
248
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
249
|
-
def patch_organization_deidentify_template(name, google_privacy_dlp_v2beta2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
250
|
-
command = make_simple_command(:patch, 'v2beta2/{+name}', options)
|
251
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest::Representation
|
252
|
-
command.request_object = google_privacy_dlp_v2beta2_update_deidentify_template_request_object
|
253
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation
|
254
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
|
255
|
-
command.params['name'] = name unless name.nil?
|
256
|
-
command.query['fields'] = fields unless fields.nil?
|
257
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
258
|
-
execute_or_queue_command(command, &block)
|
259
|
-
end
|
260
|
-
|
261
|
-
# Creates an inspect template for re-using frequently used configuration
|
262
|
-
# for inspecting content, images, and storage.
|
263
|
-
# @param [String] parent
|
264
|
-
# The parent resource name, for example projects/my-project-id or
|
265
|
-
# organizations/my-org-id.
|
266
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateInspectTemplateRequest] google_privacy_dlp_v2beta2_create_inspect_template_request_object
|
267
|
-
# @param [String] fields
|
268
|
-
# Selector specifying which fields to include in a partial response.
|
269
|
-
# @param [String] quota_user
|
270
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
271
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
272
|
-
# @param [Google::Apis::RequestOptions] options
|
273
|
-
# Request-specific options
|
274
|
-
#
|
275
|
-
# @yield [result, err] Result & error if block supplied
|
276
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate] parsed result object
|
277
|
-
# @yieldparam err [StandardError] error object if request failed
|
278
|
-
#
|
279
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate]
|
280
|
-
#
|
281
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
282
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
283
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
284
|
-
def create_organization_inspect_template(parent, google_privacy_dlp_v2beta2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
285
|
-
command = make_simple_command(:post, 'v2beta2/{+parent}/inspectTemplates', options)
|
286
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateInspectTemplateRequest::Representation
|
287
|
-
command.request_object = google_privacy_dlp_v2beta2_create_inspect_template_request_object
|
288
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation
|
289
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
|
290
|
-
command.params['parent'] = parent unless parent.nil?
|
291
|
-
command.query['fields'] = fields unless fields.nil?
|
292
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
293
|
-
execute_or_queue_command(command, &block)
|
294
|
-
end
|
295
|
-
|
296
|
-
# Deletes inspect templates.
|
297
|
-
# @param [String] name
|
298
|
-
# Resource name of the organization and inspectTemplate to be deleted, for
|
299
|
-
# example `organizations/433245324/inspectTemplates/432452342` or
|
300
|
-
# projects/project-id/inspectTemplates/432452342.
|
301
|
-
# @param [String] fields
|
302
|
-
# Selector specifying which fields to include in a partial response.
|
303
|
-
# @param [String] quota_user
|
304
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
305
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
306
|
-
# @param [Google::Apis::RequestOptions] options
|
307
|
-
# Request-specific options
|
308
|
-
#
|
309
|
-
# @yield [result, err] Result & error if block supplied
|
310
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GoogleProtobufEmpty] parsed result object
|
311
|
-
# @yieldparam err [StandardError] error object if request failed
|
312
|
-
#
|
313
|
-
# @return [Google::Apis::DlpV2beta2::GoogleProtobufEmpty]
|
314
|
-
#
|
315
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
316
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
317
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
318
|
-
def delete_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
319
|
-
command = make_simple_command(:delete, 'v2beta2/{+name}', options)
|
320
|
-
command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation
|
321
|
-
command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty
|
322
|
-
command.params['name'] = name unless name.nil?
|
323
|
-
command.query['fields'] = fields unless fields.nil?
|
324
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
325
|
-
execute_or_queue_command(command, &block)
|
326
|
-
end
|
327
|
-
|
328
|
-
# Gets an inspect template.
|
329
|
-
# @param [String] name
|
330
|
-
# Resource name of the organization and inspectTemplate to be read, for
|
331
|
-
# example `organizations/433245324/inspectTemplates/432452342` or
|
332
|
-
# projects/project-id/inspectTemplates/432452342.
|
333
|
-
# @param [String] fields
|
334
|
-
# Selector specifying which fields to include in a partial response.
|
335
|
-
# @param [String] quota_user
|
336
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
337
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
338
|
-
# @param [Google::Apis::RequestOptions] options
|
339
|
-
# Request-specific options
|
340
|
-
#
|
341
|
-
# @yield [result, err] Result & error if block supplied
|
342
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate] parsed result object
|
343
|
-
# @yieldparam err [StandardError] error object if request failed
|
344
|
-
#
|
345
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate]
|
346
|
-
#
|
347
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
348
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
349
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
350
|
-
def get_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
351
|
-
command = make_simple_command(:get, 'v2beta2/{+name}', options)
|
352
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation
|
353
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
|
354
|
-
command.params['name'] = name unless name.nil?
|
355
|
-
command.query['fields'] = fields unless fields.nil?
|
356
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
357
|
-
execute_or_queue_command(command, &block)
|
358
|
-
end
|
359
|
-
|
360
|
-
# Lists inspect templates.
|
361
|
-
# @param [String] parent
|
362
|
-
# The parent resource name, for example projects/my-project-id or
|
363
|
-
# organizations/my-org-id.
|
364
|
-
# @param [Fixnum] page_size
|
365
|
-
# Optional size of the page, can be limited by server. If zero server returns
|
366
|
-
# a page of max size 100.
|
367
|
-
# @param [String] page_token
|
368
|
-
# Optional page token to continue retrieval. Comes from previous call
|
369
|
-
# to `ListInspectTemplates`.
|
370
|
-
# @param [String] fields
|
371
|
-
# Selector specifying which fields to include in a partial response.
|
372
|
-
# @param [String] quota_user
|
373
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
374
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
375
|
-
# @param [Google::Apis::RequestOptions] options
|
376
|
-
# Request-specific options
|
377
|
-
#
|
378
|
-
# @yield [result, err] Result & error if block supplied
|
379
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse] parsed result object
|
380
|
-
# @yieldparam err [StandardError] error object if request failed
|
381
|
-
#
|
382
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse]
|
383
|
-
#
|
384
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
385
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
386
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
387
|
-
def list_organization_inspect_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
388
|
-
command = make_simple_command(:get, 'v2beta2/{+parent}/inspectTemplates', options)
|
389
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse::Representation
|
390
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse
|
391
|
-
command.params['parent'] = parent unless parent.nil?
|
392
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
393
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
394
|
-
command.query['fields'] = fields unless fields.nil?
|
395
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
396
|
-
execute_or_queue_command(command, &block)
|
397
|
-
end
|
398
|
-
|
399
|
-
# Updates the inspect template.
|
400
|
-
# @param [String] name
|
401
|
-
# Resource name of organization and inspectTemplate to be updated, for
|
402
|
-
# example `organizations/433245324/inspectTemplates/432452342` or
|
403
|
-
# projects/project-id/inspectTemplates/432452342.
|
404
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest] google_privacy_dlp_v2beta2_update_inspect_template_request_object
|
405
|
-
# @param [String] fields
|
406
|
-
# Selector specifying which fields to include in a partial response.
|
407
|
-
# @param [String] quota_user
|
408
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
409
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
410
|
-
# @param [Google::Apis::RequestOptions] options
|
411
|
-
# Request-specific options
|
412
|
-
#
|
413
|
-
# @yield [result, err] Result & error if block supplied
|
414
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate] parsed result object
|
415
|
-
# @yieldparam err [StandardError] error object if request failed
|
416
|
-
#
|
417
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate]
|
418
|
-
#
|
419
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
420
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
421
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
422
|
-
def patch_organization_inspect_template(name, google_privacy_dlp_v2beta2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
423
|
-
command = make_simple_command(:patch, 'v2beta2/{+name}', options)
|
424
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest::Representation
|
425
|
-
command.request_object = google_privacy_dlp_v2beta2_update_inspect_template_request_object
|
426
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation
|
427
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
|
428
|
-
command.params['name'] = name unless name.nil?
|
429
|
-
command.query['fields'] = fields unless fields.nil?
|
430
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
431
|
-
execute_or_queue_command(command, &block)
|
432
|
-
end
|
433
|
-
|
434
|
-
# De-identifies potentially sensitive info from a ContentItem.
|
435
|
-
# This method has limits on input size and output size.
|
436
|
-
# [How-to guide](/dlp/docs/deidentify-sensitive-data)
|
437
|
-
# @param [String] parent
|
438
|
-
# The parent resource name, for example projects/my-project-id.
|
439
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentRequest] google_privacy_dlp_v2beta2_deidentify_content_request_object
|
440
|
-
# @param [String] fields
|
441
|
-
# Selector specifying which fields to include in a partial response.
|
442
|
-
# @param [String] quota_user
|
443
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
444
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
445
|
-
# @param [Google::Apis::RequestOptions] options
|
446
|
-
# Request-specific options
|
447
|
-
#
|
448
|
-
# @yield [result, err] Result & error if block supplied
|
449
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentResponse] parsed result object
|
450
|
-
# @yieldparam err [StandardError] error object if request failed
|
451
|
-
#
|
452
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentResponse]
|
453
|
-
#
|
454
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
455
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
456
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
457
|
-
def deidentify_project_content(parent, google_privacy_dlp_v2beta2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
458
|
-
command = make_simple_command(:post, 'v2beta2/{+parent}/content:deidentify', options)
|
459
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentRequest::Representation
|
460
|
-
command.request_object = google_privacy_dlp_v2beta2_deidentify_content_request_object
|
461
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentResponse::Representation
|
462
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentResponse
|
463
|
-
command.params['parent'] = parent unless parent.nil?
|
464
|
-
command.query['fields'] = fields unless fields.nil?
|
465
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
466
|
-
execute_or_queue_command(command, &block)
|
467
|
-
end
|
468
|
-
|
469
|
-
# Finds potentially sensitive info in content.
|
470
|
-
# This method has limits on input size, processing time, and output size.
|
471
|
-
# [How-to guide for text](/dlp/docs/inspecting-text), [How-to guide for
|
472
|
-
# images](/dlp/docs/inspecting-images)
|
473
|
-
# @param [String] parent
|
474
|
-
# The parent resource name, for example projects/my-project-id.
|
475
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentRequest] google_privacy_dlp_v2beta2_inspect_content_request_object
|
476
|
-
# @param [String] fields
|
477
|
-
# Selector specifying which fields to include in a partial response.
|
478
|
-
# @param [String] quota_user
|
479
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
480
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
481
|
-
# @param [Google::Apis::RequestOptions] options
|
482
|
-
# Request-specific options
|
483
|
-
#
|
484
|
-
# @yield [result, err] Result & error if block supplied
|
485
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentResponse] parsed result object
|
486
|
-
# @yieldparam err [StandardError] error object if request failed
|
487
|
-
#
|
488
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentResponse]
|
489
|
-
#
|
490
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
491
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
492
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
493
|
-
def inspect_project_content(parent, google_privacy_dlp_v2beta2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
494
|
-
command = make_simple_command(:post, 'v2beta2/{+parent}/content:inspect', options)
|
495
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentRequest::Representation
|
496
|
-
command.request_object = google_privacy_dlp_v2beta2_inspect_content_request_object
|
497
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentResponse::Representation
|
498
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentResponse
|
499
|
-
command.params['parent'] = parent unless parent.nil?
|
500
|
-
command.query['fields'] = fields unless fields.nil?
|
501
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
502
|
-
execute_or_queue_command(command, &block)
|
503
|
-
end
|
504
|
-
|
505
|
-
# Re-identify content that has been de-identified.
|
506
|
-
# @param [String] parent
|
507
|
-
# The parent resource name.
|
508
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentRequest] google_privacy_dlp_v2beta2_reidentify_content_request_object
|
509
|
-
# @param [String] fields
|
510
|
-
# Selector specifying which fields to include in a partial response.
|
511
|
-
# @param [String] quota_user
|
512
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
513
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
514
|
-
# @param [Google::Apis::RequestOptions] options
|
515
|
-
# Request-specific options
|
516
|
-
#
|
517
|
-
# @yield [result, err] Result & error if block supplied
|
518
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentResponse] parsed result object
|
519
|
-
# @yieldparam err [StandardError] error object if request failed
|
520
|
-
#
|
521
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentResponse]
|
522
|
-
#
|
523
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
524
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
525
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
526
|
-
def reidentify_project_content(parent, google_privacy_dlp_v2beta2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
527
|
-
command = make_simple_command(:post, 'v2beta2/{+parent}/content:reidentify', options)
|
528
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentRequest::Representation
|
529
|
-
command.request_object = google_privacy_dlp_v2beta2_reidentify_content_request_object
|
530
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentResponse::Representation
|
531
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentResponse
|
532
|
-
command.params['parent'] = parent unless parent.nil?
|
533
|
-
command.query['fields'] = fields unless fields.nil?
|
534
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
535
|
-
execute_or_queue_command(command, &block)
|
536
|
-
end
|
537
|
-
|
538
|
-
# Schedules a job to compute risk analysis metrics over content in a Google
|
539
|
-
# Cloud Platform repository. [How-to guide](/dlp/docs/compute-risk-analysis)
|
540
|
-
# @param [String] parent
|
541
|
-
# The parent resource name, for example projects/my-project-id.
|
542
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest] google_privacy_dlp_v2beta2_analyze_data_source_risk_request_object
|
543
|
-
# @param [String] fields
|
544
|
-
# Selector specifying which fields to include in a partial response.
|
545
|
-
# @param [String] quota_user
|
546
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
547
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
548
|
-
# @param [Google::Apis::RequestOptions] options
|
549
|
-
# Request-specific options
|
550
|
-
#
|
551
|
-
# @yield [result, err] Result & error if block supplied
|
552
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob] parsed result object
|
553
|
-
# @yieldparam err [StandardError] error object if request failed
|
554
|
-
#
|
555
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob]
|
556
|
-
#
|
557
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
558
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
559
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
560
|
-
def analyze_project_data_source(parent, google_privacy_dlp_v2beta2_analyze_data_source_risk_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
561
|
-
command = make_simple_command(:post, 'v2beta2/{+parent}/dataSource:analyze', options)
|
562
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest::Representation
|
563
|
-
command.request_object = google_privacy_dlp_v2beta2_analyze_data_source_risk_request_object
|
564
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob::Representation
|
565
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob
|
566
|
-
command.params['parent'] = parent unless parent.nil?
|
567
|
-
command.query['fields'] = fields unless fields.nil?
|
568
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
569
|
-
execute_or_queue_command(command, &block)
|
570
|
-
end
|
571
|
-
|
572
|
-
# Schedules a job scanning content in a Google Cloud Platform data
|
573
|
-
# repository. [How-to guide](/dlp/docs/inspecting-storage)
|
574
|
-
# @param [String] parent
|
575
|
-
# The parent resource name, for example projects/my-project-id.
|
576
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectDataSourceRequest] google_privacy_dlp_v2beta2_inspect_data_source_request_object
|
577
|
-
# @param [String] fields
|
578
|
-
# Selector specifying which fields to include in a partial response.
|
579
|
-
# @param [String] quota_user
|
580
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
581
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
582
|
-
# @param [Google::Apis::RequestOptions] options
|
583
|
-
# Request-specific options
|
584
|
-
#
|
585
|
-
# @yield [result, err] Result & error if block supplied
|
586
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob] parsed result object
|
587
|
-
# @yieldparam err [StandardError] error object if request failed
|
588
|
-
#
|
589
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob]
|
590
|
-
#
|
591
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
592
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
593
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
594
|
-
def inspect_project_data_source(parent, google_privacy_dlp_v2beta2_inspect_data_source_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
595
|
-
command = make_simple_command(:post, 'v2beta2/{+parent}/dataSource:inspect', options)
|
596
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectDataSourceRequest::Representation
|
597
|
-
command.request_object = google_privacy_dlp_v2beta2_inspect_data_source_request_object
|
598
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob::Representation
|
599
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob
|
600
|
-
command.params['parent'] = parent unless parent.nil?
|
601
|
-
command.query['fields'] = fields unless fields.nil?
|
602
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
603
|
-
execute_or_queue_command(command, &block)
|
604
|
-
end
|
605
|
-
|
606
|
-
# Creates an Deidentify template for re-using frequently used configuration
|
607
|
-
# for Deidentifying content, images, and storage.
|
608
|
-
# @param [String] parent
|
609
|
-
# The parent resource name, for example projects/my-project-id or
|
610
|
-
# organizations/my-org-id.
|
611
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2beta2_create_deidentify_template_request_object
|
612
|
-
# @param [String] fields
|
613
|
-
# Selector specifying which fields to include in a partial response.
|
614
|
-
# @param [String] quota_user
|
615
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
616
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
617
|
-
# @param [Google::Apis::RequestOptions] options
|
618
|
-
# Request-specific options
|
619
|
-
#
|
620
|
-
# @yield [result, err] Result & error if block supplied
|
621
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate] parsed result object
|
622
|
-
# @yieldparam err [StandardError] error object if request failed
|
623
|
-
#
|
624
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate]
|
625
|
-
#
|
626
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
627
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
628
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
629
|
-
def create_project_deidentify_template(parent, google_privacy_dlp_v2beta2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
630
|
-
command = make_simple_command(:post, 'v2beta2/{+parent}/deidentifyTemplates', options)
|
631
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest::Representation
|
632
|
-
command.request_object = google_privacy_dlp_v2beta2_create_deidentify_template_request_object
|
633
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation
|
634
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
|
635
|
-
command.params['parent'] = parent unless parent.nil?
|
636
|
-
command.query['fields'] = fields unless fields.nil?
|
637
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
638
|
-
execute_or_queue_command(command, &block)
|
639
|
-
end
|
640
|
-
|
641
|
-
# Deletes inspect templates.
|
642
|
-
# @param [String] name
|
643
|
-
# Resource name of the organization and deidentify template to be deleted,
|
644
|
-
# for example `organizations/433245324/deidentifyTemplates/432452342` or
|
645
|
-
# projects/project-id/deidentifyTemplates/432452342.
|
646
|
-
# @param [String] fields
|
647
|
-
# Selector specifying which fields to include in a partial response.
|
648
|
-
# @param [String] quota_user
|
649
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
650
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
651
|
-
# @param [Google::Apis::RequestOptions] options
|
652
|
-
# Request-specific options
|
653
|
-
#
|
654
|
-
# @yield [result, err] Result & error if block supplied
|
655
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GoogleProtobufEmpty] parsed result object
|
656
|
-
# @yieldparam err [StandardError] error object if request failed
|
657
|
-
#
|
658
|
-
# @return [Google::Apis::DlpV2beta2::GoogleProtobufEmpty]
|
659
|
-
#
|
660
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
661
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
662
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
663
|
-
def delete_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
664
|
-
command = make_simple_command(:delete, 'v2beta2/{+name}', options)
|
665
|
-
command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation
|
666
|
-
command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty
|
667
|
-
command.params['name'] = name unless name.nil?
|
668
|
-
command.query['fields'] = fields unless fields.nil?
|
669
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
670
|
-
execute_or_queue_command(command, &block)
|
671
|
-
end
|
672
|
-
|
673
|
-
# Gets an inspect template.
|
674
|
-
# @param [String] name
|
675
|
-
# Resource name of the organization and deidentify template to be read, for
|
676
|
-
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
677
|
-
# projects/project-id/deidentifyTemplates/432452342.
|
678
|
-
# @param [String] fields
|
679
|
-
# Selector specifying which fields to include in a partial response.
|
680
|
-
# @param [String] quota_user
|
681
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
682
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
683
|
-
# @param [Google::Apis::RequestOptions] options
|
684
|
-
# Request-specific options
|
685
|
-
#
|
686
|
-
# @yield [result, err] Result & error if block supplied
|
687
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate] parsed result object
|
688
|
-
# @yieldparam err [StandardError] error object if request failed
|
689
|
-
#
|
690
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate]
|
691
|
-
#
|
692
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
693
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
694
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
695
|
-
def get_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
696
|
-
command = make_simple_command(:get, 'v2beta2/{+name}', options)
|
697
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation
|
698
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
|
699
|
-
command.params['name'] = name unless name.nil?
|
700
|
-
command.query['fields'] = fields unless fields.nil?
|
701
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
702
|
-
execute_or_queue_command(command, &block)
|
703
|
-
end
|
704
|
-
|
705
|
-
# Lists inspect templates.
|
706
|
-
# @param [String] parent
|
707
|
-
# The parent resource name, for example projects/my-project-id or
|
708
|
-
# organizations/my-org-id.
|
709
|
-
# @param [Fixnum] page_size
|
710
|
-
# Optional size of the page, can be limited by server. If zero server returns
|
711
|
-
# a page of max size 100.
|
712
|
-
# @param [String] page_token
|
713
|
-
# Optional page token to continue retrieval. Comes from previous call
|
714
|
-
# to `ListDeidentifyTemplates`.
|
715
|
-
# @param [String] fields
|
716
|
-
# Selector specifying which fields to include in a partial response.
|
717
|
-
# @param [String] quota_user
|
718
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
719
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
720
|
-
# @param [Google::Apis::RequestOptions] options
|
721
|
-
# Request-specific options
|
722
|
-
#
|
723
|
-
# @yield [result, err] Result & error if block supplied
|
724
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse] parsed result object
|
725
|
-
# @yieldparam err [StandardError] error object if request failed
|
726
|
-
#
|
727
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse]
|
728
|
-
#
|
729
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
730
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
731
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
732
|
-
def list_project_deidentify_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
733
|
-
command = make_simple_command(:get, 'v2beta2/{+parent}/deidentifyTemplates', options)
|
734
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse::Representation
|
735
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse
|
736
|
-
command.params['parent'] = parent unless parent.nil?
|
737
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
738
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
739
|
-
command.query['fields'] = fields unless fields.nil?
|
740
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
741
|
-
execute_or_queue_command(command, &block)
|
742
|
-
end
|
743
|
-
|
744
|
-
# Updates the inspect template.
|
745
|
-
# @param [String] name
|
746
|
-
# Resource name of organization and deidentify template to be updated, for
|
747
|
-
# example `organizations/433245324/deidentifyTemplates/432452342` or
|
748
|
-
# projects/project-id/deidentifyTemplates/432452342.
|
749
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2beta2_update_deidentify_template_request_object
|
750
|
-
# @param [String] fields
|
751
|
-
# Selector specifying which fields to include in a partial response.
|
752
|
-
# @param [String] quota_user
|
753
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
754
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
755
|
-
# @param [Google::Apis::RequestOptions] options
|
756
|
-
# Request-specific options
|
757
|
-
#
|
758
|
-
# @yield [result, err] Result & error if block supplied
|
759
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate] parsed result object
|
760
|
-
# @yieldparam err [StandardError] error object if request failed
|
761
|
-
#
|
762
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate]
|
763
|
-
#
|
764
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
765
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
766
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
767
|
-
def patch_project_deidentify_template(name, google_privacy_dlp_v2beta2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
768
|
-
command = make_simple_command(:patch, 'v2beta2/{+name}', options)
|
769
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest::Representation
|
770
|
-
command.request_object = google_privacy_dlp_v2beta2_update_deidentify_template_request_object
|
771
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation
|
772
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
|
773
|
-
command.params['name'] = name unless name.nil?
|
774
|
-
command.query['fields'] = fields unless fields.nil?
|
775
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
776
|
-
execute_or_queue_command(command, &block)
|
777
|
-
end
|
778
|
-
|
779
|
-
# Starts asynchronous cancellation on a long-running DlpJob. The server
|
780
|
-
# makes a best effort to cancel the DlpJob, but success is not
|
781
|
-
# guaranteed.
|
782
|
-
# @param [String] name
|
783
|
-
# The name of the DlpJob resource to be cancelled.
|
784
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CancelDlpJobRequest] google_privacy_dlp_v2beta2_cancel_dlp_job_request_object
|
785
|
-
# @param [String] fields
|
786
|
-
# Selector specifying which fields to include in a partial response.
|
787
|
-
# @param [String] quota_user
|
788
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
789
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
790
|
-
# @param [Google::Apis::RequestOptions] options
|
791
|
-
# Request-specific options
|
792
|
-
#
|
793
|
-
# @yield [result, err] Result & error if block supplied
|
794
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GoogleProtobufEmpty] parsed result object
|
795
|
-
# @yieldparam err [StandardError] error object if request failed
|
796
|
-
#
|
797
|
-
# @return [Google::Apis::DlpV2beta2::GoogleProtobufEmpty]
|
798
|
-
#
|
799
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
800
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
801
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
802
|
-
def cancel_project_dlp_job(name, google_privacy_dlp_v2beta2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
803
|
-
command = make_simple_command(:post, 'v2beta2/{+name}:cancel', options)
|
804
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CancelDlpJobRequest::Representation
|
805
|
-
command.request_object = google_privacy_dlp_v2beta2_cancel_dlp_job_request_object
|
806
|
-
command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation
|
807
|
-
command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty
|
808
|
-
command.params['name'] = name unless name.nil?
|
809
|
-
command.query['fields'] = fields unless fields.nil?
|
810
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
811
|
-
execute_or_queue_command(command, &block)
|
812
|
-
end
|
813
|
-
|
814
|
-
# Deletes a long-running DlpJob. This method indicates that the client is
|
815
|
-
# no longer interested in the DlpJob result. The job will be cancelled if
|
816
|
-
# possible.
|
817
|
-
# @param [String] name
|
818
|
-
# The name of the DlpJob resource to be deleted.
|
819
|
-
# @param [String] fields
|
820
|
-
# Selector specifying which fields to include in a partial response.
|
821
|
-
# @param [String] quota_user
|
822
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
823
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
824
|
-
# @param [Google::Apis::RequestOptions] options
|
825
|
-
# Request-specific options
|
826
|
-
#
|
827
|
-
# @yield [result, err] Result & error if block supplied
|
828
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GoogleProtobufEmpty] parsed result object
|
829
|
-
# @yieldparam err [StandardError] error object if request failed
|
830
|
-
#
|
831
|
-
# @return [Google::Apis::DlpV2beta2::GoogleProtobufEmpty]
|
832
|
-
#
|
833
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
834
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
835
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
836
|
-
def delete_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
837
|
-
command = make_simple_command(:delete, 'v2beta2/{+name}', options)
|
838
|
-
command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation
|
839
|
-
command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty
|
840
|
-
command.params['name'] = name unless name.nil?
|
841
|
-
command.query['fields'] = fields unless fields.nil?
|
842
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
843
|
-
execute_or_queue_command(command, &block)
|
844
|
-
end
|
845
|
-
|
846
|
-
# Gets the latest state of a long-running DlpJob.
|
847
|
-
# @param [String] name
|
848
|
-
# The name of the DlpJob resource.
|
849
|
-
# @param [String] fields
|
850
|
-
# Selector specifying which fields to include in a partial response.
|
851
|
-
# @param [String] quota_user
|
852
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
853
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
854
|
-
# @param [Google::Apis::RequestOptions] options
|
855
|
-
# Request-specific options
|
856
|
-
#
|
857
|
-
# @yield [result, err] Result & error if block supplied
|
858
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob] parsed result object
|
859
|
-
# @yieldparam err [StandardError] error object if request failed
|
860
|
-
#
|
861
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob]
|
862
|
-
#
|
863
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
864
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
865
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
866
|
-
def get_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
867
|
-
command = make_simple_command(:get, 'v2beta2/{+name}', options)
|
868
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob::Representation
|
869
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob
|
870
|
-
command.params['name'] = name unless name.nil?
|
871
|
-
command.query['fields'] = fields unless fields.nil?
|
872
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
873
|
-
execute_or_queue_command(command, &block)
|
874
|
-
end
|
875
|
-
|
876
|
-
# Lists DlpJobs that match the specified filter in the request.
|
877
|
-
# @param [String] parent
|
878
|
-
# The parent resource name, for example projects/my-project-id.
|
879
|
-
# @param [String] filter
|
880
|
-
# Optional. Allows filtering.
|
881
|
-
# Supported syntax:
|
882
|
-
# * Filter expressions are made up of one or more restrictions.
|
883
|
-
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
884
|
-
# sequence of restrictions implicitly uses `AND`.
|
885
|
-
# * A restriction has the form of `<field> <operator> <value>`.
|
886
|
-
# * Supported fields/values for inspect jobs:
|
887
|
-
# - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
|
888
|
-
# - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
889
|
-
# - `trigger_name` - The resource name of the trigger that created job.
|
890
|
-
# * Supported fields for risk analysis jobs:
|
891
|
-
# - `state` - RUNNING|CANCELED|FINISHED|FAILED
|
892
|
-
# * The operator must be `=` or `!=`.
|
893
|
-
# Examples:
|
894
|
-
# * inspected_storage = cloud_storage AND state = done
|
895
|
-
# * inspected_storage = cloud_storage OR inspected_storage = bigquery
|
896
|
-
# * inspected_storage = cloud_storage AND (state = done OR state = canceled)
|
897
|
-
# The length of this field should be no more than 500 characters.
|
898
|
-
# @param [Fixnum] page_size
|
899
|
-
# The standard list page size.
|
900
|
-
# @param [String] page_token
|
901
|
-
# The standard list page token.
|
902
|
-
# @param [String] type
|
903
|
-
# The type of job. Defaults to `DlpJobType.INSPECT`
|
904
|
-
# @param [String] fields
|
905
|
-
# Selector specifying which fields to include in a partial response.
|
906
|
-
# @param [String] quota_user
|
907
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
908
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
909
|
-
# @param [Google::Apis::RequestOptions] options
|
910
|
-
# Request-specific options
|
911
|
-
#
|
912
|
-
# @yield [result, err] Result & error if block supplied
|
913
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDlpJobsResponse] parsed result object
|
914
|
-
# @yieldparam err [StandardError] error object if request failed
|
915
|
-
#
|
916
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDlpJobsResponse]
|
917
|
-
#
|
918
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
919
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
920
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
921
|
-
def list_project_dlp_jobs(parent, filter: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
922
|
-
command = make_simple_command(:get, 'v2beta2/{+parent}/dlpJobs', options)
|
923
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDlpJobsResponse::Representation
|
924
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDlpJobsResponse
|
925
|
-
command.params['parent'] = parent unless parent.nil?
|
926
|
-
command.query['filter'] = filter unless filter.nil?
|
927
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
928
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
929
|
-
command.query['type'] = type unless type.nil?
|
930
|
-
command.query['fields'] = fields unless fields.nil?
|
931
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
932
|
-
execute_or_queue_command(command, &block)
|
933
|
-
end
|
934
|
-
|
935
|
-
# Redacts potentially sensitive info from an image.
|
936
|
-
# This method has limits on input size, processing time, and output size.
|
937
|
-
# [How-to guide](/dlp/docs/redacting-sensitive-data-images)
|
938
|
-
# @param [String] parent
|
939
|
-
# The parent resource name, for example projects/my-project-id.
|
940
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageRequest] google_privacy_dlp_v2beta2_redact_image_request_object
|
941
|
-
# @param [String] fields
|
942
|
-
# Selector specifying which fields to include in a partial response.
|
943
|
-
# @param [String] quota_user
|
944
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
945
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
946
|
-
# @param [Google::Apis::RequestOptions] options
|
947
|
-
# Request-specific options
|
948
|
-
#
|
949
|
-
# @yield [result, err] Result & error if block supplied
|
950
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageResponse] parsed result object
|
951
|
-
# @yieldparam err [StandardError] error object if request failed
|
952
|
-
#
|
953
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageResponse]
|
954
|
-
#
|
955
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
956
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
957
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
958
|
-
def redact_project_image(parent, google_privacy_dlp_v2beta2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
959
|
-
command = make_simple_command(:post, 'v2beta2/{+parent}/image:redact', options)
|
960
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageRequest::Representation
|
961
|
-
command.request_object = google_privacy_dlp_v2beta2_redact_image_request_object
|
962
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageResponse::Representation
|
963
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageResponse
|
964
|
-
command.params['parent'] = parent unless parent.nil?
|
965
|
-
command.query['fields'] = fields unless fields.nil?
|
966
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
967
|
-
execute_or_queue_command(command, &block)
|
968
|
-
end
|
969
|
-
|
970
|
-
# Creates an inspect template for re-using frequently used configuration
|
971
|
-
# for inspecting content, images, and storage.
|
972
|
-
# @param [String] parent
|
973
|
-
# The parent resource name, for example projects/my-project-id or
|
974
|
-
# organizations/my-org-id.
|
975
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateInspectTemplateRequest] google_privacy_dlp_v2beta2_create_inspect_template_request_object
|
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::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate] parsed result object
|
986
|
-
# @yieldparam err [StandardError] error object if request failed
|
987
|
-
#
|
988
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate]
|
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 create_project_inspect_template(parent, google_privacy_dlp_v2beta2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
994
|
-
command = make_simple_command(:post, 'v2beta2/{+parent}/inspectTemplates', options)
|
995
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateInspectTemplateRequest::Representation
|
996
|
-
command.request_object = google_privacy_dlp_v2beta2_create_inspect_template_request_object
|
997
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation
|
998
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
|
999
|
-
command.params['parent'] = parent unless parent.nil?
|
1000
|
-
command.query['fields'] = fields unless fields.nil?
|
1001
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1002
|
-
execute_or_queue_command(command, &block)
|
1003
|
-
end
|
1004
|
-
|
1005
|
-
# Deletes inspect templates.
|
1006
|
-
# @param [String] name
|
1007
|
-
# Resource name of the organization and inspectTemplate to be deleted, for
|
1008
|
-
# example `organizations/433245324/inspectTemplates/432452342` or
|
1009
|
-
# projects/project-id/inspectTemplates/432452342.
|
1010
|
-
# @param [String] fields
|
1011
|
-
# Selector specifying which fields to include in a partial response.
|
1012
|
-
# @param [String] quota_user
|
1013
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1014
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1015
|
-
# @param [Google::Apis::RequestOptions] options
|
1016
|
-
# Request-specific options
|
1017
|
-
#
|
1018
|
-
# @yield [result, err] Result & error if block supplied
|
1019
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GoogleProtobufEmpty] parsed result object
|
1020
|
-
# @yieldparam err [StandardError] error object if request failed
|
1021
|
-
#
|
1022
|
-
# @return [Google::Apis::DlpV2beta2::GoogleProtobufEmpty]
|
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 delete_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
1028
|
-
command = make_simple_command(:delete, 'v2beta2/{+name}', options)
|
1029
|
-
command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation
|
1030
|
-
command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty
|
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
|
-
# Gets an inspect template.
|
1038
|
-
# @param [String] name
|
1039
|
-
# Resource name of the organization and inspectTemplate to be read, for
|
1040
|
-
# example `organizations/433245324/inspectTemplates/432452342` or
|
1041
|
-
# projects/project-id/inspectTemplates/432452342.
|
1042
|
-
# @param [String] fields
|
1043
|
-
# Selector specifying which fields to include in a partial response.
|
1044
|
-
# @param [String] quota_user
|
1045
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1046
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1047
|
-
# @param [Google::Apis::RequestOptions] options
|
1048
|
-
# Request-specific options
|
1049
|
-
#
|
1050
|
-
# @yield [result, err] Result & error if block supplied
|
1051
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate] parsed result object
|
1052
|
-
# @yieldparam err [StandardError] error object if request failed
|
1053
|
-
#
|
1054
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate]
|
1055
|
-
#
|
1056
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1057
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1058
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1059
|
-
def get_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
|
1060
|
-
command = make_simple_command(:get, 'v2beta2/{+name}', options)
|
1061
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation
|
1062
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
|
1063
|
-
command.params['name'] = name unless name.nil?
|
1064
|
-
command.query['fields'] = fields unless fields.nil?
|
1065
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1066
|
-
execute_or_queue_command(command, &block)
|
1067
|
-
end
|
1068
|
-
|
1069
|
-
# Lists inspect templates.
|
1070
|
-
# @param [String] parent
|
1071
|
-
# The parent resource name, for example projects/my-project-id or
|
1072
|
-
# organizations/my-org-id.
|
1073
|
-
# @param [Fixnum] page_size
|
1074
|
-
# Optional size of the page, can be limited by server. If zero server returns
|
1075
|
-
# a page of max size 100.
|
1076
|
-
# @param [String] page_token
|
1077
|
-
# Optional page token to continue retrieval. Comes from previous call
|
1078
|
-
# to `ListInspectTemplates`.
|
1079
|
-
# @param [String] fields
|
1080
|
-
# Selector specifying which fields to include in a partial response.
|
1081
|
-
# @param [String] quota_user
|
1082
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1083
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1084
|
-
# @param [Google::Apis::RequestOptions] options
|
1085
|
-
# Request-specific options
|
1086
|
-
#
|
1087
|
-
# @yield [result, err] Result & error if block supplied
|
1088
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse] parsed result object
|
1089
|
-
# @yieldparam err [StandardError] error object if request failed
|
1090
|
-
#
|
1091
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse]
|
1092
|
-
#
|
1093
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1094
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1095
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1096
|
-
def list_project_inspect_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1097
|
-
command = make_simple_command(:get, 'v2beta2/{+parent}/inspectTemplates', options)
|
1098
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse::Representation
|
1099
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse
|
1100
|
-
command.params['parent'] = parent unless parent.nil?
|
1101
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1102
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1103
|
-
command.query['fields'] = fields unless fields.nil?
|
1104
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1105
|
-
execute_or_queue_command(command, &block)
|
1106
|
-
end
|
1107
|
-
|
1108
|
-
# Updates the inspect template.
|
1109
|
-
# @param [String] name
|
1110
|
-
# Resource name of organization and inspectTemplate to be updated, for
|
1111
|
-
# example `organizations/433245324/inspectTemplates/432452342` or
|
1112
|
-
# projects/project-id/inspectTemplates/432452342.
|
1113
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest] google_privacy_dlp_v2beta2_update_inspect_template_request_object
|
1114
|
-
# @param [String] fields
|
1115
|
-
# Selector specifying which fields to include in a partial response.
|
1116
|
-
# @param [String] quota_user
|
1117
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1118
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1119
|
-
# @param [Google::Apis::RequestOptions] options
|
1120
|
-
# Request-specific options
|
1121
|
-
#
|
1122
|
-
# @yield [result, err] Result & error if block supplied
|
1123
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate] parsed result object
|
1124
|
-
# @yieldparam err [StandardError] error object if request failed
|
1125
|
-
#
|
1126
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate]
|
1127
|
-
#
|
1128
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1129
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1130
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1131
|
-
def patch_project_inspect_template(name, google_privacy_dlp_v2beta2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1132
|
-
command = make_simple_command(:patch, 'v2beta2/{+name}', options)
|
1133
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest::Representation
|
1134
|
-
command.request_object = google_privacy_dlp_v2beta2_update_inspect_template_request_object
|
1135
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation
|
1136
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
|
1137
|
-
command.params['name'] = name unless name.nil?
|
1138
|
-
command.query['fields'] = fields unless fields.nil?
|
1139
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1140
|
-
execute_or_queue_command(command, &block)
|
1141
|
-
end
|
1142
|
-
|
1143
|
-
# Creates a job to run DLP actions such as scanning storage for sensitive
|
1144
|
-
# information on a set schedule.
|
1145
|
-
# @param [String] parent
|
1146
|
-
# The parent resource name, for example projects/my-project-id.
|
1147
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateJobTriggerRequest] google_privacy_dlp_v2beta2_create_job_trigger_request_object
|
1148
|
-
# @param [String] fields
|
1149
|
-
# Selector specifying which fields to include in a partial response.
|
1150
|
-
# @param [String] quota_user
|
1151
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1152
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1153
|
-
# @param [Google::Apis::RequestOptions] options
|
1154
|
-
# Request-specific options
|
1155
|
-
#
|
1156
|
-
# @yield [result, err] Result & error if block supplied
|
1157
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2JobTrigger] parsed result object
|
1158
|
-
# @yieldparam err [StandardError] error object if request failed
|
1159
|
-
#
|
1160
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2JobTrigger]
|
1161
|
-
#
|
1162
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1163
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1164
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1165
|
-
def create_project_job_trigger(parent, google_privacy_dlp_v2beta2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1166
|
-
command = make_simple_command(:post, 'v2beta2/{+parent}/jobTriggers', options)
|
1167
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateJobTriggerRequest::Representation
|
1168
|
-
command.request_object = google_privacy_dlp_v2beta2_create_job_trigger_request_object
|
1169
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2JobTrigger::Representation
|
1170
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2JobTrigger
|
1171
|
-
command.params['parent'] = parent unless parent.nil?
|
1172
|
-
command.query['fields'] = fields unless fields.nil?
|
1173
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1174
|
-
execute_or_queue_command(command, &block)
|
1175
|
-
end
|
1176
|
-
|
1177
|
-
# Deletes a job trigger.
|
1178
|
-
# @param [String] name
|
1179
|
-
# Resource name of the project and the triggeredJob, for example
|
1180
|
-
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1181
|
-
# @param [String] fields
|
1182
|
-
# Selector specifying which fields to include in a partial response.
|
1183
|
-
# @param [String] quota_user
|
1184
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1185
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1186
|
-
# @param [Google::Apis::RequestOptions] options
|
1187
|
-
# Request-specific options
|
1188
|
-
#
|
1189
|
-
# @yield [result, err] Result & error if block supplied
|
1190
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GoogleProtobufEmpty] parsed result object
|
1191
|
-
# @yieldparam err [StandardError] error object if request failed
|
1192
|
-
#
|
1193
|
-
# @return [Google::Apis::DlpV2beta2::GoogleProtobufEmpty]
|
1194
|
-
#
|
1195
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1196
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1197
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1198
|
-
def delete_project_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
|
1199
|
-
command = make_simple_command(:delete, 'v2beta2/{+name}', options)
|
1200
|
-
command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation
|
1201
|
-
command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty
|
1202
|
-
command.params['name'] = name unless name.nil?
|
1203
|
-
command.query['fields'] = fields unless fields.nil?
|
1204
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1205
|
-
execute_or_queue_command(command, &block)
|
1206
|
-
end
|
1207
|
-
|
1208
|
-
# Gets a job trigger.
|
1209
|
-
# @param [String] name
|
1210
|
-
# Resource name of the project and the triggeredJob, for example
|
1211
|
-
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1212
|
-
# @param [String] fields
|
1213
|
-
# Selector specifying which fields to include in a partial response.
|
1214
|
-
# @param [String] quota_user
|
1215
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1216
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1217
|
-
# @param [Google::Apis::RequestOptions] options
|
1218
|
-
# Request-specific options
|
1219
|
-
#
|
1220
|
-
# @yield [result, err] Result & error if block supplied
|
1221
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2JobTrigger] parsed result object
|
1222
|
-
# @yieldparam err [StandardError] error object if request failed
|
1223
|
-
#
|
1224
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2JobTrigger]
|
1225
|
-
#
|
1226
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1227
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1228
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1229
|
-
def get_project_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block)
|
1230
|
-
command = make_simple_command(:get, 'v2beta2/{+name}', options)
|
1231
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2JobTrigger::Representation
|
1232
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2JobTrigger
|
1233
|
-
command.params['name'] = name unless name.nil?
|
1234
|
-
command.query['fields'] = fields unless fields.nil?
|
1235
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1236
|
-
execute_or_queue_command(command, &block)
|
1237
|
-
end
|
1238
|
-
|
1239
|
-
# Lists job triggers.
|
1240
|
-
# @param [String] parent
|
1241
|
-
# The parent resource name, for example projects/my-project-id.
|
1242
|
-
# @param [String] order_by
|
1243
|
-
# Optional comma separated list of triggeredJob fields to order by,
|
1244
|
-
# followed by 'asc/desc' postfix, i.e.
|
1245
|
-
# `"create_time asc,name desc,schedule_mode asc"`. This list is
|
1246
|
-
# case-insensitive.
|
1247
|
-
# Example: `"name asc,schedule_mode desc, status desc"`
|
1248
|
-
# Supported filters keys and values are:
|
1249
|
-
# - `create_time`: corresponds to time the triggeredJob was created.
|
1250
|
-
# - `update_time`: corresponds to time the triggeredJob was last updated.
|
1251
|
-
# - `name`: corresponds to JobTrigger's display name.
|
1252
|
-
# - `status`: corresponds to the triggeredJob status.
|
1253
|
-
# @param [Fixnum] page_size
|
1254
|
-
# Optional size of the page, can be limited by a server.
|
1255
|
-
# @param [String] page_token
|
1256
|
-
# Optional page token to continue retrieval. Comes from previous call
|
1257
|
-
# to ListJobTriggers. `order_by` and `filter` should not change for
|
1258
|
-
# subsequent calls, but can be omitted if token is specified.
|
1259
|
-
# @param [String] fields
|
1260
|
-
# Selector specifying which fields to include in a partial response.
|
1261
|
-
# @param [String] quota_user
|
1262
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1263
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1264
|
-
# @param [Google::Apis::RequestOptions] options
|
1265
|
-
# Request-specific options
|
1266
|
-
#
|
1267
|
-
# @yield [result, err] Result & error if block supplied
|
1268
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListJobTriggersResponse] parsed result object
|
1269
|
-
# @yieldparam err [StandardError] error object if request failed
|
1270
|
-
#
|
1271
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListJobTriggersResponse]
|
1272
|
-
#
|
1273
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1274
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1275
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1276
|
-
def list_project_job_triggers(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1277
|
-
command = make_simple_command(:get, 'v2beta2/{+parent}/jobTriggers', options)
|
1278
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListJobTriggersResponse::Representation
|
1279
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListJobTriggersResponse
|
1280
|
-
command.params['parent'] = parent unless parent.nil?
|
1281
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
1282
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1283
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1284
|
-
command.query['fields'] = fields unless fields.nil?
|
1285
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1286
|
-
execute_or_queue_command(command, &block)
|
1287
|
-
end
|
1288
|
-
|
1289
|
-
# Updates a job trigger.
|
1290
|
-
# @param [String] name
|
1291
|
-
# Resource name of the project and the triggeredJob, for example
|
1292
|
-
# `projects/dlp-test-project/jobTriggers/53234423`.
|
1293
|
-
# @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateJobTriggerRequest] google_privacy_dlp_v2beta2_update_job_trigger_request_object
|
1294
|
-
# @param [String] fields
|
1295
|
-
# Selector specifying which fields to include in a partial response.
|
1296
|
-
# @param [String] quota_user
|
1297
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1298
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1299
|
-
# @param [Google::Apis::RequestOptions] options
|
1300
|
-
# Request-specific options
|
1301
|
-
#
|
1302
|
-
# @yield [result, err] Result & error if block supplied
|
1303
|
-
# @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2JobTrigger] parsed result object
|
1304
|
-
# @yieldparam err [StandardError] error object if request failed
|
1305
|
-
#
|
1306
|
-
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2JobTrigger]
|
1307
|
-
#
|
1308
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1309
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1310
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1311
|
-
def patch_project_job_trigger(name, google_privacy_dlp_v2beta2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1312
|
-
command = make_simple_command(:patch, 'v2beta2/{+name}', options)
|
1313
|
-
command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateJobTriggerRequest::Representation
|
1314
|
-
command.request_object = google_privacy_dlp_v2beta2_update_job_trigger_request_object
|
1315
|
-
command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2JobTrigger::Representation
|
1316
|
-
command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2JobTrigger
|
1317
|
-
command.params['name'] = name unless name.nil?
|
1318
|
-
command.query['fields'] = fields unless fields.nil?
|
1319
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1320
|
-
execute_or_queue_command(command, &block)
|
1321
|
-
end
|
1322
|
-
|
1323
|
-
protected
|
1324
|
-
|
1325
|
-
def apply_command_defaults(command)
|
1326
|
-
command.query['key'] = key unless key.nil?
|
1327
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1328
|
-
end
|
1329
|
-
end
|
1330
|
-
end
|
1331
|
-
end
|
1332
|
-
end
|