src/wiotp/sdk/api/services/__init__.py
def update(self, serviceId, serviceName, credentials, description):
        """
        Updates the service with the specified id.
        if description is empty, the existing description will be removed.
        Parameters:
            - serviceId (String), Service Id which is a UUID
            - serviceName (string), name of service
            - credentials (json), json object of credentials
            - description - description of the service
        Throws APIException on failure.

        """

        url = "api/v0002/s2s/services/%s" % (serviceId)

        serviceBody = {}
        serviceBody["name"] = serviceName
        serviceBody["description"] = description
        serviceBody["credentials"] = credentials

        r = self._apiClient.put(url, data=serviceBody)
        if r.status_code == 200:
            return ServiceBinding(**r.json())
        else:
            raise ApiException(r)
def update(self, serviceId, serviceName, credentials, description):
        """
        Updates the service with the specified id.
        if description is empty, the existing description will be removed.
        Parameters:
            - serviceId (String), Service Id which is a UUID
            - serviceName (string), name of service
            - credentials (json), json object of credentials
            - description - description of the service
        Throws APIException on failure.

        """

        url = "api/v0002/s2s/services/%s" % (serviceId)

        serviceBody = {}
        serviceBody["name"] = serviceName
        serviceBody["description"] = description
        serviceBody["credentials"] = credentials

        r = self._apiClient.put(url, data=serviceBody)
        if r.status_code == 200:
            return ServiceBinding(**r.json())
        else:
            raise ApiException(r)
def update ( self , serviceId , serviceName , credentials , description ) : url = "api/v0002/s2s/services/%s" % ( serviceId ) serviceBody = { } serviceBody [ "name" ] = serviceName serviceBody [ "description" ] = description serviceBody [ "credentials" ] = credentials r = self . _apiClient . put ( url , data = serviceBody ) if r . status_code == 200 : return ServiceBinding ( * * r . json ( ) ) else : raise ApiException ( r )
Updates the service with the specified id.
        if description is empty, the existing description will be removed.
        Parameters:
            - serviceId (String), Service Id which is a UUID
            - serviceName (string), name of service
            - credentials (json), json object of credentials
            - description - description of the service
        Throws APIException on failure.
Updates the service with the specified id . if description is empty the existing description will be removed . Parameters : - serviceId ( String ) Service Id which is a UUID - serviceName ( string ) name of service - credentials ( json ) json object of credentials - description - description of the service Throws APIException on failure .