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.
231 232 233 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 231 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
206 207 208 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 206 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
212 213 214 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 212 def data_policy_id @data_policy_id end |
#data_policy_type ⇒ String
Type of data policy.
Corresponds to the JSON property dataPolicyType
217 218 219 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 217 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 propertyname`
223 224 225 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 223 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 propertypolicyTag`
229 230 231 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 229 def policy_tag @policy_tag end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
236 237 238 239 240 241 242 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 236 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 |