/// <summary>Snippet for Delete</summary>
 public void DeleteRequestObject()
 {
     // Snippet: Delete(DeleteUrlMapRequest, CallSettings)
     // Create client
     UrlMapsClient urlMapsClient = UrlMapsClient.Create();
     // Initialize request argument(s)
     DeleteUrlMapRequest request = new DeleteUrlMapRequest
     {
         RequestId = "",
         Project   = "",
         UrlMap    = "",
     };
     // Make the request
     Operation response = urlMapsClient.Delete(request);
     // End snippet
 }
        /// <summary>Snippet for DeleteAsync</summary>
        public async Task DeleteRequestObjectAsync()
        {
            // Snippet: DeleteAsync(DeleteUrlMapRequest, CallSettings)
            // Additional: DeleteAsync(DeleteUrlMapRequest, CancellationToken)
            // Create client
            UrlMapsClient urlMapsClient = await UrlMapsClient.CreateAsync();

            // Initialize request argument(s)
            DeleteUrlMapRequest request = new DeleteUrlMapRequest
            {
                RequestId = "",
                Project   = "",
                UrlMap    = "",
            };
            // Make the request
            Operation response = await urlMapsClient.DeleteAsync(request);

            // End snippet
        }
Exemplo n.º 3
0
 /// <summary>
 ///  删除转发规则组
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public async Task <DeleteUrlMapResponse> DeleteUrlMap(DeleteUrlMapRequest request)
 {
     return(await new DeleteUrlMapExecutor().Client(this).Execute <DeleteUrlMapResponse, DeleteUrlMapResult, DeleteUrlMapRequest>(request).ConfigureAwait(false));
 }
Exemplo n.º 4
0
 /// <summary>
 ///  删除转发规则组
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public DeleteUrlMapResponse DeleteUrlMap(DeleteUrlMapRequest request)
 {
     return(new DeleteUrlMapExecutor().Client(this).Execute <DeleteUrlMapResponse, DeleteUrlMapResult, DeleteUrlMapRequest>(request));
 }