/// <summary>
 /// Creates an instance of external child resource in-memory.
 /// </summary>
 /// <param name="name">The name of this external child resource.</param>
 /// <param name="parent">Reference to the parent of this external child resource.</param>
 /// <param name="innerObject">Reference to the inner object representing this external child resource.</param>
 /// <param name="containerRegistryManager">Reference to the container registry manager that accesses web hook operations.</param>
 ///GENMHASH:A02845D0393045D983B12D9853197178:8FC0F03D2574AA46828F939572035BF5
 internal WebhookImpl(string name, RegistryImpl parent, WebhookInner innerObject, IRegistryManager containerRegistryManager) : base(name, parent, innerObject)
 {
     this.containerRegistryManager = containerRegistryManager;
     if (parent != null)
     {
         this.resourceGroupName = parent.ResourceGroupName;
         this.registryName      = parent.Name;
     }
     this.InitCreateUpdateParams();
 }
 ///GENMHASH:E7EF4818FCB5238BA8C15964B9D45DA8:A40E3B70909E8E38B28A47FB40E4072F
 internal WebhookOperationsImpl(RegistryImpl containerRegistry)
 {
     this.containerRegistry = containerRegistry;
     if (containerRegistry != null)
     {
         this.webhooksClient = new WebhooksClientImpl(containerRegistry.Manager, containerRegistry);
     }
     else
     {
         this.webhooksClient = null;
     }
 }
Ejemplo n.º 3
0
 ///GENMHASH:CDAB2C7CC715005191421E1723AFA34B:07766DB5652046D840E62ECBE0F0FDCD
 internal WebhooksClientImpl(IRegistryManager containerRegistryManager, RegistryImpl containerRegistry)
 {
     this.containerRegistryManager = containerRegistryManager;
     this.containerRegistry        = containerRegistry;
 }
 /// <summary>
 /// Creates a new ExternalNonInlineChildResourcesImpl.
 /// </summary>
 /// <param name="parent">The parent Azure resource.</param>
 /// <param name="childResourceName">The child resource name.</param>
 ///GENMHASH:66F142811FEC393F5229A40A1C8A9E02:2AAABE23545481CB3D64F1514FD722EB
 internal WebhooksImpl(RegistryImpl parent, string childResourceName) : base(parent, childResourceName)
 {
 }