///GENMHASH:93D5CC1104D8649B1FB7E4CD245D6F98:8D4C9BA51F65EC1B9B920DCC25338225
 private WebhookUpdateParametersInner EnsureWebhookUpdateParametersInner()
 {
     if (this.webhookUpdateParametersInner == null && this.Parent != null)
     {
         this.webhookUpdateParametersInner = new WebhookUpdateParametersInner();
     }
     return(this.webhookUpdateParametersInner);
 }
        ///GENMHASH:C7411892ADD1501285936C38C3908C6E:B20350505CDDC4E85CF8603EFBAE05DD
        internal WebhookImpl SetCreateMode(bool isInCreateMode)
        {
            this.isInCreateMode = isInCreateMode;
            if (this.isInCreateMode && this.Parent != null)
            {
                this.webhookCreateParametersInner          = new WebhookCreateParametersInner();
                this.webhookCreateParametersInner.Location = this.Parent.RegionName;
            }
            else
            {
                this.webhookUpdateParametersInner = new WebhookUpdateParametersInner();
            }

            return(this);
        }
 ///GENMHASH:E7AAF256E9CC8691E6CFA53D12A53D12:9E8F9D28CC2F3928B63541088D2694B6
 private void InitCreateUpdateParams()
 {
     this.webhookCreateParametersInner = null;
     this.webhookUpdateParametersInner = null;
     this.isInCreateMode = false;
 }
Example #4
0
 /// <summary>
 /// Updates a webhook 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='webhookName'>
 /// The name of the webhook.
 /// </param>
 /// <param name='webhookUpdateParameters'>
 /// The parameters for updating a webhook.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <WebhookInner> BeginUpdateAsync(this IWebhooksOperations operations, string resourceGroupName, string registryName, string webhookName, WebhookUpdateParametersInner webhookUpdateParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, webhookName, webhookUpdateParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }