Class: MicrosoftGraph::Models::TelecomExpenseManagementPartner
- 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
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#app_authorized ⇒ Object
Gets the appAuthorized property value.
-
#app_authorized=(value) ⇒ Object
Sets the appAuthorized property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#enabled ⇒ Object
Gets the enabled property value.
-
#enabled=(value) ⇒ Object
Sets the enabled property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new telecomExpenseManagementPartner and sets the default values.
-
#last_connection_date_time ⇒ Object
Gets the lastConnectionDateTime property value.
-
#last_connection_date_time=(value) ⇒ Object
Sets the lastConnectionDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#url ⇒ Object
Gets the url property value.
-
#url=(value) ⇒ Object
Sets the url property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_authorized ⇒ Object
Gets the appAuthorized property value. Whether the partner’s AAD app has been authorized to access Intune.
31 32 33 |
# File 'lib/models/telecom_expense_management_partner.rb', line 31 def 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.
39 40 41 |
# File 'lib/models/telecom_expense_management_partner.rb', line 39 def (value) @app_authorized = value end |
#display_name ⇒ Object
Gets the displayName property value. Display name of the TEM partner.
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.
70 71 72 |
# File 'lib/models/telecom_expense_management_partner.rb', line 70 def display_name=(value) @display_name = value end |
#enabled ⇒ Object
Gets the enabled property value. Whether Intune’s connection to the TEM service is currently enabled or disabled.
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.
85 86 87 |
# File 'lib/models/telecom_expense_management_partner.rb', line 85 def enabled=(value) @enabled = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_time ⇒ Object
Gets the lastConnectionDateTime property value. Timestamp of the last request sent to Intune by the TEM partner.
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.
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
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 |
#url ⇒ Object
Gets the url property value. URL of the TEM partner’s administrative control panel, where an administrator can configure their TEM service.
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.
142 143 144 |
# File 'lib/models/telecom_expense_management_partner.rb', line 142 def url=(value) @url = value end |