// This file is autogenerated, DO NOT EDIT
// mapping/params/enabled.asciidoc:64

[source, python]
----
resp = client.indices.create(
    index="my-index-000001",
    mappings={
        "enabled": False
    },
)
print(resp)

resp1 = client.index(
    index="my-index-000001",
    id="session_1",
    document={
        "user_id": "kimchy",
        "session_data": {
            "arbitrary_object": {
                "some_array": [
                    "foo",
                    "bar",
                    {
                        "baz": 2
                    }
                ]
            }
        },
        "last_updated": "2015-12-06T18:20:22"
    },
)
print(resp1)

resp2 = client.get(
    index="my-index-000001",
    id="session_1",
)
print(resp2)

resp3 = client.indices.get_mapping(
    index="my-index-000001",
)
print(resp3)
----
