Class: MicrosoftGraph::Models::TelecomExpenseManagementPartner

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

Overview

telecomExpenseManagementPartner resources represent the metadata and status of a given TEM service. Once your organization has onboarded with a partner, the partner can be enabled or disabled to switch TEM functionality on or off.

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



46
47
48
# File 'lib/models/telecom_expense_management_partner.rb', line 46

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 telecom_expense_management_partner

Raises:

  • (StandardError)


54
55
56
57
# File 'lib/models/telecom_expense_management_partner.rb', line 54

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

Instance Method Details

#app_authorizedObject

Gets the appAuthorized property value. Whether the partner’s AAD app has been authorized to access Intune.

Returns:

  • a boolean



31
32
33
# File 'lib/models/telecom_expense_management_partner.rb', line 31

def app_authorized
    return @app_authorized
end

#app_authorized=(value) ⇒ Object

Sets the appAuthorized property value. Whether the partner’s AAD app has been authorized to access Intune.

Parameters:

  • value

    Value to set for the appAuthorized property.

Returns:

  • a void



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

def app_authorized=(value)
    @app_authorized = value
end

#display_nameObject

Gets the displayName property value. Display name of the TEM partner.

Returns:

  • a string



62
63
64
# File 'lib/models/telecom_expense_management_partner.rb', line 62

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. Display name of the TEM partner.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



70
71
72
# File 'lib/models/telecom_expense_management_partner.rb', line 70

def display_name=(value)
    @display_name = value
end

#enabledObject

Gets the enabled property value. Whether Intune’s connection to the TEM service is currently enabled or disabled.

Returns:

  • a boolean



77
78
79
# File 'lib/models/telecom_expense_management_partner.rb', line 77

def enabled
    return @enabled
end

#enabled=(value) ⇒ Object

Sets the enabled property value. Whether Intune’s connection to the TEM service is currently enabled or disabled.

Parameters:

  • value

    Value to set for the enabled property.

Returns:

  • a void



85
86
87
# File 'lib/models/telecom_expense_management_partner.rb', line 85

def enabled=(value)
    @enabled = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



92
93
94
95
96
97
98
99
100
# File 'lib/models/telecom_expense_management_partner.rb', line 92

def get_field_deserializers()
    return super.merge({
        "appAuthorized" => lambda {|n| @app_authorized = n.get_boolean_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "enabled" => lambda {|n| @enabled = n.get_boolean_value() },
        "lastConnectionDateTime" => lambda {|n| @last_connection_date_time = n.get_date_time_value() },
        "url" => lambda {|n| @url = n.get_string_value() },
    })
end

#last_connection_date_timeObject

Gets the lastConnectionDateTime property value. Timestamp of the last request sent to Intune by the TEM partner.

Returns:

  • a date_time



105
106
107
# File 'lib/models/telecom_expense_management_partner.rb', line 105

def last_connection_date_time
    return @last_connection_date_time
end

#last_connection_date_time=(value) ⇒ Object

Sets the lastConnectionDateTime property value. Timestamp of the last request sent to Intune by the TEM partner.

Parameters:

  • value

    Value to set for the lastConnectionDateTime property.

Returns:

  • a void



113
114
115
# File 'lib/models/telecom_expense_management_partner.rb', line 113

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


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

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_boolean_value("appAuthorized", @app_authorized)
    writer.write_string_value("displayName", @display_name)
    writer.write_boolean_value("enabled", @enabled)
    writer.write_date_time_value("lastConnectionDateTime", @last_connection_date_time)
    writer.write_string_value("url", @url)
end

#urlObject

Gets the url property value. URL of the TEM partner’s administrative control panel, where an administrator can configure their TEM service.

Returns:

  • a string



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

def url
    return @url
end

#url=(value) ⇒ Object

Sets the url property value. URL of the TEM partner’s administrative control panel, where an administrator can configure their TEM service.

Parameters:

  • value

    Value to set for the url property.

Returns:

  • a void



142
143
144
# File 'lib/models/telecom_expense_management_partner.rb', line 142

def url=(value)
    @url = value
end