@@ -101,6 +101,7 @@ def enable_notifications(self, notifications_names):
101101 :returns: True on success
102102
103103 Example::
104+
104105 enable_notifications(['Order Approved','Reload Complete'])
105106 """
106107
@@ -120,6 +121,7 @@ def disable_notifications(self, notifications_names):
120121 :returns: True on success
121122
122123 Example::
124+
123125 disable_notifications(['Order Approved','Reload Complete'])
124126 """
125127
@@ -140,6 +142,7 @@ def add_permissions(self, user_id, permissions):
140142 :returns: True on success, Exception otherwise
141143
142144 Example::
145+
143146 add_permissions(123, ['BANDWIDTH_MANAGE'])
144147 """
145148 pretty_permissions = self .format_permission_object (permissions )
@@ -154,6 +157,7 @@ def remove_permissions(self, user_id, permissions):
154157 :returns: True on success, Exception otherwise
155158
156159 Example::
160+
157161 remove_permissions(123, ['BANDWIDTH_MANAGE'])
158162 """
159163 pretty_permissions = self .format_permission_object (permissions )
@@ -196,7 +200,9 @@ def get_logins(self, user_id, start_date=None):
196200 :param int id: User id to get
197201 :param string start_date: "%m/%d/%Y %H:%M:%s" formatted string.
198202 :returns: list https://softlayer.github.io/reference/datatypes/SoftLayer_User_Customer_Access_Authentication/
203+
199204 Example::
205+
200206 get_logins(123, '04/08/2018 0:0:0')
201207 """
202208
@@ -366,7 +372,6 @@ def vpn_enable_or_disable(self, user_id, value):
366372
367373 :param int user_id: User to edit.
368374 :param bool value: Value for vpn enable flag.
369- or
370375 :param bool value: Value for vpn disable flag.
371376 """
372377 user_object = {'sslVpnAllowedFlag' : value }
@@ -426,93 +431,86 @@ def get_overrides_list(self, user_id, subnet_ids):
426431 def grant_hardware_access (self , user_id , hardware_id ):
427432 """Grants the user access to a single hardware device.
428433
429- :param int user_id:
430- :param int hardware_id
431-
434+ :param int user_id: User Id
435+ :param int hardware_id: Hardware Id
432436 :returns: true
433437 """
434438 return self .user_service .addHardwareAccess (hardware_id , id = user_id )
435439
436440 def grant_virtual_access (self , user_id , virtual_id ):
437441 """Grants the user access to a single VS device.
438442
439- :param int user_id:
440- :param int virtual_id
441-
443+ :param int user_id: User Id
444+ :param int virtual_id: Hardware Id
442445 :returns: true
443446 """
444447 return self .user_service .addVirtualGuestAccess (virtual_id , id = user_id )
445448
446449 def grant_dedicated_access (self , user_id , dedicated_id ):
447450 """Grants the user access to a single dedicated host device.
448451
449- :param int user_id:
450- :param int dedicated_id
451-
452+ :param int user_id: User Id
453+ :param int dedicated_id: Dedicatd Host Id
452454 :returns: true
453455 """
454456 return self .user_service .addDedicatedHostAccess (dedicated_id , id = user_id )
455457
456458 def remove_hardware_access (self , user_id , hardware_id ):
457459 """Remove hardware from a portal user’s hardware access list.
458460
459- :param int user_id:
460- :param int hardware_id
461-
461+ :param int user_id: User Id
462+ :param int hardware_id: Hardware Id
462463 :returns: true
463464 """
464465 return self .user_service .removeHardwareAccess (hardware_id , id = user_id )
465466
466467 def remove_virtual_access (self , user_id , virtual_id ):
467468 """Remove hardware from a portal user’s virtual guests access list.
468469
469- :param int user_id:
470- :param int hardware_id
471-
470+ :param int user_id: User Id
471+ :param int hardware_id: Hardware Id
472472 :returns: true
473473 """
474474 return self .user_service .removeVirtualGuestAccess (virtual_id , id = user_id )
475475
476476 def remove_dedicated_access (self , user_id , dedicated_id ):
477477 """Remove hardware from a portal user’s dedicated host access list.
478478
479- :param int user_id:
480- :param int dedicated_id
481-
479+ :param int user_id: User Id
480+ :param int dedicated_id: Dedicated Host Id
482481 :returns: true
483482 """
484483 return self .user_service .removeDedicatedHostAccess (dedicated_id , id = user_id )
485484
486485 def get_user_hardware (self , user_id ):
487486 """User Hardware list.
488487
489- :param int user_id:
488+ :param int user_id: User Id
490489 :return: List hardware relate to user
491490 """
492491 return self .user_service .getHardware (id = user_id )
493492
494493 def get_user_dedicated_host (self , user_id ):
495494 """User dedicate host list.
496495
497- :param int user_id:
496+ :param int user_id: User Id
498497 :return: List dedicated host relate to user
499498 """
500499 return self .user_service .getDedicatedHosts (id = user_id )
501500
502501 def get_user_virtuals (self , user_id ):
503502 """User virtual guest list.
504503
505- :param int user_id:
504+ :param int user_id: User Id
506505 :return: List virtual guest relate to user
507506 """
508507 return self .user_service .getVirtualGuests (id = user_id )
509508
510509 def update_vpn_password (self , user_id , password ):
511510 """Update a user's VPN password.
512511
513- :param int user_id:
514- :param string password:
515-
512+ :param int user_id: User Id
513+ :param string password: Password
516514 :returns: true
517515 """
518516 return self .user_service .updateVpnPassword (password , id = user_id )
0 commit comments