示例#1
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DeleteServerCertificateResponse response = new DeleteServerCertificateResponse();

            while (context.Read())
            {
                if (context.IsStartElement)
                {
                    if (context.TestExpression("ResponseMetadata", 2))
                    {
                        response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context);
                    }
                }
            }


            return(response);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) 
        {
            RebuildEnvironmentResponse response = new RebuildEnvironmentResponse();
            
            while (context.Read())
            {
                if (context.IsStartElement)
                {
                    
                    if (context.TestExpression("ResponseMetadata", 2))
                    {
                        response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context);
                    }
                }
            }
                

            return response;
        }
示例#3
0
        private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketLocationResponse response)
        {
            int currentDepth = context.get_CurrentDepth();
            int num          = 1;

            while (context.Read())
            {
                if (context.get_IsStartElement() || context.get_IsAttribute())
                {
                    if (context.TestExpression("LocationConstraint", num))
                    {
                        response.Location = StringUnmarshaller.GetInstance().Unmarshall(context);
                    }
                }
                else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth)
                {
                    break;
                }
            }
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, GetBucketPolicyStatusResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("PolicyStatus", targetDepth))
                    {
                        response.PolicyStatus = PolicyStatusUnmarshaller.Instance.Unmarshall(context);
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, GetPublicAccessBlockResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("PublicAccessBlockConfiguration", targetDepth))
                    {
                        response.PublicAccessBlockConfiguration = PublicAccessBlockConfigurationUnmarshaller.Instance.Unmarshall(context);
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }
        }
示例#6
0
        private static void UnmarshallResult(XmlUnmarshallerContext context, ListObjectsByTagsResponse response)
        {
            int num = context.get_CurrentDepth();

            if (context.get_IsStartOfDocument())
            {
                num += 2;
            }
            while (context.Read())
            {
                if (context.get_IsStartElement() || context.get_IsAttribute())
                {
                    if (context.TestExpression("Bucket", num))
                    {
                        response.BucketName = StringUnmarshaller.GetInstance().Unmarshall(context);
                    }
                    else if (context.TestExpression("ContinuationToken", num))
                    {
                        response.ContinuationToken = StringUnmarshaller.GetInstance().Unmarshall(context);
                    }
                    else if (context.TestExpression("NextContinuationToken", num))
                    {
                        response.NextContinuationToken = StringUnmarshaller.GetInstance().Unmarshall(context);
                    }
                    else if (context.TestExpression("MaxKeys", num))
                    {
                        response.MaxKeys = IntUnmarshaller.GetInstance().Unmarshall(context);
                    }
                    else if (context.TestExpression("IsTruncated", num))
                    {
                        response.IsTruncated = BoolUnmarshaller.GetInstance().Unmarshall(context);
                    }
                    else if (context.TestExpression("EncodingType", num))
                    {
                        response.EncodingType = EncodingType.FindValue(StringUnmarshaller.GetInstance().Unmarshall(context));
                    }
                    else if (context.TestExpression("Contents", num))
                    {
                        response.Contents.Add(TaggedResourceUnmarshaller.Instance.Unmarshall(context));
                    }
                }
            }
        }
示例#7
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            CancelBundleTaskResponse response = new CancelBundleTaskResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("bundleInstanceTask", targetDepth))
                    {
                        response.BundleTask = BundleTaskUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }
示例#8
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            ConfirmProductInstanceResponse response = new ConfirmProductInstanceResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("ownerId", targetDepth))
                    {
                        response.OwnerId = StringUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }
示例#9
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            PurchaseReservedInstancesOfferingResponse response = new PurchaseReservedInstancesOfferingResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("reservedInstancesId", targetDepth))
                    {
                        response.ReservedInstancesId = StringUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeSpotDatafeedSubscriptionResponse response = new DescribeSpotDatafeedSubscriptionResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("spotDatafeedSubscription", targetDepth))
                    {
                        response.SpotDatafeedSubscription = SpotDatafeedSubscriptionUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            RequestSpotInstancesResponse response = new RequestSpotInstancesResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("spotInstanceRequestSet/item", targetDepth))
                    {
                        response.SpotInstanceRequests.Add(SpotInstanceRequestUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                }
            }


            return(response);
        }
