Class: MicrosoftGraph::Models::WindowsAppX

Inherits:
MobileLobApp show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/windows_app_x.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MobileLobApp

#committed_content_version, #committed_content_version=, #content_versions, #content_versions=, #file_name, #file_name=, #size, #size=

Methods inherited from MobileApp

#assignments, #assignments=, #categories, #categories=, #created_date_time, #created_date_time=, #description, #description=, #developer, #developer=, #display_name, #display_name=, #information_url, #information_url=, #is_featured, #is_featured=, #large_icon, #large_icon=, #last_modified_date_time, #last_modified_date_time=, #notes, #notes=, #owner, #owner=, #privacy_information_url, #privacy_information_url=, #publisher, #publisher=, #publishing_state, #publishing_state=

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new WindowsAppX and sets the default values.



49
50
51
52
# File 'lib/models/windows_app_x.rb', line 49

def initialize()
    super
    @odata_type = "#microsoft.graph.windowsAppX"
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 windows_app_x

Raises:

  • (StandardError)


58
59
60
61
# File 'lib/models/windows_app_x.rb', line 58

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return WindowsAppX.new
end

Instance Method Details

#applicable_architecturesObject

Gets the applicableArchitectures property value. Contains properties for Windows architecture.

Returns:

  • a windows_architecture



34
35
36
# File 'lib/models/windows_app_x.rb', line 34

def applicable_architectures
    return @applicable_architectures
end

#applicable_architectures=(value) ⇒ Object

Sets the applicableArchitectures property value. Contains properties for Windows architecture.

Parameters:

  • value

    Value to set for the applicable_architectures property.

Returns:

  • a void



42
43
44
# File 'lib/models/windows_app_x.rb', line 42

def applicable_architectures=(value)
    @applicable_architectures = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



66
67
68
69
70
71
72
73
74
75
76
# File 'lib/models/windows_app_x.rb', line 66

def get_field_deserializers()
    return super.merge({
        "applicableArchitectures" => lambda {|n| @applicable_architectures = n.get_enum_value(MicrosoftGraph::Models::WindowsArchitecture) },
        "identityName" => lambda {|n| @identity_name = n.get_string_value() },
        "identityPublisherHash" => lambda {|n| @identity_publisher_hash = n.get_string_value() },
        "identityResourceIdentifier" => lambda {|n| @identity_resource_identifier = n.get_string_value() },
        "identityVersion" => lambda {|n| @identity_version = n.get_string_value() },
        "isBundle" => lambda {|n| @is_bundle = n.get_boolean_value() },
        "minimumSupportedOperatingSystem" => lambda {|n| @minimum_supported_operating_system = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WindowsMinimumOperatingSystem.create_from_discriminator_value(pn) }) },
    })
end

#identity_nameObject

Gets the identityName property value. The identity name of the uploaded app package. For example: ‘Contoso.DemoApp’.

Returns:

  • a string



81
82
83
# File 'lib/models/windows_app_x.rb', line 81

def identity_name
    return @identity_name
end

#identity_name=(value) ⇒ Object

Sets the identityName property value. The identity name of the uploaded app package. For example: ‘Contoso.DemoApp’.

Parameters:

  • value

    Value to set for the identity_name property.

Returns:

  • a void



89
90
91
# File 'lib/models/windows_app_x.rb', line 89

def identity_name=(value)
    @identity_name = value
end

#identity_publisher_hashObject

Gets the identityPublisherHash property value. The identity publisher hash of the uploaded app package. This is the hash of the publisher from the manifest. For example: ‘AB82CD0XYZ’.

Returns:

  • a string



96
97
98
# File 'lib/models/windows_app_x.rb', line 96

def identity_publisher_hash
    return @identity_publisher_hash
end

#identity_publisher_hash=(value) ⇒ Object

Sets the identityPublisherHash property value. The identity publisher hash of the uploaded app package. This is the hash of the publisher from the manifest. For example: ‘AB82CD0XYZ’.

Parameters:

  • value

    Value to set for the identity_publisher_hash property.

Returns:

  • a void



104
105
106
# File 'lib/models/windows_app_x.rb', line 104

def identity_publisher_hash=(value)
    @identity_publisher_hash = value
end

#identity_resource_identifierObject

Gets the identityResourceIdentifier property value. The identity resource identifier of the uploaded app package. For example: ‘TestResourceId’.

Returns:

  • a string



111
112
113
# File 'lib/models/windows_app_x.rb', line 111

def identity_resource_identifier
    return @identity_resource_identifier
end

#identity_resource_identifier=(value) ⇒ Object

Sets the identityResourceIdentifier property value. The identity resource identifier of the uploaded app package. For example: ‘TestResourceId’.

Parameters:

  • value

    Value to set for the identity_resource_identifier property.

Returns:

  • a void



119
120
121
# File 'lib/models/windows_app_x.rb', line 119

def identity_resource_identifier=(value)
    @identity_resource_identifier = value
end

#identity_versionObject

Gets the identityVersion property value. The identity version of the uploaded app package. For example: ‘1.0.0.0’.

Returns:

  • a string



126
127
128
# File 'lib/models/windows_app_x.rb', line 126

def identity_version
    return @identity_version
end

#identity_version=(value) ⇒ Object

Sets the identityVersion property value. The identity version of the uploaded app package. For example: ‘1.0.0.0’.

Parameters:

  • value

    Value to set for the identity_version property.

Returns:

  • a void



134
135
136
# File 'lib/models/windows_app_x.rb', line 134

def identity_version=(value)
    @identity_version = value
end

#is_bundleObject

Gets the isBundle property value. When TRUE, indicates that the app is a bundle. When FALSE, indicates that the app is not a bundle. By default, property is set to FALSE.

Returns:

  • a boolean



141
142
143
# File 'lib/models/windows_app_x.rb', line 141

def is_bundle
    return @is_bundle
end

#is_bundle=(value) ⇒ Object

Sets the isBundle property value. When TRUE, indicates that the app is a bundle. When FALSE, indicates that the app is not a bundle. By default, property is set to FALSE.

Parameters:

  • value

    Value to set for the is_bundle property.

Returns:

  • a void



149
150
151
# File 'lib/models/windows_app_x.rb', line 149

def is_bundle=(value)
    @is_bundle = value
end

#minimum_supported_operating_systemObject

Gets the minimumSupportedOperatingSystem property value. The minimum operating system required for a Windows mobile app.

Returns:

  • a windows_minimum_operating_system



156
157
158
# File 'lib/models/windows_app_x.rb', line 156

def minimum_supported_operating_system
    return @minimum_supported_operating_system
end

#minimum_supported_operating_system=(value) ⇒ Object

Sets the minimumSupportedOperatingSystem property value. The minimum operating system required for a Windows mobile app.

Parameters:

  • value

    Value to set for the minimum_supported_operating_system property.

Returns:

  • a void



164
165
166
# File 'lib/models/windows_app_x.rb', line 164

def minimum_supported_operating_system=(value)
    @minimum_supported_operating_system = 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)


172
173
174
175
176
177
178
179
180
181
182
# File 'lib/models/windows_app_x.rb', line 172

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_enum_value("applicableArchitectures", @applicable_architectures)
    writer.write_string_value("identityName", @identity_name)
    writer.write_string_value("identityPublisherHash", @identity_publisher_hash)
    writer.write_string_value("identityResourceIdentifier", @identity_resource_identifier)
    writer.write_string_value("identityVersion", @identity_version)
    writer.write_boolean_value("isBundle", @is_bundle)
    writer.write_object_value("minimumSupportedOperatingSystem", @minimum_supported_operating_system)
end