Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pattern #24807

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions CloudError.cs
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; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@
"description": "The data connector definition name.",
"required": true,
"type": "string",
"pattern": "^[a-z0-9-]*$",
"pattern": "^[a-z0-9A-Z-_]*$",
"x-ms-parameter-location": "method"
}
}
Expand Down