Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::UpdateContentPolicyRequest.
Request message for UpdateContentPolicy.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#content_policy
def content_policy() -> ::Google::Cloud::Dlp::V2::ContentPolicy
Returns
- (::Google::Cloud::Dlp::V2::ContentPolicy) — Required. The content_policy with new values for the relevant fields.
#content_policy=
def content_policy=(value) -> ::Google::Cloud::Dlp::V2::ContentPolicy
Parameter
- value (::Google::Cloud::Dlp::V2::ContentPolicy) — Required. The content_policy with new values for the relevant fields.
Returns
- (::Google::Cloud::Dlp::V2::ContentPolicy) — Required. The content_policy with new values for the relevant fields.
#name
def name() -> ::String
Returns
-
(::String) — Required. Resource name in the format:
projects/{project}/locations/{location}/contentPolicies/{content_policy}.
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — Required. Resource name in the format:
projects/{project}/locations/{location}/contentPolicies/{content_policy}.
Returns
-
(::String) — Required. Resource name in the format:
projects/{project}/locations/{location}/contentPolicies/{content_policy}.
#update_mask
def update_mask() -> ::Google::Protobuf::FieldMask
Returns
- (::Google::Protobuf::FieldMask) — Optional. Mask to control which fields get updated.
#update_mask=
def update_mask=(value) -> ::Google::Protobuf::FieldMask
Parameter
- value (::Google::Protobuf::FieldMask) — Optional. Mask to control which fields get updated.
Returns
- (::Google::Protobuf::FieldMask) — Optional. Mask to control which fields get updated.