Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest

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

Overview

Request message for DocumentService.PurgeDocuments method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest

Returns a new instance of GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest.



10442
10443
10444
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10442

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

Instance Attribute Details

#filterString

Required. Filter matching documents to purge. Only currently supported value is * (all items). Corresponds to the JSON property filter

Returns:

  • (String)


10433
10434
10435
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10433

def filter
  @filter
end

#forceBoolean Also known as: force?

Actually performs the purge. If force is set to false, return the expected purge count without deleting any documents. Corresponds to the JSON property force

Returns:

  • (Boolean)


10439
10440
10441
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10439

def force
  @force
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10447
10448
10449
10450
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10447

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