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.
      2651 2652 2653  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 2651 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
      2631 2632 2633  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 2631 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
      2638 2639 2640  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 2638 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
      2643 2644 2645  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 2643 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
      2649 2650 2651  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 2649 def project_id_regex @project_id_regex end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2656 2657 2658 2659 2660 2661  | 
    
      # File 'lib/google/apis/dlp_v2/classes.rb', line 2656 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  |