src/wiotp/sdk/api/dsc/connectors.py
def update(self, connectorId, name, description, timezone, enabled):
        """
        Updates the connector with the specified uuid.
        if description is empty, the existing description will be removed.
        Parameters:
            - connector (String), Connnector Id which is a UUID
            - name (string) - Name of the service
            - timezone (json object) - Should have a valid structure for the service type.
            - description (string) - description of the service
            - enabled (boolean) - enabled
        Throws APIException on failure.

        """

        url = "api/v0002/historianconnectors/%s" % (connectorId)

        connectorBody = {}
        connectorBody["name"] = name
        connectorBody["description"] = description
        connectorBody["timezone"] = timezone
        connectorBody["enabled"] = enabled

        r = self._apiClient.put(url, data=connectorBody)
        if r.status_code == 200:
            return Connector(apiClient=self._apiClient, **r.json())
        else:
            raise ApiException(r)
def update(self, connectorId, name, description, timezone, enabled):
        """
        Updates the connector with the specified uuid.
        if description is empty, the existing description will be removed.
        Parameters:
            - connector (String), Connnector Id which is a UUID
            - name (string) - Name of the service
            - timezone (json object) - Should have a valid structure for the service type.
            - description (string) - description of the service
            - enabled (boolean) - enabled
        Throws APIException on failure.

        """

        url = "api/v0002/historianconnectors/%s" % (connectorId)

        connectorBody = {}
        connectorBody["name"] = name
        connectorBody["description"] = description
        connectorBody["timezone"] = timezone
        connectorBody["enabled"] = enabled

        r = self._apiClient.put(url, data=connectorBody)
        if r.status_code == 200:
            return Connector(apiClient=self._apiClient, **r.json())
        else:
            raise ApiException(r)
def update ( self , connectorId , name , description , timezone , enabled ) : url = "api/v0002/historianconnectors/%s" % ( connectorId ) connectorBody = { } connectorBody [ "name" ] = name connectorBody [ "description" ] = description connectorBody [ "timezone" ] = timezone connectorBody [ "enabled" ] = enabled r = self . _apiClient . put ( url , data = connectorBody ) if r . status_code == 200 : return Connector ( apiClient = self . _apiClient , * * r . json ( ) ) else : raise ApiException ( r )
Updates the connector with the specified uuid.
        if description is empty, the existing description will be removed.
        Parameters:
            - connector (String), Connnector Id which is a UUID
            - name (string) - Name of the service
            - timezone (json object) - Should have a valid structure for the service type.
            - description (string) - description of the service
            - enabled (boolean) - enabled
        Throws APIException on failure.
Updates the connector with the specified uuid . if description is empty the existing description will be removed . Parameters : - connector ( String ) Connnector Id which is a UUID - name ( string ) - Name of the service - timezone ( json object ) - Should have a valid structure for the service type . - description ( string ) - description of the service - enabled ( boolean ) - enabled Throws APIException on failure .