示例#12
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            AttachNetworkInterfaceResponse response = new AttachNetworkInterfaceResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("attachmentId", targetDepth))
                    {
                        response.AttachmentId = StringUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }
示例#13
0
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            DescribeAccountAttributesResponse response = new DescribeAccountAttributesResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("accountAttributeSet/item", targetDepth))
                    {
                        response.AccountAttributes.Add(AccountAttributeUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                }
            }


            return(response);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            ImportVolumeResponse response = new ImportVolumeResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("conversionTask", targetDepth))
                    {
                        response.ConversionTask = ConversionTaskUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            CreateKeyPairResponse response = new CreateKeyPairResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression(".", targetDepth))
                    {
                        response.KeyPair = KeyPairUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            ReplaceNetworkAclAssociationResponse response = new ReplaceNetworkAclAssociationResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("newAssociationId", targetDepth))
                    {
                        response.NewAssociationId = StringUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
            }


            return(response);
        }
        public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
        {
            StopInstancesResponse response = new StopInstancesResponse();

            int targetDepth = 2;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("instancesSet/item", targetDepth))
                    {
                        response.StoppingInstances.Add(InstanceStateChangeUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                }
            }


            return(response);
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, AssumeRoleWithWebIdentityResponse response)
        {
            int currentDepth = context.get_CurrentDepth();
            int num          = currentDepth + 1;

            if (context.get_IsStartOfDocument())
            {
                num += 2;
            }
            while (context.ReadAtDepth(currentDepth))
            {
                if (context.get_IsStartElement() || context.get_IsAttribute())
                {
                    if (context.TestExpression("AssumedRoleUser", num))
                    {
                        AssumedRoleUserUnmarshaller instance = AssumedRoleUserUnmarshaller.Instance;
                        response.AssumedRoleUser = instance.Unmarshall(context);
                    }
                    else if (context.TestExpression("Audience", num))
                    {
                        StringUnmarshaller instance2 = StringUnmarshaller.get_Instance();
                        response.Audience = instance2.Unmarshall(context);
                    }
                    else if (context.TestExpression("Credentials", num))
                    {
                        CredentialsUnmarshaller instance3 = CredentialsUnmarshaller.Instance;
                        response.Credentials = instance3.Unmarshall(context);
                    }
                    else if (context.TestExpression("PackedPolicySize", num))
                    {
                        IntUnmarshaller instance4 = IntUnmarshaller.get_Instance();
                        response.PackedPolicySize = instance4.Unmarshall(context);
                    }
                    else if (context.TestExpression("Provider", num))
                    {
                        StringUnmarshaller instance5 = StringUnmarshaller.get_Instance();
                        response.Provider = instance5.Unmarshall(context);
                    }
                    else if (context.TestExpression("SubjectFromWebIdentityToken", num))
                    {
                        StringUnmarshaller instance6 = StringUnmarshaller.get_Instance();
                        response.SubjectFromWebIdentityToken = instance6.Unmarshall(context);
                    }
                }
            }
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, CreateHealthCheckResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("HealthCheck", targetDepth))
                    {
                        response.HealthCheck = HealthCheckUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }


            IWebResponseData responseData = context.ResponseData;

            if (responseData.IsHeaderPresent("Location"))
            {
                response.Location = responseData.GetHeaderValue("Location");
            }


            return;
        }
示例#20
0
        private static void UnmarshallResult(XmlUnmarshallerContext context, CreateDistributionResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("Distribution", targetDepth))
                    {
                        response.Distribution = DistributionUnmarshaller.GetInstance().Unmarshall(context);

                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }


            IWebResponseData responseData = context.ResponseData;

            if (responseData.IsHeaderPresent("Location"))
            {
                response.Location = responseData.GetHeaderValue("Location");
            }
            if (responseData.IsHeaderPresent("ETag"))
            {
                response.ETag = responseData.GetHeaderValue("ETag");
            }


            return;
        }
