示例#1
0
        public static DescribeServerCertificatesResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeServerCertificatesResponse describeServerCertificatesResponse = new DescribeServerCertificatesResponse();

            describeServerCertificatesResponse.HttpResponse = context.HttpResponse;
            describeServerCertificatesResponse.RequestId    = context.StringValue("DescribeServerCertificates.RequestId");

            List <DescribeServerCertificatesResponse.DescribeServerCertificates_ServerCertificate> describeServerCertificatesResponse_serverCertificates = new List <DescribeServerCertificatesResponse.DescribeServerCertificates_ServerCertificate>();

            for (int i = 0; i < context.Length("DescribeServerCertificates.ServerCertificates.Length"); i++)
            {
                DescribeServerCertificatesResponse.DescribeServerCertificates_ServerCertificate serverCertificate = new DescribeServerCertificatesResponse.DescribeServerCertificates_ServerCertificate();
                serverCertificate.ServerCertificateId   = context.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].ServerCertificateId");
                serverCertificate.Fingerprint           = context.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].Fingerprint");
                serverCertificate.ServerCertificateName = context.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].ServerCertificateName");
                serverCertificate.RegionId                = context.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].RegionId");
                serverCertificate.RegionIdAlias           = context.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].RegionIdAlias");
                serverCertificate.AliCloudCertificateId   = context.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].AliCloudCertificateId");
                serverCertificate.AliCloudCertificateName = context.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].AliCloudCertificateName");
                serverCertificate.IsAliCloudCertificate   = context.IntegerValue("DescribeServerCertificates.ServerCertificates[" + i + "].IsAliCloudCertificate");
                serverCertificate.ResourceGroupId         = context.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].ResourceGroupId");
                serverCertificate.CreateTime              = context.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].CreateTime");
                serverCertificate.CreateTimeStamp         = context.LongValue("DescribeServerCertificates.ServerCertificates[" + i + "].CreateTimeStamp");

                describeServerCertificatesResponse_serverCertificates.Add(serverCertificate);
            }
            describeServerCertificatesResponse.ServerCertificates = describeServerCertificatesResponse_serverCertificates;

            return(describeServerCertificatesResponse);
        }
示例#2
0
        public static DescribeServerCertificatesResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeServerCertificatesResponse describeServerCertificatesResponse = new DescribeServerCertificatesResponse();

            describeServerCertificatesResponse.HttpResponse = _ctx.HttpResponse;
            describeServerCertificatesResponse.RequestId    = _ctx.StringValue("DescribeServerCertificates.RequestId");

            List <DescribeServerCertificatesResponse.DescribeServerCertificates_ServerCertificate> describeServerCertificatesResponse_serverCertificates = new List <DescribeServerCertificatesResponse.DescribeServerCertificates_ServerCertificate>();

            for (int i = 0; i < _ctx.Length("DescribeServerCertificates.ServerCertificates.Length"); i++)
            {
                DescribeServerCertificatesResponse.DescribeServerCertificates_ServerCertificate serverCertificate = new DescribeServerCertificatesResponse.DescribeServerCertificates_ServerCertificate();
                serverCertificate.ServerCertificateId   = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].ServerCertificateId");
                serverCertificate.Fingerprint           = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].Fingerprint");
                serverCertificate.ServerCertificateName = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].ServerCertificateName");
                serverCertificate.RegionId                = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].RegionId");
                serverCertificate.RegionIdAlias           = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].RegionIdAlias");
                serverCertificate.AliCloudCertificateId   = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].AliCloudCertificateId");
                serverCertificate.AliCloudCertificateName = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].AliCloudCertificateName");
                serverCertificate.IsAliCloudCertificate   = _ctx.IntegerValue("DescribeServerCertificates.ServerCertificates[" + i + "].IsAliCloudCertificate");
                serverCertificate.ResourceGroupId         = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].ResourceGroupId");
                serverCertificate.CreateTime              = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].CreateTime");
                serverCertificate.CreateTimeStamp         = _ctx.LongValue("DescribeServerCertificates.ServerCertificates[" + i + "].CreateTimeStamp");
                serverCertificate.ExpireTime              = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].ExpireTime");
                serverCertificate.ExpireTimeStamp         = _ctx.LongValue("DescribeServerCertificates.ServerCertificates[" + i + "].ExpireTimeStamp");
                serverCertificate.CommonName              = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].CommonName");
                serverCertificate.EncryptionAlgorithm     = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].EncryptionAlgorithm");
                serverCertificate.EncryptionKeyLength     = _ctx.IntegerValue("DescribeServerCertificates.ServerCertificates[" + i + "].EncryptionKeyLength");
                serverCertificate.StandardType            = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].StandardType");

                List <string> serverCertificate_subjectAlternativeNames = new List <string>();
                for (int j = 0; j < _ctx.Length("DescribeServerCertificates.ServerCertificates[" + i + "].SubjectAlternativeNames.Length"); j++)
                {
                    serverCertificate_subjectAlternativeNames.Add(_ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].SubjectAlternativeNames[" + j + "]"));
                }
                serverCertificate.SubjectAlternativeNames = serverCertificate_subjectAlternativeNames;

                List <DescribeServerCertificatesResponse.DescribeServerCertificates_ServerCertificate.DescribeServerCertificates_Tag> serverCertificate_tags = new List <DescribeServerCertificatesResponse.DescribeServerCertificates_ServerCertificate.DescribeServerCertificates_Tag>();
                for (int j = 0; j < _ctx.Length("DescribeServerCertificates.ServerCertificates[" + i + "].Tags.Length"); j++)
                {
                    DescribeServerCertificatesResponse.DescribeServerCertificates_ServerCertificate.DescribeServerCertificates_Tag tag = new DescribeServerCertificatesResponse.DescribeServerCertificates_ServerCertificate.DescribeServerCertificates_Tag();
                    tag.TagKey   = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].Tags[" + j + "].TagKey");
                    tag.TagValue = _ctx.StringValue("DescribeServerCertificates.ServerCertificates[" + i + "].Tags[" + j + "].TagValue");

                    serverCertificate_tags.Add(tag);
                }
                serverCertificate.Tags = serverCertificate_tags;

                describeServerCertificatesResponse_serverCertificates.Add(serverCertificate);
            }
            describeServerCertificatesResponse.ServerCertificates = describeServerCertificatesResponse_serverCertificates;

            return(describeServerCertificatesResponse);
        }