Class: MicrosoftGraph::Models::PrintConnector
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/print_connector.rb
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_version ⇒ Object
Gets the appVersion property value.
-
#app_version=(value) ⇒ Object
Sets the appVersion property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#fully_qualified_domain_name ⇒ Object
Gets the fullyQualifiedDomainName property value.
-
#fully_qualified_domain_name=(value) ⇒ Object
Sets the fullyQualifiedDomainName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new printConnector and sets the default values.
-
#location ⇒ Object
Gets the location property value.
-
#location=(value) ⇒ Object
Sets the location property value.
-
#operating_system ⇒ Object
Gets the operatingSystem property value.
-
#operating_system=(value) ⇒ Object
Sets the operatingSystem property value.
-
#registered_date_time ⇒ Object
Gets the registeredDateTime property value.
-
#registered_date_time=(value) ⇒ Object
Sets the registeredDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_version ⇒ Object
Gets the appVersion property value. The connector’s version.
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.
40 41 42 |
# File 'lib/models/print_connector.rb', line 40 def app_version=(value) @app_version = value end |
#display_name ⇒ Object
Gets the displayName property value. The name of the connector.
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.
71 72 73 |
# File 'lib/models/print_connector.rb', line 71 def display_name=(value) @display_name = value end |
#fully_qualified_domain_name ⇒ Object
Gets the fullyQualifiedDomainName property value. The connector machine’s hostname.
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.
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_deserializers ⇒ Object
The deserialization information for the current model
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| = n.get_string_value() }, "registeredDateTime" => lambda {|n| @registered_date_time = n.get_date_time_value() }, }) end |
#location ⇒ Object
Gets the location property value. The physical and/or organizational location of the connector.
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.
115 116 117 |
# File 'lib/models/print_connector.rb', line 115 def location=(value) @location = value end |
#operating_system ⇒ Object
Gets the operatingSystem property value. The connector machine’s operating system version.
122 123 124 |
# File 'lib/models/print_connector.rb', line 122 def return end |
#operating_system=(value) ⇒ Object
Sets the operatingSystem property value. The connector machine’s operating system version.
130 131 132 |
# File 'lib/models/print_connector.rb', line 130 def (value) = value end |
#registered_date_time ⇒ Object
Gets the registeredDateTime property value. The DateTimeOffset when the connector was registered.
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.
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
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", ) writer.write_date_time_value("registeredDateTime", @registered_date_time) end |