Class: MicrosoftGraph::Models::DeviceManagementExchangeConnector

Inherits:
Entity
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from Entity

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

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a device_management_exchange_connector

Raises:

  • (StandardError)


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_nameObject

Gets the connectorServerName property value. The name of the server hosting the Exchange Connector.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the connectorServerName property.

Returns:

  • a void



51
52
53
# File 'lib/models/device_management_exchange_connector.rb', line 51

def connector_server_name=(value)
    @connector_server_name = value
end

#exchange_aliasObject

Gets the exchangeAlias property value. An alias assigned to the Exchange server

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the exchangeAlias property.

Returns:

  • a void



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

def exchange_alias=(value)
    @exchange_alias = value
end

#exchange_connector_typeObject

Gets the exchangeConnectorType property value. The type of Exchange Connector.

Returns:

  • a device_management_exchange_connector_type



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.

Parameters:

  • value

    Value to set for the exchangeConnectorType property.

Returns:

  • a void



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

def exchange_connector_type=(value)
    @exchange_connector_type = value
end

#exchange_organizationObject

Gets the exchangeOrganization property value. Exchange Organization to the Exchange server

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the exchangeOrganization property.

Returns:

  • a void



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

def exchange_organization=(value)
    @exchange_organization = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_timeObject

Gets the lastSyncDateTime property value. Last sync time for the Exchange Connector

Returns:

  • a date_time



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

Parameters:

  • value

    Value to set for the lastSyncDateTime property.

Returns:

  • a void



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_addressObject

Gets the primarySmtpAddress property value. Email address used to configure the Service To Service Exchange Connector.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the primarySmtpAddress property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_nameObject

Gets the serverName property value. The name of the Exchange server.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the serverName property.

Returns:

  • a void



192
193
194
# File 'lib/models/device_management_exchange_connector.rb', line 192

def server_name=(value)
    @server_name = value
end

#statusObject

Gets the status property value. The current status of the Exchange Connector.

Returns:

  • a device_management_exchange_connector_status



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.

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



207
208
209
# File 'lib/models/device_management_exchange_connector.rb', line 207

def status=(value)
    @status = value
end

#versionObject

Gets the version property value. The version of the ExchangeConnectorAgent

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the version property.

Returns:

  • a void



222
223
224
# File 'lib/models/device_management_exchange_connector.rb', line 222

def version=(value)
    @version = value
end