Class: MicrosoftGraph::DeviceManagement::Reports::GetHistoricalReport::GetHistoricalReportPostRequestBody

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new getHistoricalReportPostRequestBody and sets the default values.



59
60
61
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 59

def initialize()
    @additional_data = Hash.new
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a get_historical_report_post_request_body

Raises:

  • (StandardError)


67
68
69
70
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 67

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return GetHistoricalReportPostRequestBody.new
end

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



44
45
46
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 44

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



52
53
54
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 52

def additional_data=(value)
    @additional_data = value
end

#filterObject

Gets the filter property value. The filter property

Returns:

  • a string



75
76
77
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 75

def filter
    return @filter
end

#filter=(value) ⇒ Object

Sets the filter property value. The filter property

Parameters:

  • value

    Value to set for the filter property.

Returns:

  • a void



83
84
85
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 83

def filter=(value)
    @filter = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 90

def get_field_deserializers()
    return {
        "filter" => lambda {|n| @filter = n.get_string_value() },
        "groupBy" => lambda {|n| @group_by = n.get_collection_of_primitive_values(String) },
        "name" => lambda {|n| @name = n.get_string_value() },
        "orderBy" => lambda {|n| @order_by = n.get_collection_of_primitive_values(String) },
        "search" => lambda {|n| @search = n.get_string_value() },
        "select" => lambda {|n| @select = n.get_collection_of_primitive_values(String) },
        "skip" => lambda {|n| @skip = n.get_number_value() },
        "top" => lambda {|n| @top = n.get_number_value() },
    }
end

#group_byObject

Gets the groupBy property value. The groupBy property

Returns:

  • a string



106
107
108
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 106

def group_by
    return @group_by
end

#group_by=(value) ⇒ Object

Sets the groupBy property value. The groupBy property

Parameters:

  • value

    Value to set for the groupBy property.

Returns:

  • a void



114
115
116
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 114

def group_by=(value)
    @group_by = value
end

#nameObject

Gets the name property value. The name property

Returns:

  • a string



121
122
123
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 121

def name
    return @name
end

#name=(value) ⇒ Object

Sets the name property value. The name property

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



129
130
131
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 129

def name=(value)
    @name = value
end

#order_byObject

Gets the orderBy property value. The orderBy property

Returns:

  • a string



136
137
138
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 136

def order_by
    return @order_by
end

#order_by=(value) ⇒ Object

Sets the orderBy property value. The orderBy property

Parameters:

  • value

    Value to set for the orderBy property.

Returns:

  • a void



144
145
146
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 144

def order_by=(value)
    @order_by = value
end

#searchObject

Gets the search property value. The search property

Returns:

  • a string



151
152
153
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 151

def search
    return @search
end

#search=(value) ⇒ Object

Sets the search property value. The search property

Parameters:

  • value

    Value to set for the search property.

Returns:

  • a void



159
160
161
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 159

def search=(value)
    @search = value
end

#selectObject

Gets the select property value. The select property

Returns:

  • a string



166
167
168
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 166

def select
    return @select
end

#select=(value) ⇒ Object

Sets the select property value. The select property

Parameters:

  • value

    Value to set for the select property.

Returns:

  • a void



174
175
176
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 174

def select=(value)
    @select = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


182
183
184
185
186
187
188
189
190
191
192
193
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 182

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("filter", @filter)
    writer.write_collection_of_primitive_values("groupBy", @group_by)
    writer.write_string_value("name", @name)
    writer.write_collection_of_primitive_values("orderBy", @order_by)
    writer.write_string_value("search", @search)
    writer.write_collection_of_primitive_values("select", @select)
    writer.write_number_value("skip", @skip)
    writer.write_number_value("top", @top)
    writer.write_additional_data(@additional_data)
end

#skipObject

Gets the skip property value. The skip property

Returns:

  • a integer



198
199
200
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 198

def skip
    return @skip
end

#skip=(value) ⇒ Object

Sets the skip property value. The skip property

Parameters:

  • value

    Value to set for the skip property.

Returns:

  • a void



206
207
208
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 206

def skip=(value)
    @skip = value
end

#topObject

Gets the top property value. The top property

Returns:

  • a integer



213
214
215
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 213

def top
    return @top
end

#top=(value) ⇒ Object

Sets the top property value. The top property

Parameters:

  • value

    Value to set for the top property.

Returns:

  • a void



221
222
223
# File 'lib/device_management/reports/get_historical_report/get_historical_report_post_request_body.rb', line 221

def top=(value)
    @top = value
end