Class: Google::Apis::DlpV2::GooglePrivacyDlpV2DatabaseResourceRegex
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2DatabaseResourceRegex
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb
Overview
A pattern to match against one or more database resources. At least one pattern must be specified. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.
Instance Attribute Summary collapse
-
#database_regex ⇒ String
Regex to test the database name against.
-
#database_resource_name_regex ⇒ String
Regex to test the database resource's name against.
-
#instance_regex ⇒ String
Regex to test the instance name against.
-
#project_id_regex ⇒ String
For organizations, if unset, will match all projects.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2DatabaseResourceRegex
constructor
A new instance of GooglePrivacyDlpV2DatabaseResourceRegex.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2DatabaseResourceRegex
Returns a new instance of GooglePrivacyDlpV2DatabaseResourceRegex.
2817 2818 2819 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2817 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database_regex ⇒ String
Regex to test the database name against. If empty, all databases match.
Corresponds to the JSON property databaseRegex
2797 2798 2799 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2797 def database_regex @database_regex end |
#database_resource_name_regex ⇒ String
Regex to test the database resource's name against. An example of a database
resource name is a table's name. Other database resource names like view names
could be included in the future. If empty, all database resources match.
Corresponds to the JSON property databaseResourceNameRegex
2804 2805 2806 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2804 def database_resource_name_regex @database_resource_name_regex end |
#instance_regex ⇒ String
Regex to test the instance name against. If empty, all instances match.
Corresponds to the JSON property instanceRegex
2809 2810 2811 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2809 def instance_regex @instance_regex end |
#project_id_regex ⇒ String
For organizations, if unset, will match all projects. Has no effect for
configurations created within a project.
Corresponds to the JSON property projectIdRegex
2815 2816 2817 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2815 def project_id_regex @project_id_regex end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2822 2823 2824 2825 2826 2827 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2822 def update!(**args) @database_regex = args[:database_regex] if args.key?(:database_regex) @database_resource_name_regex = args[:database_resource_name_regex] if args.key?(:database_resource_name_regex) @instance_regex = args[:instance_regex] if args.key?(:instance_regex) @project_id_regex = args[:project_id_regex] if args.key?(:project_id_regex) end |