src/wiotp/sdk/api/dsc/connectors.py
def create(self, name, serviceId, timezone, description, enabled):
        """
        Create a connector for the organization in the Watson IoT Platform. 
        The connector must reference the target service that the Watson IoT Platform will store the IoT data in.
        Parameters:
            - name (string) - Name of the service
            - serviceId (string) - must be either eventstreams or cloudant
            - timezone (string) - 
            - description (string) - description of the service
            - enabled (boolean) - enabled
        Throws APIException on failure
        """

        connector = {
            "name": name,
            "description": description,
            "serviceId": serviceId,
            "timezone": timezone,
            "enabled": enabled,
        }

        url = "api/v0002/historianconnectors"

        r = self._apiClient.post(url, data=connector)
        if r.status_code == 201:
            return Connector(apiClient=self._apiClient, **r.json())
        else:
            raise ApiException(r)
def create(self, name, serviceId, timezone, description, enabled):
        """
        Create a connector for the organization in the Watson IoT Platform. 
        The connector must reference the target service that the Watson IoT Platform will store the IoT data in.
        Parameters:
            - name (string) - Name of the service
            - serviceId (string) - must be either eventstreams or cloudant
            - timezone (string) - 
            - description (string) - description of the service
            - enabled (boolean) - enabled
        Throws APIException on failure
        """

        connector = {
            "name": name,
            "description": description,
            "serviceId": serviceId,
            "timezone": timezone,
            "enabled": enabled,
        }

        url = "api/v0002/historianconnectors"

        r = self._apiClient.post(url, data=connector)
        if r.status_code == 201:
            return Connector(apiClient=self._apiClient, **r.json())
        else:
            raise ApiException(r)
def create ( self , name , serviceId , timezone , description , enabled ) : connector = { "name" : name , "description" : description , "serviceId" : serviceId , "timezone" : timezone , "enabled" : enabled , } url = "api/v0002/historianconnectors" r = self . _apiClient . post ( url , data = connector ) if r . status_code == 201 : return Connector ( apiClient = self . _apiClient , * * r . json ( ) ) else : raise ApiException ( r )
Create a connector for the organization in the Watson IoT Platform. 
        The connector must reference the target service that the Watson IoT Platform will store the IoT data in.
        Parameters:
            - name (string) - Name of the service
            - serviceId (string) - must be either eventstreams or cloudant
            - timezone (string) - 
            - description (string) - description of the service
            - enabled (boolean) - enabled
        Throws APIException on failure
Create a connector for the organization in the Watson IoT Platform . The connector must reference the target service that the Watson IoT Platform will store the IoT data in . Parameters : - name ( string ) - Name of the service - serviceId ( string ) - must be either eventstreams or cloudant - timezone ( string ) - - description ( string ) - description of the service - enabled ( boolean ) - enabled Throws APIException on failure