Class: Google::Apis::CloudsearchV1::QueryCountByStatus

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryCountByStatus

Returns a new instance of QueryCountByStatus.



6030
6031
6032
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6030

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

Instance Attribute Details

#countFixnum

Corresponds to the JSON property count

Returns:

  • (Fixnum)


6023
6024
6025
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6023

def count
  @count
end

#status_codeFixnum

This represents the http status code. Corresponds to the JSON property statusCode

Returns:

  • (Fixnum)


6028
6029
6030
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6028

def status_code
  @status_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6035
6036
6037
6038
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6035

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