Class: Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/bigquery/datapolicies/v1beta1/datapolicy.rb

Overview

Represents the label-policy binding.

Defined Under Namespace

Modules: DataPolicyType

Instance Attribute Summary collapse

Instance Attribute Details

#data_masking_policy::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataMaskingPolicy

Returns The data masking policy that specifies the data masking rule to use.

Returns:



131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'proto_docs/google/cloud/bigquery/datapolicies/v1beta1/datapolicy.rb', line 131

class DataPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A list of supported data policy types.
  module DataPolicyType
    # Default value for the data policy type. This should not be used.
    DATA_POLICY_TYPE_UNSPECIFIED = 0

    # Used to create a data policy for column-level security, without data
    # masking.
    COLUMN_LEVEL_SECURITY_POLICY = 3

    # Used to create a data policy for data masking.
    DATA_MASKING_POLICY = 2
  end
end

#data_policy_id::String

Returns 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.

Returns:

  • (::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.



131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'proto_docs/google/cloud/bigquery/datapolicies/v1beta1/datapolicy.rb', line 131

class DataPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A list of supported data policy types.
  module DataPolicyType
    # Default value for the data policy type. This should not be used.
    DATA_POLICY_TYPE_UNSPECIFIED = 0

    # Used to create a data policy for column-level security, without data
    # masking.
    COLUMN_LEVEL_SECURITY_POLICY = 3

    # Used to create a data policy for data masking.
    DATA_MASKING_POLICY = 2
  end
end

#data_policy_type::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy::DataPolicyType

Returns Type of data policy.



131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'proto_docs/google/cloud/bigquery/datapolicies/v1beta1/datapolicy.rb', line 131

class DataPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A list of supported data policy types.
  module DataPolicyType
    # Default value for the data policy type. This should not be used.
    DATA_POLICY_TYPE_UNSPECIFIED = 0

    # Used to create a data policy for column-level security, without data
    # masking.
    COLUMN_LEVEL_SECURITY_POLICY = 3

    # Used to create a data policy for data masking.
    DATA_MASKING_POLICY = 2
  end
end

#name::String (readonly)

Returns Output only. Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.

Returns:

  • (::String)

    Output only. Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.



131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'proto_docs/google/cloud/bigquery/datapolicies/v1beta1/datapolicy.rb', line 131

class DataPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A list of supported data policy types.
  module DataPolicyType
    # Default value for the data policy type. This should not be used.
    DATA_POLICY_TYPE_UNSPECIFIED = 0

    # Used to create a data policy for column-level security, without data
    # masking.
    COLUMN_LEVEL_SECURITY_POLICY = 3

    # Used to create a data policy for data masking.
    DATA_MASKING_POLICY = 2
  end
end

#policy_tag::String

Returns Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}.

Returns:

  • (::String)

    Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}.



131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'proto_docs/google/cloud/bigquery/datapolicies/v1beta1/datapolicy.rb', line 131

class DataPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A list of supported data policy types.
  module DataPolicyType
    # Default value for the data policy type. This should not be used.
    DATA_POLICY_TYPE_UNSPECIFIED = 0

    # Used to create a data policy for column-level security, without data
    # masking.
    COLUMN_LEVEL_SECURITY_POLICY = 3

    # Used to create a data policy for data masking.
    DATA_MASKING_POLICY = 2
  end
end