Beispiel #1
0
        /// <summary>Snippet for GetCustomerManagerLinkAsync</summary>
        public async Task GetCustomerManagerLinkAsync()
        {
            // Snippet: GetCustomerManagerLinkAsync(string, CallSettings)
            // Additional: GetCustomerManagerLinkAsync(string, CancellationToken)
            // Create client
            CustomerManagerLinkServiceClient customerManagerLinkServiceClient = await CustomerManagerLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER]/customerManagerLinks/[CUSTOMER_MANAGER_LINK]";
            // Make the request
            CustomerManagerLink response = await customerManagerLinkServiceClient.GetCustomerManagerLinkAsync(resourceName);

            // End snippet
        }
Beispiel #2
0
        /// <summary>Snippet for MutateCustomerManagerLinkAsync</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 MutateCustomerManagerLinkAsync()
        {
            // Create client
            CustomerManagerLinkServiceClient customerManagerLinkServiceClient = await CustomerManagerLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <CustomerManagerLinkOperation> operations = new CustomerManagerLinkOperation[]
            {
                new CustomerManagerLinkOperation(),
            };
            // Make the request
            MutateCustomerManagerLinkResponse response = await customerManagerLinkServiceClient.MutateCustomerManagerLinkAsync(customerId, operations);
        }
Beispiel #3
0
        /// <summary>Snippet for GetCustomerManagerLinkAsync</summary>
        public async Task GetCustomerManagerLinkResourceNamesAsync()
        {
            // Snippet: GetCustomerManagerLinkAsync(CustomerManagerLinkName, CallSettings)
            // Additional: GetCustomerManagerLinkAsync(CustomerManagerLinkName, CancellationToken)
            // Create client
            CustomerManagerLinkServiceClient customerManagerLinkServiceClient = await CustomerManagerLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            CustomerManagerLinkName resourceName = CustomerManagerLinkName.FromCustomerCustomerManagerLink("[CUSTOMER]", "[CUSTOMER_MANAGER_LINK]");
            // Make the request
            CustomerManagerLink response = await customerManagerLinkServiceClient.GetCustomerManagerLinkAsync(resourceName);

            // End snippet
        }
 /// <summary>Snippet for MoveManagerLink</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void MoveManagerLinkRequestObject()
 {
     // Create client
     CustomerManagerLinkServiceClient customerManagerLinkServiceClient = CustomerManagerLinkServiceClient.Create();
     // Initialize request argument(s)
     MoveManagerLinkRequest request = new MoveManagerLinkRequest
     {
         CustomerId = "",
         PreviousCustomerManagerLink = "",
         NewManager = "",
     };
     // Make the request
     MoveManagerLinkResponse response = customerManagerLinkServiceClient.MoveManagerLink(request);
 }
Beispiel #5
0
 /// <summary>Snippet for GetCustomerManagerLink</summary>
 public void GetCustomerManagerLinkRequestObject()
 {
     // Snippet: GetCustomerManagerLink(GetCustomerManagerLinkRequest, CallSettings)
     // Create client
     CustomerManagerLinkServiceClient customerManagerLinkServiceClient = CustomerManagerLinkServiceClient.Create();
     // Initialize request argument(s)
     GetCustomerManagerLinkRequest request = new GetCustomerManagerLinkRequest
     {
         ResourceNameAsCustomerManagerLinkName = CustomerManagerLinkName.FromCustomerCustomerManagerLink("[CUSTOMER]", "[CUSTOMER_MANAGER_LINK]"),
     };
     // Make the request
     CustomerManagerLink response = customerManagerLinkServiceClient.GetCustomerManagerLink(request);
     // End snippet
 }
        /// <summary>Snippet for MoveManagerLinkAsync</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 MoveManagerLinkRequestObjectAsync()
        {
            // Create client
            CustomerManagerLinkServiceClient customerManagerLinkServiceClient = await CustomerManagerLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            MoveManagerLinkRequest request = new MoveManagerLinkRequest
            {
                CustomerId = "",
                PreviousCustomerManagerLink = "",
                NewManager = "",
            };
            // Make the request
            MoveManagerLinkResponse response = await customerManagerLinkServiceClient.MoveManagerLinkAsync(request);
        }
Beispiel #7
0
 /// <summary>Snippet for MutateCustomerManagerLink</summary>
 public void MutateCustomerManagerLink()
 {
     // Snippet: MutateCustomerManagerLink(string, IEnumerable<CustomerManagerLinkOperation>, CallSettings)
     // Create client
     CustomerManagerLinkServiceClient customerManagerLinkServiceClient = CustomerManagerLinkServiceClient.Create();
     // Initialize request argument(s)
     string customerId = "";
     IEnumerable <CustomerManagerLinkOperation> operations = new CustomerManagerLinkOperation[]
     {
         new CustomerManagerLinkOperation(),
     };
     // Make the request
     MutateCustomerManagerLinkResponse response = customerManagerLinkServiceClient.MutateCustomerManagerLink(customerId, operations);
     // End snippet
 }
