/// <summary>Snippet for CreateApplicationAsync</summary> public async Task CreateApplicationAsync() { // Snippet: CreateApplicationAsync(string, Application, CallSettings) // Additional: CreateApplicationAsync(string, Application, CancellationToken) // Create client ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]"; Application application = new Application(); // Make the request Application response = await applicationServiceClient.CreateApplicationAsync(parent, application); // End snippet }
/// <summary>Snippet for CreateApplicationAsync</summary> public async Task CreateApplicationResourceNamesAsync() { // Snippet: CreateApplicationAsync(ProfileName, Application, CallSettings) // Additional: CreateApplicationAsync(ProfileName, Application, CancellationToken) // Create client ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync(); // Initialize request argument(s) ProfileName parent = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"); Application application = new Application(); // Make the request Application response = await applicationServiceClient.CreateApplicationAsync(parent, application); // End snippet }
/// <summary>Snippet for CreateApplicationAsync</summary> public async Task CreateApplicationRequestObjectAsync() { // Snippet: CreateApplicationAsync(CreateApplicationRequest, CallSettings) // Additional: CreateApplicationAsync(CreateApplicationRequest, CancellationToken) // Create client ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync(); // Initialize request argument(s) CreateApplicationRequest request = new CreateApplicationRequest { ParentAsProfileName = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"), Application = new Application(), }; // Make the request Application response = await applicationServiceClient.CreateApplicationAsync(request); // End snippet }