Class: ConnectWise::Board
- Inherits:
-
Object
- Object
- ConnectWise::Board
- Defined in:
- lib/connectwise-ruby-sdk/models/board.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#_info ⇒ Object
Metadata of the entity.
-
#all_sort ⇒ Object
Returns the value of attribute all_sort.
-
#auto_assign_new_ec_tickets_flag ⇒ Object
Returns the value of attribute auto_assign_new_ec_tickets_flag.
-
#auto_assign_new_portal_tickets_flag ⇒ Object
Returns the value of attribute auto_assign_new_portal_tickets_flag.
-
#auto_assign_new_tickets_flag ⇒ Object
Returns the value of attribute auto_assign_new_tickets_flag.
-
#auto_assign_ticket_owner_flag ⇒ Object
Returns the value of attribute auto_assign_ticket_owner_flag.
-
#auto_close_status ⇒ Object
Returns the value of attribute auto_close_status.
-
#bill_expense ⇒ Object
Returns the value of attribute bill_expense.
-
#bill_product ⇒ Object
Returns the value of attribute bill_product.
-
#bill_ticket_separately_flag ⇒ Object
Returns the value of attribute bill_ticket_separately_flag.
-
#bill_tickets_after_closed_flag ⇒ Object
Returns the value of attribute bill_tickets_after_closed_flag.
-
#bill_time ⇒ Object
Returns the value of attribute bill_time.
-
#bill_unapproved_time_expense_flag ⇒ Object
Returns the value of attribute bill_unapproved_time_expense_flag.
-
#board_icon ⇒ Object
Returns the value of attribute board_icon.
-
#closed_loop_all_flag ⇒ Object
Returns the value of attribute closed_loop_all_flag.
-
#closed_loop_discussions_flag ⇒ Object
Returns the value of attribute closed_loop_discussions_flag.
-
#closed_loop_internal_analysis_flag ⇒ Object
Returns the value of attribute closed_loop_internal_analysis_flag.
-
#closed_loop_resolution_flag ⇒ Object
Returns the value of attribute closed_loop_resolution_flag.
-
#contact_template ⇒ Object
Returns the value of attribute contact_template.
-
#department ⇒ Object
Returns the value of attribute department.
-
#discussions_locked_flag ⇒ Object
Returns the value of attribute discussions_locked_flag.
-
#dispatch_member ⇒ Object
Returns the value of attribute dispatch_member.
-
#duty_manager_member ⇒ Object
Returns the value of attribute duty_manager_member.
-
#email_connector_allow_reopen_closed_flag ⇒ Object
Returns the value of attribute email_connector_allow_reopen_closed_flag.
-
#email_connector_never_reopen_by_days_flag ⇒ Object
This field can only be set when emailConnectorAllowReopenClosed is true.
-
#email_connector_new_ticket_no_match_flag ⇒ Object
This field can only be set when emailConnectorAllowReopenClosed is true.
-
#email_connector_reopen_days_limit ⇒ Object
Returns the value of attribute email_connector_reopen_days_limit.
-
#email_connector_reopen_resources_flag ⇒ Object
This field can only be set when emailConnectorAllowReopenClosed is true.
-
#email_connector_reopen_status ⇒ Object
This field is only required when emailConnectorAllowReopenClosed is true.
-
#id ⇒ Object
Returns the value of attribute id.
-
#inactive_flag ⇒ Object
Returns the value of attribute inactive_flag.
-
#internal_analysis_sort ⇒ Object
Returns the value of attribute internal_analysis_sort.
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
-
#notify_email_from ⇒ Object
Returns the value of attribute notify_email_from.
-
#notify_email_from_name ⇒ Object
Returns the value of attribute notify_email_from_name.
-
#oncall_member ⇒ Object
Returns the value of attribute oncall_member.
-
#override_billing_setup_flag ⇒ Object
Returns the value of attribute override_billing_setup_flag.
-
#problem_sort ⇒ Object
Returns the value of attribute problem_sort.
-
#project_flag ⇒ Object
Returns the value of attribute project_flag.
-
#resolution_sort ⇒ Object
Returns the value of attribute resolution_sort.
-
#resource_template ⇒ Object
Returns the value of attribute resource_template.
-
#send_to_cc_flag ⇒ Object
Returns the value of attribute send_to_cc_flag.
-
#send_to_contact_flag ⇒ Object
Returns the value of attribute send_to_contact_flag.
-
#send_to_resource_flag ⇒ Object
Returns the value of attribute send_to_resource_flag.
-
#service_manager_member ⇒ Object
Returns the value of attribute service_manager_member.
-
#show_dependencies_flag ⇒ Object
This field only shows if it is Project Board.
-
#show_estimates_flag ⇒ Object
This field only shows if it is Project Board.
-
#sign_off_template ⇒ Object
Returns the value of attribute sign_off_template.
-
#time_entry_discussion_flag ⇒ Object
Returns the value of attribute time_entry_discussion_flag.
-
#time_entry_internal_analysis_flag ⇒ Object
Returns the value of attribute time_entry_internal_analysis_flag.
-
#time_entry_locked_flag ⇒ Object
Returns the value of attribute time_entry_locked_flag.
-
#time_entry_resolution_flag ⇒ Object
Returns the value of attribute time_entry_resolution_flag.
-
#use_member_display_name_flag ⇒ Object
Returns the value of attribute use_member_display_name_flag.
-
#work_role ⇒ Object
Returns the value of attribute work_role.
-
#work_type ⇒ Object
Returns the value of attribute work_type.
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 = {}) ⇒ Board
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 = {}) ⇒ Board
Initializes the object
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 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 274 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?(:'location') self.location = attributes[:'location'] end if attributes.has_key?(:'department') self.department = attributes[:'department'] end if attributes.has_key?(:'inactiveFlag') self.inactive_flag = attributes[:'inactiveFlag'] end if attributes.has_key?(:'signOffTemplate') self.sign_off_template = attributes[:'signOffTemplate'] end if attributes.has_key?(:'sendToContactFlag') self.send_to_contact_flag = attributes[:'sendToContactFlag'] end if attributes.has_key?(:'contactTemplate') self.contact_template = attributes[:'contactTemplate'] end if attributes.has_key?(:'sendToResourceFlag') self.send_to_resource_flag = attributes[:'sendToResourceFlag'] end if attributes.has_key?(:'resourceTemplate') self.resource_template = attributes[:'resourceTemplate'] end if attributes.has_key?(:'projectFlag') self.project_flag = attributes[:'projectFlag'] end if attributes.has_key?(:'showDependenciesFlag') self.show_dependencies_flag = attributes[:'showDependenciesFlag'] end if attributes.has_key?(:'showEstimatesFlag') self.show_estimates_flag = attributes[:'showEstimatesFlag'] end if attributes.has_key?(:'boardIcon') self.board_icon = attributes[:'boardIcon'] end if attributes.has_key?(:'billTicketsAfterClosedFlag') self.bill_tickets_after_closed_flag = attributes[:'billTicketsAfterClosedFlag'] end if attributes.has_key?(:'billTicketSeparatelyFlag') self.bill_ticket_separately_flag = attributes[:'billTicketSeparatelyFlag'] end if attributes.has_key?(:'billUnapprovedTimeExpenseFlag') self.bill_unapproved_time_expense_flag = attributes[:'billUnapprovedTimeExpenseFlag'] end if attributes.has_key?(:'overrideBillingSetupFlag') self.override_billing_setup_flag = attributes[:'overrideBillingSetupFlag'] end if attributes.has_key?(:'dispatchMember') self.dispatch_member = attributes[:'dispatchMember'] end if attributes.has_key?(:'serviceManagerMember') self.service_manager_member = attributes[:'serviceManagerMember'] end if attributes.has_key?(:'dutyManagerMember') self.duty_manager_member = attributes[:'dutyManagerMember'] end if attributes.has_key?(:'oncallMember') self.oncall_member = attributes[:'oncallMember'] end if attributes.has_key?(:'workRole') self.work_role = attributes[:'workRole'] end if attributes.has_key?(:'workType') self.work_type = attributes[:'workType'] end if attributes.has_key?(:'billTime') self.bill_time = attributes[:'billTime'] end if attributes.has_key?(:'billExpense') self.bill_expense = attributes[:'billExpense'] end if attributes.has_key?(:'billProduct') self.bill_product = attributes[:'billProduct'] end if attributes.has_key?(:'autoCloseStatus') self.auto_close_status = attributes[:'autoCloseStatus'] end if attributes.has_key?(:'autoAssignNewTicketsFlag') self.auto_assign_new_tickets_flag = attributes[:'autoAssignNewTicketsFlag'] end if attributes.has_key?(:'autoAssignNewECTicketsFlag') self.auto_assign_new_ec_tickets_flag = attributes[:'autoAssignNewECTicketsFlag'] end if attributes.has_key?(:'autoAssignNewPortalTicketsFlag') self.auto_assign_new_portal_tickets_flag = attributes[:'autoAssignNewPortalTicketsFlag'] end if attributes.has_key?(:'discussionsLockedFlag') self.discussions_locked_flag = attributes[:'discussionsLockedFlag'] end if attributes.has_key?(:'timeEntryLockedFlag') self.time_entry_locked_flag = attributes[:'timeEntryLockedFlag'] end if attributes.has_key?(:'notifyEmailFrom') self.notify_email_from = attributes[:'notifyEmailFrom'] end if attributes.has_key?(:'notifyEmailFromName') self.notify_email_from_name = attributes[:'notifyEmailFromName'] end if attributes.has_key?(:'closedLoopDiscussionsFlag') self.closed_loop_discussions_flag = attributes[:'closedLoopDiscussionsFlag'] end if attributes.has_key?(:'closedLoopResolutionFlag') self.closed_loop_resolution_flag = attributes[:'closedLoopResolutionFlag'] end if attributes.has_key?(:'closedLoopInternalAnalysisFlag') self.closed_loop_internal_analysis_flag = attributes[:'closedLoopInternalAnalysisFlag'] end if attributes.has_key?(:'timeEntryDiscussionFlag') self.time_entry_discussion_flag = attributes[:'timeEntryDiscussionFlag'] end if attributes.has_key?(:'timeEntryResolutionFlag') self.time_entry_resolution_flag = attributes[:'timeEntryResolutionFlag'] end if attributes.has_key?(:'timeEntryInternalAnalysisFlag') self.time_entry_internal_analysis_flag = attributes[:'timeEntryInternalAnalysisFlag'] end if attributes.has_key?(:'problemSort') self.problem_sort = attributes[:'problemSort'] end if attributes.has_key?(:'resolutionSort') self.resolution_sort = attributes[:'resolutionSort'] end if attributes.has_key?(:'internalAnalysisSort') self.internal_analysis_sort = attributes[:'internalAnalysisSort'] end if attributes.has_key?(:'emailConnectorAllowReopenClosedFlag') self.email_connector_allow_reopen_closed_flag = attributes[:'emailConnectorAllowReopenClosedFlag'] end if attributes.has_key?(:'emailConnectorReopenStatus') self.email_connector_reopen_status = attributes[:'emailConnectorReopenStatus'] end if attributes.has_key?(:'emailConnectorReopenResourcesFlag') self.email_connector_reopen_resources_flag = attributes[:'emailConnectorReopenResourcesFlag'] end if attributes.has_key?(:'emailConnectorNewTicketNoMatchFlag') self.email_connector_new_ticket_no_match_flag = attributes[:'emailConnectorNewTicketNoMatchFlag'] end if attributes.has_key?(:'emailConnectorNeverReopenByDaysFlag') self.email_connector_never_reopen_by_days_flag = attributes[:'emailConnectorNeverReopenByDaysFlag'] end if attributes.has_key?(:'emailConnectorReopenDaysLimit') self.email_connector_reopen_days_limit = attributes[:'emailConnectorReopenDaysLimit'] end if attributes.has_key?(:'useMemberDisplayNameFlag') self.use_member_display_name_flag = attributes[:'useMemberDisplayNameFlag'] end if attributes.has_key?(:'sendToCCFlag') self.send_to_cc_flag = attributes[:'sendToCCFlag'] end if attributes.has_key?(:'autoAssignTicketOwnerFlag') self.auto_assign_ticket_owner_flag = attributes[:'autoAssignTicketOwnerFlag'] end if attributes.has_key?(:'closedLoopAllFlag') self.closed_loop_all_flag = attributes[:'closedLoopAllFlag'] end if attributes.has_key?(:'allSort') self.all_sort = attributes[:'allSort'] end if attributes.has_key?(:'_info') self._info = attributes[:'_info'] end end |
Instance Attribute Details
#_info ⇒ Object
Metadata of the entity
124 125 126 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 124 def _info @_info end |
#all_sort ⇒ Object
Returns the value of attribute all_sort.
121 122 123 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 121 def all_sort @all_sort end |
#auto_assign_new_ec_tickets_flag ⇒ Object
Returns the value of attribute auto_assign_new_ec_tickets_flag.
67 68 69 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 67 def auto_assign_new_ec_tickets_flag @auto_assign_new_ec_tickets_flag end |
#auto_assign_new_portal_tickets_flag ⇒ Object
Returns the value of attribute auto_assign_new_portal_tickets_flag.
69 70 71 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 69 def auto_assign_new_portal_tickets_flag @auto_assign_new_portal_tickets_flag end |
#auto_assign_new_tickets_flag ⇒ Object
Returns the value of attribute auto_assign_new_tickets_flag.
65 66 67 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 65 def auto_assign_new_tickets_flag @auto_assign_new_tickets_flag end |
#auto_assign_ticket_owner_flag ⇒ Object
Returns the value of attribute auto_assign_ticket_owner_flag.
117 118 119 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 117 def auto_assign_ticket_owner_flag @auto_assign_ticket_owner_flag end |
#auto_close_status ⇒ Object
Returns the value of attribute auto_close_status.
63 64 65 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 63 def auto_close_status @auto_close_status end |
#bill_expense ⇒ Object
Returns the value of attribute bill_expense.
59 60 61 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 59 def bill_expense @bill_expense end |
#bill_product ⇒ Object
Returns the value of attribute bill_product.
61 62 63 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 61 def bill_product @bill_product end |
#bill_ticket_separately_flag ⇒ Object
Returns the value of attribute bill_ticket_separately_flag.
39 40 41 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 39 def bill_ticket_separately_flag @bill_ticket_separately_flag end |
#bill_tickets_after_closed_flag ⇒ Object
Returns the value of attribute bill_tickets_after_closed_flag.
37 38 39 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 37 def bill_tickets_after_closed_flag @bill_tickets_after_closed_flag end |
#bill_time ⇒ Object
Returns the value of attribute bill_time.
57 58 59 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 57 def bill_time @bill_time end |
#bill_unapproved_time_expense_flag ⇒ Object
Returns the value of attribute bill_unapproved_time_expense_flag.
41 42 43 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 41 def bill_unapproved_time_expense_flag @bill_unapproved_time_expense_flag end |
#board_icon ⇒ Object
Returns the value of attribute board_icon.
35 36 37 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 35 def board_icon @board_icon end |
#closed_loop_all_flag ⇒ Object
Returns the value of attribute closed_loop_all_flag.
119 120 121 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 119 def closed_loop_all_flag @closed_loop_all_flag end |
#closed_loop_discussions_flag ⇒ Object
Returns the value of attribute closed_loop_discussions_flag.
79 80 81 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 79 def closed_loop_discussions_flag @closed_loop_discussions_flag end |
#closed_loop_internal_analysis_flag ⇒ Object
Returns the value of attribute closed_loop_internal_analysis_flag.
83 84 85 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 83 def closed_loop_internal_analysis_flag @closed_loop_internal_analysis_flag end |
#closed_loop_resolution_flag ⇒ Object
Returns the value of attribute closed_loop_resolution_flag.
81 82 83 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 81 def closed_loop_resolution_flag @closed_loop_resolution_flag end |
#contact_template ⇒ Object
Returns the value of attribute contact_template.
21 22 23 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 21 def contact_template @contact_template end |
#department ⇒ Object
Returns the value of attribute department.
13 14 15 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 13 def department @department end |
#discussions_locked_flag ⇒ Object
Returns the value of attribute discussions_locked_flag.
71 72 73 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 71 def discussions_locked_flag @discussions_locked_flag end |
#dispatch_member ⇒ Object
Returns the value of attribute dispatch_member.
45 46 47 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 45 def dispatch_member @dispatch_member end |
#duty_manager_member ⇒ Object
Returns the value of attribute duty_manager_member.
49 50 51 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 49 def duty_manager_member @duty_manager_member end |
#email_connector_allow_reopen_closed_flag ⇒ Object
Returns the value of attribute email_connector_allow_reopen_closed_flag.
97 98 99 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 97 def email_connector_allow_reopen_closed_flag @email_connector_allow_reopen_closed_flag end |
#email_connector_never_reopen_by_days_flag ⇒ Object
This field can only be set when emailConnectorAllowReopenClosed is true
109 110 111 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 109 def email_connector_never_reopen_by_days_flag @email_connector_never_reopen_by_days_flag end |
#email_connector_new_ticket_no_match_flag ⇒ Object
This field can only be set when emailConnectorAllowReopenClosed is true
106 107 108 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 106 def email_connector_new_ticket_no_match_flag @email_connector_new_ticket_no_match_flag end |
#email_connector_reopen_days_limit ⇒ Object
Returns the value of attribute email_connector_reopen_days_limit.
111 112 113 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 111 def email_connector_reopen_days_limit @email_connector_reopen_days_limit end |
#email_connector_reopen_resources_flag ⇒ Object
This field can only be set when emailConnectorAllowReopenClosed is true
103 104 105 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 103 def email_connector_reopen_resources_flag @email_connector_reopen_resources_flag end |
#email_connector_reopen_status ⇒ Object
This field is only required when emailConnectorAllowReopenClosed is true
100 101 102 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 100 def email_connector_reopen_status @email_connector_reopen_status end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 7 def id @id end |
#inactive_flag ⇒ Object
Returns the value of attribute inactive_flag.
15 16 17 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 15 def inactive_flag @inactive_flag end |
#internal_analysis_sort ⇒ Object
Returns the value of attribute internal_analysis_sort.
95 96 97 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 95 def internal_analysis_sort @internal_analysis_sort end |
#location ⇒ Object
Returns the value of attribute location.
11 12 13 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 11 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 9 def name @name end |
#notify_email_from ⇒ Object
Returns the value of attribute notify_email_from.
75 76 77 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 75 def notify_email_from @notify_email_from end |
#notify_email_from_name ⇒ Object
Returns the value of attribute notify_email_from_name.
77 78 79 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 77 def notify_email_from_name @notify_email_from_name end |
#oncall_member ⇒ Object
Returns the value of attribute oncall_member.
51 52 53 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 51 def oncall_member @oncall_member end |
#override_billing_setup_flag ⇒ Object
Returns the value of attribute override_billing_setup_flag.
43 44 45 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 43 def override_billing_setup_flag @override_billing_setup_flag end |
#problem_sort ⇒ Object
Returns the value of attribute problem_sort.
91 92 93 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 91 def problem_sort @problem_sort end |
#project_flag ⇒ Object
Returns the value of attribute project_flag.
27 28 29 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 27 def project_flag @project_flag end |
#resolution_sort ⇒ Object
Returns the value of attribute resolution_sort.
93 94 95 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 93 def resolution_sort @resolution_sort end |
#resource_template ⇒ Object
Returns the value of attribute resource_template.
25 26 27 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 25 def resource_template @resource_template end |
#send_to_cc_flag ⇒ Object
Returns the value of attribute send_to_cc_flag.
115 116 117 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 115 def send_to_cc_flag @send_to_cc_flag end |
#send_to_contact_flag ⇒ Object
Returns the value of attribute send_to_contact_flag.
19 20 21 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 19 def send_to_contact_flag @send_to_contact_flag end |
#send_to_resource_flag ⇒ Object
Returns the value of attribute send_to_resource_flag.
23 24 25 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 23 def send_to_resource_flag @send_to_resource_flag end |
#service_manager_member ⇒ Object
Returns the value of attribute service_manager_member.
47 48 49 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 47 def service_manager_member @service_manager_member end |
#show_dependencies_flag ⇒ Object
This field only shows if it is Project Board.
30 31 32 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 30 def show_dependencies_flag @show_dependencies_flag end |
#show_estimates_flag ⇒ Object
This field only shows if it is Project Board.
33 34 35 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 33 def show_estimates_flag @show_estimates_flag end |
#sign_off_template ⇒ Object
Returns the value of attribute sign_off_template.
17 18 19 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 17 def sign_off_template @sign_off_template end |
#time_entry_discussion_flag ⇒ Object
Returns the value of attribute time_entry_discussion_flag.
85 86 87 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 85 def time_entry_discussion_flag @time_entry_discussion_flag end |
#time_entry_internal_analysis_flag ⇒ Object
Returns the value of attribute time_entry_internal_analysis_flag.
89 90 91 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 89 def time_entry_internal_analysis_flag @time_entry_internal_analysis_flag end |
#time_entry_locked_flag ⇒ Object
Returns the value of attribute time_entry_locked_flag.
73 74 75 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 73 def time_entry_locked_flag @time_entry_locked_flag end |
#time_entry_resolution_flag ⇒ Object
Returns the value of attribute time_entry_resolution_flag.
87 88 89 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 87 def time_entry_resolution_flag @time_entry_resolution_flag end |
#use_member_display_name_flag ⇒ Object
Returns the value of attribute use_member_display_name_flag.
113 114 115 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 113 def use_member_display_name_flag @use_member_display_name_flag end |
#work_role ⇒ Object
Returns the value of attribute work_role.
53 54 55 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 53 def work_role @work_role end |
#work_type ⇒ Object
Returns the value of attribute work_type.
55 56 57 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 55 def work_type @work_type end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 149 def self.attribute_map { :'id' => :'id', :'name' => :'name', :'location' => :'location', :'department' => :'department', :'inactive_flag' => :'inactiveFlag', :'sign_off_template' => :'signOffTemplate', :'send_to_contact_flag' => :'sendToContactFlag', :'contact_template' => :'contactTemplate', :'send_to_resource_flag' => :'sendToResourceFlag', :'resource_template' => :'resourceTemplate', :'project_flag' => :'projectFlag', :'show_dependencies_flag' => :'showDependenciesFlag', :'show_estimates_flag' => :'showEstimatesFlag', :'board_icon' => :'boardIcon', :'bill_tickets_after_closed_flag' => :'billTicketsAfterClosedFlag', :'bill_ticket_separately_flag' => :'billTicketSeparatelyFlag', :'bill_unapproved_time_expense_flag' => :'billUnapprovedTimeExpenseFlag', :'override_billing_setup_flag' => :'overrideBillingSetupFlag', :'dispatch_member' => :'dispatchMember', :'service_manager_member' => :'serviceManagerMember', :'duty_manager_member' => :'dutyManagerMember', :'oncall_member' => :'oncallMember', :'work_role' => :'workRole', :'work_type' => :'workType', :'bill_time' => :'billTime', :'bill_expense' => :'billExpense', :'bill_product' => :'billProduct', :'auto_close_status' => :'autoCloseStatus', :'auto_assign_new_tickets_flag' => :'autoAssignNewTicketsFlag', :'auto_assign_new_ec_tickets_flag' => :'autoAssignNewECTicketsFlag', :'auto_assign_new_portal_tickets_flag' => :'autoAssignNewPortalTicketsFlag', :'discussions_locked_flag' => :'discussionsLockedFlag', :'time_entry_locked_flag' => :'timeEntryLockedFlag', :'notify_email_from' => :'notifyEmailFrom', :'notify_email_from_name' => :'notifyEmailFromName', :'closed_loop_discussions_flag' => :'closedLoopDiscussionsFlag', :'closed_loop_resolution_flag' => :'closedLoopResolutionFlag', :'closed_loop_internal_analysis_flag' => :'closedLoopInternalAnalysisFlag', :'time_entry_discussion_flag' => :'timeEntryDiscussionFlag', :'time_entry_resolution_flag' => :'timeEntryResolutionFlag', :'time_entry_internal_analysis_flag' => :'timeEntryInternalAnalysisFlag', :'problem_sort' => :'problemSort', :'resolution_sort' => :'resolutionSort', :'internal_analysis_sort' => :'internalAnalysisSort', :'email_connector_allow_reopen_closed_flag' => :'emailConnectorAllowReopenClosedFlag', :'email_connector_reopen_status' => :'emailConnectorReopenStatus', :'email_connector_reopen_resources_flag' => :'emailConnectorReopenResourcesFlag', :'email_connector_new_ticket_no_match_flag' => :'emailConnectorNewTicketNoMatchFlag', :'email_connector_never_reopen_by_days_flag' => :'emailConnectorNeverReopenByDaysFlag', :'email_connector_reopen_days_limit' => :'emailConnectorReopenDaysLimit', :'use_member_display_name_flag' => :'useMemberDisplayNameFlag', :'send_to_cc_flag' => :'sendToCCFlag', :'auto_assign_ticket_owner_flag' => :'autoAssignTicketOwnerFlag', :'closed_loop_all_flag' => :'closedLoopAllFlag', :'all_sort' => :'allSort', :'_info' => :'_info' } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 240 241 242 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 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 211 def self.swagger_types { :'id' => :'Integer', :'name' => :'String', :'location' => :'SystemLocationReference', :'department' => :'SystemDepartmentReference', :'inactive_flag' => :'BOOLEAN', :'sign_off_template' => :'ServiceSignoffReference', :'send_to_contact_flag' => :'BOOLEAN', :'contact_template' => :'ServiceEmailTemplateReference', :'send_to_resource_flag' => :'BOOLEAN', :'resource_template' => :'ServiceEmailTemplateReference', :'project_flag' => :'BOOLEAN', :'show_dependencies_flag' => :'BOOLEAN', :'show_estimates_flag' => :'BOOLEAN', :'board_icon' => :'DocumentReference', :'bill_tickets_after_closed_flag' => :'BOOLEAN', :'bill_ticket_separately_flag' => :'BOOLEAN', :'bill_unapproved_time_expense_flag' => :'BOOLEAN', :'override_billing_setup_flag' => :'BOOLEAN', :'dispatch_member' => :'MemberReference', :'service_manager_member' => :'MemberReference', :'duty_manager_member' => :'MemberReference', :'oncall_member' => :'MemberReference', :'work_role' => :'WorkRoleReference', :'work_type' => :'WorkTypeReference', :'bill_time' => :'String', :'bill_expense' => :'String', :'bill_product' => :'String', :'auto_close_status' => :'ServiceStatusReference', :'auto_assign_new_tickets_flag' => :'BOOLEAN', :'auto_assign_new_ec_tickets_flag' => :'BOOLEAN', :'auto_assign_new_portal_tickets_flag' => :'BOOLEAN', :'discussions_locked_flag' => :'BOOLEAN', :'time_entry_locked_flag' => :'BOOLEAN', :'notify_email_from' => :'String', :'notify_email_from_name' => :'String', :'closed_loop_discussions_flag' => :'BOOLEAN', :'closed_loop_resolution_flag' => :'BOOLEAN', :'closed_loop_internal_analysis_flag' => :'BOOLEAN', :'time_entry_discussion_flag' => :'BOOLEAN', :'time_entry_resolution_flag' => :'BOOLEAN', :'time_entry_internal_analysis_flag' => :'BOOLEAN', :'problem_sort' => :'String', :'resolution_sort' => :'String', :'internal_analysis_sort' => :'String', :'email_connector_allow_reopen_closed_flag' => :'BOOLEAN', :'email_connector_reopen_status' => :'ServiceStatusReference', :'email_connector_reopen_resources_flag' => :'BOOLEAN', :'email_connector_new_ticket_no_match_flag' => :'BOOLEAN', :'email_connector_never_reopen_by_days_flag' => :'BOOLEAN', :'email_connector_reopen_days_limit' => :'Integer', :'use_member_display_name_flag' => :'BOOLEAN', :'send_to_cc_flag' => :'BOOLEAN', :'auto_assign_ticket_owner_flag' => :'BOOLEAN', :'closed_loop_all_flag' => :'BOOLEAN', :'all_sort' => :'String', :'_info' => :'Metadata' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 671 def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && name == o.name && location == o.location && department == o.department && inactive_flag == o.inactive_flag && sign_off_template == o.sign_off_template && send_to_contact_flag == o.send_to_contact_flag && contact_template == o.contact_template && send_to_resource_flag == o.send_to_resource_flag && resource_template == o.resource_template && project_flag == o.project_flag && show_dependencies_flag == o.show_dependencies_flag && show_estimates_flag == o.show_estimates_flag && board_icon == o.board_icon && bill_tickets_after_closed_flag == o.bill_tickets_after_closed_flag && bill_ticket_separately_flag == o.bill_ticket_separately_flag && bill_unapproved_time_expense_flag == o.bill_unapproved_time_expense_flag && override_billing_setup_flag == o.override_billing_setup_flag && dispatch_member == o.dispatch_member && service_manager_member == o.service_manager_member && duty_manager_member == o.duty_manager_member && oncall_member == o.oncall_member && work_role == o.work_role && work_type == o.work_type && bill_time == o.bill_time && bill_expense == o.bill_expense && bill_product == o.bill_product && auto_close_status == o.auto_close_status && auto_assign_new_tickets_flag == o.auto_assign_new_tickets_flag && auto_assign_new_ec_tickets_flag == o.auto_assign_new_ec_tickets_flag && auto_assign_new_portal_tickets_flag == o.auto_assign_new_portal_tickets_flag && discussions_locked_flag == o.discussions_locked_flag && time_entry_locked_flag == o.time_entry_locked_flag && notify_email_from == o.notify_email_from && notify_email_from_name == o.notify_email_from_name && closed_loop_discussions_flag == o.closed_loop_discussions_flag && closed_loop_resolution_flag == o.closed_loop_resolution_flag && closed_loop_internal_analysis_flag == o.closed_loop_internal_analysis_flag && time_entry_discussion_flag == o.time_entry_discussion_flag && time_entry_resolution_flag == o.time_entry_resolution_flag && time_entry_internal_analysis_flag == o.time_entry_internal_analysis_flag && problem_sort == o.problem_sort && resolution_sort == o.resolution_sort && internal_analysis_sort == o.internal_analysis_sort && email_connector_allow_reopen_closed_flag == o.email_connector_allow_reopen_closed_flag && email_connector_reopen_status == o.email_connector_reopen_status && email_connector_reopen_resources_flag == o.email_connector_reopen_resources_flag && email_connector_new_ticket_no_match_flag == o.email_connector_new_ticket_no_match_flag && email_connector_never_reopen_by_days_flag == o.email_connector_never_reopen_by_days_flag && email_connector_reopen_days_limit == o.email_connector_reopen_days_limit && use_member_display_name_flag == o.use_member_display_name_flag && send_to_cc_flag == o.send_to_cc_flag && auto_assign_ticket_owner_flag == o.auto_assign_ticket_owner_flag && closed_loop_all_flag == o.closed_loop_all_flag && all_sort == o.all_sort && _info == o._info end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 768 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
834 835 836 837 838 839 840 841 842 843 844 845 846 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 834 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
747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 747 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
734 735 736 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 734 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
740 741 742 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 740 def hash [id, name, location, department, inactive_flag, sign_off_template, send_to_contact_flag, contact_template, send_to_resource_flag, resource_template, project_flag, show_dependencies_flag, show_estimates_flag, board_icon, bill_tickets_after_closed_flag, bill_ticket_separately_flag, bill_unapproved_time_expense_flag, override_billing_setup_flag, dispatch_member, service_manager_member, duty_manager_member, oncall_member, work_role, work_type, bill_time, bill_expense, bill_product, auto_close_status, auto_assign_new_tickets_flag, auto_assign_new_ec_tickets_flag, auto_assign_new_portal_tickets_flag, discussions_locked_flag, time_entry_locked_flag, notify_email_from, notify_email_from_name, closed_loop_discussions_flag, closed_loop_resolution_flag, closed_loop_internal_analysis_flag, time_entry_discussion_flag, time_entry_resolution_flag, time_entry_internal_analysis_flag, problem_sort, resolution_sort, internal_analysis_sort, email_connector_allow_reopen_closed_flag, email_connector_reopen_status, email_connector_reopen_resources_flag, email_connector_new_ticket_no_match_flag, email_connector_never_reopen_by_days_flag, email_connector_reopen_days_limit, use_member_display_name_flag, send_to_cc_flag, auto_assign_ticket_owner_flag, closed_loop_all_flag, all_sort, _info].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 508 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 > 50 invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.") end if @location.nil? invalid_properties.push("invalid value for 'location', location cannot be nil.") end if @department.nil? invalid_properties.push("invalid value for 'department', department cannot be nil.") end if !@notify_email_from.nil? && @notify_email_from.to_s.length > 50 invalid_properties.push("invalid value for 'notify_email_from', the character length must be smaller than or equal to 50.") end if !@notify_email_from_name.nil? && @notify_email_from_name.to_s.length > 60 invalid_properties.push("invalid value for 'notify_email_from_name', the character length must be smaller than or equal to 60.") end return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
814 815 816 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 814 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
820 821 822 823 824 825 826 827 828 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 820 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
808 809 810 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 808 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 |
# File 'lib/connectwise-ruby-sdk/models/board.rb', line 539 def valid? return false if @name.nil? return false if @name.to_s.length > 50 return false if @location.nil? return false if @department.nil? bill_time_validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"]) return false unless bill_time_validator.valid?(@bill_time) bill_expense_validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"]) return false unless bill_expense_validator.valid?(@bill_expense) bill_product_validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"]) return false unless bill_product_validator.valid?(@bill_product) return false if !@notify_email_from.nil? && @notify_email_from.to_s.length > 50 return false if !@notify_email_from_name.nil? && @notify_email_from_name.to_s.length > 60 problem_sort_validator = EnumAttributeValidator.new('String', ["Ascending", "Descending"]) return false unless problem_sort_validator.valid?(@problem_sort) resolution_sort_validator = EnumAttributeValidator.new('String', ["Ascending", "Descending"]) return false unless resolution_sort_validator.valid?(@resolution_sort) internal_analysis_sort_validator = EnumAttributeValidator.new('String', ["Ascending", "Descending"]) return false unless internal_analysis_sort_validator.valid?(@internal_analysis_sort) all_sort_validator = EnumAttributeValidator.new('String', ["Ascending", "Descending"]) return false unless all_sort_validator.valid?(@all_sort) return true end |