Class: MicrosoftGraph::Models::PrintConnector

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

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



47
48
49
# File 'lib/models/print_connector.rb', line 47

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 print_connector

Raises:

  • (StandardError)


55
56
57
58
# File 'lib/models/print_connector.rb', line 55

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

Instance Method Details

#app_versionObject

Gets the appVersion property value. The connector’s version.

Returns:

  • a string



32
33
34
# File 'lib/models/print_connector.rb', line 32

def app_version
    return @app_version
end

#app_version=(value) ⇒ Object

Sets the appVersion property value. The connector’s version.

Parameters:

  • value

    Value to set for the appVersion property.

Returns:

  • a void



40
41
42
# File 'lib/models/print_connector.rb', line 40

def app_version=(value)
    @app_version = value
end

#display_nameObject

Gets the displayName property value. The name of the connector.

Returns:

  • a string



63
64
65
# File 'lib/models/print_connector.rb', line 63

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The name of the connector.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



71
72
73
# File 'lib/models/print_connector.rb', line 71

def display_name=(value)
    @display_name = value
end

#fully_qualified_domain_nameObject

Gets the fullyQualifiedDomainName property value. The connector machine’s hostname.

Returns:

  • a string



78
79
80
# File 'lib/models/print_connector.rb', line 78

def fully_qualified_domain_name
    return @fully_qualified_domain_name
end

#fully_qualified_domain_name=(value) ⇒ Object

Sets the fullyQualifiedDomainName property value. The connector machine’s hostname.

Parameters:

  • value

    Value to set for the fullyQualifiedDomainName property.

Returns:

  • a void



86
87
88
# File 'lib/models/print_connector.rb', line 86

def fully_qualified_domain_name=(value)
    @fully_qualified_domain_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



93
94
95
96
97
98
99
100
101
102
# File 'lib/models/print_connector.rb', line 93

def get_field_deserializers()
    return super.merge({
        "appVersion" => lambda {|n| @app_version = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "fullyQualifiedDomainName" => lambda {|n| @fully_qualified_domain_name = n.get_string_value() },
        "location" => lambda {|n| @location = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PrinterLocation.create_from_discriminator_value(pn) }) },
        "operatingSystem" => lambda {|n| @operating_system = n.get_string_value() },
        "registeredDateTime" => lambda {|n| @registered_date_time = n.get_date_time_value() },
    })
end

#locationObject

Gets the location property value. The physical and/or organizational location of the connector.

Returns:

  • a printer_location



107
108
109
# File 'lib/models/print_connector.rb', line 107

def location
    return @location
end

#location=(value) ⇒ Object

Sets the location property value. The physical and/or organizational location of the connector.

Parameters:

  • value

    Value to set for the location property.

Returns:

  • a void



115
116
117
# File 'lib/models/print_connector.rb', line 115

def location=(value)
    @location = value
end

#operating_systemObject

Gets the operatingSystem property value. The connector machine’s operating system version.

Returns:

  • a string



122
123
124
# File 'lib/models/print_connector.rb', line 122

def operating_system
    return @operating_system
end

#operating_system=(value) ⇒ Object

Sets the operatingSystem property value. The connector machine’s operating system version.

Parameters:

  • value

    Value to set for the operatingSystem property.

Returns:

  • a void



130
131
132
# File 'lib/models/print_connector.rb', line 130

def operating_system=(value)
    @operating_system = value
end

#registered_date_timeObject

Gets the registeredDateTime property value. The DateTimeOffset when the connector was registered.

Returns:

  • a date_time



137
138
139
# File 'lib/models/print_connector.rb', line 137

def registered_date_time
    return @registered_date_time
end

#registered_date_time=(value) ⇒ Object

Sets the registeredDateTime property value. The DateTimeOffset when the connector was registered.

Parameters:

  • value

    Value to set for the registeredDateTime property.

Returns:

  • a void



145
146
147
# File 'lib/models/print_connector.rb', line 145

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


153
154
155
156
157
158
159
160
161
162
# File 'lib/models/print_connector.rb', line 153

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("appVersion", @app_version)
    writer.write_string_value("displayName", @display_name)
    writer.write_string_value("fullyQualifiedDomainName", @fully_qualified_domain_name)
    writer.write_object_value("location", @location)
    writer.write_string_value("operatingSystem", @operating_system)
    writer.write_date_time_value("registeredDateTime", @registered_date_time)
end