Class: MicrosoftGraph::Models::DeviceManagementExchangeConnector
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/device_management_exchange_connector.rb
Overview
Entity which represents a connection to an Exchange environment.
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
-
#connector_server_name ⇒ Object
Gets the connectorServerName property value.
-
#connector_server_name=(value) ⇒ Object
Sets the connectorServerName property value.
-
#exchange_alias ⇒ Object
Gets the exchangeAlias property value.
-
#exchange_alias=(value) ⇒ Object
Sets the exchangeAlias property value.
-
#exchange_connector_type ⇒ Object
Gets the exchangeConnectorType property value.
-
#exchange_connector_type=(value) ⇒ Object
Sets the exchangeConnectorType property value.
-
#exchange_organization ⇒ Object
Gets the exchangeOrganization property value.
-
#exchange_organization=(value) ⇒ Object
Sets the exchangeOrganization property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new deviceManagementExchangeConnector and sets the default values.
-
#last_sync_date_time ⇒ Object
Gets the lastSyncDateTime property value.
-
#last_sync_date_time=(value) ⇒ Object
Sets the lastSyncDateTime property value.
-
#primary_smtp_address ⇒ Object
Gets the primarySmtpAddress property value.
-
#primary_smtp_address=(value) ⇒ Object
Sets the primarySmtpAddress property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#server_name ⇒ Object
Gets the serverName property value.
-
#server_name=(value) ⇒ Object
Sets the serverName property value.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
-
#version ⇒ Object
Gets the version property value.
-
#version=(value) ⇒ Object
Sets the version property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new deviceManagementExchangeConnector and sets the default values.
58 59 60 |
# File 'lib/models/device_management_exchange_connector.rb', line 58 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
66 67 68 69 |
# File 'lib/models/device_management_exchange_connector.rb', line 66 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return DeviceManagementExchangeConnector.new end |
Instance Method Details
#connector_server_name ⇒ Object
Gets the connectorServerName property value. The name of the server hosting the Exchange Connector.
43 44 45 |
# File 'lib/models/device_management_exchange_connector.rb', line 43 def connector_server_name return @connector_server_name end |
#connector_server_name=(value) ⇒ Object
Sets the connectorServerName property value. The name of the server hosting the Exchange Connector.
51 52 53 |
# File 'lib/models/device_management_exchange_connector.rb', line 51 def connector_server_name=(value) @connector_server_name = value end |
#exchange_alias ⇒ Object
Gets the exchangeAlias property value. An alias assigned to the Exchange server
74 75 76 |
# File 'lib/models/device_management_exchange_connector.rb', line 74 def exchange_alias return @exchange_alias end |
#exchange_alias=(value) ⇒ Object
Sets the exchangeAlias property value. An alias assigned to the Exchange server
82 83 84 |
# File 'lib/models/device_management_exchange_connector.rb', line 82 def exchange_alias=(value) @exchange_alias = value end |
#exchange_connector_type ⇒ Object
Gets the exchangeConnectorType property value. The type of Exchange Connector.
89 90 91 |
# File 'lib/models/device_management_exchange_connector.rb', line 89 def exchange_connector_type return @exchange_connector_type end |
#exchange_connector_type=(value) ⇒ Object
Sets the exchangeConnectorType property value. The type of Exchange Connector.
97 98 99 |
# File 'lib/models/device_management_exchange_connector.rb', line 97 def exchange_connector_type=(value) @exchange_connector_type = value end |
#exchange_organization ⇒ Object
Gets the exchangeOrganization property value. Exchange Organization to the Exchange server
104 105 106 |
# File 'lib/models/device_management_exchange_connector.rb', line 104 def exchange_organization return @exchange_organization end |
#exchange_organization=(value) ⇒ Object
Sets the exchangeOrganization property value. Exchange Organization to the Exchange server
112 113 114 |
# File 'lib/models/device_management_exchange_connector.rb', line 112 def exchange_organization=(value) @exchange_organization = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
119 120 121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/models/device_management_exchange_connector.rb', line 119 def get_field_deserializers() return super.merge({ "connectorServerName" => lambda {|n| @connector_server_name = n.get_string_value() }, "exchangeAlias" => lambda {|n| @exchange_alias = n.get_string_value() }, "exchangeConnectorType" => lambda {|n| @exchange_connector_type = n.get_enum_value(MicrosoftGraph::Models::DeviceManagementExchangeConnectorType) }, "exchangeOrganization" => lambda {|n| @exchange_organization = n.get_string_value() }, "lastSyncDateTime" => lambda {|n| @last_sync_date_time = n.get_date_time_value() }, "primarySmtpAddress" => lambda {|n| @primary_smtp_address = n.get_string_value() }, "serverName" => lambda {|n| @server_name = n.get_string_value() }, "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::DeviceManagementExchangeConnectorStatus) }, "version" => lambda {|n| @version = n.get_string_value() }, }) end |
#last_sync_date_time ⇒ Object
Gets the lastSyncDateTime property value. Last sync time for the Exchange Connector
136 137 138 |
# File 'lib/models/device_management_exchange_connector.rb', line 136 def last_sync_date_time return @last_sync_date_time end |
#last_sync_date_time=(value) ⇒ Object
Sets the lastSyncDateTime property value. Last sync time for the Exchange Connector
144 145 146 |
# File 'lib/models/device_management_exchange_connector.rb', line 144 def last_sync_date_time=(value) @last_sync_date_time = value end |
#primary_smtp_address ⇒ Object
Gets the primarySmtpAddress property value. Email address used to configure the Service To Service Exchange Connector.
151 152 153 |
# File 'lib/models/device_management_exchange_connector.rb', line 151 def primary_smtp_address return @primary_smtp_address end |
#primary_smtp_address=(value) ⇒ Object
Sets the primarySmtpAddress property value. Email address used to configure the Service To Service Exchange Connector.
159 160 161 |
# File 'lib/models/device_management_exchange_connector.rb', line 159 def primary_smtp_address=(value) @primary_smtp_address = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/models/device_management_exchange_connector.rb', line 167 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("connectorServerName", @connector_server_name) writer.write_string_value("exchangeAlias", @exchange_alias) writer.write_enum_value("exchangeConnectorType", @exchange_connector_type) writer.write_string_value("exchangeOrganization", @exchange_organization) writer.write_date_time_value("lastSyncDateTime", @last_sync_date_time) writer.write_string_value("primarySmtpAddress", @primary_smtp_address) writer.write_string_value("serverName", @server_name) writer.write_enum_value("status", @status) writer.write_string_value("version", @version) end |
#server_name ⇒ Object
Gets the serverName property value. The name of the Exchange server.
184 185 186 |
# File 'lib/models/device_management_exchange_connector.rb', line 184 def server_name return @server_name end |
#server_name=(value) ⇒ Object
Sets the serverName property value. The name of the Exchange server.
192 193 194 |
# File 'lib/models/device_management_exchange_connector.rb', line 192 def server_name=(value) @server_name = value end |
#status ⇒ Object
Gets the status property value. The current status of the Exchange Connector.
199 200 201 |
# File 'lib/models/device_management_exchange_connector.rb', line 199 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. The current status of the Exchange Connector.
207 208 209 |
# File 'lib/models/device_management_exchange_connector.rb', line 207 def status=(value) @status = value end |
#version ⇒ Object
Gets the version property value. The version of the ExchangeConnectorAgent
214 215 216 |
# File 'lib/models/device_management_exchange_connector.rb', line 214 def version return @version end |
#version=(value) ⇒ Object
Sets the version property value. The version of the ExchangeConnectorAgent
222 223 224 |
# File 'lib/models/device_management_exchange_connector.rb', line 222 def version=(value) @version = value end |