Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest

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

Overview

Request message for DocumentService.PurgeDocuments method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest

Returns a new instance of GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest.



1367
1368
1369
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1367

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)


1358
1359
1360
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1358

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)


1364
1365
1366
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1364

def force
  @force
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1372
1373
1374
1375
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1372

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