Class: Google::Apis::BigquerydatapolicyV1::DataPolicy
- Inherits:
-
Object
- Object
- Google::Apis::BigquerydatapolicyV1::DataPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquerydatapolicy_v1/classes.rb,
lib/google/apis/bigquerydatapolicy_v1/representations.rb,
lib/google/apis/bigquerydatapolicy_v1/representations.rb
Overview
Represents the label-policy binding.
Instance Attribute Summary collapse
-
#data_masking_policy ⇒ Google::Apis::BigquerydatapolicyV1::DataMaskingPolicy
The data masking policy that is used to specify data masking rule.
-
#data_policy_id ⇒ String
User-assigned (human readable) ID of the data policy that needs to be unique within a project.
-
#data_policy_type ⇒ String
Type of data policy.
-
#name ⇒ String
Output only.
-
#policy_tag ⇒ String
Policy tag resource name, in the format of
projects/
project_number/ locations/
location_id/taxonomies/
taxonomy_id/policyTags/
policyTag_id``.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataPolicy
constructor
A new instance of DataPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataPolicy
Returns a new instance of DataPolicy.
256 257 258 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 256 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_masking_policy ⇒ Google::Apis::BigquerydatapolicyV1::DataMaskingPolicy
The data masking policy that is used to specify data masking rule.
Corresponds to the JSON property dataMaskingPolicy
231 232 233 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 231 def data_masking_policy @data_masking_policy end |
#data_policy_id ⇒ String
User-assigned (human readable) ID of the data policy that needs to be unique
within a project. Used as data_policy_id
in part of the resource name.
Corresponds to the JSON property dataPolicyId
237 238 239 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 237 def data_policy_id @data_policy_id end |
#data_policy_type ⇒ String
Type of data policy.
Corresponds to the JSON property dataPolicyType
242 243 244 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 242 def data_policy_type @data_policy_type end |
#name ⇒ String
Output only. Resource name of this data policy, in the format of projects/
project_number/locations/
location_id/dataPolicies/
data_policy_id`.
Corresponds to the JSON property
name`
248 249 250 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 248 def name @name end |
#policy_tag ⇒ String
Policy tag resource name, in the format of projects/
project_number/
locations/
location_id/taxonomies/
taxonomy_id/policyTags/
policyTag_id`.
Corresponds to the JSON property
policyTag`
254 255 256 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 254 def policy_tag @policy_tag end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
261 262 263 264 265 266 267 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 261 def update!(**args) @data_masking_policy = args[:data_masking_policy] if args.key?(:data_masking_policy) @data_policy_id = args[:data_policy_id] if args.key?(:data_policy_id) @data_policy_type = args[:data_policy_type] if args.key?(:data_policy_type) @name = args[:name] if args.key?(:name) @policy_tag = args[:policy_tag] if args.key?(:policy_tag) end |