Update OptionalProperties.cs

compatible for newest API version