Beispiel #1
0
        /// <summary>Snippet for GetAccountLinkAsync</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 GetAccountLinkResourceNamesAsync()
        {
            // Create client
            AccountLinkServiceClient accountLinkServiceClient = await AccountLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            AccountLinkName resourceName = AccountLinkName.FromCustomerAccountLink("[CUSTOMER_ID]", "[ACCOUNT_LINK_ID]");
            // Make the request
            AccountLink response = await accountLinkServiceClient.GetAccountLinkAsync(resourceName);
        }
        /// <summary>Snippet for GetAccountLinkAsync</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 GetAccountLinkAsync()
        {
            // Create client
            AccountLinkServiceClient accountLinkServiceClient = await AccountLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/accountLinks/[ACCOUNT_LINK_ID]";
            // Make the request
            AccountLink response = await accountLinkServiceClient.GetAccountLinkAsync(resourceName);
        }
Beispiel #3
0
        /// <summary>Snippet for CreateAccountLinkAsync</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 CreateAccountLinkAsync()
        {
            // Create client
            AccountLinkServiceClient accountLinkServiceClient = await AccountLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string      customerId  = "";
            AccountLink accountLink = new AccountLink();
            // Make the request
            CreateAccountLinkResponse response = await accountLinkServiceClient.CreateAccountLinkAsync(customerId, accountLink);
        }
        /// <summary>Snippet for MutateAccountLinkAsync</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 MutateAccountLinkAsync()
        {
            // Create client
            AccountLinkServiceClient accountLinkServiceClient = await AccountLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            AccountLinkOperation operation = new AccountLinkOperation();
            // Make the request
            MutateAccountLinkResponse response = await accountLinkServiceClient.MutateAccountLinkAsync(customerId, operation);
        }
Beispiel #5
0
        /// <summary>Snippet for GetAccountLinkAsync</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 GetAccountLinkRequestObjectAsync()
        {
            // Create client
            AccountLinkServiceClient accountLinkServiceClient = await AccountLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetAccountLinkRequest request = new GetAccountLinkRequest
            {
                ResourceNameAsAccountLinkName = AccountLinkName.FromCustomerAccountLink("[CUSTOMER]", "[ACCOUNT_LINK]"),
            };
            // Make the request
            AccountLink response = await accountLinkServiceClient.GetAccountLinkAsync(request);
        }
Beispiel #6
0
        /// <summary>Snippet for GetAccountLinkAsync</summary>
        public async Task GetAccountLinkAsync()
        {
            // Snippet: GetAccountLinkAsync(string, CallSettings)
            // Additional: GetAccountLinkAsync(string, CancellationToken)
            // Create client
            AccountLinkServiceClient accountLinkServiceClient = await AccountLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER]/accountLinks/[ACCOUNT_LINK]";
            // Make the request
            AccountLink response = await accountLinkServiceClient.GetAccountLinkAsync(resourceName);

            // End snippet
        }
Beispiel #7
0
        /// <summary>Snippet for GetAccountLinkAsync</summary>
        public async Task GetAccountLinkResourceNamesAsync()
        {
            // Snippet: GetAccountLinkAsync(AccountLinkName, CallSettings)
            // Additional: GetAccountLinkAsync(AccountLinkName, CancellationToken)
            // Create client
            AccountLinkServiceClient accountLinkServiceClient = await AccountLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            AccountLinkName resourceName = AccountLinkName.FromCustomerAccountLink("[CUSTOMER]", "[ACCOUNT_LINK]");
            // Make the request
            AccountLink response = await accountLinkServiceClient.GetAccountLinkAsync(resourceName);

            // End snippet
        }
Beispiel #8
0
        /// <summary>Snippet for CreateAccountLinkAsync</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 CreateAccountLinkRequestObjectAsync()
        {
            // Create client
            AccountLinkServiceClient accountLinkServiceClient = await AccountLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            CreateAccountLinkRequest request = new CreateAccountLinkRequest
            {
                CustomerId  = "",
                AccountLink = new AccountLink(),
            };
            // Make the request
            CreateAccountLinkResponse response = await accountLinkServiceClient.CreateAccountLinkAsync(request);
        }
Beispiel #9
0
        /// <summary>Snippet for MutateAccountLinkAsync</summary>
        public async Task MutateAccountLinkAsync()
        {
            // Snippet: MutateAccountLinkAsync(string, AccountLinkOperation, CallSettings)
            // Additional: MutateAccountLinkAsync(string, AccountLinkOperation, CancellationToken)
            // Create client
            AccountLinkServiceClient accountLinkServiceClient = await AccountLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            AccountLinkOperation operation = new AccountLinkOperation();
            // Make the request
            MutateAccountLinkResponse response = await accountLinkServiceClient.MutateAccountLinkAsync(customerId, operation);

            // End snippet
        }
        /// <summary>Snippet for MutateAccountLinkAsync</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 MutateAccountLinkRequestObjectAsync()
        {
            // Create client
            AccountLinkServiceClient accountLinkServiceClient = await AccountLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateAccountLinkRequest request = new MutateAccountLinkRequest
            {
                CustomerId     = "",
                Operation      = new AccountLinkOperation(),
                PartialFailure = false,
                ValidateOnly   = false,
            };
            // Make the request
            MutateAccountLinkResponse response = await accountLinkServiceClient.MutateAccountLinkAsync(request);
        }
        /// <summary>Snippet for CreateAccountLinkAsync</summary>
        public async Task CreateAccountLinkRequestObjectAsync()
        {
            // Snippet: CreateAccountLinkAsync(CreateAccountLinkRequest, CallSettings)
            // Additional: CreateAccountLinkAsync(CreateAccountLinkRequest, CancellationToken)
            // Create client
            AccountLinkServiceClient accountLinkServiceClient = await AccountLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            CreateAccountLinkRequest request = new CreateAccountLinkRequest
            {
                CustomerId  = "",
                AccountLink = new AccountLink(),
            };
            // Make the request
            CreateAccountLinkResponse response = await accountLinkServiceClient.CreateAccountLinkAsync(request);

            // End snippet
        }
Beispiel #12
0
        /// <summary>Snippet for MutateAccountLinkAsync</summary>
        public async Task MutateAccountLinkRequestObjectAsync()
        {
            // Snippet: MutateAccountLinkAsync(MutateAccountLinkRequest, CallSettings)
            // Additional: MutateAccountLinkAsync(MutateAccountLinkRequest, CancellationToken)
            // Create client
            AccountLinkServiceClient accountLinkServiceClient = await AccountLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateAccountLinkRequest request = new MutateAccountLinkRequest
            {
                CustomerId     = "",
                Operation      = new AccountLinkOperation(),
                PartialFailure = false,
                ValidateOnly   = false,
            };
            // Make the request
            MutateAccountLinkResponse response = await accountLinkServiceClient.MutateAccountLinkAsync(request);

            // End snippet
        }