private/api-extensions/NetworkRule.cs
namespace Nutanix.Powershell.Models { /// <summary>Network rule</summary> [System.ComponentModel.TypeConverter(typeof(NetworkRuleTypeConverter))] public partial class NetworkRule { /// <summary> /// Creates a new instance of <see cref="NetworkRule" />, deserializing the content from a json string. /// </summary> /// <param name="jsonText">a string containing a JSON serialized instance of this model.</param> /// <returns>an instance of the <see cref="className" /> model class.</returns> public static Nutanix.Powershell.Models.INetworkRule FromJsonString(string jsonText) => FromJson(Carbon.Json.JsonNode.Parse(jsonText)); /// <summary>Serializes this instance to a json string.</summary> /// <returns>a <see cref="System.String" /> containing this model serialized to JSON text.</returns> public string ToJsonString() => ToJson(null, Microsoft.Rest.ClientRuntime.SerializationMode.IncludeAll)?.ToString(); } /// Network rule [System.ComponentModel.TypeConverter(typeof(NetworkRuleTypeConverter))] public partial interface INetworkRule { } } |