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.
2530 2531 2532 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2530 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
2510 2511 2512 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2510 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
2517 2518 2519 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2517 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
2522 2523 2524 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2522 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
2528 2529 2530 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2528 def project_id_regex @project_id_regex end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2535 2536 2537 2538 2539 2540 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2535 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 |