# XgeneCloud.CoffunctionApi

All URIs are relative to *http://localhost:8080/*

Method | HTTP request | Description
------------- | ------------- | -------------
[**addcofFunction**](CoffunctionApi.md#addcofFunction) | **POST** /api/v1/cof_function | Add a new cof_function
[**bulkcofFunctionInsert**](CoffunctionApi.md#bulkcofFunctionInsert) | **POST** /api/v1/cof_function/bulk | Bulk cof_function insert
[**checkcofFunctionExists**](CoffunctionApi.md#checkcofFunctionExists) | **GET** /api/v1/cof_function/{cof_functionId}/exists | Check cof_function with provided ID exists
[**cofFunctionAggregate**](CoffunctionApi.md#cofFunctionAggregate) | **GET** /api/v1/cof_function/aggregate/{columnName} | Get first one from filtered data
[**cofFunctionDistinct**](CoffunctionApi.md#cofFunctionDistinct) | **GET** /api/v1/cof_function/distinct/{columnName} | Get first one from filtered data
[**cofFunctionDistribution**](CoffunctionApi.md#cofFunctionDistribution) | **GET** /api/v1/cof_function/distribution/{columnName} | 
[**cofFunctionGroupByColumn**](CoffunctionApi.md#cofFunctionGroupByColumn) | **GET** /api/v1/cof_function/groupby/{columnName} | Group by column
[**deletecofFunction**](CoffunctionApi.md#deletecofFunction) | **DELETE** /api/v1/cof_function/bulk | Deletes a cof_function
[**deletecofFunction_0**](CoffunctionApi.md#deletecofFunction_0) | **DELETE** /api/v1/cof_function/{cof_functionId} | Deletes a cof_function
[**findOnecofFunction**](CoffunctionApi.md#findOnecofFunction) | **GET** /api/v1/cof_function/findOne | Get first one from filtered data
[**getcofFunction**](CoffunctionApi.md#getcofFunction) | **GET** /api/v1/cof_function | Get list
[**getcofFunctionById**](CoffunctionApi.md#getcofFunctionById) | **GET** /api/v1/cof_function/{cof_functionId} | Find cof_function by ID
[**getcofFunctionCount**](CoffunctionApi.md#getcofFunctionCount) | **GET** /api/v1/cof_function/count | Get cof_function count
[**updatecofFunction**](CoffunctionApi.md#updatecofFunction) | **PUT** /api/v1/cof_function/bulk | Updates a cof_function
[**updatecofFunction_0**](CoffunctionApi.md#updatecofFunction_0) | **PUT** /api/v1/cof_function/{cof_functionId} | Updates a cof_function


<a name="addcofFunction"></a>
# **addcofFunction**
> addcofFunction(body)

Add a new cof_function



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var body = new XgeneCloud.CofFunction(); // CofFunction | cof_function object that needs to add


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.addcofFunction(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**CofFunction**](CofFunction.md)| cof_function object that needs to add | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="bulkcofFunctionInsert"></a>
# **bulkcofFunctionInsert**
> bulkcofFunctionInsert(body)

Bulk cof_function insert



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var body = [new XgeneCloud.CofFunction()]; // [CofFunction] | cof_function objects


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.bulkcofFunctionInsert(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**[CofFunction]**](CofFunction.md)| cof_function objects | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="checkcofFunctionExists"></a>
# **checkcofFunctionExists**
> &#39;Boolean&#39; checkcofFunctionExists(cofFunctionId)

Check cof_function with provided ID exists

Returns a single cof_function

### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var cofFunctionId = 789; // Integer | ID of cof_function


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.checkcofFunctionExists(cofFunctionId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cofFunctionId** | **Integer**| ID of cof_function | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="cofFunctionAggregate"></a>
# **cofFunctionAggregate**
> CofFunction cofFunctionAggregate(columnName, fields, func, opts)

Get first one from filtered data



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var columnName = "columnName_example"; // String | Column name

var fields = "fields_example"; // String | Column name

var func = "func_example"; // String | Comma seperated aggregate functions

var opts = { 
  'having': "having_example", // String | Having expression
  'fields2': "fields_example", // String | Comma seperated fields from the model
  'limit': 789, // Integer | Page size limit
  'offset': 789, // Integer | Pagination offset
  'sort': "sort_example" // String | Comma seperated sort fields
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.cofFunctionAggregate(columnName, fields, func, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **columnName** | **String**| Column name | 
 **fields** | **String**| Column name | 
 **func** | **String**| Comma seperated aggregate functions | 
 **having** | **String**| Having expression | [optional] 
 **fields2** | **String**| Comma seperated fields from the model | [optional] 
 **limit** | **Integer**| Page size limit | [optional] 
 **offset** | **Integer**| Pagination offset | [optional] 
 **sort** | **String**| Comma seperated sort fields | [optional] 

### Return type

[**CofFunction**](CofFunction.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="cofFunctionDistinct"></a>
# **cofFunctionDistinct**
> [Object] cofFunctionDistinct(columnName, opts)

Get first one from filtered data



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var columnName = "columnName_example"; // String | Column name

var opts = { 
  'where': "where_example", // String | Where expression
  'limit': 789, // Integer | Page size limit
  'offset': 789, // Integer | Pagination offset
  'sort': "sort_example" // String | Comma seperated sort fieldst
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.cofFunctionDistinct(columnName, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **columnName** | **String**| Column name | 
 **where** | **String**| Where expression | [optional] 
 **limit** | **Integer**| Page size limit | [optional] 
 **offset** | **Integer**| Pagination offset | [optional] 
 **sort** | **String**| Comma seperated sort fieldst | [optional] 

### Return type

**[Object]**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="cofFunctionDistribution"></a>
# **cofFunctionDistribution**
> [Object] cofFunctionDistribution(columnName, opts)





### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var columnName = "columnName_example"; // String | Column name

var opts = { 
  'min': 789, // Integer | min value
  'max': 789, // Integer | max value
  'step': 789, // Integer | step value
  'steps': 789, // Integer | steps value
  'func': "func_example" // String | comma separated aggregation functions
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.cofFunctionDistribution(columnName, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **columnName** | **String**| Column name | 
 **min** | **Integer**| min value | [optional] 
 **max** | **Integer**| max value | [optional] 
 **step** | **Integer**| step value | [optional] 
 **steps** | **Integer**| steps value | [optional] 
 **func** | **String**| comma separated aggregation functions | [optional] 

### Return type

**[Object]**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="cofFunctionGroupByColumn"></a>
# **cofFunctionGroupByColumn**
> CofFunction cofFunctionGroupByColumn(columnName, opts)

Group by column



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var columnName = "columnName_example"; // String | Column name

var opts = { 
  'where': "where_example", // String | Where expression
  'limit': 789, // Integer | Page size limit
  'offset': 789, // Integer | Pagination offset
  'sort': "sort_example" // String | Comma seperated sort fieldst
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.cofFunctionGroupByColumn(columnName, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **columnName** | **String**| Column name | 
 **where** | **String**| Where expression | [optional] 
 **limit** | **Integer**| Page size limit | [optional] 
 **offset** | **Integer**| Pagination offset | [optional] 
 **sort** | **String**| Comma seperated sort fieldst | [optional] 

### Return type

[**CofFunction**](CofFunction.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="deletecofFunction"></a>
# **deletecofFunction**
> deletecofFunction(body)

Deletes a cof_function



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var body = [new XgeneCloud.CofFunction()]; // [CofFunction] | cof_function objects contains id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.deletecofFunction(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**[CofFunction]**](CofFunction.md)| cof_function objects contains id | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="deletecofFunction_0"></a>
# **deletecofFunction_0**
> deletecofFunction_0(cofFunctionId)

Deletes a cof_function



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var cofFunctionId = 789; // Integer | ID of cof_function to return


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.deletecofFunction_0(cofFunctionId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cofFunctionId** | **Integer**| ID of cof_function to return | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="findOnecofFunction"></a>
# **findOnecofFunction**
> CofFunction findOnecofFunction(opts)

Get first one from filtered data



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var opts = { 
  'fields': "fields_example", // String | Comma seperated fields from the model
  'where': "where_example", // String | Where expression
  'limit': 789, // Integer | Page size limit
  'offset': 789, // Integer | Pagination offset
  'sort': "sort_example" // String | Comma seperated sort fieldst
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.findOnecofFunction(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **fields** | **String**| Comma seperated fields from the model | [optional] 
 **where** | **String**| Where expression | [optional] 
 **limit** | **Integer**| Page size limit | [optional] 
 **offset** | **Integer**| Pagination offset | [optional] 
 **sort** | **String**| Comma seperated sort fieldst | [optional] 

### Return type

[**CofFunction**](CofFunction.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="getcofFunction"></a>
# **getcofFunction**
> getcofFunction(opts)

Get list



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var opts = { 
  'fields': "fields_example", // String | Comma seperated fields from the model
  'where': "where_example", // String | Where expression
  'limit': 789, // Integer | Page size limit
  'offset': 789, // Integer | Pagination offset
  'sort': "sort_example" // String | Comma seperated sort fields
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.getcofFunction(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **fields** | **String**| Comma seperated fields from the model | [optional] 
 **where** | **String**| Where expression | [optional] 
 **limit** | **Integer**| Page size limit | [optional] 
 **offset** | **Integer**| Pagination offset | [optional] 
 **sort** | **String**| Comma seperated sort fields | [optional] 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="getcofFunctionById"></a>
# **getcofFunctionById**
> CofFunction getcofFunctionById(cofFunctionId)

Find cof_function by ID

Returns a single cof_function

### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var cofFunctionId = 789; // Integer | ID of cof_function to return


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getcofFunctionById(cofFunctionId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cofFunctionId** | **Integer**| ID of cof_function to return | 

### Return type

[**CofFunction**](CofFunction.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="getcofFunctionCount"></a>
# **getcofFunctionCount**
> Object getcofFunctionCount(opts)

Get cof_function count

### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var opts = { 
  'where': "where_example" // String | Where expression
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getcofFunctionCount(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **where** | **String**| Where expression | [optional] 

### Return type

**Object**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="updatecofFunction"></a>
# **updatecofFunction**
> updatecofFunction(body)

Updates a cof_function



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var body = [new XgeneCloud.CofFunction()]; // [CofFunction] | cof_function objects with id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.updatecofFunction(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**[CofFunction]**](CofFunction.md)| cof_function objects with id | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="updatecofFunction_0"></a>
# **updatecofFunction_0**
> updatecofFunction_0(cofFunctionId, body)

Updates a cof_function



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CoffunctionApi();

var cofFunctionId = 789; // Integer | ID of cof_function to return

var body = new XgeneCloud.CofFunction(); // CofFunction | cof_function object that needs to be added to the store


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.updatecofFunction_0(cofFunctionId, body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cofFunctionId** | **Integer**| ID of cof_function to return | 
 **body** | [**CofFunction**](CofFunction.md)| cof_function object that needs to be added to the store | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

