/// <summary>Snippet for DeleteProfileAsync</summary> public async Task DeleteProfileResourceNamesAsync() { // Snippet: DeleteProfileAsync(ProfileName, CallSettings) // Additional: DeleteProfileAsync(ProfileName, CancellationToken) // Create client ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync(); // Initialize request argument(s) ProfileName name = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"); // Make the request await profileServiceClient.DeleteProfileAsync(name); // End snippet }
/// <summary>Snippet for DeleteProfileAsync</summary> public async Task DeleteProfileAsync() { // Snippet: DeleteProfileAsync(ProfileName,CallSettings) // Additional: DeleteProfileAsync(ProfileName,CancellationToken) // Create client ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync(); // Initialize request argument(s) ProfileName name = new ProfileName("[PROJECT]", "[COMPANY]", "[PROFILE]"); // Make the request await profileServiceClient.DeleteProfileAsync(name); // End snippet }
/// <summary>Snippet for DeleteProfileAsync</summary> public async Task DeleteProfileAsync() { // Snippet: DeleteProfileAsync(string, CallSettings) // Additional: DeleteProfileAsync(string, CancellationToken) // Create client ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]"; // Make the request await profileServiceClient.DeleteProfileAsync(name); // End snippet }
/// <summary>Snippet for DeleteProfileAsync</summary> public async Task DeleteProfileAsync_RequestObject() { // Snippet: DeleteProfileAsync(DeleteProfileRequest,CallSettings) // Additional: DeleteProfileAsync(DeleteProfileRequest,CancellationToken) // Create client ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync(); // Initialize request argument(s) DeleteProfileRequest request = new DeleteProfileRequest { Name = new ProfileName("[PROJECT]", "[COMPANY]", "[PROFILE]").ToString(), }; // Make the request await profileServiceClient.DeleteProfileAsync(request); // End snippet }