Class: Google::Apis::CloudsearchV1::ItemStatus

Inherits:
Object
  • Object
show all
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

This contains item's status and any errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ItemStatus

Returns a new instance of ItemStatus.



12010
12011
12012
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12010

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

Instance Attribute Details

#codeString

Status code. Corresponds to the JSON property code

Returns:

  • (String)


11998
11999
12000
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11998

def code
  @code
end

#processing_errorsArray<Google::Apis::CloudsearchV1::ProcessingError>

Error details in case the item is in ERROR state. Corresponds to the JSON property processingErrors



12003
12004
12005
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12003

def processing_errors
  @processing_errors
end

#repository_errorsArray<Google::Apis::CloudsearchV1::RepositoryError>

Repository error reported by connector. Corresponds to the JSON property repositoryErrors



12008
12009
12010
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12008

def repository_errors
  @repository_errors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12015
12016
12017
12018
12019
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12015

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @processing_errors = args[:processing_errors] if args.key?(:processing_errors)
  @repository_errors = args[:repository_errors] if args.key?(:repository_errors)
end