Cloud Data Loss Prevention (DLP) V2 API - Class Google::Cloud::Dlp::V2::CreateContentPolicyRequest (v1.19.0)

Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::CreateContentPolicyRequest.

Request message for CreateContentPolicy.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#content_policy

def content_policy() -> ::Google::Cloud::Dlp::V2::ContentPolicy
Returns

#content_policy=

def content_policy=(value) -> ::Google::Cloud::Dlp::V2::ContentPolicy
Parameter
Returns

#content_policy_id

def content_policy_id() -> ::String
Returns
  • (::String) — Optional. The content policy ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. If empty, the system will generate a random id.

#content_policy_id=

def content_policy_id=(value) -> ::String
Parameter
  • value (::String) — Optional. The content policy ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. If empty, the system will generate a random id.
Returns
  • (::String) — Optional. The content policy ID can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. If empty, the system will generate a random id.

#parent

def parent() -> ::String
Returns
  • (::String) —

    Required. Parent resource name.

    The format of this value varies depending on the scope of the request (project):

    • Projects scope: projects/{project_id}/locations/{location_id}

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) —

    Required. Parent resource name.

    The format of this value varies depending on the scope of the request (project):

    • Projects scope: projects/{project_id}/locations/{location_id}
Returns
  • (::String) —

    Required. Parent resource name.

    The format of this value varies depending on the scope of the request (project):

    • Projects scope: projects/{project_id}/locations/{location_id}