コード例 #1
0
 /// <summary>
 /// Modify properties of secrets.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='labName'>
 /// The name of the lab.
 /// </param>
 /// <param name='userName'>
 /// The name of the user profile.
 /// </param>
 /// <param name='name'>
 /// The name of the secret.
 /// </param>
 /// <param name='secret'>
 /// A secret.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Secret> UpdateAsync(this ISecretsOperations operations, string resourceGroupName, string labName, string userName, string name, SecretFragment secret, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, labName, userName, name, secret, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Modify properties of secrets.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='labName'>
 /// The name of the lab.
 /// </param>
 /// <param name='userName'>
 /// The name of the user profile.
 /// </param>
 /// <param name='name'>
 /// The name of the secret.
 /// </param>
 /// <param name='secret'>
 /// A secret.
 /// </param>
 public static Secret Update(this ISecretsOperations operations, string resourceGroupName, string labName, string userName, string name, SecretFragment secret)
 {
     return(operations.UpdateAsync(resourceGroupName, labName, userName, name, secret).GetAwaiter().GetResult());
 }