repo
stringlengths
7
55
path
stringlengths
4
223
func_name
stringlengths
1
134
original_string
stringlengths
75
104k
language
stringclasses
1 value
code
stringlengths
75
104k
code_tokens
listlengths
19
28.4k
docstring
stringlengths
1
46.9k
docstring_tokens
listlengths
1
1.97k
sha
stringlengths
40
40
url
stringlengths
87
315
partition
stringclasses
1 value
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_backend
def update_backend(self, service_id, version_number, name_key, **kwargs): """Update the backend for a particular service and version.""" body = self._formdata(kwargs, FastlyBackend.FIELDS) content = self._fetch("/service/%s/version/%d/backend/%s" % (service_id, version_number, name_key), method="PUT", body=body) ...
python
def update_backend(self, service_id, version_number, name_key, **kwargs): """Update the backend for a particular service and version.""" body = self._formdata(kwargs, FastlyBackend.FIELDS) content = self._fetch("/service/%s/version/%d/backend/%s" % (service_id, version_number, name_key), method="PUT", body=body) ...
[ "def", "update_backend", "(", "self", ",", "service_id", ",", "version_number", ",", "name_key", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlyBackend", ".", "FIELDS", ")", "content", "=", "self", "....
Update the backend for a particular service and version.
[ "Update", "the", "backend", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L176-L180
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.check_backends
def check_backends(self, service_id, version_number): """Performs a health check against each backend in version. If the backend has a specific type of healthcheck, that one is performed, otherwise a HEAD request to / is performed. The first item is the details on the Backend itself. The second item is details of the...
python
def check_backends(self, service_id, version_number): """Performs a health check against each backend in version. If the backend has a specific type of healthcheck, that one is performed, otherwise a HEAD request to / is performed. The first item is the details on the Backend itself. The second item is details of the...
[ "def", "check_backends", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/backend/check_all\"", "%", "(", "service_id", ",", "version_number", ")", ")", "# TODO: Use a strong-typed c...
Performs a health check against each backend in version. If the backend has a specific type of healthcheck, that one is performed, otherwise a HEAD request to / is performed. The first item is the details on the Backend itself. The second item is details of the specific HTTP request performed as a health check. The thi...
[ "Performs", "a", "health", "check", "against", "each", "backend", "in", "version", ".", "If", "the", "backend", "has", "a", "specific", "type", "of", "healthcheck", "that", "one", "is", "performed", "otherwise", "a", "HEAD", "request", "to", "/", "is", "pe...
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L189-L193
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.list_cache_settings
def list_cache_settings(self, service_id, version_number): """Get a list of all cache settings for a particular service and version.""" content = self._fetch("/service/%s/version/%d/cache_settings" % (service_id, version_number)) return map(lambda x: FastlyCacheSettings(self, x), content)
python
def list_cache_settings(self, service_id, version_number): """Get a list of all cache settings for a particular service and version.""" content = self._fetch("/service/%s/version/%d/cache_settings" % (service_id, version_number)) return map(lambda x: FastlyCacheSettings(self, x), content)
[ "def", "list_cache_settings", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/cache_settings\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "map", "(", ...
Get a list of all cache settings for a particular service and version.
[ "Get", "a", "list", "of", "all", "cache", "settings", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L196-L199
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.create_cache_settings
def create_cache_settings(self, service_id, version_number, name, action, ttl=None, stale_ttl=None, cache_condition=None): """Create a new cache settings object.""" body = self._formdata({ "name": name, "action": action, "ttl": ttl, "stale_ttl": stale_ttl, "cache_condition": cache_co...
python
def create_cache_settings(self, service_id, version_number, name, action, ttl=None, stale_ttl=None, cache_condition=None): """Create a new cache settings object.""" body = self._formdata({ "name": name, "action": action, "ttl": ttl, "stale_ttl": stale_ttl, "cache_condition": cache_co...
[ "def", "create_cache_settings", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ",", "action", ",", "ttl", "=", "None", ",", "stale_ttl", "=", "None", ",", "cache_condition", "=", "None", ")", ":", "body", "=", "self", ".", "_formdata",...
Create a new cache settings object.
[ "Create", "a", "new", "cache", "settings", "object", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L202-L219
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_cache_settings
def get_cache_settings(self, service_id, version_number, name): """Get a specific cache settings object.""" content = self._fetch("/service/%s/version/%d/cache_settings/%s" % (service_id, version_number, name)) return FastlyCacheSettings(self, content)
python
def get_cache_settings(self, service_id, version_number, name): """Get a specific cache settings object.""" content = self._fetch("/service/%s/version/%d/cache_settings/%s" % (service_id, version_number, name)) return FastlyCacheSettings(self, content)
[ "def", "get_cache_settings", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/cache_settings/%s\"", "%", "(", "service_id", ",", "version_number", ",", "name", ")", ...
Get a specific cache settings object.
[ "Get", "a", "specific", "cache", "settings", "object", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L222-L225
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_cache_settings
def update_cache_settings(self, service_id, version_number, name_key, **kwargs): """Update a specific cache settings object.""" body = self._formdata(kwargs, FastlyCacheSettings.FIELDS) content = self._fetch("/service/%s/version/%d/cache_settings/%s" % (service_id, version_number, name_key), method="PUT", body=bo...
python
def update_cache_settings(self, service_id, version_number, name_key, **kwargs): """Update a specific cache settings object.""" body = self._formdata(kwargs, FastlyCacheSettings.FIELDS) content = self._fetch("/service/%s/version/%d/cache_settings/%s" % (service_id, version_number, name_key), method="PUT", body=bo...
[ "def", "update_cache_settings", "(", "self", ",", "service_id", ",", "version_number", ",", "name_key", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlyCacheSettings", ".", "FIELDS", ")", "content", "=", ...
Update a specific cache settings object.
[ "Update", "a", "specific", "cache", "settings", "object", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L228-L232
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.delete_cache_settings
def delete_cache_settings(self, service_id, version_number, name): """Delete a specific cache settings object.""" content = self._fetch("/service/%s/version/%d/cache_settings/%s" % (service_id, version_number, name), method="DELETE") return self._status(content)
python
def delete_cache_settings(self, service_id, version_number, name): """Delete a specific cache settings object.""" content = self._fetch("/service/%s/version/%d/cache_settings/%s" % (service_id, version_number, name), method="DELETE") return self._status(content)
[ "def", "delete_cache_settings", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/cache_settings/%s\"", "%", "(", "service_id", ",", "version_number", ",", "name", ")...
Delete a specific cache settings object.
[ "Delete", "a", "specific", "cache", "settings", "object", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L235-L238
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.list_conditions
def list_conditions(self, service_id, version_number): """Gets all conditions for a particular service and version.""" content = self._fetch("/service/%s/version/%d/condition" % (service_id, version_number)) return map(lambda x: FastlyCondition(self, x), content)
python
def list_conditions(self, service_id, version_number): """Gets all conditions for a particular service and version.""" content = self._fetch("/service/%s/version/%d/condition" % (service_id, version_number)) return map(lambda x: FastlyCondition(self, x), content)
[ "def", "list_conditions", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/condition\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "map", "(", "lambda"...
Gets all conditions for a particular service and version.
[ "Gets", "all", "conditions", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L241-L244
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.create_condition
def create_condition(self, service_id, version_number, name, _type, statement, priority="10", comment=None): """Creates a new condition.""" body = self._formdata({ "name": name, "type": _type, "statement": statement, "priority": priority, "comment": comment, }, FastlyCondition.FIEL...
python
def create_condition(self, service_id, version_number, name, _type, statement, priority="10", comment=None): """Creates a new condition.""" body = self._formdata({ "name": name, "type": _type, "statement": statement, "priority": priority, "comment": comment, }, FastlyCondition.FIEL...
[ "def", "create_condition", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ",", "_type", ",", "statement", ",", "priority", "=", "\"10\"", ",", "comment", "=", "None", ")", ":", "body", "=", "self", ".", "_formdata", "(", "{", "\"name...
Creates a new condition.
[ "Creates", "a", "new", "condition", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L247-L264
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_condition
def get_condition(self, service_id, version_number, name): """Gets a specified condition.""" content = self._fetch("/service/%s/version/%d/condition/%s" % (service_id, version_number, name)) return FastlyCondition(self, content)
python
def get_condition(self, service_id, version_number, name): """Gets a specified condition.""" content = self._fetch("/service/%s/version/%d/condition/%s" % (service_id, version_number, name)) return FastlyCondition(self, content)
[ "def", "get_condition", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/condition/%s\"", "%", "(", "service_id", ",", "version_number", ",", "name", ")", ")", "...
Gets a specified condition.
[ "Gets", "a", "specified", "condition", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L267-L270
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_condition
def update_condition(self, service_id, version_number, name_key, **kwargs): """Updates the specified condition.""" body = self._formdata(kwargs, FastlyCondition.FIELDS) content = self._fetch("/service/%s/version/%d/condition/%s" % (service_id, version_number, name_key), method="PUT", body=body) return FastlyCon...
python
def update_condition(self, service_id, version_number, name_key, **kwargs): """Updates the specified condition.""" body = self._formdata(kwargs, FastlyCondition.FIELDS) content = self._fetch("/service/%s/version/%d/condition/%s" % (service_id, version_number, name_key), method="PUT", body=body) return FastlyCon...
[ "def", "update_condition", "(", "self", ",", "service_id", ",", "version_number", ",", "name_key", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlyCondition", ".", "FIELDS", ")", "content", "=", "self", ...
Updates the specified condition.
[ "Updates", "the", "specified", "condition", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L273-L277
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.content_edge_check
def content_edge_check(self, url): """Retrieve headers and MD5 hash of the content for a particular url from each Fastly edge server.""" prefixes = ["http://", "https://"] for prefix in prefixes: if url.startswith(prefix): url = url[len(prefix):] break content = self._fetch("/content/edge_check/%s" %...
python
def content_edge_check(self, url): """Retrieve headers and MD5 hash of the content for a particular url from each Fastly edge server.""" prefixes = ["http://", "https://"] for prefix in prefixes: if url.startswith(prefix): url = url[len(prefix):] break content = self._fetch("/content/edge_check/%s" %...
[ "def", "content_edge_check", "(", "self", ",", "url", ")", ":", "prefixes", "=", "[", "\"http://\"", ",", "\"https://\"", "]", "for", "prefix", "in", "prefixes", ":", "if", "url", ".", "startswith", "(", "prefix", ")", ":", "url", "=", "url", "[", "len...
Retrieve headers and MD5 hash of the content for a particular url from each Fastly edge server.
[ "Retrieve", "headers", "and", "MD5", "hash", "of", "the", "content", "for", "a", "particular", "url", "from", "each", "Fastly", "edge", "server", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L286-L294
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_customer
def get_customer(self, customer_id): """Get a specific customer.""" content = self._fetch("/customer/%s" % customer_id) return FastlyCustomer(self, content)
python
def get_customer(self, customer_id): """Get a specific customer.""" content = self._fetch("/customer/%s" % customer_id) return FastlyCustomer(self, content)
[ "def", "get_customer", "(", "self", ",", "customer_id", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/customer/%s\"", "%", "customer_id", ")", "return", "FastlyCustomer", "(", "self", ",", "content", ")" ]
Get a specific customer.
[ "Get", "a", "specific", "customer", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L303-L306
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.list_customer_users
def list_customer_users(self, customer_id): """List all users from a specified customer id.""" content = self._fetch("/customer/users/%s" % customer_id) return map(lambda x: FastlyUser(self, x), content)
python
def list_customer_users(self, customer_id): """List all users from a specified customer id.""" content = self._fetch("/customer/users/%s" % customer_id) return map(lambda x: FastlyUser(self, x), content)
[ "def", "list_customer_users", "(", "self", ",", "customer_id", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/customer/users/%s\"", "%", "customer_id", ")", "return", "map", "(", "lambda", "x", ":", "FastlyUser", "(", "self", ",", "x", ")", ",",...
List all users from a specified customer id.
[ "List", "all", "users", "from", "a", "specified", "customer", "id", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L315-L318
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_customer
def update_customer(self, customer_id, **kwargs): """Update a customer.""" body = self._formdata(kwargs, FastlyCustomer.FIELDS) content = self._fetch("/customer/%s" % customer_id, method="PUT", body=body) return FastlyCustomer(self, content)
python
def update_customer(self, customer_id, **kwargs): """Update a customer.""" body = self._formdata(kwargs, FastlyCustomer.FIELDS) content = self._fetch("/customer/%s" % customer_id, method="PUT", body=body) return FastlyCustomer(self, content)
[ "def", "update_customer", "(", "self", ",", "customer_id", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlyCustomer", ".", "FIELDS", ")", "content", "=", "self", ".", "_fetch", "(", "\"/customer/%s\"", ...
Update a customer.
[ "Update", "a", "customer", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L321-L325
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.delete_customer
def delete_customer(self, customer_id): """Delete a customer.""" content = self._fetch("/customer/%s" % customer_id, method="DELETE") return self._status(content)
python
def delete_customer(self, customer_id): """Delete a customer.""" content = self._fetch("/customer/%s" % customer_id, method="DELETE") return self._status(content)
[ "def", "delete_customer", "(", "self", ",", "customer_id", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/customer/%s\"", "%", "customer_id", ",", "method", "=", "\"DELETE\"", ")", "return", "self", ".", "_status", "(", "content", ")" ]
Delete a customer.
[ "Delete", "a", "customer", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L328-L331
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.list_directors
def list_directors(self, service_id, version_number): """List the directors for a particular service and version.""" content = self._fetch("/service/%s/version/%d/director" % (service_id, version_number)) return map(lambda x: FastlyDirector(self, x), content)
python
def list_directors(self, service_id, version_number): """List the directors for a particular service and version.""" content = self._fetch("/service/%s/version/%d/director" % (service_id, version_number)) return map(lambda x: FastlyDirector(self, x), content)
[ "def", "list_directors", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/director\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "map", "(", "lambda", ...
List the directors for a particular service and version.
[ "List", "the", "directors", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L334-L337
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.create_director
def create_director(self, service_id, version_number, name, quorum=75, _type=FastlyDirectorType.RANDOM, retries=5, shield=None): """Create a director for a particular service and version.""" body = self._formdata({ "name": name, "quorum": quorum, "type": _type, "retries": retries, "shield...
python
def create_director(self, service_id, version_number, name, quorum=75, _type=FastlyDirectorType.RANDOM, retries=5, shield=None): """Create a director for a particular service and version.""" body = self._formdata({ "name": name, "quorum": quorum, "type": _type, "retries": retries, "shield...
[ "def", "create_director", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ",", "quorum", "=", "75", ",", "_type", "=", "FastlyDirectorType", ".", "RANDOM", ",", "retries", "=", "5", ",", "shield", "=", "None", ")", ":", "body", "=", ...
Create a director for a particular service and version.
[ "Create", "a", "director", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L340-L356
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_director
def get_director(self, service_id, version_number, name): """Get the director for a particular service and version.""" content = self._fetch("/service/%s/version/%d/director/%s" % (service_id, version_number, name)) return FastlyDirector(self, content)
python
def get_director(self, service_id, version_number, name): """Get the director for a particular service and version.""" content = self._fetch("/service/%s/version/%d/director/%s" % (service_id, version_number, name)) return FastlyDirector(self, content)
[ "def", "get_director", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/director/%s\"", "%", "(", "service_id", ",", "version_number", ",", "name", ")", ")", "re...
Get the director for a particular service and version.
[ "Get", "the", "director", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L359-L362
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_director
def update_director(self, service_id, version_number, name_key, **kwargs): """Update the director for a particular service and version.""" body = self._formdata(kwargs, FastlyDirector.FIELDS) content = self._fetch("/service/%s/version/%d/director/%s" % (service_id, version_number, name_key), method="PUT", body=bo...
python
def update_director(self, service_id, version_number, name_key, **kwargs): """Update the director for a particular service and version.""" body = self._formdata(kwargs, FastlyDirector.FIELDS) content = self._fetch("/service/%s/version/%d/director/%s" % (service_id, version_number, name_key), method="PUT", body=bo...
[ "def", "update_director", "(", "self", ",", "service_id", ",", "version_number", ",", "name_key", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlyDirector", ".", "FIELDS", ")", "content", "=", "self", ...
Update the director for a particular service and version.
[ "Update", "the", "director", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L365-L369
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_director_backend
def get_director_backend(self, service_id, version_number, director_name, backend_name): """Returns the relationship between a Backend and a Director. If the Backend has been associated with the Director, it returns a simple record indicating this. Otherwise, returns a 404.""" content = self._fetch("/service/%s/ver...
python
def get_director_backend(self, service_id, version_number, director_name, backend_name): """Returns the relationship between a Backend and a Director. If the Backend has been associated with the Director, it returns a simple record indicating this. Otherwise, returns a 404.""" content = self._fetch("/service/%s/ver...
[ "def", "get_director_backend", "(", "self", ",", "service_id", ",", "version_number", ",", "director_name", ",", "backend_name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/director/%s/backend/%s\"", "%", "(", "service_id", ",", "...
Returns the relationship between a Backend and a Director. If the Backend has been associated with the Director, it returns a simple record indicating this. Otherwise, returns a 404.
[ "Returns", "the", "relationship", "between", "a", "Backend", "and", "a", "Director", ".", "If", "the", "Backend", "has", "been", "associated", "with", "the", "Director", "it", "returns", "a", "simple", "record", "indicating", "this", ".", "Otherwise", "returns...
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L378-L381
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.delete_director_backend
def delete_director_backend(self, service_id, version_number, director_name, backend_name): """Deletes the relationship between a Backend and a Director. The Backend is no longer considered a member of the Director and thus will not have traffic balanced onto it from this Director.""" content = self._fetch("/servic...
python
def delete_director_backend(self, service_id, version_number, director_name, backend_name): """Deletes the relationship between a Backend and a Director. The Backend is no longer considered a member of the Director and thus will not have traffic balanced onto it from this Director.""" content = self._fetch("/servic...
[ "def", "delete_director_backend", "(", "self", ",", "service_id", ",", "version_number", ",", "director_name", ",", "backend_name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/director/%s/backend/%s\"", "%", "(", "service_id", ",", ...
Deletes the relationship between a Backend and a Director. The Backend is no longer considered a member of the Director and thus will not have traffic balanced onto it from this Director.
[ "Deletes", "the", "relationship", "between", "a", "Backend", "and", "a", "Director", ".", "The", "Backend", "is", "no", "longer", "considered", "a", "member", "of", "the", "Director", "and", "thus", "will", "not", "have", "traffic", "balanced", "onto", "it",...
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L390-L393
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.list_domains
def list_domains(self, service_id, version_number): """List the domains for a particular service and version.""" content = self._fetch("/service/%s/version/%d/domain" % (service_id, version_number)) return map(lambda x: FastlyDomain(self, x), content)
python
def list_domains(self, service_id, version_number): """List the domains for a particular service and version.""" content = self._fetch("/service/%s/version/%d/domain" % (service_id, version_number)) return map(lambda x: FastlyDomain(self, x), content)
[ "def", "list_domains", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/domain\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "map", "(", "lambda", "x...
List the domains for a particular service and version.
[ "List", "the", "domains", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L396-L399
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.create_domain
def create_domain(self, service_id, version_number, name, comment=None): """Create a domain for a particular service and version.""" body = self._formdata({ "name": name, "comment": comment, }, FastlyDomain.FIELDS) content = self._fetch("/service/%s/version/%d/domain" % (service_id, version_nu...
python
def create_domain(self, service_id, version_number, name, comment=None): """Create a domain for a particular service and version.""" body = self._formdata({ "name": name, "comment": comment, }, FastlyDomain.FIELDS) content = self._fetch("/service/%s/version/%d/domain" % (service_id, version_nu...
[ "def", "create_domain", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ",", "comment", "=", "None", ")", ":", "body", "=", "self", ".", "_formdata", "(", "{", "\"name\"", ":", "name", ",", "\"comment\"", ":", "comment", ",", "}", "...
Create a domain for a particular service and version.
[ "Create", "a", "domain", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L402-L414
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_domain
def get_domain(self, service_id, version_number, name): """Get the domain for a particular service and version.""" content = self._fetch("/service/%s/version/%d/domain/%s" % (service_id, version_number, name)) return FastlyDomain(self, content)
python
def get_domain(self, service_id, version_number, name): """Get the domain for a particular service and version.""" content = self._fetch("/service/%s/version/%d/domain/%s" % (service_id, version_number, name)) return FastlyDomain(self, content)
[ "def", "get_domain", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/domain/%s\"", "%", "(", "service_id", ",", "version_number", ",", "name", ")", ")", "return...
Get the domain for a particular service and version.
[ "Get", "the", "domain", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L417-L420
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_domain
def update_domain(self, service_id, version_number, name_key, **kwargs): """Update the domain for a particular service and version.""" body = self._formdata(kwargs, FastlyDomain.FIELDS) content = self._fetch("/service/%s/version/%d/domain/%s" % (service_id, version_number, name_key), method="PUT", body=body) re...
python
def update_domain(self, service_id, version_number, name_key, **kwargs): """Update the domain for a particular service and version.""" body = self._formdata(kwargs, FastlyDomain.FIELDS) content = self._fetch("/service/%s/version/%d/domain/%s" % (service_id, version_number, name_key), method="PUT", body=body) re...
[ "def", "update_domain", "(", "self", ",", "service_id", ",", "version_number", ",", "name_key", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlyDomain", ".", "FIELDS", ")", "content", "=", "self", ".",...
Update the domain for a particular service and version.
[ "Update", "the", "domain", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L423-L427
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.check_domain
def check_domain(self, service_id, version_number, name): """Checks the status of a domain's DNS record. Returns an array of 3 items. The first is the details for the domain. The second is the current CNAME of the domain. The third is a boolean indicating whether or not it has been properly setup to use Fastly.""" ...
python
def check_domain(self, service_id, version_number, name): """Checks the status of a domain's DNS record. Returns an array of 3 items. The first is the details for the domain. The second is the current CNAME of the domain. The third is a boolean indicating whether or not it has been properly setup to use Fastly.""" ...
[ "def", "check_domain", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/domain/%s/check\"", "%", "(", "service_id", ",", "version_number", ",", "name", ")", ")", ...
Checks the status of a domain's DNS record. Returns an array of 3 items. The first is the details for the domain. The second is the current CNAME of the domain. The third is a boolean indicating whether or not it has been properly setup to use Fastly.
[ "Checks", "the", "status", "of", "a", "domain", "s", "DNS", "record", ".", "Returns", "an", "array", "of", "3", "items", ".", "The", "first", "is", "the", "details", "for", "the", "domain", ".", "The", "second", "is", "the", "current", "CNAME", "of", ...
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L436-L439
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.check_domains
def check_domains(self, service_id, version_number): """Checks the status of all domain DNS records for a Service Version. Returns an array items in the same format as the single domain /check.""" content = self._fetch("/service/%s/version/%d/domain/check_all" % (service_id, version_number)) return map(lambda x: ...
python
def check_domains(self, service_id, version_number): """Checks the status of all domain DNS records for a Service Version. Returns an array items in the same format as the single domain /check.""" content = self._fetch("/service/%s/version/%d/domain/check_all" % (service_id, version_number)) return map(lambda x: ...
[ "def", "check_domains", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/domain/check_all\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "map", "(", "la...
Checks the status of all domain DNS records for a Service Version. Returns an array items in the same format as the single domain /check.
[ "Checks", "the", "status", "of", "all", "domain", "DNS", "records", "for", "a", "Service", "Version", ".", "Returns", "an", "array", "items", "in", "the", "same", "format", "as", "the", "single", "domain", "/", "check", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L442-L445
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_event_log
def get_event_log(self, object_id): """Get the specified event log.""" content = self._fetch("/event_log/%s" % object_id, method="GET") return FastlyEventLog(self, content)
python
def get_event_log(self, object_id): """Get the specified event log.""" content = self._fetch("/event_log/%s" % object_id, method="GET") return FastlyEventLog(self, content)
[ "def", "get_event_log", "(", "self", ",", "object_id", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/event_log/%s\"", "%", "object_id", ",", "method", "=", "\"GET\"", ")", "return", "FastlyEventLog", "(", "self", ",", "content", ")" ]
Get the specified event log.
[ "Get", "the", "specified", "event", "log", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L448-L451
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.list_headers
def list_headers(self, service_id, version_number): """Retrieves all Header objects for a particular Version of a Service.""" content = self._fetch("/service/%s/version/%d/header" % (service_id, version_number)) return map(lambda x: FastlyHeader(self, x), content)
python
def list_headers(self, service_id, version_number): """Retrieves all Header objects for a particular Version of a Service.""" content = self._fetch("/service/%s/version/%d/header" % (service_id, version_number)) return map(lambda x: FastlyHeader(self, x), content)
[ "def", "list_headers", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/header\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "map", "(", "lambda", "x...
Retrieves all Header objects for a particular Version of a Service.
[ "Retrieves", "all", "Header", "objects", "for", "a", "particular", "Version", "of", "a", "Service", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L454-L457
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.create_header
def create_header(self, service_id, version_number, name, destination, source, _type=FastlyHeaderType.RESPONSE, action=FastlyHeaderAction.SET, regex=None, substitution=None, ignore_if_set=None, priority=10, response_condition=None, cache_condition=None, request_condition=None): body = self._formdata({ "name": name...
python
def create_header(self, service_id, version_number, name, destination, source, _type=FastlyHeaderType.RESPONSE, action=FastlyHeaderAction.SET, regex=None, substitution=None, ignore_if_set=None, priority=10, response_condition=None, cache_condition=None, request_condition=None): body = self._formdata({ "name": name...
[ "def", "create_header", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ",", "destination", ",", "source", ",", "_type", "=", "FastlyHeaderType", ".", "RESPONSE", ",", "action", "=", "FastlyHeaderAction", ".", "SET", ",", "regex", "=", "N...
Creates a new Header object.
[ "Creates", "a", "new", "Header", "object", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L460-L477
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_header
def get_header(self, service_id, version_number, name): """Retrieves a Header object by name.""" content = self._fetch("/service/%s/version/%d/header/%s" % (service_id, version_number, name)) return FastlyHeader(self, content)
python
def get_header(self, service_id, version_number, name): """Retrieves a Header object by name.""" content = self._fetch("/service/%s/version/%d/header/%s" % (service_id, version_number, name)) return FastlyHeader(self, content)
[ "def", "get_header", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/header/%s\"", "%", "(", "service_id", ",", "version_number", ",", "name", ")", ")", "return...
Retrieves a Header object by name.
[ "Retrieves", "a", "Header", "object", "by", "name", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L480-L483
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_header
def update_header(self, service_id, version_number, name_key, **kwargs): """Modifies an existing Header object by name.""" body = self._formdata(kwargs, FastlyHeader.FIELDS) content = self._fetch("/service/%s/version/%d/header/%s" % (service_id, version_number, name_key), method="PUT", body=body) return FastlyH...
python
def update_header(self, service_id, version_number, name_key, **kwargs): """Modifies an existing Header object by name.""" body = self._formdata(kwargs, FastlyHeader.FIELDS) content = self._fetch("/service/%s/version/%d/header/%s" % (service_id, version_number, name_key), method="PUT", body=body) return FastlyH...
[ "def", "update_header", "(", "self", ",", "service_id", ",", "version_number", ",", "name_key", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlyHeader", ".", "FIELDS", ")", "content", "=", "self", ".",...
Modifies an existing Header object by name.
[ "Modifies", "an", "existing", "Header", "object", "by", "name", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L486-L490
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.list_healthchecks
def list_healthchecks(self, service_id, version_number): """List all of the healthchecks for a particular service and version.""" content = self._fetch("/service/%s/version/%d/healthcheck" % (service_id, version_number)) return map(lambda x: FastlyHealthCheck(self, x), content)
python
def list_healthchecks(self, service_id, version_number): """List all of the healthchecks for a particular service and version.""" content = self._fetch("/service/%s/version/%d/healthcheck" % (service_id, version_number)) return map(lambda x: FastlyHealthCheck(self, x), content)
[ "def", "list_healthchecks", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/healthcheck\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "map", "(", "lam...
List all of the healthchecks for a particular service and version.
[ "List", "all", "of", "the", "healthchecks", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L499-L502
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.create_healthcheck
def create_healthcheck(self, service_id, version_number, name, host, method="HEAD", path="/", http_version="1.1", timeout=1000, check_interval=5000, expected_response=200, window=5, threshold=3, initial=1): """Create a healthcheck for a particular service and version.""" body = self._form...
python
def create_healthcheck(self, service_id, version_number, name, host, method="HEAD", path="/", http_version="1.1", timeout=1000, check_interval=5000, expected_response=200, window=5, threshold=3, initial=1): """Create a healthcheck for a particular service and version.""" body = self._form...
[ "def", "create_healthcheck", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ",", "host", ",", "method", "=", "\"HEAD\"", ",", "path", "=", "\"/\"", ",", "http_version", "=", "\"1.1\"", ",", "timeout", "=", "1000", ",", "check_interval", ...
Create a healthcheck for a particular service and version.
[ "Create", "a", "healthcheck", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L505-L534
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_healthcheck
def get_healthcheck(self, service_id, version_number, name): """Get the healthcheck for a particular service and version.""" content = self._fetch("/service/%s/version/%d/healthcheck/%s" % (service_id, version_number, name)) return FastlyHealthCheck(self, content)
python
def get_healthcheck(self, service_id, version_number, name): """Get the healthcheck for a particular service and version.""" content = self._fetch("/service/%s/version/%d/healthcheck/%s" % (service_id, version_number, name)) return FastlyHealthCheck(self, content)
[ "def", "get_healthcheck", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/healthcheck/%s\"", "%", "(", "service_id", ",", "version_number", ",", "name", ")", ")",...
Get the healthcheck for a particular service and version.
[ "Get", "the", "healthcheck", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L537-L540
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.purge_url
def purge_url(self, host, path): """Purge an individual URL.""" content = self._fetch(path, method="PURGE", headers={ "Host": host }) return FastlyPurge(self, content)
python
def purge_url(self, host, path): """Purge an individual URL.""" content = self._fetch(path, method="PURGE", headers={ "Host": host }) return FastlyPurge(self, content)
[ "def", "purge_url", "(", "self", ",", "host", ",", "path", ")", ":", "content", "=", "self", ".", "_fetch", "(", "path", ",", "method", "=", "\"PURGE\"", ",", "headers", "=", "{", "\"Host\"", ":", "host", "}", ")", "return", "FastlyPurge", "(", "self...
Purge an individual URL.
[ "Purge", "an", "individual", "URL", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L556-L559
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.check_purge_status
def check_purge_status(self, purge_id): """Get the status and times of a recently completed purge.""" content = self._fetch("/purge?id=%s" % purge_id) return map(lambda x: FastlyPurgeStatus(self, x), content)
python
def check_purge_status(self, purge_id): """Get the status and times of a recently completed purge.""" content = self._fetch("/purge?id=%s" % purge_id) return map(lambda x: FastlyPurgeStatus(self, x), content)
[ "def", "check_purge_status", "(", "self", ",", "purge_id", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/purge?id=%s\"", "%", "purge_id", ")", "return", "map", "(", "lambda", "x", ":", "FastlyPurgeStatus", "(", "self", ",", "x", ")", ",", "co...
Get the status and times of a recently completed purge.
[ "Get", "the", "status", "and", "times", "of", "a", "recently", "completed", "purge", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L562-L565
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.list_request_settings
def list_request_settings(self, service_id, version_number): """Returns a list of all Request Settings objects for the given service and version.""" content = self._fetch("/service/%s/version/%d/request_settings" % (service_id, version_number)) return map(lambda x: FastlyRequestSetting(self, x), content)
python
def list_request_settings(self, service_id, version_number): """Returns a list of all Request Settings objects for the given service and version.""" content = self._fetch("/service/%s/version/%d/request_settings" % (service_id, version_number)) return map(lambda x: FastlyRequestSetting(self, x), content)
[ "def", "list_request_settings", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/request_settings\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "map", "(...
Returns a list of all Request Settings objects for the given service and version.
[ "Returns", "a", "list", "of", "all", "Request", "Settings", "objects", "for", "the", "given", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L568-L571
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.create_request_setting
def create_request_setting(self, service_id, version_number, name, default_host=None, force_miss=None, force_ssl=None, action=None, bypass_busy_wait=None, max_stale_age=None, hash_keys=None, xff=None, timer_support=None, geo_headers=None, request_condition=None): """Creates a new Request S...
python
def create_request_setting(self, service_id, version_number, name, default_host=None, force_miss=None, force_ssl=None, action=None, bypass_busy_wait=None, max_stale_age=None, hash_keys=None, xff=None, timer_support=None, geo_headers=None, request_condition=None): """Creates a new Request S...
[ "def", "create_request_setting", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ",", "default_host", "=", "None", ",", "force_miss", "=", "None", ",", "force_ssl", "=", "None", ",", "action", "=", "None", ",", "bypass_busy_wait", "=", "N...
Creates a new Request Settings object.
[ "Creates", "a", "new", "Request", "Settings", "object", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L574-L605
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_request_setting
def get_request_setting(self, service_id, version_number, name): """Gets the specified Request Settings object.""" content = self._fetch("/service/%s/version/%d/request_settings/%s" % (service_id, version_number, name)) return FastlyRequestSetting(self, content)
python
def get_request_setting(self, service_id, version_number, name): """Gets the specified Request Settings object.""" content = self._fetch("/service/%s/version/%d/request_settings/%s" % (service_id, version_number, name)) return FastlyRequestSetting(self, content)
[ "def", "get_request_setting", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/request_settings/%s\"", "%", "(", "service_id", ",", "version_number", ",", "name", ")...
Gets the specified Request Settings object.
[ "Gets", "the", "specified", "Request", "Settings", "object", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L608-L611
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_request_setting
def update_request_setting(self, service_id, version_number, name_key, **kwargs): """Updates the specified Request Settings object.""" body = self._formdata(kwargs, FastlyHealthCheck.FIELDS) content = self._fetch("/service/%s/version/%d/request_settings/%s" % (service_id, version_number, name_key), method="PUT", ...
python
def update_request_setting(self, service_id, version_number, name_key, **kwargs): """Updates the specified Request Settings object.""" body = self._formdata(kwargs, FastlyHealthCheck.FIELDS) content = self._fetch("/service/%s/version/%d/request_settings/%s" % (service_id, version_number, name_key), method="PUT", ...
[ "def", "update_request_setting", "(", "self", ",", "service_id", ",", "version_number", ",", "name_key", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlyHealthCheck", ".", "FIELDS", ")", "content", "=", ...
Updates the specified Request Settings object.
[ "Updates", "the", "specified", "Request", "Settings", "object", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L614-L618
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.list_response_objects
def list_response_objects(self, service_id, version_number): """Returns all Response Objects for the specified service and version.""" content = self._fetch("/service/%s/version/%d/response_object" % (service_id, version_number)) return map(lambda x: FastlyResponseObject(self, x), content)
python
def list_response_objects(self, service_id, version_number): """Returns all Response Objects for the specified service and version.""" content = self._fetch("/service/%s/version/%d/response_object" % (service_id, version_number)) return map(lambda x: FastlyResponseObject(self, x), content)
[ "def", "list_response_objects", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/response_object\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "map", "("...
Returns all Response Objects for the specified service and version.
[ "Returns", "all", "Response", "Objects", "for", "the", "specified", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L627-L630
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.create_response_object
def create_response_object(self, service_id, version_number, name, status="200", response="OK", content="", request_condition=None, cache_condition=None): """Creates a new Response Object.""" body = self._formdata({ "name": name, "status": status, "response": response, "content": content, "request_co...
python
def create_response_object(self, service_id, version_number, name, status="200", response="OK", content="", request_condition=None, cache_condition=None): """Creates a new Response Object.""" body = self._formdata({ "name": name, "status": status, "response": response, "content": content, "request_co...
[ "def", "create_response_object", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ",", "status", "=", "\"200\"", ",", "response", "=", "\"OK\"", ",", "content", "=", "\"\"", ",", "request_condition", "=", "None", ",", "cache_condition", "=",...
Creates a new Response Object.
[ "Creates", "a", "new", "Response", "Object", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L633-L644
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_response_object
def get_response_object(self, service_id, version_number, name): """Gets the specified Response Object.""" content = self._fetch("/service/%s/version/%d/response_object/%s" % (service_id, version_number, name)) return FastlyResponseObject(self, content)
python
def get_response_object(self, service_id, version_number, name): """Gets the specified Response Object.""" content = self._fetch("/service/%s/version/%d/response_object/%s" % (service_id, version_number, name)) return FastlyResponseObject(self, content)
[ "def", "get_response_object", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/response_object/%s\"", "%", "(", "service_id", ",", "version_number", ",", "name", ")"...
Gets the specified Response Object.
[ "Gets", "the", "specified", "Response", "Object", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L647-L650
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_response_object
def update_response_object(self, service_id, version_number, name_key, **kwargs): """Updates the specified Response Object.""" body = self._formdata(kwargs, FastlyResponseObject.FIELDS) content = self._fetch("/service/%s/version/%d/response_object/%s" % (service_id, version_number, name_key), method="PUT", body=b...
python
def update_response_object(self, service_id, version_number, name_key, **kwargs): """Updates the specified Response Object.""" body = self._formdata(kwargs, FastlyResponseObject.FIELDS) content = self._fetch("/service/%s/version/%d/response_object/%s" % (service_id, version_number, name_key), method="PUT", body=b...
[ "def", "update_response_object", "(", "self", ",", "service_id", ",", "version_number", ",", "name_key", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlyResponseObject", ".", "FIELDS", ")", "content", "=",...
Updates the specified Response Object.
[ "Updates", "the", "specified", "Response", "Object", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L653-L657
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.create_service
def create_service(self, customer_id, name, publish_key=None, comment=None): """Create a service.""" body = self._formdata({ "customer_id": customer_id, "name": name, "publish_key": publish_key, "comment": comment, }, FastlyService.FIELDS) content = self._fetch("/service", method="POST", body=body) ...
python
def create_service(self, customer_id, name, publish_key=None, comment=None): """Create a service.""" body = self._formdata({ "customer_id": customer_id, "name": name, "publish_key": publish_key, "comment": comment, }, FastlyService.FIELDS) content = self._fetch("/service", method="POST", body=body) ...
[ "def", "create_service", "(", "self", ",", "customer_id", ",", "name", ",", "publish_key", "=", "None", ",", "comment", "=", "None", ")", ":", "body", "=", "self", ".", "_formdata", "(", "{", "\"customer_id\"", ":", "customer_id", ",", "\"name\"", ":", "...
Create a service.
[ "Create", "a", "service", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L666-L675
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.list_services
def list_services(self): """List Services.""" content = self._fetch("/service") return map(lambda x: FastlyService(self, x), content)
python
def list_services(self): """List Services.""" content = self._fetch("/service") return map(lambda x: FastlyService(self, x), content)
[ "def", "list_services", "(", "self", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service\"", ")", "return", "map", "(", "lambda", "x", ":", "FastlyService", "(", "self", ",", "x", ")", ",", "content", ")" ]
List Services.
[ "List", "Services", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L678-L681
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_service
def get_service(self, service_id): """Get a specific service by id.""" content = self._fetch("/service/%s" % service_id) return FastlyService(self, content)
python
def get_service(self, service_id): """Get a specific service by id.""" content = self._fetch("/service/%s" % service_id) return FastlyService(self, content)
[ "def", "get_service", "(", "self", ",", "service_id", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s\"", "%", "service_id", ")", "return", "FastlyService", "(", "self", ",", "content", ")" ]
Get a specific service by id.
[ "Get", "a", "specific", "service", "by", "id", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L684-L687
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_service_details
def get_service_details(self, service_id): """List detailed information on a specified service.""" content = self._fetch("/service/%s/details" % service_id) return FastlyService(self, content)
python
def get_service_details(self, service_id): """List detailed information on a specified service.""" content = self._fetch("/service/%s/details" % service_id) return FastlyService(self, content)
[ "def", "get_service_details", "(", "self", ",", "service_id", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/details\"", "%", "service_id", ")", "return", "FastlyService", "(", "self", ",", "content", ")" ]
List detailed information on a specified service.
[ "List", "detailed", "information", "on", "a", "specified", "service", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L690-L693
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_service_by_name
def get_service_by_name(self, service_name): """Get a specific service by name.""" content = self._fetch("/service/search?name=%s" % service_name) return FastlyService(self, content)
python
def get_service_by_name(self, service_name): """Get a specific service by name.""" content = self._fetch("/service/search?name=%s" % service_name) return FastlyService(self, content)
[ "def", "get_service_by_name", "(", "self", ",", "service_name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/search?name=%s\"", "%", "service_name", ")", "return", "FastlyService", "(", "self", ",", "content", ")" ]
Get a specific service by name.
[ "Get", "a", "specific", "service", "by", "name", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L696-L699
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_service
def update_service(self, service_id, **kwargs): """Update a service.""" body = self._formdata(kwargs, FastlyService.FIELDS) content = self._fetch("/service/%s" % service_id, method="PUT", body=body) return FastlyService(self, content)
python
def update_service(self, service_id, **kwargs): """Update a service.""" body = self._formdata(kwargs, FastlyService.FIELDS) content = self._fetch("/service/%s" % service_id, method="PUT", body=body) return FastlyService(self, content)
[ "def", "update_service", "(", "self", ",", "service_id", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlyService", ".", "FIELDS", ")", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s\"", "%"...
Update a service.
[ "Update", "a", "service", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L702-L706
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.delete_service
def delete_service(self, service_id): """Delete a service.""" content = self._fetch("/service/%s" % service_id, method="DELETE") return self._status(content)
python
def delete_service(self, service_id): """Delete a service.""" content = self._fetch("/service/%s" % service_id, method="DELETE") return self._status(content)
[ "def", "delete_service", "(", "self", ",", "service_id", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s\"", "%", "service_id", ",", "method", "=", "\"DELETE\"", ")", "return", "self", ".", "_status", "(", "content", ")" ]
Delete a service.
[ "Delete", "a", "service", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L709-L712
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.list_domains_by_service
def list_domains_by_service(self, service_id): """List the domains within a service.""" content = self._fetch("/service/%s/domain" % service_id, method="GET") return map(lambda x: FastlyDomain(self, x), content)
python
def list_domains_by_service(self, service_id): """List the domains within a service.""" content = self._fetch("/service/%s/domain" % service_id, method="GET") return map(lambda x: FastlyDomain(self, x), content)
[ "def", "list_domains_by_service", "(", "self", ",", "service_id", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/domain\"", "%", "service_id", ",", "method", "=", "\"GET\"", ")", "return", "map", "(", "lambda", "x", ":", "FastlyDomain", ...
List the domains within a service.
[ "List", "the", "domains", "within", "a", "service", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L715-L718
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.purge_service
def purge_service(self, service_id): """Purge everything from a service.""" content = self._fetch("/service/%s/purge_all" % service_id, method="POST") return self._status(content)
python
def purge_service(self, service_id): """Purge everything from a service.""" content = self._fetch("/service/%s/purge_all" % service_id, method="POST") return self._status(content)
[ "def", "purge_service", "(", "self", ",", "service_id", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/purge_all\"", "%", "service_id", ",", "method", "=", "\"POST\"", ")", "return", "self", ".", "_status", "(", "content", ")" ]
Purge everything from a service.
[ "Purge", "everything", "from", "a", "service", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L721-L724
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.purge_service_by_key
def purge_service_by_key(self, service_id, key): """Purge a particular service by a key.""" content = self._fetch("/service/%s/purge/%s" % (service_id, key), method="POST") return self._status(content)
python
def purge_service_by_key(self, service_id, key): """Purge a particular service by a key.""" content = self._fetch("/service/%s/purge/%s" % (service_id, key), method="POST") return self._status(content)
[ "def", "purge_service_by_key", "(", "self", ",", "service_id", ",", "key", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/purge/%s\"", "%", "(", "service_id", ",", "key", ")", ",", "method", "=", "\"POST\"", ")", "return", "self", "."...
Purge a particular service by a key.
[ "Purge", "a", "particular", "service", "by", "a", "key", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L727-L730
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_settings
def get_settings(self, service_id, version_number): """Get the settings for a particular service and version.""" content = self._fetch("/service/%s/version/%d/settings" % (service_id, version_number)) return FastlySettings(self, content)
python
def get_settings(self, service_id, version_number): """Get the settings for a particular service and version.""" content = self._fetch("/service/%s/version/%d/settings" % (service_id, version_number)) return FastlySettings(self, content)
[ "def", "get_settings", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/settings\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "FastlySettings", "(", "...
Get the settings for a particular service and version.
[ "Get", "the", "settings", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L733-L736
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_settings
def update_settings(self, service_id, version_number, settings={}): """Update the settings for a particular service and version.""" body = urllib.urlencode(settings) content = self._fetch("/service/%s/version/%d/settings" % (service_id, version_number), method="PUT", body=body) return FastlySettings(self, conte...
python
def update_settings(self, service_id, version_number, settings={}): """Update the settings for a particular service and version.""" body = urllib.urlencode(settings) content = self._fetch("/service/%s/version/%d/settings" % (service_id, version_number), method="PUT", body=body) return FastlySettings(self, conte...
[ "def", "update_settings", "(", "self", ",", "service_id", ",", "version_number", ",", "settings", "=", "{", "}", ")", ":", "body", "=", "urllib", ".", "urlencode", "(", "settings", ")", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/se...
Update the settings for a particular service and version.
[ "Update", "the", "settings", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L739-L743
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_stats
def get_stats(self, service_id, stat_type=FastlyStatsType.ALL): """Get the stats from a service.""" content = self._fetch("/service/%s/stats/%s" % (service_id, stat_type)) return content
python
def get_stats(self, service_id, stat_type=FastlyStatsType.ALL): """Get the stats from a service.""" content = self._fetch("/service/%s/stats/%s" % (service_id, stat_type)) return content
[ "def", "get_stats", "(", "self", ",", "service_id", ",", "stat_type", "=", "FastlyStatsType", ".", "ALL", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/stats/%s\"", "%", "(", "service_id", ",", "stat_type", ")", ")", "return", "content...
Get the stats from a service.
[ "Get", "the", "stats", "from", "a", "service", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L746-L749
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.list_syslogs
def list_syslogs(self, service_id, version_number): """List all of the Syslogs for a particular service and version.""" content = self._fetch("/service/%s/version/%d/syslog" % (service_id, version_number)) return map(lambda x: FastlySyslog(self, x), content)
python
def list_syslogs(self, service_id, version_number): """List all of the Syslogs for a particular service and version.""" content = self._fetch("/service/%s/version/%d/syslog" % (service_id, version_number)) return map(lambda x: FastlySyslog(self, x), content)
[ "def", "list_syslogs", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/syslog\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "map", "(", "lambda", "x...
List all of the Syslogs for a particular service and version.
[ "List", "all", "of", "the", "Syslogs", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L752-L755
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.create_syslog
def create_syslog(self, service_id, version_number, name, address, port=514, use_tls="0", tls_ca_cert=None, token=None, _format=None, response_condition=None): """Create a Syslog for a particular service and version.""" body = self._formdata({ "name": name, "address": address, "port": p...
python
def create_syslog(self, service_id, version_number, name, address, port=514, use_tls="0", tls_ca_cert=None, token=None, _format=None, response_condition=None): """Create a Syslog for a particular service and version.""" body = self._formdata({ "name": name, "address": address, "port": p...
[ "def", "create_syslog", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ",", "address", ",", "port", "=", "514", ",", "use_tls", "=", "\"0\"", ",", "tls_ca_cert", "=", "None", ",", "token", "=", "None", ",", "_format", "=", "None", ...
Create a Syslog for a particular service and version.
[ "Create", "a", "Syslog", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L758-L781
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_syslog
def get_syslog(self, service_id, version_number, name): """Get the Syslog for a particular service and version.""" content = self._fetch("/service/%s/version/%d/syslog/%s" % (service_id, version_number, name)) return FastlySyslog(self, content)
python
def get_syslog(self, service_id, version_number, name): """Get the Syslog for a particular service and version.""" content = self._fetch("/service/%s/version/%d/syslog/%s" % (service_id, version_number, name)) return FastlySyslog(self, content)
[ "def", "get_syslog", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/syslog/%s\"", "%", "(", "service_id", ",", "version_number", ",", "name", ")", ")", "return...
Get the Syslog for a particular service and version.
[ "Get", "the", "Syslog", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L784-L787
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_syslog
def update_syslog(self, service_id, version_number, name_key, **kwargs): """Update the Syslog for a particular service and version.""" body = self._formdata(kwargs, FastlySyslog.FIELDS) content = self._fetch("/service/%s/version/%d/syslog/%s" % (service_id, version_number, name_key), method="PUT", body=body) re...
python
def update_syslog(self, service_id, version_number, name_key, **kwargs): """Update the Syslog for a particular service and version.""" body = self._formdata(kwargs, FastlySyslog.FIELDS) content = self._fetch("/service/%s/version/%d/syslog/%s" % (service_id, version_number, name_key), method="PUT", body=body) re...
[ "def", "update_syslog", "(", "self", ",", "service_id", ",", "version_number", ",", "name_key", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlySyslog", ".", "FIELDS", ")", "content", "=", "self", ".",...
Update the Syslog for a particular service and version.
[ "Update", "the", "Syslog", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L790-L794
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.change_password
def change_password(self, old_password, new_password): """Update the user's password to a new one.""" body = self._formdata({ "old_password": old_password, "password": new_password, }, ["old_password", "password"]) content = self._fetch("/current_user/password", method="POST", body=body) return FastlyUs...
python
def change_password(self, old_password, new_password): """Update the user's password to a new one.""" body = self._formdata({ "old_password": old_password, "password": new_password, }, ["old_password", "password"]) content = self._fetch("/current_user/password", method="POST", body=body) return FastlyUs...
[ "def", "change_password", "(", "self", ",", "old_password", ",", "new_password", ")", ":", "body", "=", "self", ".", "_formdata", "(", "{", "\"old_password\"", ":", "old_password", ",", "\"password\"", ":", "new_password", ",", "}", ",", "[", "\"old_password\"...
Update the user's password to a new one.
[ "Update", "the", "user", "s", "password", "to", "a", "new", "one", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L803-L810
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_user
def get_user(self, user_id): """Get a specific user.""" content = self._fetch("/user/%s" % user_id) return FastlyUser(self, content)
python
def get_user(self, user_id): """Get a specific user.""" content = self._fetch("/user/%s" % user_id) return FastlyUser(self, content)
[ "def", "get_user", "(", "self", ",", "user_id", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/user/%s\"", "%", "user_id", ")", "return", "FastlyUser", "(", "self", ",", "content", ")" ]
Get a specific user.
[ "Get", "a", "specific", "user", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L819-L822
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.create_user
def create_user(self, customer_id, name, login, password, role=FastlyRoles.USER, require_new_password=True): """Create a user.""" body = self._formdata({ "customer_id": customer_id, "name": name, "login": login, "password": password, "role": role, "require_new_password": require_new_password, },...
python
def create_user(self, customer_id, name, login, password, role=FastlyRoles.USER, require_new_password=True): """Create a user.""" body = self._formdata({ "customer_id": customer_id, "name": name, "login": login, "password": password, "role": role, "require_new_password": require_new_password, },...
[ "def", "create_user", "(", "self", ",", "customer_id", ",", "name", ",", "login", ",", "password", ",", "role", "=", "FastlyRoles", ".", "USER", ",", "require_new_password", "=", "True", ")", ":", "body", "=", "self", ".", "_formdata", "(", "{", "\"custo...
Create a user.
[ "Create", "a", "user", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L825-L836
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_user
def update_user(self, user_id, **kwargs): """Update a user.""" body = self._formdata(kwargs, FastlyUser.FIELDS) content = self._fetch("/user/%s" % user_id, method="PUT", body=body) return FastlyUser(self, content)
python
def update_user(self, user_id, **kwargs): """Update a user.""" body = self._formdata(kwargs, FastlyUser.FIELDS) content = self._fetch("/user/%s" % user_id, method="PUT", body=body) return FastlyUser(self, content)
[ "def", "update_user", "(", "self", ",", "user_id", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlyUser", ".", "FIELDS", ")", "content", "=", "self", ".", "_fetch", "(", "\"/user/%s\"", "%", "user_id...
Update a user.
[ "Update", "a", "user", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L839-L843
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.delete_user
def delete_user(self, user_id): """Delete a user.""" content = self._fetch("/user/%s" % user_id, method="DELETE") return self._status(content)
python
def delete_user(self, user_id): """Delete a user.""" content = self._fetch("/user/%s" % user_id, method="DELETE") return self._status(content)
[ "def", "delete_user", "(", "self", ",", "user_id", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/user/%s\"", "%", "user_id", ",", "method", "=", "\"DELETE\"", ")", "return", "self", ".", "_status", "(", "content", ")" ]
Delete a user.
[ "Delete", "a", "user", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L846-L849
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.request_password_reset
def request_password_reset(self, user_id): """Requests a password reset for the specified user.""" content = self._fetch("/user/%s/password/request_reset" % (user_id), method="POST") return FastlyUser(self, content)
python
def request_password_reset(self, user_id): """Requests a password reset for the specified user.""" content = self._fetch("/user/%s/password/request_reset" % (user_id), method="POST") return FastlyUser(self, content)
[ "def", "request_password_reset", "(", "self", ",", "user_id", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/user/%s/password/request_reset\"", "%", "(", "user_id", ")", ",", "method", "=", "\"POST\"", ")", "return", "FastlyUser", "(", "self", ",", ...
Requests a password reset for the specified user.
[ "Requests", "a", "password", "reset", "for", "the", "specified", "user", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L852-L855
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.list_vcls
def list_vcls(self, service_id, version_number): """List the uploaded VCLs for a particular service and version.""" content = self._fetch("/service/%s/version/%d/vcl" % (service_id, version_number)) return map(lambda x: FastlyVCL(self, x), content)
python
def list_vcls(self, service_id, version_number): """List the uploaded VCLs for a particular service and version.""" content = self._fetch("/service/%s/version/%d/vcl" % (service_id, version_number)) return map(lambda x: FastlyVCL(self, x), content)
[ "def", "list_vcls", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/vcl\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "map", "(", "lambda", "x", "...
List the uploaded VCLs for a particular service and version.
[ "List", "the", "uploaded", "VCLs", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L858-L861
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.upload_vcl
def upload_vcl(self, service_id, version_number, name, content, main=None, comment=None): """Upload a VCL for a particular service and version.""" body = self._formdata({ "name": name, "content": content, "comment": comment, "main": main, }, FastlyVCL.FIELDS) content = self._fetch("/service/%s/versi...
python
def upload_vcl(self, service_id, version_number, name, content, main=None, comment=None): """Upload a VCL for a particular service and version.""" body = self._formdata({ "name": name, "content": content, "comment": comment, "main": main, }, FastlyVCL.FIELDS) content = self._fetch("/service/%s/versi...
[ "def", "upload_vcl", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ",", "content", ",", "main", "=", "None", ",", "comment", "=", "None", ")", ":", "body", "=", "self", ".", "_formdata", "(", "{", "\"name\"", ":", "name", ",", "...
Upload a VCL for a particular service and version.
[ "Upload", "a", "VCL", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L864-L873
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_vcl
def get_vcl(self, service_id, version_number, name, include_content=True): """Get the uploaded VCL for a particular service and version.""" content = self._fetch("/service/%s/version/%d/vcl/%s?include_content=%d" % (service_id, version_number, name, int(include_content))) return FastlyVCL(self, content)
python
def get_vcl(self, service_id, version_number, name, include_content=True): """Get the uploaded VCL for a particular service and version.""" content = self._fetch("/service/%s/version/%d/vcl/%s?include_content=%d" % (service_id, version_number, name, int(include_content))) return FastlyVCL(self, content)
[ "def", "get_vcl", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ",", "include_content", "=", "True", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/vcl/%s?include_content=%d\"", "%", "(", "service_id", ",", ...
Get the uploaded VCL for a particular service and version.
[ "Get", "the", "uploaded", "VCL", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L882-L885
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_vcl_html
def get_vcl_html(self, service_id, version_number, name): """Get the uploaded VCL for a particular service and version with HTML syntax highlighting.""" content = self._fetch("/service/%s/version/%d/vcl/%s/content" % (service_id, version_number, name)) return content.get("content", None)
python
def get_vcl_html(self, service_id, version_number, name): """Get the uploaded VCL for a particular service and version with HTML syntax highlighting.""" content = self._fetch("/service/%s/version/%d/vcl/%s/content" % (service_id, version_number, name)) return content.get("content", None)
[ "def", "get_vcl_html", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/vcl/%s/content\"", "%", "(", "service_id", ",", "version_number", ",", "name", ")", ")", ...
Get the uploaded VCL for a particular service and version with HTML syntax highlighting.
[ "Get", "the", "uploaded", "VCL", "for", "a", "particular", "service", "and", "version", "with", "HTML", "syntax", "highlighting", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L888-L891
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_generated_vcl
def get_generated_vcl(self, service_id, version_number): """Display the generated VCL for a particular service and version.""" content = self._fetch("/service/%s/version/%d/generated_vcl" % (service_id, version_number)) return FastlyVCL(self, content)
python
def get_generated_vcl(self, service_id, version_number): """Display the generated VCL for a particular service and version.""" content = self._fetch("/service/%s/version/%d/generated_vcl" % (service_id, version_number)) return FastlyVCL(self, content)
[ "def", "get_generated_vcl", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/generated_vcl\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "FastlyVCL", "("...
Display the generated VCL for a particular service and version.
[ "Display", "the", "generated", "VCL", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L894-L897
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_generated_vcl_html
def get_generated_vcl_html(self, service_id, version_number): """Display the content of generated VCL with HTML syntax highlighting.""" content = self._fetch("/service/%s/version/%d/generated_vcl/content" % (service_id, version_number)) return content.get("content", None)
python
def get_generated_vcl_html(self, service_id, version_number): """Display the content of generated VCL with HTML syntax highlighting.""" content = self._fetch("/service/%s/version/%d/generated_vcl/content" % (service_id, version_number)) return content.get("content", None)
[ "def", "get_generated_vcl_html", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/generated_vcl/content\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "cont...
Display the content of generated VCL with HTML syntax highlighting.
[ "Display", "the", "content", "of", "generated", "VCL", "with", "HTML", "syntax", "highlighting", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L900-L903
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.set_main_vcl
def set_main_vcl(self, service_id, version_number, name): """Set the specified VCL as the main.""" content = self._fetch("/service/%s/version/%d/vcl/%s/main" % (service_id, version_number, name), method="PUT") return FastlyVCL(self, content)
python
def set_main_vcl(self, service_id, version_number, name): """Set the specified VCL as the main.""" content = self._fetch("/service/%s/version/%d/vcl/%s/main" % (service_id, version_number, name), method="PUT") return FastlyVCL(self, content)
[ "def", "set_main_vcl", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/vcl/%s/main\"", "%", "(", "service_id", ",", "version_number", ",", "name", ")", ",", "me...
Set the specified VCL as the main.
[ "Set", "the", "specified", "VCL", "as", "the", "main", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L906-L909
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_vcl
def update_vcl(self, service_id, version_number, name_key, **kwargs): """Update the uploaded VCL for a particular service and version.""" body = self._formdata(kwargs, FastlyVCL.FIELDS) content = self._fetch("/service/%s/version/%d/vcl/%s" % (service_id, version_number, name_key), method="PUT", body=body) retur...
python
def update_vcl(self, service_id, version_number, name_key, **kwargs): """Update the uploaded VCL for a particular service and version.""" body = self._formdata(kwargs, FastlyVCL.FIELDS) content = self._fetch("/service/%s/version/%d/vcl/%s" % (service_id, version_number, name_key), method="PUT", body=body) retur...
[ "def", "update_vcl", "(", "self", ",", "service_id", ",", "version_number", ",", "name_key", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlyVCL", ".", "FIELDS", ")", "content", "=", "self", ".", "_f...
Update the uploaded VCL for a particular service and version.
[ "Update", "the", "uploaded", "VCL", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L912-L916
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.create_version
def create_version(self, service_id, inherit_service_id=None, comment=None): """Create a version for a particular service.""" body = self._formdata({ "service_id": service_id, "inherit_service_id": inherit_service_id, "comment": comment, }, FastlyVersion.FIELDS) content = self._fetch("/service/%s/versi...
python
def create_version(self, service_id, inherit_service_id=None, comment=None): """Create a version for a particular service.""" body = self._formdata({ "service_id": service_id, "inherit_service_id": inherit_service_id, "comment": comment, }, FastlyVersion.FIELDS) content = self._fetch("/service/%s/versi...
[ "def", "create_version", "(", "self", ",", "service_id", ",", "inherit_service_id", "=", "None", ",", "comment", "=", "None", ")", ":", "body", "=", "self", ".", "_formdata", "(", "{", "\"service_id\"", ":", "service_id", ",", "\"inherit_service_id\"", ":", ...
Create a version for a particular service.
[ "Create", "a", "version", "for", "a", "particular", "service", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L925-L933
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_version
def get_version(self, service_id, version_number): """Get the version for a particular service.""" content = self._fetch("/service/%s/version/%d" % (service_id, version_number)) return FastlyVersion(self, content)
python
def get_version(self, service_id, version_number): """Get the version for a particular service.""" content = self._fetch("/service/%s/version/%d" % (service_id, version_number)) return FastlyVersion(self, content)
[ "def", "get_version", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "FastlyVersion", "(", "self", ",...
Get the version for a particular service.
[ "Get", "the", "version", "for", "a", "particular", "service", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L941-L944
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_version
def update_version(self, service_id, version_number, **kwargs): """Update a particular version for a particular service.""" body = self._formdata(kwargs, FastlyVersion.FIELDS) content = self._fetch("/service/%s/version/%d/" % (service_id, version_number), method="PUT", body=body) return FastlyVersion(self, cont...
python
def update_version(self, service_id, version_number, **kwargs): """Update a particular version for a particular service.""" body = self._formdata(kwargs, FastlyVersion.FIELDS) content = self._fetch("/service/%s/version/%d/" % (service_id, version_number), method="PUT", body=body) return FastlyVersion(self, cont...
[ "def", "update_version", "(", "self", ",", "service_id", ",", "version_number", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlyVersion", ".", "FIELDS", ")", "content", "=", "self", ".", "_fetch", "(",...
Update a particular version for a particular service.
[ "Update", "a", "particular", "version", "for", "a", "particular", "service", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L946-L950
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.clone_version
def clone_version(self, service_id, version_number): """Clone the current configuration into a new version.""" content = self._fetch("/service/%s/version/%d/clone" % (service_id, version_number), method="PUT") return FastlyVersion(self, content)
python
def clone_version(self, service_id, version_number): """Clone the current configuration into a new version.""" content = self._fetch("/service/%s/version/%d/clone" % (service_id, version_number), method="PUT") return FastlyVersion(self, content)
[ "def", "clone_version", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/clone\"", "%", "(", "service_id", ",", "version_number", ")", ",", "method", "=", "\"PUT\"", ")", "re...
Clone the current configuration into a new version.
[ "Clone", "the", "current", "configuration", "into", "a", "new", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L953-L956
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.activate_version
def activate_version(self, service_id, version_number): """Activate the current version.""" content = self._fetch("/service/%s/version/%d/activate" % (service_id, version_number), method="PUT") return FastlyVersion(self, content)
python
def activate_version(self, service_id, version_number): """Activate the current version.""" content = self._fetch("/service/%s/version/%d/activate" % (service_id, version_number), method="PUT") return FastlyVersion(self, content)
[ "def", "activate_version", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/activate\"", "%", "(", "service_id", ",", "version_number", ")", ",", "method", "=", "\"PUT\"", ")",...
Activate the current version.
[ "Activate", "the", "current", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L959-L962
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.deactivate_version
def deactivate_version(self, service_id, version_number): """Deactivate the current version.""" content = self._fetch("/service/%s/version/%d/deactivate" % (service_id, version_number), method="PUT") return FastlyVersion(self, content)
python
def deactivate_version(self, service_id, version_number): """Deactivate the current version.""" content = self._fetch("/service/%s/version/%d/deactivate" % (service_id, version_number), method="PUT") return FastlyVersion(self, content)
[ "def", "deactivate_version", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/deactivate\"", "%", "(", "service_id", ",", "version_number", ")", ",", "method", "=", "\"PUT\"", ...
Deactivate the current version.
[ "Deactivate", "the", "current", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L965-L968
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.validate_version
def validate_version(self, service_id, version_number): """Validate the version for a particular service and version.""" content = self._fetch("/service/%s/version/%d/validate" % (service_id, version_number)) return self._status(content)
python
def validate_version(self, service_id, version_number): """Validate the version for a particular service and version.""" content = self._fetch("/service/%s/version/%d/validate" % (service_id, version_number)) return self._status(content)
[ "def", "validate_version", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/validate\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "self", ".", "_statu...
Validate the version for a particular service and version.
[ "Validate", "the", "version", "for", "a", "particular", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L971-L974
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.lock_version
def lock_version(self, service_id, version_number): """Locks the specified version.""" content = self._fetch("/service/%s/version/%d/lock" % (service_id, version_number)) return self._status(content)
python
def lock_version(self, service_id, version_number): """Locks the specified version.""" content = self._fetch("/service/%s/version/%d/lock" % (service_id, version_number)) return self._status(content)
[ "def", "lock_version", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/lock\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "self", ".", "_status", "(...
Locks the specified version.
[ "Locks", "the", "specified", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L977-L980
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.list_wordpressess
def list_wordpressess(self, service_id, version_number): """Get all of the wordpresses for a specified service and version.""" content = self._fetch("/service/%s/version/%d/wordpress" % (service_id, version_number)) return map(lambda x: FastlyWordpress(self, x), content)
python
def list_wordpressess(self, service_id, version_number): """Get all of the wordpresses for a specified service and version.""" content = self._fetch("/service/%s/version/%d/wordpress" % (service_id, version_number)) return map(lambda x: FastlyWordpress(self, x), content)
[ "def", "list_wordpressess", "(", "self", ",", "service_id", ",", "version_number", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/wordpress\"", "%", "(", "service_id", ",", "version_number", ")", ")", "return", "map", "(", "lambd...
Get all of the wordpresses for a specified service and version.
[ "Get", "all", "of", "the", "wordpresses", "for", "a", "specified", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L983-L986
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.create_wordpress
def create_wordpress(self, service_id, version_number, name, path, comment=None): """Create a wordpress for the specified service and version.""" body = self._formdata({ "name": name, "path": path, "comment": comment, }, FastlyWordpress.FIELDS) content = self._fetch("/service/%s/version/%d/wo...
python
def create_wordpress(self, service_id, version_number, name, path, comment=None): """Create a wordpress for the specified service and version.""" body = self._formdata({ "name": name, "path": path, "comment": comment, }, FastlyWordpress.FIELDS) content = self._fetch("/service/%s/version/%d/wo...
[ "def", "create_wordpress", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ",", "path", ",", "comment", "=", "None", ")", ":", "body", "=", "self", ".", "_formdata", "(", "{", "\"name\"", ":", "name", ",", "\"path\"", ":", "path", "...
Create a wordpress for the specified service and version.
[ "Create", "a", "wordpress", "for", "the", "specified", "service", "and", "version", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L989-L1002
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.get_wordpress
def get_wordpress(self, service_id, version_number, name): """Get information on a specific wordpress.""" content = self._fetch("/service/%s/version/%d/wordpress/%s" % (service_id, version_number, name)) return FastlyWordpress(self, content)
python
def get_wordpress(self, service_id, version_number, name): """Get information on a specific wordpress.""" content = self._fetch("/service/%s/version/%d/wordpress/%s" % (service_id, version_number, name)) return FastlyWordpress(self, content)
[ "def", "get_wordpress", "(", "self", ",", "service_id", ",", "version_number", ",", "name", ")", ":", "content", "=", "self", ".", "_fetch", "(", "\"/service/%s/version/%d/wordpress/%s\"", "%", "(", "service_id", ",", "version_number", ",", "name", ")", ")", "...
Get information on a specific wordpress.
[ "Get", "information", "on", "a", "specific", "wordpress", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L1005-L1008
train
obulpathi/cdn-fastly-python
fastly/__init__.py
FastlyConnection.update_wordpress
def update_wordpress(self, service_id, version_number, name_key, **kwargs): """Update a specified wordpress.""" body = self._formdata(kwargs, FastlyWordpress.FIELDS) content = self._fetch("/service/%s/version/%d/wordpress/%s" % (service_id, version_number, name_key), method="PUT", body=body) return FastlyWordpr...
python
def update_wordpress(self, service_id, version_number, name_key, **kwargs): """Update a specified wordpress.""" body = self._formdata(kwargs, FastlyWordpress.FIELDS) content = self._fetch("/service/%s/version/%d/wordpress/%s" % (service_id, version_number, name_key), method="PUT", body=body) return FastlyWordpr...
[ "def", "update_wordpress", "(", "self", ",", "service_id", ",", "version_number", ",", "name_key", ",", "*", "*", "kwargs", ")", ":", "body", "=", "self", ".", "_formdata", "(", "kwargs", ",", "FastlyWordpress", ".", "FIELDS", ")", "content", "=", "self", ...
Update a specified wordpress.
[ "Update", "a", "specified", "wordpress", "." ]
db2564b047e8af4bce72c3b88d6c27d3d0291425
https://github.com/obulpathi/cdn-fastly-python/blob/db2564b047e8af4bce72c3b88d6c27d3d0291425/fastly/__init__.py#L1011-L1015
train
tsnaomi/finnsyll
finnsyll/syllabifier.py
FinnSyll.annotate
def annotate(self, word): '''Annotate 'word' for syllabification, stress, weights, and vowels.''' info = [] # e.g., [ ('\'nak.su.`tus.ta', 'PUSU', 'HLHL', 'AUUA'), ] for syllabification, _ in syllabify(self.normalize(word), stress=True): stresses = '' weights = '' ...
python
def annotate(self, word): '''Annotate 'word' for syllabification, stress, weights, and vowels.''' info = [] # e.g., [ ('\'nak.su.`tus.ta', 'PUSU', 'HLHL', 'AUUA'), ] for syllabification, _ in syllabify(self.normalize(word), stress=True): stresses = '' weights = '' ...
[ "def", "annotate", "(", "self", ",", "word", ")", ":", "info", "=", "[", "]", "# e.g., [ ('\\'nak.su.`tus.ta', 'PUSU', 'HLHL', 'AUUA'), ]", "for", "syllabification", ",", "_", "in", "syllabify", "(", "self", ".", "normalize", "(", "word", ")", ",", "stress", "...
Annotate 'word' for syllabification, stress, weights, and vowels.
[ "Annotate", "word", "for", "syllabification", "stress", "weights", "and", "vowels", "." ]
6a42740311688c946a636a3e2304866c7aa041b3
https://github.com/tsnaomi/finnsyll/blob/6a42740311688c946a636a3e2304866c7aa041b3/finnsyll/syllabifier.py#L114-L150
train
OLC-Bioinformatics/sipprverse
serosippr/serosippr.py
SeroSippr.runner
def runner(self): """ Run the necessary methods in the correct order """ logging.info('Starting {} analysis pipeline'.format(self.analysistype)) # Run the analyses Sippr(self, self.cutoff) self.serotype_escherichia() self.serotype_salmonella() # Cr...
python
def runner(self): """ Run the necessary methods in the correct order """ logging.info('Starting {} analysis pipeline'.format(self.analysistype)) # Run the analyses Sippr(self, self.cutoff) self.serotype_escherichia() self.serotype_salmonella() # Cr...
[ "def", "runner", "(", "self", ")", ":", "logging", ".", "info", "(", "'Starting {} analysis pipeline'", ".", "format", "(", "self", ".", "analysistype", ")", ")", "# Run the analyses", "Sippr", "(", "self", ",", "self", ".", "cutoff", ")", "self", ".", "se...
Run the necessary methods in the correct order
[ "Run", "the", "necessary", "methods", "in", "the", "correct", "order" ]
d4f10cdf8e1a39dac0953db61c21c97efc6006de
https://github.com/OLC-Bioinformatics/sipprverse/blob/d4f10cdf8e1a39dac0953db61c21c97efc6006de/serosippr/serosippr.py#L16-L28
train
OLC-Bioinformatics/sipprverse
serosippr/serosippr.py
SeroSippr.reporter
def reporter(self): """ Creates a report of the results """ logging.info('Creating {} report'.format(self.analysistype)) # Create the path in which the reports are stored make_path(self.reportpath) header = 'Strain,Serotype\n' data = '' with open(o...
python
def reporter(self): """ Creates a report of the results """ logging.info('Creating {} report'.format(self.analysistype)) # Create the path in which the reports are stored make_path(self.reportpath) header = 'Strain,Serotype\n' data = '' with open(o...
[ "def", "reporter", "(", "self", ")", ":", "logging", ".", "info", "(", "'Creating {} report'", ".", "format", "(", "self", ".", "analysistype", ")", ")", "# Create the path in which the reports are stored", "make_path", "(", "self", ".", "reportpath", ")", "header...
Creates a report of the results
[ "Creates", "a", "report", "of", "the", "results" ]
d4f10cdf8e1a39dac0953db61c21c97efc6006de
https://github.com/OLC-Bioinformatics/sipprverse/blob/d4f10cdf8e1a39dac0953db61c21c97efc6006de/serosippr/serosippr.py#L30-L65
train
OLC-Bioinformatics/sipprverse
serosippr/serosippr.py
SeroSippr.serotype_escherichia
def serotype_escherichia(self): """ Create attributes storing the best results for the O and H types """ for sample in self.runmetadata.samples: # Initialise negative results to be overwritten when necessary sample[self.analysistype].best_o_pid = '-' s...
python
def serotype_escherichia(self): """ Create attributes storing the best results for the O and H types """ for sample in self.runmetadata.samples: # Initialise negative results to be overwritten when necessary sample[self.analysistype].best_o_pid = '-' s...
[ "def", "serotype_escherichia", "(", "self", ")", ":", "for", "sample", "in", "self", ".", "runmetadata", ".", "samples", ":", "# Initialise negative results to be overwritten when necessary", "sample", "[", "self", ".", "analysistype", "]", ".", "best_o_pid", "=", "...
Create attributes storing the best results for the O and H types
[ "Create", "attributes", "storing", "the", "best", "results", "for", "the", "O", "and", "H", "types" ]
d4f10cdf8e1a39dac0953db61c21c97efc6006de
https://github.com/OLC-Bioinformatics/sipprverse/blob/d4f10cdf8e1a39dac0953db61c21c97efc6006de/serosippr/serosippr.py#L67-L108
train
tsnaomi/finnsyll
finnsyll/prev/v02.py
_syllabify
def _syllabify(word): '''Syllabify the given word.''' word = replace_umlauts(word) word, CONTINUE_VV, CONTINUE_VVV, applied_rules = apply_T1(word) if CONTINUE_VV: word, T2 = apply_T2(word) word, T4 = apply_T4(word) applied_rules += T2 + T4 if CONTINUE_VVV: word, T5 ...
python
def _syllabify(word): '''Syllabify the given word.''' word = replace_umlauts(word) word, CONTINUE_VV, CONTINUE_VVV, applied_rules = apply_T1(word) if CONTINUE_VV: word, T2 = apply_T2(word) word, T4 = apply_T4(word) applied_rules += T2 + T4 if CONTINUE_VVV: word, T5 ...
[ "def", "_syllabify", "(", "word", ")", ":", "word", "=", "replace_umlauts", "(", "word", ")", "word", ",", "CONTINUE_VV", ",", "CONTINUE_VVV", ",", "applied_rules", "=", "apply_T1", "(", "word", ")", "if", "CONTINUE_VV", ":", "word", ",", "T2", "=", "app...
Syllabify the given word.
[ "Syllabify", "the", "given", "word", "." ]
6a42740311688c946a636a3e2304866c7aa041b3
https://github.com/tsnaomi/finnsyll/blob/6a42740311688c946a636a3e2304866c7aa041b3/finnsyll/prev/v02.py#L36-L54
train
tsnaomi/finnsyll
finnsyll/prev/v02.py
apply_T1
def apply_T1(word): '''There is a syllable boundary in front of every CV-sequence.''' T1 = ' T1' WORD = _split_consonants_and_vowels(word) CONTINUE_VV = 0 CONTINUE_VVV = 0 for i, v in enumerate(WORD): if i == 0 and is_consonant(v[0][0]): continue elif is_consonant(...
python
def apply_T1(word): '''There is a syllable boundary in front of every CV-sequence.''' T1 = ' T1' WORD = _split_consonants_and_vowels(word) CONTINUE_VV = 0 CONTINUE_VVV = 0 for i, v in enumerate(WORD): if i == 0 and is_consonant(v[0][0]): continue elif is_consonant(...
[ "def", "apply_T1", "(", "word", ")", ":", "T1", "=", "' T1'", "WORD", "=", "_split_consonants_and_vowels", "(", "word", ")", "CONTINUE_VV", "=", "0", "CONTINUE_VVV", "=", "0", "for", "i", ",", "v", "in", "enumerate", "(", "WORD", ")", ":", "if", "i", ...
There is a syllable boundary in front of every CV-sequence.
[ "There", "is", "a", "syllable", "boundary", "in", "front", "of", "every", "CV", "-", "sequence", "." ]
6a42740311688c946a636a3e2304866c7aa041b3
https://github.com/tsnaomi/finnsyll/blob/6a42740311688c946a636a3e2304866c7aa041b3/finnsyll/prev/v02.py#L59-L84
train
tsnaomi/finnsyll
finnsyll/prev/v02.py
apply_T2
def apply_T2(word): '''There is a syllable boundary within a sequence VV of two nonidentical vowels that are not a genuine diphthong, e.g., [ta.e], [ko.et.taa].''' T2 = '' WORD = word.split('.') for i, v in enumerate(WORD): if not contains_diphthong(v): VV = contains_VV(v) ...
python
def apply_T2(word): '''There is a syllable boundary within a sequence VV of two nonidentical vowels that are not a genuine diphthong, e.g., [ta.e], [ko.et.taa].''' T2 = '' WORD = word.split('.') for i, v in enumerate(WORD): if not contains_diphthong(v): VV = contains_VV(v) ...
[ "def", "apply_T2", "(", "word", ")", ":", "T2", "=", "''", "WORD", "=", "word", ".", "split", "(", "'.'", ")", "for", "i", ",", "v", "in", "enumerate", "(", "WORD", ")", ":", "if", "not", "contains_diphthong", "(", "v", ")", ":", "VV", "=", "co...
There is a syllable boundary within a sequence VV of two nonidentical vowels that are not a genuine diphthong, e.g., [ta.e], [ko.et.taa].
[ "There", "is", "a", "syllable", "boundary", "within", "a", "sequence", "VV", "of", "two", "nonidentical", "vowels", "that", "are", "not", "a", "genuine", "diphthong", "e", ".", "g", ".", "[", "ta", ".", "e", "]", "[", "ko", ".", "et", ".", "taa", "...
6a42740311688c946a636a3e2304866c7aa041b3
https://github.com/tsnaomi/finnsyll/blob/6a42740311688c946a636a3e2304866c7aa041b3/finnsyll/prev/v02.py#L118-L136
train
tsnaomi/finnsyll
finnsyll/prev/v02.py
apply_T4
def apply_T4(word): '''An agglutination diphthong that ends in /u, y/ usually contains a syllable boundary when -C# or -CCV follow, e.g., [lau.ka.us], [va.ka.ut.taa].''' T4 = '' WORD = word.split('.') for i, v in enumerate(WORD): # i % 2 != 0 prevents this rule from applying to first, ...
python
def apply_T4(word): '''An agglutination diphthong that ends in /u, y/ usually contains a syllable boundary when -C# or -CCV follow, e.g., [lau.ka.us], [va.ka.ut.taa].''' T4 = '' WORD = word.split('.') for i, v in enumerate(WORD): # i % 2 != 0 prevents this rule from applying to first, ...
[ "def", "apply_T4", "(", "word", ")", ":", "T4", "=", "''", "WORD", "=", "word", ".", "split", "(", "'.'", ")", "for", "i", ",", "v", "in", "enumerate", "(", "WORD", ")", ":", "# i % 2 != 0 prevents this rule from applying to first, third, etc.", "# syllables, ...
An agglutination diphthong that ends in /u, y/ usually contains a syllable boundary when -C# or -CCV follow, e.g., [lau.ka.us], [va.ka.ut.taa].
[ "An", "agglutination", "diphthong", "that", "ends", "in", "/", "u", "y", "/", "usually", "contains", "a", "syllable", "boundary", "when", "-", "C#", "or", "-", "CCV", "follow", "e", ".", "g", ".", "[", "lau", ".", "ka", ".", "us", "]", "[", "va", ...
6a42740311688c946a636a3e2304866c7aa041b3
https://github.com/tsnaomi/finnsyll/blob/6a42740311688c946a636a3e2304866c7aa041b3/finnsyll/prev/v02.py#L141-L168
train
tsnaomi/finnsyll
finnsyll/prev/v02.py
apply_T5
def apply_T5(word): # BROKEN '''If a (V)VVV-sequence contains a VV-sequence that could be an /i/-final diphthong, there is a syllable boundary between it and the third vowel, e.g., [raa.ois.sa], [huo.uim.me], [la.eis.sa], [sel.vi.äi.si], [tai.an], [säi.e], [oi.om.me].''' T5 = '' WORD = word.spl...
python
def apply_T5(word): # BROKEN '''If a (V)VVV-sequence contains a VV-sequence that could be an /i/-final diphthong, there is a syllable boundary between it and the third vowel, e.g., [raa.ois.sa], [huo.uim.me], [la.eis.sa], [sel.vi.äi.si], [tai.an], [säi.e], [oi.om.me].''' T5 = '' WORD = word.spl...
[ "def", "apply_T5", "(", "word", ")", ":", "# BROKEN", "T5", "=", "''", "WORD", "=", "word", ".", "split", "(", "'.'", ")", "for", "i", ",", "v", "in", "enumerate", "(", "WORD", ")", ":", "if", "contains_VVV", "(", "v", ")", "and", "any", "(", "...
If a (V)VVV-sequence contains a VV-sequence that could be an /i/-final diphthong, there is a syllable boundary between it and the third vowel, e.g., [raa.ois.sa], [huo.uim.me], [la.eis.sa], [sel.vi.äi.si], [tai.an], [säi.e], [oi.om.me].
[ "If", "a", "(", "V", ")", "VVV", "-", "sequence", "contains", "a", "VV", "-", "sequence", "that", "could", "be", "an", "/", "i", "/", "-", "final", "diphthong", "there", "is", "a", "syllable", "boundary", "between", "it", "and", "the", "third", "vowe...
6a42740311688c946a636a3e2304866c7aa041b3
https://github.com/tsnaomi/finnsyll/blob/6a42740311688c946a636a3e2304866c7aa041b3/finnsyll/prev/v02.py#L176-L193
train
tsnaomi/finnsyll
finnsyll/prev/v02.py
apply_T6
def apply_T6(word): '''If a VVV-sequence contains a long vowel, there is a syllable boundary between it and the third vowel, e.g. [kor.ke.aa], [yh.ti.öön], [ruu.an], [mää.yt.te].''' T6 = '' WORD = word.split('.') for i, v in enumerate(WORD): if contains_VVV(v): VV = [v.find...
python
def apply_T6(word): '''If a VVV-sequence contains a long vowel, there is a syllable boundary between it and the third vowel, e.g. [kor.ke.aa], [yh.ti.öön], [ruu.an], [mää.yt.te].''' T6 = '' WORD = word.split('.') for i, v in enumerate(WORD): if contains_VVV(v): VV = [v.find...
[ "def", "apply_T6", "(", "word", ")", ":", "T6", "=", "''", "WORD", "=", "word", ".", "split", "(", "'.'", ")", "for", "i", ",", "v", "in", "enumerate", "(", "WORD", ")", ":", "if", "contains_VVV", "(", "v", ")", ":", "VV", "=", "[", "v", ".",...
If a VVV-sequence contains a long vowel, there is a syllable boundary between it and the third vowel, e.g. [kor.ke.aa], [yh.ti.öön], [ruu.an], [mää.yt.te].
[ "If", "a", "VVV", "-", "sequence", "contains", "a", "long", "vowel", "there", "is", "a", "syllable", "boundary", "between", "it", "and", "the", "third", "vowel", "e", ".", "g", ".", "[", "kor", ".", "ke", ".", "aa", "]", "[", "yh", ".", "ti", "."...
6a42740311688c946a636a3e2304866c7aa041b3
https://github.com/tsnaomi/finnsyll/blob/6a42740311688c946a636a3e2304866c7aa041b3/finnsyll/prev/v02.py#L201-L226
train
tsnaomi/finnsyll
finnsyll/prev/v02.py
apply_T7
def apply_T7(word): '''If a VVV-sequence does not contain a potential /i/-final diphthong, there is a syllable boundary between the second and third vowels, e.g. [kau.an], [leu.an], [kiu.as].''' T7 = '' WORD = word.split('.') for i, v in enumerate(WORD): if contains_VVV(v): ...
python
def apply_T7(word): '''If a VVV-sequence does not contain a potential /i/-final diphthong, there is a syllable boundary between the second and third vowels, e.g. [kau.an], [leu.an], [kiu.as].''' T7 = '' WORD = word.split('.') for i, v in enumerate(WORD): if contains_VVV(v): ...
[ "def", "apply_T7", "(", "word", ")", ":", "T7", "=", "''", "WORD", "=", "word", ".", "split", "(", "'.'", ")", "for", "i", ",", "v", "in", "enumerate", "(", "WORD", ")", ":", "if", "contains_VVV", "(", "v", ")", ":", "for", "I", ",", "V", "in...
If a VVV-sequence does not contain a potential /i/-final diphthong, there is a syllable boundary between the second and third vowels, e.g. [kau.an], [leu.an], [kiu.as].
[ "If", "a", "VVV", "-", "sequence", "does", "not", "contain", "a", "potential", "/", "i", "/", "-", "final", "diphthong", "there", "is", "a", "syllable", "boundary", "between", "the", "second", "and", "third", "vowels", "e", ".", "g", ".", "[", "kau", ...
6a42740311688c946a636a3e2304866c7aa041b3
https://github.com/tsnaomi/finnsyll/blob/6a42740311688c946a636a3e2304866c7aa041b3/finnsyll/prev/v02.py#L231-L250
train