Exemple #1
0
        public static RollbackInstanceResponse Unmarshall(UnmarshallerContext context)
        {
            RollbackInstanceResponse rollbackInstanceResponse = new RollbackInstanceResponse();

            rollbackInstanceResponse.HttpResponse = context.HttpResponse;
            rollbackInstanceResponse.RequestId    = context.StringValue("RollbackInstance.RequestId");

            RollbackInstanceResponse.RollbackInstance_Result result = new RollbackInstanceResponse.RollbackInstance_Result();
            result.InstanceId  = context.StringValue("RollbackInstance.Result.InstanceId");
            result.Domain      = context.StringValue("RollbackInstance.Result.Domain");
            result.Description = context.StringValue("RollbackInstance.Result.Description");
            result.NodeAmount  = context.IntegerValue("RollbackInstance.Result.NodeAmount");
            result.PaymentType = context.StringValue("RollbackInstance.Result.PaymentType");
            result.Status      = context.StringValue("RollbackInstance.Result.Status");
            result.EsVersion   = context.StringValue("RollbackInstance.Result.EsVersion");
            result.CreatedAt   = context.StringValue("RollbackInstance.Result.CreatedAt");
            result.UpdatedAt   = context.StringValue("RollbackInstance.Result.UpdatedAt");

            RollbackInstanceResponse.RollbackInstance_Result.RollbackInstance_NodeSpec nodeSpec = new RollbackInstanceResponse.RollbackInstance_Result.RollbackInstance_NodeSpec();
            nodeSpec.Spec   = context.StringValue("RollbackInstance.Result.NodeSpec.Spec");
            nodeSpec.Disk   = context.IntegerValue("RollbackInstance.Result.NodeSpec.Disk");
            result.NodeSpec = nodeSpec;

            RollbackInstanceResponse.RollbackInstance_Result.RollbackInstance_NetworkConfig networkConfig = new RollbackInstanceResponse.RollbackInstance_Result.RollbackInstance_NetworkConfig();
            networkConfig.Type              = context.StringValue("RollbackInstance.Result.NetworkConfig.Type");
            networkConfig.VpcId             = context.StringValue("RollbackInstance.Result.NetworkConfig.VpcId");
            networkConfig.VswitchId         = context.StringValue("RollbackInstance.Result.NetworkConfig.VswitchId");
            networkConfig.VsArea            = context.StringValue("RollbackInstance.Result.NetworkConfig.VsArea");
            result.NetworkConfig            = networkConfig;
            rollbackInstanceResponse.Result = result;

            return(rollbackInstanceResponse);
        }
Exemple #2
0
        public static RollbackInstanceResponse Unmarshall(UnmarshallerContext context)
        {
            RollbackInstanceResponse rollbackInstanceResponse = new RollbackInstanceResponse();

            rollbackInstanceResponse.HttpResponse = context.HttpResponse;
            rollbackInstanceResponse.RequestId    = context.StringValue("RollbackInstance.RequestId");
            rollbackInstanceResponse.Status       = context.StringValue("RollbackInstance.Status");

            return(rollbackInstanceResponse);
        }