/// <summary> /// Gets provider operations metadata /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Internal.Resources.IProviderOperationsMetadataOperations. /// </param> /// <param name='resourceProviderNamespace'> /// Required. Namespace of the resource provider. /// </param> /// <returns> /// Provider operations metadata /// </returns> public static Task <ProviderOperationsMetadataGetResult> GetAsync(this IProviderOperationsMetadataOperations operations, string resourceProviderNamespace) { return(operations.GetAsync(resourceProviderNamespace, CancellationToken.None)); }
/// <summary> /// Gets provider operations metadata for the specified resource provider. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceProviderNamespace'> /// The namespace of the resource provider. /// </param> /// <param name='expand'> /// Specifies whether to expand the values. /// </param> public static ProviderOperationsMetadata Get(this IProviderOperationsMetadataOperations operations, string resourceProviderNamespace, string expand = "resourceTypes") { return(operations.GetAsync(resourceProviderNamespace, expand).GetAwaiter().GetResult()); }