Class: MicrosoftGraph::Models::Quota
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::Quota
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/quota.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#deleted ⇒ Object
Gets the deleted property value.
-
#deleted=(value) ⇒ Object
Sets the deleted property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new quota and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#remaining ⇒ Object
Gets the remaining property value.
-
#remaining=(value) ⇒ Object
Sets the remaining property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#state ⇒ Object
Gets the state property value.
-
#state=(value) ⇒ Object
Sets the state property value.
-
#storage_plan_information ⇒ Object
Gets the storagePlanInformation property value.
-
#storage_plan_information=(value) ⇒ Object
Sets the storagePlanInformation property value.
-
#total ⇒ Object
Gets the total property value.
-
#total=(value) ⇒ Object
Sets the total property value.
-
#used ⇒ Object
Gets the used property value.
-
#used=(value) ⇒ Object
Sets the used property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new quota and sets the default values.
52 53 54 |
# File 'lib/models/quota.rb', line 52 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
60 61 62 63 |
# File 'lib/models/quota.rb', line 60 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Quota.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
37 38 39 |
# File 'lib/models/quota.rb', line 37 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.
45 46 47 |
# File 'lib/models/quota.rb', line 45 def additional_data=(value) @additional_data = value end |
#deleted ⇒ Object
Gets the deleted property value. Total space consumed by files in the recycle bin, in bytes. Read-only.
68 69 70 |
# File 'lib/models/quota.rb', line 68 def deleted return @deleted end |
#deleted=(value) ⇒ Object
Sets the deleted property value. Total space consumed by files in the recycle bin, in bytes. Read-only.
76 77 78 |
# File 'lib/models/quota.rb', line 76 def deleted=(value) @deleted = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/models/quota.rb', line 83 def get_field_deserializers() return { "deleted" => lambda {|n| @deleted = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "remaining" => lambda {|n| @remaining = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, "state" => lambda {|n| @state = n.get_string_value() }, "storagePlanInformation" => lambda {|n| @storage_plan_information = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::StoragePlanInformation.create_from_discriminator_value(pn) }) }, "total" => lambda {|n| @total = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, "used" => lambda {|n| @used = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
98 99 100 |
# File 'lib/models/quota.rb', line 98 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
106 107 108 |
# File 'lib/models/quota.rb', line 106 def odata_type=(value) @odata_type = value end |
#remaining ⇒ Object
Gets the remaining property value. Total space remaining before reaching the quota limit, in bytes. Read-only.
113 114 115 |
# File 'lib/models/quota.rb', line 113 def remaining return @remaining end |
#remaining=(value) ⇒ Object
Sets the remaining property value. Total space remaining before reaching the quota limit, in bytes. Read-only.
121 122 123 |
# File 'lib/models/quota.rb', line 121 def remaining=(value) @remaining = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/models/quota.rb', line 129 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("deleted", @deleted) writer.write_string_value("@odata.type", @odata_type) writer.write_object_value("remaining", @remaining) writer.write_string_value("state", @state) writer.write_object_value("storagePlanInformation", @storage_plan_information) writer.write_object_value("total", @total) writer.write_object_value("used", @used) writer.write_additional_data(@additional_data) end |
#state ⇒ Object
Gets the state property value. Enumeration value that indicates the state of the storage space. Read-only.
144 145 146 |
# File 'lib/models/quota.rb', line 144 def state return @state end |
#state=(value) ⇒ Object
Sets the state property value. Enumeration value that indicates the state of the storage space. Read-only.
152 153 154 |
# File 'lib/models/quota.rb', line 152 def state=(value) @state = value end |
#storage_plan_information ⇒ Object
Gets the storagePlanInformation property value. Information about the drive’s storage quota plans. Only in Personal OneDrive.
159 160 161 |
# File 'lib/models/quota.rb', line 159 def storage_plan_information return @storage_plan_information end |
#storage_plan_information=(value) ⇒ Object
Sets the storagePlanInformation property value. Information about the drive’s storage quota plans. Only in Personal OneDrive.
167 168 169 |
# File 'lib/models/quota.rb', line 167 def storage_plan_information=(value) @storage_plan_information = value end |
#total ⇒ Object
Gets the total property value. Total allowed storage space, in bytes. Read-only.
174 175 176 |
# File 'lib/models/quota.rb', line 174 def total return @total end |
#total=(value) ⇒ Object
Sets the total property value. Total allowed storage space, in bytes. Read-only.
182 183 184 |
# File 'lib/models/quota.rb', line 182 def total=(value) @total = value end |
#used ⇒ Object
Gets the used property value. Total space used, in bytes. Read-only.
189 190 191 |
# File 'lib/models/quota.rb', line 189 def used return @used end |
#used=(value) ⇒ Object
Sets the used property value. Total space used, in bytes. Read-only.
197 198 199 |
# File 'lib/models/quota.rb', line 197 def used=(value) @used = value end |