AzureML.ManagementSDK.PatchWebServiceEndpoint C# (CSharp) Method

PatchWebServiceEndpoint() public method

public PatchWebServiceEndpoint ( WorkspaceSetting setting, string webServiceId, string endpointName, dynamic patchReq ) : void
setting AzureML.Contract.WorkspaceSetting
webServiceId string
endpointName string
patchReq dynamic
return void
        public void PatchWebServiceEndpoint(WorkspaceSetting setting, string webServiceId, string endpointName, dynamic patchReq)
        {
            ValidateWorkspaceSetting(setting);
            Util.AuthorizationToken = setting.AuthorizationToken;            
            string body = jss.Serialize(patchReq);
            string url = WebServiceApi + string.Format("workspaces/{0}/webservices/{1}/endpoints/{2}", setting.WorkspaceId, webServiceId, endpointName);
            HttpResult hr = Util.HttpPatch(url, body).Result;
            if (!hr.IsSuccess)
                throw new AmlRestApiException(hr);
        }