Class: Google::Apis::CloudsearchV1::SortOptions
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SortOptions
- 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
-
#operator_name ⇒ String
Name of the operator corresponding to the field to sort on.
-
#sort_order ⇒ String
Ascending is the default sort order Corresponds to the JSON property
sortOrder
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SortOptions
constructor
A new instance of SortOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ SortOptions
Returns a new instance of SortOptions
3930 3931 3932 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3930 def initialize(**args) update!(**args) end |
Instance Attribute Details
#operator_name ⇒ String
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
3923 3924 3925 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3923 def operator_name @operator_name end |
#sort_order ⇒ String
Ascending is the default sort order
Corresponds to the JSON property sortOrder
3928 3929 3930 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3928 def sort_order @sort_order end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3935 3936 3937 3938 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3935 def update!(**args) @operator_name = args[:operator_name] if args.key?(:operator_name) @sort_order = args[:sort_order] if args.key?(:sort_order) end |