示例#1
0
 /// <summary>
 /// Get disk.
 /// </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 disk.
 /// </param>
 /// <param name='expand'>
 /// Specify the $expand query. Example: 'properties($select=diskType)'
 /// </param>
 public static Disk Get(this IDisksOperations operations, string resourceGroupName, string labName, string userName, string name, string expand = default(string))
 {
     return(operations.GetAsync(resourceGroupName, labName, userName, name, expand).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets information about a disk.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='diskName'>
 /// The name of the managed disk that is being created. The name can't be
 /// changed after the disk is created. Supported characters for the name are
 /// a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
 /// </param>
 public static Disk Get(this IDisksOperations operations, string resourceGroupName, string diskName)
 {
     return(operations.GetAsync(resourceGroupName, diskName).GetAwaiter().GetResult());
 }
示例#3
0
 /// <summary>
 /// Returns the disk.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='diskId'>
 /// The disk guid as identity.
 /// </param>
 public static Disk Get(this IDisksOperations operations, string location, string diskId)
 {
     return(operations.GetAsync(location, diskId).GetAwaiter().GetResult());
 }