本文整理汇总了C#中UnmarshallerContext.EnumValue方法的典型用法代码示例。如果您正苦于以下问题:C# UnmarshallerContext.EnumValue方法的具体用法?C# UnmarshallerContext.EnumValue怎么用?C# UnmarshallerContext.EnumValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UnmarshallerContext
的用法示例。
在下文中一共展示了UnmarshallerContext.EnumValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Unmarshall
public static DescibeImportsFromDatabaseResponse Unmarshall(UnmarshallerContext context)
{
DescibeImportsFromDatabaseResponse descibeImportsFromDatabaseResponse = new DescibeImportsFromDatabaseResponse();
descibeImportsFromDatabaseResponse.HttpResponse = context.HttpResponse;
descibeImportsFromDatabaseResponse.RequestId = context.StringValue("DescibeImportsFromDatabase.RequestId");
descibeImportsFromDatabaseResponse.TotalRecordCount = context.IntegerValue("DescibeImportsFromDatabase.TotalRecordCount");
descibeImportsFromDatabaseResponse.PageNumber = context.IntegerValue("DescibeImportsFromDatabase.PageNumber");
descibeImportsFromDatabaseResponse.PageRecordCount = context.IntegerValue("DescibeImportsFromDatabase.PageRecordCount");
List<DescibeImportsFromDatabaseResponse.ImportResultFromDB> items = new List<DescibeImportsFromDatabaseResponse.ImportResultFromDB>();
for (int i = 0; i < context.Length("DescibeImportsFromDatabase.Items.Length"); i++) {
DescibeImportsFromDatabaseResponse.ImportResultFromDB importResultFromDB = new DescibeImportsFromDatabaseResponse.ImportResultFromDB();
importResultFromDB.ImportId = context.IntegerValue("DescibeImportsFromDatabase.Items["+ i +"].ImportId");
importResultFromDB.ImportDataType = context.EnumValue<DescibeImportsFromDatabaseResponse.ImportResultFromDB.ImportDataTypeEnum>("DescibeImportsFromDatabase.Items["+ i +"].ImportDataType");
importResultFromDB.ImportDataStatus = context.EnumValue<DescibeImportsFromDatabaseResponse.ImportResultFromDB.ImportDataStatusEnum>("DescibeImportsFromDatabase.Items["+ i +"].ImportDataStatus");
importResultFromDB.ImportDataStatusDescription = context.StringValue("DescibeImportsFromDatabase.Items["+ i +"].ImportDataStatusDescription");
importResultFromDB.IncrementalImportingTime = context.StringValue("DescibeImportsFromDatabase.Items["+ i +"].IncrementalImportingTime");
items.Add(importResultFromDB);
}
descibeImportsFromDatabaseResponse.Items = items;
return descibeImportsFromDatabaseResponse;
}
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:25,代码来源:DescibeImportsFromDatabaseResponseUnmarshaller.cs
示例2: Unmarshall
public static DescribeApiGroupsResponse Unmarshall(UnmarshallerContext context)
{
DescribeApiGroupsResponse describeApiGroupsResponse = new DescribeApiGroupsResponse();
describeApiGroupsResponse.HttpResponse = context.HttpResponse;
describeApiGroupsResponse.RequestId = context.StringValue("DescribeApiGroups.RequestId");
describeApiGroupsResponse.TotalCount = context.IntegerValue("DescribeApiGroups.TotalCount");
describeApiGroupsResponse.PageSize = context.IntegerValue("DescribeApiGroups.PageSize");
describeApiGroupsResponse.PageNumber = context.IntegerValue("DescribeApiGroups.PageNumber");
List<DescribeApiGroupsResponse.ApiGroupAttribute> apiGroupAttributes = new List<DescribeApiGroupsResponse.ApiGroupAttribute>();
for (int i = 0; i < context.Length("DescribeApiGroups.ApiGroupAttributes.Length"); i++) {
DescribeApiGroupsResponse.ApiGroupAttribute apiGroupAttribute = new DescribeApiGroupsResponse.ApiGroupAttribute();
apiGroupAttribute.GroupId = context.StringValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].GroupId");
apiGroupAttribute.GroupName = context.StringValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].GroupName");
apiGroupAttribute.SubDomain = context.StringValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].SubDomain");
apiGroupAttribute.Description = context.StringValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].Description");
apiGroupAttribute.CreatedTime = context.StringValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].CreatedTime");
apiGroupAttribute.ModifiedTime = context.StringValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].ModifiedTime");
apiGroupAttribute.RegionId = context.StringValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].RegionId");
apiGroupAttribute.TrafficLimit = context.IntegerValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].TrafficLimit");
apiGroupAttribute.BillingStatus = context.EnumValue<DescribeApiGroupsResponse.ApiGroupAttribute.BillingStatusEnum>("DescribeApiGroups.ApiGroupAttributes["+ i +"].BillingStatus");
apiGroupAttribute.IllegalStatus = context.EnumValue<DescribeApiGroupsResponse.ApiGroupAttribute.IllegalStatusEnum>("DescribeApiGroups.ApiGroupAttributes["+ i +"].IllegalStatus");
apiGroupAttributes.Add(apiGroupAttribute);
}
describeApiGroupsResponse.ApiGroupAttributes = apiGroupAttributes;
return describeApiGroupsResponse;
}
示例3: Unmarshall
public static DescribeInstancesResponse Unmarshall(UnmarshallerContext context)
{
DescribeInstancesResponse describeInstancesResponse = new DescribeInstancesResponse();
describeInstancesResponse.HttpResponse = context.HttpResponse;
describeInstancesResponse.RequestId = context.StringValue("DescribeInstances.RequestId");
List<DescribeInstancesResponse.Instance> instances = new List<DescribeInstancesResponse.Instance>();
for (int i = 0; i < context.Length("DescribeInstances.Instances.Length"); i++) {
DescribeInstancesResponse.Instance instance = new DescribeInstancesResponse.Instance();
instance.InstanceId = context.StringValue("DescribeInstances.Instances["+ i +"].InstanceId");
instance.InstanceType = context.EnumValue<DescribeInstancesResponse.Instance.InstanceTypeEnum>("DescribeInstances.Instances["+ i +"].InstanceType");
instance.PackageId = context.EnumValue<DescribeInstancesResponse.Instance.PackageIdEnum>("DescribeInstances.Instances["+ i +"].PackageId");
instance.Status = context.EnumValue<DescribeInstancesResponse.Instance.StatusEnum>("DescribeInstances.Instances["+ i +"].Status");
instance.InnerIpAddress = context.StringValue("DescribeInstances.Instances["+ i +"].InnerIpAddress");
instance.JumpserverStatus = context.EnumValue<DescribeInstancesResponse.Instance.JumpserverStatusEnum>("DescribeInstances.Instances["+ i +"].JumpserverStatus");
instance.JumpserverInnerIpAddress = context.StringValue("DescribeInstances.Instances["+ i +"].JumpserverInnerIpAddress");
instance.JumpServerPublicIpAddress = context.StringValue("DescribeInstances.Instances["+ i +"].JumpServerPublicIpAddress");
instances.Add(instance);
}
describeInstancesResponse.Instances = instances;
return describeInstancesResponse;
}
示例4: Unmarshall
public static DescribeAutoSnapshotPolicyResponse Unmarshall(UnmarshallerContext context)
{
DescribeAutoSnapshotPolicyResponse describeAutoSnapshotPolicyResponse = new DescribeAutoSnapshotPolicyResponse();
describeAutoSnapshotPolicyResponse.HttpResponse = context.HttpResponse;
describeAutoSnapshotPolicyResponse.RequestId = context.StringValue("DescribeAutoSnapshotPolicy.RequestId");
describeAutoSnapshotPolicyResponse.AutoSnapshotOccupation = context.IntegerValue("DescribeAutoSnapshotPolicy.AutoSnapshotOccupation");
DescribeAutoSnapshotPolicyResponse.AutoSnapshotPolicy_ autoSnapshotPolicy = new DescribeAutoSnapshotPolicyResponse.AutoSnapshotPolicy_();
autoSnapshotPolicy.SystemDiskPolicyEnabled = context.StringValue("DescribeAutoSnapshotPolicy.AutoSnapshotPolicy.SystemDiskPolicyEnabled");
autoSnapshotPolicy.SystemDiskPolicyTimePeriod = context.StringValue("DescribeAutoSnapshotPolicy.AutoSnapshotPolicy.SystemDiskPolicyTimePeriod");
autoSnapshotPolicy.SystemDiskPolicyRetentionDays = context.StringValue("DescribeAutoSnapshotPolicy.AutoSnapshotPolicy.SystemDiskPolicyRetentionDays");
autoSnapshotPolicy.SystemDiskPolicyRetentionLastWeek = context.StringValue("DescribeAutoSnapshotPolicy.AutoSnapshotPolicy.SystemDiskPolicyRetentionLastWeek");
autoSnapshotPolicy.DataDiskPolicyEnabled = context.StringValue("DescribeAutoSnapshotPolicy.AutoSnapshotPolicy.DataDiskPolicyEnabled");
autoSnapshotPolicy.DataDiskPolicyTimePeriod = context.StringValue("DescribeAutoSnapshotPolicy.AutoSnapshotPolicy.DataDiskPolicyTimePeriod");
autoSnapshotPolicy.DataDiskPolicyRetentionDays = context.StringValue("DescribeAutoSnapshotPolicy.AutoSnapshotPolicy.DataDiskPolicyRetentionDays");
autoSnapshotPolicy.DataDiskPolicyRetentionLastWeek = context.StringValue("DescribeAutoSnapshotPolicy.AutoSnapshotPolicy.DataDiskPolicyRetentionLastWeek");
describeAutoSnapshotPolicyResponse.AutoSnapshotPolicy = autoSnapshotPolicy;
DescribeAutoSnapshotPolicyResponse.AutoSnapshotExcutionStatus_ autoSnapshotExcutionStatus = new DescribeAutoSnapshotPolicyResponse.AutoSnapshotExcutionStatus_();
autoSnapshotExcutionStatus.SystemDiskExcutionStatus = context.EnumValue<DescribeAutoSnapshotPolicyResponse.AutoSnapshotExcutionStatus_.SystemDiskExcutionStatusEnum>("DescribeAutoSnapshotPolicy.AutoSnapshotExcutionStatus.SystemDiskExcutionStatus");
autoSnapshotExcutionStatus.DataDiskExcutionStatus = context.EnumValue<DescribeAutoSnapshotPolicyResponse.AutoSnapshotExcutionStatus_.DataDiskExcutionStatusEnum>("DescribeAutoSnapshotPolicy.AutoSnapshotExcutionStatus.DataDiskExcutionStatus");
describeAutoSnapshotPolicyResponse.AutoSnapshotExcutionStatus = autoSnapshotExcutionStatus;
return describeAutoSnapshotPolicyResponse;
}
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:26,代码来源:DescribeAutoSnapshotPolicyResponseUnmarshaller.cs
示例5: Unmarshall
public static DescribeApiGroupResponse Unmarshall(UnmarshallerContext context)
{
DescribeApiGroupResponse describeApiGroupResponse = new DescribeApiGroupResponse();
describeApiGroupResponse.HttpResponse = context.HttpResponse;
describeApiGroupResponse.RequestId = context.StringValue("DescribeApiGroup.RequestId");
describeApiGroupResponse.GroupId = context.StringValue("DescribeApiGroup.GroupId");
describeApiGroupResponse.GroupName = context.StringValue("DescribeApiGroup.GroupName");
describeApiGroupResponse.SubDomain = context.StringValue("DescribeApiGroup.SubDomain");
describeApiGroupResponse.Description = context.StringValue("DescribeApiGroup.Description");
describeApiGroupResponse.CreatedTime = context.StringValue("DescribeApiGroup.CreatedTime");
describeApiGroupResponse.ModifiedTime = context.StringValue("DescribeApiGroup.ModifiedTime");
describeApiGroupResponse.RegionId = context.StringValue("DescribeApiGroup.RegionId");
describeApiGroupResponse.Status = context.StringValue("DescribeApiGroup.Status");
describeApiGroupResponse.BillingStatus = context.EnumValue<DescribeApiGroupResponse.BillingStatusEnum>("DescribeApiGroup.BillingStatus");
describeApiGroupResponse.IllegalStatus = context.EnumValue<DescribeApiGroupResponse.IllegalStatusEnum>("DescribeApiGroup.IllegalStatus");
describeApiGroupResponse.TrafficLimit = context.IntegerValue("DescribeApiGroup.TrafficLimit");
List<DescribeApiGroupResponse.DomainItem> customDomains = new List<DescribeApiGroupResponse.DomainItem>();
for (int i = 0; i < context.Length("DescribeApiGroup.CustomDomains.Length"); i++) {
DescribeApiGroupResponse.DomainItem domainItem = new DescribeApiGroupResponse.DomainItem();
domainItem.DomainName = context.StringValue("DescribeApiGroup.CustomDomains["+ i +"].DomainName");
domainItem.CertificateId = context.StringValue("DescribeApiGroup.CustomDomains["+ i +"].CertificateId");
domainItem.CertificateName = context.StringValue("DescribeApiGroup.CustomDomains["+ i +"].CertificateName");
domainItem.DomainCNAMEStatus = context.StringValue("DescribeApiGroup.CustomDomains["+ i +"].DomainCNAMEStatus");
domainItem.DomainBindingStatus = context.StringValue("DescribeApiGroup.CustomDomains["+ i +"].DomainBindingStatus");
customDomains.Add(domainItem);
}
describeApiGroupResponse.CustomDomains = customDomains;
return describeApiGroupResponse;
}
示例6: Unmarshall
public static DescribeAccountsResponse Unmarshall(UnmarshallerContext context)
{
DescribeAccountsResponse describeAccountsResponse = new DescribeAccountsResponse();
describeAccountsResponse.HttpResponse = context.HttpResponse;
describeAccountsResponse.RequestId = context.StringValue("DescribeAccounts.RequestId");
List<DescribeAccountsResponse.DBInstanceAccount> accounts = new List<DescribeAccountsResponse.DBInstanceAccount>();
for (int i = 0; i < context.Length("DescribeAccounts.Accounts.Length"); i++) {
DescribeAccountsResponse.DBInstanceAccount dBInstanceAccount = new DescribeAccountsResponse.DBInstanceAccount();
dBInstanceAccount.DBInstanceId = context.StringValue("DescribeAccounts.Accounts["+ i +"].DBInstanceId");
dBInstanceAccount.AccountName = context.StringValue("DescribeAccounts.Accounts["+ i +"].AccountName");
dBInstanceAccount.AccountStatus = context.EnumValue<DescribeAccountsResponse.DBInstanceAccount.AccountStatusEnum>("DescribeAccounts.Accounts["+ i +"].AccountStatus");
dBInstanceAccount.AccountType = context.EnumValue<DescribeAccountsResponse.DBInstanceAccount.AccountTypeEnum>("DescribeAccounts.Accounts["+ i +"].AccountType");
dBInstanceAccount.AccountDescription = context.StringValue("DescribeAccounts.Accounts["+ i +"].AccountDescription");
List<DescribeAccountsResponse.DBInstanceAccount.DatabasePrivilege> databasePrivileges = new List<DescribeAccountsResponse.DBInstanceAccount.DatabasePrivilege>();
for (int j = 0; j < context.Length("DescribeAccounts.Accounts["+ i +"].DatabasePrivileges.Length"); j++) {
DescribeAccountsResponse.DBInstanceAccount.DatabasePrivilege databasePrivilege = new DescribeAccountsResponse.DBInstanceAccount.DatabasePrivilege();
databasePrivilege.DBName = context.StringValue("DescribeAccounts.Accounts["+ i +"].DatabasePrivileges["+ j +"].DBName");
databasePrivilege.AccountPrivilege = context.StringValue("DescribeAccounts.Accounts["+ i +"].DatabasePrivileges["+ j +"].AccountPrivilege");
databasePrivileges.Add(databasePrivilege);
}
dBInstanceAccount.DatabasePrivileges = databasePrivileges;
accounts.Add(dBInstanceAccount);
}
describeAccountsResponse.Accounts = accounts;
return describeAccountsResponse;
}
示例7: Unmarshall
public static DescribeDBInstancesResponse Unmarshall(UnmarshallerContext context)
{
DescribeDBInstancesResponse describeDBInstancesResponse = new DescribeDBInstancesResponse();
describeDBInstancesResponse.HttpResponse = context.HttpResponse;
describeDBInstancesResponse.RequestId = context.StringValue("DescribeDBInstances.RequestId");
describeDBInstancesResponse.PageNumber = context.IntegerValue("DescribeDBInstances.PageNumber");
describeDBInstancesResponse.TotalRecordCount = context.IntegerValue("DescribeDBInstances.TotalRecordCount");
describeDBInstancesResponse.PageRecordCount = context.IntegerValue("DescribeDBInstances.PageRecordCount");
List<DescribeDBInstancesResponse.DBInstance> items = new List<DescribeDBInstancesResponse.DBInstance>();
for (int i = 0; i < context.Length("DescribeDBInstances.Items.Length"); i++) {
DescribeDBInstancesResponse.DBInstance dBInstance = new DescribeDBInstancesResponse.DBInstance();
dBInstance.InsId = context.IntegerValue("DescribeDBInstances.Items["+ i +"].InsId");
dBInstance.DBInstanceId = context.StringValue("DescribeDBInstances.Items["+ i +"].DBInstanceId");
dBInstance.DBInstanceDescription = context.StringValue("DescribeDBInstances.Items["+ i +"].DBInstanceDescription");
dBInstance.PayType = context.StringValue("DescribeDBInstances.Items["+ i +"].PayType");
dBInstance.DBInstanceType = context.EnumValue<DescribeDBInstancesResponse.DBInstance.DBInstanceTypeEnum>("DescribeDBInstances.Items["+ i +"].DBInstanceType");
dBInstance.RegionId = context.StringValue("DescribeDBInstances.Items["+ i +"].RegionId");
dBInstance.ExpireTime = context.StringValue("DescribeDBInstances.Items["+ i +"].ExpireTime");
dBInstance.DBInstanceStatus = context.EnumValue<DescribeDBInstancesResponse.DBInstance.DBInstanceStatusEnum>("DescribeDBInstances.Items["+ i +"].DBInstanceStatus");
dBInstance.Engine = context.StringValue("DescribeDBInstances.Items["+ i +"].Engine");
dBInstance.DBInstanceNetType = context.EnumValue<DescribeDBInstancesResponse.DBInstance.DBInstanceNetTypeEnum>("DescribeDBInstances.Items["+ i +"].DBInstanceNetType");
dBInstance.ConnectionMode = context.EnumValue<DescribeDBInstancesResponse.DBInstance.ConnectionModeEnum>("DescribeDBInstances.Items["+ i +"].ConnectionMode");
dBInstance.LockMode = context.EnumValue<DescribeDBInstancesResponse.DBInstance.LockModeEnum>("DescribeDBInstances.Items["+ i +"].LockMode");
dBInstance.InstanceNetworkType = context.StringValue("DescribeDBInstances.Items["+ i +"].InstanceNetworkType");
dBInstance.LockReason = context.StringValue("DescribeDBInstances.Items["+ i +"].LockReason");
dBInstance.ZoneId = context.StringValue("DescribeDBInstances.Items["+ i +"].ZoneId");
dBInstance.MutriORsignle = context.BooleanValue("DescribeDBInstances.Items["+ i +"].MutriORsignle");
dBInstance.CreateTime = context.StringValue("DescribeDBInstances.Items["+ i +"].CreateTime");
dBInstance.EngineVersion = context.StringValue("DescribeDBInstances.Items["+ i +"].EngineVersion");
dBInstance.GuardDBInstanceId = context.StringValue("DescribeDBInstances.Items["+ i +"].GuardDBInstanceId");
dBInstance.TempDBInstanceId = context.StringValue("DescribeDBInstances.Items["+ i +"].TempDBInstanceId");
dBInstance.MasterInstanceId = context.StringValue("DescribeDBInstances.Items["+ i +"].MasterInstanceId");
dBInstance.VpcId = context.StringValue("DescribeDBInstances.Items["+ i +"].VpcId");
List<DescribeDBInstancesResponse.DBInstance.ReadOnlyDBInstanceId> readOnlyDBInstanceIds = new List<DescribeDBInstancesResponse.DBInstance.ReadOnlyDBInstanceId>();
for (int j = 0; j < context.Length("DescribeDBInstances.Items["+ i +"].ReadOnlyDBInstanceIds.Length"); j++) {
DescribeDBInstancesResponse.DBInstance.ReadOnlyDBInstanceId readOnlyDBInstanceId = new DescribeDBInstancesResponse.DBInstance.ReadOnlyDBInstanceId();
readOnlyDBInstanceId.DBInstanceId = context.StringValue("DescribeDBInstances.Items["+ i +"].ReadOnlyDBInstanceIds["+ j +"].DBInstanceId");
readOnlyDBInstanceIds.Add(readOnlyDBInstanceId);
}
dBInstance.ReadOnlyDBInstanceIds = readOnlyDBInstanceIds;
items.Add(dBInstance);
}
describeDBInstancesResponse.Items = items;
return describeDBInstancesResponse;
}
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:51,代码来源:DescribeDBInstancesResponseUnmarshaller.cs
示例8: Unmarshall
public static DescribeFilesForSQLServerResponse Unmarshall(UnmarshallerContext context)
{
DescribeFilesForSQLServerResponse describeFilesForSQLServerResponse = new DescribeFilesForSQLServerResponse();
describeFilesForSQLServerResponse.HttpResponse = context.HttpResponse;
describeFilesForSQLServerResponse.RequestId = context.StringValue("DescribeFilesForSQLServer.RequestId");
describeFilesForSQLServerResponse.DBInstanceId = context.StringValue("DescribeFilesForSQLServer.DBInstanceId");
describeFilesForSQLServerResponse.TotalRecordCount = context.IntegerValue("DescribeFilesForSQLServer.TotalRecordCount");
describeFilesForSQLServerResponse.PageNumber = context.IntegerValue("DescribeFilesForSQLServer.PageNumber");
describeFilesForSQLServerResponse.PageRecordCount = context.IntegerValue("DescribeFilesForSQLServer.PageRecordCount");
List<DescribeFilesForSQLServerResponse.SQLServerUploadFile> items = new List<DescribeFilesForSQLServerResponse.SQLServerUploadFile>();
for (int i = 0; i < context.Length("DescribeFilesForSQLServer.Items.Length"); i++) {
DescribeFilesForSQLServerResponse.SQLServerUploadFile sQLServerUploadFile = new DescribeFilesForSQLServerResponse.SQLServerUploadFile();
sQLServerUploadFile.DBName = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].DBName");
sQLServerUploadFile.FileName = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].FileName");
sQLServerUploadFile.FileSize = context.LongValue("DescribeFilesForSQLServer.Items["+ i +"].FileSize");
sQLServerUploadFile.InternetFtpServer = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].InternetFtpServer");
sQLServerUploadFile.InternetPort = context.IntegerValue("DescribeFilesForSQLServer.Items["+ i +"].InternetPort");
sQLServerUploadFile.IntranetFtpserver = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].IntranetFtpserver");
sQLServerUploadFile.Intranetport = context.IntegerValue("DescribeFilesForSQLServer.Items["+ i +"].Intranetport");
sQLServerUploadFile.UserName = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].UserName");
sQLServerUploadFile.Password = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].Password");
sQLServerUploadFile.FileStatus = context.EnumValue<DescribeFilesForSQLServerResponse.SQLServerUploadFile.FileStatusEnum>("DescribeFilesForSQLServer.Items["+ i +"].FileStatus");
sQLServerUploadFile.Description = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].Description");
sQLServerUploadFile.CreationTime = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].CreationTime");
items.Add(sQLServerUploadFile);
}
describeFilesForSQLServerResponse.Items = items;
return describeFilesForSQLServerResponse;
}
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:33,代码来源:DescribeFilesForSQLServerResponseUnmarshaller.cs
示例9: Unmarshall
public static DescribeRealtimeDiagnosesResponse Unmarshall(UnmarshallerContext context)
{
DescribeRealtimeDiagnosesResponse describeRealtimeDiagnosesResponse = new DescribeRealtimeDiagnosesResponse();
describeRealtimeDiagnosesResponse.HttpResponse = context.HttpResponse;
describeRealtimeDiagnosesResponse.RequestId = context.StringValue("DescribeRealtimeDiagnoses.RequestId");
describeRealtimeDiagnosesResponse.Engine = context.StringValue("DescribeRealtimeDiagnoses.Engine");
describeRealtimeDiagnosesResponse.TotalRecordCount = context.IntegerValue("DescribeRealtimeDiagnoses.TotalRecordCount");
describeRealtimeDiagnosesResponse.PageNumber = context.IntegerValue("DescribeRealtimeDiagnoses.PageNumber");
describeRealtimeDiagnosesResponse.PageRecordCount = context.IntegerValue("DescribeRealtimeDiagnoses.PageRecordCount");
List<DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks> tasks = new List<DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks>();
for (int i = 0; i < context.Length("DescribeRealtimeDiagnoses.Tasks.Length"); i++) {
DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks realtimeDiagnoseTasks = new DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks();
realtimeDiagnoseTasks.CreateTime = context.StringValue("DescribeRealtimeDiagnoses.Tasks["+ i +"].CreateTime");
realtimeDiagnoseTasks.TaskId = context.StringValue("DescribeRealtimeDiagnoses.Tasks["+ i +"].TaskId");
realtimeDiagnoseTasks.HealthScore = context.StringValue("DescribeRealtimeDiagnoses.Tasks["+ i +"].HealthScore");
realtimeDiagnoseTasks.Status = context.EnumValue<DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks.StatusEnum>("DescribeRealtimeDiagnoses.Tasks["+ i +"].Status");
tasks.Add(realtimeDiagnoseTasks);
}
describeRealtimeDiagnosesResponse.Tasks = tasks;
return describeRealtimeDiagnosesResponse;
}
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:25,代码来源:DescribeRealtimeDiagnosesResponseUnmarshaller.cs
示例10: Unmarshall
public static DescribeModifyParameterLogResponse Unmarshall(UnmarshallerContext context)
{
DescribeModifyParameterLogResponse describeModifyParameterLogResponse = new DescribeModifyParameterLogResponse();
describeModifyParameterLogResponse.HttpResponse = context.HttpResponse;
describeModifyParameterLogResponse.RequestId = context.StringValue("DescribeModifyParameterLog.RequestId");
describeModifyParameterLogResponse.Engine = context.StringValue("DescribeModifyParameterLog.Engine");
describeModifyParameterLogResponse.DBInstanceId = context.StringValue("DescribeModifyParameterLog.DBInstanceId");
describeModifyParameterLogResponse.EngineVersion = context.StringValue("DescribeModifyParameterLog.EngineVersion");
describeModifyParameterLogResponse.TotalRecordCount = context.IntegerValue("DescribeModifyParameterLog.TotalRecordCount");
describeModifyParameterLogResponse.PageNumber = context.IntegerValue("DescribeModifyParameterLog.PageNumber");
describeModifyParameterLogResponse.PageRecordCount = context.IntegerValue("DescribeModifyParameterLog.PageRecordCount");
List<DescribeModifyParameterLogResponse.ParameterChangeLog> items = new List<DescribeModifyParameterLogResponse.ParameterChangeLog>();
for (int i = 0; i < context.Length("DescribeModifyParameterLog.Items.Length"); i++) {
DescribeModifyParameterLogResponse.ParameterChangeLog parameterChangeLog = new DescribeModifyParameterLogResponse.ParameterChangeLog();
parameterChangeLog.ModifyTime = context.StringValue("DescribeModifyParameterLog.Items["+ i +"].ModifyTime");
parameterChangeLog.OldParameterValue = context.StringValue("DescribeModifyParameterLog.Items["+ i +"].OldParameterValue");
parameterChangeLog.NewParameterValue = context.StringValue("DescribeModifyParameterLog.Items["+ i +"].NewParameterValue");
parameterChangeLog.ParameterName = context.StringValue("DescribeModifyParameterLog.Items["+ i +"].ParameterName");
parameterChangeLog.Status = context.EnumValue<DescribeModifyParameterLogResponse.ParameterChangeLog.StatusEnum>("DescribeModifyParameterLog.Items["+ i +"].Status");
items.Add(parameterChangeLog);
}
describeModifyParameterLogResponse.Items = items;
return describeModifyParameterLogResponse;
}
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:28,代码来源:DescribeModifyParameterLogResponseUnmarshaller.cs
示例11: Unmarshall
public static DescribeDatabasesResponse Unmarshall(UnmarshallerContext context)
{
DescribeDatabasesResponse describeDatabasesResponse = new DescribeDatabasesResponse();
describeDatabasesResponse.HttpResponse = context.HttpResponse;
describeDatabasesResponse.RequestId = context.StringValue("DescribeDatabases.RequestId");
List<DescribeDatabasesResponse.Database> databases = new List<DescribeDatabasesResponse.Database>();
for (int i = 0; i < context.Length("DescribeDatabases.Databases.Length"); i++) {
DescribeDatabasesResponse.Database database = new DescribeDatabasesResponse.Database();
database.DBName = context.StringValue("DescribeDatabases.Databases["+ i +"].DBName");
database.DBInstanceId = context.StringValue("DescribeDatabases.Databases["+ i +"].DBInstanceId");
database.Engine = context.StringValue("DescribeDatabases.Databases["+ i +"].Engine");
database.DBStatus = context.EnumValue<DescribeDatabasesResponse.Database.DBStatusEnum>("DescribeDatabases.Databases["+ i +"].DBStatus");
database.CharacterSetName = context.StringValue("DescribeDatabases.Databases["+ i +"].CharacterSetName");
database.DBDescription = context.StringValue("DescribeDatabases.Databases["+ i +"].DBDescription");
List<DescribeDatabasesResponse.Database.AccountPrivilegeInfo> accounts = new List<DescribeDatabasesResponse.Database.AccountPrivilegeInfo>();
for (int j = 0; j < context.Length("DescribeDatabases.Databases["+ i +"].Accounts.Length"); j++) {
DescribeDatabasesResponse.Database.AccountPrivilegeInfo accountPrivilegeInfo = new DescribeDatabasesResponse.Database.AccountPrivilegeInfo();
accountPrivilegeInfo.Account = context.StringValue("DescribeDatabases.Databases["+ i +"].Accounts["+ j +"].Account");
accountPrivilegeInfo.AccountPrivilege = context.StringValue("DescribeDatabases.Databases["+ i +"].Accounts["+ j +"].AccountPrivilege");
accounts.Add(accountPrivilegeInfo);
}
database.Accounts = accounts;
databases.Add(database);
}
describeDatabasesResponse.Databases = databases;
return describeDatabasesResponse;
}
示例12: Unmarshall
public static DescribeDBInstanceHAConfigResponse Unmarshall(UnmarshallerContext context)
{
DescribeDBInstanceHAConfigResponse describeDBInstanceHAConfigResponse = new DescribeDBInstanceHAConfigResponse();
describeDBInstanceHAConfigResponse.HttpResponse = context.HttpResponse;
describeDBInstanceHAConfigResponse.RequestId = context.StringValue("DescribeDBInstanceHAConfig.RequestId");
describeDBInstanceHAConfigResponse.DBInstanceId = context.StringValue("DescribeDBInstanceHAConfig.DBInstanceId");
describeDBInstanceHAConfigResponse.SyncMode = context.StringValue("DescribeDBInstanceHAConfig.SyncMode");
describeDBInstanceHAConfigResponse.HAMode = context.StringValue("DescribeDBInstanceHAConfig.HAMode");
List<DescribeDBInstanceHAConfigResponse.NodeInfo> hostInstanceInfos = new List<DescribeDBInstanceHAConfigResponse.NodeInfo>();
for (int i = 0; i < context.Length("DescribeDBInstanceHAConfig.HostInstanceInfos.Length"); i++) {
DescribeDBInstanceHAConfigResponse.NodeInfo nodeInfo = new DescribeDBInstanceHAConfigResponse.NodeInfo();
nodeInfo.NodeId = context.StringValue("DescribeDBInstanceHAConfig.HostInstanceInfos["+ i +"].NodeId");
nodeInfo.RegionId = context.StringValue("DescribeDBInstanceHAConfig.HostInstanceInfos["+ i +"].RegionId");
nodeInfo.LogSyncTime = context.StringValue("DescribeDBInstanceHAConfig.HostInstanceInfos["+ i +"].LogSyncTime");
nodeInfo.DataSyncTime = context.StringValue("DescribeDBInstanceHAConfig.HostInstanceInfos["+ i +"].DataSyncTime");
nodeInfo.NodeType = context.StringValue("DescribeDBInstanceHAConfig.HostInstanceInfos["+ i +"].NodeType");
nodeInfo.ZoneId = context.StringValue("DescribeDBInstanceHAConfig.HostInstanceInfos["+ i +"].ZoneId");
nodeInfo.SyncStatus = context.EnumValue<DescribeDBInstanceHAConfigResponse.NodeInfo.SyncStatusEnum>("DescribeDBInstanceHAConfig.HostInstanceInfos["+ i +"].SyncStatus");
hostInstanceInfos.Add(nodeInfo);
}
describeDBInstanceHAConfigResponse.HostInstanceInfos = hostInstanceInfos;
return describeDBInstanceHAConfigResponse;
}
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:27,代码来源:DescribeDBInstanceHAConfigResponseUnmarshaller.cs
示例13: Unmarshall
public static DescribeHistoryApisResponse Unmarshall(UnmarshallerContext context)
{
DescribeHistoryApisResponse describeHistoryApisResponse = new DescribeHistoryApisResponse();
describeHistoryApisResponse.HttpResponse = context.HttpResponse;
describeHistoryApisResponse.RequestId = context.StringValue("DescribeHistoryApis.RequestId");
describeHistoryApisResponse.TotalCount = context.IntegerValue("DescribeHistoryApis.TotalCount");
describeHistoryApisResponse.PageSize = context.IntegerValue("DescribeHistoryApis.PageSize");
describeHistoryApisResponse.PageNumber = context.IntegerValue("DescribeHistoryApis.PageNumber");
List<DescribeHistoryApisResponse.ApiHisItem> apiHisItems = new List<DescribeHistoryApisResponse.ApiHisItem>();
for (int i = 0; i < context.Length("DescribeHistoryApis.ApiHisItems.Length"); i++) {
DescribeHistoryApisResponse.ApiHisItem apiHisItem = new DescribeHistoryApisResponse.ApiHisItem();
apiHisItem.RegionId = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].RegionId");
apiHisItem.ApiId = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].ApiId");
apiHisItem.ApiName = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].ApiName");
apiHisItem.GroupId = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].GroupId");
apiHisItem.GroupName = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].GroupName");
apiHisItem.StageName = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].StageName");
apiHisItem.HistoryVersion = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].HistoryVersion");
apiHisItem.Status = context.EnumValue<DescribeHistoryApisResponse.ApiHisItem.StatusEnum>("DescribeHistoryApis.ApiHisItems["+ i +"].Status");
apiHisItem.Description = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].Description");
apiHisItem.DeployedTime = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].DeployedTime");
apiHisItems.Add(apiHisItem);
}
describeHistoryApisResponse.ApiHisItems = apiHisItems;
return describeHistoryApisResponse;
}
示例14: Unmarshall
public static DescribeSQLLogFilesResponse Unmarshall(UnmarshallerContext context)
{
DescribeSQLLogFilesResponse describeSQLLogFilesResponse = new DescribeSQLLogFilesResponse();
describeSQLLogFilesResponse.HttpResponse = context.HttpResponse;
describeSQLLogFilesResponse.RequestId = context.StringValue("DescribeSQLLogFiles.RequestId");
describeSQLLogFilesResponse.TotalRecordCount = context.IntegerValue("DescribeSQLLogFiles.TotalRecordCount");
describeSQLLogFilesResponse.PageNumber = context.IntegerValue("DescribeSQLLogFiles.PageNumber");
describeSQLLogFilesResponse.PageRecordCount = context.IntegerValue("DescribeSQLLogFiles.PageRecordCount");
List<DescribeSQLLogFilesResponse.LogFile> items = new List<DescribeSQLLogFilesResponse.LogFile>();
for (int i = 0; i < context.Length("DescribeSQLLogFiles.Items.Length"); i++) {
DescribeSQLLogFilesResponse.LogFile logFile = new DescribeSQLLogFilesResponse.LogFile();
logFile.FileID = context.StringValue("DescribeSQLLogFiles.Items["+ i +"].FileID");
logFile.LogStatus = context.EnumValue<DescribeSQLLogFilesResponse.LogFile.LogStatusEnum>("DescribeSQLLogFiles.Items["+ i +"].LogStatus");
logFile.LogDownloadURL = context.StringValue("DescribeSQLLogFiles.Items["+ i +"].LogDownloadURL");
logFile.LogSize = context.StringValue("DescribeSQLLogFiles.Items["+ i +"].LogSize");
logFile.LogStartTime = context.StringValue("DescribeSQLLogFiles.Items["+ i +"].LogStartTime");
logFile.LogEndTime = context.StringValue("DescribeSQLLogFiles.Items["+ i +"].LogEndTime");
items.Add(logFile);
}
describeSQLLogFilesResponse.Items = items;
return describeSQLLogFilesResponse;
}
开发者ID:RongieZeng,项目名称:aliyun-openapi-net-sdk,代码行数:26,代码来源:DescribeSQLLogFilesResponseUnmarshaller.cs
示例15: Unmarshall
public static DescribeBackupsResponse Unmarshall(UnmarshallerContext context)
{
DescribeBackupsResponse describeBackupsResponse = new DescribeBackupsResponse();
describeBackupsResponse.HttpResponse = context.HttpResponse;
describeBackupsResponse.RequestId = context.StringValue("DescribeBackups.RequestId");
describeBackupsResponse.TotalRecordCount = context.StringValue("DescribeBackups.TotalRecordCount");
describeBackupsResponse.PageNumber = context.StringValue("DescribeBackups.PageNumber");
describeBackupsResponse.PageRecordCount = context.StringValue("DescribeBackups.PageRecordCount");
List<DescribeBackupsResponse.Backup> items = new List<DescribeBackupsResponse.Backup>();
for (int i = 0; i < context.Length("DescribeBackups.Items.Length"); i++) {
DescribeBackupsResponse.Backup backup = new DescribeBackupsResponse.Backup();
backup.BackupId = context.StringValue("DescribeBackups.Items["+ i +"].BackupId");
backup.DBInstanceId = context.StringValue("DescribeBackups.Items["+ i +"].DBInstanceId");
backup.BackupStatus = context.EnumValue<DescribeBackupsResponse.Backup.BackupStatusEnum>("DescribeBackups.Items["+ i +"].BackupStatus");
backup.BackupStartTime = context.StringValue("DescribeBackups.Items["+ i +"].BackupStartTime");
backup.BackupEndTime = context.StringValue("DescribeBackups.Items["+ i +"].BackupEndTime");
backup.BackupType = context.EnumValue<DescribeBackupsResponse.Backup.BackupTypeEnum>("DescribeBackups.Items["+ i +"].BackupType");
backup.BackupMode = context.EnumValue<DescribeBackupsResponse.Backup.BackupModeEnum>("DescribeBackups.Items["+ i +"].BackupMode");
backup.BackupMethod = context.EnumValue<DescribeBackupsResponse.Backup.BackupMethodEnum>("DescribeBackups.Items["+ i +"].BackupMethod");
backup.BackupDownloadURL = context.StringValue("DescribeBackups.Items["+ i +"].BackupDownloadURL");
backup.BackupLocation = context.StringValue("DescribeBackups.Items["+ i +"].BackupLocation");
backup.BackupExtractionStatus = context.EnumValue<DescribeBackupsResponse.Backup.BackupExtractionStatusEnum>("DescribeBackups.Items["+ i +"].BackupExtractionStatus");
backup.BackupScale = context.EnumValue<DescribeBackupsResponse.Backup.BackupScaleEnum>("DescribeBackups.Items["+ i +"].BackupScale");
backup.BackupDBNames = context.StringValue("DescribeBackups.Items["+ i +"].BackupDBNames");
backup.BackupSize = context.LongValue("DescribeBackups.Items["+ i +"].BackupSize");
items.Add(backup);
}
describeBackupsResponse.Items = items;
return describeBackupsResponse;
}