public static Response <SapSupportedResourceSkusResult> SapSupportedSku(this SubscriptionResource subscriptionResource, string location, SapSupportedSkusContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(location, nameof(location)); return(GetExtensionClient(subscriptionResource).SapSupportedSku(location, content, cancellationToken)); }
public virtual Response <SapSupportedResourceSkusResult> SapSupportedSku(string location, SapSupportedSkusContent content = null, CancellationToken cancellationToken = default) { using var scope = DefaultClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.SapSupportedSku"); scope.Start(); try { var response = DefaultRestClient.SapSupportedSku(Id.SubscriptionId, location, content, cancellationToken); return(response); } catch (Exception e) { scope.Failed(e); throw; } }
public static async Task <Response <SapSupportedResourceSkusResult> > SapSupportedSkuAsync(this SubscriptionResource subscriptionResource, string location, SapSupportedSkusContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(location, nameof(location)); return(await GetExtensionClient(subscriptionResource).SapSupportedSkuAsync(location, content, cancellationToken).ConfigureAwait(false)); }