12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using System.Xml.Serialization;
- using System.Collections.Generic;
- using System;
- namespace COSXML.Model.Tag
- {
- [XmlRoot]
- public sealed class WebsiteConfiguration
- {
- [XmlElement("IndexDocument")]
- public IndexDocument indexDocument;
- [XmlElement("ErrorDocument")]
- public ErrorDocument errorDocument;
- [XmlElement("RedirectAllRequestsTo")]
- public RedirectAllRequestTo redirectAllRequestTo;
- [XmlArray("RoutingRules")]
- public List<RoutingRule> routingRules;
- public sealed class IndexDocument
- {
- [XmlElement("Suffix")]
- public string suffix;
- }
- public sealed class ErrorDocument
- {
- [XmlElement("Key")]
- public string key;
- }
- public sealed class RedirectAllRequestTo
- {
- [XmlElement("Protocol")]
- public string protocol;
- }
- public sealed class RoutingRule
- {
- [XmlElement("Condition")]
- public Contidion contidion;
- [XmlElement("Redirect")]
- public Redirect redirect;
- }
- public sealed class Contidion
- {
- [XmlIgnore]
- public int httpErrorCodeReturnedEquals;
- [XmlElement("HttpErrorCodeReturnedEquals")]
- public string httpErrorCodeReturnedEqualsStr;
- [XmlElement("KeyPrefixEquals")]
- public string keyPrefixEquals;
- }
- public sealed class Redirect
- {
- [XmlElement("Protocol")]
- public string protocol;
- [XmlElement("ReplaceKeyWith")]
- public string replaceKeyWith;
- [XmlElement("ReplaceKeyPrefixWith")]
- public string replaceKeyPrefixWith;
- }
- }
- }
|