Пример #1
0
        public static ListInstancesResponse Unmarshall(UnmarshallerContext context)
        {
            ListInstancesResponse listInstancesResponse = new ListInstancesResponse();

            listInstancesResponse.HttpResponse   = context.HttpResponse;
            listInstancesResponse.RequestId      = context.StringValue("ListInstances.RequestId");
            listInstancesResponse.Success        = context.BooleanValue("ListInstances.Success");
            listInstancesResponse.Code           = context.StringValue("ListInstances.Code");
            listInstancesResponse.Message        = context.StringValue("ListInstances.Message");
            listInstancesResponse.HttpStatusCode = context.IntegerValue("ListInstances.HttpStatusCode");

            List <ListInstancesResponse.ListInstances_Instance> listInstancesResponse_instances = new List <ListInstancesResponse.ListInstances_Instance>();

            for (int i = 0; i < context.Length("ListInstances.Instances.Length"); i++)
            {
                ListInstancesResponse.ListInstances_Instance instance = new ListInstancesResponse.ListInstances_Instance();
                instance.InstanceId                = context.StringValue("ListInstances.Instances[" + i + "].InstanceId");
                instance.InstanceName              = context.StringValue("ListInstances.Instances[" + i + "].InstanceName");
                instance.InstanceDescription       = context.StringValue("ListInstances.Instances[" + i + "].InstanceDescription");
                instance.MaxConcurrentConversation = context.IntegerValue("ListInstances.Instances[" + i + "].MaxConcurrentConversation");
                instance.Owner                = context.StringValue("ListInstances.Instances[" + i + "].Owner");
                instance.CreationTime         = context.LongValue("ListInstances.Instances[" + i + "].CreationTime");
                instance.CallCenterInstanceId = context.StringValue("ListInstances.Instances[" + i + "].CallCenterInstanceId");
                instance.IsTemplateContainer  = context.BooleanValue("ListInstances.Instances[" + i + "].IsTemplateContainer");

                listInstancesResponse_instances.Add(instance);
            }
            listInstancesResponse.Instances = listInstancesResponse_instances;

            return(listInstancesResponse);
        }
        public static ListInstancesResponse Unmarshall(UnmarshallerContext _ctx)
        {
            ListInstancesResponse listInstancesResponse = new ListInstancesResponse();

            listInstancesResponse.HttpResponse = _ctx.HttpResponse;
            listInstancesResponse.RequestId    = _ctx.StringValue("ListInstances.RequestId");
            listInstancesResponse.Success      = _ctx.BooleanValue("ListInstances.Success");
            listInstancesResponse.ErrorMessage = _ctx.StringValue("ListInstances.ErrorMessage");
            listInstancesResponse.ErrorCode    = _ctx.StringValue("ListInstances.ErrorCode");
            listInstancesResponse.TotalCount   = _ctx.LongValue("ListInstances.TotalCount");

            List <ListInstancesResponse.ListInstances_Instance> listInstancesResponse_instanceList = new List <ListInstancesResponse.ListInstances_Instance>();

            for (int i = 0; i < _ctx.Length("ListInstances.InstanceList.Length"); i++)
            {
                ListInstancesResponse.ListInstances_Instance instance = new ListInstancesResponse.ListInstances_Instance();
                instance.InstanceId       = _ctx.StringValue("ListInstances.InstanceList[" + i + "].InstanceId");
                instance.InstanceType     = _ctx.StringValue("ListInstances.InstanceList[" + i + "].InstanceType");
                instance.EnvType          = _ctx.StringValue("ListInstances.InstanceList[" + i + "].EnvType");
                instance.Host             = _ctx.StringValue("ListInstances.InstanceList[" + i + "].Host");
                instance.Port             = _ctx.IntegerValue("ListInstances.InstanceList[" + i + "].Port");
                instance.Sid              = _ctx.StringValue("ListInstances.InstanceList[" + i + "].Sid");
                instance.InstanceAlias    = _ctx.StringValue("ListInstances.InstanceList[" + i + "].InstanceAlias");
                instance.DataLinkName     = _ctx.StringValue("ListInstances.InstanceList[" + i + "].DataLinkName");
                instance.DbaNickName      = _ctx.StringValue("ListInstances.InstanceList[" + i + "].DbaNickName");
                instance.SafeRuleId       = _ctx.StringValue("ListInstances.InstanceList[" + i + "].SafeRuleId");
                instance.QueryTimeout     = _ctx.IntegerValue("ListInstances.InstanceList[" + i + "].QueryTimeout");
                instance.ExportTimeout    = _ctx.IntegerValue("ListInstances.InstanceList[" + i + "].ExportTimeout");
                instance.State            = _ctx.StringValue("ListInstances.InstanceList[" + i + "].State");
                instance.DbaId            = _ctx.StringValue("ListInstances.InstanceList[" + i + "].DbaId");
                instance.DdlOnline        = _ctx.IntegerValue("ListInstances.InstanceList[" + i + "].DdlOnline");
                instance.UseDsql          = _ctx.IntegerValue("ListInstances.InstanceList[" + i + "].UseDsql");
                instance.EcsInstanceId    = _ctx.StringValue("ListInstances.InstanceList[" + i + "].EcsInstanceId");
                instance.VpcId            = _ctx.StringValue("ListInstances.InstanceList[" + i + "].VpcId");
                instance.EcsRegion        = _ctx.StringValue("ListInstances.InstanceList[" + i + "].EcsRegion");
                instance.DatabaseUser     = _ctx.StringValue("ListInstances.InstanceList[" + i + "].DatabaseUser");
                instance.DatabasePassword = _ctx.StringValue("ListInstances.InstanceList[" + i + "].DatabasePassword");
                instance.InstanceSource   = _ctx.StringValue("ListInstances.InstanceList[" + i + "].InstanceSource");

                List <string> instance_ownerIdList = new List <string>();
                for (int j = 0; j < _ctx.Length("ListInstances.InstanceList[" + i + "].OwnerIdList.Length"); j++)
                {
                    instance_ownerIdList.Add(_ctx.StringValue("ListInstances.InstanceList[" + i + "].OwnerIdList[" + j + "]"));
                }
                instance.OwnerIdList = instance_ownerIdList;

                List <string> instance_ownerNameList = new List <string>();
                for (int j = 0; j < _ctx.Length("ListInstances.InstanceList[" + i + "].OwnerNameList.Length"); j++)
                {
                    instance_ownerNameList.Add(_ctx.StringValue("ListInstances.InstanceList[" + i + "].OwnerNameList[" + j + "]"));
                }
                instance.OwnerNameList = instance_ownerNameList;

                listInstancesResponse_instanceList.Add(instance);
            }
            listInstancesResponse.InstanceList = listInstancesResponse_instanceList;

            return(listInstancesResponse);
        }
