Class: MicrosoftGraph::DeviceAppManagement::MobileApps::GraphManagedMobileLobApp::Count::CountRequestBuilder::CountRequestBuilderGetQueryParameters

Inherits:
Object
  • Object
show all
Defined in:
lib/device_app_management/mobile_apps/graph_managed_mobile_lob_app/count/count_request_builder.rb

Overview

Get the number of the resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filterObject

Filter items by property values



66
67
68
# File 'lib/device_app_management/mobile_apps/graph_managed_mobile_lob_app/count/count_request_builder.rb', line 66

def filter
  @filter
end

#searchObject

Search items by search phrases



69
70
71
# File 'lib/device_app_management/mobile_apps/graph_managed_mobile_lob_app/count/count_request_builder.rb', line 69

def search
  @search
end

Instance Method Details

#get_query_parameter(original_name) ⇒ Object

Maps the query parameters names to their encoded names for the URI template parsing.

Parameters:

  • original_name

    The original query parameter name in the class.

Returns:

  • a string

Raises:

  • (StandardError)


75
76
77
78
79
80
81
82
83
84
85
# File 'lib/device_app_management/mobile_apps/graph_managed_mobile_lob_app/count/count_request_builder.rb', line 75

def get_query_parameter(original_name)
    raise StandardError, 'original_name cannot be null' if original_name.nil?
    case original_name
        when "filter"
            return "%24filter"
        when "search"
            return "%24search"
        else
            return original_name
    end
end