//---------------------------------------------------------------------------------------- // // This code was generated by https://github.com/StefH/ProxyInterfaceSourceGenerator. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //---------------------------------------------------------------------------------------- #nullable enable using System; namespace ProxyInterfaceSourceGeneratorTests.Source.PnP { public partial class SecurableObjectProxy : ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy, ISecurableObject { public new Microsoft.SharePoint.Client.SecurableObject _Instance { get; } public Microsoft.SharePoint.Client.ClientObject _InstanceClientObject { get; } [Microsoft.SharePoint.Client.RemoteAttribute] public ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject FirstUniqueAncestorSecurableObject { get => Mapster.TypeAdapter.Adapt(_Instance.FirstUniqueAncestorSecurableObject); } [Microsoft.SharePoint.Client.RemoteAttribute] public bool HasUniqueRoleAssignments { get => _Instance.HasUniqueRoleAssignments; } [Microsoft.SharePoint.Client.RemoteAttribute] public Microsoft.SharePoint.Client.RoleAssignmentCollection RoleAssignments { get => _Instance.RoleAssignments; } [Microsoft.SharePoint.Client.RemoteAttribute] public virtual void ResetRoleInheritance() { _Instance.ResetRoleInheritance(); } [Microsoft.SharePoint.Client.RemoteAttribute] public virtual void BreakRoleInheritance(bool copyRoleAssignments, bool clearSubscopes) { bool copyRoleAssignments_ = copyRoleAssignments; bool clearSubscopes_ = clearSubscopes; _Instance.BreakRoleInheritance(copyRoleAssignments_, clearSubscopes_); } public SecurableObjectProxy(Microsoft.SharePoint.Client.SecurableObject instance) : base(instance) { _Instance = instance; _InstanceClientObject = instance; Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_205293328 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_205293328)); Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1345472640 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy1345472640)._Instance); Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_895746668 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_895746668)); Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1674261376 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy1674261376)._Instance); Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance592284880 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance592284880)); Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_300636294 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_300636294)._Instance); } } } #nullable restore