Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, api_client=None):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
def update_params_for_auth(self, headers, querys, auth_settings):
"""
Updates header and query params based on authentication setting.
:param headers: Header parameters dict to be updated.
:param querys: Query parameters tuple list to be updated.
:param auth_settings: Authentication setting identifiers list.
"""
config = Configuration()
if not auth_settings:
return
for auth in auth_settings:
auth_setting = config.auth_settings().get(auth)
if auth_setting:
if not auth_setting['value']:
continue
elif auth_setting['in'] == 'header':
headers[auth_setting['key']] = auth_setting['value']
elif auth_setting['in'] == 'query':
querys.append((auth_setting['key'], auth_setting['value']))
else:
raise ValueError(
'Authentication token must be in `query` or `header`'
def __init__(self, api_client=None):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
def __init__(self, api_client=None):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
def __init__(self, api_client=None):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
"""
Constructor of the class.
"""
self.rest_client = RESTClientObject()
self.default_headers = {}
if header_name is not None:
self.default_headers[header_name] = header_value
if host is None:
self.host = Configuration().host
else:
self.host = host
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/1.0.0/python'
def __init__(self, api_client=None):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
"RemoteProcessGroupsEntity", "ReportingTaskDTO", "ReportingTaskEntity", "ReportingTaskTypesEntity",
"ReportingTasksEntity", "ResourceDTO", "ResourcesEntity", "RevisionDTO", "ScheduleComponentsEntity",
"SearchResultsDTO", "SearchResultsEntity", "Set", "SnippetDTO", "SnippetEntity", "StateEntryDTO", "StateMapDTO",
"StatusDescriptorDTO", "StatusHistoryDTO", "StatusHistoryEntity", "StatusSnapshotDTO", "StorageUsageDTO",
"StreamingOutput", "SubmitReplayRequestEntity", "SystemDiagnosticsDTO", "SystemDiagnosticsEntity",
"SystemDiagnosticsSnapshotDTO", "TemplateDTO", "TemplateEntity", "TemplatesEntity", "TenantDTO", "TenantEntity",
"TenantsEntity", "TransactionResultEntity", "UpdateControllerServiceReferenceRequestEntity", "UserDTO",
"UserEntity", "UserGroupDTO", "UserGroupEntity", "UserGroupsEntity", "UsersEntity", "VersionInfoDTO", "AccessApi",
"ConnectionsApi", "ControllerApi", "ControllerservicesApi", "CountersApi", "DatatransferApi", "FlowApi",
"FlowfilequeuesApi", "FunnelApi", "InputportsApi", "LabelsApi", "OutputportsApi", "PoliciesApi", "ProcessgroupsApi",
"ProcessorsApi", "ProvenanceApi", "ProvenanceeventsApi", "RemoteprocessgroupsApi", "ReportingtasksApi",
"ResourcesApi", "SitetositeApi", "SnippetsApi", "SystemdiagnosticsApi", "TemplatesApi", "TenantsApi", "ApiClient",
"Configuration"
]
configuration = Configuration()
def __init__(self, api_client=None):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
def __init__(self, api_client=None):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client