Exemple #1
0
 /// <summary>Snippet for Delete</summary>
 public void DeleteRequestObject()
 {
     // Snippet: Delete(DeleteGlobalNetworkEndpointGroupRequest, CallSettings)
     // Create client
     GlobalNetworkEndpointGroupsClient globalNetworkEndpointGroupsClient = GlobalNetworkEndpointGroupsClient.Create();
     // Initialize request argument(s)
     DeleteGlobalNetworkEndpointGroupRequest request = new DeleteGlobalNetworkEndpointGroupRequest
     {
         RequestId            = "",
         Project              = "",
         NetworkEndpointGroup = "",
     };
     // Make the request
     Operation response = globalNetworkEndpointGroupsClient.Delete(request);
     // End snippet
 }
Exemple #2
0
        /// <summary>Snippet for DeleteAsync</summary>
        public async Task DeleteRequestObjectAsync()
        {
            // Snippet: DeleteAsync(DeleteGlobalNetworkEndpointGroupRequest, CallSettings)
            // Additional: DeleteAsync(DeleteGlobalNetworkEndpointGroupRequest, CancellationToken)
            // Create client
            GlobalNetworkEndpointGroupsClient globalNetworkEndpointGroupsClient = await GlobalNetworkEndpointGroupsClient.CreateAsync();

            // Initialize request argument(s)
            DeleteGlobalNetworkEndpointGroupRequest request = new DeleteGlobalNetworkEndpointGroupRequest
            {
                RequestId            = "",
                Project              = "",
                NetworkEndpointGroup = "",
            };
            // Make the request
            Operation response = await globalNetworkEndpointGroupsClient.DeleteAsync(request);

            // End snippet
        }