Skip to content

Commit

Permalink
Fix pattern (#24807)
Browse files Browse the repository at this point in the history
* 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
sagamzu authored Jul 17, 2023
1 parent 6767b02 commit f5c3aff
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
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

0 comments on commit f5c3aff

Please sign in to comment.