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.
3082 3083 3084 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 3082 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
3062 3063 3064 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 3062 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
3069 3070 3071 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 3069 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
3074 3075 3076 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 3074 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
3080 3081 3082 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 3080 def project_id_regex @project_id_regex end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3087 3088 3089 3090 3091 3092 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 3087 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 |