How to use the nipyapi.swagger_client.configuration.Configuration function in nipyapi

To help you get started, we’ve selected a few nipyapi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Chaffelson / nipyapi / nipyapi / swagger_client / apis / controllerservices_api.py View on Github external
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
github Chaffelson / nipyapi / nipyapi / swagger_client / api_client.py View on Github external
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`'
github Chaffelson / nipyapi / nipyapi / swagger_client / apis / provenanceevents_api.py View on Github external
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
github Chaffelson / nipyapi / nipyapi / swagger_client / apis / reportingtasks_api.py View on Github external
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
github Chaffelson / nipyapi / nipyapi / swagger_client / apis / access_api.py View on Github external
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
github Chaffelson / nipyapi / nipyapi / swagger_client / api_client.py View on Github external
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'
github Chaffelson / nipyapi / nipyapi / swagger_client / apis / outputports_api.py View on Github external
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
github Chaffelson / nipyapi / nipyapi / swagger_client / __init__.py View on Github external
"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()
github Chaffelson / nipyapi / nipyapi / swagger_client / apis / policies_api.py View on Github external
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
github Chaffelson / nipyapi / nipyapi / swagger_client / apis / processgroups_api.py View on Github external
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