Пример #3
0
        public static ListInstancesResponse Unmarshall(UnmarshallerContext _ctx)
        {
            ListInstancesResponse listInstancesResponse = new ListInstancesResponse();

            listInstancesResponse.HttpResponse   = _ctx.HttpResponse;
            listInstancesResponse.Code           = _ctx.StringValue("ListInstances.Code");
            listInstancesResponse.HttpStatusCode = _ctx.IntegerValue("ListInstances.HttpStatusCode");
            listInstancesResponse.Message        = _ctx.StringValue("ListInstances.Message");
            listInstancesResponse.RequestId      = _ctx.StringValue("ListInstances.RequestId");
            listInstancesResponse.Success        = _ctx.BooleanValue("ListInstances.Success");

            List <ListInstancesResponse.ListInstances_Instance> listInstancesResponse_instances = new List <ListInstancesResponse.ListInstances_Instance>();

            for (int i = 0; i < _ctx.Length("ListInstances.Instances.Length"); i++)
            {
                ListInstancesResponse.ListInstances_Instance instance = new ListInstancesResponse.ListInstances_Instance();
                instance.CallCenterInstanceId      = _ctx.StringValue("ListInstances.Instances[" + i + "].CallCenterInstanceId");
                instance.CreationTime              = _ctx.LongValue("ListInstances.Instances[" + i + "].CreationTime");
                instance.InstanceDescription       = _ctx.StringValue("ListInstances.Instances[" + i + "].InstanceDescription");
                instance.InstanceId                = _ctx.StringValue("ListInstances.Instances[" + i + "].InstanceId");
                instance.InstanceName              = _ctx.StringValue("ListInstances.Instances[" + i + "].InstanceName");
                instance.IsTemplateContainer       = _ctx.BooleanValue("ListInstances.Instances[" + i + "].IsTemplateContainer");
                instance.MaxConcurrentConversation = _ctx.IntegerValue("ListInstances.Instances[" + i + "].MaxConcurrentConversation");
                instance.OwnerName       = _ctx.StringValue("ListInstances.Instances[" + i + "].OwnerName");
                instance.CreatorId       = _ctx.LongValue("ListInstances.Instances[" + i + "].CreatorId");
                instance.CreatorName     = _ctx.StringValue("ListInstances.Instances[" + i + "].CreatorName");
                instance.NluServiceType  = _ctx.StringValue("ListInstances.Instances[" + i + "].NluServiceType");
                instance.Owner           = _ctx.StringValue("ListInstances.Instances[" + i + "].Owner");
                instance.ResourceGroupId = _ctx.StringValue("ListInstances.Instances[" + i + "].ResourceGroupId");

                ListInstancesResponse.ListInstances_Instance.ListInstances_NluProfile nluProfile = new ListInstancesResponse.ListInstances_Instance.ListInstances_NluProfile();
                nluProfile.AccessKey = _ctx.StringValue("ListInstances.Instances[" + i + "].NluProfile.AccessKey");
                nluProfile.Endpoint  = _ctx.StringValue("ListInstances.Instances[" + i + "].NluProfile.Endpoint");
                nluProfile.SecretKey = _ctx.StringValue("ListInstances.Instances[" + i + "].NluProfile.SecretKey");
                instance.NluProfile  = nluProfile;

                List <ListInstancesResponse.ListInstances_Instance.ListInstances_ResourceTag> instance_resourceTags = new List <ListInstancesResponse.ListInstances_Instance.ListInstances_ResourceTag>();
                for (int j = 0; j < _ctx.Length("ListInstances.Instances[" + i + "].ResourceTags.Length"); j++)
                {
                    ListInstancesResponse.ListInstances_Instance.ListInstances_ResourceTag resourceTag = new ListInstancesResponse.ListInstances_Instance.ListInstances_ResourceTag();
                    resourceTag.Key    = _ctx.StringValue("ListInstances.Instances[" + i + "].ResourceTags[" + j + "].Key");
                    resourceTag._Value = _ctx.StringValue("ListInstances.Instances[" + i + "].ResourceTags[" + j + "].Value");

                    instance_resourceTags.Add(resourceTag);
                }
                instance.ResourceTags = instance_resourceTags;

                listInstancesResponse_instances.Add(instance);
            }
            listInstancesResponse.Instances = listInstancesResponse_instances;

            return(listInstancesResponse);
        }