Beispiel #8
0
        /// <summary>Snippet for MoveManagerLinkAsync</summary>
        public async Task MoveManagerLinkAsync()
        {
            // Snippet: MoveManagerLinkAsync(string, string, string, CallSettings)
            // Additional: MoveManagerLinkAsync(string, string, string, CancellationToken)
            // Create client
            CustomerManagerLinkServiceClient customerManagerLinkServiceClient = await CustomerManagerLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            string previousCustomerManagerLink = "";
            string newManager = "";
            // Make the request
            MoveManagerLinkResponse response = await customerManagerLinkServiceClient.MoveManagerLinkAsync(customerId, previousCustomerManagerLink, newManager);

            // End snippet
        }
Beispiel #9
0
 /// <summary>Snippet for MutateCustomerManagerLink</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void MutateCustomerManagerLinkRequestObject()
 {
     // Create client
     CustomerManagerLinkServiceClient customerManagerLinkServiceClient = CustomerManagerLinkServiceClient.Create();
     // Initialize request argument(s)
     MutateCustomerManagerLinkRequest request = new MutateCustomerManagerLinkRequest
     {
         CustomerId = "",
         Operations =
         {
             new CustomerManagerLinkOperation(),
         },
     };
     // Make the request
     MutateCustomerManagerLinkResponse response = customerManagerLinkServiceClient.MutateCustomerManagerLink(request);
 }
Beispiel #10
0
 /// <summary>Snippet for MoveManagerLink</summary>
 public void MoveManagerLinkRequestObject()
 {
     // Snippet: MoveManagerLink(MoveManagerLinkRequest, CallSettings)
     // Create client
     CustomerManagerLinkServiceClient customerManagerLinkServiceClient = CustomerManagerLinkServiceClient.Create();
     // Initialize request argument(s)
     MoveManagerLinkRequest request = new MoveManagerLinkRequest
     {
         CustomerId = "",
         PreviousCustomerManagerLink = "",
         NewManager   = "",
         ValidateOnly = false,
     };
     // Make the request
     MoveManagerLinkResponse response = customerManagerLinkServiceClient.MoveManagerLink(request);
     // End snippet
 }
        /// <summary>Snippet for GetCustomerManagerLinkAsync</summary>
        public async Task GetCustomerManagerLinkRequestObjectAsync()
        {
            // Snippet: GetCustomerManagerLinkAsync(GetCustomerManagerLinkRequest, CallSettings)
            // Additional: GetCustomerManagerLinkAsync(GetCustomerManagerLinkRequest, CancellationToken)
            // Create client
            CustomerManagerLinkServiceClient customerManagerLinkServiceClient = await CustomerManagerLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCustomerManagerLinkRequest request = new GetCustomerManagerLinkRequest
            {
                ResourceNameAsCustomerManagerLinkName = CustomerManagerLinkName.FromCustomerManagerCustomerManagerLink("[CUSTOMER_ID]", "[MANAGER_CUSTOMER_ID]", "[MANAGER_LINK_ID]"),
            };
            // Make the request
            CustomerManagerLink response = await customerManagerLinkServiceClient.GetCustomerManagerLinkAsync(request);

            // End snippet
        }
Beispiel #12
0
        /// <summary>Snippet for MutateCustomerManagerLinkAsync</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 MutateCustomerManagerLinkRequestObjectAsync()
        {
            // Create client
            CustomerManagerLinkServiceClient customerManagerLinkServiceClient = await CustomerManagerLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateCustomerManagerLinkRequest request = new MutateCustomerManagerLinkRequest
            {
                CustomerId = "",
                Operations =
                {
                    new CustomerManagerLinkOperation(),
                },
            };
            // Make the request
            MutateCustomerManagerLinkResponse response = await customerManagerLinkServiceClient.MutateCustomerManagerLinkAsync(request);
        }
Beispiel #13
0
        /// <summary>Snippet for MutateCustomerManagerLinkAsync</summary>
        public async Task MutateCustomerManagerLinkAsync()
        {
            // Snippet: MutateCustomerManagerLinkAsync(string, IEnumerable<CustomerManagerLinkOperation>, CallSettings)
            // Additional: MutateCustomerManagerLinkAsync(string, IEnumerable<CustomerManagerLinkOperation>, CancellationToken)
            // Create client
            CustomerManagerLinkServiceClient customerManagerLinkServiceClient = await CustomerManagerLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <CustomerManagerLinkOperation> operations = new CustomerManagerLinkOperation[]
            {
                new CustomerManagerLinkOperation(),
            };
            // Make the request
            MutateCustomerManagerLinkResponse response = await customerManagerLinkServiceClient.MutateCustomerManagerLinkAsync(customerId, operations);

            // End snippet
        }
