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.



16383
16384
16385
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16383

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

Instance Attribute Details

#countFixnum

Corresponds to the JSON property count

Returns:

  • (Fixnum)


16376
16377
16378
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16376

def count
  @count
end

#status_codeFixnum

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

Returns:

  • (Fixnum)


16381
16382
16383
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16381

def status_code
  @status_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16388
16389
16390
16391
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16388

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