text: /* Copyright 2018 JDCLOUD.COM
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
  http:#www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  
  JCLOUD iotcloudgateway API
  API related to iotcloudgateway
  
  OpenAPI spec version: v1
  Contact: 
  
  NOTE: This class is auto generated by the jdcloud code generator program.
  */
  
  
  #ifndef IotcloudgatewayClient_h
  #define IotcloudgatewayClient_h
  
  
  #import <JDCloudOCSDKCore/JDCloudOCSDKCore.h>
  #import <JDCloudOCSDKIotcloudgateway/IotcloudgatewayApiModel.h>
  
  @interface IotcloudgatewayClient : NSObject<JDCloudClient>{
      @private
      NSString* _userAgent;
      NSString* _serviceName;
      NSString* _version;
      }
  
      @property (strong,readonly,nonatomic) NSString* userAgent;
  
      @property (strong,readonly,nonatomic) NSString* serviceName;
  
      @property (strong,readonly,nonatomic) NSString* version;
  
      @property (strong,nonatomic) NSString* contentType;
  
      @property (strong,nonatomic) Credential* credential;
  
      @property (strong,nonatomic) SDKEnvironment* sdkEnvironment;
  
      @property (strong,nonatomic) NSMutableDictionary* customHeader;
  
      @property  (strong,nonatomic) NSString* httpRequestProtocol;
  
      -(void) addCustomerHeaderWithKey:(NSString*) key
      value:(NSString*) value;
  
      -(id)initWithGlobalConfig;
  
      -(id)initWithCredential:(Credential*)credential
      sdkEnvironment:(SDKEnvironment*)sdkEnvironment;
      -(id)initWithCredential:(Credential*)credential;
      /**
      queryInstanceStatus sync request
      @param queryInstanceStatusRequest request param
      @return key `statusCode` http request status code type is int
              `dataResult` the http request response data  type is NSData
              `requestError` the request error type is NSError
              `queryInstanceStatusResponse` the request response data model
      */
      -(NSDictionary*) queryInstanceStatusSyncWithRequest:(IotcloudgatewayQueryInstanceStatusRequest*) queryInstanceStatusRequest;
  
      -(void)queryInstanceStatusAsyncWithRequest:(IotcloudgatewayQueryInstanceStatusRequest*) queryInstanceStatusRequest
      completionHandler:(void(^)(int statusCode,IotcloudgatewayQueryInstanceStatusResponse* _Nullable queryInstanceStatusResponse, NSData* _Nullable responseData,NSError * _Nullable error))completionHandler;
      /**
      queryInstanceExposeDomain sync request
      @param queryInstanceExposeDomainRequest request param
      @return key `statusCode` http request status code type is int
              `dataResult` the http request response data  type is NSData
              `requestError` the request error type is NSError
              `queryInstanceExposeDomainResponse` the request response data model
      */
      -(NSDictionary*) queryInstanceExposeDomainSyncWithRequest:(IotcloudgatewayQueryInstanceExposeDomainRequest*) queryInstanceExposeDomainRequest;
  
      -(void)queryInstanceExposeDomainAsyncWithRequest:(IotcloudgatewayQueryInstanceExposeDomainRequest*) queryInstanceExposeDomainRequest
      completionHandler:(void(^)(int statusCode,IotcloudgatewayQueryInstanceExposeDomainResponse* _Nullable queryInstanceExposeDomainResponse, NSData* _Nullable responseData,NSError * _Nullable error))completionHandler;
      /**
      describeInstance sync request
      @param describeInstanceRequest request param
      @return key `statusCode` http request status code type is int
              `dataResult` the http request response data  type is NSData
              `requestError` the request error type is NSError
              `describeInstanceResponse` the request response data model
      */
      -(NSDictionary*) describeInstanceSyncWithRequest:(IotcloudgatewayDescribeInstanceRequest*) describeInstanceRequest;
  
      -(void)describeInstanceAsyncWithRequest:(IotcloudgatewayDescribeInstanceRequest*) describeInstanceRequest
      completionHandler:(void(^)(int statusCode,IotcloudgatewayDescribeInstanceResponse* _Nullable describeInstanceResponse, NSData* _Nullable responseData,NSError * _Nullable error))completionHandler;
      /**
      describeInstances sync request
      @param describeInstancesRequest request param
      @return key `statusCode` http request status code type is int
              `dataResult` the http request response data  type is NSData
              `requestError` the request error type is NSError
              `describeInstancesResponse` the request response data model
      */
      -(NSDictionary*) describeInstancesSyncWithRequest:(IotcloudgatewayDescribeInstancesRequest*) describeInstancesRequest;
  
      -(void)describeInstancesAsyncWithRequest:(IotcloudgatewayDescribeInstancesRequest*) describeInstancesRequest
      completionHandler:(void(^)(int statusCode,IotcloudgatewayDescribeInstancesResponse* _Nullable describeInstancesResponse, NSData* _Nullable responseData,NSError * _Nullable error))completionHandler;
      /**
      deviceControl sync request
      @param deviceControlRequest request param
      @return key `statusCode` http request status code type is int
              `dataResult` the http request response data  type is NSData
              `requestError` the request error type is NSError
              `deviceControlResponse` the request response data model
      */
      -(NSDictionary*) deviceControlSyncWithRequest:(IotcloudgatewayDeviceControlRequest*) deviceControlRequest;
  
      -(void)deviceControlAsyncWithRequest:(IotcloudgatewayDeviceControlRequest*) deviceControlRequest
      completionHandler:(void(^)(int statusCode,IotcloudgatewayDeviceControlResponse* _Nullable deviceControlResponse, NSData* _Nullable responseData,NSError * _Nullable error))completionHandler;
  
      /**
      iotcloudgateway common sync request
      @param  jdcloudDataRequest request param
      @return key `statusCode` http request status code type is int
              `dataResult` the http request response data  type is NSData
              `requestError` the request error type is NSError
      */
      -(NSDictionary*) iotcloudgatewayCommonSyncWithRequest:(JDCloudDataRequest*) jdcloudDataRequest
                                             url:(NSString*) url
                                          method:(NSString*) method;
  
      -(void)iotcloudgatewayCommonAsyncWithRequest:(JDCloudDataRequest*) jdcloudDataRequest
                                    url:(NSString*) url
                                 method:(NSString*) method
                      completionHandler:(void(^)(int statusCode, NSData* _Nullable responseData,NSError * _Nullable error))completionHandler;
  
      @end
  
  
      #endif /* IotcloudgatewayClient_h */
  