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- (::Google::Cloud::Dlp::V2::ContentPolicy) — Required. The content_policy resource.
#content_policy=
def content_policy=(value) -> ::Google::Cloud::Dlp::V2::ContentPolicy- value (::Google::Cloud::Dlp::V2::ContentPolicy) — Required. The content_policy resource.
- (::Google::Cloud::Dlp::V2::ContentPolicy) — Required. The content_policy resource.
#content_policy_id
def content_policy_id() -> ::String-
(::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-
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.
-
(::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-
(::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}
- Projects scope:
#parent=
def parent=(value) -> ::String-
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}
- Projects scope:
-
(::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}
- Projects scope: