-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove pattern * add and fix - reuired parameter in the new validation * add and fix - reuired parameter in the new validation * fix pattren * fix pattren
- Loading branch information
Showing
2 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// <auto-generated> | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Security.Insights.ArmClient | ||
{ | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Serialization; | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Error response structure. | ||
/// </summary> | ||
[Rest.Serialization.JsonTransformation] | ||
public partial class CloudError | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the CloudError class. | ||
/// </summary> | ||
public CloudError() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the CloudError class. | ||
/// </summary> | ||
/// <param name="code">An identifier for the error. Codes are invariant | ||
/// and are intended to be consumed programmatically.</param> | ||
/// <param name="message">A message describing the error, intended to | ||
/// be suitable for display in a user interface.</param> | ||
public CloudError(string code = default(string), string message = default(string)) | ||
{ | ||
Code = code; | ||
Message = message; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets an identifier for the error. Codes are invariant and are | ||
/// intended to be consumed programmatically. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "error.code")] | ||
public string Code { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets a message describing the error, intended to be suitable for | ||
/// display in a user interface. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "error.message")] | ||
public string Message { get; private set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters