# IotApi.CloudFileApi

All URIs are relative to *http://localhost/iotapi/*

Method | HTTP request | Description
------------- | ------------- | -------------
[**classesCloudFileGet**](CloudFileApi.md#classesCloudFileGet) | **GET** /classes/CloudFile | 查询CloudFile数据
[**classesCloudFileIdDelete**](CloudFileApi.md#classesCloudFileIdDelete) | **DELETE** /classes/CloudFile/{id} | 通过ID删除CloudFile
[**classesCloudFileIdGet**](CloudFileApi.md#classesCloudFileIdGet) | **GET** /classes/CloudFile/{id} | 通过ID获取CloudFile
[**classesCloudFileIdPut**](CloudFileApi.md#classesCloudFileIdPut) | **PUT** /classes/CloudFile/{id} | 通过ID更新CloudFile
[**classesCloudFilePost**](CloudFileApi.md#classesCloudFilePost) | **POST** /classes/CloudFile | 新增CloudFile记录


<a name="classesCloudFileGet"></a>
# **classesCloudFileGet**
> Componentsschemasresults classesCloudFileGet(opts)

查询CloudFile数据

参考parse文档 https://docs.parseplatform.org/rest/guide/#queries,&lt;br/&gt;where支持：[$lt,$lte,$gt,$gte,$ne,$in,$nin,$exists,$select,$dontSelect,$all,$regex,$text]

### Example
```javascript
var IotApi = require('iot_api');
var defaultClient = IotApi.ApiClient.instance;

// Configure API key authorization: APIKeyHeader
var APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix = 'Token';

var apiInstance = new IotApi.CloudFileApi();

var opts = { 
  'order': "order_example", // String | 排序方式, 负为降序, eg: score,-name
  'limit': 8.14, // Number | limit, 显示多少条记录，显示100条记录 eg:100
  'skip': 8.14, // Number | skip
  'keys': "keys_example", // String | 需要显示的字段, eg: username,email
  'include': "include_example", // String | include
  'where': "where_example" // String | 过滤条件，eg: {\"objectId\":{\"$in\":[\"BGS3BFgcZN\"]}}
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.classesCloudFileGet(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **order** | **String**| 排序方式, 负为降序, eg: score,-name | [optional] 
 **limit** | **Number**| limit, 显示多少条记录，显示100条记录 eg:100 | [optional] 
 **skip** | **Number**| skip | [optional] 
 **keys** | **String**| 需要显示的字段, eg: username,email | [optional] 
 **include** | **String**| include | [optional] 
 **where** | **String**| 过滤条件，eg: {\&quot;objectId\&quot;:{\&quot;$in\&quot;:[\&quot;BGS3BFgcZN\&quot;]}} | [optional] 

### Return type

[**Componentsschemasresults**](Componentsschemasresults.md)

### Authorization

[APIKeyHeader](../README.md#APIKeyHeader)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="classesCloudFileIdDelete"></a>
# **classesCloudFileIdDelete**
> classesCloudFileIdDelete(id)

通过ID删除CloudFile

通过ID删除数据

### Example
```javascript
var IotApi = require('iot_api');
var defaultClient = IotApi.ApiClient.instance;

// Configure API key authorization: APIKeyHeader
var APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix = 'Token';

var apiInstance = new IotApi.CloudFileApi();

var id = "id_example"; // String | 删除记录的ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.classesCloudFileIdDelete(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| 删除记录的ID | 

### Return type

null (empty response body)

### Authorization

[APIKeyHeader](../README.md#APIKeyHeader)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="classesCloudFileIdGet"></a>
# **classesCloudFileIdGet**
> ComponentsschemasCloudFile classesCloudFileIdGet(id)

通过ID获取CloudFile

通过ID获取CloudFile

### Example
```javascript
var IotApi = require('iot_api');
var defaultClient = IotApi.ApiClient.instance;

// Configure API key authorization: APIKeyHeader
var APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix = 'Token';

var apiInstance = new IotApi.CloudFileApi();

var id = "id_example"; // String | 通过ID获取CloudFile


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.classesCloudFileIdGet(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| 通过ID获取CloudFile | 

### Return type

[**ComponentsschemasCloudFile**](ComponentsschemasCloudFile.md)

### Authorization

[APIKeyHeader](../README.md#APIKeyHeader)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="classesCloudFileIdPut"></a>
# **classesCloudFileIdPut**
> Componentsschemasupdatesuccess classesCloudFileIdPut(id, body)

通过ID更新CloudFile

通过ID更新记录

### Example
```javascript
var IotApi = require('iot_api');
var defaultClient = IotApi.ApiClient.instance;

// Configure API key authorization: APIKeyHeader
var APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix = 'Token';

var apiInstance = new IotApi.CloudFileApi();

var id = "id_example"; // String | 更新记录的ID

var body = new IotApi.AddCloudFile(); // AddCloudFile | 数据更新的内容.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.classesCloudFileIdPut(id, body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| 更新记录的ID | 
 **body** | [**AddCloudFile**](AddCloudFile.md)| 数据更新的内容. | 

### Return type

[**Componentsschemasupdatesuccess**](Componentsschemasupdatesuccess.md)

### Authorization

[APIKeyHeader](../README.md#APIKeyHeader)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="classesCloudFilePost"></a>
# **classesCloudFilePost**
> Componentsschemascreatesuccess classesCloudFilePost(body)

新增CloudFile记录

新增一条CloudFile记录

### Example
```javascript
var IotApi = require('iot_api');
var defaultClient = IotApi.ApiClient.instance;

// Configure API key authorization: APIKeyHeader
var APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix = 'Token';

var apiInstance = new IotApi.CloudFileApi();

var body = new IotApi.AddCloudFile(); // AddCloudFile | 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. Returned data: ' + data);
  }
};
apiInstance.classesCloudFilePost(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**AddCloudFile**](AddCloudFile.md)| object that needs to be added to the store | 

### Return type

[**Componentsschemascreatesuccess**](Componentsschemascreatesuccess.md)

### Authorization

[APIKeyHeader](../README.md#APIKeyHeader)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

