Package schrodinger :: Package application :: Package licensing :: Module netsuiteapi
[hide private]
[frames] | no frames]

Module netsuiteapi

Functions [hide private]
 
get_license_request_info(netsuite_license_hash_key)
This is an API call to the Schrodinger NetSuite instance in order to get the database data associated with a Schrodinger License Request Hash Key.
 
retrieve_license_file(netsuite_license_hash_key, machine_name_list, host_id_list, lmgrdport=None, schrodport=None)
This is an API call to the Schrodinger NetSuite instance in order to process a License Key Retrieval request associated with a License Request Hash Key using machine data input provided from the user.
Variables [hide private]
  SCHRODINGER_NETSUITE_LICENSING_API_URL = 'https://forms.netsui...
  HTTP_STATUS_CODE_OK = 200
  LICENSE_TYPE = 'license_type'
  LICENSE_STRING = 'license_key'
  NODELOCKED = 'Node-locked'
  SERVER = 'Floating'
  DEFAULT_LMGRD_PORT = 27008
  DEFAULT_SCHROD_PORT = 53000
  LICENSE_REMAINING = 'licenses_remaining_count'
  MAX_COUNT = 'licenses_total_count'
  ERROR_CODE = 'error_code'
  ERROR_MSG = 'error_message'
  __package__ = 'schrodinger.application.licensing'
Function Details [hide private]

get_license_request_info(netsuite_license_hash_key)

 

   This is an API call to the Schrodinger NetSuite instance in order
   to get the database data associated with a Schrodinger License Request
   Hash Key.

   NetSuite allows its customers to write custom code and deploy it within
   the NetSuite domain/environment.  Therefore, we can construct and support
   arbitrary API calls
within forms.netsuite.com.  On the NetSuite side,
   we are simply reading Licensing data stored in our database (the same
   database currently used to track, store, and modify
Licenses issued
   to customers of Schrodinger).

   Args:
     netsuite_license_hash_key (str): The unique NetSuite License Request
     hash key associated with a License Request stored in the Schrodinger
     NetSuite database.

   Returns:
     dict: A Dictionary (parsed from JSON) containing the meta-data for
     a license, or more specifically the corresponding License Request
     record fields and values stored in NetSuite.

   

retrieve_license_file(netsuite_license_hash_key, machine_name_list, host_id_list, lmgrdport=None, schrodport=None)

 

This is an API call to the Schrodinger NetSuite instance in order
to process a License Key Retrieval request associated with a License
Request Hash Key using machine data input provided from the user.

Args:
    netsuite_license_hash_key (str): The unique NetSuite License
    Request hash key associated with a License Request stored in the
    Schrodinger NetSuite database.  machine_name_list (str list): The
    machine names describing the computers which will be running the
    FlexLM software.  host_id_list (str list): The 12 digit hexadecimal
    Host ID/MAC address strings for the servers or nodes which will
    be running the FlexLM software.

Returns:
    str: A string containing the license key generated by the Licensing
    Server and processed through NetSuite for the given License Request
    and parameters.


Variables Details [hide private]

SCHRODINGER_NETSUITE_LICENSING_API_URL

Value:
'https://forms.netsuite.com/app/site/hosting/scriptlet.nl?script=234&d\
eploy=1&compid=862770&h=4c6946387d3a5517ea15'