Class: Google::Apis::CloudsearchV1::IndexItemRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ IndexItemRequest

Returns a new instance of IndexItemRequest.



1536
1537
1538
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1536

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

Instance Attribute Details

#connector_nameString

Name of connector making this call.
Format: datasources/source_id/connectors/ID Corresponds to the JSON property connectorName

Returns:

  • (String)


1513
1514
1515
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1513

def connector_name
  @connector_name
end

#debug_optionsGoogle::Apis::CloudsearchV1::DebugOptions

Shared request debug options for all cloudsearch RPC methods. Corresponds to the JSON property debugOptions



1518
1519
1520
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1518

def debug_options
  @debug_options
end

#index_item_optionsGoogle::Apis::CloudsearchV1::IndexItemOptions

Corresponds to the JSON property indexItemOptions



1523
1524
1525
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1523

def index_item_options
  @index_item_options
end

#itemGoogle::Apis::CloudsearchV1::Item

Represents a single object that is an item in the search index, such as a file, folder, or a database record. Corresponds to the JSON property item



1529
1530
1531
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1529

def item
  @item
end

#modeString

Required. The RequestMode for this request. Corresponds to the JSON property mode

Returns:

  • (String)


1534
1535
1536
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1534

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1541
1542
1543
1544
1545
1546
1547
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1541

def update!(**args)
  @connector_name = args[:connector_name] if args.key?(:connector_name)
  @debug_options = args[:debug_options] if args.key?(:debug_options)
  @index_item_options = args[:index_item_options] if args.key?(:index_item_options)
  @item = args[:item] if args.key?(:item)
  @mode = args[:mode] if args.key?(:mode)
end