Assets/Watson/Scripts/Services/RetrieveAndRank/RetrieveAndRank.cs
/// <summary>
/// Returns a configuration .zip file for a cluster.
/// </summary>
/// <param name="callback"></param>
/// <param name="clusterID"></param>
/// <param name="customData"></param>
/// <returns></returns>
Returns a configuration .zip file for a cluster.
Returns a configuration . zip file for a cluster .
public bool GetClusterConfigs(OnGetClusterConfigs callback, string clusterID, string customData = default(string))
        {
            if (callback == null)
                throw new ArgumentNullException("callback");
            if (string.IsNullOrEmpty(clusterID))
                throw new ArgumentNullException("ClusterID to get is required!");
            GetClusterConfigsRequest req = new GetClusterConfigsRequest();
            req.Callback = callback;
            req.ClusterID = clusterID;
            req.Data = customData;
            req.Timeout = REQUEST_TIMEOUT;
            req.OnResponse = OnGetClusterConfigsResponse;
            RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, string.Format(SERVICE_CLUSTER_CONFIGS, clusterID));
            if (connector == null)
                return false;
            return connector.Send(req);
        }
public bool GetClusterConfigs ( OnGetClusterConfigs callback , string clusterID , string customData = default ( string ) ) { if ( callback == null ) throw new ArgumentNullException ( " " ) ; if ( string . IsNullOrEmpty ( clusterID ) ) throw new ArgumentNullException ( " " ) ; GetClusterConfigsRequest req = new GetClusterConfigsRequest ( ) ; req . Callback = callback ; req . ClusterID = clusterID ; req . Data = customData ; req . Timeout = REQUEST_TIMEOUT ; req . OnResponse = OnGetClusterConfigsResponse ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , string . Format ( SERVICE_CLUSTER_CONFIGS , clusterID ) ) ; if ( connector == null ) return false ; return connector . Send ( req ) ; }
Returns a configuration .zip file for a cluster.
Returns a configuration . zip file for a cluster .
None
callback
OnGetClusterConfigs
None
clusterID
string
None
customData
string
None