/// <summary>Snippet for CreateProfileAsync</summary> public async Task CreateProfileResourceNamesAsync() { // Snippet: CreateProfileAsync(TenantName, Profile, CallSettings) // Additional: CreateProfileAsync(TenantName, Profile, CancellationToken) // Create client ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync(); // Initialize request argument(s) TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"); Profile profile = new Profile(); // Make the request Profile response = await profileServiceClient.CreateProfileAsync(parent, profile); // End snippet }
/// <summary>Snippet for CreateProfileAsync</summary> public async Task CreateProfileAsync() { // Snippet: CreateProfileAsync(string, Profile, CallSettings) // Additional: CreateProfileAsync(string, Profile, CancellationToken) // Create client ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]/tenants/[TENANT]"; Profile profile = new Profile(); // Make the request Profile response = await profileServiceClient.CreateProfileAsync(parent, profile); // End snippet }
/// <summary>Snippet for CreateProfileAsync</summary> public async Task CreateProfileAsync() { // Snippet: CreateProfileAsync(CompanyName,Profile,CallSettings) // Additional: CreateProfileAsync(CompanyName,Profile,CancellationToken) // Create client ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync(); // Initialize request argument(s) CompanyName parent = new CompanyName("[PROJECT]", "[COMPANY]"); Profile profile = new Profile(); // Make the request Profile response = await profileServiceClient.CreateProfileAsync(parent, profile); // End snippet }
/// <summary>Snippet for CreateProfileAsync</summary> public async Task CreateProfileRequestObjectAsync() { // Snippet: CreateProfileAsync(CreateProfileRequest, CallSettings) // Additional: CreateProfileAsync(CreateProfileRequest, CancellationToken) // Create client ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync(); // Initialize request argument(s) CreateProfileRequest request = new CreateProfileRequest { ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"), Profile = new Profile(), }; // Make the request Profile response = await profileServiceClient.CreateProfileAsync(request); // End snippet }
/// <summary>Snippet for CreateProfileAsync</summary> public async Task CreateProfileAsync_RequestObject() { // Snippet: CreateProfileAsync(CreateProfileRequest,CallSettings) // Additional: CreateProfileAsync(CreateProfileRequest,CancellationToken) // Create client ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync(); // Initialize request argument(s) CreateProfileRequest request = new CreateProfileRequest { Parent = new CompanyName("[PROJECT]", "[COMPANY]").ToString(), Profile = new Profile(), }; // Make the request Profile response = await profileServiceClient.CreateProfileAsync(request); // End snippet }