Skip to content

Commit 24b7556

Browse files
committed
Made the docs clearer
1 parent 4b5b232 commit 24b7556

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

linode_api4/linode_client.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,10 +1068,18 @@ def tags(self, *filters):
10681068
def tag_create(self, label, instances=None, domains=None, nodebalancers=None,
10691069
volumes=None, entities=[]):
10701070
"""
1071-
Creates a new Tag and optionally applies it to the given Linode Instances.
1071+
Creates a new Tag and optionally applies it to the given entities.
10721072
10731073
:param label: The label for the new Tag
10741074
:type label: str
1075+
:param entities: A list of objects to apply this Tag to upon creation.
1076+
May only be taggable types (Linode Instances, Domains,
1077+
NodeBalancers, or Volumes). These are applied *in addition
1078+
to* any IDs specified with ``instances``, ``domains``,
1079+
``nodebalancers``, or ``volumes``, and is a convenience
1080+
for sending multiple entity types without sorting them
1081+
yourself.
1082+
:type entities: list of Instance, Domain, NodeBalancer, and/or Volume
10751083
:param instances: A list of Linode Instances to apply this Tag to upon
10761084
creation
10771085
:type instances: list of Instance or list of int
@@ -1084,10 +1092,6 @@ def tag_create(self, label, instances=None, domains=None, nodebalancers=None,
10841092
:param volumes: A list of Volumes to apply this Tag to upon
10851093
creation
10861094
:type volumes: list of Volumes or list of int
1087-
:param entities: A list of objects to apply this Tag to upon creation.
1088-
May only be taggable types (Linode Instances, Domains,
1089-
NodeBalancers ord Volumes).
1090-
:type entities: list of Instance, Domain, NodeBalancer, and/or Volume
10911095
10921096
:returns: The new Tag
10931097
:rtype: Tag

0 commit comments

Comments
 (0)