generated/api/Models/Office365SharepointContentData.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; public partial class Office365SharepointContentData : Commvault.Powershell.Models.IOffice365SharepointContentData, Commvault.Powershell.Models.IOffice365SharepointContentDataInternal, Commvault.Powershell.Runtime.IValidates { /// <summary> /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.INameGuid" /> /// </summary> private Commvault.Powershell.Models.INameGuid __nameGuid = new Commvault.Powershell.Models.NameGuid(); /// <summary> /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.IOffice365CommonInfo" /> /// </summary> private Commvault.Powershell.Models.IOffice365CommonInfo __office365CommonInfo = new Commvault.Powershell.Models.Office365CommonInfo(); /// <summary>Internal Acessors for Office365Plan</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IOffice365CommonInfoInternal.Office365Plan { get => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365Plan; set => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365Plan = value; } /// <summary>Backing field for <see cref="EmailAddress" /> property.</summary> private string _emailAddress; /// <summary>Email Address for the content association</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string EmailAddress { get => this._emailAddress; set => this._emailAddress = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string Guid { get => ((Commvault.Powershell.Models.INameGuidInternal)__nameGuid).Guid; set => ((Commvault.Powershell.Models.INameGuidInternal)__nameGuid).Guid = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string Name { get => ((Commvault.Powershell.Models.INameGuidInternal)__nameGuid).Name; set => ((Commvault.Powershell.Models.INameGuidInternal)__nameGuid).Name = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] internal Commvault.Powershell.Models.IIdName Office365Plan { get => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365Plan; set => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365Plan = value ?? null /* model class */; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? Office365PlanId { get => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365PlanId; set => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365PlanId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string Office365PlanName { get => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365PlanName; set => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365PlanName = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string Status { get => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Status; set => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Status = value ?? null; } /// <summary>Backing field for <see cref="Type" /> property.</summary> private string _type; /// <summary>Type of the entity.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Type { get => this._type; set => this._type = value; } /// <summary>Creates an new <see cref="Office365SharepointContentData" /> instance.</summary> public Office365SharepointContentData() { } /// <summary>Validates that this object meets the validation criteria.</summary> /// <param name="eventListener">an <see cref="Commvault.Powershell.Runtime.IEventListener" /> instance that will receive validation /// events.</param> /// <returns> /// A <see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. /// </returns> public async global::System.Threading.Tasks.Task Validate(Commvault.Powershell.Runtime.IEventListener eventListener) { await eventListener.AssertNotNull(nameof(__nameGuid), __nameGuid); await eventListener.AssertObjectIsValid(nameof(__nameGuid), __nameGuid); await eventListener.AssertNotNull(nameof(__office365CommonInfo), __office365CommonInfo); await eventListener.AssertObjectIsValid(nameof(__office365CommonInfo), __office365CommonInfo); } } public partial interface IOffice365SharepointContentData : Commvault.Powershell.Runtime.IJsonSerializable, Commvault.Powershell.Models.INameGuid, Commvault.Powershell.Models.IOffice365CommonInfo { /// <summary>Email Address for the content association</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Email Address for the content association", SerializedName = @"emailAddress", PossibleTypes = new [] { typeof(string) })] string EmailAddress { get; set; } /// <summary>Type of the entity.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Type of the entity.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] string Type { get; set; } } internal partial interface IOffice365SharepointContentDataInternal : Commvault.Powershell.Models.INameGuidInternal, Commvault.Powershell.Models.IOffice365CommonInfoInternal { /// <summary>Email Address for the content association</summary> string EmailAddress { get; set; } /// <summary>Type of the entity.</summary> string Type { get; set; } } } |