Class: MicrosoftGraph::Models::MobileAppContentFile
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/mobile_app_content_file.rb
Overview
Contains properties for a single installer file that is associated with a given mobileAppContent version.
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
-
#azure_storage_uri ⇒ Object
Gets the azureStorageUri property value.
-
#azure_storage_uri=(value) ⇒ Object
Sets the azureStorageUri property value.
-
#azure_storage_uri_expiration_date_time ⇒ Object
Gets the azureStorageUriExpirationDateTime property value.
-
#azure_storage_uri_expiration_date_time=(value) ⇒ Object
Sets the azureStorageUriExpirationDateTime property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new mobileAppContentFile and sets the default values.
-
#is_committed ⇒ Object
Gets the isCommitted property value.
-
#is_committed=(value) ⇒ Object
Sets the isCommitted property value.
-
#manifest ⇒ Object
Gets the manifest property value.
-
#manifest=(value) ⇒ Object
Sets the manifest property value.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#size ⇒ Object
Gets the size property value.
-
#size=(value) ⇒ Object
Sets the size property value.
-
#size_encrypted ⇒ Object
Gets the sizeEncrypted property value.
-
#size_encrypted=(value) ⇒ Object
Sets the sizeEncrypted property value.
-
#upload_state ⇒ Object
Gets the uploadState property value.
-
#upload_state=(value) ⇒ Object
Sets the uploadState property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new mobileAppContentFile and sets the default values.
73 74 75 |
# File 'lib/models/mobile_app_content_file.rb', line 73 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
96 97 98 99 |
# File 'lib/models/mobile_app_content_file.rb', line 96 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return MobileAppContentFile.new end |
Instance Method Details
#azure_storage_uri ⇒ Object
Gets the azureStorageUri property value. The Azure Storage URI.
43 44 45 |
# File 'lib/models/mobile_app_content_file.rb', line 43 def azure_storage_uri return @azure_storage_uri end |
#azure_storage_uri=(value) ⇒ Object
Sets the azureStorageUri property value. The Azure Storage URI.
51 52 53 |
# File 'lib/models/mobile_app_content_file.rb', line 51 def azure_storage_uri=(value) @azure_storage_uri = value end |
#azure_storage_uri_expiration_date_time ⇒ Object
Gets the azureStorageUriExpirationDateTime property value. The time the Azure storage Uri expires.
58 59 60 |
# File 'lib/models/mobile_app_content_file.rb', line 58 def azure_storage_uri_expiration_date_time return @azure_storage_uri_expiration_date_time end |
#azure_storage_uri_expiration_date_time=(value) ⇒ Object
Sets the azureStorageUriExpirationDateTime property value. The time the Azure storage Uri expires.
66 67 68 |
# File 'lib/models/mobile_app_content_file.rb', line 66 def azure_storage_uri_expiration_date_time=(value) @azure_storage_uri_expiration_date_time = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. The time the file was created.
80 81 82 |
# File 'lib/models/mobile_app_content_file.rb', line 80 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The time the file was created.
88 89 90 |
# File 'lib/models/mobile_app_content_file.rb', line 88 def created_date_time=(value) @created_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/models/mobile_app_content_file.rb', line 104 def get_field_deserializers() return super.merge({ "azureStorageUri" => lambda {|n| @azure_storage_uri = n.get_string_value() }, "azureStorageUriExpirationDateTime" => lambda {|n| @azure_storage_uri_expiration_date_time = n.get_date_time_value() }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "isCommitted" => lambda {|n| @is_committed = n.get_boolean_value() }, "manifest" => lambda {|n| @manifest = n.get_object_value(lambda {|pn| Base64url.create_from_discriminator_value(pn) }) }, "name" => lambda {|n| @name = n.get_string_value() }, "size" => lambda {|n| @size = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, "sizeEncrypted" => lambda {|n| @size_encrypted = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, "uploadState" => lambda {|n| @upload_state = n.get_enum_value(MicrosoftGraph::Models::MobileAppContentFileUploadState) }, }) end |
#is_committed ⇒ Object
Gets the isCommitted property value. A value indicating whether the file is committed.
121 122 123 |
# File 'lib/models/mobile_app_content_file.rb', line 121 def is_committed return @is_committed end |
#is_committed=(value) ⇒ Object
Sets the isCommitted property value. A value indicating whether the file is committed.
129 130 131 |
# File 'lib/models/mobile_app_content_file.rb', line 129 def is_committed=(value) @is_committed = value end |
#manifest ⇒ Object
Gets the manifest property value. The manifest information.
136 137 138 |
# File 'lib/models/mobile_app_content_file.rb', line 136 def manifest return @manifest end |
#manifest=(value) ⇒ Object
Sets the manifest property value. The manifest information.
144 145 146 |
# File 'lib/models/mobile_app_content_file.rb', line 144 def manifest=(value) @manifest = value end |
#name ⇒ Object
Gets the name property value. the file name.
151 152 153 |
# File 'lib/models/mobile_app_content_file.rb', line 151 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. the file name.
159 160 161 |
# File 'lib/models/mobile_app_content_file.rb', line 159 def name=(value) @name = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/models/mobile_app_content_file.rb', line 167 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("azureStorageUri", @azure_storage_uri) writer.write_date_time_value("azureStorageUriExpirationDateTime", @azure_storage_uri_expiration_date_time) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_boolean_value("isCommitted", @is_committed) writer.write_object_value("manifest", @manifest) writer.write_string_value("name", @name) writer.write_object_value("size", @size) writer.write_object_value("sizeEncrypted", @size_encrypted) writer.write_enum_value("uploadState", @upload_state) end |
#size ⇒ Object
Gets the size property value. The size of the file prior to encryption.
184 185 186 |
# File 'lib/models/mobile_app_content_file.rb', line 184 def size return @size end |
#size=(value) ⇒ Object
Sets the size property value. The size of the file prior to encryption.
192 193 194 |
# File 'lib/models/mobile_app_content_file.rb', line 192 def size=(value) @size = value end |
#size_encrypted ⇒ Object
Gets the sizeEncrypted property value. The size of the file after encryption.
199 200 201 |
# File 'lib/models/mobile_app_content_file.rb', line 199 def size_encrypted return @size_encrypted end |
#size_encrypted=(value) ⇒ Object
Sets the sizeEncrypted property value. The size of the file after encryption.
207 208 209 |
# File 'lib/models/mobile_app_content_file.rb', line 207 def size_encrypted=(value) @size_encrypted = value end |
#upload_state ⇒ Object
Gets the uploadState property value. Contains properties for upload request states.
214 215 216 |
# File 'lib/models/mobile_app_content_file.rb', line 214 def upload_state return @upload_state end |
#upload_state=(value) ⇒ Object
Sets the uploadState property value. Contains properties for upload request states.
222 223 224 |
# File 'lib/models/mobile_app_content_file.rb', line 222 def upload_state=(value) @upload_state = value end |