google-api-client 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/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
|
@@ -37,7 +37,9 @@ module Google
|
|
|
37
37
|
# @param [String] name
|
|
38
38
|
# @return [String] updated param name
|
|
39
39
|
def normalize_param_name(name)
|
|
40
|
-
name =
|
|
40
|
+
name = name.gsub(/\W/, '_')
|
|
41
|
+
name = name.gsub(/IPv4/, 'Ipv4')
|
|
42
|
+
name = ActiveSupport::Inflector.underscore(name)
|
|
41
43
|
if reserved?(name)
|
|
42
44
|
logger.warn { sprintf('Found reserved keyword \'%1$s\'', name) }
|
|
43
45
|
name += '_'
|
data/lib/google/apis/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-api-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.21.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Bazyl
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2018-
|
|
14
|
+
date: 2018-05-11 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: representable
|
|
@@ -274,6 +274,10 @@ files:
|
|
|
274
274
|
- generated/google/apis/androidpublisher_v2/classes.rb
|
|
275
275
|
- generated/google/apis/androidpublisher_v2/representations.rb
|
|
276
276
|
- generated/google/apis/androidpublisher_v2/service.rb
|
|
277
|
+
- generated/google/apis/androidpublisher_v3.rb
|
|
278
|
+
- generated/google/apis/androidpublisher_v3/classes.rb
|
|
279
|
+
- generated/google/apis/androidpublisher_v3/representations.rb
|
|
280
|
+
- generated/google/apis/androidpublisher_v3/service.rb
|
|
277
281
|
- generated/google/apis/appengine_v1.rb
|
|
278
282
|
- generated/google/apis/appengine_v1/classes.rb
|
|
279
283
|
- generated/google/apis/appengine_v1/representations.rb
|
|
@@ -414,6 +418,10 @@ files:
|
|
|
414
418
|
- generated/google/apis/cloudtrace_v2/classes.rb
|
|
415
419
|
- generated/google/apis/cloudtrace_v2/representations.rb
|
|
416
420
|
- generated/google/apis/cloudtrace_v2/service.rb
|
|
421
|
+
- generated/google/apis/composer_v1beta1.rb
|
|
422
|
+
- generated/google/apis/composer_v1beta1/classes.rb
|
|
423
|
+
- generated/google/apis/composer_v1beta1/representations.rb
|
|
424
|
+
- generated/google/apis/composer_v1beta1/service.rb
|
|
417
425
|
- generated/google/apis/compute_alpha.rb
|
|
418
426
|
- generated/google/apis/compute_alpha/classes.rb
|
|
419
427
|
- generated/google/apis/compute_alpha/representations.rb
|
|
@@ -510,14 +518,6 @@ files:
|
|
|
510
518
|
- generated/google/apis/dlp_v2/classes.rb
|
|
511
519
|
- generated/google/apis/dlp_v2/representations.rb
|
|
512
520
|
- generated/google/apis/dlp_v2/service.rb
|
|
513
|
-
- generated/google/apis/dlp_v2beta1.rb
|
|
514
|
-
- generated/google/apis/dlp_v2beta1/classes.rb
|
|
515
|
-
- generated/google/apis/dlp_v2beta1/representations.rb
|
|
516
|
-
- generated/google/apis/dlp_v2beta1/service.rb
|
|
517
|
-
- generated/google/apis/dlp_v2beta2.rb
|
|
518
|
-
- generated/google/apis/dlp_v2beta2/classes.rb
|
|
519
|
-
- generated/google/apis/dlp_v2beta2/representations.rb
|
|
520
|
-
- generated/google/apis/dlp_v2beta2/service.rb
|
|
521
521
|
- generated/google/apis/dns_v1.rb
|
|
522
522
|
- generated/google/apis/dns_v1/classes.rb
|
|
523
523
|
- generated/google/apis/dns_v1/representations.rb
|
|
@@ -614,6 +614,10 @@ files:
|
|
|
614
614
|
- generated/google/apis/identitytoolkit_v3/classes.rb
|
|
615
615
|
- generated/google/apis/identitytoolkit_v3/representations.rb
|
|
616
616
|
- generated/google/apis/identitytoolkit_v3/service.rb
|
|
617
|
+
- generated/google/apis/jobs_v2.rb
|
|
618
|
+
- generated/google/apis/jobs_v2/classes.rb
|
|
619
|
+
- generated/google/apis/jobs_v2/representations.rb
|
|
620
|
+
- generated/google/apis/jobs_v2/service.rb
|
|
617
621
|
- generated/google/apis/kgsearch_v1.rb
|
|
618
622
|
- generated/google/apis/kgsearch_v1/classes.rb
|
|
619
623
|
- generated/google/apis/kgsearch_v1/representations.rb
|
|
@@ -702,6 +706,10 @@ files:
|
|
|
702
706
|
- generated/google/apis/people_v1/classes.rb
|
|
703
707
|
- generated/google/apis/people_v1/representations.rb
|
|
704
708
|
- generated/google/apis/people_v1/service.rb
|
|
709
|
+
- generated/google/apis/photoslibrary_v1.rb
|
|
710
|
+
- generated/google/apis/photoslibrary_v1/classes.rb
|
|
711
|
+
- generated/google/apis/photoslibrary_v1/representations.rb
|
|
712
|
+
- generated/google/apis/photoslibrary_v1/service.rb
|
|
705
713
|
- generated/google/apis/playcustomapp_v1.rb
|
|
706
714
|
- generated/google/apis/playcustomapp_v1/classes.rb
|
|
707
715
|
- generated/google/apis/playcustomapp_v1/representations.rb
|
|
@@ -718,26 +726,6 @@ files:
|
|
|
718
726
|
- generated/google/apis/poly_v1/classes.rb
|
|
719
727
|
- generated/google/apis/poly_v1/representations.rb
|
|
720
728
|
- generated/google/apis/poly_v1/service.rb
|
|
721
|
-
- generated/google/apis/prediction_v1_2.rb
|
|
722
|
-
- generated/google/apis/prediction_v1_2/classes.rb
|
|
723
|
-
- generated/google/apis/prediction_v1_2/representations.rb
|
|
724
|
-
- generated/google/apis/prediction_v1_2/service.rb
|
|
725
|
-
- generated/google/apis/prediction_v1_3.rb
|
|
726
|
-
- generated/google/apis/prediction_v1_3/classes.rb
|
|
727
|
-
- generated/google/apis/prediction_v1_3/representations.rb
|
|
728
|
-
- generated/google/apis/prediction_v1_3/service.rb
|
|
729
|
-
- generated/google/apis/prediction_v1_4.rb
|
|
730
|
-
- generated/google/apis/prediction_v1_4/classes.rb
|
|
731
|
-
- generated/google/apis/prediction_v1_4/representations.rb
|
|
732
|
-
- generated/google/apis/prediction_v1_4/service.rb
|
|
733
|
-
- generated/google/apis/prediction_v1_5.rb
|
|
734
|
-
- generated/google/apis/prediction_v1_5/classes.rb
|
|
735
|
-
- generated/google/apis/prediction_v1_5/representations.rb
|
|
736
|
-
- generated/google/apis/prediction_v1_5/service.rb
|
|
737
|
-
- generated/google/apis/prediction_v1_6.rb
|
|
738
|
-
- generated/google/apis/prediction_v1_6/classes.rb
|
|
739
|
-
- generated/google/apis/prediction_v1_6/representations.rb
|
|
740
|
-
- generated/google/apis/prediction_v1_6/service.rb
|
|
741
729
|
- generated/google/apis/proximitybeacon_v1beta1.rb
|
|
742
730
|
- generated/google/apis/proximitybeacon_v1beta1/classes.rb
|
|
743
731
|
- generated/google/apis/proximitybeacon_v1beta1/representations.rb
|
|
@@ -754,6 +742,10 @@ files:
|
|
|
754
742
|
- generated/google/apis/pubsub_v1beta2/classes.rb
|
|
755
743
|
- generated/google/apis/pubsub_v1beta2/representations.rb
|
|
756
744
|
- generated/google/apis/pubsub_v1beta2/service.rb
|
|
745
|
+
- generated/google/apis/redis_v1beta1.rb
|
|
746
|
+
- generated/google/apis/redis_v1beta1/classes.rb
|
|
747
|
+
- generated/google/apis/redis_v1beta1/representations.rb
|
|
748
|
+
- generated/google/apis/redis_v1beta1/service.rb
|
|
757
749
|
- generated/google/apis/replicapool_v1beta1.rb
|
|
758
750
|
- generated/google/apis/replicapool_v1beta1/classes.rb
|
|
759
751
|
- generated/google/apis/replicapool_v1beta1/representations.rb
|
|
@@ -798,6 +790,18 @@ files:
|
|
|
798
790
|
- generated/google/apis/searchconsole_v1/classes.rb
|
|
799
791
|
- generated/google/apis/searchconsole_v1/representations.rb
|
|
800
792
|
- generated/google/apis/searchconsole_v1/service.rb
|
|
793
|
+
- generated/google/apis/servicebroker_v1.rb
|
|
794
|
+
- generated/google/apis/servicebroker_v1/classes.rb
|
|
795
|
+
- generated/google/apis/servicebroker_v1/representations.rb
|
|
796
|
+
- generated/google/apis/servicebroker_v1/service.rb
|
|
797
|
+
- generated/google/apis/servicebroker_v1alpha1.rb
|
|
798
|
+
- generated/google/apis/servicebroker_v1alpha1/classes.rb
|
|
799
|
+
- generated/google/apis/servicebroker_v1alpha1/representations.rb
|
|
800
|
+
- generated/google/apis/servicebroker_v1alpha1/service.rb
|
|
801
|
+
- generated/google/apis/servicebroker_v1beta1.rb
|
|
802
|
+
- generated/google/apis/servicebroker_v1beta1/classes.rb
|
|
803
|
+
- generated/google/apis/servicebroker_v1beta1/representations.rb
|
|
804
|
+
- generated/google/apis/servicebroker_v1beta1/service.rb
|
|
801
805
|
- generated/google/apis/serviceconsumermanagement_v1.rb
|
|
802
806
|
- generated/google/apis/serviceconsumermanagement_v1/classes.rb
|
|
803
807
|
- generated/google/apis/serviceconsumermanagement_v1/representations.rb
|
|
@@ -890,14 +894,6 @@ files:
|
|
|
890
894
|
- generated/google/apis/tagmanager_v2/classes.rb
|
|
891
895
|
- generated/google/apis/tagmanager_v2/representations.rb
|
|
892
896
|
- generated/google/apis/tagmanager_v2/service.rb
|
|
893
|
-
- generated/google/apis/taskqueue_v1beta1.rb
|
|
894
|
-
- generated/google/apis/taskqueue_v1beta1/classes.rb
|
|
895
|
-
- generated/google/apis/taskqueue_v1beta1/representations.rb
|
|
896
|
-
- generated/google/apis/taskqueue_v1beta1/service.rb
|
|
897
|
-
- generated/google/apis/taskqueue_v1beta2.rb
|
|
898
|
-
- generated/google/apis/taskqueue_v1beta2/classes.rb
|
|
899
|
-
- generated/google/apis/taskqueue_v1beta2/representations.rb
|
|
900
|
-
- generated/google/apis/taskqueue_v1beta2/service.rb
|
|
901
897
|
- generated/google/apis/tasks_v1.rb
|
|
902
898
|
- generated/google/apis/tasks_v1/classes.rb
|
|
903
899
|
- generated/google/apis/tasks_v1/representations.rb
|
|
@@ -930,10 +926,18 @@ files:
|
|
|
930
926
|
- generated/google/apis/vault_v1/classes.rb
|
|
931
927
|
- generated/google/apis/vault_v1/representations.rb
|
|
932
928
|
- generated/google/apis/vault_v1/service.rb
|
|
929
|
+
- generated/google/apis/videointelligence_v1.rb
|
|
930
|
+
- generated/google/apis/videointelligence_v1/classes.rb
|
|
931
|
+
- generated/google/apis/videointelligence_v1/representations.rb
|
|
932
|
+
- generated/google/apis/videointelligence_v1/service.rb
|
|
933
933
|
- generated/google/apis/videointelligence_v1beta1.rb
|
|
934
934
|
- generated/google/apis/videointelligence_v1beta1/classes.rb
|
|
935
935
|
- generated/google/apis/videointelligence_v1beta1/representations.rb
|
|
936
936
|
- generated/google/apis/videointelligence_v1beta1/service.rb
|
|
937
|
+
- generated/google/apis/videointelligence_v1beta2.rb
|
|
938
|
+
- generated/google/apis/videointelligence_v1beta2/classes.rb
|
|
939
|
+
- generated/google/apis/videointelligence_v1beta2/representations.rb
|
|
940
|
+
- generated/google/apis/videointelligence_v1beta2/service.rb
|
|
937
941
|
- generated/google/apis/vision_v1.rb
|
|
938
942
|
- generated/google/apis/vision_v1/classes.rb
|
|
939
943
|
- generated/google/apis/vision_v1/representations.rb
|
|
@@ -954,6 +958,10 @@ files:
|
|
|
954
958
|
- generated/google/apis/webmasters_v3/classes.rb
|
|
955
959
|
- generated/google/apis/webmasters_v3/representations.rb
|
|
956
960
|
- generated/google/apis/webmasters_v3/service.rb
|
|
961
|
+
- generated/google/apis/websecurityscanner_v1alpha.rb
|
|
962
|
+
- generated/google/apis/websecurityscanner_v1alpha/classes.rb
|
|
963
|
+
- generated/google/apis/websecurityscanner_v1alpha/representations.rb
|
|
964
|
+
- generated/google/apis/websecurityscanner_v1alpha/service.rb
|
|
957
965
|
- generated/google/apis/youtube_analytics_v1.rb
|
|
958
966
|
- generated/google/apis/youtube_analytics_v1/classes.rb
|
|
959
967
|
- generated/google/apis/youtube_analytics_v1/representations.rb
|
|
@@ -962,6 +970,10 @@ files:
|
|
|
962
970
|
- generated/google/apis/youtube_analytics_v1beta1/classes.rb
|
|
963
971
|
- generated/google/apis/youtube_analytics_v1beta1/representations.rb
|
|
964
972
|
- generated/google/apis/youtube_analytics_v1beta1/service.rb
|
|
973
|
+
- generated/google/apis/youtube_analytics_v2.rb
|
|
974
|
+
- generated/google/apis/youtube_analytics_v2/classes.rb
|
|
975
|
+
- generated/google/apis/youtube_analytics_v2/representations.rb
|
|
976
|
+
- generated/google/apis/youtube_analytics_v2/service.rb
|
|
965
977
|
- generated/google/apis/youtube_partner_v1.rb
|
|
966
978
|
- generated/google/apis/youtube_partner_v1/classes.rb
|
|
967
979
|
- generated/google/apis/youtube_partner_v1/representations.rb
|
|
@@ -1,3820 +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 'date'
|
|
16
|
-
require 'google/apis/core/base_service'
|
|
17
|
-
require 'google/apis/core/json_representation'
|
|
18
|
-
require 'google/apis/core/hashable'
|
|
19
|
-
require 'google/apis/errors'
|
|
20
|
-
|
|
21
|
-
module Google
|
|
22
|
-
module Apis
|
|
23
|
-
module DlpV2beta1
|
|
24
|
-
|
|
25
|
-
# The request message for Operations.CancelOperation.
|
|
26
|
-
class GoogleLongrunningCancelOperationRequest
|
|
27
|
-
include Google::Apis::Core::Hashable
|
|
28
|
-
|
|
29
|
-
def initialize(**args)
|
|
30
|
-
update!(**args)
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Update properties of this object
|
|
34
|
-
def update!(**args)
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
# The response message for Operations.ListOperations.
|
|
39
|
-
class GoogleLongrunningListOperationsResponse
|
|
40
|
-
include Google::Apis::Core::Hashable
|
|
41
|
-
|
|
42
|
-
# The standard List next-page token.
|
|
43
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
44
|
-
# @return [String]
|
|
45
|
-
attr_accessor :next_page_token
|
|
46
|
-
|
|
47
|
-
# A list of operations that matches the specified filter in the request.
|
|
48
|
-
# Corresponds to the JSON property `operations`
|
|
49
|
-
# @return [Array<Google::Apis::DlpV2beta1::GoogleLongrunningOperation>]
|
|
50
|
-
attr_accessor :operations
|
|
51
|
-
|
|
52
|
-
def initialize(**args)
|
|
53
|
-
update!(**args)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
# Update properties of this object
|
|
57
|
-
def update!(**args)
|
|
58
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
59
|
-
@operations = args[:operations] if args.key?(:operations)
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
# This resource represents a long-running operation that is the result of a
|
|
64
|
-
# network API call.
|
|
65
|
-
class GoogleLongrunningOperation
|
|
66
|
-
include Google::Apis::Core::Hashable
|
|
67
|
-
|
|
68
|
-
# If the value is `false`, it means the operation is still in progress.
|
|
69
|
-
# If `true`, the operation is completed, and either `error` or `response` is
|
|
70
|
-
# available.
|
|
71
|
-
# Corresponds to the JSON property `done`
|
|
72
|
-
# @return [Boolean]
|
|
73
|
-
attr_accessor :done
|
|
74
|
-
alias_method :done?, :done
|
|
75
|
-
|
|
76
|
-
# The `Status` type defines a logical error model that is suitable for different
|
|
77
|
-
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
78
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
79
|
-
# - Simple to use and understand for most users
|
|
80
|
-
# - Flexible enough to meet unexpected needs
|
|
81
|
-
# # Overview
|
|
82
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
|
83
|
-
# and error details. The error code should be an enum value of
|
|
84
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
85
|
-
# error message should be a developer-facing English message that helps
|
|
86
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
87
|
-
# error message is needed, put the localized message in the error details or
|
|
88
|
-
# localize it in the client. The optional error details may contain arbitrary
|
|
89
|
-
# information about the error. There is a predefined set of error detail types
|
|
90
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
|
91
|
-
# # Language mapping
|
|
92
|
-
# The `Status` message is the logical representation of the error model, but it
|
|
93
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
|
94
|
-
# exposed in different client libraries and different wire protocols, it can be
|
|
95
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
96
|
-
# in Java, but more likely mapped to some error codes in C.
|
|
97
|
-
# # Other uses
|
|
98
|
-
# The error model and the `Status` message can be used in a variety of
|
|
99
|
-
# environments, either with or without APIs, to provide a
|
|
100
|
-
# consistent developer experience across different environments.
|
|
101
|
-
# Example uses of this error model include:
|
|
102
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
|
103
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
|
104
|
-
# errors.
|
|
105
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
106
|
-
# have a `Status` message for error reporting.
|
|
107
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
|
108
|
-
# `Status` message should be used directly inside batch response, one for
|
|
109
|
-
# each error sub-response.
|
|
110
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
111
|
-
# results in its response, the status of those operations should be
|
|
112
|
-
# represented directly using the `Status` message.
|
|
113
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
114
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
|
115
|
-
# Corresponds to the JSON property `error`
|
|
116
|
-
# @return [Google::Apis::DlpV2beta1::GoogleRpcStatus]
|
|
117
|
-
attr_accessor :error
|
|
118
|
-
|
|
119
|
-
# This field will contain an InspectOperationMetadata object for `inspect.
|
|
120
|
-
# operations.create` or a RiskAnalysisOperationMetadata object for `dataSource.
|
|
121
|
-
# analyze`. This will always be returned with the Operation.
|
|
122
|
-
# Corresponds to the JSON property `metadata`
|
|
123
|
-
# @return [Hash<String,Object>]
|
|
124
|
-
attr_accessor :metadata
|
|
125
|
-
|
|
126
|
-
# The server-assigned name. The `name` should have the format of `inspect/
|
|
127
|
-
# operations/<identifier>`.
|
|
128
|
-
# Corresponds to the JSON property `name`
|
|
129
|
-
# @return [String]
|
|
130
|
-
attr_accessor :name
|
|
131
|
-
|
|
132
|
-
# This field will contain an InspectOperationResult object for `inspect.
|
|
133
|
-
# operations.create` or a RiskAnalysisOperationResult object for `dataSource.
|
|
134
|
-
# analyze`.
|
|
135
|
-
# Corresponds to the JSON property `response`
|
|
136
|
-
# @return [Hash<String,Object>]
|
|
137
|
-
attr_accessor :response
|
|
138
|
-
|
|
139
|
-
def initialize(**args)
|
|
140
|
-
update!(**args)
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
# Update properties of this object
|
|
144
|
-
def update!(**args)
|
|
145
|
-
@done = args[:done] if args.key?(:done)
|
|
146
|
-
@error = args[:error] if args.key?(:error)
|
|
147
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
|
148
|
-
@name = args[:name] if args.key?(:name)
|
|
149
|
-
@response = args[:response] if args.key?(:response)
|
|
150
|
-
end
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
# Request for creating a risk analysis operation.
|
|
154
|
-
class GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest
|
|
155
|
-
include Google::Apis::Core::Hashable
|
|
156
|
-
|
|
157
|
-
# Privacy metric to compute for reidentification risk analysis.
|
|
158
|
-
# Corresponds to the JSON property `privacyMetric`
|
|
159
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PrivacyMetric]
|
|
160
|
-
attr_accessor :privacy_metric
|
|
161
|
-
|
|
162
|
-
# Message defining the location of a BigQuery table. A table is uniquely
|
|
163
|
-
# identified by its project_id, dataset_id, and table_name. Within a query
|
|
164
|
-
# a table is often referenced with a string in the format of:
|
|
165
|
-
# `<project_id>:<dataset_id>.<table_id>` or
|
|
166
|
-
# `<project_id>.<dataset_id>.<table_id>`.
|
|
167
|
-
# Corresponds to the JSON property `sourceTable`
|
|
168
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryTable]
|
|
169
|
-
attr_accessor :source_table
|
|
170
|
-
|
|
171
|
-
def initialize(**args)
|
|
172
|
-
update!(**args)
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
# Update properties of this object
|
|
176
|
-
def update!(**args)
|
|
177
|
-
@privacy_metric = args[:privacy_metric] if args.key?(:privacy_metric)
|
|
178
|
-
@source_table = args[:source_table] if args.key?(:source_table)
|
|
179
|
-
end
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
# An auxiliary table contains statistical information on the relative
|
|
183
|
-
# frequency of different quasi-identifiers values. It has one or several
|
|
184
|
-
# quasi-identifiers columns, and one column that indicates the relative
|
|
185
|
-
# frequency of each quasi-identifier tuple.
|
|
186
|
-
# If a tuple is present in the data but not in the auxiliary table, the
|
|
187
|
-
# corresponding relative frequency is assumed to be zero (and thus, the
|
|
188
|
-
# tuple is highly reidentifiable).
|
|
189
|
-
class GooglePrivacyDlpV2beta1AuxiliaryTable
|
|
190
|
-
include Google::Apis::Core::Hashable
|
|
191
|
-
|
|
192
|
-
# Quasi-identifier columns. [required]
|
|
193
|
-
# Corresponds to the JSON property `quasiIds`
|
|
194
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1QuasiIdField>]
|
|
195
|
-
attr_accessor :quasi_ids
|
|
196
|
-
|
|
197
|
-
# General identifier of a data field in a storage service.
|
|
198
|
-
# Corresponds to the JSON property `relativeFrequency`
|
|
199
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId]
|
|
200
|
-
attr_accessor :relative_frequency
|
|
201
|
-
|
|
202
|
-
# Message defining the location of a BigQuery table. A table is uniquely
|
|
203
|
-
# identified by its project_id, dataset_id, and table_name. Within a query
|
|
204
|
-
# a table is often referenced with a string in the format of:
|
|
205
|
-
# `<project_id>:<dataset_id>.<table_id>` or
|
|
206
|
-
# `<project_id>.<dataset_id>.<table_id>`.
|
|
207
|
-
# Corresponds to the JSON property `table`
|
|
208
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryTable]
|
|
209
|
-
attr_accessor :table
|
|
210
|
-
|
|
211
|
-
def initialize(**args)
|
|
212
|
-
update!(**args)
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
# Update properties of this object
|
|
216
|
-
def update!(**args)
|
|
217
|
-
@quasi_ids = args[:quasi_ids] if args.key?(:quasi_ids)
|
|
218
|
-
@relative_frequency = args[:relative_frequency] if args.key?(:relative_frequency)
|
|
219
|
-
@table = args[:table] if args.key?(:table)
|
|
220
|
-
end
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
# LINT.IfChange
|
|
224
|
-
# Row key for identifying a record in BigQuery table.
|
|
225
|
-
class GooglePrivacyDlpV2beta1BigQueryKey
|
|
226
|
-
include Google::Apis::Core::Hashable
|
|
227
|
-
|
|
228
|
-
# Absolute number of the row from the beginning of the table at the time
|
|
229
|
-
# of scanning.
|
|
230
|
-
# Corresponds to the JSON property `rowNumber`
|
|
231
|
-
# @return [Fixnum]
|
|
232
|
-
attr_accessor :row_number
|
|
233
|
-
|
|
234
|
-
# Message defining the location of a BigQuery table. A table is uniquely
|
|
235
|
-
# identified by its project_id, dataset_id, and table_name. Within a query
|
|
236
|
-
# a table is often referenced with a string in the format of:
|
|
237
|
-
# `<project_id>:<dataset_id>.<table_id>` or
|
|
238
|
-
# `<project_id>.<dataset_id>.<table_id>`.
|
|
239
|
-
# Corresponds to the JSON property `tableReference`
|
|
240
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryTable]
|
|
241
|
-
attr_accessor :table_reference
|
|
242
|
-
|
|
243
|
-
def initialize(**args)
|
|
244
|
-
update!(**args)
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
# Update properties of this object
|
|
248
|
-
def update!(**args)
|
|
249
|
-
@row_number = args[:row_number] if args.key?(:row_number)
|
|
250
|
-
@table_reference = args[:table_reference] if args.key?(:table_reference)
|
|
251
|
-
end
|
|
252
|
-
end
|
|
253
|
-
|
|
254
|
-
# Options defining BigQuery table and row identifiers.
|
|
255
|
-
class GooglePrivacyDlpV2beta1BigQueryOptions
|
|
256
|
-
include Google::Apis::Core::Hashable
|
|
257
|
-
|
|
258
|
-
# References to fields uniquely identifying rows within the table.
|
|
259
|
-
# Nested fields in the format, like `person.birthdate.year`, are allowed.
|
|
260
|
-
# Corresponds to the JSON property `identifyingFields`
|
|
261
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId>]
|
|
262
|
-
attr_accessor :identifying_fields
|
|
263
|
-
|
|
264
|
-
# Message defining the location of a BigQuery table. A table is uniquely
|
|
265
|
-
# identified by its project_id, dataset_id, and table_name. Within a query
|
|
266
|
-
# a table is often referenced with a string in the format of:
|
|
267
|
-
# `<project_id>:<dataset_id>.<table_id>` or
|
|
268
|
-
# `<project_id>.<dataset_id>.<table_id>`.
|
|
269
|
-
# Corresponds to the JSON property `tableReference`
|
|
270
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryTable]
|
|
271
|
-
attr_accessor :table_reference
|
|
272
|
-
|
|
273
|
-
def initialize(**args)
|
|
274
|
-
update!(**args)
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
# Update properties of this object
|
|
278
|
-
def update!(**args)
|
|
279
|
-
@identifying_fields = args[:identifying_fields] if args.key?(:identifying_fields)
|
|
280
|
-
@table_reference = args[:table_reference] if args.key?(:table_reference)
|
|
281
|
-
end
|
|
282
|
-
end
|
|
283
|
-
|
|
284
|
-
# Message defining the location of a BigQuery table. A table is uniquely
|
|
285
|
-
# identified by its project_id, dataset_id, and table_name. Within a query
|
|
286
|
-
# a table is often referenced with a string in the format of:
|
|
287
|
-
# `<project_id>:<dataset_id>.<table_id>` or
|
|
288
|
-
# `<project_id>.<dataset_id>.<table_id>`.
|
|
289
|
-
class GooglePrivacyDlpV2beta1BigQueryTable
|
|
290
|
-
include Google::Apis::Core::Hashable
|
|
291
|
-
|
|
292
|
-
# Dataset ID of the table.
|
|
293
|
-
# Corresponds to the JSON property `datasetId`
|
|
294
|
-
# @return [String]
|
|
295
|
-
attr_accessor :dataset_id
|
|
296
|
-
|
|
297
|
-
# The Google Cloud Platform project ID of the project containing the table.
|
|
298
|
-
# If omitted, project ID is inferred from the API call.
|
|
299
|
-
# Corresponds to the JSON property `projectId`
|
|
300
|
-
# @return [String]
|
|
301
|
-
attr_accessor :project_id
|
|
302
|
-
|
|
303
|
-
# Name of the table.
|
|
304
|
-
# Corresponds to the JSON property `tableId`
|
|
305
|
-
# @return [String]
|
|
306
|
-
attr_accessor :table_id
|
|
307
|
-
|
|
308
|
-
def initialize(**args)
|
|
309
|
-
update!(**args)
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
# Update properties of this object
|
|
313
|
-
def update!(**args)
|
|
314
|
-
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
|
|
315
|
-
@project_id = args[:project_id] if args.key?(:project_id)
|
|
316
|
-
@table_id = args[:table_id] if args.key?(:table_id)
|
|
317
|
-
end
|
|
318
|
-
end
|
|
319
|
-
|
|
320
|
-
# Buckets represented as ranges, along with replacement values. Ranges must
|
|
321
|
-
# be non-overlapping.
|
|
322
|
-
class GooglePrivacyDlpV2beta1Bucket
|
|
323
|
-
include Google::Apis::Core::Hashable
|
|
324
|
-
|
|
325
|
-
# Set of primitive values supported by the system.
|
|
326
|
-
# Note that for the purposes of inspection or transformation, the number
|
|
327
|
-
# of bytes considered to comprise a 'Value' is based on its representation
|
|
328
|
-
# as a UTF-8 encoded string. For example, if 'integer_value' is set to
|
|
329
|
-
# 123456789, the number of bytes would be counted as 9, even though an
|
|
330
|
-
# int64 only holds up to 8 bytes of data.
|
|
331
|
-
# Corresponds to the JSON property `max`
|
|
332
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value]
|
|
333
|
-
attr_accessor :max
|
|
334
|
-
|
|
335
|
-
# Set of primitive values supported by the system.
|
|
336
|
-
# Note that for the purposes of inspection or transformation, the number
|
|
337
|
-
# of bytes considered to comprise a 'Value' is based on its representation
|
|
338
|
-
# as a UTF-8 encoded string. For example, if 'integer_value' is set to
|
|
339
|
-
# 123456789, the number of bytes would be counted as 9, even though an
|
|
340
|
-
# int64 only holds up to 8 bytes of data.
|
|
341
|
-
# Corresponds to the JSON property `min`
|
|
342
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value]
|
|
343
|
-
attr_accessor :min
|
|
344
|
-
|
|
345
|
-
# Set of primitive values supported by the system.
|
|
346
|
-
# Note that for the purposes of inspection or transformation, the number
|
|
347
|
-
# of bytes considered to comprise a 'Value' is based on its representation
|
|
348
|
-
# as a UTF-8 encoded string. For example, if 'integer_value' is set to
|
|
349
|
-
# 123456789, the number of bytes would be counted as 9, even though an
|
|
350
|
-
# int64 only holds up to 8 bytes of data.
|
|
351
|
-
# Corresponds to the JSON property `replacementValue`
|
|
352
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value]
|
|
353
|
-
attr_accessor :replacement_value
|
|
354
|
-
|
|
355
|
-
def initialize(**args)
|
|
356
|
-
update!(**args)
|
|
357
|
-
end
|
|
358
|
-
|
|
359
|
-
# Update properties of this object
|
|
360
|
-
def update!(**args)
|
|
361
|
-
@max = args[:max] if args.key?(:max)
|
|
362
|
-
@min = args[:min] if args.key?(:min)
|
|
363
|
-
@replacement_value = args[:replacement_value] if args.key?(:replacement_value)
|
|
364
|
-
end
|
|
365
|
-
end
|
|
366
|
-
|
|
367
|
-
# Generalization function that buckets values based on ranges. The ranges and
|
|
368
|
-
# replacement values are dynamically provided by the user for custom behavior,
|
|
369
|
-
# such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH
|
|
370
|
-
# This can be used on
|
|
371
|
-
# data of type: number, long, string, timestamp.
|
|
372
|
-
# If the bound `Value` type differs from the type of data being transformed, we
|
|
373
|
-
# will first attempt converting the type of the data to be transformed to match
|
|
374
|
-
# the type of the bound before comparing.
|
|
375
|
-
class GooglePrivacyDlpV2beta1BucketingConfig
|
|
376
|
-
include Google::Apis::Core::Hashable
|
|
377
|
-
|
|
378
|
-
#
|
|
379
|
-
# Corresponds to the JSON property `buckets`
|
|
380
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Bucket>]
|
|
381
|
-
attr_accessor :buckets
|
|
382
|
-
|
|
383
|
-
def initialize(**args)
|
|
384
|
-
update!(**args)
|
|
385
|
-
end
|
|
386
|
-
|
|
387
|
-
# Update properties of this object
|
|
388
|
-
def update!(**args)
|
|
389
|
-
@buckets = args[:buckets] if args.key?(:buckets)
|
|
390
|
-
end
|
|
391
|
-
end
|
|
392
|
-
|
|
393
|
-
# Compute numerical stats over an individual column, including
|
|
394
|
-
# number of distinct values and value count distribution.
|
|
395
|
-
class GooglePrivacyDlpV2beta1CategoricalStatsConfig
|
|
396
|
-
include Google::Apis::Core::Hashable
|
|
397
|
-
|
|
398
|
-
# General identifier of a data field in a storage service.
|
|
399
|
-
# Corresponds to the JSON property `field`
|
|
400
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId]
|
|
401
|
-
attr_accessor :field
|
|
402
|
-
|
|
403
|
-
def initialize(**args)
|
|
404
|
-
update!(**args)
|
|
405
|
-
end
|
|
406
|
-
|
|
407
|
-
# Update properties of this object
|
|
408
|
-
def update!(**args)
|
|
409
|
-
@field = args[:field] if args.key?(:field)
|
|
410
|
-
end
|
|
411
|
-
end
|
|
412
|
-
|
|
413
|
-
# Histogram bucket of value frequencies in the column.
|
|
414
|
-
class GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket
|
|
415
|
-
include Google::Apis::Core::Hashable
|
|
416
|
-
|
|
417
|
-
# Total number of records in this bucket.
|
|
418
|
-
# Corresponds to the JSON property `bucketSize`
|
|
419
|
-
# @return [Fixnum]
|
|
420
|
-
attr_accessor :bucket_size
|
|
421
|
-
|
|
422
|
-
# Sample of value frequencies in this bucket. The total number of
|
|
423
|
-
# values returned per bucket is capped at 20.
|
|
424
|
-
# Corresponds to the JSON property `bucketValues`
|
|
425
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ValueFrequency>]
|
|
426
|
-
attr_accessor :bucket_values
|
|
427
|
-
|
|
428
|
-
# Lower bound on the value frequency of the values in this bucket.
|
|
429
|
-
# Corresponds to the JSON property `valueFrequencyLowerBound`
|
|
430
|
-
# @return [Fixnum]
|
|
431
|
-
attr_accessor :value_frequency_lower_bound
|
|
432
|
-
|
|
433
|
-
# Upper bound on the value frequency of the values in this bucket.
|
|
434
|
-
# Corresponds to the JSON property `valueFrequencyUpperBound`
|
|
435
|
-
# @return [Fixnum]
|
|
436
|
-
attr_accessor :value_frequency_upper_bound
|
|
437
|
-
|
|
438
|
-
def initialize(**args)
|
|
439
|
-
update!(**args)
|
|
440
|
-
end
|
|
441
|
-
|
|
442
|
-
# Update properties of this object
|
|
443
|
-
def update!(**args)
|
|
444
|
-
@bucket_size = args[:bucket_size] if args.key?(:bucket_size)
|
|
445
|
-
@bucket_values = args[:bucket_values] if args.key?(:bucket_values)
|
|
446
|
-
@value_frequency_lower_bound = args[:value_frequency_lower_bound] if args.key?(:value_frequency_lower_bound)
|
|
447
|
-
@value_frequency_upper_bound = args[:value_frequency_upper_bound] if args.key?(:value_frequency_upper_bound)
|
|
448
|
-
end
|
|
449
|
-
end
|
|
450
|
-
|
|
451
|
-
# Result of the categorical stats computation.
|
|
452
|
-
class GooglePrivacyDlpV2beta1CategoricalStatsResult
|
|
453
|
-
include Google::Apis::Core::Hashable
|
|
454
|
-
|
|
455
|
-
# Histogram of value frequencies in the column.
|
|
456
|
-
# Corresponds to the JSON property `valueFrequencyHistogramBuckets`
|
|
457
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket>]
|
|
458
|
-
attr_accessor :value_frequency_histogram_buckets
|
|
459
|
-
|
|
460
|
-
def initialize(**args)
|
|
461
|
-
update!(**args)
|
|
462
|
-
end
|
|
463
|
-
|
|
464
|
-
# Update properties of this object
|
|
465
|
-
def update!(**args)
|
|
466
|
-
@value_frequency_histogram_buckets = args[:value_frequency_histogram_buckets] if args.key?(:value_frequency_histogram_buckets)
|
|
467
|
-
end
|
|
468
|
-
end
|
|
469
|
-
|
|
470
|
-
# Info Type Category description.
|
|
471
|
-
class GooglePrivacyDlpV2beta1CategoryDescription
|
|
472
|
-
include Google::Apis::Core::Hashable
|
|
473
|
-
|
|
474
|
-
# Human readable form of the category name.
|
|
475
|
-
# Corresponds to the JSON property `displayName`
|
|
476
|
-
# @return [String]
|
|
477
|
-
attr_accessor :display_name
|
|
478
|
-
|
|
479
|
-
# Internal name of the category.
|
|
480
|
-
# Corresponds to the JSON property `name`
|
|
481
|
-
# @return [String]
|
|
482
|
-
attr_accessor :name
|
|
483
|
-
|
|
484
|
-
def initialize(**args)
|
|
485
|
-
update!(**args)
|
|
486
|
-
end
|
|
487
|
-
|
|
488
|
-
# Update properties of this object
|
|
489
|
-
def update!(**args)
|
|
490
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
|
491
|
-
@name = args[:name] if args.key?(:name)
|
|
492
|
-
end
|
|
493
|
-
end
|
|
494
|
-
|
|
495
|
-
# Partially mask a string by replacing a given number of characters with a
|
|
496
|
-
# fixed character. Masking can start from the beginning or end of the string.
|
|
497
|
-
# This can be used on data of any type (numbers, longs, and so on) and when
|
|
498
|
-
# de-identifying structured data we'll attempt to preserve the original data's
|
|
499
|
-
# type. (This allows you to take a long like 123 and modify it to a string like
|
|
500
|
-
# **3.
|
|
501
|
-
class GooglePrivacyDlpV2beta1CharacterMaskConfig
|
|
502
|
-
include Google::Apis::Core::Hashable
|
|
503
|
-
|
|
504
|
-
# When masking a string, items in this list will be skipped when replacing.
|
|
505
|
-
# For example, if your string is 555-555-5555 and you ask us to skip `-` and
|
|
506
|
-
# mask 5 chars with * we would produce ***-*55-5555.
|
|
507
|
-
# Corresponds to the JSON property `charactersToIgnore`
|
|
508
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CharsToIgnore>]
|
|
509
|
-
attr_accessor :characters_to_ignore
|
|
510
|
-
|
|
511
|
-
# Character to mask the sensitive values—for example, "*" for an
|
|
512
|
-
# alphabetic string such as name, or "0" for a numeric string such as ZIP
|
|
513
|
-
# code or credit card number. String must have length 1. If not supplied, we
|
|
514
|
-
# will default to "*" for strings, 0 for digits.
|
|
515
|
-
# Corresponds to the JSON property `maskingCharacter`
|
|
516
|
-
# @return [String]
|
|
517
|
-
attr_accessor :masking_character
|
|
518
|
-
|
|
519
|
-
# Number of characters to mask. If not set, all matching chars will be
|
|
520
|
-
# masked. Skipped characters do not count towards this tally.
|
|
521
|
-
# Corresponds to the JSON property `numberToMask`
|
|
522
|
-
# @return [Fixnum]
|
|
523
|
-
attr_accessor :number_to_mask
|
|
524
|
-
|
|
525
|
-
# Mask characters in reverse order. For example, if `masking_character` is
|
|
526
|
-
# '0', number_to_mask is 14, and `reverse_order` is false, then
|
|
527
|
-
# 1234-5678-9012-3456 -> 00000000000000-3456
|
|
528
|
-
# If `masking_character` is '*', `number_to_mask` is 3, and `reverse_order`
|
|
529
|
-
# is true, then 12345 -> 12***
|
|
530
|
-
# Corresponds to the JSON property `reverseOrder`
|
|
531
|
-
# @return [Boolean]
|
|
532
|
-
attr_accessor :reverse_order
|
|
533
|
-
alias_method :reverse_order?, :reverse_order
|
|
534
|
-
|
|
535
|
-
def initialize(**args)
|
|
536
|
-
update!(**args)
|
|
537
|
-
end
|
|
538
|
-
|
|
539
|
-
# Update properties of this object
|
|
540
|
-
def update!(**args)
|
|
541
|
-
@characters_to_ignore = args[:characters_to_ignore] if args.key?(:characters_to_ignore)
|
|
542
|
-
@masking_character = args[:masking_character] if args.key?(:masking_character)
|
|
543
|
-
@number_to_mask = args[:number_to_mask] if args.key?(:number_to_mask)
|
|
544
|
-
@reverse_order = args[:reverse_order] if args.key?(:reverse_order)
|
|
545
|
-
end
|
|
546
|
-
end
|
|
547
|
-
|
|
548
|
-
# Characters to skip when doing deidentification of a value. These will be left
|
|
549
|
-
# alone and skipped.
|
|
550
|
-
class GooglePrivacyDlpV2beta1CharsToIgnore
|
|
551
|
-
include Google::Apis::Core::Hashable
|
|
552
|
-
|
|
553
|
-
#
|
|
554
|
-
# Corresponds to the JSON property `charactersToSkip`
|
|
555
|
-
# @return [String]
|
|
556
|
-
attr_accessor :characters_to_skip
|
|
557
|
-
|
|
558
|
-
#
|
|
559
|
-
# Corresponds to the JSON property `commonCharactersToIgnore`
|
|
560
|
-
# @return [String]
|
|
561
|
-
attr_accessor :common_characters_to_ignore
|
|
562
|
-
|
|
563
|
-
def initialize(**args)
|
|
564
|
-
update!(**args)
|
|
565
|
-
end
|
|
566
|
-
|
|
567
|
-
# Update properties of this object
|
|
568
|
-
def update!(**args)
|
|
569
|
-
@characters_to_skip = args[:characters_to_skip] if args.key?(:characters_to_skip)
|
|
570
|
-
@common_characters_to_ignore = args[:common_characters_to_ignore] if args.key?(:common_characters_to_ignore)
|
|
571
|
-
end
|
|
572
|
-
end
|
|
573
|
-
|
|
574
|
-
# Record key for a finding in a Cloud Storage file.
|
|
575
|
-
class GooglePrivacyDlpV2beta1CloudStorageKey
|
|
576
|
-
include Google::Apis::Core::Hashable
|
|
577
|
-
|
|
578
|
-
# Path to the file.
|
|
579
|
-
# Corresponds to the JSON property `filePath`
|
|
580
|
-
# @return [String]
|
|
581
|
-
attr_accessor :file_path
|
|
582
|
-
|
|
583
|
-
# Byte offset of the referenced data in the file.
|
|
584
|
-
# Corresponds to the JSON property `startOffset`
|
|
585
|
-
# @return [Fixnum]
|
|
586
|
-
attr_accessor :start_offset
|
|
587
|
-
|
|
588
|
-
def initialize(**args)
|
|
589
|
-
update!(**args)
|
|
590
|
-
end
|
|
591
|
-
|
|
592
|
-
# Update properties of this object
|
|
593
|
-
def update!(**args)
|
|
594
|
-
@file_path = args[:file_path] if args.key?(:file_path)
|
|
595
|
-
@start_offset = args[:start_offset] if args.key?(:start_offset)
|
|
596
|
-
end
|
|
597
|
-
end
|
|
598
|
-
|
|
599
|
-
# Options defining a file or a set of files (path ending with *) within
|
|
600
|
-
# a Google Cloud Storage bucket.
|
|
601
|
-
class GooglePrivacyDlpV2beta1CloudStorageOptions
|
|
602
|
-
include Google::Apis::Core::Hashable
|
|
603
|
-
|
|
604
|
-
# Set of files to scan.
|
|
605
|
-
# Corresponds to the JSON property `fileSet`
|
|
606
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FileSet]
|
|
607
|
-
attr_accessor :file_set
|
|
608
|
-
|
|
609
|
-
def initialize(**args)
|
|
610
|
-
update!(**args)
|
|
611
|
-
end
|
|
612
|
-
|
|
613
|
-
# Update properties of this object
|
|
614
|
-
def update!(**args)
|
|
615
|
-
@file_set = args[:file_set] if args.key?(:file_set)
|
|
616
|
-
end
|
|
617
|
-
end
|
|
618
|
-
|
|
619
|
-
# A location in Cloud Storage.
|
|
620
|
-
class GooglePrivacyDlpV2beta1CloudStoragePath
|
|
621
|
-
include Google::Apis::Core::Hashable
|
|
622
|
-
|
|
623
|
-
# The url, in the format of `gs://bucket/<path>`.
|
|
624
|
-
# Corresponds to the JSON property `path`
|
|
625
|
-
# @return [String]
|
|
626
|
-
attr_accessor :path
|
|
627
|
-
|
|
628
|
-
def initialize(**args)
|
|
629
|
-
update!(**args)
|
|
630
|
-
end
|
|
631
|
-
|
|
632
|
-
# Update properties of this object
|
|
633
|
-
def update!(**args)
|
|
634
|
-
@path = args[:path] if args.key?(:path)
|
|
635
|
-
end
|
|
636
|
-
end
|
|
637
|
-
|
|
638
|
-
# Represents a color in the RGB color space.
|
|
639
|
-
class GooglePrivacyDlpV2beta1Color
|
|
640
|
-
include Google::Apis::Core::Hashable
|
|
641
|
-
|
|
642
|
-
# The amount of blue in the color as a value in the interval [0, 1].
|
|
643
|
-
# Corresponds to the JSON property `blue`
|
|
644
|
-
# @return [Float]
|
|
645
|
-
attr_accessor :blue
|
|
646
|
-
|
|
647
|
-
# The amount of green in the color as a value in the interval [0, 1].
|
|
648
|
-
# Corresponds to the JSON property `green`
|
|
649
|
-
# @return [Float]
|
|
650
|
-
attr_accessor :green
|
|
651
|
-
|
|
652
|
-
# The amount of red in the color as a value in the interval [0, 1].
|
|
653
|
-
# Corresponds to the JSON property `red`
|
|
654
|
-
# @return [Float]
|
|
655
|
-
attr_accessor :red
|
|
656
|
-
|
|
657
|
-
def initialize(**args)
|
|
658
|
-
update!(**args)
|
|
659
|
-
end
|
|
660
|
-
|
|
661
|
-
# Update properties of this object
|
|
662
|
-
def update!(**args)
|
|
663
|
-
@blue = args[:blue] if args.key?(:blue)
|
|
664
|
-
@green = args[:green] if args.key?(:green)
|
|
665
|
-
@red = args[:red] if args.key?(:red)
|
|
666
|
-
end
|
|
667
|
-
end
|
|
668
|
-
|
|
669
|
-
# The field type of `value` and `field` do not need to match to be
|
|
670
|
-
# considered equal, but not all comparisons are possible.
|
|
671
|
-
# A `value` of type:
|
|
672
|
-
# - `string` can be compared against all other types
|
|
673
|
-
# - `boolean` can only be compared against other booleans
|
|
674
|
-
# - `integer` can be compared against doubles or a string if the string value
|
|
675
|
-
# can be parsed as an integer.
|
|
676
|
-
# - `double` can be compared against integers or a string if the string can
|
|
677
|
-
# be parsed as a double.
|
|
678
|
-
# - `Timestamp` can be compared against strings in RFC 3339 date string
|
|
679
|
-
# format.
|
|
680
|
-
# - `TimeOfDay` can be compared against timestamps and strings in the format
|
|
681
|
-
# of 'HH:mm:ss'.
|
|
682
|
-
# If we fail to compare do to type mismatch, a warning will be given and
|
|
683
|
-
# the condition will evaluate to false.
|
|
684
|
-
class GooglePrivacyDlpV2beta1Condition
|
|
685
|
-
include Google::Apis::Core::Hashable
|
|
686
|
-
|
|
687
|
-
# General identifier of a data field in a storage service.
|
|
688
|
-
# Corresponds to the JSON property `field`
|
|
689
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId]
|
|
690
|
-
attr_accessor :field
|
|
691
|
-
|
|
692
|
-
# Operator used to compare the field or info type to the value. [required]
|
|
693
|
-
# Corresponds to the JSON property `operator`
|
|
694
|
-
# @return [String]
|
|
695
|
-
attr_accessor :operator
|
|
696
|
-
|
|
697
|
-
# Set of primitive values supported by the system.
|
|
698
|
-
# Note that for the purposes of inspection or transformation, the number
|
|
699
|
-
# of bytes considered to comprise a 'Value' is based on its representation
|
|
700
|
-
# as a UTF-8 encoded string. For example, if 'integer_value' is set to
|
|
701
|
-
# 123456789, the number of bytes would be counted as 9, even though an
|
|
702
|
-
# int64 only holds up to 8 bytes of data.
|
|
703
|
-
# Corresponds to the JSON property `value`
|
|
704
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value]
|
|
705
|
-
attr_accessor :value
|
|
706
|
-
|
|
707
|
-
def initialize(**args)
|
|
708
|
-
update!(**args)
|
|
709
|
-
end
|
|
710
|
-
|
|
711
|
-
# Update properties of this object
|
|
712
|
-
def update!(**args)
|
|
713
|
-
@field = args[:field] if args.key?(:field)
|
|
714
|
-
@operator = args[:operator] if args.key?(:operator)
|
|
715
|
-
@value = args[:value] if args.key?(:value)
|
|
716
|
-
end
|
|
717
|
-
end
|
|
718
|
-
|
|
719
|
-
#
|
|
720
|
-
class GooglePrivacyDlpV2beta1Conditions
|
|
721
|
-
include Google::Apis::Core::Hashable
|
|
722
|
-
|
|
723
|
-
#
|
|
724
|
-
# Corresponds to the JSON property `conditions`
|
|
725
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Condition>]
|
|
726
|
-
attr_accessor :conditions
|
|
727
|
-
|
|
728
|
-
def initialize(**args)
|
|
729
|
-
update!(**args)
|
|
730
|
-
end
|
|
731
|
-
|
|
732
|
-
# Update properties of this object
|
|
733
|
-
def update!(**args)
|
|
734
|
-
@conditions = args[:conditions] if args.key?(:conditions)
|
|
735
|
-
end
|
|
736
|
-
end
|
|
737
|
-
|
|
738
|
-
# Container structure for the content to inspect.
|
|
739
|
-
class GooglePrivacyDlpV2beta1ContentItem
|
|
740
|
-
include Google::Apis::Core::Hashable
|
|
741
|
-
|
|
742
|
-
# Content data to inspect or redact.
|
|
743
|
-
# Corresponds to the JSON property `data`
|
|
744
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
745
|
-
# @return [String]
|
|
746
|
-
attr_accessor :data
|
|
747
|
-
|
|
748
|
-
# Structured content to inspect. Up to 50,000 `Value`s per request allowed.
|
|
749
|
-
# Corresponds to the JSON property `table`
|
|
750
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Table]
|
|
751
|
-
attr_accessor :table
|
|
752
|
-
|
|
753
|
-
# Type of the content, as defined in Content-Type HTTP header.
|
|
754
|
-
# Supported types are: all "text" types, octet streams, PNG images,
|
|
755
|
-
# JPEG images.
|
|
756
|
-
# Corresponds to the JSON property `type`
|
|
757
|
-
# @return [String]
|
|
758
|
-
attr_accessor :type
|
|
759
|
-
|
|
760
|
-
# String data to inspect or redact.
|
|
761
|
-
# Corresponds to the JSON property `value`
|
|
762
|
-
# @return [String]
|
|
763
|
-
attr_accessor :value
|
|
764
|
-
|
|
765
|
-
def initialize(**args)
|
|
766
|
-
update!(**args)
|
|
767
|
-
end
|
|
768
|
-
|
|
769
|
-
# Update properties of this object
|
|
770
|
-
def update!(**args)
|
|
771
|
-
@data = args[:data] if args.key?(:data)
|
|
772
|
-
@table = args[:table] if args.key?(:table)
|
|
773
|
-
@type = args[:type] if args.key?(:type)
|
|
774
|
-
@value = args[:value] if args.key?(:value)
|
|
775
|
-
end
|
|
776
|
-
end
|
|
777
|
-
|
|
778
|
-
# Request for scheduling a scan of a data subset from a Google Platform data
|
|
779
|
-
# repository.
|
|
780
|
-
class GooglePrivacyDlpV2beta1CreateInspectOperationRequest
|
|
781
|
-
include Google::Apis::Core::Hashable
|
|
782
|
-
|
|
783
|
-
# Configuration description of the scanning process.
|
|
784
|
-
# When used with redactContent only info_types and min_likelihood are currently
|
|
785
|
-
# used.
|
|
786
|
-
# Corresponds to the JSON property `inspectConfig`
|
|
787
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectConfig]
|
|
788
|
-
attr_accessor :inspect_config
|
|
789
|
-
|
|
790
|
-
# Additional configuration for inspect long running operations.
|
|
791
|
-
# Corresponds to the JSON property `operationConfig`
|
|
792
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1OperationConfig]
|
|
793
|
-
attr_accessor :operation_config
|
|
794
|
-
|
|
795
|
-
# Cloud repository for storing output.
|
|
796
|
-
# Corresponds to the JSON property `outputConfig`
|
|
797
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1OutputStorageConfig]
|
|
798
|
-
attr_accessor :output_config
|
|
799
|
-
|
|
800
|
-
# Shared message indicating Cloud storage type.
|
|
801
|
-
# Corresponds to the JSON property `storageConfig`
|
|
802
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1StorageConfig]
|
|
803
|
-
attr_accessor :storage_config
|
|
804
|
-
|
|
805
|
-
def initialize(**args)
|
|
806
|
-
update!(**args)
|
|
807
|
-
end
|
|
808
|
-
|
|
809
|
-
# Update properties of this object
|
|
810
|
-
def update!(**args)
|
|
811
|
-
@inspect_config = args[:inspect_config] if args.key?(:inspect_config)
|
|
812
|
-
@operation_config = args[:operation_config] if args.key?(:operation_config)
|
|
813
|
-
@output_config = args[:output_config] if args.key?(:output_config)
|
|
814
|
-
@storage_config = args[:storage_config] if args.key?(:storage_config)
|
|
815
|
-
end
|
|
816
|
-
end
|
|
817
|
-
|
|
818
|
-
# Pseudonymization method that generates surrogates via cryptographic hashing.
|
|
819
|
-
# Uses SHA-256.
|
|
820
|
-
# Outputs a 32 byte digest as an uppercase hex string
|
|
821
|
-
# (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE).
|
|
822
|
-
# Currently, only string and integer values can be hashed.
|
|
823
|
-
class GooglePrivacyDlpV2beta1CryptoHashConfig
|
|
824
|
-
include Google::Apis::Core::Hashable
|
|
825
|
-
|
|
826
|
-
# This is a data encryption key (DEK) (as opposed to
|
|
827
|
-
# a key encryption key (KEK) stored by KMS).
|
|
828
|
-
# When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
|
|
829
|
-
# IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
|
|
830
|
-
# unwrap the data crypto key.
|
|
831
|
-
# Corresponds to the JSON property `cryptoKey`
|
|
832
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoKey]
|
|
833
|
-
attr_accessor :crypto_key
|
|
834
|
-
|
|
835
|
-
def initialize(**args)
|
|
836
|
-
update!(**args)
|
|
837
|
-
end
|
|
838
|
-
|
|
839
|
-
# Update properties of this object
|
|
840
|
-
def update!(**args)
|
|
841
|
-
@crypto_key = args[:crypto_key] if args.key?(:crypto_key)
|
|
842
|
-
end
|
|
843
|
-
end
|
|
844
|
-
|
|
845
|
-
# This is a data encryption key (DEK) (as opposed to
|
|
846
|
-
# a key encryption key (KEK) stored by KMS).
|
|
847
|
-
# When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
|
|
848
|
-
# IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
|
|
849
|
-
# unwrap the data crypto key.
|
|
850
|
-
class GooglePrivacyDlpV2beta1CryptoKey
|
|
851
|
-
include Google::Apis::Core::Hashable
|
|
852
|
-
|
|
853
|
-
# Include to use an existing data crypto key wrapped by KMS.
|
|
854
|
-
# Authorization requires the following IAM permissions when sending a request
|
|
855
|
-
# to perform a crypto transformation using a kms-wrapped crypto key:
|
|
856
|
-
# dlp.kms.encrypt
|
|
857
|
-
# Corresponds to the JSON property `kmsWrapped`
|
|
858
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KmsWrappedCryptoKey]
|
|
859
|
-
attr_accessor :kms_wrapped
|
|
860
|
-
|
|
861
|
-
# Use this to have a random data crypto key generated.
|
|
862
|
-
# It will be discarded after the operation/request finishes.
|
|
863
|
-
# Corresponds to the JSON property `transient`
|
|
864
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TransientCryptoKey]
|
|
865
|
-
attr_accessor :transient
|
|
866
|
-
|
|
867
|
-
# Using raw keys is prone to security risks due to accidentally
|
|
868
|
-
# leaking the key. Choose another type of key if possible.
|
|
869
|
-
# Corresponds to the JSON property `unwrapped`
|
|
870
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1UnwrappedCryptoKey]
|
|
871
|
-
attr_accessor :unwrapped
|
|
872
|
-
|
|
873
|
-
def initialize(**args)
|
|
874
|
-
update!(**args)
|
|
875
|
-
end
|
|
876
|
-
|
|
877
|
-
# Update properties of this object
|
|
878
|
-
def update!(**args)
|
|
879
|
-
@kms_wrapped = args[:kms_wrapped] if args.key?(:kms_wrapped)
|
|
880
|
-
@transient = args[:transient] if args.key?(:transient)
|
|
881
|
-
@unwrapped = args[:unwrapped] if args.key?(:unwrapped)
|
|
882
|
-
end
|
|
883
|
-
end
|
|
884
|
-
|
|
885
|
-
# Replaces an identifier with a surrogate using FPE with the FFX
|
|
886
|
-
# mode of operation.
|
|
887
|
-
# The identifier must be representable by the US-ASCII character set.
|
|
888
|
-
# For a given crypto key and context, the same identifier will be
|
|
889
|
-
# replaced with the same surrogate.
|
|
890
|
-
# Identifiers must be at least two characters long.
|
|
891
|
-
# In the case that the identifier is the empty string, it will be skipped.
|
|
892
|
-
class GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig
|
|
893
|
-
include Google::Apis::Core::Hashable
|
|
894
|
-
|
|
895
|
-
#
|
|
896
|
-
# Corresponds to the JSON property `commonAlphabet`
|
|
897
|
-
# @return [String]
|
|
898
|
-
attr_accessor :common_alphabet
|
|
899
|
-
|
|
900
|
-
# General identifier of a data field in a storage service.
|
|
901
|
-
# Corresponds to the JSON property `context`
|
|
902
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId]
|
|
903
|
-
attr_accessor :context
|
|
904
|
-
|
|
905
|
-
# This is a data encryption key (DEK) (as opposed to
|
|
906
|
-
# a key encryption key (KEK) stored by KMS).
|
|
907
|
-
# When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
|
|
908
|
-
# IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
|
|
909
|
-
# unwrap the data crypto key.
|
|
910
|
-
# Corresponds to the JSON property `cryptoKey`
|
|
911
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoKey]
|
|
912
|
-
attr_accessor :crypto_key
|
|
913
|
-
|
|
914
|
-
# This is supported by mapping these to the alphanumeric characters
|
|
915
|
-
# that the FFX mode natively supports. This happens before/after
|
|
916
|
-
# encryption/decryption.
|
|
917
|
-
# Each character listed must appear only once.
|
|
918
|
-
# Number of characters must be in the range [2, 62].
|
|
919
|
-
# This must be encoded as ASCII.
|
|
920
|
-
# The order of characters does not matter.
|
|
921
|
-
# Corresponds to the JSON property `customAlphabet`
|
|
922
|
-
# @return [String]
|
|
923
|
-
attr_accessor :custom_alphabet
|
|
924
|
-
|
|
925
|
-
# The native way to select the alphabet. Must be in the range [2, 62].
|
|
926
|
-
# Corresponds to the JSON property `radix`
|
|
927
|
-
# @return [Fixnum]
|
|
928
|
-
attr_accessor :radix
|
|
929
|
-
|
|
930
|
-
# Type of information detected by the API.
|
|
931
|
-
# Corresponds to the JSON property `surrogateInfoType`
|
|
932
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType]
|
|
933
|
-
attr_accessor :surrogate_info_type
|
|
934
|
-
|
|
935
|
-
def initialize(**args)
|
|
936
|
-
update!(**args)
|
|
937
|
-
end
|
|
938
|
-
|
|
939
|
-
# Update properties of this object
|
|
940
|
-
def update!(**args)
|
|
941
|
-
@common_alphabet = args[:common_alphabet] if args.key?(:common_alphabet)
|
|
942
|
-
@context = args[:context] if args.key?(:context)
|
|
943
|
-
@crypto_key = args[:crypto_key] if args.key?(:crypto_key)
|
|
944
|
-
@custom_alphabet = args[:custom_alphabet] if args.key?(:custom_alphabet)
|
|
945
|
-
@radix = args[:radix] if args.key?(:radix)
|
|
946
|
-
@surrogate_info_type = args[:surrogate_info_type] if args.key?(:surrogate_info_type)
|
|
947
|
-
end
|
|
948
|
-
end
|
|
949
|
-
|
|
950
|
-
# Custom information type provided by the user. Used to find domain-specific
|
|
951
|
-
# sensitive information configurable to the data in question.
|
|
952
|
-
class GooglePrivacyDlpV2beta1CustomInfoType
|
|
953
|
-
include Google::Apis::Core::Hashable
|
|
954
|
-
|
|
955
|
-
# Custom information type based on a dictionary of words or phrases. This can
|
|
956
|
-
# be used to match sensitive information specific to the data, such as a list
|
|
957
|
-
# of employee IDs or job titles.
|
|
958
|
-
# Dictionary words are case-insensitive and all characters other than letters
|
|
959
|
-
# and digits in the unicode [Basic Multilingual
|
|
960
|
-
# Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#
|
|
961
|
-
# Basic_Multilingual_Plane)
|
|
962
|
-
# will be replaced with whitespace when scanning for matches, so the
|
|
963
|
-
# dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
|
|
964
|
-
# "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
|
|
965
|
-
# surrounding any match must be of a different type than the adjacent
|
|
966
|
-
# characters within the word, so letters must be next to non-letters and
|
|
967
|
-
# digits next to non-digits. For example, the dictionary word "jen" will
|
|
968
|
-
# match the first three letters of the text "jen123" but will return no
|
|
969
|
-
# matches for "jennifer".
|
|
970
|
-
# Dictionary words containing a large number of characters that are not
|
|
971
|
-
# letters or digits may result in unexpected findings because such characters
|
|
972
|
-
# are treated as whitespace.
|
|
973
|
-
# Corresponds to the JSON property `dictionary`
|
|
974
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Dictionary]
|
|
975
|
-
attr_accessor :dictionary
|
|
976
|
-
|
|
977
|
-
# Type of information detected by the API.
|
|
978
|
-
# Corresponds to the JSON property `infoType`
|
|
979
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType]
|
|
980
|
-
attr_accessor :info_type
|
|
981
|
-
|
|
982
|
-
# Message for detecting output from deidentification transformations
|
|
983
|
-
# such as
|
|
984
|
-
# [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2beta1/content/
|
|
985
|
-
# deidentify#CryptoReplaceFfxFpeConfig).
|
|
986
|
-
# These types of transformations are
|
|
987
|
-
# those that perform pseudonymization, thereby producing a "surrogate" as
|
|
988
|
-
# output. This should be used in conjunction with a field on the
|
|
989
|
-
# transformation such as `surrogate_info_type`. This custom info type does
|
|
990
|
-
# not support the use of `detection_rules`.
|
|
991
|
-
# Corresponds to the JSON property `surrogateType`
|
|
992
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1SurrogateType]
|
|
993
|
-
attr_accessor :surrogate_type
|
|
994
|
-
|
|
995
|
-
def initialize(**args)
|
|
996
|
-
update!(**args)
|
|
997
|
-
end
|
|
998
|
-
|
|
999
|
-
# Update properties of this object
|
|
1000
|
-
def update!(**args)
|
|
1001
|
-
@dictionary = args[:dictionary] if args.key?(:dictionary)
|
|
1002
|
-
@info_type = args[:info_type] if args.key?(:info_type)
|
|
1003
|
-
@surrogate_type = args[:surrogate_type] if args.key?(:surrogate_type)
|
|
1004
|
-
end
|
|
1005
|
-
end
|
|
1006
|
-
|
|
1007
|
-
# Record key for a finding in Cloud Datastore.
|
|
1008
|
-
class GooglePrivacyDlpV2beta1DatastoreKey
|
|
1009
|
-
include Google::Apis::Core::Hashable
|
|
1010
|
-
|
|
1011
|
-
# A unique identifier for a Datastore entity.
|
|
1012
|
-
# If a key's partition ID or any of its path kinds or names are
|
|
1013
|
-
# reserved/read-only, the key is reserved/read-only.
|
|
1014
|
-
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
1015
|
-
# Corresponds to the JSON property `entityKey`
|
|
1016
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Key]
|
|
1017
|
-
attr_accessor :entity_key
|
|
1018
|
-
|
|
1019
|
-
def initialize(**args)
|
|
1020
|
-
update!(**args)
|
|
1021
|
-
end
|
|
1022
|
-
|
|
1023
|
-
# Update properties of this object
|
|
1024
|
-
def update!(**args)
|
|
1025
|
-
@entity_key = args[:entity_key] if args.key?(:entity_key)
|
|
1026
|
-
end
|
|
1027
|
-
end
|
|
1028
|
-
|
|
1029
|
-
# Options defining a data set within Google Cloud Datastore.
|
|
1030
|
-
class GooglePrivacyDlpV2beta1DatastoreOptions
|
|
1031
|
-
include Google::Apis::Core::Hashable
|
|
1032
|
-
|
|
1033
|
-
# A representation of a Datastore kind.
|
|
1034
|
-
# Corresponds to the JSON property `kind`
|
|
1035
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KindExpression]
|
|
1036
|
-
attr_accessor :kind
|
|
1037
|
-
|
|
1038
|
-
# Datastore partition ID.
|
|
1039
|
-
# A partition ID identifies a grouping of entities. The grouping is always
|
|
1040
|
-
# by project and namespace, however the namespace ID may be empty.
|
|
1041
|
-
# A partition ID contains several dimensions:
|
|
1042
|
-
# project ID and namespace ID.
|
|
1043
|
-
# Corresponds to the JSON property `partitionId`
|
|
1044
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PartitionId]
|
|
1045
|
-
attr_accessor :partition_id
|
|
1046
|
-
|
|
1047
|
-
# Properties to scan. If none are specified, all properties will be scanned
|
|
1048
|
-
# by default.
|
|
1049
|
-
# Corresponds to the JSON property `projection`
|
|
1050
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Projection>]
|
|
1051
|
-
attr_accessor :projection
|
|
1052
|
-
|
|
1053
|
-
def initialize(**args)
|
|
1054
|
-
update!(**args)
|
|
1055
|
-
end
|
|
1056
|
-
|
|
1057
|
-
# Update properties of this object
|
|
1058
|
-
def update!(**args)
|
|
1059
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1060
|
-
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
1061
|
-
@projection = args[:projection] if args.key?(:projection)
|
|
1062
|
-
end
|
|
1063
|
-
end
|
|
1064
|
-
|
|
1065
|
-
# High level summary of deidentification.
|
|
1066
|
-
class GooglePrivacyDlpV2beta1DeidentificationSummary
|
|
1067
|
-
include Google::Apis::Core::Hashable
|
|
1068
|
-
|
|
1069
|
-
# Transformations applied to the dataset.
|
|
1070
|
-
# Corresponds to the JSON property `transformationSummaries`
|
|
1071
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TransformationSummary>]
|
|
1072
|
-
attr_accessor :transformation_summaries
|
|
1073
|
-
|
|
1074
|
-
# Total size in bytes that were transformed in some way.
|
|
1075
|
-
# Corresponds to the JSON property `transformedBytes`
|
|
1076
|
-
# @return [Fixnum]
|
|
1077
|
-
attr_accessor :transformed_bytes
|
|
1078
|
-
|
|
1079
|
-
def initialize(**args)
|
|
1080
|
-
update!(**args)
|
|
1081
|
-
end
|
|
1082
|
-
|
|
1083
|
-
# Update properties of this object
|
|
1084
|
-
def update!(**args)
|
|
1085
|
-
@transformation_summaries = args[:transformation_summaries] if args.key?(:transformation_summaries)
|
|
1086
|
-
@transformed_bytes = args[:transformed_bytes] if args.key?(:transformed_bytes)
|
|
1087
|
-
end
|
|
1088
|
-
end
|
|
1089
|
-
|
|
1090
|
-
# The configuration that controls how the data will change.
|
|
1091
|
-
class GooglePrivacyDlpV2beta1DeidentifyConfig
|
|
1092
|
-
include Google::Apis::Core::Hashable
|
|
1093
|
-
|
|
1094
|
-
# A type of transformation that will scan unstructured text and
|
|
1095
|
-
# apply various `PrimitiveTransformation`s to each finding, where the
|
|
1096
|
-
# transformation is applied to only values that were identified as a specific
|
|
1097
|
-
# info_type.
|
|
1098
|
-
# Corresponds to the JSON property `infoTypeTransformations`
|
|
1099
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoTypeTransformations]
|
|
1100
|
-
attr_accessor :info_type_transformations
|
|
1101
|
-
|
|
1102
|
-
# A type of transformation that is applied over structured data such as a
|
|
1103
|
-
# table.
|
|
1104
|
-
# Corresponds to the JSON property `recordTransformations`
|
|
1105
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RecordTransformations]
|
|
1106
|
-
attr_accessor :record_transformations
|
|
1107
|
-
|
|
1108
|
-
def initialize(**args)
|
|
1109
|
-
update!(**args)
|
|
1110
|
-
end
|
|
1111
|
-
|
|
1112
|
-
# Update properties of this object
|
|
1113
|
-
def update!(**args)
|
|
1114
|
-
@info_type_transformations = args[:info_type_transformations] if args.key?(:info_type_transformations)
|
|
1115
|
-
@record_transformations = args[:record_transformations] if args.key?(:record_transformations)
|
|
1116
|
-
end
|
|
1117
|
-
end
|
|
1118
|
-
|
|
1119
|
-
# Request to de-identify a list of items.
|
|
1120
|
-
class GooglePrivacyDlpV2beta1DeidentifyContentRequest
|
|
1121
|
-
include Google::Apis::Core::Hashable
|
|
1122
|
-
|
|
1123
|
-
# The configuration that controls how the data will change.
|
|
1124
|
-
# Corresponds to the JSON property `deidentifyConfig`
|
|
1125
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1DeidentifyConfig]
|
|
1126
|
-
attr_accessor :deidentify_config
|
|
1127
|
-
|
|
1128
|
-
# Configuration description of the scanning process.
|
|
1129
|
-
# When used with redactContent only info_types and min_likelihood are currently
|
|
1130
|
-
# used.
|
|
1131
|
-
# Corresponds to the JSON property `inspectConfig`
|
|
1132
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectConfig]
|
|
1133
|
-
attr_accessor :inspect_config
|
|
1134
|
-
|
|
1135
|
-
# The list of items to inspect. Up to 100 are allowed per request.
|
|
1136
|
-
# All items will be treated as text/*.
|
|
1137
|
-
# Corresponds to the JSON property `items`
|
|
1138
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ContentItem>]
|
|
1139
|
-
attr_accessor :items
|
|
1140
|
-
|
|
1141
|
-
def initialize(**args)
|
|
1142
|
-
update!(**args)
|
|
1143
|
-
end
|
|
1144
|
-
|
|
1145
|
-
# Update properties of this object
|
|
1146
|
-
def update!(**args)
|
|
1147
|
-
@deidentify_config = args[:deidentify_config] if args.key?(:deidentify_config)
|
|
1148
|
-
@inspect_config = args[:inspect_config] if args.key?(:inspect_config)
|
|
1149
|
-
@items = args[:items] if args.key?(:items)
|
|
1150
|
-
end
|
|
1151
|
-
end
|
|
1152
|
-
|
|
1153
|
-
# Results of de-identifying a list of items.
|
|
1154
|
-
class GooglePrivacyDlpV2beta1DeidentifyContentResponse
|
|
1155
|
-
include Google::Apis::Core::Hashable
|
|
1156
|
-
|
|
1157
|
-
#
|
|
1158
|
-
# Corresponds to the JSON property `items`
|
|
1159
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ContentItem>]
|
|
1160
|
-
attr_accessor :items
|
|
1161
|
-
|
|
1162
|
-
# A review of the transformations that took place for each item.
|
|
1163
|
-
# Corresponds to the JSON property `summaries`
|
|
1164
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1DeidentificationSummary>]
|
|
1165
|
-
attr_accessor :summaries
|
|
1166
|
-
|
|
1167
|
-
def initialize(**args)
|
|
1168
|
-
update!(**args)
|
|
1169
|
-
end
|
|
1170
|
-
|
|
1171
|
-
# Update properties of this object
|
|
1172
|
-
def update!(**args)
|
|
1173
|
-
@items = args[:items] if args.key?(:items)
|
|
1174
|
-
@summaries = args[:summaries] if args.key?(:summaries)
|
|
1175
|
-
end
|
|
1176
|
-
end
|
|
1177
|
-
|
|
1178
|
-
# Custom information type based on a dictionary of words or phrases. This can
|
|
1179
|
-
# be used to match sensitive information specific to the data, such as a list
|
|
1180
|
-
# of employee IDs or job titles.
|
|
1181
|
-
# Dictionary words are case-insensitive and all characters other than letters
|
|
1182
|
-
# and digits in the unicode [Basic Multilingual
|
|
1183
|
-
# Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#
|
|
1184
|
-
# Basic_Multilingual_Plane)
|
|
1185
|
-
# will be replaced with whitespace when scanning for matches, so the
|
|
1186
|
-
# dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
|
|
1187
|
-
# "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
|
|
1188
|
-
# surrounding any match must be of a different type than the adjacent
|
|
1189
|
-
# characters within the word, so letters must be next to non-letters and
|
|
1190
|
-
# digits next to non-digits. For example, the dictionary word "jen" will
|
|
1191
|
-
# match the first three letters of the text "jen123" but will return no
|
|
1192
|
-
# matches for "jennifer".
|
|
1193
|
-
# Dictionary words containing a large number of characters that are not
|
|
1194
|
-
# letters or digits may result in unexpected findings because such characters
|
|
1195
|
-
# are treated as whitespace.
|
|
1196
|
-
class GooglePrivacyDlpV2beta1Dictionary
|
|
1197
|
-
include Google::Apis::Core::Hashable
|
|
1198
|
-
|
|
1199
|
-
# Message defining a list of words or phrases to search for in the data.
|
|
1200
|
-
# Corresponds to the JSON property `wordList`
|
|
1201
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1WordList]
|
|
1202
|
-
attr_accessor :word_list
|
|
1203
|
-
|
|
1204
|
-
def initialize(**args)
|
|
1205
|
-
update!(**args)
|
|
1206
|
-
end
|
|
1207
|
-
|
|
1208
|
-
# Update properties of this object
|
|
1209
|
-
def update!(**args)
|
|
1210
|
-
@word_list = args[:word_list] if args.key?(:word_list)
|
|
1211
|
-
end
|
|
1212
|
-
end
|
|
1213
|
-
|
|
1214
|
-
# An entity in a dataset is a field or set of fields that correspond to a
|
|
1215
|
-
# single person. For example, in medical records the `EntityId` might be
|
|
1216
|
-
# a patient identifier, or for financial records it might be an account
|
|
1217
|
-
# identifier. This message is used when generalizations or analysis must be
|
|
1218
|
-
# consistent across multiple rows pertaining to the same entity.
|
|
1219
|
-
class GooglePrivacyDlpV2beta1EntityId
|
|
1220
|
-
include Google::Apis::Core::Hashable
|
|
1221
|
-
|
|
1222
|
-
# General identifier of a data field in a storage service.
|
|
1223
|
-
# Corresponds to the JSON property `field`
|
|
1224
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId]
|
|
1225
|
-
attr_accessor :field
|
|
1226
|
-
|
|
1227
|
-
def initialize(**args)
|
|
1228
|
-
update!(**args)
|
|
1229
|
-
end
|
|
1230
|
-
|
|
1231
|
-
# Update properties of this object
|
|
1232
|
-
def update!(**args)
|
|
1233
|
-
@field = args[:field] if args.key?(:field)
|
|
1234
|
-
end
|
|
1235
|
-
end
|
|
1236
|
-
|
|
1237
|
-
# A collection of expressions
|
|
1238
|
-
class GooglePrivacyDlpV2beta1Expressions
|
|
1239
|
-
include Google::Apis::Core::Hashable
|
|
1240
|
-
|
|
1241
|
-
#
|
|
1242
|
-
# Corresponds to the JSON property `conditions`
|
|
1243
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Conditions]
|
|
1244
|
-
attr_accessor :conditions
|
|
1245
|
-
|
|
1246
|
-
# The operator to apply to the result of conditions. Default and currently
|
|
1247
|
-
# only supported value is `AND`.
|
|
1248
|
-
# Corresponds to the JSON property `logicalOperator`
|
|
1249
|
-
# @return [String]
|
|
1250
|
-
attr_accessor :logical_operator
|
|
1251
|
-
|
|
1252
|
-
def initialize(**args)
|
|
1253
|
-
update!(**args)
|
|
1254
|
-
end
|
|
1255
|
-
|
|
1256
|
-
# Update properties of this object
|
|
1257
|
-
def update!(**args)
|
|
1258
|
-
@conditions = args[:conditions] if args.key?(:conditions)
|
|
1259
|
-
@logical_operator = args[:logical_operator] if args.key?(:logical_operator)
|
|
1260
|
-
end
|
|
1261
|
-
end
|
|
1262
|
-
|
|
1263
|
-
# General identifier of a data field in a storage service.
|
|
1264
|
-
class GooglePrivacyDlpV2beta1FieldId
|
|
1265
|
-
include Google::Apis::Core::Hashable
|
|
1266
|
-
|
|
1267
|
-
# Name describing the field.
|
|
1268
|
-
# Corresponds to the JSON property `columnName`
|
|
1269
|
-
# @return [String]
|
|
1270
|
-
attr_accessor :column_name
|
|
1271
|
-
|
|
1272
|
-
def initialize(**args)
|
|
1273
|
-
update!(**args)
|
|
1274
|
-
end
|
|
1275
|
-
|
|
1276
|
-
# Update properties of this object
|
|
1277
|
-
def update!(**args)
|
|
1278
|
-
@column_name = args[:column_name] if args.key?(:column_name)
|
|
1279
|
-
end
|
|
1280
|
-
end
|
|
1281
|
-
|
|
1282
|
-
# The transformation to apply to the field.
|
|
1283
|
-
class GooglePrivacyDlpV2beta1FieldTransformation
|
|
1284
|
-
include Google::Apis::Core::Hashable
|
|
1285
|
-
|
|
1286
|
-
# A condition for determining whether a transformation should be applied to
|
|
1287
|
-
# a field.
|
|
1288
|
-
# Corresponds to the JSON property `condition`
|
|
1289
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RecordCondition]
|
|
1290
|
-
attr_accessor :condition
|
|
1291
|
-
|
|
1292
|
-
# Input field(s) to apply the transformation to. [required]
|
|
1293
|
-
# Corresponds to the JSON property `fields`
|
|
1294
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId>]
|
|
1295
|
-
attr_accessor :fields
|
|
1296
|
-
|
|
1297
|
-
# A type of transformation that will scan unstructured text and
|
|
1298
|
-
# apply various `PrimitiveTransformation`s to each finding, where the
|
|
1299
|
-
# transformation is applied to only values that were identified as a specific
|
|
1300
|
-
# info_type.
|
|
1301
|
-
# Corresponds to the JSON property `infoTypeTransformations`
|
|
1302
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoTypeTransformations]
|
|
1303
|
-
attr_accessor :info_type_transformations
|
|
1304
|
-
|
|
1305
|
-
# A rule for transforming a value.
|
|
1306
|
-
# Corresponds to the JSON property `primitiveTransformation`
|
|
1307
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PrimitiveTransformation]
|
|
1308
|
-
attr_accessor :primitive_transformation
|
|
1309
|
-
|
|
1310
|
-
def initialize(**args)
|
|
1311
|
-
update!(**args)
|
|
1312
|
-
end
|
|
1313
|
-
|
|
1314
|
-
# Update properties of this object
|
|
1315
|
-
def update!(**args)
|
|
1316
|
-
@condition = args[:condition] if args.key?(:condition)
|
|
1317
|
-
@fields = args[:fields] if args.key?(:fields)
|
|
1318
|
-
@info_type_transformations = args[:info_type_transformations] if args.key?(:info_type_transformations)
|
|
1319
|
-
@primitive_transformation = args[:primitive_transformation] if args.key?(:primitive_transformation)
|
|
1320
|
-
end
|
|
1321
|
-
end
|
|
1322
|
-
|
|
1323
|
-
# Set of files to scan.
|
|
1324
|
-
class GooglePrivacyDlpV2beta1FileSet
|
|
1325
|
-
include Google::Apis::Core::Hashable
|
|
1326
|
-
|
|
1327
|
-
# The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the
|
|
1328
|
-
# path is allowed.
|
|
1329
|
-
# Corresponds to the JSON property `url`
|
|
1330
|
-
# @return [String]
|
|
1331
|
-
attr_accessor :url
|
|
1332
|
-
|
|
1333
|
-
def initialize(**args)
|
|
1334
|
-
update!(**args)
|
|
1335
|
-
end
|
|
1336
|
-
|
|
1337
|
-
# Update properties of this object
|
|
1338
|
-
def update!(**args)
|
|
1339
|
-
@url = args[:url] if args.key?(:url)
|
|
1340
|
-
end
|
|
1341
|
-
end
|
|
1342
|
-
|
|
1343
|
-
# Represents a piece of potentially sensitive content.
|
|
1344
|
-
class GooglePrivacyDlpV2beta1Finding
|
|
1345
|
-
include Google::Apis::Core::Hashable
|
|
1346
|
-
|
|
1347
|
-
# Timestamp when finding was detected.
|
|
1348
|
-
# Corresponds to the JSON property `createTime`
|
|
1349
|
-
# @return [String]
|
|
1350
|
-
attr_accessor :create_time
|
|
1351
|
-
|
|
1352
|
-
# Type of information detected by the API.
|
|
1353
|
-
# Corresponds to the JSON property `infoType`
|
|
1354
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType]
|
|
1355
|
-
attr_accessor :info_type
|
|
1356
|
-
|
|
1357
|
-
# Estimate of how likely it is that the `info_type` is correct.
|
|
1358
|
-
# Corresponds to the JSON property `likelihood`
|
|
1359
|
-
# @return [String]
|
|
1360
|
-
attr_accessor :likelihood
|
|
1361
|
-
|
|
1362
|
-
# Specifies the location of the finding.
|
|
1363
|
-
# Corresponds to the JSON property `location`
|
|
1364
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Location]
|
|
1365
|
-
attr_accessor :location
|
|
1366
|
-
|
|
1367
|
-
# The content that was found. Even if the content is not textual, it
|
|
1368
|
-
# may be converted to a textual representation here.
|
|
1369
|
-
# Provided if requested by the `InspectConfig` and the finding is
|
|
1370
|
-
# less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes
|
|
1371
|
-
# in length, the quote may be omitted.
|
|
1372
|
-
# Corresponds to the JSON property `quote`
|
|
1373
|
-
# @return [String]
|
|
1374
|
-
attr_accessor :quote
|
|
1375
|
-
|
|
1376
|
-
def initialize(**args)
|
|
1377
|
-
update!(**args)
|
|
1378
|
-
end
|
|
1379
|
-
|
|
1380
|
-
# Update properties of this object
|
|
1381
|
-
def update!(**args)
|
|
1382
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
|
1383
|
-
@info_type = args[:info_type] if args.key?(:info_type)
|
|
1384
|
-
@likelihood = args[:likelihood] if args.key?(:likelihood)
|
|
1385
|
-
@location = args[:location] if args.key?(:location)
|
|
1386
|
-
@quote = args[:quote] if args.key?(:quote)
|
|
1387
|
-
end
|
|
1388
|
-
end
|
|
1389
|
-
|
|
1390
|
-
# Buckets values based on fixed size ranges. The
|
|
1391
|
-
# Bucketing transformation can provide all of this functionality,
|
|
1392
|
-
# but requires more configuration. This message is provided as a convenience to
|
|
1393
|
-
# the user for simple bucketing strategies.
|
|
1394
|
-
# The resulting value will be a hyphenated string of
|
|
1395
|
-
# lower_bound-upper_bound.
|
|
1396
|
-
# This can be used on data of type: double, long.
|
|
1397
|
-
# If the bound Value type differs from the type of data
|
|
1398
|
-
# being transformed, we will first attempt converting the type of the data to
|
|
1399
|
-
# be transformed to match the type of the bound before comparing.
|
|
1400
|
-
class GooglePrivacyDlpV2beta1FixedSizeBucketingConfig
|
|
1401
|
-
include Google::Apis::Core::Hashable
|
|
1402
|
-
|
|
1403
|
-
# Size of each bucket (except for minimum and maximum buckets). So if
|
|
1404
|
-
# `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
|
|
1405
|
-
# following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
|
|
1406
|
-
# 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. [Required].
|
|
1407
|
-
# Corresponds to the JSON property `bucketSize`
|
|
1408
|
-
# @return [Float]
|
|
1409
|
-
attr_accessor :bucket_size
|
|
1410
|
-
|
|
1411
|
-
# Set of primitive values supported by the system.
|
|
1412
|
-
# Note that for the purposes of inspection or transformation, the number
|
|
1413
|
-
# of bytes considered to comprise a 'Value' is based on its representation
|
|
1414
|
-
# as a UTF-8 encoded string. For example, if 'integer_value' is set to
|
|
1415
|
-
# 123456789, the number of bytes would be counted as 9, even though an
|
|
1416
|
-
# int64 only holds up to 8 bytes of data.
|
|
1417
|
-
# Corresponds to the JSON property `lowerBound`
|
|
1418
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value]
|
|
1419
|
-
attr_accessor :lower_bound
|
|
1420
|
-
|
|
1421
|
-
# Set of primitive values supported by the system.
|
|
1422
|
-
# Note that for the purposes of inspection or transformation, the number
|
|
1423
|
-
# of bytes considered to comprise a 'Value' is based on its representation
|
|
1424
|
-
# as a UTF-8 encoded string. For example, if 'integer_value' is set to
|
|
1425
|
-
# 123456789, the number of bytes would be counted as 9, even though an
|
|
1426
|
-
# int64 only holds up to 8 bytes of data.
|
|
1427
|
-
# Corresponds to the JSON property `upperBound`
|
|
1428
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value]
|
|
1429
|
-
attr_accessor :upper_bound
|
|
1430
|
-
|
|
1431
|
-
def initialize(**args)
|
|
1432
|
-
update!(**args)
|
|
1433
|
-
end
|
|
1434
|
-
|
|
1435
|
-
# Update properties of this object
|
|
1436
|
-
def update!(**args)
|
|
1437
|
-
@bucket_size = args[:bucket_size] if args.key?(:bucket_size)
|
|
1438
|
-
@lower_bound = args[:lower_bound] if args.key?(:lower_bound)
|
|
1439
|
-
@upper_bound = args[:upper_bound] if args.key?(:upper_bound)
|
|
1440
|
-
end
|
|
1441
|
-
end
|
|
1442
|
-
|
|
1443
|
-
# Bounding box encompassing detected text within an image.
|
|
1444
|
-
class GooglePrivacyDlpV2beta1ImageLocation
|
|
1445
|
-
include Google::Apis::Core::Hashable
|
|
1446
|
-
|
|
1447
|
-
# Height of the bounding box in pixels.
|
|
1448
|
-
# Corresponds to the JSON property `height`
|
|
1449
|
-
# @return [Fixnum]
|
|
1450
|
-
attr_accessor :height
|
|
1451
|
-
|
|
1452
|
-
# Left coordinate of the bounding box. (0,0) is upper left.
|
|
1453
|
-
# Corresponds to the JSON property `left`
|
|
1454
|
-
# @return [Fixnum]
|
|
1455
|
-
attr_accessor :left
|
|
1456
|
-
|
|
1457
|
-
# Top coordinate of the bounding box. (0,0) is upper left.
|
|
1458
|
-
# Corresponds to the JSON property `top`
|
|
1459
|
-
# @return [Fixnum]
|
|
1460
|
-
attr_accessor :top
|
|
1461
|
-
|
|
1462
|
-
# Width of the bounding box in pixels.
|
|
1463
|
-
# Corresponds to the JSON property `width`
|
|
1464
|
-
# @return [Fixnum]
|
|
1465
|
-
attr_accessor :width
|
|
1466
|
-
|
|
1467
|
-
def initialize(**args)
|
|
1468
|
-
update!(**args)
|
|
1469
|
-
end
|
|
1470
|
-
|
|
1471
|
-
# Update properties of this object
|
|
1472
|
-
def update!(**args)
|
|
1473
|
-
@height = args[:height] if args.key?(:height)
|
|
1474
|
-
@left = args[:left] if args.key?(:left)
|
|
1475
|
-
@top = args[:top] if args.key?(:top)
|
|
1476
|
-
@width = args[:width] if args.key?(:width)
|
|
1477
|
-
end
|
|
1478
|
-
end
|
|
1479
|
-
|
|
1480
|
-
# Configuration for determining how redaction of images should occur.
|
|
1481
|
-
class GooglePrivacyDlpV2beta1ImageRedactionConfig
|
|
1482
|
-
include Google::Apis::Core::Hashable
|
|
1483
|
-
|
|
1484
|
-
# Type of information detected by the API.
|
|
1485
|
-
# Corresponds to the JSON property `infoType`
|
|
1486
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType]
|
|
1487
|
-
attr_accessor :info_type
|
|
1488
|
-
|
|
1489
|
-
# If true, all text found in the image, regardless whether it matches an
|
|
1490
|
-
# info_type, is redacted.
|
|
1491
|
-
# Corresponds to the JSON property `redactAllText`
|
|
1492
|
-
# @return [Boolean]
|
|
1493
|
-
attr_accessor :redact_all_text
|
|
1494
|
-
alias_method :redact_all_text?, :redact_all_text
|
|
1495
|
-
|
|
1496
|
-
# Represents a color in the RGB color space.
|
|
1497
|
-
# Corresponds to the JSON property `redactionColor`
|
|
1498
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Color]
|
|
1499
|
-
attr_accessor :redaction_color
|
|
1500
|
-
|
|
1501
|
-
def initialize(**args)
|
|
1502
|
-
update!(**args)
|
|
1503
|
-
end
|
|
1504
|
-
|
|
1505
|
-
# Update properties of this object
|
|
1506
|
-
def update!(**args)
|
|
1507
|
-
@info_type = args[:info_type] if args.key?(:info_type)
|
|
1508
|
-
@redact_all_text = args[:redact_all_text] if args.key?(:redact_all_text)
|
|
1509
|
-
@redaction_color = args[:redaction_color] if args.key?(:redaction_color)
|
|
1510
|
-
end
|
|
1511
|
-
end
|
|
1512
|
-
|
|
1513
|
-
# Type of information detected by the API.
|
|
1514
|
-
class GooglePrivacyDlpV2beta1InfoType
|
|
1515
|
-
include Google::Apis::Core::Hashable
|
|
1516
|
-
|
|
1517
|
-
# Name of the information type.
|
|
1518
|
-
# Corresponds to the JSON property `name`
|
|
1519
|
-
# @return [String]
|
|
1520
|
-
attr_accessor :name
|
|
1521
|
-
|
|
1522
|
-
def initialize(**args)
|
|
1523
|
-
update!(**args)
|
|
1524
|
-
end
|
|
1525
|
-
|
|
1526
|
-
# Update properties of this object
|
|
1527
|
-
def update!(**args)
|
|
1528
|
-
@name = args[:name] if args.key?(:name)
|
|
1529
|
-
end
|
|
1530
|
-
end
|
|
1531
|
-
|
|
1532
|
-
# Description of the information type (infoType).
|
|
1533
|
-
class GooglePrivacyDlpV2beta1InfoTypeDescription
|
|
1534
|
-
include Google::Apis::Core::Hashable
|
|
1535
|
-
|
|
1536
|
-
# List of categories this infoType belongs to.
|
|
1537
|
-
# Corresponds to the JSON property `categories`
|
|
1538
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CategoryDescription>]
|
|
1539
|
-
attr_accessor :categories
|
|
1540
|
-
|
|
1541
|
-
# Human readable form of the infoType name.
|
|
1542
|
-
# Corresponds to the JSON property `displayName`
|
|
1543
|
-
# @return [String]
|
|
1544
|
-
attr_accessor :display_name
|
|
1545
|
-
|
|
1546
|
-
# Internal name of the infoType.
|
|
1547
|
-
# Corresponds to the JSON property `name`
|
|
1548
|
-
# @return [String]
|
|
1549
|
-
attr_accessor :name
|
|
1550
|
-
|
|
1551
|
-
def initialize(**args)
|
|
1552
|
-
update!(**args)
|
|
1553
|
-
end
|
|
1554
|
-
|
|
1555
|
-
# Update properties of this object
|
|
1556
|
-
def update!(**args)
|
|
1557
|
-
@categories = args[:categories] if args.key?(:categories)
|
|
1558
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
|
1559
|
-
@name = args[:name] if args.key?(:name)
|
|
1560
|
-
end
|
|
1561
|
-
end
|
|
1562
|
-
|
|
1563
|
-
# Max findings configuration per info type, per content item or long running
|
|
1564
|
-
# operation.
|
|
1565
|
-
class GooglePrivacyDlpV2beta1InfoTypeLimit
|
|
1566
|
-
include Google::Apis::Core::Hashable
|
|
1567
|
-
|
|
1568
|
-
# Type of information detected by the API.
|
|
1569
|
-
# Corresponds to the JSON property `infoType`
|
|
1570
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType]
|
|
1571
|
-
attr_accessor :info_type
|
|
1572
|
-
|
|
1573
|
-
# Max findings limit for the given infoType.
|
|
1574
|
-
# Corresponds to the JSON property `maxFindings`
|
|
1575
|
-
# @return [Fixnum]
|
|
1576
|
-
attr_accessor :max_findings
|
|
1577
|
-
|
|
1578
|
-
def initialize(**args)
|
|
1579
|
-
update!(**args)
|
|
1580
|
-
end
|
|
1581
|
-
|
|
1582
|
-
# Update properties of this object
|
|
1583
|
-
def update!(**args)
|
|
1584
|
-
@info_type = args[:info_type] if args.key?(:info_type)
|
|
1585
|
-
@max_findings = args[:max_findings] if args.key?(:max_findings)
|
|
1586
|
-
end
|
|
1587
|
-
end
|
|
1588
|
-
|
|
1589
|
-
# Statistics regarding a specific InfoType.
|
|
1590
|
-
class GooglePrivacyDlpV2beta1InfoTypeStatistics
|
|
1591
|
-
include Google::Apis::Core::Hashable
|
|
1592
|
-
|
|
1593
|
-
# Number of findings for this info type.
|
|
1594
|
-
# Corresponds to the JSON property `count`
|
|
1595
|
-
# @return [Fixnum]
|
|
1596
|
-
attr_accessor :count
|
|
1597
|
-
|
|
1598
|
-
# Type of information detected by the API.
|
|
1599
|
-
# Corresponds to the JSON property `infoType`
|
|
1600
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType]
|
|
1601
|
-
attr_accessor :info_type
|
|
1602
|
-
|
|
1603
|
-
def initialize(**args)
|
|
1604
|
-
update!(**args)
|
|
1605
|
-
end
|
|
1606
|
-
|
|
1607
|
-
# Update properties of this object
|
|
1608
|
-
def update!(**args)
|
|
1609
|
-
@count = args[:count] if args.key?(:count)
|
|
1610
|
-
@info_type = args[:info_type] if args.key?(:info_type)
|
|
1611
|
-
end
|
|
1612
|
-
end
|
|
1613
|
-
|
|
1614
|
-
# A transformation to apply to text that is identified as a specific
|
|
1615
|
-
# info_type.
|
|
1616
|
-
class GooglePrivacyDlpV2beta1InfoTypeTransformation
|
|
1617
|
-
include Google::Apis::Core::Hashable
|
|
1618
|
-
|
|
1619
|
-
# Info types to apply the transformation to. Empty list will match all
|
|
1620
|
-
# available info types for this transformation.
|
|
1621
|
-
# Corresponds to the JSON property `infoTypes`
|
|
1622
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType>]
|
|
1623
|
-
attr_accessor :info_types
|
|
1624
|
-
|
|
1625
|
-
# A rule for transforming a value.
|
|
1626
|
-
# Corresponds to the JSON property `primitiveTransformation`
|
|
1627
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PrimitiveTransformation]
|
|
1628
|
-
attr_accessor :primitive_transformation
|
|
1629
|
-
|
|
1630
|
-
def initialize(**args)
|
|
1631
|
-
update!(**args)
|
|
1632
|
-
end
|
|
1633
|
-
|
|
1634
|
-
# Update properties of this object
|
|
1635
|
-
def update!(**args)
|
|
1636
|
-
@info_types = args[:info_types] if args.key?(:info_types)
|
|
1637
|
-
@primitive_transformation = args[:primitive_transformation] if args.key?(:primitive_transformation)
|
|
1638
|
-
end
|
|
1639
|
-
end
|
|
1640
|
-
|
|
1641
|
-
# A type of transformation that will scan unstructured text and
|
|
1642
|
-
# apply various `PrimitiveTransformation`s to each finding, where the
|
|
1643
|
-
# transformation is applied to only values that were identified as a specific
|
|
1644
|
-
# info_type.
|
|
1645
|
-
class GooglePrivacyDlpV2beta1InfoTypeTransformations
|
|
1646
|
-
include Google::Apis::Core::Hashable
|
|
1647
|
-
|
|
1648
|
-
# Transformation for each info type. Cannot specify more than one
|
|
1649
|
-
# for a given info type. [required]
|
|
1650
|
-
# Corresponds to the JSON property `transformations`
|
|
1651
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoTypeTransformation>]
|
|
1652
|
-
attr_accessor :transformations
|
|
1653
|
-
|
|
1654
|
-
def initialize(**args)
|
|
1655
|
-
update!(**args)
|
|
1656
|
-
end
|
|
1657
|
-
|
|
1658
|
-
# Update properties of this object
|
|
1659
|
-
def update!(**args)
|
|
1660
|
-
@transformations = args[:transformations] if args.key?(:transformations)
|
|
1661
|
-
end
|
|
1662
|
-
end
|
|
1663
|
-
|
|
1664
|
-
# Configuration description of the scanning process.
|
|
1665
|
-
# When used with redactContent only info_types and min_likelihood are currently
|
|
1666
|
-
# used.
|
|
1667
|
-
class GooglePrivacyDlpV2beta1InspectConfig
|
|
1668
|
-
include Google::Apis::Core::Hashable
|
|
1669
|
-
|
|
1670
|
-
# Custom info types provided by the user.
|
|
1671
|
-
# Corresponds to the JSON property `customInfoTypes`
|
|
1672
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CustomInfoType>]
|
|
1673
|
-
attr_accessor :custom_info_types
|
|
1674
|
-
|
|
1675
|
-
# When true, excludes type information of the findings.
|
|
1676
|
-
# Corresponds to the JSON property `excludeTypes`
|
|
1677
|
-
# @return [Boolean]
|
|
1678
|
-
attr_accessor :exclude_types
|
|
1679
|
-
alias_method :exclude_types?, :exclude_types
|
|
1680
|
-
|
|
1681
|
-
# When true, a contextual quote from the data that triggered a finding is
|
|
1682
|
-
# included in the response; see Finding.quote.
|
|
1683
|
-
# Corresponds to the JSON property `includeQuote`
|
|
1684
|
-
# @return [Boolean]
|
|
1685
|
-
attr_accessor :include_quote
|
|
1686
|
-
alias_method :include_quote?, :include_quote
|
|
1687
|
-
|
|
1688
|
-
# Configuration of findings limit given for specified info types.
|
|
1689
|
-
# Corresponds to the JSON property `infoTypeLimits`
|
|
1690
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoTypeLimit>]
|
|
1691
|
-
attr_accessor :info_type_limits
|
|
1692
|
-
|
|
1693
|
-
# Restricts what info_types to look for. The values must correspond to
|
|
1694
|
-
# InfoType values returned by ListInfoTypes or found in documentation.
|
|
1695
|
-
# Empty info_types runs all enabled detectors.
|
|
1696
|
-
# Corresponds to the JSON property `infoTypes`
|
|
1697
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType>]
|
|
1698
|
-
attr_accessor :info_types
|
|
1699
|
-
|
|
1700
|
-
# Limits the number of findings per content item or long running operation.
|
|
1701
|
-
# Corresponds to the JSON property `maxFindings`
|
|
1702
|
-
# @return [Fixnum]
|
|
1703
|
-
attr_accessor :max_findings
|
|
1704
|
-
|
|
1705
|
-
# Only returns findings equal or above this threshold.
|
|
1706
|
-
# Corresponds to the JSON property `minLikelihood`
|
|
1707
|
-
# @return [String]
|
|
1708
|
-
attr_accessor :min_likelihood
|
|
1709
|
-
|
|
1710
|
-
def initialize(**args)
|
|
1711
|
-
update!(**args)
|
|
1712
|
-
end
|
|
1713
|
-
|
|
1714
|
-
# Update properties of this object
|
|
1715
|
-
def update!(**args)
|
|
1716
|
-
@custom_info_types = args[:custom_info_types] if args.key?(:custom_info_types)
|
|
1717
|
-
@exclude_types = args[:exclude_types] if args.key?(:exclude_types)
|
|
1718
|
-
@include_quote = args[:include_quote] if args.key?(:include_quote)
|
|
1719
|
-
@info_type_limits = args[:info_type_limits] if args.key?(:info_type_limits)
|
|
1720
|
-
@info_types = args[:info_types] if args.key?(:info_types)
|
|
1721
|
-
@max_findings = args[:max_findings] if args.key?(:max_findings)
|
|
1722
|
-
@min_likelihood = args[:min_likelihood] if args.key?(:min_likelihood)
|
|
1723
|
-
end
|
|
1724
|
-
end
|
|
1725
|
-
|
|
1726
|
-
# Request to search for potentially sensitive info in a list of items.
|
|
1727
|
-
class GooglePrivacyDlpV2beta1InspectContentRequest
|
|
1728
|
-
include Google::Apis::Core::Hashable
|
|
1729
|
-
|
|
1730
|
-
# Configuration description of the scanning process.
|
|
1731
|
-
# When used with redactContent only info_types and min_likelihood are currently
|
|
1732
|
-
# used.
|
|
1733
|
-
# Corresponds to the JSON property `inspectConfig`
|
|
1734
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectConfig]
|
|
1735
|
-
attr_accessor :inspect_config
|
|
1736
|
-
|
|
1737
|
-
# The list of items to inspect. Items in a single request are
|
|
1738
|
-
# considered "related" unless inspect_config.independent_inputs is true.
|
|
1739
|
-
# Up to 100 are allowed per request.
|
|
1740
|
-
# Corresponds to the JSON property `items`
|
|
1741
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ContentItem>]
|
|
1742
|
-
attr_accessor :items
|
|
1743
|
-
|
|
1744
|
-
def initialize(**args)
|
|
1745
|
-
update!(**args)
|
|
1746
|
-
end
|
|
1747
|
-
|
|
1748
|
-
# Update properties of this object
|
|
1749
|
-
def update!(**args)
|
|
1750
|
-
@inspect_config = args[:inspect_config] if args.key?(:inspect_config)
|
|
1751
|
-
@items = args[:items] if args.key?(:items)
|
|
1752
|
-
end
|
|
1753
|
-
end
|
|
1754
|
-
|
|
1755
|
-
# Results of inspecting a list of items.
|
|
1756
|
-
class GooglePrivacyDlpV2beta1InspectContentResponse
|
|
1757
|
-
include Google::Apis::Core::Hashable
|
|
1758
|
-
|
|
1759
|
-
# Each content_item from the request has a result in this list, in the
|
|
1760
|
-
# same order as the request.
|
|
1761
|
-
# Corresponds to the JSON property `results`
|
|
1762
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectResult>]
|
|
1763
|
-
attr_accessor :results
|
|
1764
|
-
|
|
1765
|
-
def initialize(**args)
|
|
1766
|
-
update!(**args)
|
|
1767
|
-
end
|
|
1768
|
-
|
|
1769
|
-
# Update properties of this object
|
|
1770
|
-
def update!(**args)
|
|
1771
|
-
@results = args[:results] if args.key?(:results)
|
|
1772
|
-
end
|
|
1773
|
-
end
|
|
1774
|
-
|
|
1775
|
-
# Metadata returned within GetOperation for an inspect request.
|
|
1776
|
-
class GooglePrivacyDlpV2beta1InspectOperationMetadata
|
|
1777
|
-
include Google::Apis::Core::Hashable
|
|
1778
|
-
|
|
1779
|
-
# The time which this request was started.
|
|
1780
|
-
# Corresponds to the JSON property `createTime`
|
|
1781
|
-
# @return [String]
|
|
1782
|
-
attr_accessor :create_time
|
|
1783
|
-
|
|
1784
|
-
#
|
|
1785
|
-
# Corresponds to the JSON property `infoTypeStats`
|
|
1786
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoTypeStatistics>]
|
|
1787
|
-
attr_accessor :info_type_stats
|
|
1788
|
-
|
|
1789
|
-
# Total size in bytes that were processed.
|
|
1790
|
-
# Corresponds to the JSON property `processedBytes`
|
|
1791
|
-
# @return [Fixnum]
|
|
1792
|
-
attr_accessor :processed_bytes
|
|
1793
|
-
|
|
1794
|
-
# Configuration description of the scanning process.
|
|
1795
|
-
# When used with redactContent only info_types and min_likelihood are currently
|
|
1796
|
-
# used.
|
|
1797
|
-
# Corresponds to the JSON property `requestInspectConfig`
|
|
1798
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectConfig]
|
|
1799
|
-
attr_accessor :request_inspect_config
|
|
1800
|
-
|
|
1801
|
-
# Cloud repository for storing output.
|
|
1802
|
-
# Corresponds to the JSON property `requestOutputConfig`
|
|
1803
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1OutputStorageConfig]
|
|
1804
|
-
attr_accessor :request_output_config
|
|
1805
|
-
|
|
1806
|
-
# Shared message indicating Cloud storage type.
|
|
1807
|
-
# Corresponds to the JSON property `requestStorageConfig`
|
|
1808
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1StorageConfig]
|
|
1809
|
-
attr_accessor :request_storage_config
|
|
1810
|
-
|
|
1811
|
-
# Estimate of the number of bytes to process.
|
|
1812
|
-
# Corresponds to the JSON property `totalEstimatedBytes`
|
|
1813
|
-
# @return [Fixnum]
|
|
1814
|
-
attr_accessor :total_estimated_bytes
|
|
1815
|
-
|
|
1816
|
-
def initialize(**args)
|
|
1817
|
-
update!(**args)
|
|
1818
|
-
end
|
|
1819
|
-
|
|
1820
|
-
# Update properties of this object
|
|
1821
|
-
def update!(**args)
|
|
1822
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
|
1823
|
-
@info_type_stats = args[:info_type_stats] if args.key?(:info_type_stats)
|
|
1824
|
-
@processed_bytes = args[:processed_bytes] if args.key?(:processed_bytes)
|
|
1825
|
-
@request_inspect_config = args[:request_inspect_config] if args.key?(:request_inspect_config)
|
|
1826
|
-
@request_output_config = args[:request_output_config] if args.key?(:request_output_config)
|
|
1827
|
-
@request_storage_config = args[:request_storage_config] if args.key?(:request_storage_config)
|
|
1828
|
-
@total_estimated_bytes = args[:total_estimated_bytes] if args.key?(:total_estimated_bytes)
|
|
1829
|
-
end
|
|
1830
|
-
end
|
|
1831
|
-
|
|
1832
|
-
# The operational data.
|
|
1833
|
-
class GooglePrivacyDlpV2beta1InspectOperationResult
|
|
1834
|
-
include Google::Apis::Core::Hashable
|
|
1835
|
-
|
|
1836
|
-
# The server-assigned name, which is only unique within the same service that
|
|
1837
|
-
# originally returns it. If you use the default HTTP mapping, the
|
|
1838
|
-
# `name` should have the format of `inspect/results/`id``.
|
|
1839
|
-
# Corresponds to the JSON property `name`
|
|
1840
|
-
# @return [String]
|
|
1841
|
-
attr_accessor :name
|
|
1842
|
-
|
|
1843
|
-
def initialize(**args)
|
|
1844
|
-
update!(**args)
|
|
1845
|
-
end
|
|
1846
|
-
|
|
1847
|
-
# Update properties of this object
|
|
1848
|
-
def update!(**args)
|
|
1849
|
-
@name = args[:name] if args.key?(:name)
|
|
1850
|
-
end
|
|
1851
|
-
end
|
|
1852
|
-
|
|
1853
|
-
# All the findings for a single scanned item.
|
|
1854
|
-
class GooglePrivacyDlpV2beta1InspectResult
|
|
1855
|
-
include Google::Apis::Core::Hashable
|
|
1856
|
-
|
|
1857
|
-
# List of findings for an item.
|
|
1858
|
-
# Corresponds to the JSON property `findings`
|
|
1859
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Finding>]
|
|
1860
|
-
attr_accessor :findings
|
|
1861
|
-
|
|
1862
|
-
# If true, then this item might have more findings than were returned,
|
|
1863
|
-
# and the findings returned are an arbitrary subset of all findings.
|
|
1864
|
-
# The findings list might be truncated because the input items were too
|
|
1865
|
-
# large, or because the server reached the maximum amount of resources
|
|
1866
|
-
# allowed for a single API call. For best results, divide the input into
|
|
1867
|
-
# smaller batches.
|
|
1868
|
-
# Corresponds to the JSON property `findingsTruncated`
|
|
1869
|
-
# @return [Boolean]
|
|
1870
|
-
attr_accessor :findings_truncated
|
|
1871
|
-
alias_method :findings_truncated?, :findings_truncated
|
|
1872
|
-
|
|
1873
|
-
def initialize(**args)
|
|
1874
|
-
update!(**args)
|
|
1875
|
-
end
|
|
1876
|
-
|
|
1877
|
-
# Update properties of this object
|
|
1878
|
-
def update!(**args)
|
|
1879
|
-
@findings = args[:findings] if args.key?(:findings)
|
|
1880
|
-
@findings_truncated = args[:findings_truncated] if args.key?(:findings_truncated)
|
|
1881
|
-
end
|
|
1882
|
-
end
|
|
1883
|
-
|
|
1884
|
-
# k-anonymity metric, used for analysis of reidentification risk.
|
|
1885
|
-
class GooglePrivacyDlpV2beta1KAnonymityConfig
|
|
1886
|
-
include Google::Apis::Core::Hashable
|
|
1887
|
-
|
|
1888
|
-
# An entity in a dataset is a field or set of fields that correspond to a
|
|
1889
|
-
# single person. For example, in medical records the `EntityId` might be
|
|
1890
|
-
# a patient identifier, or for financial records it might be an account
|
|
1891
|
-
# identifier. This message is used when generalizations or analysis must be
|
|
1892
|
-
# consistent across multiple rows pertaining to the same entity.
|
|
1893
|
-
# Corresponds to the JSON property `entityId`
|
|
1894
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1EntityId]
|
|
1895
|
-
attr_accessor :entity_id
|
|
1896
|
-
|
|
1897
|
-
# Set of fields to compute k-anonymity over. When multiple fields are
|
|
1898
|
-
# specified, they are considered a single composite key. Structs and
|
|
1899
|
-
# repeated data types are not supported; however, nested fields are
|
|
1900
|
-
# supported so long as they are not structs themselves or nested within
|
|
1901
|
-
# a repeated field.
|
|
1902
|
-
# Corresponds to the JSON property `quasiIds`
|
|
1903
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId>]
|
|
1904
|
-
attr_accessor :quasi_ids
|
|
1905
|
-
|
|
1906
|
-
def initialize(**args)
|
|
1907
|
-
update!(**args)
|
|
1908
|
-
end
|
|
1909
|
-
|
|
1910
|
-
# Update properties of this object
|
|
1911
|
-
def update!(**args)
|
|
1912
|
-
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
|
1913
|
-
@quasi_ids = args[:quasi_ids] if args.key?(:quasi_ids)
|
|
1914
|
-
end
|
|
1915
|
-
end
|
|
1916
|
-
|
|
1917
|
-
# The set of columns' values that share the same k-anonymity value.
|
|
1918
|
-
class GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass
|
|
1919
|
-
include Google::Apis::Core::Hashable
|
|
1920
|
-
|
|
1921
|
-
# Size of the equivalence class, for example number of rows with the
|
|
1922
|
-
# above set of values.
|
|
1923
|
-
# Corresponds to the JSON property `equivalenceClassSize`
|
|
1924
|
-
# @return [Fixnum]
|
|
1925
|
-
attr_accessor :equivalence_class_size
|
|
1926
|
-
|
|
1927
|
-
# Set of values defining the equivalence class. One value per
|
|
1928
|
-
# quasi-identifier column in the original KAnonymity metric message.
|
|
1929
|
-
# The order is always the same as the original request.
|
|
1930
|
-
# Corresponds to the JSON property `quasiIdsValues`
|
|
1931
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value>]
|
|
1932
|
-
attr_accessor :quasi_ids_values
|
|
1933
|
-
|
|
1934
|
-
def initialize(**args)
|
|
1935
|
-
update!(**args)
|
|
1936
|
-
end
|
|
1937
|
-
|
|
1938
|
-
# Update properties of this object
|
|
1939
|
-
def update!(**args)
|
|
1940
|
-
@equivalence_class_size = args[:equivalence_class_size] if args.key?(:equivalence_class_size)
|
|
1941
|
-
@quasi_ids_values = args[:quasi_ids_values] if args.key?(:quasi_ids_values)
|
|
1942
|
-
end
|
|
1943
|
-
end
|
|
1944
|
-
|
|
1945
|
-
# Histogram bucket of equivalence class sizes in the table.
|
|
1946
|
-
class GooglePrivacyDlpV2beta1KAnonymityHistogramBucket
|
|
1947
|
-
include Google::Apis::Core::Hashable
|
|
1948
|
-
|
|
1949
|
-
# Total number of records in this bucket.
|
|
1950
|
-
# Corresponds to the JSON property `bucketSize`
|
|
1951
|
-
# @return [Fixnum]
|
|
1952
|
-
attr_accessor :bucket_size
|
|
1953
|
-
|
|
1954
|
-
# Sample of equivalence classes in this bucket. The total number of
|
|
1955
|
-
# classes returned per bucket is capped at 20.
|
|
1956
|
-
# Corresponds to the JSON property `bucketValues`
|
|
1957
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass>]
|
|
1958
|
-
attr_accessor :bucket_values
|
|
1959
|
-
|
|
1960
|
-
# Lower bound on the size of the equivalence classes in this bucket.
|
|
1961
|
-
# Corresponds to the JSON property `equivalenceClassSizeLowerBound`
|
|
1962
|
-
# @return [Fixnum]
|
|
1963
|
-
attr_accessor :equivalence_class_size_lower_bound
|
|
1964
|
-
|
|
1965
|
-
# Upper bound on the size of the equivalence classes in this bucket.
|
|
1966
|
-
# Corresponds to the JSON property `equivalenceClassSizeUpperBound`
|
|
1967
|
-
# @return [Fixnum]
|
|
1968
|
-
attr_accessor :equivalence_class_size_upper_bound
|
|
1969
|
-
|
|
1970
|
-
def initialize(**args)
|
|
1971
|
-
update!(**args)
|
|
1972
|
-
end
|
|
1973
|
-
|
|
1974
|
-
# Update properties of this object
|
|
1975
|
-
def update!(**args)
|
|
1976
|
-
@bucket_size = args[:bucket_size] if args.key?(:bucket_size)
|
|
1977
|
-
@bucket_values = args[:bucket_values] if args.key?(:bucket_values)
|
|
1978
|
-
@equivalence_class_size_lower_bound = args[:equivalence_class_size_lower_bound] if args.key?(:equivalence_class_size_lower_bound)
|
|
1979
|
-
@equivalence_class_size_upper_bound = args[:equivalence_class_size_upper_bound] if args.key?(:equivalence_class_size_upper_bound)
|
|
1980
|
-
end
|
|
1981
|
-
end
|
|
1982
|
-
|
|
1983
|
-
# Result of the k-anonymity computation.
|
|
1984
|
-
class GooglePrivacyDlpV2beta1KAnonymityResult
|
|
1985
|
-
include Google::Apis::Core::Hashable
|
|
1986
|
-
|
|
1987
|
-
# Histogram of k-anonymity equivalence classes.
|
|
1988
|
-
# Corresponds to the JSON property `equivalenceClassHistogramBuckets`
|
|
1989
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KAnonymityHistogramBucket>]
|
|
1990
|
-
attr_accessor :equivalence_class_histogram_buckets
|
|
1991
|
-
|
|
1992
|
-
def initialize(**args)
|
|
1993
|
-
update!(**args)
|
|
1994
|
-
end
|
|
1995
|
-
|
|
1996
|
-
# Update properties of this object
|
|
1997
|
-
def update!(**args)
|
|
1998
|
-
@equivalence_class_histogram_buckets = args[:equivalence_class_histogram_buckets] if args.key?(:equivalence_class_histogram_buckets)
|
|
1999
|
-
end
|
|
2000
|
-
end
|
|
2001
|
-
|
|
2002
|
-
# Reidentifiability metric. This corresponds to a risk model similar to what
|
|
2003
|
-
# is called "journalist risk" in the literature, except the attack dataset is
|
|
2004
|
-
# statistically modeled instead of being perfectly known. This can be done
|
|
2005
|
-
# using publicly available data (like the US Census), or using a custom
|
|
2006
|
-
# statistical model (indicated as one or several BigQuery tables), or by
|
|
2007
|
-
# extrapolating from the distribution of values in the input dataset.
|
|
2008
|
-
class GooglePrivacyDlpV2beta1KMapEstimationConfig
|
|
2009
|
-
include Google::Apis::Core::Hashable
|
|
2010
|
-
|
|
2011
|
-
# Several auxiliary tables can be used in the analysis. Each custom_tag
|
|
2012
|
-
# used to tag a quasi-identifiers column must appear in exactly one column
|
|
2013
|
-
# of one auxiliary table.
|
|
2014
|
-
# Corresponds to the JSON property `auxiliaryTables`
|
|
2015
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1AuxiliaryTable>]
|
|
2016
|
-
attr_accessor :auxiliary_tables
|
|
2017
|
-
|
|
2018
|
-
# Fields considered to be quasi-identifiers. No two columns can have the
|
|
2019
|
-
# same tag. [required]
|
|
2020
|
-
# Corresponds to the JSON property `quasiIds`
|
|
2021
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TaggedField>]
|
|
2022
|
-
attr_accessor :quasi_ids
|
|
2023
|
-
|
|
2024
|
-
# ISO 3166-1 alpha-2 region code to use in the statistical modeling.
|
|
2025
|
-
# Required if no column is tagged with a region-specific InfoType (like
|
|
2026
|
-
# US_ZIP_5) or a region code.
|
|
2027
|
-
# Corresponds to the JSON property `regionCode`
|
|
2028
|
-
# @return [String]
|
|
2029
|
-
attr_accessor :region_code
|
|
2030
|
-
|
|
2031
|
-
def initialize(**args)
|
|
2032
|
-
update!(**args)
|
|
2033
|
-
end
|
|
2034
|
-
|
|
2035
|
-
# Update properties of this object
|
|
2036
|
-
def update!(**args)
|
|
2037
|
-
@auxiliary_tables = args[:auxiliary_tables] if args.key?(:auxiliary_tables)
|
|
2038
|
-
@quasi_ids = args[:quasi_ids] if args.key?(:quasi_ids)
|
|
2039
|
-
@region_code = args[:region_code] if args.key?(:region_code)
|
|
2040
|
-
end
|
|
2041
|
-
end
|
|
2042
|
-
|
|
2043
|
-
# A KMapEstimationHistogramBucket message with the following values:
|
|
2044
|
-
# min_anonymity: 3
|
|
2045
|
-
# max_anonymity: 5
|
|
2046
|
-
# frequency: 42
|
|
2047
|
-
# means that there are 42 records whose quasi-identifier values correspond
|
|
2048
|
-
# to 3, 4 or 5 people in the overlying population. An important particular
|
|
2049
|
-
# case is when min_anonymity = max_anonymity = 1: the frequency field then
|
|
2050
|
-
# corresponds to the number of uniquely identifiable records.
|
|
2051
|
-
class GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket
|
|
2052
|
-
include Google::Apis::Core::Hashable
|
|
2053
|
-
|
|
2054
|
-
# Number of records within these anonymity bounds.
|
|
2055
|
-
# Corresponds to the JSON property `bucketSize`
|
|
2056
|
-
# @return [Fixnum]
|
|
2057
|
-
attr_accessor :bucket_size
|
|
2058
|
-
|
|
2059
|
-
# Sample of quasi-identifier tuple values in this bucket. The total
|
|
2060
|
-
# number of classes returned per bucket is capped at 20.
|
|
2061
|
-
# Corresponds to the JSON property `bucketValues`
|
|
2062
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues>]
|
|
2063
|
-
attr_accessor :bucket_values
|
|
2064
|
-
|
|
2065
|
-
# Always greater than or equal to min_anonymity.
|
|
2066
|
-
# Corresponds to the JSON property `maxAnonymity`
|
|
2067
|
-
# @return [Fixnum]
|
|
2068
|
-
attr_accessor :max_anonymity
|
|
2069
|
-
|
|
2070
|
-
# Always positive.
|
|
2071
|
-
# Corresponds to the JSON property `minAnonymity`
|
|
2072
|
-
# @return [Fixnum]
|
|
2073
|
-
attr_accessor :min_anonymity
|
|
2074
|
-
|
|
2075
|
-
def initialize(**args)
|
|
2076
|
-
update!(**args)
|
|
2077
|
-
end
|
|
2078
|
-
|
|
2079
|
-
# Update properties of this object
|
|
2080
|
-
def update!(**args)
|
|
2081
|
-
@bucket_size = args[:bucket_size] if args.key?(:bucket_size)
|
|
2082
|
-
@bucket_values = args[:bucket_values] if args.key?(:bucket_values)
|
|
2083
|
-
@max_anonymity = args[:max_anonymity] if args.key?(:max_anonymity)
|
|
2084
|
-
@min_anonymity = args[:min_anonymity] if args.key?(:min_anonymity)
|
|
2085
|
-
end
|
|
2086
|
-
end
|
|
2087
|
-
|
|
2088
|
-
# A tuple of values for the quasi-identifier columns.
|
|
2089
|
-
class GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues
|
|
2090
|
-
include Google::Apis::Core::Hashable
|
|
2091
|
-
|
|
2092
|
-
# The estimated anonymity for these quasi-identifier values.
|
|
2093
|
-
# Corresponds to the JSON property `estimatedAnonymity`
|
|
2094
|
-
# @return [Fixnum]
|
|
2095
|
-
attr_accessor :estimated_anonymity
|
|
2096
|
-
|
|
2097
|
-
# The quasi-identifier values.
|
|
2098
|
-
# Corresponds to the JSON property `quasiIdsValues`
|
|
2099
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value>]
|
|
2100
|
-
attr_accessor :quasi_ids_values
|
|
2101
|
-
|
|
2102
|
-
def initialize(**args)
|
|
2103
|
-
update!(**args)
|
|
2104
|
-
end
|
|
2105
|
-
|
|
2106
|
-
# Update properties of this object
|
|
2107
|
-
def update!(**args)
|
|
2108
|
-
@estimated_anonymity = args[:estimated_anonymity] if args.key?(:estimated_anonymity)
|
|
2109
|
-
@quasi_ids_values = args[:quasi_ids_values] if args.key?(:quasi_ids_values)
|
|
2110
|
-
end
|
|
2111
|
-
end
|
|
2112
|
-
|
|
2113
|
-
# Result of the reidentifiability analysis. Note that these results are an
|
|
2114
|
-
# estimation, not exact values.
|
|
2115
|
-
class GooglePrivacyDlpV2beta1KMapEstimationResult
|
|
2116
|
-
include Google::Apis::Core::Hashable
|
|
2117
|
-
|
|
2118
|
-
# The intervals [min_anonymity, max_anonymity] do not overlap. If a value
|
|
2119
|
-
# doesn't correspond to any such interval, the associated frequency is
|
|
2120
|
-
# zero. For example, the following records:
|
|
2121
|
-
# `min_anonymity: 1, max_anonymity: 1, frequency: 17`
|
|
2122
|
-
# `min_anonymity: 2, max_anonymity: 3, frequency: 42`
|
|
2123
|
-
# `min_anonymity: 5, max_anonymity: 10, frequency: 99`
|
|
2124
|
-
# mean that there are no record with an estimated anonymity of 4, 5, or
|
|
2125
|
-
# larger than 10.
|
|
2126
|
-
# Corresponds to the JSON property `kMapEstimationHistogram`
|
|
2127
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket>]
|
|
2128
|
-
attr_accessor :k_map_estimation_histogram
|
|
2129
|
-
|
|
2130
|
-
def initialize(**args)
|
|
2131
|
-
update!(**args)
|
|
2132
|
-
end
|
|
2133
|
-
|
|
2134
|
-
# Update properties of this object
|
|
2135
|
-
def update!(**args)
|
|
2136
|
-
@k_map_estimation_histogram = args[:k_map_estimation_histogram] if args.key?(:k_map_estimation_histogram)
|
|
2137
|
-
end
|
|
2138
|
-
end
|
|
2139
|
-
|
|
2140
|
-
# A unique identifier for a Datastore entity.
|
|
2141
|
-
# If a key's partition ID or any of its path kinds or names are
|
|
2142
|
-
# reserved/read-only, the key is reserved/read-only.
|
|
2143
|
-
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
2144
|
-
class GooglePrivacyDlpV2beta1Key
|
|
2145
|
-
include Google::Apis::Core::Hashable
|
|
2146
|
-
|
|
2147
|
-
# Datastore partition ID.
|
|
2148
|
-
# A partition ID identifies a grouping of entities. The grouping is always
|
|
2149
|
-
# by project and namespace, however the namespace ID may be empty.
|
|
2150
|
-
# A partition ID contains several dimensions:
|
|
2151
|
-
# project ID and namespace ID.
|
|
2152
|
-
# Corresponds to the JSON property `partitionId`
|
|
2153
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PartitionId]
|
|
2154
|
-
attr_accessor :partition_id
|
|
2155
|
-
|
|
2156
|
-
# The entity path.
|
|
2157
|
-
# An entity path consists of one or more elements composed of a kind and a
|
|
2158
|
-
# string or numerical identifier, which identify entities. The first
|
|
2159
|
-
# element identifies a _root entity_, the second element identifies
|
|
2160
|
-
# a _child_ of the root entity, the third element identifies a child of the
|
|
2161
|
-
# second entity, and so forth. The entities identified by all prefixes of
|
|
2162
|
-
# the path are called the element's _ancestors_.
|
|
2163
|
-
# A path can never be empty, and a path can have at most 100 elements.
|
|
2164
|
-
# Corresponds to the JSON property `path`
|
|
2165
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PathElement>]
|
|
2166
|
-
attr_accessor :path
|
|
2167
|
-
|
|
2168
|
-
def initialize(**args)
|
|
2169
|
-
update!(**args)
|
|
2170
|
-
end
|
|
2171
|
-
|
|
2172
|
-
# Update properties of this object
|
|
2173
|
-
def update!(**args)
|
|
2174
|
-
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
2175
|
-
@path = args[:path] if args.key?(:path)
|
|
2176
|
-
end
|
|
2177
|
-
end
|
|
2178
|
-
|
|
2179
|
-
# A representation of a Datastore kind.
|
|
2180
|
-
class GooglePrivacyDlpV2beta1KindExpression
|
|
2181
|
-
include Google::Apis::Core::Hashable
|
|
2182
|
-
|
|
2183
|
-
# The name of the kind.
|
|
2184
|
-
# Corresponds to the JSON property `name`
|
|
2185
|
-
# @return [String]
|
|
2186
|
-
attr_accessor :name
|
|
2187
|
-
|
|
2188
|
-
def initialize(**args)
|
|
2189
|
-
update!(**args)
|
|
2190
|
-
end
|
|
2191
|
-
|
|
2192
|
-
# Update properties of this object
|
|
2193
|
-
def update!(**args)
|
|
2194
|
-
@name = args[:name] if args.key?(:name)
|
|
2195
|
-
end
|
|
2196
|
-
end
|
|
2197
|
-
|
|
2198
|
-
# Include to use an existing data crypto key wrapped by KMS.
|
|
2199
|
-
# Authorization requires the following IAM permissions when sending a request
|
|
2200
|
-
# to perform a crypto transformation using a kms-wrapped crypto key:
|
|
2201
|
-
# dlp.kms.encrypt
|
|
2202
|
-
class GooglePrivacyDlpV2beta1KmsWrappedCryptoKey
|
|
2203
|
-
include Google::Apis::Core::Hashable
|
|
2204
|
-
|
|
2205
|
-
# The resource name of the KMS CryptoKey to use for unwrapping. [required]
|
|
2206
|
-
# Corresponds to the JSON property `cryptoKeyName`
|
|
2207
|
-
# @return [String]
|
|
2208
|
-
attr_accessor :crypto_key_name
|
|
2209
|
-
|
|
2210
|
-
# The wrapped data crypto key. [required]
|
|
2211
|
-
# Corresponds to the JSON property `wrappedKey`
|
|
2212
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
2213
|
-
# @return [String]
|
|
2214
|
-
attr_accessor :wrapped_key
|
|
2215
|
-
|
|
2216
|
-
def initialize(**args)
|
|
2217
|
-
update!(**args)
|
|
2218
|
-
end
|
|
2219
|
-
|
|
2220
|
-
# Update properties of this object
|
|
2221
|
-
def update!(**args)
|
|
2222
|
-
@crypto_key_name = args[:crypto_key_name] if args.key?(:crypto_key_name)
|
|
2223
|
-
@wrapped_key = args[:wrapped_key] if args.key?(:wrapped_key)
|
|
2224
|
-
end
|
|
2225
|
-
end
|
|
2226
|
-
|
|
2227
|
-
# l-diversity metric, used for analysis of reidentification risk.
|
|
2228
|
-
class GooglePrivacyDlpV2beta1LDiversityConfig
|
|
2229
|
-
include Google::Apis::Core::Hashable
|
|
2230
|
-
|
|
2231
|
-
# Set of quasi-identifiers indicating how equivalence classes are
|
|
2232
|
-
# defined for the l-diversity computation. When multiple fields are
|
|
2233
|
-
# specified, they are considered a single composite key.
|
|
2234
|
-
# Corresponds to the JSON property `quasiIds`
|
|
2235
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId>]
|
|
2236
|
-
attr_accessor :quasi_ids
|
|
2237
|
-
|
|
2238
|
-
# General identifier of a data field in a storage service.
|
|
2239
|
-
# Corresponds to the JSON property `sensitiveAttribute`
|
|
2240
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId]
|
|
2241
|
-
attr_accessor :sensitive_attribute
|
|
2242
|
-
|
|
2243
|
-
def initialize(**args)
|
|
2244
|
-
update!(**args)
|
|
2245
|
-
end
|
|
2246
|
-
|
|
2247
|
-
# Update properties of this object
|
|
2248
|
-
def update!(**args)
|
|
2249
|
-
@quasi_ids = args[:quasi_ids] if args.key?(:quasi_ids)
|
|
2250
|
-
@sensitive_attribute = args[:sensitive_attribute] if args.key?(:sensitive_attribute)
|
|
2251
|
-
end
|
|
2252
|
-
end
|
|
2253
|
-
|
|
2254
|
-
# The set of columns' values that share the same l-diversity value.
|
|
2255
|
-
class GooglePrivacyDlpV2beta1LDiversityEquivalenceClass
|
|
2256
|
-
include Google::Apis::Core::Hashable
|
|
2257
|
-
|
|
2258
|
-
# Size of the k-anonymity equivalence class.
|
|
2259
|
-
# Corresponds to the JSON property `equivalenceClassSize`
|
|
2260
|
-
# @return [Fixnum]
|
|
2261
|
-
attr_accessor :equivalence_class_size
|
|
2262
|
-
|
|
2263
|
-
# Number of distinct sensitive values in this equivalence class.
|
|
2264
|
-
# Corresponds to the JSON property `numDistinctSensitiveValues`
|
|
2265
|
-
# @return [Fixnum]
|
|
2266
|
-
attr_accessor :num_distinct_sensitive_values
|
|
2267
|
-
|
|
2268
|
-
# Quasi-identifier values defining the k-anonymity equivalence
|
|
2269
|
-
# class. The order is always the same as the original request.
|
|
2270
|
-
# Corresponds to the JSON property `quasiIdsValues`
|
|
2271
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value>]
|
|
2272
|
-
attr_accessor :quasi_ids_values
|
|
2273
|
-
|
|
2274
|
-
# Estimated frequencies of top sensitive values.
|
|
2275
|
-
# Corresponds to the JSON property `topSensitiveValues`
|
|
2276
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ValueFrequency>]
|
|
2277
|
-
attr_accessor :top_sensitive_values
|
|
2278
|
-
|
|
2279
|
-
def initialize(**args)
|
|
2280
|
-
update!(**args)
|
|
2281
|
-
end
|
|
2282
|
-
|
|
2283
|
-
# Update properties of this object
|
|
2284
|
-
def update!(**args)
|
|
2285
|
-
@equivalence_class_size = args[:equivalence_class_size] if args.key?(:equivalence_class_size)
|
|
2286
|
-
@num_distinct_sensitive_values = args[:num_distinct_sensitive_values] if args.key?(:num_distinct_sensitive_values)
|
|
2287
|
-
@quasi_ids_values = args[:quasi_ids_values] if args.key?(:quasi_ids_values)
|
|
2288
|
-
@top_sensitive_values = args[:top_sensitive_values] if args.key?(:top_sensitive_values)
|
|
2289
|
-
end
|
|
2290
|
-
end
|
|
2291
|
-
|
|
2292
|
-
# Histogram bucket of sensitive value frequencies in the table.
|
|
2293
|
-
class GooglePrivacyDlpV2beta1LDiversityHistogramBucket
|
|
2294
|
-
include Google::Apis::Core::Hashable
|
|
2295
|
-
|
|
2296
|
-
# Total number of records in this bucket.
|
|
2297
|
-
# Corresponds to the JSON property `bucketSize`
|
|
2298
|
-
# @return [Fixnum]
|
|
2299
|
-
attr_accessor :bucket_size
|
|
2300
|
-
|
|
2301
|
-
# Sample of equivalence classes in this bucket. The total number of
|
|
2302
|
-
# classes returned per bucket is capped at 20.
|
|
2303
|
-
# Corresponds to the JSON property `bucketValues`
|
|
2304
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1LDiversityEquivalenceClass>]
|
|
2305
|
-
attr_accessor :bucket_values
|
|
2306
|
-
|
|
2307
|
-
# Lower bound on the sensitive value frequencies of the equivalence
|
|
2308
|
-
# classes in this bucket.
|
|
2309
|
-
# Corresponds to the JSON property `sensitiveValueFrequencyLowerBound`
|
|
2310
|
-
# @return [Fixnum]
|
|
2311
|
-
attr_accessor :sensitive_value_frequency_lower_bound
|
|
2312
|
-
|
|
2313
|
-
# Upper bound on the sensitive value frequencies of the equivalence
|
|
2314
|
-
# classes in this bucket.
|
|
2315
|
-
# Corresponds to the JSON property `sensitiveValueFrequencyUpperBound`
|
|
2316
|
-
# @return [Fixnum]
|
|
2317
|
-
attr_accessor :sensitive_value_frequency_upper_bound
|
|
2318
|
-
|
|
2319
|
-
def initialize(**args)
|
|
2320
|
-
update!(**args)
|
|
2321
|
-
end
|
|
2322
|
-
|
|
2323
|
-
# Update properties of this object
|
|
2324
|
-
def update!(**args)
|
|
2325
|
-
@bucket_size = args[:bucket_size] if args.key?(:bucket_size)
|
|
2326
|
-
@bucket_values = args[:bucket_values] if args.key?(:bucket_values)
|
|
2327
|
-
@sensitive_value_frequency_lower_bound = args[:sensitive_value_frequency_lower_bound] if args.key?(:sensitive_value_frequency_lower_bound)
|
|
2328
|
-
@sensitive_value_frequency_upper_bound = args[:sensitive_value_frequency_upper_bound] if args.key?(:sensitive_value_frequency_upper_bound)
|
|
2329
|
-
end
|
|
2330
|
-
end
|
|
2331
|
-
|
|
2332
|
-
# Result of the l-diversity computation.
|
|
2333
|
-
class GooglePrivacyDlpV2beta1LDiversityResult
|
|
2334
|
-
include Google::Apis::Core::Hashable
|
|
2335
|
-
|
|
2336
|
-
# Histogram of l-diversity equivalence class sensitive value frequencies.
|
|
2337
|
-
# Corresponds to the JSON property `sensitiveValueFrequencyHistogramBuckets`
|
|
2338
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1LDiversityHistogramBucket>]
|
|
2339
|
-
attr_accessor :sensitive_value_frequency_histogram_buckets
|
|
2340
|
-
|
|
2341
|
-
def initialize(**args)
|
|
2342
|
-
update!(**args)
|
|
2343
|
-
end
|
|
2344
|
-
|
|
2345
|
-
# Update properties of this object
|
|
2346
|
-
def update!(**args)
|
|
2347
|
-
@sensitive_value_frequency_histogram_buckets = args[:sensitive_value_frequency_histogram_buckets] if args.key?(:sensitive_value_frequency_histogram_buckets)
|
|
2348
|
-
end
|
|
2349
|
-
end
|
|
2350
|
-
|
|
2351
|
-
# Response to the ListInfoTypes request.
|
|
2352
|
-
class GooglePrivacyDlpV2beta1ListInfoTypesResponse
|
|
2353
|
-
include Google::Apis::Core::Hashable
|
|
2354
|
-
|
|
2355
|
-
# Set of sensitive info types belonging to a category.
|
|
2356
|
-
# Corresponds to the JSON property `infoTypes`
|
|
2357
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoTypeDescription>]
|
|
2358
|
-
attr_accessor :info_types
|
|
2359
|
-
|
|
2360
|
-
def initialize(**args)
|
|
2361
|
-
update!(**args)
|
|
2362
|
-
end
|
|
2363
|
-
|
|
2364
|
-
# Update properties of this object
|
|
2365
|
-
def update!(**args)
|
|
2366
|
-
@info_types = args[:info_types] if args.key?(:info_types)
|
|
2367
|
-
end
|
|
2368
|
-
end
|
|
2369
|
-
|
|
2370
|
-
# Response to the ListInspectFindings request.
|
|
2371
|
-
class GooglePrivacyDlpV2beta1ListInspectFindingsResponse
|
|
2372
|
-
include Google::Apis::Core::Hashable
|
|
2373
|
-
|
|
2374
|
-
# If not empty, indicates that there may be more results that match the
|
|
2375
|
-
# request; this value should be passed in a new `ListInspectFindingsRequest`.
|
|
2376
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
2377
|
-
# @return [String]
|
|
2378
|
-
attr_accessor :next_page_token
|
|
2379
|
-
|
|
2380
|
-
# All the findings for a single scanned item.
|
|
2381
|
-
# Corresponds to the JSON property `result`
|
|
2382
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectResult]
|
|
2383
|
-
attr_accessor :result
|
|
2384
|
-
|
|
2385
|
-
def initialize(**args)
|
|
2386
|
-
update!(**args)
|
|
2387
|
-
end
|
|
2388
|
-
|
|
2389
|
-
# Update properties of this object
|
|
2390
|
-
def update!(**args)
|
|
2391
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
2392
|
-
@result = args[:result] if args.key?(:result)
|
|
2393
|
-
end
|
|
2394
|
-
end
|
|
2395
|
-
|
|
2396
|
-
# Response for ListRootCategories request.
|
|
2397
|
-
class GooglePrivacyDlpV2beta1ListRootCategoriesResponse
|
|
2398
|
-
include Google::Apis::Core::Hashable
|
|
2399
|
-
|
|
2400
|
-
# List of all into type categories supported by the API.
|
|
2401
|
-
# Corresponds to the JSON property `categories`
|
|
2402
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CategoryDescription>]
|
|
2403
|
-
attr_accessor :categories
|
|
2404
|
-
|
|
2405
|
-
def initialize(**args)
|
|
2406
|
-
update!(**args)
|
|
2407
|
-
end
|
|
2408
|
-
|
|
2409
|
-
# Update properties of this object
|
|
2410
|
-
def update!(**args)
|
|
2411
|
-
@categories = args[:categories] if args.key?(:categories)
|
|
2412
|
-
end
|
|
2413
|
-
end
|
|
2414
|
-
|
|
2415
|
-
# Specifies the location of the finding.
|
|
2416
|
-
class GooglePrivacyDlpV2beta1Location
|
|
2417
|
-
include Google::Apis::Core::Hashable
|
|
2418
|
-
|
|
2419
|
-
# Generic half-open interval [start, end)
|
|
2420
|
-
# Corresponds to the JSON property `byteRange`
|
|
2421
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Range]
|
|
2422
|
-
attr_accessor :byte_range
|
|
2423
|
-
|
|
2424
|
-
# Generic half-open interval [start, end)
|
|
2425
|
-
# Corresponds to the JSON property `codepointRange`
|
|
2426
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Range]
|
|
2427
|
-
attr_accessor :codepoint_range
|
|
2428
|
-
|
|
2429
|
-
# General identifier of a data field in a storage service.
|
|
2430
|
-
# Corresponds to the JSON property `fieldId`
|
|
2431
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId]
|
|
2432
|
-
attr_accessor :field_id
|
|
2433
|
-
|
|
2434
|
-
# The area within the image that contained the finding.
|
|
2435
|
-
# Provided when the content is an image.
|
|
2436
|
-
# Corresponds to the JSON property `imageBoxes`
|
|
2437
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ImageLocation>]
|
|
2438
|
-
attr_accessor :image_boxes
|
|
2439
|
-
|
|
2440
|
-
# Message for a unique key indicating a record that contains a finding.
|
|
2441
|
-
# Corresponds to the JSON property `recordKey`
|
|
2442
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RecordKey]
|
|
2443
|
-
attr_accessor :record_key
|
|
2444
|
-
|
|
2445
|
-
# Location of a finding within a table.
|
|
2446
|
-
# Corresponds to the JSON property `tableLocation`
|
|
2447
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TableLocation]
|
|
2448
|
-
attr_accessor :table_location
|
|
2449
|
-
|
|
2450
|
-
def initialize(**args)
|
|
2451
|
-
update!(**args)
|
|
2452
|
-
end
|
|
2453
|
-
|
|
2454
|
-
# Update properties of this object
|
|
2455
|
-
def update!(**args)
|
|
2456
|
-
@byte_range = args[:byte_range] if args.key?(:byte_range)
|
|
2457
|
-
@codepoint_range = args[:codepoint_range] if args.key?(:codepoint_range)
|
|
2458
|
-
@field_id = args[:field_id] if args.key?(:field_id)
|
|
2459
|
-
@image_boxes = args[:image_boxes] if args.key?(:image_boxes)
|
|
2460
|
-
@record_key = args[:record_key] if args.key?(:record_key)
|
|
2461
|
-
@table_location = args[:table_location] if args.key?(:table_location)
|
|
2462
|
-
end
|
|
2463
|
-
end
|
|
2464
|
-
|
|
2465
|
-
# Compute numerical stats over an individual column, including
|
|
2466
|
-
# min, max, and quantiles.
|
|
2467
|
-
class GooglePrivacyDlpV2beta1NumericalStatsConfig
|
|
2468
|
-
include Google::Apis::Core::Hashable
|
|
2469
|
-
|
|
2470
|
-
# General identifier of a data field in a storage service.
|
|
2471
|
-
# Corresponds to the JSON property `field`
|
|
2472
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId]
|
|
2473
|
-
attr_accessor :field
|
|
2474
|
-
|
|
2475
|
-
def initialize(**args)
|
|
2476
|
-
update!(**args)
|
|
2477
|
-
end
|
|
2478
|
-
|
|
2479
|
-
# Update properties of this object
|
|
2480
|
-
def update!(**args)
|
|
2481
|
-
@field = args[:field] if args.key?(:field)
|
|
2482
|
-
end
|
|
2483
|
-
end
|
|
2484
|
-
|
|
2485
|
-
# Result of the numerical stats computation.
|
|
2486
|
-
class GooglePrivacyDlpV2beta1NumericalStatsResult
|
|
2487
|
-
include Google::Apis::Core::Hashable
|
|
2488
|
-
|
|
2489
|
-
# Set of primitive values supported by the system.
|
|
2490
|
-
# Note that for the purposes of inspection or transformation, the number
|
|
2491
|
-
# of bytes considered to comprise a 'Value' is based on its representation
|
|
2492
|
-
# as a UTF-8 encoded string. For example, if 'integer_value' is set to
|
|
2493
|
-
# 123456789, the number of bytes would be counted as 9, even though an
|
|
2494
|
-
# int64 only holds up to 8 bytes of data.
|
|
2495
|
-
# Corresponds to the JSON property `maxValue`
|
|
2496
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value]
|
|
2497
|
-
attr_accessor :max_value
|
|
2498
|
-
|
|
2499
|
-
# Set of primitive values supported by the system.
|
|
2500
|
-
# Note that for the purposes of inspection or transformation, the number
|
|
2501
|
-
# of bytes considered to comprise a 'Value' is based on its representation
|
|
2502
|
-
# as a UTF-8 encoded string. For example, if 'integer_value' is set to
|
|
2503
|
-
# 123456789, the number of bytes would be counted as 9, even though an
|
|
2504
|
-
# int64 only holds up to 8 bytes of data.
|
|
2505
|
-
# Corresponds to the JSON property `minValue`
|
|
2506
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value]
|
|
2507
|
-
attr_accessor :min_value
|
|
2508
|
-
|
|
2509
|
-
# List of 99 values that partition the set of field values into 100 equal
|
|
2510
|
-
# sized buckets.
|
|
2511
|
-
# Corresponds to the JSON property `quantileValues`
|
|
2512
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value>]
|
|
2513
|
-
attr_accessor :quantile_values
|
|
2514
|
-
|
|
2515
|
-
def initialize(**args)
|
|
2516
|
-
update!(**args)
|
|
2517
|
-
end
|
|
2518
|
-
|
|
2519
|
-
# Update properties of this object
|
|
2520
|
-
def update!(**args)
|
|
2521
|
-
@max_value = args[:max_value] if args.key?(:max_value)
|
|
2522
|
-
@min_value = args[:min_value] if args.key?(:min_value)
|
|
2523
|
-
@quantile_values = args[:quantile_values] if args.key?(:quantile_values)
|
|
2524
|
-
end
|
|
2525
|
-
end
|
|
2526
|
-
|
|
2527
|
-
# Additional configuration for inspect long running operations.
|
|
2528
|
-
class GooglePrivacyDlpV2beta1OperationConfig
|
|
2529
|
-
include Google::Apis::Core::Hashable
|
|
2530
|
-
|
|
2531
|
-
# Max number of findings per file, Datastore entity, or database row.
|
|
2532
|
-
# Corresponds to the JSON property `maxItemFindings`
|
|
2533
|
-
# @return [Fixnum]
|
|
2534
|
-
attr_accessor :max_item_findings
|
|
2535
|
-
|
|
2536
|
-
def initialize(**args)
|
|
2537
|
-
update!(**args)
|
|
2538
|
-
end
|
|
2539
|
-
|
|
2540
|
-
# Update properties of this object
|
|
2541
|
-
def update!(**args)
|
|
2542
|
-
@max_item_findings = args[:max_item_findings] if args.key?(:max_item_findings)
|
|
2543
|
-
end
|
|
2544
|
-
end
|
|
2545
|
-
|
|
2546
|
-
# Cloud repository for storing output.
|
|
2547
|
-
class GooglePrivacyDlpV2beta1OutputStorageConfig
|
|
2548
|
-
include Google::Apis::Core::Hashable
|
|
2549
|
-
|
|
2550
|
-
# A location in Cloud Storage.
|
|
2551
|
-
# Corresponds to the JSON property `storagePath`
|
|
2552
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CloudStoragePath]
|
|
2553
|
-
attr_accessor :storage_path
|
|
2554
|
-
|
|
2555
|
-
# Message defining the location of a BigQuery table. A table is uniquely
|
|
2556
|
-
# identified by its project_id, dataset_id, and table_name. Within a query
|
|
2557
|
-
# a table is often referenced with a string in the format of:
|
|
2558
|
-
# `<project_id>:<dataset_id>.<table_id>` or
|
|
2559
|
-
# `<project_id>.<dataset_id>.<table_id>`.
|
|
2560
|
-
# Corresponds to the JSON property `table`
|
|
2561
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryTable]
|
|
2562
|
-
attr_accessor :table
|
|
2563
|
-
|
|
2564
|
-
def initialize(**args)
|
|
2565
|
-
update!(**args)
|
|
2566
|
-
end
|
|
2567
|
-
|
|
2568
|
-
# Update properties of this object
|
|
2569
|
-
def update!(**args)
|
|
2570
|
-
@storage_path = args[:storage_path] if args.key?(:storage_path)
|
|
2571
|
-
@table = args[:table] if args.key?(:table)
|
|
2572
|
-
end
|
|
2573
|
-
end
|
|
2574
|
-
|
|
2575
|
-
# Datastore partition ID.
|
|
2576
|
-
# A partition ID identifies a grouping of entities. The grouping is always
|
|
2577
|
-
# by project and namespace, however the namespace ID may be empty.
|
|
2578
|
-
# A partition ID contains several dimensions:
|
|
2579
|
-
# project ID and namespace ID.
|
|
2580
|
-
class GooglePrivacyDlpV2beta1PartitionId
|
|
2581
|
-
include Google::Apis::Core::Hashable
|
|
2582
|
-
|
|
2583
|
-
# If not empty, the ID of the namespace to which the entities belong.
|
|
2584
|
-
# Corresponds to the JSON property `namespaceId`
|
|
2585
|
-
# @return [String]
|
|
2586
|
-
attr_accessor :namespace_id
|
|
2587
|
-
|
|
2588
|
-
# The ID of the project to which the entities belong.
|
|
2589
|
-
# Corresponds to the JSON property `projectId`
|
|
2590
|
-
# @return [String]
|
|
2591
|
-
attr_accessor :project_id
|
|
2592
|
-
|
|
2593
|
-
def initialize(**args)
|
|
2594
|
-
update!(**args)
|
|
2595
|
-
end
|
|
2596
|
-
|
|
2597
|
-
# Update properties of this object
|
|
2598
|
-
def update!(**args)
|
|
2599
|
-
@namespace_id = args[:namespace_id] if args.key?(:namespace_id)
|
|
2600
|
-
@project_id = args[:project_id] if args.key?(:project_id)
|
|
2601
|
-
end
|
|
2602
|
-
end
|
|
2603
|
-
|
|
2604
|
-
# A (kind, ID/name) pair used to construct a key path.
|
|
2605
|
-
# If either name or ID is set, the element is complete.
|
|
2606
|
-
# If neither is set, the element is incomplete.
|
|
2607
|
-
class GooglePrivacyDlpV2beta1PathElement
|
|
2608
|
-
include Google::Apis::Core::Hashable
|
|
2609
|
-
|
|
2610
|
-
# The auto-allocated ID of the entity.
|
|
2611
|
-
# Never equal to zero. Values less than zero are discouraged and may not
|
|
2612
|
-
# be supported in the future.
|
|
2613
|
-
# Corresponds to the JSON property `id`
|
|
2614
|
-
# @return [Fixnum]
|
|
2615
|
-
attr_accessor :id
|
|
2616
|
-
|
|
2617
|
-
# The kind of the entity.
|
|
2618
|
-
# A kind matching regex `__.*__` is reserved/read-only.
|
|
2619
|
-
# A kind must not contain more than 1500 bytes when UTF-8 encoded.
|
|
2620
|
-
# Cannot be `""`.
|
|
2621
|
-
# Corresponds to the JSON property `kind`
|
|
2622
|
-
# @return [String]
|
|
2623
|
-
attr_accessor :kind
|
|
2624
|
-
|
|
2625
|
-
# The name of the entity.
|
|
2626
|
-
# A name matching regex `__.*__` is reserved/read-only.
|
|
2627
|
-
# A name must not be more than 1500 bytes when UTF-8 encoded.
|
|
2628
|
-
# Cannot be `""`.
|
|
2629
|
-
# Corresponds to the JSON property `name`
|
|
2630
|
-
# @return [String]
|
|
2631
|
-
attr_accessor :name
|
|
2632
|
-
|
|
2633
|
-
def initialize(**args)
|
|
2634
|
-
update!(**args)
|
|
2635
|
-
end
|
|
2636
|
-
|
|
2637
|
-
# Update properties of this object
|
|
2638
|
-
def update!(**args)
|
|
2639
|
-
@id = args[:id] if args.key?(:id)
|
|
2640
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
2641
|
-
@name = args[:name] if args.key?(:name)
|
|
2642
|
-
end
|
|
2643
|
-
end
|
|
2644
|
-
|
|
2645
|
-
# A rule for transforming a value.
|
|
2646
|
-
class GooglePrivacyDlpV2beta1PrimitiveTransformation
|
|
2647
|
-
include Google::Apis::Core::Hashable
|
|
2648
|
-
|
|
2649
|
-
# Generalization function that buckets values based on ranges. The ranges and
|
|
2650
|
-
# replacement values are dynamically provided by the user for custom behavior,
|
|
2651
|
-
# such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH
|
|
2652
|
-
# This can be used on
|
|
2653
|
-
# data of type: number, long, string, timestamp.
|
|
2654
|
-
# If the bound `Value` type differs from the type of data being transformed, we
|
|
2655
|
-
# will first attempt converting the type of the data to be transformed to match
|
|
2656
|
-
# the type of the bound before comparing.
|
|
2657
|
-
# Corresponds to the JSON property `bucketingConfig`
|
|
2658
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BucketingConfig]
|
|
2659
|
-
attr_accessor :bucketing_config
|
|
2660
|
-
|
|
2661
|
-
# Partially mask a string by replacing a given number of characters with a
|
|
2662
|
-
# fixed character. Masking can start from the beginning or end of the string.
|
|
2663
|
-
# This can be used on data of any type (numbers, longs, and so on) and when
|
|
2664
|
-
# de-identifying structured data we'll attempt to preserve the original data's
|
|
2665
|
-
# type. (This allows you to take a long like 123 and modify it to a string like
|
|
2666
|
-
# **3.
|
|
2667
|
-
# Corresponds to the JSON property `characterMaskConfig`
|
|
2668
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CharacterMaskConfig]
|
|
2669
|
-
attr_accessor :character_mask_config
|
|
2670
|
-
|
|
2671
|
-
# Pseudonymization method that generates surrogates via cryptographic hashing.
|
|
2672
|
-
# Uses SHA-256.
|
|
2673
|
-
# Outputs a 32 byte digest as an uppercase hex string
|
|
2674
|
-
# (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE).
|
|
2675
|
-
# Currently, only string and integer values can be hashed.
|
|
2676
|
-
# Corresponds to the JSON property `cryptoHashConfig`
|
|
2677
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoHashConfig]
|
|
2678
|
-
attr_accessor :crypto_hash_config
|
|
2679
|
-
|
|
2680
|
-
# Replaces an identifier with a surrogate using FPE with the FFX
|
|
2681
|
-
# mode of operation.
|
|
2682
|
-
# The identifier must be representable by the US-ASCII character set.
|
|
2683
|
-
# For a given crypto key and context, the same identifier will be
|
|
2684
|
-
# replaced with the same surrogate.
|
|
2685
|
-
# Identifiers must be at least two characters long.
|
|
2686
|
-
# In the case that the identifier is the empty string, it will be skipped.
|
|
2687
|
-
# Corresponds to the JSON property `cryptoReplaceFfxFpeConfig`
|
|
2688
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig]
|
|
2689
|
-
attr_accessor :crypto_replace_ffx_fpe_config
|
|
2690
|
-
|
|
2691
|
-
# Buckets values based on fixed size ranges. The
|
|
2692
|
-
# Bucketing transformation can provide all of this functionality,
|
|
2693
|
-
# but requires more configuration. This message is provided as a convenience to
|
|
2694
|
-
# the user for simple bucketing strategies.
|
|
2695
|
-
# The resulting value will be a hyphenated string of
|
|
2696
|
-
# lower_bound-upper_bound.
|
|
2697
|
-
# This can be used on data of type: double, long.
|
|
2698
|
-
# If the bound Value type differs from the type of data
|
|
2699
|
-
# being transformed, we will first attempt converting the type of the data to
|
|
2700
|
-
# be transformed to match the type of the bound before comparing.
|
|
2701
|
-
# Corresponds to the JSON property `fixedSizeBucketingConfig`
|
|
2702
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FixedSizeBucketingConfig]
|
|
2703
|
-
attr_accessor :fixed_size_bucketing_config
|
|
2704
|
-
|
|
2705
|
-
# Redact a given value. For example, if used with an `InfoTypeTransformation`
|
|
2706
|
-
# transforming PHONE_NUMBER, and input 'My phone number is 206-555-0123', the
|
|
2707
|
-
# output would be 'My phone number is '.
|
|
2708
|
-
# Corresponds to the JSON property `redactConfig`
|
|
2709
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RedactConfig]
|
|
2710
|
-
attr_accessor :redact_config
|
|
2711
|
-
|
|
2712
|
-
# Replace each input value with a given `Value`.
|
|
2713
|
-
# Corresponds to the JSON property `replaceConfig`
|
|
2714
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ReplaceValueConfig]
|
|
2715
|
-
attr_accessor :replace_config
|
|
2716
|
-
|
|
2717
|
-
# Replace each matching finding with the name of the info_type.
|
|
2718
|
-
# Corresponds to the JSON property `replaceWithInfoTypeConfig`
|
|
2719
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ReplaceWithInfoTypeConfig]
|
|
2720
|
-
attr_accessor :replace_with_info_type_config
|
|
2721
|
-
|
|
2722
|
-
# For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a
|
|
2723
|
-
# portion of the value.
|
|
2724
|
-
# Corresponds to the JSON property `timePartConfig`
|
|
2725
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TimePartConfig]
|
|
2726
|
-
attr_accessor :time_part_config
|
|
2727
|
-
|
|
2728
|
-
def initialize(**args)
|
|
2729
|
-
update!(**args)
|
|
2730
|
-
end
|
|
2731
|
-
|
|
2732
|
-
# Update properties of this object
|
|
2733
|
-
def update!(**args)
|
|
2734
|
-
@bucketing_config = args[:bucketing_config] if args.key?(:bucketing_config)
|
|
2735
|
-
@character_mask_config = args[:character_mask_config] if args.key?(:character_mask_config)
|
|
2736
|
-
@crypto_hash_config = args[:crypto_hash_config] if args.key?(:crypto_hash_config)
|
|
2737
|
-
@crypto_replace_ffx_fpe_config = args[:crypto_replace_ffx_fpe_config] if args.key?(:crypto_replace_ffx_fpe_config)
|
|
2738
|
-
@fixed_size_bucketing_config = args[:fixed_size_bucketing_config] if args.key?(:fixed_size_bucketing_config)
|
|
2739
|
-
@redact_config = args[:redact_config] if args.key?(:redact_config)
|
|
2740
|
-
@replace_config = args[:replace_config] if args.key?(:replace_config)
|
|
2741
|
-
@replace_with_info_type_config = args[:replace_with_info_type_config] if args.key?(:replace_with_info_type_config)
|
|
2742
|
-
@time_part_config = args[:time_part_config] if args.key?(:time_part_config)
|
|
2743
|
-
end
|
|
2744
|
-
end
|
|
2745
|
-
|
|
2746
|
-
# Privacy metric to compute for reidentification risk analysis.
|
|
2747
|
-
class GooglePrivacyDlpV2beta1PrivacyMetric
|
|
2748
|
-
include Google::Apis::Core::Hashable
|
|
2749
|
-
|
|
2750
|
-
# Compute numerical stats over an individual column, including
|
|
2751
|
-
# number of distinct values and value count distribution.
|
|
2752
|
-
# Corresponds to the JSON property `categoricalStatsConfig`
|
|
2753
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CategoricalStatsConfig]
|
|
2754
|
-
attr_accessor :categorical_stats_config
|
|
2755
|
-
|
|
2756
|
-
# k-anonymity metric, used for analysis of reidentification risk.
|
|
2757
|
-
# Corresponds to the JSON property `kAnonymityConfig`
|
|
2758
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KAnonymityConfig]
|
|
2759
|
-
attr_accessor :k_anonymity_config
|
|
2760
|
-
|
|
2761
|
-
# Reidentifiability metric. This corresponds to a risk model similar to what
|
|
2762
|
-
# is called "journalist risk" in the literature, except the attack dataset is
|
|
2763
|
-
# statistically modeled instead of being perfectly known. This can be done
|
|
2764
|
-
# using publicly available data (like the US Census), or using a custom
|
|
2765
|
-
# statistical model (indicated as one or several BigQuery tables), or by
|
|
2766
|
-
# extrapolating from the distribution of values in the input dataset.
|
|
2767
|
-
# Corresponds to the JSON property `kMapEstimationConfig`
|
|
2768
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationConfig]
|
|
2769
|
-
attr_accessor :k_map_estimation_config
|
|
2770
|
-
|
|
2771
|
-
# l-diversity metric, used for analysis of reidentification risk.
|
|
2772
|
-
# Corresponds to the JSON property `lDiversityConfig`
|
|
2773
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1LDiversityConfig]
|
|
2774
|
-
attr_accessor :l_diversity_config
|
|
2775
|
-
|
|
2776
|
-
# Compute numerical stats over an individual column, including
|
|
2777
|
-
# min, max, and quantiles.
|
|
2778
|
-
# Corresponds to the JSON property `numericalStatsConfig`
|
|
2779
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1NumericalStatsConfig]
|
|
2780
|
-
attr_accessor :numerical_stats_config
|
|
2781
|
-
|
|
2782
|
-
def initialize(**args)
|
|
2783
|
-
update!(**args)
|
|
2784
|
-
end
|
|
2785
|
-
|
|
2786
|
-
# Update properties of this object
|
|
2787
|
-
def update!(**args)
|
|
2788
|
-
@categorical_stats_config = args[:categorical_stats_config] if args.key?(:categorical_stats_config)
|
|
2789
|
-
@k_anonymity_config = args[:k_anonymity_config] if args.key?(:k_anonymity_config)
|
|
2790
|
-
@k_map_estimation_config = args[:k_map_estimation_config] if args.key?(:k_map_estimation_config)
|
|
2791
|
-
@l_diversity_config = args[:l_diversity_config] if args.key?(:l_diversity_config)
|
|
2792
|
-
@numerical_stats_config = args[:numerical_stats_config] if args.key?(:numerical_stats_config)
|
|
2793
|
-
end
|
|
2794
|
-
end
|
|
2795
|
-
|
|
2796
|
-
# A representation of a Datastore property in a projection.
|
|
2797
|
-
class GooglePrivacyDlpV2beta1Projection
|
|
2798
|
-
include Google::Apis::Core::Hashable
|
|
2799
|
-
|
|
2800
|
-
# A reference to a property relative to the Datastore kind expressions.
|
|
2801
|
-
# Corresponds to the JSON property `property`
|
|
2802
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PropertyReference]
|
|
2803
|
-
attr_accessor :property
|
|
2804
|
-
|
|
2805
|
-
def initialize(**args)
|
|
2806
|
-
update!(**args)
|
|
2807
|
-
end
|
|
2808
|
-
|
|
2809
|
-
# Update properties of this object
|
|
2810
|
-
def update!(**args)
|
|
2811
|
-
@property = args[:property] if args.key?(:property)
|
|
2812
|
-
end
|
|
2813
|
-
end
|
|
2814
|
-
|
|
2815
|
-
# A reference to a property relative to the Datastore kind expressions.
|
|
2816
|
-
class GooglePrivacyDlpV2beta1PropertyReference
|
|
2817
|
-
include Google::Apis::Core::Hashable
|
|
2818
|
-
|
|
2819
|
-
# The name of the property.
|
|
2820
|
-
# If name includes "."s, it may be interpreted as a property name path.
|
|
2821
|
-
# Corresponds to the JSON property `name`
|
|
2822
|
-
# @return [String]
|
|
2823
|
-
attr_accessor :name
|
|
2824
|
-
|
|
2825
|
-
def initialize(**args)
|
|
2826
|
-
update!(**args)
|
|
2827
|
-
end
|
|
2828
|
-
|
|
2829
|
-
# Update properties of this object
|
|
2830
|
-
def update!(**args)
|
|
2831
|
-
@name = args[:name] if args.key?(:name)
|
|
2832
|
-
end
|
|
2833
|
-
end
|
|
2834
|
-
|
|
2835
|
-
# A quasi-identifier column has a custom_tag, used to know which column
|
|
2836
|
-
# in the data corresponds to which column in the statistical model.
|
|
2837
|
-
class GooglePrivacyDlpV2beta1QuasiIdField
|
|
2838
|
-
include Google::Apis::Core::Hashable
|
|
2839
|
-
|
|
2840
|
-
#
|
|
2841
|
-
# Corresponds to the JSON property `customTag`
|
|
2842
|
-
# @return [String]
|
|
2843
|
-
attr_accessor :custom_tag
|
|
2844
|
-
|
|
2845
|
-
# General identifier of a data field in a storage service.
|
|
2846
|
-
# Corresponds to the JSON property `field`
|
|
2847
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId]
|
|
2848
|
-
attr_accessor :field
|
|
2849
|
-
|
|
2850
|
-
def initialize(**args)
|
|
2851
|
-
update!(**args)
|
|
2852
|
-
end
|
|
2853
|
-
|
|
2854
|
-
# Update properties of this object
|
|
2855
|
-
def update!(**args)
|
|
2856
|
-
@custom_tag = args[:custom_tag] if args.key?(:custom_tag)
|
|
2857
|
-
@field = args[:field] if args.key?(:field)
|
|
2858
|
-
end
|
|
2859
|
-
end
|
|
2860
|
-
|
|
2861
|
-
# Generic half-open interval [start, end)
|
|
2862
|
-
class GooglePrivacyDlpV2beta1Range
|
|
2863
|
-
include Google::Apis::Core::Hashable
|
|
2864
|
-
|
|
2865
|
-
# Index of the last character of the range (exclusive).
|
|
2866
|
-
# Corresponds to the JSON property `end`
|
|
2867
|
-
# @return [Fixnum]
|
|
2868
|
-
attr_accessor :end
|
|
2869
|
-
|
|
2870
|
-
# Index of the first character of the range (inclusive).
|
|
2871
|
-
# Corresponds to the JSON property `start`
|
|
2872
|
-
# @return [Fixnum]
|
|
2873
|
-
attr_accessor :start
|
|
2874
|
-
|
|
2875
|
-
def initialize(**args)
|
|
2876
|
-
update!(**args)
|
|
2877
|
-
end
|
|
2878
|
-
|
|
2879
|
-
# Update properties of this object
|
|
2880
|
-
def update!(**args)
|
|
2881
|
-
@end = args[:end] if args.key?(:end)
|
|
2882
|
-
@start = args[:start] if args.key?(:start)
|
|
2883
|
-
end
|
|
2884
|
-
end
|
|
2885
|
-
|
|
2886
|
-
# A condition for determining whether a transformation should be applied to
|
|
2887
|
-
# a field.
|
|
2888
|
-
class GooglePrivacyDlpV2beta1RecordCondition
|
|
2889
|
-
include Google::Apis::Core::Hashable
|
|
2890
|
-
|
|
2891
|
-
# A collection of expressions
|
|
2892
|
-
# Corresponds to the JSON property `expressions`
|
|
2893
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Expressions]
|
|
2894
|
-
attr_accessor :expressions
|
|
2895
|
-
|
|
2896
|
-
def initialize(**args)
|
|
2897
|
-
update!(**args)
|
|
2898
|
-
end
|
|
2899
|
-
|
|
2900
|
-
# Update properties of this object
|
|
2901
|
-
def update!(**args)
|
|
2902
|
-
@expressions = args[:expressions] if args.key?(:expressions)
|
|
2903
|
-
end
|
|
2904
|
-
end
|
|
2905
|
-
|
|
2906
|
-
# Message for a unique key indicating a record that contains a finding.
|
|
2907
|
-
class GooglePrivacyDlpV2beta1RecordKey
|
|
2908
|
-
include Google::Apis::Core::Hashable
|
|
2909
|
-
|
|
2910
|
-
# LINT.IfChange
|
|
2911
|
-
# Row key for identifying a record in BigQuery table.
|
|
2912
|
-
# Corresponds to the JSON property `bigQueryKey`
|
|
2913
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryKey]
|
|
2914
|
-
attr_accessor :big_query_key
|
|
2915
|
-
|
|
2916
|
-
# Record key for a finding in a Cloud Storage file.
|
|
2917
|
-
# Corresponds to the JSON property `cloudStorageKey`
|
|
2918
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CloudStorageKey]
|
|
2919
|
-
attr_accessor :cloud_storage_key
|
|
2920
|
-
|
|
2921
|
-
# Record key for a finding in Cloud Datastore.
|
|
2922
|
-
# Corresponds to the JSON property `datastoreKey`
|
|
2923
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1DatastoreKey]
|
|
2924
|
-
attr_accessor :datastore_key
|
|
2925
|
-
|
|
2926
|
-
def initialize(**args)
|
|
2927
|
-
update!(**args)
|
|
2928
|
-
end
|
|
2929
|
-
|
|
2930
|
-
# Update properties of this object
|
|
2931
|
-
def update!(**args)
|
|
2932
|
-
@big_query_key = args[:big_query_key] if args.key?(:big_query_key)
|
|
2933
|
-
@cloud_storage_key = args[:cloud_storage_key] if args.key?(:cloud_storage_key)
|
|
2934
|
-
@datastore_key = args[:datastore_key] if args.key?(:datastore_key)
|
|
2935
|
-
end
|
|
2936
|
-
end
|
|
2937
|
-
|
|
2938
|
-
# Configuration to suppress records whose suppression conditions evaluate to
|
|
2939
|
-
# true.
|
|
2940
|
-
class GooglePrivacyDlpV2beta1RecordSuppression
|
|
2941
|
-
include Google::Apis::Core::Hashable
|
|
2942
|
-
|
|
2943
|
-
# A condition for determining whether a transformation should be applied to
|
|
2944
|
-
# a field.
|
|
2945
|
-
# Corresponds to the JSON property `condition`
|
|
2946
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RecordCondition]
|
|
2947
|
-
attr_accessor :condition
|
|
2948
|
-
|
|
2949
|
-
def initialize(**args)
|
|
2950
|
-
update!(**args)
|
|
2951
|
-
end
|
|
2952
|
-
|
|
2953
|
-
# Update properties of this object
|
|
2954
|
-
def update!(**args)
|
|
2955
|
-
@condition = args[:condition] if args.key?(:condition)
|
|
2956
|
-
end
|
|
2957
|
-
end
|
|
2958
|
-
|
|
2959
|
-
# A type of transformation that is applied over structured data such as a
|
|
2960
|
-
# table.
|
|
2961
|
-
class GooglePrivacyDlpV2beta1RecordTransformations
|
|
2962
|
-
include Google::Apis::Core::Hashable
|
|
2963
|
-
|
|
2964
|
-
# Transform the record by applying various field transformations.
|
|
2965
|
-
# Corresponds to the JSON property `fieldTransformations`
|
|
2966
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldTransformation>]
|
|
2967
|
-
attr_accessor :field_transformations
|
|
2968
|
-
|
|
2969
|
-
# Configuration defining which records get suppressed entirely. Records that
|
|
2970
|
-
# match any suppression rule are omitted from the output [optional].
|
|
2971
|
-
# Corresponds to the JSON property `recordSuppressions`
|
|
2972
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RecordSuppression>]
|
|
2973
|
-
attr_accessor :record_suppressions
|
|
2974
|
-
|
|
2975
|
-
def initialize(**args)
|
|
2976
|
-
update!(**args)
|
|
2977
|
-
end
|
|
2978
|
-
|
|
2979
|
-
# Update properties of this object
|
|
2980
|
-
def update!(**args)
|
|
2981
|
-
@field_transformations = args[:field_transformations] if args.key?(:field_transformations)
|
|
2982
|
-
@record_suppressions = args[:record_suppressions] if args.key?(:record_suppressions)
|
|
2983
|
-
end
|
|
2984
|
-
end
|
|
2985
|
-
|
|
2986
|
-
# Redact a given value. For example, if used with an `InfoTypeTransformation`
|
|
2987
|
-
# transforming PHONE_NUMBER, and input 'My phone number is 206-555-0123', the
|
|
2988
|
-
# output would be 'My phone number is '.
|
|
2989
|
-
class GooglePrivacyDlpV2beta1RedactConfig
|
|
2990
|
-
include Google::Apis::Core::Hashable
|
|
2991
|
-
|
|
2992
|
-
def initialize(**args)
|
|
2993
|
-
update!(**args)
|
|
2994
|
-
end
|
|
2995
|
-
|
|
2996
|
-
# Update properties of this object
|
|
2997
|
-
def update!(**args)
|
|
2998
|
-
end
|
|
2999
|
-
end
|
|
3000
|
-
|
|
3001
|
-
# Request to search for potentially sensitive info in a list of items
|
|
3002
|
-
# and replace it with a default or provided content.
|
|
3003
|
-
class GooglePrivacyDlpV2beta1RedactContentRequest
|
|
3004
|
-
include Google::Apis::Core::Hashable
|
|
3005
|
-
|
|
3006
|
-
# The configuration for specifying what content to redact from images.
|
|
3007
|
-
# Corresponds to the JSON property `imageRedactionConfigs`
|
|
3008
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ImageRedactionConfig>]
|
|
3009
|
-
attr_accessor :image_redaction_configs
|
|
3010
|
-
|
|
3011
|
-
# Configuration description of the scanning process.
|
|
3012
|
-
# When used with redactContent only info_types and min_likelihood are currently
|
|
3013
|
-
# used.
|
|
3014
|
-
# Corresponds to the JSON property `inspectConfig`
|
|
3015
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectConfig]
|
|
3016
|
-
attr_accessor :inspect_config
|
|
3017
|
-
|
|
3018
|
-
# The list of items to inspect. Up to 100 are allowed per request.
|
|
3019
|
-
# Corresponds to the JSON property `items`
|
|
3020
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ContentItem>]
|
|
3021
|
-
attr_accessor :items
|
|
3022
|
-
|
|
3023
|
-
# The strings to replace findings text findings with. Must specify at least
|
|
3024
|
-
# one of these or one ImageRedactionConfig if redacting images.
|
|
3025
|
-
# Corresponds to the JSON property `replaceConfigs`
|
|
3026
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ReplaceConfig>]
|
|
3027
|
-
attr_accessor :replace_configs
|
|
3028
|
-
|
|
3029
|
-
def initialize(**args)
|
|
3030
|
-
update!(**args)
|
|
3031
|
-
end
|
|
3032
|
-
|
|
3033
|
-
# Update properties of this object
|
|
3034
|
-
def update!(**args)
|
|
3035
|
-
@image_redaction_configs = args[:image_redaction_configs] if args.key?(:image_redaction_configs)
|
|
3036
|
-
@inspect_config = args[:inspect_config] if args.key?(:inspect_config)
|
|
3037
|
-
@items = args[:items] if args.key?(:items)
|
|
3038
|
-
@replace_configs = args[:replace_configs] if args.key?(:replace_configs)
|
|
3039
|
-
end
|
|
3040
|
-
end
|
|
3041
|
-
|
|
3042
|
-
# Results of redacting a list of items.
|
|
3043
|
-
class GooglePrivacyDlpV2beta1RedactContentResponse
|
|
3044
|
-
include Google::Apis::Core::Hashable
|
|
3045
|
-
|
|
3046
|
-
# The redacted content.
|
|
3047
|
-
# Corresponds to the JSON property `items`
|
|
3048
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ContentItem>]
|
|
3049
|
-
attr_accessor :items
|
|
3050
|
-
|
|
3051
|
-
def initialize(**args)
|
|
3052
|
-
update!(**args)
|
|
3053
|
-
end
|
|
3054
|
-
|
|
3055
|
-
# Update properties of this object
|
|
3056
|
-
def update!(**args)
|
|
3057
|
-
@items = args[:items] if args.key?(:items)
|
|
3058
|
-
end
|
|
3059
|
-
end
|
|
3060
|
-
|
|
3061
|
-
#
|
|
3062
|
-
class GooglePrivacyDlpV2beta1ReplaceConfig
|
|
3063
|
-
include Google::Apis::Core::Hashable
|
|
3064
|
-
|
|
3065
|
-
# Type of information detected by the API.
|
|
3066
|
-
# Corresponds to the JSON property `infoType`
|
|
3067
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType]
|
|
3068
|
-
attr_accessor :info_type
|
|
3069
|
-
|
|
3070
|
-
# Content replacing sensitive information of given type. Max 256 chars.
|
|
3071
|
-
# Corresponds to the JSON property `replaceWith`
|
|
3072
|
-
# @return [String]
|
|
3073
|
-
attr_accessor :replace_with
|
|
3074
|
-
|
|
3075
|
-
def initialize(**args)
|
|
3076
|
-
update!(**args)
|
|
3077
|
-
end
|
|
3078
|
-
|
|
3079
|
-
# Update properties of this object
|
|
3080
|
-
def update!(**args)
|
|
3081
|
-
@info_type = args[:info_type] if args.key?(:info_type)
|
|
3082
|
-
@replace_with = args[:replace_with] if args.key?(:replace_with)
|
|
3083
|
-
end
|
|
3084
|
-
end
|
|
3085
|
-
|
|
3086
|
-
# Replace each input value with a given `Value`.
|
|
3087
|
-
class GooglePrivacyDlpV2beta1ReplaceValueConfig
|
|
3088
|
-
include Google::Apis::Core::Hashable
|
|
3089
|
-
|
|
3090
|
-
# Set of primitive values supported by the system.
|
|
3091
|
-
# Note that for the purposes of inspection or transformation, the number
|
|
3092
|
-
# of bytes considered to comprise a 'Value' is based on its representation
|
|
3093
|
-
# as a UTF-8 encoded string. For example, if 'integer_value' is set to
|
|
3094
|
-
# 123456789, the number of bytes would be counted as 9, even though an
|
|
3095
|
-
# int64 only holds up to 8 bytes of data.
|
|
3096
|
-
# Corresponds to the JSON property `newValue`
|
|
3097
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value]
|
|
3098
|
-
attr_accessor :new_value
|
|
3099
|
-
|
|
3100
|
-
def initialize(**args)
|
|
3101
|
-
update!(**args)
|
|
3102
|
-
end
|
|
3103
|
-
|
|
3104
|
-
# Update properties of this object
|
|
3105
|
-
def update!(**args)
|
|
3106
|
-
@new_value = args[:new_value] if args.key?(:new_value)
|
|
3107
|
-
end
|
|
3108
|
-
end
|
|
3109
|
-
|
|
3110
|
-
# Replace each matching finding with the name of the info_type.
|
|
3111
|
-
class GooglePrivacyDlpV2beta1ReplaceWithInfoTypeConfig
|
|
3112
|
-
include Google::Apis::Core::Hashable
|
|
3113
|
-
|
|
3114
|
-
def initialize(**args)
|
|
3115
|
-
update!(**args)
|
|
3116
|
-
end
|
|
3117
|
-
|
|
3118
|
-
# Update properties of this object
|
|
3119
|
-
def update!(**args)
|
|
3120
|
-
end
|
|
3121
|
-
end
|
|
3122
|
-
|
|
3123
|
-
# Metadata returned within the
|
|
3124
|
-
# [`riskAnalysis.operations.get`](/dlp/docs/reference/rest/v2beta1/riskAnalysis.
|
|
3125
|
-
# operations/get)
|
|
3126
|
-
# for risk analysis.
|
|
3127
|
-
class GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata
|
|
3128
|
-
include Google::Apis::Core::Hashable
|
|
3129
|
-
|
|
3130
|
-
# The time which this request was started.
|
|
3131
|
-
# Corresponds to the JSON property `createTime`
|
|
3132
|
-
# @return [String]
|
|
3133
|
-
attr_accessor :create_time
|
|
3134
|
-
|
|
3135
|
-
# Privacy metric to compute for reidentification risk analysis.
|
|
3136
|
-
# Corresponds to the JSON property `requestedPrivacyMetric`
|
|
3137
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PrivacyMetric]
|
|
3138
|
-
attr_accessor :requested_privacy_metric
|
|
3139
|
-
|
|
3140
|
-
# Message defining the location of a BigQuery table. A table is uniquely
|
|
3141
|
-
# identified by its project_id, dataset_id, and table_name. Within a query
|
|
3142
|
-
# a table is often referenced with a string in the format of:
|
|
3143
|
-
# `<project_id>:<dataset_id>.<table_id>` or
|
|
3144
|
-
# `<project_id>.<dataset_id>.<table_id>`.
|
|
3145
|
-
# Corresponds to the JSON property `requestedSourceTable`
|
|
3146
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryTable]
|
|
3147
|
-
attr_accessor :requested_source_table
|
|
3148
|
-
|
|
3149
|
-
def initialize(**args)
|
|
3150
|
-
update!(**args)
|
|
3151
|
-
end
|
|
3152
|
-
|
|
3153
|
-
# Update properties of this object
|
|
3154
|
-
def update!(**args)
|
|
3155
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
|
3156
|
-
@requested_privacy_metric = args[:requested_privacy_metric] if args.key?(:requested_privacy_metric)
|
|
3157
|
-
@requested_source_table = args[:requested_source_table] if args.key?(:requested_source_table)
|
|
3158
|
-
end
|
|
3159
|
-
end
|
|
3160
|
-
|
|
3161
|
-
# Result of a risk analysis
|
|
3162
|
-
# [`Operation`](/dlp/docs/reference/rest/v2beta1/inspect.operations)
|
|
3163
|
-
# request.
|
|
3164
|
-
class GooglePrivacyDlpV2beta1RiskAnalysisOperationResult
|
|
3165
|
-
include Google::Apis::Core::Hashable
|
|
3166
|
-
|
|
3167
|
-
# Result of the categorical stats computation.
|
|
3168
|
-
# Corresponds to the JSON property `categoricalStatsResult`
|
|
3169
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CategoricalStatsResult]
|
|
3170
|
-
attr_accessor :categorical_stats_result
|
|
3171
|
-
|
|
3172
|
-
# Result of the k-anonymity computation.
|
|
3173
|
-
# Corresponds to the JSON property `kAnonymityResult`
|
|
3174
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KAnonymityResult]
|
|
3175
|
-
attr_accessor :k_anonymity_result
|
|
3176
|
-
|
|
3177
|
-
# Result of the reidentifiability analysis. Note that these results are an
|
|
3178
|
-
# estimation, not exact values.
|
|
3179
|
-
# Corresponds to the JSON property `kMapEstimationResult`
|
|
3180
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KMapEstimationResult]
|
|
3181
|
-
attr_accessor :k_map_estimation_result
|
|
3182
|
-
|
|
3183
|
-
# Result of the l-diversity computation.
|
|
3184
|
-
# Corresponds to the JSON property `lDiversityResult`
|
|
3185
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1LDiversityResult]
|
|
3186
|
-
attr_accessor :l_diversity_result
|
|
3187
|
-
|
|
3188
|
-
# Result of the numerical stats computation.
|
|
3189
|
-
# Corresponds to the JSON property `numericalStatsResult`
|
|
3190
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1NumericalStatsResult]
|
|
3191
|
-
attr_accessor :numerical_stats_result
|
|
3192
|
-
|
|
3193
|
-
def initialize(**args)
|
|
3194
|
-
update!(**args)
|
|
3195
|
-
end
|
|
3196
|
-
|
|
3197
|
-
# Update properties of this object
|
|
3198
|
-
def update!(**args)
|
|
3199
|
-
@categorical_stats_result = args[:categorical_stats_result] if args.key?(:categorical_stats_result)
|
|
3200
|
-
@k_anonymity_result = args[:k_anonymity_result] if args.key?(:k_anonymity_result)
|
|
3201
|
-
@k_map_estimation_result = args[:k_map_estimation_result] if args.key?(:k_map_estimation_result)
|
|
3202
|
-
@l_diversity_result = args[:l_diversity_result] if args.key?(:l_diversity_result)
|
|
3203
|
-
@numerical_stats_result = args[:numerical_stats_result] if args.key?(:numerical_stats_result)
|
|
3204
|
-
end
|
|
3205
|
-
end
|
|
3206
|
-
|
|
3207
|
-
#
|
|
3208
|
-
class GooglePrivacyDlpV2beta1Row
|
|
3209
|
-
include Google::Apis::Core::Hashable
|
|
3210
|
-
|
|
3211
|
-
#
|
|
3212
|
-
# Corresponds to the JSON property `values`
|
|
3213
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value>]
|
|
3214
|
-
attr_accessor :values
|
|
3215
|
-
|
|
3216
|
-
def initialize(**args)
|
|
3217
|
-
update!(**args)
|
|
3218
|
-
end
|
|
3219
|
-
|
|
3220
|
-
# Update properties of this object
|
|
3221
|
-
def update!(**args)
|
|
3222
|
-
@values = args[:values] if args.key?(:values)
|
|
3223
|
-
end
|
|
3224
|
-
end
|
|
3225
|
-
|
|
3226
|
-
# Shared message indicating Cloud storage type.
|
|
3227
|
-
class GooglePrivacyDlpV2beta1StorageConfig
|
|
3228
|
-
include Google::Apis::Core::Hashable
|
|
3229
|
-
|
|
3230
|
-
# Options defining BigQuery table and row identifiers.
|
|
3231
|
-
# Corresponds to the JSON property `bigQueryOptions`
|
|
3232
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1BigQueryOptions]
|
|
3233
|
-
attr_accessor :big_query_options
|
|
3234
|
-
|
|
3235
|
-
# Options defining a file or a set of files (path ending with *) within
|
|
3236
|
-
# a Google Cloud Storage bucket.
|
|
3237
|
-
# Corresponds to the JSON property `cloudStorageOptions`
|
|
3238
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CloudStorageOptions]
|
|
3239
|
-
attr_accessor :cloud_storage_options
|
|
3240
|
-
|
|
3241
|
-
# Options defining a data set within Google Cloud Datastore.
|
|
3242
|
-
# Corresponds to the JSON property `datastoreOptions`
|
|
3243
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1DatastoreOptions]
|
|
3244
|
-
attr_accessor :datastore_options
|
|
3245
|
-
|
|
3246
|
-
def initialize(**args)
|
|
3247
|
-
update!(**args)
|
|
3248
|
-
end
|
|
3249
|
-
|
|
3250
|
-
# Update properties of this object
|
|
3251
|
-
def update!(**args)
|
|
3252
|
-
@big_query_options = args[:big_query_options] if args.key?(:big_query_options)
|
|
3253
|
-
@cloud_storage_options = args[:cloud_storage_options] if args.key?(:cloud_storage_options)
|
|
3254
|
-
@datastore_options = args[:datastore_options] if args.key?(:datastore_options)
|
|
3255
|
-
end
|
|
3256
|
-
end
|
|
3257
|
-
|
|
3258
|
-
# A collection that informs the user the number of times a particular
|
|
3259
|
-
# `TransformationResultCode` and error details occurred.
|
|
3260
|
-
class GooglePrivacyDlpV2beta1SummaryResult
|
|
3261
|
-
include Google::Apis::Core::Hashable
|
|
3262
|
-
|
|
3263
|
-
#
|
|
3264
|
-
# Corresponds to the JSON property `code`
|
|
3265
|
-
# @return [String]
|
|
3266
|
-
attr_accessor :code
|
|
3267
|
-
|
|
3268
|
-
#
|
|
3269
|
-
# Corresponds to the JSON property `count`
|
|
3270
|
-
# @return [Fixnum]
|
|
3271
|
-
attr_accessor :count
|
|
3272
|
-
|
|
3273
|
-
# A place for warnings or errors to show up if a transformation didn't
|
|
3274
|
-
# work as expected.
|
|
3275
|
-
# Corresponds to the JSON property `details`
|
|
3276
|
-
# @return [String]
|
|
3277
|
-
attr_accessor :details
|
|
3278
|
-
|
|
3279
|
-
def initialize(**args)
|
|
3280
|
-
update!(**args)
|
|
3281
|
-
end
|
|
3282
|
-
|
|
3283
|
-
# Update properties of this object
|
|
3284
|
-
def update!(**args)
|
|
3285
|
-
@code = args[:code] if args.key?(:code)
|
|
3286
|
-
@count = args[:count] if args.key?(:count)
|
|
3287
|
-
@details = args[:details] if args.key?(:details)
|
|
3288
|
-
end
|
|
3289
|
-
end
|
|
3290
|
-
|
|
3291
|
-
# Message for detecting output from deidentification transformations
|
|
3292
|
-
# such as
|
|
3293
|
-
# [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2beta1/content/
|
|
3294
|
-
# deidentify#CryptoReplaceFfxFpeConfig).
|
|
3295
|
-
# These types of transformations are
|
|
3296
|
-
# those that perform pseudonymization, thereby producing a "surrogate" as
|
|
3297
|
-
# output. This should be used in conjunction with a field on the
|
|
3298
|
-
# transformation such as `surrogate_info_type`. This custom info type does
|
|
3299
|
-
# not support the use of `detection_rules`.
|
|
3300
|
-
class GooglePrivacyDlpV2beta1SurrogateType
|
|
3301
|
-
include Google::Apis::Core::Hashable
|
|
3302
|
-
|
|
3303
|
-
def initialize(**args)
|
|
3304
|
-
update!(**args)
|
|
3305
|
-
end
|
|
3306
|
-
|
|
3307
|
-
# Update properties of this object
|
|
3308
|
-
def update!(**args)
|
|
3309
|
-
end
|
|
3310
|
-
end
|
|
3311
|
-
|
|
3312
|
-
# Structured content to inspect. Up to 50,000 `Value`s per request allowed.
|
|
3313
|
-
class GooglePrivacyDlpV2beta1Table
|
|
3314
|
-
include Google::Apis::Core::Hashable
|
|
3315
|
-
|
|
3316
|
-
#
|
|
3317
|
-
# Corresponds to the JSON property `headers`
|
|
3318
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId>]
|
|
3319
|
-
attr_accessor :headers
|
|
3320
|
-
|
|
3321
|
-
#
|
|
3322
|
-
# Corresponds to the JSON property `rows`
|
|
3323
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Row>]
|
|
3324
|
-
attr_accessor :rows
|
|
3325
|
-
|
|
3326
|
-
def initialize(**args)
|
|
3327
|
-
update!(**args)
|
|
3328
|
-
end
|
|
3329
|
-
|
|
3330
|
-
# Update properties of this object
|
|
3331
|
-
def update!(**args)
|
|
3332
|
-
@headers = args[:headers] if args.key?(:headers)
|
|
3333
|
-
@rows = args[:rows] if args.key?(:rows)
|
|
3334
|
-
end
|
|
3335
|
-
end
|
|
3336
|
-
|
|
3337
|
-
# Location of a finding within a table.
|
|
3338
|
-
class GooglePrivacyDlpV2beta1TableLocation
|
|
3339
|
-
include Google::Apis::Core::Hashable
|
|
3340
|
-
|
|
3341
|
-
# The zero-based index of the row where the finding is located.
|
|
3342
|
-
# Corresponds to the JSON property `rowIndex`
|
|
3343
|
-
# @return [Fixnum]
|
|
3344
|
-
attr_accessor :row_index
|
|
3345
|
-
|
|
3346
|
-
def initialize(**args)
|
|
3347
|
-
update!(**args)
|
|
3348
|
-
end
|
|
3349
|
-
|
|
3350
|
-
# Update properties of this object
|
|
3351
|
-
def update!(**args)
|
|
3352
|
-
@row_index = args[:row_index] if args.key?(:row_index)
|
|
3353
|
-
end
|
|
3354
|
-
end
|
|
3355
|
-
|
|
3356
|
-
# A column with a semantic tag attached.
|
|
3357
|
-
class GooglePrivacyDlpV2beta1TaggedField
|
|
3358
|
-
include Google::Apis::Core::Hashable
|
|
3359
|
-
|
|
3360
|
-
# A column can be tagged with a custom tag. In this case, the user must
|
|
3361
|
-
# indicate an auxiliary table that contains statistical information on
|
|
3362
|
-
# the possible values of this column (below).
|
|
3363
|
-
# Corresponds to the JSON property `customTag`
|
|
3364
|
-
# @return [String]
|
|
3365
|
-
attr_accessor :custom_tag
|
|
3366
|
-
|
|
3367
|
-
# General identifier of a data field in a storage service.
|
|
3368
|
-
# Corresponds to the JSON property `field`
|
|
3369
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId]
|
|
3370
|
-
attr_accessor :field
|
|
3371
|
-
|
|
3372
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
|
3373
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
|
3374
|
-
# or the response type of an API method. For instance:
|
|
3375
|
-
# service Foo `
|
|
3376
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
3377
|
-
# `
|
|
3378
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
|
3379
|
-
# Corresponds to the JSON property `inferred`
|
|
3380
|
-
# @return [Google::Apis::DlpV2beta1::GoogleProtobufEmpty]
|
|
3381
|
-
attr_accessor :inferred
|
|
3382
|
-
|
|
3383
|
-
# Type of information detected by the API.
|
|
3384
|
-
# Corresponds to the JSON property `infoType`
|
|
3385
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType]
|
|
3386
|
-
attr_accessor :info_type
|
|
3387
|
-
|
|
3388
|
-
def initialize(**args)
|
|
3389
|
-
update!(**args)
|
|
3390
|
-
end
|
|
3391
|
-
|
|
3392
|
-
# Update properties of this object
|
|
3393
|
-
def update!(**args)
|
|
3394
|
-
@custom_tag = args[:custom_tag] if args.key?(:custom_tag)
|
|
3395
|
-
@field = args[:field] if args.key?(:field)
|
|
3396
|
-
@inferred = args[:inferred] if args.key?(:inferred)
|
|
3397
|
-
@info_type = args[:info_type] if args.key?(:info_type)
|
|
3398
|
-
end
|
|
3399
|
-
end
|
|
3400
|
-
|
|
3401
|
-
# For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a
|
|
3402
|
-
# portion of the value.
|
|
3403
|
-
class GooglePrivacyDlpV2beta1TimePartConfig
|
|
3404
|
-
include Google::Apis::Core::Hashable
|
|
3405
|
-
|
|
3406
|
-
#
|
|
3407
|
-
# Corresponds to the JSON property `partToExtract`
|
|
3408
|
-
# @return [String]
|
|
3409
|
-
attr_accessor :part_to_extract
|
|
3410
|
-
|
|
3411
|
-
def initialize(**args)
|
|
3412
|
-
update!(**args)
|
|
3413
|
-
end
|
|
3414
|
-
|
|
3415
|
-
# Update properties of this object
|
|
3416
|
-
def update!(**args)
|
|
3417
|
-
@part_to_extract = args[:part_to_extract] if args.key?(:part_to_extract)
|
|
3418
|
-
end
|
|
3419
|
-
end
|
|
3420
|
-
|
|
3421
|
-
# Summary of a single tranformation.
|
|
3422
|
-
# Only one of 'transformation', 'field_transformation', or 'record_suppress'
|
|
3423
|
-
# will be set.
|
|
3424
|
-
class GooglePrivacyDlpV2beta1TransformationSummary
|
|
3425
|
-
include Google::Apis::Core::Hashable
|
|
3426
|
-
|
|
3427
|
-
# General identifier of a data field in a storage service.
|
|
3428
|
-
# Corresponds to the JSON property `field`
|
|
3429
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldId]
|
|
3430
|
-
attr_accessor :field
|
|
3431
|
-
|
|
3432
|
-
# The field transformation that was applied.
|
|
3433
|
-
# If multiple field transformations are requested for a single field,
|
|
3434
|
-
# this list will contain all of them; otherwise, only one is supplied.
|
|
3435
|
-
# Corresponds to the JSON property `fieldTransformations`
|
|
3436
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1FieldTransformation>]
|
|
3437
|
-
attr_accessor :field_transformations
|
|
3438
|
-
|
|
3439
|
-
# Type of information detected by the API.
|
|
3440
|
-
# Corresponds to the JSON property `infoType`
|
|
3441
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType]
|
|
3442
|
-
attr_accessor :info_type
|
|
3443
|
-
|
|
3444
|
-
# Configuration to suppress records whose suppression conditions evaluate to
|
|
3445
|
-
# true.
|
|
3446
|
-
# Corresponds to the JSON property `recordSuppress`
|
|
3447
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RecordSuppression]
|
|
3448
|
-
attr_accessor :record_suppress
|
|
3449
|
-
|
|
3450
|
-
#
|
|
3451
|
-
# Corresponds to the JSON property `results`
|
|
3452
|
-
# @return [Array<Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1SummaryResult>]
|
|
3453
|
-
attr_accessor :results
|
|
3454
|
-
|
|
3455
|
-
# A rule for transforming a value.
|
|
3456
|
-
# Corresponds to the JSON property `transformation`
|
|
3457
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1PrimitiveTransformation]
|
|
3458
|
-
attr_accessor :transformation
|
|
3459
|
-
|
|
3460
|
-
# Total size in bytes that were transformed in some way.
|
|
3461
|
-
# Corresponds to the JSON property `transformedBytes`
|
|
3462
|
-
# @return [Fixnum]
|
|
3463
|
-
attr_accessor :transformed_bytes
|
|
3464
|
-
|
|
3465
|
-
def initialize(**args)
|
|
3466
|
-
update!(**args)
|
|
3467
|
-
end
|
|
3468
|
-
|
|
3469
|
-
# Update properties of this object
|
|
3470
|
-
def update!(**args)
|
|
3471
|
-
@field = args[:field] if args.key?(:field)
|
|
3472
|
-
@field_transformations = args[:field_transformations] if args.key?(:field_transformations)
|
|
3473
|
-
@info_type = args[:info_type] if args.key?(:info_type)
|
|
3474
|
-
@record_suppress = args[:record_suppress] if args.key?(:record_suppress)
|
|
3475
|
-
@results = args[:results] if args.key?(:results)
|
|
3476
|
-
@transformation = args[:transformation] if args.key?(:transformation)
|
|
3477
|
-
@transformed_bytes = args[:transformed_bytes] if args.key?(:transformed_bytes)
|
|
3478
|
-
end
|
|
3479
|
-
end
|
|
3480
|
-
|
|
3481
|
-
# Use this to have a random data crypto key generated.
|
|
3482
|
-
# It will be discarded after the operation/request finishes.
|
|
3483
|
-
class GooglePrivacyDlpV2beta1TransientCryptoKey
|
|
3484
|
-
include Google::Apis::Core::Hashable
|
|
3485
|
-
|
|
3486
|
-
# Name of the key. [required]
|
|
3487
|
-
# This is an arbitrary string used to differentiate different keys.
|
|
3488
|
-
# A unique key is generated per name: two separate `TransientCryptoKey`
|
|
3489
|
-
# protos share the same generated key if their names are the same.
|
|
3490
|
-
# When the data crypto key is generated, this name is not used in any way
|
|
3491
|
-
# (repeating the api call will result in a different key being generated).
|
|
3492
|
-
# Corresponds to the JSON property `name`
|
|
3493
|
-
# @return [String]
|
|
3494
|
-
attr_accessor :name
|
|
3495
|
-
|
|
3496
|
-
def initialize(**args)
|
|
3497
|
-
update!(**args)
|
|
3498
|
-
end
|
|
3499
|
-
|
|
3500
|
-
# Update properties of this object
|
|
3501
|
-
def update!(**args)
|
|
3502
|
-
@name = args[:name] if args.key?(:name)
|
|
3503
|
-
end
|
|
3504
|
-
end
|
|
3505
|
-
|
|
3506
|
-
# Using raw keys is prone to security risks due to accidentally
|
|
3507
|
-
# leaking the key. Choose another type of key if possible.
|
|
3508
|
-
class GooglePrivacyDlpV2beta1UnwrappedCryptoKey
|
|
3509
|
-
include Google::Apis::Core::Hashable
|
|
3510
|
-
|
|
3511
|
-
# The AES 128/192/256 bit key. [required]
|
|
3512
|
-
# Corresponds to the JSON property `key`
|
|
3513
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
3514
|
-
# @return [String]
|
|
3515
|
-
attr_accessor :key
|
|
3516
|
-
|
|
3517
|
-
def initialize(**args)
|
|
3518
|
-
update!(**args)
|
|
3519
|
-
end
|
|
3520
|
-
|
|
3521
|
-
# Update properties of this object
|
|
3522
|
-
def update!(**args)
|
|
3523
|
-
@key = args[:key] if args.key?(:key)
|
|
3524
|
-
end
|
|
3525
|
-
end
|
|
3526
|
-
|
|
3527
|
-
# Set of primitive values supported by the system.
|
|
3528
|
-
# Note that for the purposes of inspection or transformation, the number
|
|
3529
|
-
# of bytes considered to comprise a 'Value' is based on its representation
|
|
3530
|
-
# as a UTF-8 encoded string. For example, if 'integer_value' is set to
|
|
3531
|
-
# 123456789, the number of bytes would be counted as 9, even though an
|
|
3532
|
-
# int64 only holds up to 8 bytes of data.
|
|
3533
|
-
class GooglePrivacyDlpV2beta1Value
|
|
3534
|
-
include Google::Apis::Core::Hashable
|
|
3535
|
-
|
|
3536
|
-
#
|
|
3537
|
-
# Corresponds to the JSON property `booleanValue`
|
|
3538
|
-
# @return [Boolean]
|
|
3539
|
-
attr_accessor :boolean_value
|
|
3540
|
-
alias_method :boolean_value?, :boolean_value
|
|
3541
|
-
|
|
3542
|
-
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
|
3543
|
-
# time zone are either specified elsewhere or are not significant. The date
|
|
3544
|
-
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
|
3545
|
-
# represent a year and month where the day is not significant, e.g. credit card
|
|
3546
|
-
# expiration date. The year may be 0 to represent a month and day independent
|
|
3547
|
-
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
|
3548
|
-
# and `google.protobuf.Timestamp`.
|
|
3549
|
-
# Corresponds to the JSON property `dateValue`
|
|
3550
|
-
# @return [Google::Apis::DlpV2beta1::GoogleTypeDate]
|
|
3551
|
-
attr_accessor :date_value
|
|
3552
|
-
|
|
3553
|
-
#
|
|
3554
|
-
# Corresponds to the JSON property `floatValue`
|
|
3555
|
-
# @return [Float]
|
|
3556
|
-
attr_accessor :float_value
|
|
3557
|
-
|
|
3558
|
-
#
|
|
3559
|
-
# Corresponds to the JSON property `integerValue`
|
|
3560
|
-
# @return [Fixnum]
|
|
3561
|
-
attr_accessor :integer_value
|
|
3562
|
-
|
|
3563
|
-
#
|
|
3564
|
-
# Corresponds to the JSON property `stringValue`
|
|
3565
|
-
# @return [String]
|
|
3566
|
-
attr_accessor :string_value
|
|
3567
|
-
|
|
3568
|
-
# Represents a time of day. The date and time zone are either not significant
|
|
3569
|
-
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
|
3570
|
-
# types are google.type.Date and `google.protobuf.Timestamp`.
|
|
3571
|
-
# Corresponds to the JSON property `timeValue`
|
|
3572
|
-
# @return [Google::Apis::DlpV2beta1::GoogleTypeTimeOfDay]
|
|
3573
|
-
attr_accessor :time_value
|
|
3574
|
-
|
|
3575
|
-
#
|
|
3576
|
-
# Corresponds to the JSON property `timestampValue`
|
|
3577
|
-
# @return [String]
|
|
3578
|
-
attr_accessor :timestamp_value
|
|
3579
|
-
|
|
3580
|
-
def initialize(**args)
|
|
3581
|
-
update!(**args)
|
|
3582
|
-
end
|
|
3583
|
-
|
|
3584
|
-
# Update properties of this object
|
|
3585
|
-
def update!(**args)
|
|
3586
|
-
@boolean_value = args[:boolean_value] if args.key?(:boolean_value)
|
|
3587
|
-
@date_value = args[:date_value] if args.key?(:date_value)
|
|
3588
|
-
@float_value = args[:float_value] if args.key?(:float_value)
|
|
3589
|
-
@integer_value = args[:integer_value] if args.key?(:integer_value)
|
|
3590
|
-
@string_value = args[:string_value] if args.key?(:string_value)
|
|
3591
|
-
@time_value = args[:time_value] if args.key?(:time_value)
|
|
3592
|
-
@timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
|
|
3593
|
-
end
|
|
3594
|
-
end
|
|
3595
|
-
|
|
3596
|
-
# A value of a field, including its frequency.
|
|
3597
|
-
class GooglePrivacyDlpV2beta1ValueFrequency
|
|
3598
|
-
include Google::Apis::Core::Hashable
|
|
3599
|
-
|
|
3600
|
-
# How many times the value is contained in the field.
|
|
3601
|
-
# Corresponds to the JSON property `count`
|
|
3602
|
-
# @return [Fixnum]
|
|
3603
|
-
attr_accessor :count
|
|
3604
|
-
|
|
3605
|
-
# Set of primitive values supported by the system.
|
|
3606
|
-
# Note that for the purposes of inspection or transformation, the number
|
|
3607
|
-
# of bytes considered to comprise a 'Value' is based on its representation
|
|
3608
|
-
# as a UTF-8 encoded string. For example, if 'integer_value' is set to
|
|
3609
|
-
# 123456789, the number of bytes would be counted as 9, even though an
|
|
3610
|
-
# int64 only holds up to 8 bytes of data.
|
|
3611
|
-
# Corresponds to the JSON property `value`
|
|
3612
|
-
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Value]
|
|
3613
|
-
attr_accessor :value
|
|
3614
|
-
|
|
3615
|
-
def initialize(**args)
|
|
3616
|
-
update!(**args)
|
|
3617
|
-
end
|
|
3618
|
-
|
|
3619
|
-
# Update properties of this object
|
|
3620
|
-
def update!(**args)
|
|
3621
|
-
@count = args[:count] if args.key?(:count)
|
|
3622
|
-
@value = args[:value] if args.key?(:value)
|
|
3623
|
-
end
|
|
3624
|
-
end
|
|
3625
|
-
|
|
3626
|
-
# Message defining a list of words or phrases to search for in the data.
|
|
3627
|
-
class GooglePrivacyDlpV2beta1WordList
|
|
3628
|
-
include Google::Apis::Core::Hashable
|
|
3629
|
-
|
|
3630
|
-
# Words or phrases defining the dictionary. The dictionary must contain
|
|
3631
|
-
# at least one phrase and every phrase must contain at least 2 characters
|
|
3632
|
-
# that are letters or digits. [required]
|
|
3633
|
-
# Corresponds to the JSON property `words`
|
|
3634
|
-
# @return [Array<String>]
|
|
3635
|
-
attr_accessor :words
|
|
3636
|
-
|
|
3637
|
-
def initialize(**args)
|
|
3638
|
-
update!(**args)
|
|
3639
|
-
end
|
|
3640
|
-
|
|
3641
|
-
# Update properties of this object
|
|
3642
|
-
def update!(**args)
|
|
3643
|
-
@words = args[:words] if args.key?(:words)
|
|
3644
|
-
end
|
|
3645
|
-
end
|
|
3646
|
-
|
|
3647
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
|
3648
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
|
3649
|
-
# or the response type of an API method. For instance:
|
|
3650
|
-
# service Foo `
|
|
3651
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
3652
|
-
# `
|
|
3653
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
|
3654
|
-
class GoogleProtobufEmpty
|
|
3655
|
-
include Google::Apis::Core::Hashable
|
|
3656
|
-
|
|
3657
|
-
def initialize(**args)
|
|
3658
|
-
update!(**args)
|
|
3659
|
-
end
|
|
3660
|
-
|
|
3661
|
-
# Update properties of this object
|
|
3662
|
-
def update!(**args)
|
|
3663
|
-
end
|
|
3664
|
-
end
|
|
3665
|
-
|
|
3666
|
-
# The `Status` type defines a logical error model that is suitable for different
|
|
3667
|
-
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
3668
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
3669
|
-
# - Simple to use and understand for most users
|
|
3670
|
-
# - Flexible enough to meet unexpected needs
|
|
3671
|
-
# # Overview
|
|
3672
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
|
3673
|
-
# and error details. The error code should be an enum value of
|
|
3674
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
3675
|
-
# error message should be a developer-facing English message that helps
|
|
3676
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
3677
|
-
# error message is needed, put the localized message in the error details or
|
|
3678
|
-
# localize it in the client. The optional error details may contain arbitrary
|
|
3679
|
-
# information about the error. There is a predefined set of error detail types
|
|
3680
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
|
3681
|
-
# # Language mapping
|
|
3682
|
-
# The `Status` message is the logical representation of the error model, but it
|
|
3683
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
|
3684
|
-
# exposed in different client libraries and different wire protocols, it can be
|
|
3685
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
3686
|
-
# in Java, but more likely mapped to some error codes in C.
|
|
3687
|
-
# # Other uses
|
|
3688
|
-
# The error model and the `Status` message can be used in a variety of
|
|
3689
|
-
# environments, either with or without APIs, to provide a
|
|
3690
|
-
# consistent developer experience across different environments.
|
|
3691
|
-
# Example uses of this error model include:
|
|
3692
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
|
3693
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
|
3694
|
-
# errors.
|
|
3695
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
3696
|
-
# have a `Status` message for error reporting.
|
|
3697
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
|
3698
|
-
# `Status` message should be used directly inside batch response, one for
|
|
3699
|
-
# each error sub-response.
|
|
3700
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
3701
|
-
# results in its response, the status of those operations should be
|
|
3702
|
-
# represented directly using the `Status` message.
|
|
3703
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
3704
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
|
3705
|
-
class GoogleRpcStatus
|
|
3706
|
-
include Google::Apis::Core::Hashable
|
|
3707
|
-
|
|
3708
|
-
# The status code, which should be an enum value of google.rpc.Code.
|
|
3709
|
-
# Corresponds to the JSON property `code`
|
|
3710
|
-
# @return [Fixnum]
|
|
3711
|
-
attr_accessor :code
|
|
3712
|
-
|
|
3713
|
-
# A list of messages that carry the error details. There is a common set of
|
|
3714
|
-
# message types for APIs to use.
|
|
3715
|
-
# Corresponds to the JSON property `details`
|
|
3716
|
-
# @return [Array<Hash<String,Object>>]
|
|
3717
|
-
attr_accessor :details
|
|
3718
|
-
|
|
3719
|
-
# A developer-facing error message, which should be in English. Any
|
|
3720
|
-
# user-facing error message should be localized and sent in the
|
|
3721
|
-
# google.rpc.Status.details field, or localized by the client.
|
|
3722
|
-
# Corresponds to the JSON property `message`
|
|
3723
|
-
# @return [String]
|
|
3724
|
-
attr_accessor :message
|
|
3725
|
-
|
|
3726
|
-
def initialize(**args)
|
|
3727
|
-
update!(**args)
|
|
3728
|
-
end
|
|
3729
|
-
|
|
3730
|
-
# Update properties of this object
|
|
3731
|
-
def update!(**args)
|
|
3732
|
-
@code = args[:code] if args.key?(:code)
|
|
3733
|
-
@details = args[:details] if args.key?(:details)
|
|
3734
|
-
@message = args[:message] if args.key?(:message)
|
|
3735
|
-
end
|
|
3736
|
-
end
|
|
3737
|
-
|
|
3738
|
-
# Represents a whole calendar date, e.g. date of birth. The time of day and
|
|
3739
|
-
# time zone are either specified elsewhere or are not significant. The date
|
|
3740
|
-
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
|
|
3741
|
-
# represent a year and month where the day is not significant, e.g. credit card
|
|
3742
|
-
# expiration date. The year may be 0 to represent a month and day independent
|
|
3743
|
-
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
|
|
3744
|
-
# and `google.protobuf.Timestamp`.
|
|
3745
|
-
class GoogleTypeDate
|
|
3746
|
-
include Google::Apis::Core::Hashable
|
|
3747
|
-
|
|
3748
|
-
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
|
3749
|
-
# if specifying a year/month where the day is not significant.
|
|
3750
|
-
# Corresponds to the JSON property `day`
|
|
3751
|
-
# @return [Fixnum]
|
|
3752
|
-
attr_accessor :day
|
|
3753
|
-
|
|
3754
|
-
# Month of year. Must be from 1 to 12, or 0 if specifying a date without a
|
|
3755
|
-
# month.
|
|
3756
|
-
# Corresponds to the JSON property `month`
|
|
3757
|
-
# @return [Fixnum]
|
|
3758
|
-
attr_accessor :month
|
|
3759
|
-
|
|
3760
|
-
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
|
3761
|
-
# a year.
|
|
3762
|
-
# Corresponds to the JSON property `year`
|
|
3763
|
-
# @return [Fixnum]
|
|
3764
|
-
attr_accessor :year
|
|
3765
|
-
|
|
3766
|
-
def initialize(**args)
|
|
3767
|
-
update!(**args)
|
|
3768
|
-
end
|
|
3769
|
-
|
|
3770
|
-
# Update properties of this object
|
|
3771
|
-
def update!(**args)
|
|
3772
|
-
@day = args[:day] if args.key?(:day)
|
|
3773
|
-
@month = args[:month] if args.key?(:month)
|
|
3774
|
-
@year = args[:year] if args.key?(:year)
|
|
3775
|
-
end
|
|
3776
|
-
end
|
|
3777
|
-
|
|
3778
|
-
# Represents a time of day. The date and time zone are either not significant
|
|
3779
|
-
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
|
3780
|
-
# types are google.type.Date and `google.protobuf.Timestamp`.
|
|
3781
|
-
class GoogleTypeTimeOfDay
|
|
3782
|
-
include Google::Apis::Core::Hashable
|
|
3783
|
-
|
|
3784
|
-
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
|
3785
|
-
# to allow the value "24:00:00" for scenarios like business closing time.
|
|
3786
|
-
# Corresponds to the JSON property `hours`
|
|
3787
|
-
# @return [Fixnum]
|
|
3788
|
-
attr_accessor :hours
|
|
3789
|
-
|
|
3790
|
-
# Minutes of hour of day. Must be from 0 to 59.
|
|
3791
|
-
# Corresponds to the JSON property `minutes`
|
|
3792
|
-
# @return [Fixnum]
|
|
3793
|
-
attr_accessor :minutes
|
|
3794
|
-
|
|
3795
|
-
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
|
3796
|
-
# Corresponds to the JSON property `nanos`
|
|
3797
|
-
# @return [Fixnum]
|
|
3798
|
-
attr_accessor :nanos
|
|
3799
|
-
|
|
3800
|
-
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
|
|
3801
|
-
# allow the value 60 if it allows leap-seconds.
|
|
3802
|
-
# Corresponds to the JSON property `seconds`
|
|
3803
|
-
# @return [Fixnum]
|
|
3804
|
-
attr_accessor :seconds
|
|
3805
|
-
|
|
3806
|
-
def initialize(**args)
|
|
3807
|
-
update!(**args)
|
|
3808
|
-
end
|
|
3809
|
-
|
|
3810
|
-
# Update properties of this object
|
|
3811
|
-
def update!(**args)
|
|
3812
|
-
@hours = args[:hours] if args.key?(:hours)
|
|
3813
|
-
@minutes = args[:minutes] if args.key?(:minutes)
|
|
3814
|
-
@nanos = args[:nanos] if args.key?(:nanos)
|
|
3815
|
-
@seconds = args[:seconds] if args.key?(:seconds)
|
|
3816
|
-
end
|
|
3817
|
-
end
|
|
3818
|
-
end
|
|
3819
|
-
end
|
|
3820
|
-
end
|