Class: Google::Apis::CloudsearchV1::SortOptions

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SortOptions

Returns a new instance of SortOptions



3928
3929
3930
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3928

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

Instance Attribute Details

#operator_nameString

Name of the operator corresponding to the field to sort on. The corresponding property must be marked as sortable. Corresponds to the JSON property operatorName

Returns:

  • (String)


3921
3922
3923
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3921

def operator_name
  @operator_name
end

#sort_orderString

Ascending is the default sort order Corresponds to the JSON property sortOrder

Returns:

  • (String)


3926
3927
3928
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3926

def sort_order
  @sort_order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3933
3934
3935
3936
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3933

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