async def sample_delete_capacity_commitment():
    # Create a client
    client = bigquery_reservation_v1.ReservationServiceAsyncClient()

    # Initialize request argument(s)
    request = bigquery_reservation_v1.DeleteCapacityCommitmentRequest(
        name="name_value", )

    # Make the request
    await client.delete_capacity_commitment(request=request)
async def sample_update_capacity_commitment():
    # Create a client
    client = bigquery_reservation_v1.ReservationServiceAsyncClient()

    # Initialize request argument(s)
    request = bigquery_reservation_v1.UpdateCapacityCommitmentRequest()

    # Make the request
    response = await client.update_capacity_commitment(request=request)

    # Handle the response
    print(response)
Пример #3
0
async def sample_get_capacity_commitment():
    # Create a client
    client = bigquery_reservation_v1.ReservationServiceAsyncClient()

    # Initialize request argument(s)
    request = bigquery_reservation_v1.GetCapacityCommitmentRequest(
        name="name_value", )

    # Make the request
    response = await client.get_capacity_commitment(request=request)

    # Handle the response
    print(response)
Пример #4
0
async def sample_create_reservation():
    # Create a client
    client = bigquery_reservation_v1.ReservationServiceAsyncClient()

    # Initialize request argument(s)
    request = bigquery_reservation_v1.CreateReservationRequest(
        parent="parent_value", )

    # Make the request
    response = await client.create_reservation(request=request)

    # Handle the response
    print(response)
async def sample_move_assignment():
    # Create a client
    client = bigquery_reservation_v1.ReservationServiceAsyncClient()

    # Initialize request argument(s)
    request = bigquery_reservation_v1.MoveAssignmentRequest(
        name="name_value",
    )

    # Make the request
    response = await client.move_assignment(request=request)

    # Handle the response
    print(response)
async def sample_search_assignments():
    # Create a client
    client = bigquery_reservation_v1.ReservationServiceAsyncClient()

    # Initialize request argument(s)
    request = bigquery_reservation_v1.SearchAssignmentsRequest(
        parent="parent_value", )

    # Make the request
    page_result = client.search_assignments(request=request)

    # Handle the response
    async for response in page_result:
        print(response)
async def sample_list_capacity_commitments():
    # Create a client
    client = bigquery_reservation_v1.ReservationServiceAsyncClient()

    # Initialize request argument(s)
    request = bigquery_reservation_v1.ListCapacityCommitmentsRequest(
        parent="parent_value", )

    # Make the request
    page_result = client.list_capacity_commitments(request=request)

    # Handle the response
    async for response in page_result:
        print(response)