Class: Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateContentPolicyRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb

Overview

Request message for UpdateContentPolicy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2UpdateContentPolicyRequest

Returns a new instance of GooglePrivacyDlpV2UpdateContentPolicyRequest.



12228
12229
12230
# File 'lib/google/apis/dlp_v2/classes.rb', line 12228

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#content_policyGoogle::Apis::DlpV2::GooglePrivacyDlpV2ContentPolicy

A policy to apply to content based on its inspection findings. Corresponds to the JSON property contentPolicy



12221
12222
12223
# File 'lib/google/apis/dlp_v2/classes.rb', line 12221

def content_policy
  @content_policy
end

#update_maskString

Optional. Mask to control which fields get updated. Corresponds to the JSON property updateMask

Returns:

  • (String)


12226
12227
12228
# File 'lib/google/apis/dlp_v2/classes.rb', line 12226

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12233
12234
12235
12236
# File 'lib/google/apis/dlp_v2/classes.rb', line 12233

def update!(**args)
  @content_policy = args[:content_policy] if args.key?(:content_policy)
  @update_mask = args[:update_mask] if args.key?(:update_mask)
end