Beispiel #14
0
        /// <summary>Snippet for MoveManagerLinkAsync</summary>
        public async Task MoveManagerLinkRequestObjectAsync()
        {
            // Snippet: MoveManagerLinkAsync(MoveManagerLinkRequest, CallSettings)
            // Additional: MoveManagerLinkAsync(MoveManagerLinkRequest, CancellationToken)
            // Create client
            CustomerManagerLinkServiceClient customerManagerLinkServiceClient = await CustomerManagerLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            MoveManagerLinkRequest request = new MoveManagerLinkRequest
            {
                CustomerId = "",
                PreviousCustomerManagerLink = "",
                NewManager = "",
            };
            // Make the request
            MoveManagerLinkResponse response = await customerManagerLinkServiceClient.MoveManagerLinkAsync(request);

            // End snippet
        }
Beispiel #15
0
 /// <summary>Snippet for MutateCustomerManagerLink</summary>
 public void MutateCustomerManagerLinkRequestObject()
 {
     // Snippet: MutateCustomerManagerLink(MutateCustomerManagerLinkRequest, CallSettings)
     // Create client
     CustomerManagerLinkServiceClient customerManagerLinkServiceClient = CustomerManagerLinkServiceClient.Create();
     // Initialize request argument(s)
     MutateCustomerManagerLinkRequest request = new MutateCustomerManagerLinkRequest
     {
         CustomerId = "",
         Operations =
         {
             new CustomerManagerLinkOperation(),
         },
         ValidateOnly = false,
     };
     // Make the request
     MutateCustomerManagerLinkResponse response = customerManagerLinkServiceClient.MutateCustomerManagerLink(request);
     // End snippet
 }
Beispiel #16
0
        /// <summary>Snippet for MutateCustomerManagerLinkAsync</summary>
        public async Task MutateCustomerManagerLinkRequestObjectAsync()
        {
            // Snippet: MutateCustomerManagerLinkAsync(MutateCustomerManagerLinkRequest, CallSettings)
            // Additional: MutateCustomerManagerLinkAsync(MutateCustomerManagerLinkRequest, CancellationToken)
            // Create client
            CustomerManagerLinkServiceClient customerManagerLinkServiceClient = await CustomerManagerLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateCustomerManagerLinkRequest request = new MutateCustomerManagerLinkRequest
            {
                CustomerId = "",
                Operations =
                {
                    new CustomerManagerLinkOperation(),
                },
            };
            // Make the request
            MutateCustomerManagerLinkResponse response = await customerManagerLinkServiceClient.MutateCustomerManagerLinkAsync(request);

            // End snippet
        }
        /// <summary>Snippet for MoveManagerLinkAsync</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 MoveManagerLinkAsync()
        {
            // Create client
            CustomerManagerLinkServiceClient customerManagerLinkServiceClient = await CustomerManagerLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            string previousCustomerManagerLink = "";
            string newManager = "";
            // Make the request
            MoveManagerLinkResponse response = await customerManagerLinkServiceClient.MoveManagerLinkAsync(customerId, previousCustomerManagerLink, newManager);
        }
        /// <summary>Snippet for GetCustomerManagerLinkAsync</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 GetCustomerManagerLinkRequestObjectAsync()
        {
            // Create client
            CustomerManagerLinkServiceClient customerManagerLinkServiceClient = await CustomerManagerLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCustomerManagerLinkRequest request = new GetCustomerManagerLinkRequest
            {
                ResourceNameAsCustomerManagerLinkName = CustomerManagerLinkName.FromCustomerCustomerManagerLink("[CUSTOMER]", "[CUSTOMER_MANAGER_LINK]"),
            };
            // Make the request
            CustomerManagerLink response = await customerManagerLinkServiceClient.GetCustomerManagerLinkAsync(request);
        }
        /// <summary>Snippet for GetCustomerManagerLinkAsync</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 GetCustomerManagerLinkResourceNamesAsync()
        {
            // Create client
            CustomerManagerLinkServiceClient customerManagerLinkServiceClient = await CustomerManagerLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            CustomerManagerLinkName resourceName = CustomerManagerLinkName.FromCustomerManagerCustomerManagerLink("[CUSTOMER_ID]", "[MANAGER_CUSTOMER_ID]", "[MANAGER_LINK_ID]");
            // Make the request
            CustomerManagerLink response = await customerManagerLinkServiceClient.GetCustomerManagerLinkAsync(resourceName);
        }
Beispiel #20
0
        /// <summary>Snippet for GetCustomerManagerLinkAsync</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 GetCustomerManagerLinkAsync()
        {
            // Create client
            CustomerManagerLinkServiceClient customerManagerLinkServiceClient = await CustomerManagerLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER]/customerManagerLinks/[CUSTOMER_MANAGER_LINK]";
            // Make the request
            CustomerManagerLink response = await customerManagerLinkServiceClient.GetCustomerManagerLinkAsync(resourceName);
        }