/// <summary>
 /// Checks resource name validity
 /// </summary>
 /// <remarks>
 /// A resource name is valid if it is not a reserved word, does not contains a
 /// reserved word and does not start with a reserved word
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceNameDefinition'>
 /// Resource object with values for resource name and resource type
 /// </param>
 public static CheckResourceNameResult CheckResourceName(this ISubscriptionClient operations, ResourceName resourceNameDefinition = default(ResourceName))
 {
     return(operations.CheckResourceNameAsync(resourceNameDefinition).GetAwaiter().GetResult());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Checks resource name validity
 /// </summary>
 /// <remarks>
 /// A resource name is valid if it is not a reserved word, does not contains a
 /// reserved word and does not start with a reserved word
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='name'>
 /// Name of the resource
 /// </param>
 /// <param name='type'>
 /// The type of the resource
 /// </param>
 public static CheckResourceNameResult CheckResourceName(this ISubscriptionClient operations, string name, string type)
 {
     return(operations.CheckResourceNameAsync(name, type).GetAwaiter().GetResult());
 }