aliyun-net-sdk-iot/Iot/Model/V20180120/CreateProductRequest.cs (226 lines of code) (raw):
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
using System.Collections.Generic;
using Aliyun.Acs.Core;
using Aliyun.Acs.Core.Http;
using Aliyun.Acs.Core.Transform;
using Aliyun.Acs.Core.Utils;
using Aliyun.Acs.Iot.Transform;
using Aliyun.Acs.Iot.Transform.V20180120;
namespace Aliyun.Acs.Iot.Model.V20180120
{
public class CreateProductRequest : RpcAcsRequest<CreateProductResponse>
{
public CreateProductRequest()
: base("Iot", "2018-01-20", "CreateProduct", "iot", "openAPI")
{
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
{
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.Iot.Endpoint.endpointMap, null);
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.Iot.Endpoint.endpointRegionalType, null);
}
Method = MethodType.POST;
}
private int? nodeType;
private string description;
private string categoryKey;
private string joinPermissionId;
private string authType;
private string resourceGroupId;
private int? validateType;
private string iotInstanceId;
private string productName;
private string aliyunCommodityCode;
private bool? publishAuto;
private int? dataFormat;
private bool? id2;
private string netType;
private string protocolType;
public int? NodeType
{
get
{
return nodeType;
}
set
{
nodeType = value;
DictionaryUtil.Add(QueryParameters, "NodeType", value.ToString());
}
}
public string Description
{
get
{
return description;
}
set
{
description = value;
DictionaryUtil.Add(QueryParameters, "Description", value);
}
}
public string CategoryKey
{
get
{
return categoryKey;
}
set
{
categoryKey = value;
DictionaryUtil.Add(QueryParameters, "CategoryKey", value);
}
}
public string JoinPermissionId
{
get
{
return joinPermissionId;
}
set
{
joinPermissionId = value;
DictionaryUtil.Add(QueryParameters, "JoinPermissionId", value);
}
}
public string AuthType
{
get
{
return authType;
}
set
{
authType = value;
DictionaryUtil.Add(QueryParameters, "AuthType", value);
}
}
public string ResourceGroupId
{
get
{
return resourceGroupId;
}
set
{
resourceGroupId = value;
DictionaryUtil.Add(QueryParameters, "ResourceGroupId", value);
}
}
public int? ValidateType
{
get
{
return validateType;
}
set
{
validateType = value;
DictionaryUtil.Add(QueryParameters, "ValidateType", value.ToString());
}
}
public string IotInstanceId
{
get
{
return iotInstanceId;
}
set
{
iotInstanceId = value;
DictionaryUtil.Add(QueryParameters, "IotInstanceId", value);
}
}
public string ProductName
{
get
{
return productName;
}
set
{
productName = value;
DictionaryUtil.Add(QueryParameters, "ProductName", value);
}
}
public string AliyunCommodityCode
{
get
{
return aliyunCommodityCode;
}
set
{
aliyunCommodityCode = value;
DictionaryUtil.Add(QueryParameters, "AliyunCommodityCode", value);
}
}
public bool? PublishAuto
{
get
{
return publishAuto;
}
set
{
publishAuto = value;
DictionaryUtil.Add(QueryParameters, "PublishAuto", value.ToString());
}
}
public int? DataFormat
{
get
{
return dataFormat;
}
set
{
dataFormat = value;
DictionaryUtil.Add(QueryParameters, "DataFormat", value.ToString());
}
}
public bool? Id2
{
get
{
return id2;
}
set
{
id2 = value;
DictionaryUtil.Add(QueryParameters, "Id2", value.ToString());
}
}
public string NetType
{
get
{
return netType;
}
set
{
netType = value;
DictionaryUtil.Add(QueryParameters, "NetType", value);
}
}
public string ProtocolType
{
get
{
return protocolType;
}
set
{
protocolType = value;
DictionaryUtil.Add(QueryParameters, "ProtocolType", value);
}
}
public override bool CheckShowJsonItemName()
{
return false;
}
public override CreateProductResponse GetResponse(UnmarshallerContext unmarshallerContext)
{
return CreateProductResponseUnmarshaller.Unmarshall(unmarshallerContext);
}
}
}