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.



231
232
233
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 231

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



206
207
208
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 206

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)


212
213
214
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 212

def data_policy_id
  @data_policy_id
end

#data_policy_typeString

Type of data policy. Corresponds to the JSON property dataPolicyType

Returns:

  • (String)


217
218
219
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 217

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)


223
224
225
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 223

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)


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