示例#21
0
        private static void UnmarshallResult(XmlUnmarshallerContext context, CreateFieldLevelEncryptionConfigResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("FieldLevelEncryption", targetDepth))
                    {
                        var unmarshaller = FieldLevelEncryptionUnmarshaller.Instance;
                        response.FieldLevelEncryption = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }

            return;
        }
示例#22
0
        private static void UnmarshallResult(XmlUnmarshallerContext context, RestoreDBClusterToPointInTimeResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("DBCluster", targetDepth))
                    {
                        response.DBCluster = DBClusterUnmarshaller.Instance.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
示例#23
0
        private static void UnmarshallResult(XmlUnmarshallerContext context, GetCORSConfigurationResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("CORSRule", targetDepth))
                    {
                        if (response.Configuration == null)
                        {
                            response.Configuration = new CORSConfiguration();
                        }

                        response.Configuration.Rules.Add(CORSRuleUnmarshaller.GetInstance().Unmarshall(context));

                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }



            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, CreateCacheSecurityGroupResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("CacheSecurityGroup", targetDepth))
                    {
                        response.CacheSecurityGroup = CacheSecurityGroupUnmarshaller.Instance.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, DeleteClusterSnapshotResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("Snapshot", targetDepth))
                    {
                        response.Snapshot = SnapshotUnmarshaller.Instance.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, ListCloudFrontOriginAccessIdentitiesResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("CloudFrontOriginAccessIdentityList", targetDepth))
                    {
                        var unmarshaller = CloudFrontOriginAccessIdentityListUnmarshaller.Instance;
                        response.CloudFrontOriginAccessIdentityList = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, CreateStreamingDistributionWithTagsResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("StreamingDistribution", targetDepth))
                    {
                        var unmarshaller = StreamingDistributionUnmarshaller.Instance;
                        response.StreamingDistribution = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }

            return;
        }
        private static void UnmarshallResult(XmlUnmarshallerContext context, GetObjectTaggingResponse response)
        {
            int currentDepth = context.get_CurrentDepth();
            int num          = currentDepth + 2;

            if (context.get_IsStartOfDocument())
            {
                num += 2;
            }
            while (context.Read())
            {
                if (context.get_IsStartElement() || context.get_IsAttribute())
                {
                    if (context.TestExpression("Tag", num))
                    {
                        response.Tagging.Add(TagUnmarshaller.Instance.Unmarshall(context));
                    }
                }
                else if (context.get_IsEndElement() && context.get_CurrentDepth() < currentDepth)
                {
                    break;
                }
            }
        }
示例#29
0
        private static void UnmarshallResult(XmlUnmarshallerContext context, GetPublicKeyResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            while (context.Read())
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("PublicKey", targetDepth))
                    {
                        var unmarshaller = PublicKeyUnmarshaller.Instance;
                        response.PublicKey = unmarshaller.Unmarshall(context);
                        continue;
                    }
                }
                else if (context.IsEndElement && context.CurrentDepth < originalDepth)
                {
                    return;
                }
            }

            return;
        }
示例#30
0
        private static void UnmarshallResult(XmlUnmarshallerContext context, PurchaseReservedDBInstancesOfferingResponse response)
        {
            int originalDepth = context.CurrentDepth;
            int targetDepth   = originalDepth + 1;

            if (context.IsStartOfDocument)
            {
                targetDepth += 2;
            }

            while (context.ReadAtDepth(originalDepth))
            {
                if (context.IsStartElement || context.IsAttribute)
                {
                    if (context.TestExpression("ReservedDBInstance", targetDepth))
                    {
                        response.ReservedDBInstance = ReservedDBInstanceUnmarshaller.Instance.Unmarshall(context);
                        continue;
                    }
                }
            }

            return;
        }