generated/api/Models/PermissionCategoryType.cs
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/powershell@4.0.708) // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Commvault.Powershell.Models { using static Commvault.Powershell.Runtime.Extensions; /// <summary> /// The id or name of the permission can be provided in order to associate it to the role. It can be provided with or without /// category id or name. If only category id or name is provided, entire list of permissions associated with this category /// can be associated to the role. /// </summary> public partial class PermissionCategoryType : Commvault.Powershell.Models.IPermissionCategoryType, Commvault.Powershell.Models.IPermissionCategoryTypeInternal { /// <summary>Backing field for <see cref="Category" /> property.</summary> private Commvault.Powershell.Models.IIdName _category; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Category { get => (this._category = this._category ?? new Commvault.Powershell.Models.IdName()); set => this._category = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? CategoryId { get => ((Commvault.Powershell.Models.IIdNameInternal)Category).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Category).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CategoryName { get => ((Commvault.Powershell.Models.IIdNameInternal)Category).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Category).Name = value ?? null; } /// <summary>Internal Acessors for Category</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IPermissionCategoryTypeInternal.Category { get => (this._category = this._category ?? new Commvault.Powershell.Models.IdName()); set { {_category = value;} } } /// <summary>Internal Acessors for Permission</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IPermissionCategoryTypeInternal.Permission { get => (this._permission = this._permission ?? new Commvault.Powershell.Models.IdName()); set { {_permission = value;} } } /// <summary>Backing field for <see cref="Permission" /> property.</summary> private Commvault.Powershell.Models.IIdName _permission; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Permission { get => (this._permission = this._permission ?? new Commvault.Powershell.Models.IdName()); set => this._permission = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? PermissionId { get => ((Commvault.Powershell.Models.IIdNameInternal)Permission).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Permission).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string PermissionName { get => ((Commvault.Powershell.Models.IIdNameInternal)Permission).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Permission).Name = value ?? null; } /// <summary>Backing field for <see cref="Type" /> property.</summary> private string _type; /// <summary>Type of permission assigned to the role.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Type { get => this._type; set => this._type = value; } /// <summary>Creates an new <see cref="PermissionCategoryType" /> instance.</summary> public PermissionCategoryType() { } } /// The id or name of the permission can be provided in order to associate it to the role. It can be provided with or without /// category id or name. If only category id or name is provided, entire list of permissions associated with this category /// can be associated to the role. public partial interface IPermissionCategoryType : Commvault.Powershell.Runtime.IJsonSerializable { [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? CategoryId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string CategoryName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? PermissionId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string PermissionName { get; set; } /// <summary>Type of permission assigned to the role.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Type of permission assigned to the role.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] string Type { get; set; } } /// The id or name of the permission can be provided in order to associate it to the role. It can be provided with or without /// category id or name. If only category id or name is provided, entire list of permissions associated with this category /// can be associated to the role. internal partial interface IPermissionCategoryTypeInternal { Commvault.Powershell.Models.IIdName Category { get; set; } long? CategoryId { get; set; } string CategoryName { get; set; } Commvault.Powershell.Models.IIdName Permission { get; set; } long? PermissionId { get; set; } string PermissionName { get; set; } /// <summary>Type of permission assigned to the role.</summary> string Type { get; set; } } } |