Documentation ¶
Index ¶
- Variables
- func RegisterDataPolicyServiceServer(s *grpc.Server, srv DataPolicyServiceServer)
- type CreateDataPolicyRequest
- func (*CreateDataPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDataPolicyRequest) GetDataPolicy() *DataPolicy
- func (x *CreateDataPolicyRequest) GetParent() string
- func (*CreateDataPolicyRequest) ProtoMessage()
- func (x *CreateDataPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDataPolicyRequest) Reset()
- func (x *CreateDataPolicyRequest) String() string
- type DataMaskingPolicy
- func (*DataMaskingPolicy) Descriptor() ([]byte, []int)deprecated
- func (m *DataMaskingPolicy) GetMaskingExpression() isDataMaskingPolicy_MaskingExpression
- func (x *DataMaskingPolicy) GetPredefinedExpression() DataMaskingPolicy_PredefinedExpression
- func (x *DataMaskingPolicy) GetRoutine() string
- func (*DataMaskingPolicy) ProtoMessage()
- func (x *DataMaskingPolicy) ProtoReflect() protoreflect.Message
- func (x *DataMaskingPolicy) Reset()
- func (x *DataMaskingPolicy) String() string
- type DataMaskingPolicy_PredefinedExpression
- func (DataMaskingPolicy_PredefinedExpression) Descriptor() protoreflect.EnumDescriptor
- func (x DataMaskingPolicy_PredefinedExpression) Enum() *DataMaskingPolicy_PredefinedExpression
- func (DataMaskingPolicy_PredefinedExpression) EnumDescriptor() ([]byte, []int)deprecated
- func (x DataMaskingPolicy_PredefinedExpression) Number() protoreflect.EnumNumber
- func (x DataMaskingPolicy_PredefinedExpression) String() string
- func (DataMaskingPolicy_PredefinedExpression) Type() protoreflect.EnumType
- type DataMaskingPolicy_PredefinedExpression_
- type DataMaskingPolicy_Routine
- type DataPolicy
- func (*DataPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *DataPolicy) GetDataMaskingPolicy() *DataMaskingPolicy
- func (x *DataPolicy) GetDataPolicyId() string
- func (x *DataPolicy) GetDataPolicyType() DataPolicy_DataPolicyType
- func (m *DataPolicy) GetMatchingLabel() isDataPolicy_MatchingLabel
- func (x *DataPolicy) GetName() string
- func (m *DataPolicy) GetPolicy() isDataPolicy_Policy
- func (x *DataPolicy) GetPolicyTag() string
- func (*DataPolicy) ProtoMessage()
- func (x *DataPolicy) ProtoReflect() protoreflect.Message
- func (x *DataPolicy) Reset()
- func (x *DataPolicy) String() string
- type DataPolicyServiceClient
- type DataPolicyServiceServer
- type DataPolicy_DataMaskingPolicy
- type DataPolicy_DataPolicyType
- func (DataPolicy_DataPolicyType) Descriptor() protoreflect.EnumDescriptor
- func (x DataPolicy_DataPolicyType) Enum() *DataPolicy_DataPolicyType
- func (DataPolicy_DataPolicyType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DataPolicy_DataPolicyType) Number() protoreflect.EnumNumber
- func (x DataPolicy_DataPolicyType) String() string
- func (DataPolicy_DataPolicyType) Type() protoreflect.EnumType
- type DataPolicy_PolicyTag
- type DeleteDataPolicyRequest
- func (*DeleteDataPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDataPolicyRequest) GetName() string
- func (*DeleteDataPolicyRequest) ProtoMessage()
- func (x *DeleteDataPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDataPolicyRequest) Reset()
- func (x *DeleteDataPolicyRequest) String() string
- type GetDataPolicyRequest
- func (*GetDataPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDataPolicyRequest) GetName() string
- func (*GetDataPolicyRequest) ProtoMessage()
- func (x *GetDataPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *GetDataPolicyRequest) Reset()
- func (x *GetDataPolicyRequest) String() string
- type ListDataPoliciesRequest
- func (*ListDataPoliciesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListDataPoliciesRequest) GetFilter() string
- func (x *ListDataPoliciesRequest) GetPageSize() int32
- func (x *ListDataPoliciesRequest) GetPageToken() string
- func (x *ListDataPoliciesRequest) GetParent() string
- func (*ListDataPoliciesRequest) ProtoMessage()
- func (x *ListDataPoliciesRequest) ProtoReflect() protoreflect.Message
- func (x *ListDataPoliciesRequest) Reset()
- func (x *ListDataPoliciesRequest) String() string
- type ListDataPoliciesResponse
- func (*ListDataPoliciesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListDataPoliciesResponse) GetDataPolicies() []*DataPolicy
- func (x *ListDataPoliciesResponse) GetNextPageToken() string
- func (*ListDataPoliciesResponse) ProtoMessage()
- func (x *ListDataPoliciesResponse) ProtoReflect() protoreflect.Message
- func (x *ListDataPoliciesResponse) Reset()
- func (x *ListDataPoliciesResponse) String() string
- type RenameDataPolicyRequest
- func (*RenameDataPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RenameDataPolicyRequest) GetName() string
- func (x *RenameDataPolicyRequest) GetNewDataPolicyId() string
- func (*RenameDataPolicyRequest) ProtoMessage()
- func (x *RenameDataPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *RenameDataPolicyRequest) Reset()
- func (x *RenameDataPolicyRequest) String() string
- type UnimplementedDataPolicyServiceServer
- func (*UnimplementedDataPolicyServiceServer) CreateDataPolicy(context.Context, *CreateDataPolicyRequest) (*DataPolicy, error)
- func (*UnimplementedDataPolicyServiceServer) DeleteDataPolicy(context.Context, *DeleteDataPolicyRequest) (*emptypb.Empty, error)
- func (*UnimplementedDataPolicyServiceServer) GetDataPolicy(context.Context, *GetDataPolicyRequest) (*DataPolicy, error)
- func (*UnimplementedDataPolicyServiceServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
- func (*UnimplementedDataPolicyServiceServer) ListDataPolicies(context.Context, *ListDataPoliciesRequest) (*ListDataPoliciesResponse, error)
- func (*UnimplementedDataPolicyServiceServer) RenameDataPolicy(context.Context, *RenameDataPolicyRequest) (*DataPolicy, error)
- func (*UnimplementedDataPolicyServiceServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
- func (*UnimplementedDataPolicyServiceServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
- func (*UnimplementedDataPolicyServiceServer) UpdateDataPolicy(context.Context, *UpdateDataPolicyRequest) (*DataPolicy, error)
- type UpdateDataPolicyRequest
- func (*UpdateDataPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDataPolicyRequest) GetDataPolicy() *DataPolicy
- func (x *UpdateDataPolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateDataPolicyRequest) ProtoMessage()
- func (x *UpdateDataPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDataPolicyRequest) Reset()
- func (x *UpdateDataPolicyRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( DataPolicy_DataPolicyType_name = map[int32]string{ 0: "DATA_POLICY_TYPE_UNSPECIFIED", 3: "COLUMN_LEVEL_SECURITY_POLICY", 2: "DATA_MASKING_POLICY", } DataPolicy_DataPolicyType_value = map[string]int32{ "DATA_POLICY_TYPE_UNSPECIFIED": 0, "COLUMN_LEVEL_SECURITY_POLICY": 3, "DATA_MASKING_POLICY": 2, } )
Enum value maps for DataPolicy_DataPolicyType.
var ( DataMaskingPolicy_PredefinedExpression_name = map[int32]string{ 0: "PREDEFINED_EXPRESSION_UNSPECIFIED", 3: "SHA256", 5: "ALWAYS_NULL", 7: "DEFAULT_MASKING_VALUE", 9: "LAST_FOUR_CHARACTERS", 10: "FIRST_FOUR_CHARACTERS", 12: "EMAIL_MASK", 13: "DATE_YEAR_MASK", } DataMaskingPolicy_PredefinedExpression_value = map[string]int32{ "PREDEFINED_EXPRESSION_UNSPECIFIED": 0, "SHA256": 3, "ALWAYS_NULL": 5, "DEFAULT_MASKING_VALUE": 7, "LAST_FOUR_CHARACTERS": 9, "FIRST_FOUR_CHARACTERS": 10, "EMAIL_MASK": 12, "DATE_YEAR_MASK": 13, } )
Enum value maps for DataMaskingPolicy_PredefinedExpression.
var File_google_cloud_bigquery_datapolicies_v1_datapolicy_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDataPolicyServiceServer ¶
func RegisterDataPolicyServiceServer(s *grpc.Server, srv DataPolicyServiceServer)
Types ¶
type CreateDataPolicyRequest ¶
type CreateDataPolicyRequest struct { // Required. Resource name of the project that the data policy will belong to. // The format is `projects/{project_number}/locations/{location_id}`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The data policy to create. The `name` field does not need to be // provided for the data policy creation. DataPolicy *DataPolicy `protobuf:"bytes,2,opt,name=data_policy,json=dataPolicy,proto3" json:"data_policy,omitempty"` // contains filtered or unexported fields }
Request message for the CreateDataPolicy method.
func (*CreateDataPolicyRequest) Descriptor
deprecated
func (*CreateDataPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDataPolicyRequest.ProtoReflect.Descriptor instead.
func (*CreateDataPolicyRequest) GetDataPolicy ¶
func (x *CreateDataPolicyRequest) GetDataPolicy() *DataPolicy
func (*CreateDataPolicyRequest) GetParent ¶
func (x *CreateDataPolicyRequest) GetParent() string
func (*CreateDataPolicyRequest) ProtoMessage ¶
func (*CreateDataPolicyRequest) ProtoMessage()
func (*CreateDataPolicyRequest) ProtoReflect ¶
func (x *CreateDataPolicyRequest) ProtoReflect() protoreflect.Message
func (*CreateDataPolicyRequest) Reset ¶
func (x *CreateDataPolicyRequest) Reset()
func (*CreateDataPolicyRequest) String ¶
func (x *CreateDataPolicyRequest) String() string
type DataMaskingPolicy ¶
type DataMaskingPolicy struct { // A masking expression to bind to the data masking rule. // // Types that are assignable to MaskingExpression: // // *DataMaskingPolicy_PredefinedExpression_ // *DataMaskingPolicy_Routine MaskingExpression isDataMaskingPolicy_MaskingExpression `protobuf_oneof:"masking_expression"` // contains filtered or unexported fields }
The data masking policy that is used to specify data masking rule.
func (*DataMaskingPolicy) Descriptor
deprecated
func (*DataMaskingPolicy) Descriptor() ([]byte, []int)
Deprecated: Use DataMaskingPolicy.ProtoReflect.Descriptor instead.
func (*DataMaskingPolicy) GetMaskingExpression ¶
func (m *DataMaskingPolicy) GetMaskingExpression() isDataMaskingPolicy_MaskingExpression
func (*DataMaskingPolicy) GetPredefinedExpression ¶
func (x *DataMaskingPolicy) GetPredefinedExpression() DataMaskingPolicy_PredefinedExpression
func (*DataMaskingPolicy) GetRoutine ¶ added in v1.55.0
func (x *DataMaskingPolicy) GetRoutine() string
func (*DataMaskingPolicy) ProtoMessage ¶
func (*DataMaskingPolicy) ProtoMessage()
func (*DataMaskingPolicy) ProtoReflect ¶
func (x *DataMaskingPolicy) ProtoReflect() protoreflect.Message
func (*DataMaskingPolicy) Reset ¶
func (x *DataMaskingPolicy) Reset()
func (*DataMaskingPolicy) String ¶
func (x *DataMaskingPolicy) String() string
type DataMaskingPolicy_PredefinedExpression ¶
type DataMaskingPolicy_PredefinedExpression int32
The available masking rules. Learn more here: https://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options.
const ( // Default, unspecified predefined expression. No masking will take place // since no expression is specified. DataMaskingPolicy_PREDEFINED_EXPRESSION_UNSPECIFIED DataMaskingPolicy_PredefinedExpression = 0 // Masking expression to replace data with SHA-256 hash. DataMaskingPolicy_SHA256 DataMaskingPolicy_PredefinedExpression = 3 // Masking expression to replace data with NULLs. DataMaskingPolicy_ALWAYS_NULL DataMaskingPolicy_PredefinedExpression = 5 // Masking expression to replace data with their default masking values. // The default masking values for each type listed as below: // // * STRING: "" // * BYTES: b” // * INTEGER: 0 // * FLOAT: 0.0 // * NUMERIC: 0 // * BOOLEAN: FALSE // * TIMESTAMP: 1970-01-01 00:00:00 UTC // * DATE: 1970-01-01 // * TIME: 00:00:00 // * DATETIME: 1970-01-01T00:00:00 // * GEOGRAPHY: POINT(0 0) // * BIGNUMERIC: 0 // * ARRAY: [] // * STRUCT: NOT_APPLICABLE // * JSON: NULL DataMaskingPolicy_DEFAULT_MASKING_VALUE DataMaskingPolicy_PredefinedExpression = 7 // Masking expression shows the last four characters of text. // The masking behavior is as follows: // // * If text length > 4 characters: Replace text with XXXXX, append last // four characters of original text. // * If text length <= 4 characters: Apply SHA-256 hash. DataMaskingPolicy_LAST_FOUR_CHARACTERS DataMaskingPolicy_PredefinedExpression = 9 // Masking expression shows the first four characters of text. // The masking behavior is as follows: // // * If text length > 4 characters: Replace text with XXXXX, prepend first // four characters of original text. // * If text length <= 4 characters: Apply SHA-256 hash. DataMaskingPolicy_FIRST_FOUR_CHARACTERS DataMaskingPolicy_PredefinedExpression = 10 // Masking expression for email addresses. // The masking behavior is as follows: // // * Syntax-valid email address: Replace username with XXXXX. For example, // cloudysanfrancisco@gmail.com becomes XXXXX@gmail.com. // * Syntax-invalid email address: Apply SHA-256 hash. // // For more information, see [Email // mask](https://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options). DataMaskingPolicy_EMAIL_MASK DataMaskingPolicy_PredefinedExpression = 12 // Masking expression to only show the year of `Date`, // `DateTime` and `TimeStamp`. For example, with the // year 2076: // // * DATE : 2076-01-01 // * DATETIME : 2076-01-01T00:00:00 // * TIMESTAMP : 2076-01-01 00:00:00 UTC // // Truncation occurs according to the UTC time zone. To change this, adjust // the default time zone using the `time_zone` system variable. // For more information, see the <a // href="https://cloud.google.com/bigquery/docs/reference/system-variables">System // variables reference</a>. DataMaskingPolicy_DATE_YEAR_MASK DataMaskingPolicy_PredefinedExpression = 13 )
func (DataMaskingPolicy_PredefinedExpression) Descriptor ¶
func (DataMaskingPolicy_PredefinedExpression) Descriptor() protoreflect.EnumDescriptor
func (DataMaskingPolicy_PredefinedExpression) EnumDescriptor
deprecated
func (DataMaskingPolicy_PredefinedExpression) EnumDescriptor() ([]byte, []int)
Deprecated: Use DataMaskingPolicy_PredefinedExpression.Descriptor instead.
func (DataMaskingPolicy_PredefinedExpression) Number ¶
func (x DataMaskingPolicy_PredefinedExpression) Number() protoreflect.EnumNumber
func (DataMaskingPolicy_PredefinedExpression) String ¶
func (x DataMaskingPolicy_PredefinedExpression) String() string
func (DataMaskingPolicy_PredefinedExpression) Type ¶
func (DataMaskingPolicy_PredefinedExpression) Type() protoreflect.EnumType
type DataMaskingPolicy_PredefinedExpression_ ¶
type DataMaskingPolicy_PredefinedExpression_ struct { // A predefined masking expression. PredefinedExpression DataMaskingPolicy_PredefinedExpression `` /* 171-byte string literal not displayed */ }
type DataMaskingPolicy_Routine ¶ added in v1.55.0
type DataMaskingPolicy_Routine struct { // The name of the BigQuery routine that contains the custom masking // routine, in the format of // `projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}`. Routine string `protobuf:"bytes,3,opt,name=routine,proto3,oneof"` }
type DataPolicy ¶
type DataPolicy struct { // Label that is bound to this data policy. // // Types that are assignable to MatchingLabel: // // *DataPolicy_PolicyTag MatchingLabel isDataPolicy_MatchingLabel `protobuf_oneof:"matching_label"` // The policy that is bound to this data policy. // // Types that are assignable to Policy: // // *DataPolicy_DataMaskingPolicy Policy isDataPolicy_Policy `protobuf_oneof:"policy"` // Output only. Resource name of this data policy, in the format of // `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Type of data policy. DataPolicyType DataPolicy_DataPolicyType `` /* 175-byte string literal not displayed */ // 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. DataPolicyId string `protobuf:"bytes,3,opt,name=data_policy_id,json=dataPolicyId,proto3" json:"data_policy_id,omitempty"` // contains filtered or unexported fields }
Represents the label-policy binding.
func (*DataPolicy) Descriptor
deprecated
func (*DataPolicy) Descriptor() ([]byte, []int)
Deprecated: Use DataPolicy.ProtoReflect.Descriptor instead.
func (*DataPolicy) GetDataMaskingPolicy ¶
func (x *DataPolicy) GetDataMaskingPolicy() *DataMaskingPolicy
func (*DataPolicy) GetDataPolicyId ¶
func (x *DataPolicy) GetDataPolicyId() string
func (*DataPolicy) GetDataPolicyType ¶
func (x *DataPolicy) GetDataPolicyType() DataPolicy_DataPolicyType
func (*DataPolicy) GetMatchingLabel ¶
func (m *DataPolicy) GetMatchingLabel() isDataPolicy_MatchingLabel
func (*DataPolicy) GetName ¶
func (x *DataPolicy) GetName() string
func (*DataPolicy) GetPolicy ¶
func (m *DataPolicy) GetPolicy() isDataPolicy_Policy
func (*DataPolicy) GetPolicyTag ¶
func (x *DataPolicy) GetPolicyTag() string
func (*DataPolicy) ProtoMessage ¶
func (*DataPolicy) ProtoMessage()
func (*DataPolicy) ProtoReflect ¶
func (x *DataPolicy) ProtoReflect() protoreflect.Message
func (*DataPolicy) Reset ¶
func (x *DataPolicy) Reset()
func (*DataPolicy) String ¶
func (x *DataPolicy) String() string
type DataPolicyServiceClient ¶
type DataPolicyServiceClient interface { // Creates a new data policy under a project with the given `dataPolicyId` // (used as the display name), policy tag, and data policy type. CreateDataPolicy(ctx context.Context, in *CreateDataPolicyRequest, opts ...grpc.CallOption) (*DataPolicy, error) // Updates the metadata for an existing data policy. The target data policy // can be specified by the resource name. UpdateDataPolicy(ctx context.Context, in *UpdateDataPolicyRequest, opts ...grpc.CallOption) (*DataPolicy, error) // Renames the id (display name) of the specified data policy. RenameDataPolicy(ctx context.Context, in *RenameDataPolicyRequest, opts ...grpc.CallOption) (*DataPolicy, error) // Deletes the data policy specified by its resource name. DeleteDataPolicy(ctx context.Context, in *DeleteDataPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Gets the data policy specified by its resource name. GetDataPolicy(ctx context.Context, in *GetDataPolicyRequest, opts ...grpc.CallOption) (*DataPolicy, error) // List all of the data policies in the specified parent project. ListDataPolicies(ctx context.Context, in *ListDataPoliciesRequest, opts ...grpc.CallOption) (*ListDataPoliciesResponse, error) // Gets the IAM policy for the specified data policy. GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error) // Sets the IAM policy for the specified data policy. SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error) // Returns the caller's permission on the specified data policy resource. TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error) }
DataPolicyServiceClient is the client API for DataPolicyService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDataPolicyServiceClient ¶
func NewDataPolicyServiceClient(cc grpc.ClientConnInterface) DataPolicyServiceClient
type DataPolicyServiceServer ¶
type DataPolicyServiceServer interface { // Creates a new data policy under a project with the given `dataPolicyId` // (used as the display name), policy tag, and data policy type. CreateDataPolicy(context.Context, *CreateDataPolicyRequest) (*DataPolicy, error) // Updates the metadata for an existing data policy. The target data policy // can be specified by the resource name. UpdateDataPolicy(context.Context, *UpdateDataPolicyRequest) (*DataPolicy, error) // Renames the id (display name) of the specified data policy. RenameDataPolicy(context.Context, *RenameDataPolicyRequest) (*DataPolicy, error) // Deletes the data policy specified by its resource name. DeleteDataPolicy(context.Context, *DeleteDataPolicyRequest) (*emptypb.Empty, error) // Gets the data policy specified by its resource name. GetDataPolicy(context.Context, *GetDataPolicyRequest) (*DataPolicy, error) // List all of the data policies in the specified parent project. ListDataPolicies(context.Context, *ListDataPoliciesRequest) (*ListDataPoliciesResponse, error) // Gets the IAM policy for the specified data policy. GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error) // Sets the IAM policy for the specified data policy. SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error) // Returns the caller's permission on the specified data policy resource. TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error) }
DataPolicyServiceServer is the server API for DataPolicyService service.
type DataPolicy_DataMaskingPolicy ¶
type DataPolicy_DataMaskingPolicy struct { // The data masking policy that specifies the data masking rule to use. DataMaskingPolicy *DataMaskingPolicy `protobuf:"bytes,5,opt,name=data_masking_policy,json=dataMaskingPolicy,proto3,oneof"` }
type DataPolicy_DataPolicyType ¶
type DataPolicy_DataPolicyType int32
A list of supported data policy types.
const ( // Default value for the data policy type. This should not be used. DataPolicy_DATA_POLICY_TYPE_UNSPECIFIED DataPolicy_DataPolicyType = 0 // Used to create a data policy for column-level security, without data // masking. DataPolicy_COLUMN_LEVEL_SECURITY_POLICY DataPolicy_DataPolicyType = 3 // Used to create a data policy for data masking. DataPolicy_DATA_MASKING_POLICY DataPolicy_DataPolicyType = 2 )
func (DataPolicy_DataPolicyType) Descriptor ¶
func (DataPolicy_DataPolicyType) Descriptor() protoreflect.EnumDescriptor
func (DataPolicy_DataPolicyType) Enum ¶
func (x DataPolicy_DataPolicyType) Enum() *DataPolicy_DataPolicyType
func (DataPolicy_DataPolicyType) EnumDescriptor
deprecated
func (DataPolicy_DataPolicyType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DataPolicy_DataPolicyType.Descriptor instead.
func (DataPolicy_DataPolicyType) Number ¶
func (x DataPolicy_DataPolicyType) Number() protoreflect.EnumNumber
func (DataPolicy_DataPolicyType) String ¶
func (x DataPolicy_DataPolicyType) String() string
func (DataPolicy_DataPolicyType) Type ¶
func (DataPolicy_DataPolicyType) Type() protoreflect.EnumType
type DataPolicy_PolicyTag ¶
type DataPolicy_PolicyTag struct { // Policy tag resource name, in the format of // `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`. PolicyTag string `protobuf:"bytes,4,opt,name=policy_tag,json=policyTag,proto3,oneof"` }
type DeleteDataPolicyRequest ¶
type DeleteDataPolicyRequest struct { // Required. Resource name of the data policy to delete. Format is // `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for the DeleteDataPolicy method.
func (*DeleteDataPolicyRequest) Descriptor
deprecated
func (*DeleteDataPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDataPolicyRequest.ProtoReflect.Descriptor instead.
func (*DeleteDataPolicyRequest) GetName ¶
func (x *DeleteDataPolicyRequest) GetName() string
func (*DeleteDataPolicyRequest) ProtoMessage ¶
func (*DeleteDataPolicyRequest) ProtoMessage()
func (*DeleteDataPolicyRequest) ProtoReflect ¶
func (x *DeleteDataPolicyRequest) ProtoReflect() protoreflect.Message
func (*DeleteDataPolicyRequest) Reset ¶
func (x *DeleteDataPolicyRequest) Reset()
func (*DeleteDataPolicyRequest) String ¶
func (x *DeleteDataPolicyRequest) String() string
type GetDataPolicyRequest ¶
type GetDataPolicyRequest struct { // Required. Resource name of the requested data policy. Format is // `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for the GetDataPolicy method.
func (*GetDataPolicyRequest) Descriptor
deprecated
func (*GetDataPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDataPolicyRequest.ProtoReflect.Descriptor instead.
func (*GetDataPolicyRequest) GetName ¶
func (x *GetDataPolicyRequest) GetName() string
func (*GetDataPolicyRequest) ProtoMessage ¶
func (*GetDataPolicyRequest) ProtoMessage()
func (*GetDataPolicyRequest) ProtoReflect ¶
func (x *GetDataPolicyRequest) ProtoReflect() protoreflect.Message
func (*GetDataPolicyRequest) Reset ¶
func (x *GetDataPolicyRequest) Reset()
func (*GetDataPolicyRequest) String ¶
func (x *GetDataPolicyRequest) String() string
type ListDataPoliciesRequest ¶
type ListDataPoliciesRequest struct { // Required. Resource name of the project for which to list data policies. // Format is `projects/{project_number}/locations/{location_id}`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of data policies to return. Must be a value between 1 // and 1000. // If not set, defaults to 50. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The `nextPageToken` value returned from a previous list request, if any. If // not set, defaults to an empty string. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Filters the data policies by policy tags that they // are associated with. Currently filter only supports // "policy<span></span>_tag" based filtering and OR based predicates. Sample // filter can be "policy<span></span>_tag: // projects/1/locations/us/taxonomies/2/policyTags/3". // You may also use wildcard such as "policy<span></span>_tag: // projects/1/locations/us/taxonomies/2*". Please note that OR predicates // cannot be used with wildcard filters. Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
Request message for the ListDataPolicies method.
func (*ListDataPoliciesRequest) Descriptor
deprecated
func (*ListDataPoliciesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDataPoliciesRequest.ProtoReflect.Descriptor instead.
func (*ListDataPoliciesRequest) GetFilter ¶
func (x *ListDataPoliciesRequest) GetFilter() string
func (*ListDataPoliciesRequest) GetPageSize ¶
func (x *ListDataPoliciesRequest) GetPageSize() int32
func (*ListDataPoliciesRequest) GetPageToken ¶
func (x *ListDataPoliciesRequest) GetPageToken() string
func (*ListDataPoliciesRequest) GetParent ¶
func (x *ListDataPoliciesRequest) GetParent() string
func (*ListDataPoliciesRequest) ProtoMessage ¶
func (*ListDataPoliciesRequest) ProtoMessage()
func (*ListDataPoliciesRequest) ProtoReflect ¶
func (x *ListDataPoliciesRequest) ProtoReflect() protoreflect.Message
func (*ListDataPoliciesRequest) Reset ¶
func (x *ListDataPoliciesRequest) Reset()
func (*ListDataPoliciesRequest) String ¶
func (x *ListDataPoliciesRequest) String() string
type ListDataPoliciesResponse ¶
type ListDataPoliciesResponse struct { // Data policies that belong to the requested project. DataPolicies []*DataPolicy `protobuf:"bytes,1,rep,name=data_policies,json=dataPolicies,proto3" json:"data_policies,omitempty"` // Token used to retrieve the next page of results, or empty if there are no // more results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response message for the ListDataPolicies method.
func (*ListDataPoliciesResponse) Descriptor
deprecated
func (*ListDataPoliciesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListDataPoliciesResponse.ProtoReflect.Descriptor instead.
func (*ListDataPoliciesResponse) GetDataPolicies ¶
func (x *ListDataPoliciesResponse) GetDataPolicies() []*DataPolicy
func (*ListDataPoliciesResponse) GetNextPageToken ¶
func (x *ListDataPoliciesResponse) GetNextPageToken() string
func (*ListDataPoliciesResponse) ProtoMessage ¶
func (*ListDataPoliciesResponse) ProtoMessage()
func (*ListDataPoliciesResponse) ProtoReflect ¶
func (x *ListDataPoliciesResponse) ProtoReflect() protoreflect.Message
func (*ListDataPoliciesResponse) Reset ¶
func (x *ListDataPoliciesResponse) Reset()
func (*ListDataPoliciesResponse) String ¶
func (x *ListDataPoliciesResponse) String() string
type RenameDataPolicyRequest ¶
type RenameDataPolicyRequest struct { // Required. Resource name of the data policy to rename. The format is // `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. The new data policy id. NewDataPolicyId string `protobuf:"bytes,2,opt,name=new_data_policy_id,json=newDataPolicyId,proto3" json:"new_data_policy_id,omitempty"` // contains filtered or unexported fields }
Request message for the RenameDataPolicy method.
func (*RenameDataPolicyRequest) Descriptor
deprecated
func (*RenameDataPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use RenameDataPolicyRequest.ProtoReflect.Descriptor instead.
func (*RenameDataPolicyRequest) GetName ¶
func (x *RenameDataPolicyRequest) GetName() string
func (*RenameDataPolicyRequest) GetNewDataPolicyId ¶
func (x *RenameDataPolicyRequest) GetNewDataPolicyId() string
func (*RenameDataPolicyRequest) ProtoMessage ¶
func (*RenameDataPolicyRequest) ProtoMessage()
func (*RenameDataPolicyRequest) ProtoReflect ¶
func (x *RenameDataPolicyRequest) ProtoReflect() protoreflect.Message
func (*RenameDataPolicyRequest) Reset ¶
func (x *RenameDataPolicyRequest) Reset()
func (*RenameDataPolicyRequest) String ¶
func (x *RenameDataPolicyRequest) String() string
type UnimplementedDataPolicyServiceServer ¶
type UnimplementedDataPolicyServiceServer struct { }
UnimplementedDataPolicyServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedDataPolicyServiceServer) CreateDataPolicy ¶
func (*UnimplementedDataPolicyServiceServer) CreateDataPolicy(context.Context, *CreateDataPolicyRequest) (*DataPolicy, error)
func (*UnimplementedDataPolicyServiceServer) DeleteDataPolicy ¶
func (*UnimplementedDataPolicyServiceServer) DeleteDataPolicy(context.Context, *DeleteDataPolicyRequest) (*emptypb.Empty, error)
func (*UnimplementedDataPolicyServiceServer) GetDataPolicy ¶
func (*UnimplementedDataPolicyServiceServer) GetDataPolicy(context.Context, *GetDataPolicyRequest) (*DataPolicy, error)
func (*UnimplementedDataPolicyServiceServer) GetIamPolicy ¶
func (*UnimplementedDataPolicyServiceServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
func (*UnimplementedDataPolicyServiceServer) ListDataPolicies ¶
func (*UnimplementedDataPolicyServiceServer) ListDataPolicies(context.Context, *ListDataPoliciesRequest) (*ListDataPoliciesResponse, error)
func (*UnimplementedDataPolicyServiceServer) RenameDataPolicy ¶
func (*UnimplementedDataPolicyServiceServer) RenameDataPolicy(context.Context, *RenameDataPolicyRequest) (*DataPolicy, error)
func (*UnimplementedDataPolicyServiceServer) SetIamPolicy ¶
func (*UnimplementedDataPolicyServiceServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
func (*UnimplementedDataPolicyServiceServer) TestIamPermissions ¶
func (*UnimplementedDataPolicyServiceServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
func (*UnimplementedDataPolicyServiceServer) UpdateDataPolicy ¶
func (*UnimplementedDataPolicyServiceServer) UpdateDataPolicy(context.Context, *UpdateDataPolicyRequest) (*DataPolicy, error)
type UpdateDataPolicyRequest ¶
type UpdateDataPolicyRequest struct { // Required. Update the data policy's metadata. // // The target data policy is determined by the `name` field. // Other fields are updated to the specified values based on the field masks. DataPolicy *DataPolicy `protobuf:"bytes,1,opt,name=data_policy,json=dataPolicy,proto3" json:"data_policy,omitempty"` // The update mask applies to the resource. For the `FieldMask` definition, // see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask // If not set, defaults to all of the fields that are allowed to update. // // Updates to the `name` and `dataPolicyId` fields are not allowed. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Response message for the UpdateDataPolicy method.
func (*UpdateDataPolicyRequest) Descriptor
deprecated
func (*UpdateDataPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDataPolicyRequest.ProtoReflect.Descriptor instead.
func (*UpdateDataPolicyRequest) GetDataPolicy ¶
func (x *UpdateDataPolicyRequest) GetDataPolicy() *DataPolicy
func (*UpdateDataPolicyRequest) GetUpdateMask ¶
func (x *UpdateDataPolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateDataPolicyRequest) ProtoMessage ¶
func (*UpdateDataPolicyRequest) ProtoMessage()
func (*UpdateDataPolicyRequest) ProtoReflect ¶
func (x *UpdateDataPolicyRequest) ProtoReflect() protoreflect.Message
func (*UpdateDataPolicyRequest) Reset ¶
func (x *UpdateDataPolicyRequest) Reset()
func (*UpdateDataPolicyRequest) String ¶
func (x *UpdateDataPolicyRequest) String() string