コード例 #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);
        }