| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System.Collections.Generic; |
| | 9 | |
|
| | 10 | | namespace Azure.ResourceManager.Network.Models |
| | 11 | | { |
| | 12 | | /// <summary> An error response from the service. </summary> |
| | 13 | | internal partial class CloudErrorBody |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of CloudErrorBody. </summary> |
| 0 | 16 | | internal CloudErrorBody() |
| | 17 | | { |
| 0 | 18 | | } |
| | 19 | |
|
| | 20 | | /// <summary> Initializes a new instance of CloudErrorBody. </summary> |
| | 21 | | /// <param name="code"> An identifier for the error. Codes are invariant and are intended to be consumed program |
| | 22 | | /// <param name="message"> A message describing the error, intended to be suitable for display in a user interfa |
| | 23 | | /// <param name="target"> The target of the particular error. For example, the name of the property in error. </ |
| | 24 | | /// <param name="details"> A list of additional details about the error. </param> |
| 0 | 25 | | internal CloudErrorBody(string code, string message, string target, IReadOnlyList<CloudErrorBody> details) |
| | 26 | | { |
| 0 | 27 | | Code = code; |
| 0 | 28 | | Message = message; |
| 0 | 29 | | Target = target; |
| 0 | 30 | | Details = details; |
| 0 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> An identifier for the error. Codes are invariant and are intended to be consumed programmatically. |
| 0 | 34 | | public string Code { get; } |
| | 35 | | /// <summary> A message describing the error, intended to be suitable for display in a user interface. </summary |
| 0 | 36 | | public string Message { get; } |
| | 37 | | /// <summary> The target of the particular error. For example, the name of the property in error. </summary> |
| 0 | 38 | | public string Target { get; } |
| | 39 | | /// <summary> A list of additional details about the error. </summary> |
| 0 | 40 | | public IReadOnlyList<CloudErrorBody> Details { get; } |
| | 41 | | } |
| | 42 | | } |