Class: ConnectWise::ManagementItSolution
- Inherits:
-
Object
- Object
- ConnectWise::ManagementItSolution
- Defined in:
- lib/connectwise-ruby-sdk/models/management_it_solution.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#_info ⇒ Object
Metadata of the entity.
-
#continuum_api_password ⇒ Object
This is only required for Continuum solution.
-
#continuum_api_username ⇒ Object
This is only required for Continuum solution.
-
#global_login_flag ⇒ Object
Returns the value of attribute global_login_flag.
-
#global_login_password ⇒ Object
This is only required when globalLoginFlag = true.
-
#global_login_username ⇒ Object
This is only required when globalLoginFlag = true.
-
#id ⇒ Object
Returns the value of attribute id.
-
#level_api_password ⇒ Object
This is only required for Level Platforms solution.
-
#level_api_username ⇒ Object
This is only required for Level Platforms solution.
-
#level_var_domain ⇒ Object
This is only required for Level Platforms solution.
-
#management_it_solution_type ⇒ Object
Returns the value of attribute management_it_solution_type.
-
#management_server_url ⇒ Object
This is only required for Level Platforms and Kaseya.
-
#management_solution_name ⇒ Object
This is only required when managementItSolutionType is Custom.
-
#n_able_password ⇒ Object
This is only required for N-Able solution.
-
#n_able_username ⇒ Object
This is only required for N-Able solution.
-
#name ⇒ Object
Returns the value of attribute name.
-
#no_display_flag ⇒ Object
Returns the value of attribute no_display_flag.
-
#override_login_location_flag ⇒ Object
Returns the value of attribute override_login_location_flag.
-
#override_web_service_location_flag ⇒ Object
Returns the value of attribute override_web_service_location_flag.
-
#portal_override_login_url ⇒ Object
This is only required for Level Platforms and Kaseya when overrideLoginLocationFlag is true.
-
#using_ssl_flag ⇒ Object
Returns the value of attribute using_ssl_flag.
-
#webservice_override_url ⇒ Object
This is only required for Level Platforms and Kaseya when overrideWebServiceLocationFlag is true.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ManagementItSolution
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ ManagementItSolution
Initializes the object
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 145 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] end if attributes.has_key?(:'name') self.name = attributes[:'name'] end if attributes.has_key?(:'managementItSolutionType') self.management_it_solution_type = attributes[:'managementItSolutionType'] end if attributes.has_key?(:'managementSolutionName') self.management_solution_name = attributes[:'managementSolutionName'] end if attributes.has_key?(:'managementServerUrl') self.management_server_url = attributes[:'managementServerUrl'] end if attributes.has_key?(:'webserviceOverrideUrl') self.webservice_override_url = attributes[:'webserviceOverrideUrl'] end if attributes.has_key?(:'portalOverrideLoginUrl') self.portal_override_login_url = attributes[:'portalOverrideLoginUrl'] end if attributes.has_key?(:'globalLoginFlag') self.global_login_flag = attributes[:'globalLoginFlag'] end if attributes.has_key?(:'globalLoginUsername') self.global_login_username = attributes[:'globalLoginUsername'] end if attributes.has_key?(:'globalLoginPassword') self.global_login_password = attributes[:'globalLoginPassword'] end if attributes.has_key?(:'usingSslFlag') self.using_ssl_flag = attributes[:'usingSslFlag'] end if attributes.has_key?(:'nAbleUsername') self.n_able_username = attributes[:'nAbleUsername'] end if attributes.has_key?(:'nAblePassword') self.n_able_password = attributes[:'nAblePassword'] end if attributes.has_key?(:'overrideWebServiceLocationFlag') self.override_web_service_location_flag = attributes[:'overrideWebServiceLocationFlag'] end if attributes.has_key?(:'overrideLoginLocationFlag') self.override_login_location_flag = attributes[:'overrideLoginLocationFlag'] end if attributes.has_key?(:'continuumApiUsername') self.continuum_api_username = attributes[:'continuumApiUsername'] end if attributes.has_key?(:'continuumApiPassword') self.continuum_api_password = attributes[:'continuumApiPassword'] end if attributes.has_key?(:'levelApiUsername') self.level_api_username = attributes[:'levelApiUsername'] end if attributes.has_key?(:'levelApiPassword') self.level_api_password = attributes[:'levelApiPassword'] end if attributes.has_key?(:'levelVarDomain') self.level_var_domain = attributes[:'levelVarDomain'] end if attributes.has_key?(:'noDisplayFlag') self.no_display_flag = attributes[:'noDisplayFlag'] end if attributes.has_key?(:'_info') self._info = attributes[:'_info'] end end |
Instance Attribute Details
#_info ⇒ Object
Metadata of the entity
63 64 65 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 63 def _info @_info end |
#continuum_api_password ⇒ Object
This is only required for Continuum solution
49 50 51 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 49 def continuum_api_password @continuum_api_password end |
#continuum_api_username ⇒ Object
This is only required for Continuum solution
46 47 48 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 46 def continuum_api_username @continuum_api_username end |
#global_login_flag ⇒ Object
Returns the value of attribute global_login_flag.
25 26 27 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 25 def global_login_flag @global_login_flag end |
#global_login_password ⇒ Object
This is only required when globalLoginFlag = true
31 32 33 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 31 def global_login_password @global_login_password end |
#global_login_username ⇒ Object
This is only required when globalLoginFlag = true
28 29 30 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 28 def global_login_username @global_login_username end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 7 def id @id end |
#level_api_password ⇒ Object
This is only required for Level Platforms solution
55 56 57 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 55 def level_api_password @level_api_password end |
#level_api_username ⇒ Object
This is only required for Level Platforms solution
52 53 54 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 52 def level_api_username @level_api_username end |
#level_var_domain ⇒ Object
This is only required for Level Platforms solution
58 59 60 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 58 def level_var_domain @level_var_domain end |
#management_it_solution_type ⇒ Object
Returns the value of attribute management_it_solution_type.
11 12 13 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 11 def management_it_solution_type @management_it_solution_type end |
#management_server_url ⇒ Object
This is only required for Level Platforms and Kaseya
17 18 19 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 17 def management_server_url @management_server_url end |
#management_solution_name ⇒ Object
This is only required when managementItSolutionType is Custom
14 15 16 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 14 def management_solution_name @management_solution_name end |
#n_able_password ⇒ Object
This is only required for N-Able solution
39 40 41 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 39 def n_able_password @n_able_password end |
#n_able_username ⇒ Object
This is only required for N-Able solution
36 37 38 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 36 def n_able_username @n_able_username end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 9 def name @name end |
#no_display_flag ⇒ Object
Returns the value of attribute no_display_flag.
60 61 62 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 60 def no_display_flag @no_display_flag end |
#override_login_location_flag ⇒ Object
Returns the value of attribute override_login_location_flag.
43 44 45 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 43 def override_login_location_flag @override_login_location_flag end |
#override_web_service_location_flag ⇒ Object
Returns the value of attribute override_web_service_location_flag.
41 42 43 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 41 def override_web_service_location_flag @override_web_service_location_flag end |
#portal_override_login_url ⇒ Object
This is only required for Level Platforms and Kaseya when overrideLoginLocationFlag is true
23 24 25 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 23 def portal_override_login_url @portal_override_login_url end |
#using_ssl_flag ⇒ Object
Returns the value of attribute using_ssl_flag.
33 34 35 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 33 def using_ssl_flag @using_ssl_flag end |
#webservice_override_url ⇒ Object
This is only required for Level Platforms and Kaseya when overrideWebServiceLocationFlag is true
20 21 22 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 20 def webservice_override_url @webservice_override_url end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 88 def self.attribute_map { :'id' => :'id', :'name' => :'name', :'management_it_solution_type' => :'managementItSolutionType', :'management_solution_name' => :'managementSolutionName', :'management_server_url' => :'managementServerUrl', :'webservice_override_url' => :'webserviceOverrideUrl', :'portal_override_login_url' => :'portalOverrideLoginUrl', :'global_login_flag' => :'globalLoginFlag', :'global_login_username' => :'globalLoginUsername', :'global_login_password' => :'globalLoginPassword', :'using_ssl_flag' => :'usingSslFlag', :'n_able_username' => :'nAbleUsername', :'n_able_password' => :'nAblePassword', :'override_web_service_location_flag' => :'overrideWebServiceLocationFlag', :'override_login_location_flag' => :'overrideLoginLocationFlag', :'continuum_api_username' => :'continuumApiUsername', :'continuum_api_password' => :'continuumApiPassword', :'level_api_username' => :'levelApiUsername', :'level_api_password' => :'levelApiPassword', :'level_var_domain' => :'levelVarDomain', :'no_display_flag' => :'noDisplayFlag', :'_info' => :'_info' } end |
.swagger_types ⇒ Object
Attribute type mapping.
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 116 def self.swagger_types { :'id' => :'Integer', :'name' => :'String', :'management_it_solution_type' => :'String', :'management_solution_name' => :'String', :'management_server_url' => :'String', :'webservice_override_url' => :'String', :'portal_override_login_url' => :'String', :'global_login_flag' => :'BOOLEAN', :'global_login_username' => :'String', :'global_login_password' => :'String', :'using_ssl_flag' => :'BOOLEAN', :'n_able_username' => :'String', :'n_able_password' => :'String', :'override_web_service_location_flag' => :'BOOLEAN', :'override_login_location_flag' => :'BOOLEAN', :'continuum_api_username' => :'String', :'continuum_api_password' => :'String', :'level_api_username' => :'String', :'level_api_password' => :'String', :'level_var_domain' => :'String', :'no_display_flag' => :'BOOLEAN', :'_info' => :'Metadata' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 505 def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && name == o.name && management_it_solution_type == o.management_it_solution_type && management_solution_name == o.management_solution_name && management_server_url == o.management_server_url && webservice_override_url == o.webservice_override_url && portal_override_login_url == o.portal_override_login_url && global_login_flag == o.global_login_flag && global_login_username == o.global_login_username && global_login_password == o.global_login_password && using_ssl_flag == o.using_ssl_flag && n_able_username == o.n_able_username && n_able_password == o.n_able_password && override_web_service_location_flag == o.override_web_service_location_flag && override_login_location_flag == o.override_login_location_flag && continuum_api_username == o.continuum_api_username && continuum_api_password == o.continuum_api_password && level_api_username == o.level_api_username && level_api_password == o.level_api_password && level_var_domain == o.level_var_domain && no_display_flag == o.no_display_flag && _info == o._info end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 568 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = ConnectWise.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
634 635 636 637 638 639 640 641 642 643 644 645 646 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 634 def _to_hash(value) if value.is_a?(Array) value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 547 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
534 535 536 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 534 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
540 541 542 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 540 def hash [id, name, management_it_solution_type, management_solution_name, management_server_url, webservice_override_url, portal_override_login_url, global_login_flag, global_login_username, global_login_password, using_ssl_flag, n_able_username, n_able_password, override_web_service_location_flag, override_login_location_flag, continuum_api_username, continuum_api_password, level_api_username, level_api_password, level_var_domain, no_display_flag, _info].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 243 def list_invalid_properties invalid_properties = Array.new if @name.nil? invalid_properties.push("invalid value for 'name', name cannot be nil.") end if @name.to_s.length > 30 invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 30.") end if @management_it_solution_type.nil? invalid_properties.push("invalid value for 'management_it_solution_type', management_it_solution_type cannot be nil.") end if !@management_solution_name.nil? && @management_solution_name.to_s.length > 30 invalid_properties.push("invalid value for 'management_solution_name', the character length must be smaller than or equal to 30.") end if !@management_server_url.nil? && @management_server_url.to_s.length > 200 invalid_properties.push("invalid value for 'management_server_url', the character length must be smaller than or equal to 200.") end if !@webservice_override_url.nil? && @webservice_override_url.to_s.length > 200 invalid_properties.push("invalid value for 'webservice_override_url', the character length must be smaller than or equal to 200.") end if !@portal_override_login_url.nil? && @portal_override_login_url.to_s.length > 200 invalid_properties.push("invalid value for 'portal_override_login_url', the character length must be smaller than or equal to 200.") end if !@global_login_username.nil? && @global_login_username.to_s.length > 50 invalid_properties.push("invalid value for 'global_login_username', the character length must be smaller than or equal to 50.") end if !@global_login_password.nil? && @global_login_password.to_s.length > 50 invalid_properties.push("invalid value for 'global_login_password', the character length must be smaller than or equal to 50.") end if !@n_able_username.nil? && @n_able_username.to_s.length > 50 invalid_properties.push("invalid value for 'n_able_username', the character length must be smaller than or equal to 50.") end if !@n_able_password.nil? && @n_able_password.to_s.length > 50 invalid_properties.push("invalid value for 'n_able_password', the character length must be smaller than or equal to 50.") end if !@continuum_api_username.nil? && @continuum_api_username.to_s.length > 100 invalid_properties.push("invalid value for 'continuum_api_username', the character length must be smaller than or equal to 100.") end if !@continuum_api_password.nil? && @continuum_api_password.to_s.length > 100 invalid_properties.push("invalid value for 'continuum_api_password', the character length must be smaller than or equal to 100.") end if !@level_api_username.nil? && @level_api_username.to_s.length > 100 invalid_properties.push("invalid value for 'level_api_username', the character length must be smaller than or equal to 100.") end if !@level_api_password.nil? && @level_api_password.to_s.length > 100 invalid_properties.push("invalid value for 'level_api_password', the character length must be smaller than or equal to 100.") end if !@level_var_domain.nil? && @level_var_domain.to_s.length > 100 invalid_properties.push("invalid value for 'level_var_domain', the character length must be smaller than or equal to 100.") end return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
614 615 616 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 614 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
620 621 622 623 624 625 626 627 628 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 620 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
608 609 610 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 608 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 |
# File 'lib/connectwise-ruby-sdk/models/management_it_solution.rb', line 314 def valid? return false if @name.nil? return false if @name.to_s.length > 30 return false if @management_it_solution_type.nil? management_it_solution_type_validator = EnumAttributeValidator.new('String', ["LevelPlatforms", "Kaseya", "NAble", "Continuum", "Custom"]) return false unless management_it_solution_type_validator.valid?(@management_it_solution_type) return false if !@management_solution_name.nil? && @management_solution_name.to_s.length > 30 return false if !@management_server_url.nil? && @management_server_url.to_s.length > 200 return false if !@webservice_override_url.nil? && @webservice_override_url.to_s.length > 200 return false if !@portal_override_login_url.nil? && @portal_override_login_url.to_s.length > 200 return false if !@global_login_username.nil? && @global_login_username.to_s.length > 50 return false if !@global_login_password.nil? && @global_login_password.to_s.length > 50 return false if !@n_able_username.nil? && @n_able_username.to_s.length > 50 return false if !@n_able_password.nil? && @n_able_password.to_s.length > 50 return false if !@continuum_api_username.nil? && @continuum_api_username.to_s.length > 100 return false if !@continuum_api_password.nil? && @continuum_api_password.to_s.length > 100 return false if !@level_api_username.nil? && @level_api_username.to_s.length > 100 return false if !@level_api_password.nil? && @level_api_password.to_s.length > 100 return false if !@level_var_domain.nil? && @level_var_domain.to_s.length > 100 return true end |