示例#1
0
        public static DescribeUserConfigsResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeUserConfigsResponse describeUserConfigsResponse = new DescribeUserConfigsResponse();

            describeUserConfigsResponse.HttpResponse = _ctx.HttpResponse;
            describeUserConfigsResponse.RequestId    = _ctx.StringValue("DescribeUserConfigs.RequestId");

            DescribeUserConfigsResponse.DescribeUserConfigs_Configs configs = new DescribeUserConfigsResponse.DescribeUserConfigs_Configs();

            DescribeUserConfigsResponse.DescribeUserConfigs_Configs.DescribeUserConfigs_OssLogConfig ossLogConfig = new DescribeUserConfigsResponse.DescribeUserConfigs_Configs.DescribeUserConfigs_OssLogConfig();
            ossLogConfig.Enable  = _ctx.StringValue("DescribeUserConfigs.Configs.OssLogConfig.Enable");
            ossLogConfig.Bucket  = _ctx.StringValue("DescribeUserConfigs.Configs.OssLogConfig.Bucket");
            ossLogConfig.Prefix  = _ctx.StringValue("DescribeUserConfigs.Configs.OssLogConfig.Prefix");
            configs.OssLogConfig = ossLogConfig;

            DescribeUserConfigsResponse.DescribeUserConfigs_Configs.DescribeUserConfigs_GreenManagerConfig greenManagerConfig = new DescribeUserConfigsResponse.DescribeUserConfigs_Configs.DescribeUserConfigs_GreenManagerConfig();
            greenManagerConfig.Quota   = _ctx.StringValue("DescribeUserConfigs.Configs.GreenManagerConfig.Quota");
            greenManagerConfig.Ratio   = _ctx.StringValue("DescribeUserConfigs.Configs.GreenManagerConfig.Ratio");
            configs.GreenManagerConfig = greenManagerConfig;

            DescribeUserConfigsResponse.DescribeUserConfigs_Configs.DescribeUserConfigs_WafConfig wafConfig = new DescribeUserConfigsResponse.DescribeUserConfigs_Configs.DescribeUserConfigs_WafConfig();
            wafConfig.Enable  = _ctx.StringValue("DescribeUserConfigs.Configs.WafConfig.Enable");
            configs.WafConfig = wafConfig;
            describeUserConfigsResponse.Configs = configs;

            return(describeUserConfigsResponse);
        }
示例#2
0
        public static DescribeUserConfigsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeUserConfigsResponse describeUserConfigsResponse = new DescribeUserConfigsResponse();

            describeUserConfigsResponse.HttpResponse = context.HttpResponse;
            describeUserConfigsResponse.RequestId    = context.StringValue("DescribeUserConfigs.RequestId");

            DescribeUserConfigsResponse.DescribeUserConfigs_Configs configs = new DescribeUserConfigsResponse.DescribeUserConfigs_Configs();

            DescribeUserConfigsResponse.DescribeUserConfigs_Configs.DescribeUserConfigs_OssLogConfig ossLogConfig = new DescribeUserConfigsResponse.DescribeUserConfigs_Configs.DescribeUserConfigs_OssLogConfig();
            ossLogConfig.Enable  = context.StringValue("DescribeUserConfigs.Configs.OssLogConfig.Enable");
            ossLogConfig.Bucket  = context.StringValue("DescribeUserConfigs.Configs.OssLogConfig.Bucket");
            ossLogConfig.Prefix  = context.StringValue("DescribeUserConfigs.Configs.OssLogConfig.Prefix");
            configs.OssLogConfig = ossLogConfig;
            describeUserConfigsResponse.Configs = configs;

            return(describeUserConfigsResponse);
        }
示例#3
0
        public static DescribeUserConfigsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeUserConfigsResponse describeUserConfigsResponse = new DescribeUserConfigsResponse()
            {
                HttpResponse = context.HttpResponse,
                RequestId    = context.StringValue("DescribeUserConfigs.RequestId")
            };

            DescribeUserConfigsResponse.Configs_ configs = new DescribeUserConfigsResponse.Configs_();

            DescribeUserConfigsResponse.Configs_.OssLogConfig_ ossLogConfig = new DescribeUserConfigsResponse.Configs_.OssLogConfig_()
            {
                Enable = context.StringValue("DescribeUserConfigs.Configs.OssLogConfig.Enable"),
                Bucket = context.StringValue("DescribeUserConfigs.Configs.OssLogConfig.Bucket"),
                Prefix = context.StringValue("DescribeUserConfigs.Configs.OssLogConfig.Prefix")
            };
            configs.OssLogConfig = ossLogConfig;
            describeUserConfigsResponse.Configs = configs;

            return(describeUserConfigsResponse);
        }