Class: Google::Apis::CloudsearchV1::PushItem
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::PushItem
- 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 an item to be pushed to the indexing queue.
Instance Attribute Summary collapse
-
#content_hash ⇒ String
Content hash of the item according to the repository.
-
#metadata_hash ⇒ String
Metadata hash of the item according to the repository.
-
#payload ⇒ String
Provides additional document state information for the connector, such as an alternate repository ID and other metadata.
-
#queue ⇒ String
Queue to which this item belongs to.
-
#repository_error ⇒ Google::Apis::CloudsearchV1::RepositoryError
Errors when the connector is communicating to the source repository.
-
#structured_data_hash ⇒ String
Structured data hash of the item according to the repository.
-
#type ⇒ String
The type of the push operation that defines the push behavior.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PushItem
constructor
A new instance of PushItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PushItem
Returns a new instance of PushItem.
3199 3200 3201 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3199 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_hash ⇒ String
Content hash of the item according to the repository. If specified, this is
used to determine how to modify this item's status. Setting this field and the
type field results in argument error. The maximum length is 2048 characters.
Corresponds to the JSON property contentHash
3159 3160 3161 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3159 def content_hash @content_hash end |
#metadata_hash ⇒ String
Metadata hash of the item according to the repository. If specified, this is
used to determine how to modify this item's status. Setting this field and the
type field results in argument error. The maximum length is 2048 characters.
Corresponds to the JSON property metadataHash
3166 3167 3168 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3166 def @metadata_hash end |
#payload ⇒ String
Provides additional document state information for the connector, such as an
alternate repository ID and other metadata. The maximum length is 8192 bytes.
Corresponds to the JSON property payload
NOTE: Values are automatically base64 encoded/decoded in the client library.
3173 3174 3175 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3173 def payload @payload end |
#queue ⇒ String
Queue to which this item belongs to. The default queue is chosen if this field
is not specified. The maximum length is 512 characters.
Corresponds to the JSON property queue
3179 3180 3181 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3179 def queue @queue end |
#repository_error ⇒ Google::Apis::CloudsearchV1::RepositoryError
Errors when the connector is communicating to the source repository.
Corresponds to the JSON property repositoryError
3184 3185 3186 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3184 def repository_error @repository_error end |
#structured_data_hash ⇒ String
Structured data hash of the item according to the repository. If specified,
this is used to determine how to modify this item's status. Setting this field
and the type field results in argument error. The maximum length is 2048
characters.
Corresponds to the JSON property structuredDataHash
3192 3193 3194 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3192 def structured_data_hash @structured_data_hash end |
#type ⇒ String
The type of the push operation that defines the push behavior.
Corresponds to the JSON property type
3197 3198 3199 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3197 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3204 3205 3206 3207 3208 3209 3210 3211 3212 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3204 def update!(**args) @content_hash = args[:content_hash] if args.key?(:content_hash) @metadata_hash = args[:metadata_hash] if args.key?(:metadata_hash) @payload = args[:payload] if args.key?(:payload) @queue = args[:queue] if args.key?(:queue) @repository_error = args[:repository_error] if args.key?(:repository_error) @structured_data_hash = args[:structured_data_hash] if args.key?(:structured_data_hash) @type = args[:type] if args.key?(:type) end |