Class: Google::Apis::DlpV2::GooglePrivacyDlpV2BigQueryRegex

Inherits:
Object
  • Object
show all
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 tables, datasets, or projects that contain BigQuery tables. 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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2BigQueryRegex

Returns a new instance of GooglePrivacyDlpV2BigQueryRegex.



673
674
675
# File 'lib/google/apis/dlp_v2/classes.rb', line 673

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dataset_id_regexString

If unset, this property matches all datasets. Corresponds to the JSON property datasetIdRegex

Returns:

  • (String)


660
661
662
# File 'lib/google/apis/dlp_v2/classes.rb', line 660

def dataset_id_regex
  @dataset_id_regex
end

#project_id_regexString

For organizations, if unset, will match all projects. Has no effect for data profile configurations created within a project. Corresponds to the JSON property projectIdRegex

Returns:

  • (String)


666
667
668
# File 'lib/google/apis/dlp_v2/classes.rb', line 666

def project_id_regex
  @project_id_regex
end

#table_id_regexString

If unset, this property matches all tables. Corresponds to the JSON property tableIdRegex

Returns:

  • (String)


671
672
673
# File 'lib/google/apis/dlp_v2/classes.rb', line 671

def table_id_regex
  @table_id_regex
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



678
679
680
681
682
# File 'lib/google/apis/dlp_v2/classes.rb', line 678

def update!(**args)
  @dataset_id_regex = args[:dataset_id_regex] if args.key?(:dataset_id_regex)
  @project_id_regex = args[:project_id_regex] if args.key?(:project_id_regex)
  @table_id_regex = args[:table_id_regex] if args.key?(:table_id_regex)
end