示例#1
0
        /// <summary>Snippet for DeleteCapacityCommitmentAsync</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 DeleteCapacityCommitmentResourceNamesAsync()
        {
            // Create client
            ReservationServiceClient reservationServiceClient = await ReservationServiceClient.CreateAsync();

            // Initialize request argument(s)
            CapacityCommitmentName name = CapacityCommitmentName.FromProjectLocationCapacityCommitment("[PROJECT]", "[LOCATION]", "[CAPACITY_COMMITMENT]");
            // Make the request
            await reservationServiceClient.DeleteCapacityCommitmentAsync(name);
        }
示例#2
0
        /// <summary>Snippet for DeleteCapacityCommitmentAsync</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 DeleteCapacityCommitmentAsync()
        {
            // Create client
            ReservationServiceClient reservationServiceClient = await ReservationServiceClient.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/locations/[LOCATION]/capacityCommitments/[CAPACITY_COMMITMENT]";
            // Make the request
            await reservationServiceClient.DeleteCapacityCommitmentAsync(name);
        }