public async Task DeleteGroupAsync()
        {
            // Snippet: DeleteGroupAsync(string,CallSettings)
            // Additional: DeleteGroupAsync(string,CancellationToken)
            // Create client
            GroupServiceClient groupServiceClient = GroupServiceClient.Create();
            // Initialize request argument(s)
            string formattedName = GroupServiceClient.FormatGroupName("[PROJECT]", "[GROUP]");
            // Make the request
            await groupServiceClient.DeleteGroupAsync(formattedName);

            // End snippet
        }
        /// <summary>Snippet for DeleteGroupAsync</summary>
        public async Task DeleteGroupAsync()
        {
            // Snippet: DeleteGroupAsync(GroupName,CallSettings)
            // Additional: DeleteGroupAsync(GroupName,CancellationToken)
            // Create client
            GroupServiceClient groupServiceClient = await GroupServiceClient.CreateAsync();

            // Initialize request argument(s)
            GroupName name = new GroupName("[PROJECT]", "[GROUP]");
            // Make the request
            await groupServiceClient.DeleteGroupAsync(name);

            // End snippet
        }
Example #3
0
        /// <summary>Snippet for DeleteGroupAsync</summary>
        public async Task DeleteGroupAsync_RequestObject()
        {
            // Snippet: DeleteGroupAsync(DeleteGroupRequest,CallSettings)
            // Create client
            GroupServiceClient groupServiceClient = await GroupServiceClient.CreateAsync();

            // Initialize request argument(s)
            DeleteGroupRequest request = new DeleteGroupRequest
            {
                GroupName = new GroupName("[PROJECT]", "[GROUP]"),
            };
            // Make the request
            await groupServiceClient.DeleteGroupAsync(request);

            // End snippet
        }