Class: Google::Apis::BigquerydatapolicyV1::DataPolicy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_policyGoogle::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_idString

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

Returns:

  • (String)


237
238
239
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 237

def data_policy_id
  @data_policy_id
end

#data_policy_typeString

Type of data policy. Corresponds to the JSON property dataPolicyType

Returns:

  • (String)


242
243
244
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 242

def data_policy_type
  @data_policy_type
end

#nameString

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`

Returns:

  • (String)


248
249
250
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 248

def name
  @name
end

#policy_tagString

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`

Returns:

  • (String)


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