Beispiel #1
0
        /// <summary>Snippet for InsertAsync</summary>
        public async Task InsertAsync()
        {
            // Snippet: InsertAsync(string, NetworkEndpointGroup, CallSettings)
            // Additional: InsertAsync(string, NetworkEndpointGroup, CancellationToken)
            // Create client
            GlobalNetworkEndpointGroupsClient globalNetworkEndpointGroupsClient = await GlobalNetworkEndpointGroupsClient.CreateAsync();

            // Initialize request argument(s)
            string project = "";
            NetworkEndpointGroup networkEndpointGroupResource = new NetworkEndpointGroup();
            // Make the request
            Operation response = await globalNetworkEndpointGroupsClient.InsertAsync(project, networkEndpointGroupResource);

            // End snippet
        }
Beispiel #2
0
        /// <summary>Snippet for InsertAsync</summary>
        public async Task InsertRequestObjectAsync()
        {
            // Snippet: InsertAsync(InsertGlobalNetworkEndpointGroupRequest, CallSettings)
            // Additional: InsertAsync(InsertGlobalNetworkEndpointGroupRequest, CancellationToken)
            // Create client
            GlobalNetworkEndpointGroupsClient globalNetworkEndpointGroupsClient = await GlobalNetworkEndpointGroupsClient.CreateAsync();

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

            // End snippet
        }