示例#1
0
        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));
        }
示例#2
0
 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;
     }
 }
示例#3
0
        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));
        }