File: licenses.py

package info (click to toggle)
python-softlayer 6.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,100 kB
  • sloc: python: 53,771; makefile: 289; sh: 57
file content (25 lines) | stat: -rw-r--r-- 551 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""
    SoftLayer.license
    ~~~~~~~~~~~~~~~
    License Manager
    :license: MIT, see LICENSE for more details.
"""

# pylint: disable=too-many-public-methods

LICENSE_PACKAGE_ID = 301


class LicensesManager(object):
    """Manages account lincese."""

    def __init__(self, client):
        self.client = client

    def get_create_options(self):
        """Returns valid options for ordering Licenses.

        """

        return self.client.call('SoftLayer_Product_Package', 'getItems',
                                id=LICENSE_PACKAGE_ID)