Пример #4
0
        public static ListInstancesResponse Unmarshall(UnmarshallerContext _ctx)
        {
            ListInstancesResponse listInstancesResponse = new ListInstancesResponse();

            listInstancesResponse.HttpResponse = _ctx.HttpResponse;
            listInstancesResponse.RequestId    = _ctx.StringValue("ListInstances.RequestId");
            listInstancesResponse.TotalCount   = _ctx.IntegerValue("ListInstances.TotalCount");
            listInstancesResponse.PageNumber   = _ctx.IntegerValue("ListInstances.PageNumber");
            listInstancesResponse.PageSize     = _ctx.IntegerValue("ListInstances.PageSize");

            List <ListInstancesResponse.ListInstances_Instance> listInstancesResponse_instances = new List <ListInstancesResponse.ListInstances_Instance>();

            for (int i = 0; i < _ctx.Length("ListInstances.Instances.Length"); i++)
            {
                ListInstancesResponse.ListInstances_Instance instance = new ListInstancesResponse.ListInstances_Instance();
                instance.InstanceId     = _ctx.StringValue("ListInstances.Instances[" + i + "].InstanceId");
                instance.Name           = _ctx.StringValue("ListInstances.Instances[" + i + "].Name");
                instance.Description    = _ctx.StringValue("ListInstances.Instances[" + i + "].Description");
                instance.Status         = _ctx.StringValue("ListInstances.Instances[" + i + "].Status");
                instance.Concurrency    = _ctx.LongValue("ListInstances.Instances[" + i + "].Concurrency");
                instance.ModifyTime     = _ctx.LongValue("ListInstances.Instances[" + i + "].ModifyTime");
                instance.ModifyUserName = _ctx.StringValue("ListInstances.Instances[" + i + "].ModifyUserName");
                instance.NluServiceType = _ctx.StringValue("ListInstances.Instances[" + i + "].NluServiceType");

                List <string> instance_applicableOperations = new List <string>();
                for (int j = 0; j < _ctx.Length("ListInstances.Instances[" + i + "].ApplicableOperations.Length"); j++)
                {
                    instance_applicableOperations.Add(_ctx.StringValue("ListInstances.Instances[" + i + "].ApplicableOperations[" + j + "]"));
                }
                instance.ApplicableOperations = instance_applicableOperations;

                listInstancesResponse_instances.Add(instance);
            }
            listInstancesResponse.Instances = listInstancesResponse_instances;

            return(listInstancesResponse);
        }