/// <summary>Snippet for GetDistanceViewAsync</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 GetDistanceViewResourceNamesAsync()
        {
            // Create client
            DistanceViewServiceClient distanceViewServiceClient = await DistanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            DistanceViewName resourceName = DistanceViewName.FromCustomerDistanceView("[CUSTOMER]", "[DISTANCE_VIEW]");
            // Make the request
            DistanceView response = await distanceViewServiceClient.GetDistanceViewAsync(resourceName);
        }
Ejemplo n.º 2
0
        /// <summary>Snippet for GetDistanceViewAsync</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 GetDistanceViewResourceNamesAsync()
        {
            // Create client
            DistanceViewServiceClient distanceViewServiceClient = await DistanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            DistanceViewName resourceName = DistanceViewName.FromCustomerPlaceholderChainDistanceBucket("[CUSTOMER_ID]", "[PLACEHOLDER_CHAIN_ID]", "[DISTANCE_BUCKET]");
            // Make the request
            DistanceView response = await distanceViewServiceClient.GetDistanceViewAsync(resourceName);
        }
Ejemplo n.º 3
0
        /// <summary>Snippet for GetDistanceViewAsync</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 GetDistanceViewAsync()
        {
            // Create client
            DistanceViewServiceClient distanceViewServiceClient = await DistanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/distanceViews/[PLACEHOLDER_CHAIN_ID]~[DISTANCE_BUCKET]";
            // Make the request
            DistanceView response = await distanceViewServiceClient.GetDistanceViewAsync(resourceName);
        }
        /// <summary>Snippet for GetDistanceViewAsync</summary>
        public async Task GetDistanceViewAsync()
        {
            // Snippet: GetDistanceViewAsync(string, CallSettings)
            // Additional: GetDistanceViewAsync(string, CancellationToken)
            // Create client
            DistanceViewServiceClient distanceViewServiceClient = await DistanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER]/distanceViews/[DISTANCE_VIEW]";
            // Make the request
            DistanceView response = await distanceViewServiceClient.GetDistanceViewAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetDistanceViewAsync</summary>
        public async Task GetDistanceViewResourceNamesAsync()
        {
            // Snippet: GetDistanceViewAsync(DistanceViewName, CallSettings)
            // Additional: GetDistanceViewAsync(DistanceViewName, CancellationToken)
            // Create client
            DistanceViewServiceClient distanceViewServiceClient = await DistanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            DistanceViewName resourceName = DistanceViewName.FromCustomerDistanceView("[CUSTOMER]", "[DISTANCE_VIEW]");
            // Make the request
            DistanceView response = await distanceViewServiceClient.GetDistanceViewAsync(resourceName);

            // End snippet
        }
Ejemplo n.º 6
0
        /// <summary>Snippet for GetDistanceViewAsync</summary>
        public async Task GetDistanceViewRequestObjectAsync()
        {
            // Snippet: GetDistanceViewAsync(GetDistanceViewRequest, CallSettings)
            // Additional: GetDistanceViewAsync(GetDistanceViewRequest, CancellationToken)
            // Create client
            DistanceViewServiceClient distanceViewServiceClient = await DistanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetDistanceViewRequest request = new GetDistanceViewRequest
            {
                ResourceNameAsDistanceViewName = DistanceViewName.FromCustomerPlaceholderChainDistanceBucket("[CUSTOMER_ID]", "[PLACEHOLDER_CHAIN_ID]", "[DISTANCE_BUCKET]"),
            };
            // Make the request
            DistanceView response = await distanceViewServiceClient.GetDistanceViewAsync(request);

            // End snippet
        }