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.
2640 2641 2642 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2640 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
2620 2621 2622 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2620 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
2627 2628 2629 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2627 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
2632 2633 2634 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2632 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
2638 2639 2640 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2638 def project_id_regex @project_id_regex end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2645 2646 2647 2648 2649 2650 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2645 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 |