| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | #nullable enable |
| | 5 | |
|
| | 6 | | using System; |
| | 7 | |
|
| | 8 | | namespace Azure.Core |
| | 9 | | { |
| | 10 | | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Struct)] |
| | 11 | | internal class CodeGenModelAttribute : CodeGenTypeAttribute |
| | 12 | | { |
| | 13 | | /// <summary> |
| | 14 | | /// Gets or sets a coma separated list of additional model usage modes. Allowed values: model, error, intput, ou |
| | 15 | | /// </summary> |
| 0 | 16 | | public string[]? Usage { get; set; } |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Gets or sets a coma separated list of additional model serialization formats. |
| | 20 | | /// </summary> |
| 0 | 21 | | public string[]? Formats { get; set; } |
| | 22 | |
|
| 0 | 23 | | public CodeGenModelAttribute() : base(null) |
| | 24 | | { |
| 0 | 25 | | } |
| | 26 | |
|
| 0 | 27 | | public CodeGenModelAttribute(string originalName): base(originalName) |
| | 28 | | { |
| 0 | 29 | | } |
| | 30 | | } |
| | 31 | | } |