/// <summary>Snippet for CreateUserLinkAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CreateUserLinkResourceNames1Async() { // Create client AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync(); // Initialize request argument(s) AccountName parent = AccountName.FromAccount("[ACCOUNT]"); UserLink userLink = new UserLink(); // Make the request UserLink response = await analyticsAdminServiceClient.CreateUserLinkAsync(parent, userLink); }
/// <summary>Snippet for CreateUserLinkAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CreateUserLinkResourceNames2Async() { // Create client AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync(); // Initialize request argument(s) PropertyName parent = PropertyName.FromProperty("[PROPERTY]"); UserLink userLink = new UserLink(); // Make the request UserLink response = await analyticsAdminServiceClient.CreateUserLinkAsync(parent, userLink); }
/// <summary>Snippet for CreateUserLinkAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CreateUserLinkAsync() { // Create client AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync(); // Initialize request argument(s) string parent = "accounts/[ACCOUNT]"; UserLink userLink = new UserLink(); // Make the request UserLink response = await analyticsAdminServiceClient.CreateUserLinkAsync(parent, userLink); }
/// <summary>Snippet for CreateUserLinkAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CreateUserLinkRequestObjectAsync() { // Create client AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync(); // Initialize request argument(s) CreateUserLinkRequest request = new CreateUserLinkRequest { ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"), NotifyNewUser = false, UserLink = new UserLink(), }; // Make the request UserLink response = await analyticsAdminServiceClient.CreateUserLinkAsync(request); }