Пример #1
0
 /// <summary>Snippet for GetBiReservation</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetBiReservationResourceNames()
 {
     // Create client
     ReservationServiceClient reservationServiceClient = ReservationServiceClient.Create();
     // Initialize request argument(s)
     BiReservationName name = BiReservationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
     // Make the request
     BiReservation response = reservationServiceClient.GetBiReservation(name);
 }
        /// <summary>Snippet for GetBiReservationAsync</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 GetBiReservationResourceNamesAsync()
        {
            // Create client
            ReservationServiceClient reservationServiceClient = await ReservationServiceClient.CreateAsync();

            // Initialize request argument(s)
            BiReservationName name = BiReservationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
            // Make the request
            BiReservation response = await reservationServiceClient.GetBiReservationAsync(name);
        }
 /// <summary>Snippet for GetBiReservation</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetBiReservationRequestObject()
 {
     // Create client
     ReservationServiceClient reservationServiceClient = ReservationServiceClient.Create();
     // Initialize request argument(s)
     GetBiReservationRequest request = new GetBiReservationRequest
     {
         BiReservationName = BiReservationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
     };
     // Make the request
     BiReservation response = reservationServiceClient.GetBiReservation(request);
 }