-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Python API Docs command incorrect - TotalTLS #29464
Description
Existing documentation URL(s)
https://developers.cloudflare.com/api/python/resources/acm/subresources/total_tls/methods/update
What changes are you suggesting?
According to docs enabling TotalTLS with the PythonSDK is done with the following function:
total_tls = client.acm.total_tls.update(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
enabled=True,
)
The option "update" does not exist as is shown in the following python error message:
Traceback (most recent call last):
File "/home/s73948/dev/cloudflare-zones/./cf-zone-creator.py", line 770, in
main()
File "/home/s73948/dev/cloudflare-zones/./cf-zone-creator.py", line 714, in main
set_ssl_settings(zone_name, zone_id, ssl_settings, features, token)
File "/home/s73948/dev/cloudflare-zones/./cf-zone-creator.py", line 304, in set_ssl_settings
total_tls = client.acm.total_tls.update(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TotalTLSResource' object has no attribute 'update'
Listing all the attributes and methods of the object shows that no "update" method exists, but "create":
['annotations', 'class', 'delattr', 'dict', 'dir', 'doc', 'eq', 'format', 'ge', 'getattribute', 'getstate', 'gt', 'hash', 'init', 'init_subclass', 'le', 'lt', 'module', 'ne', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref', '_client', '_delete', '_get', '_get_api_list', '_patch', '_post', '_put', '_sleep', 'create', 'get', 'with_raw_response', 'with_streaming_response'
Please correct the documentation to reflect the correct method in the Python SDK
Additional information
No response