async def sample_create_exclusion():
    """Snippet for create_exclusion"""

    # Create a client
    client = logging_v2.ConfigServiceV2AsyncClient()

    # Initialize request argument(s)
    request = logging_v2.CreateExclusionRequest()

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

    # Handle response
    print("{}".format(response))
def sample_create_exclusion():
    # Create a client
    client = logging_v2.ConfigServiceV2Client()

    # Initialize request argument(s)
    exclusion = logging_v2.LogExclusion()
    exclusion.name = "name_value"
    exclusion.filter = "filter_value"

    request = logging_v2.CreateExclusionRequest(
        parent="parent_value",
        exclusion=exclusion,
    )

    # Make the request
    response = client.create_exclusion(request=request)

    # Handle the response
    print(response)