Class: MicrosoftGraph::DeviceManagement::Reports::GetSettingNonComplianceReport::GetSettingNonComplianceReportPostRequestBody

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new getSettingNonComplianceReportPostRequestBody and sets the default values.



62
63
64
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 62

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_setting_non_compliance_report_post_request_body

Raises:

  • (StandardError)


70
71
72
73
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 70

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return GetSettingNonComplianceReportPostRequestBody.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



47
48
49
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 47

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



55
56
57
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 55

def additional_data=(value)
    @additional_data = value
end

#filterObject

Gets the filter property value. The filter property

Returns:

  • a string



78
79
80
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 78

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



86
87
88
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 86

def filter=(value)
    @filter = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 93

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) },
        "sessionId" => lambda {|n| @session_id = n.get_string_value() },
        "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



110
111
112
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 110

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



118
119
120
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 118

def group_by=(value)
    @group_by = value
end

#nameObject

Gets the name property value. The name property

Returns:

  • a string



125
126
127
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 125

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



133
134
135
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 133

def name=(value)
    @name = value
end

#order_byObject

Gets the orderBy property value. The orderBy property

Returns:

  • a string



140
141
142
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 140

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



148
149
150
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 148

def order_by=(value)
    @order_by = value
end

#searchObject

Gets the search property value. The search property

Returns:

  • a string



155
156
157
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 155

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



163
164
165
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 163

def search=(value)
    @search = value
end

#selectObject

Gets the select property value. The select property

Returns:

  • a string



170
171
172
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 170

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



178
179
180
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 178

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)


186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 186

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_string_value("sessionId", @session_id)
    writer.write_number_value("skip", @skip)
    writer.write_number_value("top", @top)
    writer.write_additional_data(@additional_data)
end

#session_idObject

Gets the sessionId property value. The sessionId property

Returns:

  • a string



203
204
205
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 203

def session_id
    return @session_id
end

#session_id=(value) ⇒ Object

Sets the sessionId property value. The sessionId property

Parameters:

  • value

    Value to set for the sessionId property.

Returns:

  • a void



211
212
213
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 211

def session_id=(value)
    @session_id = value
end

#skipObject

Gets the skip property value. The skip property

Returns:

  • a integer



218
219
220
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 218

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



226
227
228
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 226

def skip=(value)
    @skip = value
end

#topObject

Gets the top property value. The top property

Returns:

  • a integer



233
234
235
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 233

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



241
242
243
# File 'lib/device_management/reports/get_setting_non_compliance_report/get_setting_non_compliance_report_post_request_body.rb', line 241

def top=(value)
    @top = value
end