Class: MicrosoftGraph::Models::UserExperienceAnalyticsDeviceStartupProcess

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/user_experience_analytics_device_startup_process.rb

Overview

The user experience analytics device startup process details.

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 userExperienceAnalyticsDeviceStartupProcess and sets the default values.



30
31
32
# File 'lib/models/user_experience_analytics_device_startup_process.rb', line 30

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 user_experience_analytics_device_startup_process

Raises:

  • (StandardError)


38
39
40
41
# File 'lib/models/user_experience_analytics_device_startup_process.rb', line 38

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

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



46
47
48
49
50
51
52
53
54
# File 'lib/models/user_experience_analytics_device_startup_process.rb', line 46

def get_field_deserializers()
    return super.merge({
        "managedDeviceId" => lambda {|n| @managed_device_id = n.get_string_value() },
        "processName" => lambda {|n| @process_name = n.get_string_value() },
        "productName" => lambda {|n| @product_name = n.get_string_value() },
        "publisher" => lambda {|n| @publisher = n.get_string_value() },
        "startupImpactInMs" => lambda {|n| @startup_impact_in_ms = n.get_number_value() },
    })
end

#managed_device_idObject

Gets the managedDeviceId property value. The Intune device id of the device. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



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

def managed_device_id
    return @managed_device_id
end

#managed_device_id=(value) ⇒ Object

Sets the managedDeviceId property value. The Intune device id of the device. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the managedDeviceId property.

Returns:

  • a void



67
68
69
# File 'lib/models/user_experience_analytics_device_startup_process.rb', line 67

def managed_device_id=(value)
    @managed_device_id = value
end

#process_nameObject

Gets the processName property value. The name of the process. Examples: outlook, excel. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



74
75
76
# File 'lib/models/user_experience_analytics_device_startup_process.rb', line 74

def process_name
    return @process_name
end

#process_name=(value) ⇒ Object

Sets the processName property value. The name of the process. Examples: outlook, excel. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the processName property.

Returns:

  • a void



82
83
84
# File 'lib/models/user_experience_analytics_device_startup_process.rb', line 82

def process_name=(value)
    @process_name = value
end

#product_nameObject

Gets the productName property value. The product name of the process. Examples: Microsoft Outlook, Microsoft Excel. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



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

def product_name
    return @product_name
end

#product_name=(value) ⇒ Object

Sets the productName property value. The product name of the process. Examples: Microsoft Outlook, Microsoft Excel. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the productName property.

Returns:

  • a void



97
98
99
# File 'lib/models/user_experience_analytics_device_startup_process.rb', line 97

def product_name=(value)
    @product_name = value
end

#publisherObject

Gets the publisher property value. The publisher of the process. Examples: Microsoft Corporation, Contoso Corp. Supports: $select, $OrderBy. Read-only.

Returns:

  • a string



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

def publisher
    return @publisher
end

#publisher=(value) ⇒ Object

Sets the publisher property value. The publisher of the process. Examples: Microsoft Corporation, Contoso Corp. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the publisher property.

Returns:

  • a void



112
113
114
# File 'lib/models/user_experience_analytics_device_startup_process.rb', line 112

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


120
121
122
123
124
125
126
127
128
# File 'lib/models/user_experience_analytics_device_startup_process.rb', line 120

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("managedDeviceId", @managed_device_id)
    writer.write_string_value("processName", @process_name)
    writer.write_string_value("productName", @product_name)
    writer.write_string_value("publisher", @publisher)
    writer.write_number_value("startupImpactInMs", @startup_impact_in_ms)
end

#startup_impact_in_msObject

Gets the startupImpactInMs property value. The impact of startup process on device boot time in milliseconds. Supports: $select, $OrderBy. Read-only.

Returns:

  • a integer



133
134
135
# File 'lib/models/user_experience_analytics_device_startup_process.rb', line 133

def startup_impact_in_ms
    return @startup_impact_in_ms
end

#startup_impact_in_ms=(value) ⇒ Object

Sets the startupImpactInMs property value. The impact of startup process on device boot time in milliseconds. Supports: $select, $OrderBy. Read-only.

Parameters:

  • value

    Value to set for the startupImpactInMs property.

Returns:

  • a void



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

def startup_impact_in_ms=(value)
    @startup_impact_in_ms = value
end