Loading...
Searching...
No Matches
gams.control.execution.GamsEngineConfiguration Class Reference

Configuration that allows the execution of jobs on a specific GAMS Engine instance. More...

Public Member Functions

def __init__ (self, host=None, username=None, password=None, jwt=None, namespace=None)
 Constructor.
 

Protected Member Functions

def _get_auth_header (self)
 Returns authentication heade.
 

Properties

property host = property(get_host, set_host)
 Base url.
 
property username = property(get_username, set_username)
 Username for HTTP basic authentication.
 
property password = property(get_password, set_password)
 Password for HTTP basic authentication.
 
property jwt = property(get_jwt, set_jwt)
 JWT token to use for Bearer authentication.
 
property namespace = property(get_namespace, set_namespace)
 Namespace in which the job is to be executed.
 

Detailed Description

Configuration that allows the execution of jobs on a specific GAMS Engine instance.

Constructor & Destructor Documentation

◆ __init__()

def gams.control.execution.GamsEngineConfiguration.__init__ (   self,
  host = None,
  username = None,
  password = None,
  jwt = None,
  namespace = None 
)

Constructor.

Parameters
hostBase url
usernameUsername for HTTP basic authentication
passwordPassword for HTTP basic authentication
jwtJWT token to use for Bearer authentication. Will only be used if username is empty.
namespaceNamespace in which the job is to be executed

Member Function Documentation

◆ _get_auth_header()

def gams.control.execution.GamsEngineConfiguration._get_auth_header (   self)
protected

Returns authentication heade.

Property Documentation

◆ jwt

property gams.control.execution.GamsEngineConfiguration.jwt = property(get_jwt, set_jwt)
static

JWT token to use for Bearer authentication.

Will only be used if username is empty.