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