//---------------------------------------------------------------------------------------- // // This code was generated by https://github.com/specklesystems/ProxyGenerator. // // 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 : global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject { public new global::Microsoft.SharePoint.Client.SecurableObject _Instance { get; } public global::Microsoft.SharePoint.Client.ClientObject _InstanceClientObject { get; } [Microsoft.SharePoint.Client.RemoteAttribute] public global::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 global::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(global::Microsoft.SharePoint.Client.SecurableObject instance) : base(instance) { _Instance = instance; _InstanceClientObject = instance; } static SecurableObjectProxy() { Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_572349648 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_572349648)); Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy214349770 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy214349770)._Instance); Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_205438316 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_205438316)); Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_437526006 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy_437526006)._Instance); Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_247129254 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance_247129254)); Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_117192422 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_117192422)._Instance); } } } #nullable restore