///GENMHASH:D18EDD2A0D462DC25F8E338158E130F1:92497F2001C42DEB1C90E3A01204233E internal RegistryImpl(string name, RegistryInner innerObject, IRegistryManager manager, IStorageManager storageManager) : base(name, innerObject, manager) { this.storageManager = storageManager; this.storageAccountId = null; this.webhooks = new WebhooksImpl(this, "Webhook"); }
/// <summary> /// Creates a container registry with the specified parameters. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='registry'> /// The parameters for creating a container registry. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <RegistryInner> CreateAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, RegistryInner registry, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, registryName, registry, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
///GENMHASH:63C386BA40937CF7E2E581AAB775A0F9:5D61EA0E4E05BC51211966B6410F3D6B protected override IRegistry WrapModel(RegistryInner containerRegistryInner) { return((containerRegistryInner != null) ? new RegistryImpl(containerRegistryInner.Name, containerRegistryInner, this.Manager, this.storageManager) : null); }