Class: Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/bigquery/datapolicies/v1/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::V1::DataMaskingPolicy

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

Returns:



154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# File 'proto_docs/google/cloud/bigquery/datapolicies/v1/datapolicy.rb', line 154

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.



154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# File 'proto_docs/google/cloud/bigquery/datapolicies/v1/datapolicy.rb', line 154

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::V1::DataPolicy::DataPolicyType

Returns Type of data policy.



154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# File 'proto_docs/google/cloud/bigquery/datapolicies/v1/datapolicy.rb', line 154

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



154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# File 'proto_docs/google/cloud/bigquery/datapolicies/v1/datapolicy.rb', line 154

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



154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# File 'proto_docs/google/cloud/bigquery/datapolicies/v1/datapolicy.rb', line 154

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