Class: MicrosoftGraph::DeviceManagement::Reports::GetCachedReport::GetCachedReportPostRequestBody

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new getCachedReportPostRequestBody and sets the default values.



56
57
58
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 56

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_cached_report_post_request_body

Raises:

  • (StandardError)


64
65
66
67
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 64

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



41
42
43
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 41

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



49
50
51
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 49

def additional_data=(value)
    @additional_data = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



72
73
74
75
76
77
78
79
80
81
82
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 72

def get_field_deserializers()
    return {
        "groupBy" => lambda {|n| @group_by = n.get_collection_of_primitive_values(String) },
        "id" => lambda {|n| @id = 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



87
88
89
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 87

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



95
96
97
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 95

def group_by=(value)
    @group_by = value
end

#idObject

Gets the id property value. The id property

Returns:

  • a string



102
103
104
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 102

def id
    return @id
end

#id=(value) ⇒ Object

Sets the id property value. The id property

Parameters:

  • value

    Value to set for the id property.

Returns:

  • a void



110
111
112
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 110

def id=(value)
    @id = value
end

#order_byObject

Gets the orderBy property value. The orderBy property

Returns:

  • a string



117
118
119
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 117

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



125
126
127
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 125

def order_by=(value)
    @order_by = value
end

#searchObject

Gets the search property value. The search property

Returns:

  • a string



132
133
134
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 132

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



140
141
142
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 140

def search=(value)
    @search = value
end

#selectObject

Gets the select property value. The select property

Returns:

  • a string



147
148
149
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 147

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



155
156
157
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 155

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)


163
164
165
166
167
168
169
170
171
172
173
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 163

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_collection_of_primitive_values("groupBy", @group_by)
    writer.write_string_value("id", @id)
    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



178
179
180
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 178

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



186
187
188
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 186

def skip=(value)
    @skip = value
end

#topObject

Gets the top property value. The top property

Returns:

  • a integer



193
194
195
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 193

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



201
202
203
# File 'lib/device_management/reports/get_cached_report/get_cached_report_post_request_body.rb', line 201

def top=(value)
    @top = value
end