Class: MicrosoftGraph::Models::MobileAppContentFile

Inherits:
Entity
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a mobile_app_content_file

Raises:

  • (StandardError)


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_uriObject

Gets the azureStorageUri property value. The Azure Storage URI.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the azureStorageUri property.

Returns:

  • a void



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_timeObject

Gets the azureStorageUriExpirationDateTime property value. The time the Azure storage Uri expires.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the azureStorageUriExpirationDateTime property.

Returns:

  • a void



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_timeObject

Gets the createdDateTime property value. The time the file was created.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_committedObject

Gets the isCommitted property value. A value indicating whether the file is committed.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the isCommitted property.

Returns:

  • a void



129
130
131
# File 'lib/models/mobile_app_content_file.rb', line 129

def is_committed=(value)
    @is_committed = value
end

#manifestObject

Gets the manifest property value. The manifest information.

Returns:

  • a base64url



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.

Parameters:

  • value

    Value to set for the manifest property.

Returns:

  • a void



144
145
146
# File 'lib/models/mobile_app_content_file.rb', line 144

def manifest=(value)
    @manifest = value
end

#nameObject

Gets the name property value. the file name.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#sizeObject

Gets the size property value. The size of the file prior to encryption.

Returns:

  • a int64



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.

Parameters:

  • value

    Value to set for the size property.

Returns:

  • a void



192
193
194
# File 'lib/models/mobile_app_content_file.rb', line 192

def size=(value)
    @size = value
end

#size_encryptedObject

Gets the sizeEncrypted property value. The size of the file after encryption.

Returns:

  • a int64



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.

Parameters:

  • value

    Value to set for the sizeEncrypted property.

Returns:

  • a void



207
208
209
# File 'lib/models/mobile_app_content_file.rb', line 207

def size_encrypted=(value)
    @size_encrypted = value
end

#upload_stateObject

Gets the uploadState property value. Contains properties for upload request states.

Returns:

  • a mobile_app_content_file_upload_state



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.

Parameters:

  • value

    Value to set for the uploadState property.

Returns:

  • a void



222
223
224
# File 'lib/models/mobile_app_content_file.rb', line 222

def upload_state=(value)
    @upload_state = value
end