# XgeneCloud.CofauthtplresgroupApi

All URIs are relative to *http://localhost:8080/*

Method | HTTP request | Description
------------- | ------------- | -------------
[**addcofAuthTplResGroup**](CofauthtplresgroupApi.md#addcofAuthTplResGroup) | **POST** /api/v1/cof_auth_tpl_res_group | Add a new cof_auth_tpl_res_group
[**bulkcofAuthTplResGroupInsert**](CofauthtplresgroupApi.md#bulkcofAuthTplResGroupInsert) | **POST** /api/v1/cof_auth_tpl_res_group/bulk | Bulk cof_auth_tpl_res_group insert
[**checkcofAuthTplResGroupExists**](CofauthtplresgroupApi.md#checkcofAuthTplResGroupExists) | **GET** /api/v1/cof_auth_tpl_res_group/{cof_auth_tpl_res_groupId}/exists | Check cof_auth_tpl_res_group with provided ID exists
[**cofAuthTplResGroupAggregate**](CofauthtplresgroupApi.md#cofAuthTplResGroupAggregate) | **GET** /api/v1/cof_auth_tpl_res_group/aggregate/{columnName} | Get first one from filtered data
[**cofAuthTplResGroupDistinct**](CofauthtplresgroupApi.md#cofAuthTplResGroupDistinct) | **GET** /api/v1/cof_auth_tpl_res_group/distinct/{columnName} | Get first one from filtered data
[**cofAuthTplResGroupDistribution**](CofauthtplresgroupApi.md#cofAuthTplResGroupDistribution) | **GET** /api/v1/cof_auth_tpl_res_group/distribution/{columnName} | 
[**cofAuthTplResGroupGroupByColumn**](CofauthtplresgroupApi.md#cofAuthTplResGroupGroupByColumn) | **GET** /api/v1/cof_auth_tpl_res_group/groupby/{columnName} | Group by column
[**deletecofAuthTplResGroup**](CofauthtplresgroupApi.md#deletecofAuthTplResGroup) | **DELETE** /api/v1/cof_auth_tpl_res_group/bulk | Deletes a cof_auth_tpl_res_group
[**deletecofAuthTplResGroup_0**](CofauthtplresgroupApi.md#deletecofAuthTplResGroup_0) | **DELETE** /api/v1/cof_auth_tpl_res_group/{cof_auth_tpl_res_groupId} | Deletes a cof_auth_tpl_res_group
[**findOnecofAuthTplResGroup**](CofauthtplresgroupApi.md#findOnecofAuthTplResGroup) | **GET** /api/v1/cof_auth_tpl_res_group/findOne | Get first one from filtered data
[**getcofAuthTplResGroup**](CofauthtplresgroupApi.md#getcofAuthTplResGroup) | **GET** /api/v1/cof_auth_tpl_res_group | Get list
[**getcofAuthTplResGroupById**](CofauthtplresgroupApi.md#getcofAuthTplResGroupById) | **GET** /api/v1/cof_auth_tpl_res_group/{cof_auth_tpl_res_groupId} | Find cof_auth_tpl_res_group by ID
[**getcofAuthTplResGroupCount**](CofauthtplresgroupApi.md#getcofAuthTplResGroupCount) | **GET** /api/v1/cof_auth_tpl_res_group/count | Get cof_auth_tpl_res_group count
[**updatecofAuthTplResGroup**](CofauthtplresgroupApi.md#updatecofAuthTplResGroup) | **PUT** /api/v1/cof_auth_tpl_res_group/bulk | Updates a cof_auth_tpl_res_group
[**updatecofAuthTplResGroup_0**](CofauthtplresgroupApi.md#updatecofAuthTplResGroup_0) | **PUT** /api/v1/cof_auth_tpl_res_group/{cof_auth_tpl_res_groupId} | Updates a cof_auth_tpl_res_group


<a name="addcofAuthTplResGroup"></a>
# **addcofAuthTplResGroup**
> addcofAuthTplResGroup(body)

Add a new cof_auth_tpl_res_group



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

var body = new XgeneCloud.CofAuthTplResGroup(); // CofAuthTplResGroup | cof_auth_tpl_res_group object that needs to add


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.addcofAuthTplResGroup(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**CofAuthTplResGroup**](CofAuthTplResGroup.md)| cof_auth_tpl_res_group 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="bulkcofAuthTplResGroupInsert"></a>
# **bulkcofAuthTplResGroupInsert**
> bulkcofAuthTplResGroupInsert(body)

Bulk cof_auth_tpl_res_group insert



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

var body = [new XgeneCloud.CofAuthTplResGroup()]; // [CofAuthTplResGroup] | cof_auth_tpl_res_group objects


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.bulkcofAuthTplResGroupInsert(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**[CofAuthTplResGroup]**](CofAuthTplResGroup.md)| cof_auth_tpl_res_group objects | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="checkcofAuthTplResGroupExists"></a>
# **checkcofAuthTplResGroupExists**
> &#39;Boolean&#39; checkcofAuthTplResGroupExists(cofAuthTplResGroupId)

Check cof_auth_tpl_res_group with provided ID exists

Returns a single cof_auth_tpl_res_group

### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

var cofAuthTplResGroupId = 789; // Integer | ID of cof_auth_tpl_res_group


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.checkcofAuthTplResGroupExists(cofAuthTplResGroupId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cofAuthTplResGroupId** | **Integer**| ID of cof_auth_tpl_res_group | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="cofAuthTplResGroupAggregate"></a>
# **cofAuthTplResGroupAggregate**
> CofAuthTplResGroup cofAuthTplResGroupAggregate(columnName, fields, func, opts)

Get first one from filtered data



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

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.cofAuthTplResGroupAggregate(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

[**CofAuthTplResGroup**](CofAuthTplResGroup.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="cofAuthTplResGroupDistinct"></a>
# **cofAuthTplResGroupDistinct**
> [Object] cofAuthTplResGroupDistinct(columnName, opts)

Get first one from filtered data



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

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.cofAuthTplResGroupDistinct(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="cofAuthTplResGroupDistribution"></a>
# **cofAuthTplResGroupDistribution**
> [Object] cofAuthTplResGroupDistribution(columnName, opts)





### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

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.cofAuthTplResGroupDistribution(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="cofAuthTplResGroupGroupByColumn"></a>
# **cofAuthTplResGroupGroupByColumn**
> CofAuthTplResGroup cofAuthTplResGroupGroupByColumn(columnName, opts)

Group by column



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

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.cofAuthTplResGroupGroupByColumn(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

[**CofAuthTplResGroup**](CofAuthTplResGroup.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="deletecofAuthTplResGroup"></a>
# **deletecofAuthTplResGroup**
> deletecofAuthTplResGroup(body)

Deletes a cof_auth_tpl_res_group



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

var body = [new XgeneCloud.CofAuthTplResGroup()]; // [CofAuthTplResGroup] | cof_auth_tpl_res_group objects contains id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.deletecofAuthTplResGroup(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**[CofAuthTplResGroup]**](CofAuthTplResGroup.md)| cof_auth_tpl_res_group 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="deletecofAuthTplResGroup_0"></a>
# **deletecofAuthTplResGroup_0**
> deletecofAuthTplResGroup_0(cofAuthTplResGroupId)

Deletes a cof_auth_tpl_res_group



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

var cofAuthTplResGroupId = 789; // Integer | ID of cof_auth_tpl_res_group to return


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.deletecofAuthTplResGroup_0(cofAuthTplResGroupId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cofAuthTplResGroupId** | **Integer**| ID of cof_auth_tpl_res_group to return | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="findOnecofAuthTplResGroup"></a>
# **findOnecofAuthTplResGroup**
> CofAuthTplResGroup findOnecofAuthTplResGroup(opts)

Get first one from filtered data



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

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.findOnecofAuthTplResGroup(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

[**CofAuthTplResGroup**](CofAuthTplResGroup.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="getcofAuthTplResGroup"></a>
# **getcofAuthTplResGroup**
> getcofAuthTplResGroup(opts)

Get list



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

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.getcofAuthTplResGroup(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="getcofAuthTplResGroupById"></a>
# **getcofAuthTplResGroupById**
> CofAuthTplResGroup getcofAuthTplResGroupById(cofAuthTplResGroupId)

Find cof_auth_tpl_res_group by ID

Returns a single cof_auth_tpl_res_group

### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

var cofAuthTplResGroupId = 789; // Integer | ID of cof_auth_tpl_res_group to return


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getcofAuthTplResGroupById(cofAuthTplResGroupId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cofAuthTplResGroupId** | **Integer**| ID of cof_auth_tpl_res_group to return | 

### Return type

[**CofAuthTplResGroup**](CofAuthTplResGroup.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="getcofAuthTplResGroupCount"></a>
# **getcofAuthTplResGroupCount**
> Object getcofAuthTplResGroupCount(opts)

Get cof_auth_tpl_res_group count

### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

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.getcofAuthTplResGroupCount(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="updatecofAuthTplResGroup"></a>
# **updatecofAuthTplResGroup**
> updatecofAuthTplResGroup(body)

Updates a cof_auth_tpl_res_group



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

var body = [new XgeneCloud.CofAuthTplResGroup()]; // [CofAuthTplResGroup] | cof_auth_tpl_res_group objects with id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.updatecofAuthTplResGroup(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**[CofAuthTplResGroup]**](CofAuthTplResGroup.md)| cof_auth_tpl_res_group 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="updatecofAuthTplResGroup_0"></a>
# **updatecofAuthTplResGroup_0**
> updatecofAuthTplResGroup_0(cofAuthTplResGroupId, body)

Updates a cof_auth_tpl_res_group



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofauthtplresgroupApi();

var cofAuthTplResGroupId = 789; // Integer | ID of cof_auth_tpl_res_group to return

var body = new XgeneCloud.CofAuthTplResGroup(); // CofAuthTplResGroup | cof_auth_tpl_res_group 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.updatecofAuthTplResGroup_0(cofAuthTplResGroupId, body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cofAuthTplResGroupId** | **Integer**| ID of cof_auth_tpl_res_group to return | 
 **body** | [**CofAuthTplResGroup**](CofAuthTplResGroup.md)| cof_auth_tpl_res_group 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

