示例#1
0
async def sample_delete_connection():
    # Create a client
    client = bigquery_connection_v1.ConnectionServiceAsyncClient()

    # Initialize request argument(s)
    request = bigquery_connection_v1.DeleteConnectionRequest(
        name="name_value", )

    # Make the request
    await client.delete_connection(request=request)
示例#2
0
async def sample_get_iam_policy():
    # Create a client
    client = bigquery_connection_v1.ConnectionServiceAsyncClient()

    # Initialize request argument(s)
    request = iam_policy_pb2.GetIamPolicyRequest(resource="resource_value", )

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

    # Handle the response
    print(response)
示例#3
0
async def sample_update_connection():
    # Create a client
    client = bigquery_connection_v1.ConnectionServiceAsyncClient()

    # Initialize request argument(s)
    request = bigquery_connection_v1.UpdateConnectionRequest(
        name="name_value", )

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

    # Handle the response
    print(response)
示例#4
0
async def sample_test_iam_permissions():
    # Create a client
    client = bigquery_connection_v1.ConnectionServiceAsyncClient()

    # Initialize request argument(s)
    request = iam_policy_pb2.TestIamPermissionsRequest(
        resource="resource_value",
        permissions=['permissions_value_1', 'permissions_value_2'],
    )

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

    # Handle the response
    print(response)
async def sample_list_connections():
    # Create a client
    client = bigquery_connection_v1.ConnectionServiceAsyncClient()

    # Initialize request argument(s)
    request = bigquery_connection_v1.ListConnectionsRequest(
        parent="parent_value",
        page_size=951,
    )

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

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