Class: Google::Apis::CloudsearchV1::Item
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Item
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Represents a single object that is an item in the search index, such as a file, folder, or a database record.
Instance Attribute Summary collapse
-
#acl ⇒ Google::Apis::CloudsearchV1::ItemAcl
Access control list information for the item.
-
#content ⇒ Google::Apis::CloudsearchV1::ItemContent
Content of an item to be indexed and surfaced by Cloud Search.
-
#item_type ⇒ String
Type for this item.
-
#metadata ⇒ Google::Apis::CloudsearchV1::ItemMetadata
Available metadata fields for the item.
-
#name ⇒ String
Name of the Item.
-
#payload ⇒ String
Additional state connector can store for this item.
-
#queue ⇒ String
Queue this item belongs to.
-
#status ⇒ Google::Apis::CloudsearchV1::ItemStatus
This contains item's status and any errors.
-
#structured_data ⇒ Google::Apis::CloudsearchV1::ItemStructuredData
Available structured data fields for the item.
-
#version ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Item
constructor
A new instance of Item.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Item
Returns a new instance of Item.
2419 2420 2421 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2419 def initialize(**args) update!(**args) end |
Instance Attribute Details
#acl ⇒ Google::Apis::CloudsearchV1::ItemAcl
Access control list information for the item. For more information see Map
ACLs.
Corresponds to the JSON property acl
2359 2360 2361 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2359 def acl @acl end |
#content ⇒ Google::Apis::CloudsearchV1::ItemContent
Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8
encoded strings are allowed as inlineContent. If the content is uploaded and
not binary, it must be UTF-8 encoded.
Corresponds to the JSON property content
2366 2367 2368 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2366 def content @content end |
#item_type ⇒ String
Type for this item.
Corresponds to the JSON property itemType
2371 2372 2373 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2371 def item_type @item_type end |
#metadata ⇒ Google::Apis::CloudsearchV1::ItemMetadata
Available metadata fields for the item.
Corresponds to the JSON property metadata
2376 2377 2378 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2376 def @metadata end |
#name ⇒ String
Name of the Item. Format: datasources/source_id/items/item_id This is a
required field. The maximum length is 1536 characters.
Corresponds to the JSON property name
2382 2383 2384 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2382 def name @name end |
#payload ⇒ String
Additional state connector can store for this item. The maximum length is
10000 bytes.
Corresponds to the JSON property payload
NOTE: Values are automatically base64 encoded/decoded in the client library.
2389 2390 2391 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2389 def payload @payload end |
#queue ⇒ String
Queue this item belongs to. The maximum length is 100 characters.
Corresponds to the JSON property queue
2394 2395 2396 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2394 def queue @queue end |
#status ⇒ Google::Apis::CloudsearchV1::ItemStatus
This contains item's status and any errors.
Corresponds to the JSON property status
2399 2400 2401 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2399 def status @status end |
#structured_data ⇒ Google::Apis::CloudsearchV1::ItemStructuredData
Available structured data fields for the item.
Corresponds to the JSON property structuredData
2404 2405 2406 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2404 def structured_data @structured_data end |
#version ⇒ String
Required. The indexing system stores the version from the datasource as a byte
string and compares the Item version in the index to the version of the queued
Item using lexical ordering. Cloud Search Indexing won't index or delete any
queued item with a version value that is less than or equal to the version of
the currently indexed item. The maximum length for this field is 1024 bytes.
For information on how item version affects the deletion process, refer to
Handle revisions after manual deletes.
Corresponds to the JSON property version
NOTE: Values are automatically base64 encoded/decoded in the client library.
2417 2418 2419 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2417 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2424 def update!(**args) @acl = args[:acl] if args.key?(:acl) @content = args[:content] if args.key?(:content) @item_type = args[:item_type] if args.key?(:item_type) @metadata = args[:metadata] if args.key?(:metadata) @name = args[:name] if args.key?(:name) @payload = args[:payload] if args.key?(:payload) @queue = args[:queue] if args.key?(:queue) @status = args[:status] if args.key?(:status) @structured_data = args[:structured_data] if args.key?(:structured_data) @version = args[:version] if args.key?(:version) end |