Пример #1
0
        /// <summary>Snippet for GetHotelPerformanceViewAsync</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 GetHotelPerformanceViewResourceNamesAsync()
        {
            // Create client
            HotelPerformanceViewServiceClient hotelPerformanceViewServiceClient = await HotelPerformanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            HotelPerformanceViewName resourceName = HotelPerformanceViewName.FromCustomer("[CUSTOMER_ID]");
            // Make the request
            HotelPerformanceView response = await hotelPerformanceViewServiceClient.GetHotelPerformanceViewAsync(resourceName);
        }
        /// <summary>Snippet for GetHotelPerformanceViewAsync</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 GetHotelPerformanceViewAsync()
        {
            // Create client
            HotelPerformanceViewServiceClient hotelPerformanceViewServiceClient = await HotelPerformanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/hotelPerformanceView";
            // Make the request
            HotelPerformanceView response = await hotelPerformanceViewServiceClient.GetHotelPerformanceViewAsync(resourceName);
        }
        /// <summary>Snippet for GetHotelPerformanceViewAsync</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 GetHotelPerformanceViewRequestObjectAsync()
        {
            // Create client
            HotelPerformanceViewServiceClient hotelPerformanceViewServiceClient = await HotelPerformanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetHotelPerformanceViewRequest request = new GetHotelPerformanceViewRequest
            {
                ResourceNameAsHotelPerformanceViewName = HotelPerformanceViewName.FromCustomer("[CUSTOMER]"),
            };
            // Make the request
            HotelPerformanceView response = await hotelPerformanceViewServiceClient.GetHotelPerformanceViewAsync(request);
        }
        /// <summary>Snippet for GetHotelPerformanceViewAsync</summary>
        public async Task GetHotelPerformanceViewAsync()
        {
            // Snippet: GetHotelPerformanceViewAsync(string, CallSettings)
            // Additional: GetHotelPerformanceViewAsync(string, CancellationToken)
            // Create client
            HotelPerformanceViewServiceClient hotelPerformanceViewServiceClient = await HotelPerformanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/hotelPerformanceView";
            // Make the request
            HotelPerformanceView response = await hotelPerformanceViewServiceClient.GetHotelPerformanceViewAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetHotelPerformanceViewAsync</summary>
        public async Task GetHotelPerformanceViewResourceNamesAsync()
        {
            // Snippet: GetHotelPerformanceViewAsync(HotelPerformanceViewName, CallSettings)
            // Additional: GetHotelPerformanceViewAsync(HotelPerformanceViewName, CancellationToken)
            // Create client
            HotelPerformanceViewServiceClient hotelPerformanceViewServiceClient = await HotelPerformanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            HotelPerformanceViewName resourceName = HotelPerformanceViewName.FromCustomer("[CUSTOMER_ID]");
            // Make the request
            HotelPerformanceView response = await hotelPerformanceViewServiceClient.GetHotelPerformanceViewAsync(resourceName);

            // End snippet
        }