repository_name stringlengths 5 67 | func_path_in_repository stringlengths 4 234 | func_name stringlengths 0 314 | whole_func_string stringlengths 52 3.87M | language stringclasses 6
values | func_code_string stringlengths 52 3.87M | func_documentation_string stringlengths 1 47.2k | func_code_url stringlengths 85 339 |
|---|---|---|---|---|---|---|---|
fabric-bolt/fabric-bolt | fabric_bolt/web_hooks/views.py | HookCreate.form_valid | def form_valid(self, form):
"""After the form is valid lets let people know"""
ret = super(HookCreate, self).form_valid(form)
# Good to make note of that
messages.add_message(self.request, messages.SUCCESS, 'Hook %s created' % self.object.url)
return ret | python | def form_valid(self, form):
"""After the form is valid lets let people know"""
ret = super(HookCreate, self).form_valid(form)
# Good to make note of that
messages.add_message(self.request, messages.SUCCESS, 'Hook %s created' % self.object.url)
return ret | After the form is valid lets let people know | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/web_hooks/views.py#L44-L52 |
fabric-bolt/fabric-bolt | fabric_bolt/hosts/views.py | HostCreate.form_valid | def form_valid(self, form):
"""First call the parent's form valid then let the user know it worked."""
form_valid_from_parent = super(HostCreate, self).form_valid(form)
messages.success(self.request, 'Host {} Successfully Created'.format(self.object))
return form_valid_from_parent | python | def form_valid(self, form):
"""First call the parent's form valid then let the user know it worked."""
form_valid_from_parent = super(HostCreate, self).form_valid(form)
messages.success(self.request, 'Host {} Successfully Created'.format(self.object))
return form_valid_from_parent | First call the parent's form valid then let the user know it worked. | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/hosts/views.py#L30-L36 |
fabric-bolt/fabric-bolt | fabric_bolt/hosts/views.py | SSHKeys.post | def post(self, *args, **kwargs):
"""Create the SSH file & then return the normal get method..."""
existing_ssh = models.SSHConfig.objects.all()
if existing_ssh.exists():
return self.get_view()
remote_user = self.request.POST.get('remote_user', 'root')
create_ssh_c... | python | def post(self, *args, **kwargs):
"""Create the SSH file & then return the normal get method..."""
existing_ssh = models.SSHConfig.objects.all()
if existing_ssh.exists():
return self.get_view()
remote_user = self.request.POST.get('remote_user', 'root')
create_ssh_c... | Create the SSH file & then return the normal get method... | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/hosts/views.py#L79-L91 |
fabric-bolt/fabric-bolt | fabric_bolt/fabfile.py | update_sandbox_site | def update_sandbox_site(comment_text):
"""put's a text file on the server"""
file_to_deliver = NamedTemporaryFile(delete=False)
file_text = "Deployed at: {} <br /> Comment: {}".format(datetime.datetime.now().strftime('%c'), cgi.escape(comment_text))
file_to_deliver.write(file_text)
file_to_delive... | python | def update_sandbox_site(comment_text):
"""put's a text file on the server"""
file_to_deliver = NamedTemporaryFile(delete=False)
file_text = "Deployed at: {} <br /> Comment: {}".format(datetime.datetime.now().strftime('%c'), cgi.escape(comment_text))
file_to_deliver.write(file_text)
file_to_delive... | put's a text file on the server | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/fabfile.py#L133-L143 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/models.py | Project.web_hooks | def web_hooks(self, include_global=True):
"""Get all web hooks for this project. Includes global hooks."""
from fabric_bolt.web_hooks.models import Hook
ors = [Q(project=self)]
if include_global:
ors.append(Q(project=None))
hooks = Hook.objects.filter(reduce(operato... | python | def web_hooks(self, include_global=True):
"""Get all web hooks for this project. Includes global hooks."""
from fabric_bolt.web_hooks.models import Hook
ors = [Q(project=self)]
if include_global:
ors.append(Q(project=None))
hooks = Hook.objects.filter(reduce(operato... | Get all web hooks for this project. Includes global hooks. | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/models.py#L54-L64 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/models.py | Project.get_deployment_count | def get_deployment_count(self):
"""Utility function to get the number of deployments a given project has"""
ret = self.stage_set.annotate(num_deployments=Count('deployment')).aggregate(total_deployments=Sum('num_deployments'))
return ret['total_deployments'] | python | def get_deployment_count(self):
"""Utility function to get the number of deployments a given project has"""
ret = self.stage_set.annotate(num_deployments=Count('deployment')).aggregate(total_deployments=Sum('num_deployments'))
return ret['total_deployments'] | Utility function to get the number of deployments a given project has | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/models.py#L66-L70 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/models.py | Stage.get_queryset_configurations | def get_queryset_configurations(self, **kwargs):
"""
Really we just want to do a simple SQL statement like this (but oh the ORM):
SELECT Distinct(Coalesce(stage.key, project.key)) AS key,
(CASE WHEN stage.key IS NOT null THEN stage.data_type ELSE project.data_type END) AS data_type,
... | python | def get_queryset_configurations(self, **kwargs):
"""
Really we just want to do a simple SQL statement like this (but oh the ORM):
SELECT Distinct(Coalesce(stage.key, project.key)) AS key,
(CASE WHEN stage.key IS NOT null THEN stage.data_type ELSE project.data_type END) AS data_type,
... | Really we just want to do a simple SQL statement like this (but oh the ORM):
SELECT Distinct(Coalesce(stage.key, project.key)) AS key,
(CASE WHEN stage.key IS NOT null THEN stage.data_type ELSE project.data_type END) AS data_type,
(CASE WHEN stage.key IS NOT null THEN stage.value ELSE project.v... | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/models.py#L102-L131 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/models.py | Stage.get_configurations | def get_configurations(self):
"""
Generates a dictionary that's made up of the configurations on the project.
Any configurations on a project that are duplicated on a stage, the stage configuration will take precedence.
"""
project_configurations_dictionary = {}
project_... | python | def get_configurations(self):
"""
Generates a dictionary that's made up of the configurations on the project.
Any configurations on a project that are duplicated on a stage, the stage configuration will take precedence.
"""
project_configurations_dictionary = {}
project_... | Generates a dictionary that's made up of the configurations on the project.
Any configurations on a project that are duplicated on a stage, the stage configuration will take precedence. | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/models.py#L133-L157 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/models.py | Configuration.get_absolute_url | def get_absolute_url(self):
"""Determine where I am coming from and where I am going"""
# Determine if this configuration is on a stage
if self.stage:
# Stage specific configurations go back to the stage view
url = reverse('projects_stage_view', args=(self.project.pk, se... | python | def get_absolute_url(self):
"""Determine where I am coming from and where I am going"""
# Determine if this configuration is on a stage
if self.stage:
# Stage specific configurations go back to the stage view
url = reverse('projects_stage_view', args=(self.project.pk, se... | Determine where I am coming from and where I am going | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/models.py#L215-L226 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/models.py | Configuration.get_value | def get_value(self):
"""Determine the proper value based on the data_type"""
if self.data_type == self.BOOLEAN_TYPE:
return self.value_boolean
elif self.data_type == self.NUMBER_TYPE:
return self.value_number
elif self.data_type == self.SSH_KEY_TYPE:
... | python | def get_value(self):
"""Determine the proper value based on the data_type"""
if self.data_type == self.BOOLEAN_TYPE:
return self.value_boolean
elif self.data_type == self.NUMBER_TYPE:
return self.value_number
elif self.data_type == self.SSH_KEY_TYPE:
... | Determine the proper value based on the data_type | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/models.py#L228-L238 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/models.py | Configuration.set_value | def set_value(self, value):
"""Determine the proper value based on the data_type"""
if self.data_type == self.BOOLEAN_TYPE:
self.value_boolean = bool(value)
elif self.data_type == self.NUMBER_TYPE:
self.value_number = float(value)
else:
self.value = v... | python | def set_value(self, value):
"""Determine the proper value based on the data_type"""
if self.data_type == self.BOOLEAN_TYPE:
self.value_boolean = bool(value)
elif self.data_type == self.NUMBER_TYPE:
self.value_number = float(value)
else:
self.value = v... | Determine the proper value based on the data_type | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/models.py#L240-L248 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/models.py | Deployment.add_output | def add_output(self, line):
"""
Appends {line} of output to the output instantly. (directly hits the database)
:param line: the line of text to append
:return: None
"""
Deployment.objects.filter(pk=self.id).update(output=CF('output')+line) | python | def add_output(self, line):
"""
Appends {line} of output to the output instantly. (directly hits the database)
:param line: the line of text to append
:return: None
"""
Deployment.objects.filter(pk=self.id).update(output=CF('output')+line) | Appends {line} of output to the output instantly. (directly hits the database)
:param line: the line of text to append
:return: None | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/models.py#L304-L310 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/models.py | Deployment.add_input | def add_input(self, line):
"""
Appends {line} of input to the input instantly. (directly hits the database)
:param line: the line of text to append
:return: None
"""
Deployment.objects.filter(pk=self.id).update(input=CF('input')+line) | python | def add_input(self, line):
"""
Appends {line} of input to the input instantly. (directly hits the database)
:param line: the line of text to append
:return: None
"""
Deployment.objects.filter(pk=self.id).update(input=CF('input')+line) | Appends {line} of input to the input instantly. (directly hits the database)
:param line: the line of text to append
:return: None | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/models.py#L312-L318 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/models.py | Deployment.get_next_input | def get_next_input(self):
"""
Returns the next line of input
:return: string of input
"""
# TODO: could override input if we get input coming in at the same time
all_input = Deployment.objects.get(pk=self.id).input or ''
lines = all_input.splitlines()
fir... | python | def get_next_input(self):
"""
Returns the next line of input
:return: string of input
"""
# TODO: could override input if we get input coming in at the same time
all_input = Deployment.objects.get(pk=self.id).input or ''
lines = all_input.splitlines()
fir... | Returns the next line of input
:return: string of input | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/models.py#L320-L332 |
fabric-bolt/fabric-bolt | fabric_bolt/accounts/models.py | DeployUser.gravatar | def gravatar(self, size=20):
"""
Construct a gravatar image address for the user
"""
default = "mm"
gravatar_url = "//www.gravatar.com/avatar/" + hashlib.md5(self.email.lower()).hexdigest() + "?"
gravatar_url += urllib.urlencode({'d': default, 's': str(size)})
r... | python | def gravatar(self, size=20):
"""
Construct a gravatar image address for the user
"""
default = "mm"
gravatar_url = "//www.gravatar.com/avatar/" + hashlib.md5(self.email.lower()).hexdigest() + "?"
gravatar_url += urllib.urlencode({'d': default, 's': str(size)})
r... | Construct a gravatar image address for the user | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/accounts/models.py#L65-L74 |
fabric-bolt/fabric-bolt | fabric_bolt/accounts/forms.py | UserChangeForm.save | def save(self, commit=True):
"""
Save the model instance with the correct Auth Group based on the user_level question
"""
instance = super(UserChangeForm, self).save(commit=commit)
if commit:
self.set_permissions(instance)
return instance | python | def save(self, commit=True):
"""
Save the model instance with the correct Auth Group based on the user_level question
"""
instance = super(UserChangeForm, self).save(commit=commit)
if commit:
self.set_permissions(instance)
return instance | Save the model instance with the correct Auth Group based on the user_level question | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/accounts/forms.py#L49-L58 |
fabric-bolt/fabric-bolt | fabric_bolt/accounts/forms.py | UserCreationForm.save | def save(self, commit=True):
"""
Save the model instance with the correct Auth Group based on the user_level question
"""
instance = super(UserCreationForm, self).save(commit=commit)
random_password = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(32... | python | def save(self, commit=True):
"""
Save the model instance with the correct Auth Group based on the user_level question
"""
instance = super(UserCreationForm, self).save(commit=commit)
random_password = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(32... | Save the model instance with the correct Auth Group based on the user_level question | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/accounts/forms.py#L90-L103 |
fabric-bolt/fabric-bolt | fabric_bolt/web_hooks/managers.py | HookManager.hooks | def hooks(self, project):
""" Look up the urls we need to post to"""
return self.get_queryset().filter(
Q(project=None) |
Q(project=project)
).distinct('url') | python | def hooks(self, project):
""" Look up the urls we need to post to"""
return self.get_queryset().filter(
Q(project=None) |
Q(project=project)
).distinct('url') | Look up the urls we need to post to | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/web_hooks/managers.py#L7-L13 |
fabric-bolt/fabric-bolt | fabric_bolt/web_hooks/receivers.py | web_hook_receiver | def web_hook_receiver(sender, **kwargs):
"""Generic receiver for the web hook firing piece."""
deployment = Deployment.objects.get(pk=kwargs.get('deployment_id'))
hooks = deployment.web_hooks
if not hooks:
return
for hook in hooks:
data = payload_generator(deployment)
d... | python | def web_hook_receiver(sender, **kwargs):
"""Generic receiver for the web hook firing piece."""
deployment = Deployment.objects.get(pk=kwargs.get('deployment_id'))
hooks = deployment.web_hooks
if not hooks:
return
for hook in hooks:
data = payload_generator(deployment)
d... | Generic receiver for the web hook firing piece. | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/web_hooks/receivers.py#L9-L23 |
fabric-bolt/fabric-bolt | fabric_bolt/hosts/models.py | full_domain_validator | def full_domain_validator(hostname):
"""
Fully validates a domain name as compilant with the standard rules:
- Composed of series of labels concatenated with dots, as are all domain names.
- Each label must be between 1 and 63 characters long.
- The entire hostname (including the delimit... | python | def full_domain_validator(hostname):
"""
Fully validates a domain name as compilant with the standard rules:
- Composed of series of labels concatenated with dots, as are all domain names.
- Each label must be between 1 and 63 characters long.
- The entire hostname (including the delimit... | Fully validates a domain name as compilant with the standard rules:
- Composed of series of labels concatenated with dots, as are all domain names.
- Each label must be between 1 and 63 characters long.
- The entire hostname (including the delimiting dots) has a maximum of 255 characters.
... | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/hosts/models.py#L10-L32 |
fabric-bolt/fabric-bolt | fabric_bolt/web_hooks/utils.py | serialize_hook | def serialize_hook(instance):
"""
Serialize the object down to Python primitives.
By default it uses Django's built in serializer.
"""
if getattr(instance, 'serialize_hook', None) and callable(instance.serialize_hook):
return instance.serialize_hook(hook=instance)
if getattr(settings, ... | python | def serialize_hook(instance):
"""
Serialize the object down to Python primitives.
By default it uses Django's built in serializer.
"""
if getattr(instance, 'serialize_hook', None) and callable(instance.serialize_hook):
return instance.serialize_hook(hook=instance)
if getattr(settings, ... | Serialize the object down to Python primitives.
By default it uses Django's built in serializer. | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/web_hooks/utils.py#L52-L68 |
fabric-bolt/fabric-bolt | fabric_bolt/web_hooks/utils.py | deliver_hook | def deliver_hook(instance, target, payload_override=None):
"""
Deliver the payload to the target URL.
By default it serializes to JSON and POSTs.
"""
payload = payload_override or serialize_hook(instance)
if hasattr(settings, 'HOOK_DELIVERER'):
deliverer = get_module(settings.HOOK_DELIV... | python | def deliver_hook(instance, target, payload_override=None):
"""
Deliver the payload to the target URL.
By default it serializes to JSON and POSTs.
"""
payload = payload_override or serialize_hook(instance)
if hasattr(settings, 'HOOK_DELIVERER'):
deliverer = get_module(settings.HOOK_DELIV... | Deliver the payload to the target URL.
By default it serializes to JSON and POSTs. | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/web_hooks/utils.py#L71-L88 |
fabric-bolt/fabric-bolt | fabric_bolt/core/mixins/tables.py | PaginateTable.paginate | def paginate(self, klass=Paginator, per_page=None, page=1, *args, **kwargs):
"""
Paginates the table using a paginator and creates a ``page`` property
containing information for the current page.
:type klass: Paginator class
:param klass: a paginator class to paginate the... | python | def paginate(self, klass=Paginator, per_page=None, page=1, *args, **kwargs):
"""
Paginates the table using a paginator and creates a ``page`` property
containing information for the current page.
:type klass: Paginator class
:param klass: a paginator class to paginate the... | Paginates the table using a paginator and creates a ``page`` property
containing information for the current page.
:type klass: Paginator class
:param klass: a paginator class to paginate the results
:type per_page: `int`
:param per_page: how many records are displayed o... | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/core/mixins/tables.py#L79-L121 |
fabric-bolt/fabric-bolt | fabric_bolt/task_runners/base.py | BaseTaskRunnerBackend.get_fabric_tasks | def get_fabric_tasks(self, project):
"""
Generate a list of fabric tasks that are available
"""
cache_key = 'project_{}_fabfile_tasks'.format(project.pk)
cached_result = cache.get(cache_key)
if cached_result:
return cached_result
try:
fa... | python | def get_fabric_tasks(self, project):
"""
Generate a list of fabric tasks that are available
"""
cache_key = 'project_{}_fabfile_tasks'.format(project.pk)
cached_result = cache.get(cache_key)
if cached_result:
return cached_result
try:
fa... | Generate a list of fabric tasks that are available | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/task_runners/base.py#L143-L188 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/views.py | ProjectCreate.form_valid | def form_valid(self, form):
"""After the form is valid lets let people know"""
ret = super(ProjectCreate, self).form_valid(form)
# Good to make note of that
messages.add_message(self.request, messages.SUCCESS, 'Project %s created' % self.object.name)
return ret | python | def form_valid(self, form):
"""After the form is valid lets let people know"""
ret = super(ProjectCreate, self).form_valid(form)
# Good to make note of that
messages.add_message(self.request, messages.SUCCESS, 'Project %s created' % self.object.name)
return ret | After the form is valid lets let people know | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/views.py#L80-L88 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/views.py | ProjectCopy.get_initial | def get_initial(self):
"""
Returns the initial data to use for forms on this view.
"""
initial = super(ProjectCopy, self).get_initial()
if self.copy_object:
initial.update({'name': '%s copy' % self.copy_object.name,
'description': self.copy... | python | def get_initial(self):
"""
Returns the initial data to use for forms on this view.
"""
initial = super(ProjectCopy, self).get_initial()
if self.copy_object:
initial.update({'name': '%s copy' % self.copy_object.name,
'description': self.copy... | Returns the initial data to use for forms on this view. | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/views.py#L101-L112 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/views.py | ProjectCopy.copy_configurations | def copy_configurations(self, stages=None):
"""
Copy configuretions
"""
if stages:
confs = stages[0].stage_configurations()
new_stage = stages[1]
else:
confs = self.copy_object.project_configurations()
new_stage = None
for ... | python | def copy_configurations(self, stages=None):
"""
Copy configuretions
"""
if stages:
confs = stages[0].stage_configurations()
new_stage = stages[1]
else:
confs = self.copy_object.project_configurations()
new_stage = None
for ... | Copy configuretions | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/views.py#L132-L148 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/views.py | ProjectCopy.form_valid | def form_valid(self, form):
"""After the form is valid lets let people know"""
ret = super(ProjectCopy, self).form_valid(form)
self.copy_relations()
# Good to make note of that
messages.add_message(self.request, messages.SUCCESS, 'Project %s copied' % self.object.name)
... | python | def form_valid(self, form):
"""After the form is valid lets let people know"""
ret = super(ProjectCopy, self).form_valid(form)
self.copy_relations()
# Good to make note of that
messages.add_message(self.request, messages.SUCCESS, 'Project %s copied' % self.object.name)
... | After the form is valid lets let people know | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/views.py#L162-L171 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/views.py | ProjectConfigurationCreate.form_valid | def form_valid(self, form):
"""Set the project on this configuration after it's valid"""
self.object = form.save(commit=False)
self.object.project = self.project
if self.kwargs.get('stage_id', None):
current_stage = models.Stage.objects.get(pk=self.kwargs.get('stage_id'))
... | python | def form_valid(self, form):
"""Set the project on this configuration after it's valid"""
self.object = form.save(commit=False)
self.object.project = self.project
if self.kwargs.get('stage_id', None):
current_stage = models.Stage.objects.get(pk=self.kwargs.get('stage_id'))
... | Set the project on this configuration after it's valid | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/views.py#L252-L267 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/views.py | ProjectConfigurationDelete.get_success_url | def get_success_url(self):
"""Get the url depending on what type of configuration I deleted."""
if self.stage_id:
url = reverse('projects_stage_view', args=(self.project_id, self.stage_id))
else:
url = reverse('projects_project_view', args=(self.project_id,))
re... | python | def get_success_url(self):
"""Get the url depending on what type of configuration I deleted."""
if self.stage_id:
url = reverse('projects_stage_view', args=(self.project_id, self.stage_id))
else:
url = reverse('projects_project_view', args=(self.project_id,))
re... | Get the url depending on what type of configuration I deleted. | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/views.py#L300-L308 |
fabric-bolt/fabric-bolt | fabric_bolt/projects/views.py | ProjectStageCreate.form_valid | def form_valid(self, form):
"""Set the project on this configuration after it's valid"""
self.object = form.save(commit=False)
self.object.project = self.project
self.object.save()
# Good to make note of that
messages.add_message(self.request, messages.SUCCESS, 'Stage %... | python | def form_valid(self, form):
"""Set the project on this configuration after it's valid"""
self.object = form.save(commit=False)
self.object.project = self.project
self.object.save()
# Good to make note of that
messages.add_message(self.request, messages.SUCCESS, 'Stage %... | Set the project on this configuration after it's valid | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/projects/views.py#L498-L508 |
fabric-bolt/fabric-bolt | fabric_bolt/web_hooks/tasks.py | DeliverHook.run | def run(self, target, payload, instance=None, hook_id=None, **kwargs):
"""
target: the url to receive the payload.
payload: a python primitive data structure
instance: a possibly null "trigger" instance
hook: the defining Hook object (useful for removing)
"... | python | def run(self, target, payload, instance=None, hook_id=None, **kwargs):
"""
target: the url to receive the payload.
payload: a python primitive data structure
instance: a possibly null "trigger" instance
hook: the defining Hook object (useful for removing)
"... | target: the url to receive the payload.
payload: a python primitive data structure
instance: a possibly null "trigger" instance
hook: the defining Hook object (useful for removing) | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/web_hooks/tasks.py#L23-L30 |
fabric-bolt/fabric-bolt | fabric_bolt/hosts/utils.py | create_ssh_config | def create_ssh_config(remote_user='root', name='Auto Generated SSH Key',
file_name='fabricbolt_private.key', email='deployments@fabricbolt.io', public_key_text=None,
private_key_text=None):
"""Create SSH Key"""
if not private_key_text and not public_key_text:
... | python | def create_ssh_config(remote_user='root', name='Auto Generated SSH Key',
file_name='fabricbolt_private.key', email='deployments@fabricbolt.io', public_key_text=None,
private_key_text=None):
"""Create SSH Key"""
if not private_key_text and not public_key_text:
... | Create SSH Key | https://github.com/fabric-bolt/fabric-bolt/blob/0f434783026f1b9ce16a416fa496d76921fe49ca/fabric_bolt/hosts/utils.py#L7-L26 |
softvar/json2html | json2html/jsonconv.py | Json2Html.convert | def convert(self, json="", table_attributes='border="1"', clubbing=True, encode=False, escape=True):
"""
Convert JSON to HTML Table format
"""
# table attributes such as class, id, data-attr-*, etc.
# eg: table_attributes = 'class = "table table-bordered sortable"'
se... | python | def convert(self, json="", table_attributes='border="1"', clubbing=True, encode=False, escape=True):
"""
Convert JSON to HTML Table format
"""
# table attributes such as class, id, data-attr-*, etc.
# eg: table_attributes = 'class = "table table-bordered sortable"'
se... | Convert JSON to HTML Table format | https://github.com/softvar/json2html/blob/7070939172f1afd5c11c664e6cfece280cfde7e6/json2html/jsonconv.py#L37-L64 |
softvar/json2html | json2html/jsonconv.py | Json2Html.column_headers_from_list_of_dicts | def column_headers_from_list_of_dicts(self, json_input):
"""
This method is required to implement clubbing.
It tries to come up with column headers for your input
"""
if not json_input \
or not hasattr(json_input, '__getitem__') \
or not hasattr(json_input... | python | def column_headers_from_list_of_dicts(self, json_input):
"""
This method is required to implement clubbing.
It tries to come up with column headers for your input
"""
if not json_input \
or not hasattr(json_input, '__getitem__') \
or not hasattr(json_input... | This method is required to implement clubbing.
It tries to come up with column headers for your input | https://github.com/softvar/json2html/blob/7070939172f1afd5c11c664e6cfece280cfde7e6/json2html/jsonconv.py#L66-L84 |
softvar/json2html | json2html/jsonconv.py | Json2Html.convert_json_node | def convert_json_node(self, json_input):
"""
Dispatch JSON input according to the outermost type and process it
to generate the super awesome HTML format.
We try to adhere to duck typing such that users can just pass all kinds
of funky objects to json2html that *b... | python | def convert_json_node(self, json_input):
"""
Dispatch JSON input according to the outermost type and process it
to generate the super awesome HTML format.
We try to adhere to duck typing such that users can just pass all kinds
of funky objects to json2html that *b... | Dispatch JSON input according to the outermost type and process it
to generate the super awesome HTML format.
We try to adhere to duck typing such that users can just pass all kinds
of funky objects to json2html that *behave* like dicts and lists and other
basic JSON type... | https://github.com/softvar/json2html/blob/7070939172f1afd5c11c664e6cfece280cfde7e6/json2html/jsonconv.py#L86-L103 |
softvar/json2html | json2html/jsonconv.py | Json2Html.convert_list | def convert_list(self, list_input):
"""
Iterate over the JSON list and process it
to generate either an HTML table or a HTML list, depending on what's inside.
If suppose some key has array of objects and all the keys are same,
instead of creating a new row for eac... | python | def convert_list(self, list_input):
"""
Iterate over the JSON list and process it
to generate either an HTML table or a HTML list, depending on what's inside.
If suppose some key has array of objects and all the keys are same,
instead of creating a new row for eac... | Iterate over the JSON list and process it
to generate either an HTML table or a HTML list, depending on what's inside.
If suppose some key has array of objects and all the keys are same,
instead of creating a new row for each such entry,
club such values, thus it makes mo... | https://github.com/softvar/json2html/blob/7070939172f1afd5c11c664e6cfece280cfde7e6/json2html/jsonconv.py#L105-L157 |
softvar/json2html | json2html/jsonconv.py | Json2Html.convert_object | def convert_object(self, json_input):
"""
Iterate over the JSON object and process it
to generate the super awesome HTML Table format
"""
if not json_input:
return "" #avoid empty tables
converted_output = self.table_init_markup + "<tr>"
conver... | python | def convert_object(self, json_input):
"""
Iterate over the JSON object and process it
to generate the super awesome HTML Table format
"""
if not json_input:
return "" #avoid empty tables
converted_output = self.table_init_markup + "<tr>"
conver... | Iterate over the JSON object and process it
to generate the super awesome HTML Table format | https://github.com/softvar/json2html/blob/7070939172f1afd5c11c664e6cfece280cfde7e6/json2html/jsonconv.py#L159-L175 |
philippelt/netatmo-api-python | lnetatmo.py | HomeData.cameraUrls | def cameraUrls(self, camera=None, home=None, cid=None):
"""
Return the vpn_url and the local_url (if available) of a given camera
in order to access to its live feed
Can't use the is_local property which is mostly false in case of operator
dynamic IP change after presence start s... | python | def cameraUrls(self, camera=None, home=None, cid=None):
"""
Return the vpn_url and the local_url (if available) of a given camera
in order to access to its live feed
Can't use the is_local property which is mostly false in case of operator
dynamic IP change after presence start s... | Return the vpn_url and the local_url (if available) of a given camera
in order to access to its live feed
Can't use the is_local property which is mostly false in case of operator
dynamic IP change after presence start sequence | https://github.com/philippelt/netatmo-api-python/blob/d749fca3637c07c2943aba7992f683fff1812f77/lnetatmo.py#L536-L559 |
philippelt/netatmo-api-python | lnetatmo.py | HomeData.personsAtHome | def personsAtHome(self, home=None):
"""
Return the list of known persons who are currently at home
"""
if not home: home = self.default_home
home_data = self.homeByName(home)
atHome = []
for p in home_data['persons']:
#Only check known persons
... | python | def personsAtHome(self, home=None):
"""
Return the list of known persons who are currently at home
"""
if not home: home = self.default_home
home_data = self.homeByName(home)
atHome = []
for p in home_data['persons']:
#Only check known persons
... | Return the list of known persons who are currently at home | https://github.com/philippelt/netatmo-api-python/blob/d749fca3637c07c2943aba7992f683fff1812f77/lnetatmo.py#L566-L578 |
philippelt/netatmo-api-python | lnetatmo.py | HomeData.getCameraPicture | def getCameraPicture(self, image_id, key):
"""
Download a specific image (of an event or user face) from the camera
"""
postParams = {
"access_token" : self.getAuthToken,
"image_id" : image_id,
"key" : key
}
resp = postRequest(_GETC... | python | def getCameraPicture(self, image_id, key):
"""
Download a specific image (of an event or user face) from the camera
"""
postParams = {
"access_token" : self.getAuthToken,
"image_id" : image_id,
"key" : key
}
resp = postRequest(_GETC... | Download a specific image (of an event or user face) from the camera | https://github.com/philippelt/netatmo-api-python/blob/d749fca3637c07c2943aba7992f683fff1812f77/lnetatmo.py#L580-L591 |
philippelt/netatmo-api-python | lnetatmo.py | HomeData.getProfileImage | def getProfileImage(self, name):
"""
Retrieve the face of a given person
"""
for p in self.persons:
if 'pseudo' in self.persons[p]:
if name == self.persons[p]['pseudo']:
image_id = self.persons[p]['face']['id']
key = sel... | python | def getProfileImage(self, name):
"""
Retrieve the face of a given person
"""
for p in self.persons:
if 'pseudo' in self.persons[p]:
if name == self.persons[p]['pseudo']:
image_id = self.persons[p]['face']['id']
key = sel... | Retrieve the face of a given person | https://github.com/philippelt/netatmo-api-python/blob/d749fca3637c07c2943aba7992f683fff1812f77/lnetatmo.py#L593-L603 |
philippelt/netatmo-api-python | lnetatmo.py | HomeData.updateEvent | def updateEvent(self, event=None, home=None):
"""
Update the list of event with the latest ones
"""
if not home: home=self.default_home
if not event:
#If not event is provided we need to retrieve the oldest of the last event seen by each camera
listEvent =... | python | def updateEvent(self, event=None, home=None):
"""
Update the list of event with the latest ones
"""
if not home: home=self.default_home
if not event:
#If not event is provided we need to retrieve the oldest of the last event seen by each camera
listEvent =... | Update the list of event with the latest ones | https://github.com/philippelt/netatmo-api-python/blob/d749fca3637c07c2943aba7992f683fff1812f77/lnetatmo.py#L605-L628 |
philippelt/netatmo-api-python | lnetatmo.py | HomeData.personSeenByCamera | def personSeenByCamera(self, name, home=None, camera=None):
"""
Return True if a specific person has been seen by a camera
"""
try:
cam_id = self.cameraByName(camera=camera, home=home)['id']
except TypeError:
logger.warning("personSeenByCamera: Camera name... | python | def personSeenByCamera(self, name, home=None, camera=None):
"""
Return True if a specific person has been seen by a camera
"""
try:
cam_id = self.cameraByName(camera=camera, home=home)['id']
except TypeError:
logger.warning("personSeenByCamera: Camera name... | Return True if a specific person has been seen by a camera | https://github.com/philippelt/netatmo-api-python/blob/d749fca3637c07c2943aba7992f683fff1812f77/lnetatmo.py#L630-L645 |
philippelt/netatmo-api-python | lnetatmo.py | HomeData.someoneKnownSeen | def someoneKnownSeen(self, home=None, camera=None):
"""
Return True if someone known has been seen
"""
try:
cam_id = self.cameraByName(camera=camera, home=home)['id']
except TypeError:
logger.warning("personSeenByCamera: Camera name or home is unknown")
... | python | def someoneKnownSeen(self, home=None, camera=None):
"""
Return True if someone known has been seen
"""
try:
cam_id = self.cameraByName(camera=camera, home=home)['id']
except TypeError:
logger.warning("personSeenByCamera: Camera name or home is unknown")
... | Return True if someone known has been seen | https://github.com/philippelt/netatmo-api-python/blob/d749fca3637c07c2943aba7992f683fff1812f77/lnetatmo.py#L654-L667 |
philippelt/netatmo-api-python | lnetatmo.py | HomeData.motionDetected | def motionDetected(self, home=None, camera=None):
"""
Return True if movement has been detected
"""
try:
cam_id = self.cameraByName(camera=camera, home=home)['id']
except TypeError:
logger.warning("personSeenByCamera: Camera name or home is unknown")
... | python | def motionDetected(self, home=None, camera=None):
"""
Return True if movement has been detected
"""
try:
cam_id = self.cameraByName(camera=camera, home=home)['id']
except TypeError:
logger.warning("personSeenByCamera: Camera name or home is unknown")
... | Return True if movement has been detected | https://github.com/philippelt/netatmo-api-python/blob/d749fca3637c07c2943aba7992f683fff1812f77/lnetatmo.py#L684-L695 |
fprimex/zdesk | zdesk/zdesk.py | batch | def batch(sequence, callback, size=100, **kwargs):
"""Helper to setup batch requests.
There are endpoints which support updating multiple resources at once,
but they are often limited to 100 updates per request.
This function helps with splitting bigger requests into sequence of
smaller ones.
... | python | def batch(sequence, callback, size=100, **kwargs):
"""Helper to setup batch requests.
There are endpoints which support updating multiple resources at once,
but they are often limited to 100 updates per request.
This function helps with splitting bigger requests into sequence of
smaller ones.
... | Helper to setup batch requests.
There are endpoints which support updating multiple resources at once,
but they are often limited to 100 updates per request.
This function helps with splitting bigger requests into sequence of
smaller ones.
Example:
def add_organization_tag(organizations, t... | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk.py#L20-L57 |
fprimex/zdesk | zdesk/zdesk.py | Zendesk.call | def call(self, path, query=None, method='GET', data=None,
files=None, get_all_pages=False, complete_response=False,
retry_on=None, max_retries=0, raw_query=None, retval=None,
**kwargs):
"""Make a REST call to the Zendesk web service.
Parameters:
path - Pat... | python | def call(self, path, query=None, method='GET', data=None,
files=None, get_all_pages=False, complete_response=False,
retry_on=None, max_retries=0, raw_query=None, retval=None,
**kwargs):
"""Make a REST call to the Zendesk web service.
Parameters:
path - Pat... | Make a REST call to the Zendesk web service.
Parameters:
path - Path portion of the Zendesk REST endpoint URL.
query - Query parameters in dict form.
method - HTTP method to use in making the request.
data - POST data or multi-part form data to include.
files - Requests ... | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk.py#L303-L598 |
fprimex/zdesk | zdesk/zdesk.py | Zendesk._handle_retry | def _handle_retry(self, resp):
"""Handle any exceptions during API request or
parsing its response status code.
Parameters:
resp: requests.Response instance obtained during concerning request
or None, when request failed
Returns: True if should retry our request or ... | python | def _handle_retry(self, resp):
"""Handle any exceptions during API request or
parsing its response status code.
Parameters:
resp: requests.Response instance obtained during concerning request
or None, when request failed
Returns: True if should retry our request or ... | Handle any exceptions during API request or
parsing its response status code.
Parameters:
resp: requests.Response instance obtained during concerning request
or None, when request failed
Returns: True if should retry our request or raises original Exception | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk.py#L600-L635 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.account_settings_update | def account_settings_update(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/account_settings#update-account-settings"
api_path = "/api/v2/account/settings.json"
return self.call(api_path, method="PUT", data=data, **kwargs) | python | def account_settings_update(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/account_settings#update-account-settings"
api_path = "/api/v2/account/settings.json"
return self.call(api_path, method="PUT", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/account_settings#update-account-settings | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L90-L93 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.account_update | def account_update(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/accounts#update-account"
api_path = "/api/v2/account"
return self.call(api_path, method="PUT", data=data, **kwargs) | python | def account_update(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/accounts#update-account"
api_path = "/api/v2/account"
return self.call(api_path, method="PUT", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/chat/accounts#update-account | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L95-L98 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.activities_list | def activities_list(self, since=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/activity_stream#list-activities"
api_path = "/api/v2/activities.json"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query... | python | def activities_list(self, since=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/activity_stream#list-activities"
api_path = "/api/v2/activities.json"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query... | https://developer.zendesk.com/rest_api/docs/core/activity_stream#list-activities | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L100-L111 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.activity_show | def activity_show(self, activity_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/activity_stream#show-activity"
api_path = "/api/v2/activities/{activity_id}.json"
api_path = api_path.format(activity_id=activity_id)
return self.call(api_path, **kwargs) | python | def activity_show(self, activity_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/activity_stream#show-activity"
api_path = "/api/v2/activities/{activity_id}.json"
api_path = api_path.format(activity_id=activity_id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/activity_stream#show-activity | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L113-L117 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.agent_create | def agent_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/agents#create-agent"
api_path = "/api/v2/agents"
return self.call(api_path, method="POST", data=data, **kwargs) | python | def agent_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/agents#create-agent"
api_path = "/api/v2/agents"
return self.call(api_path, method="POST", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/chat/agents#create-agent | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L119-L122 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.agent_delete | def agent_delete(self, agent_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/agents#delete-agent"
api_path = "/api/v2/agents/{agent_id}"
api_path = api_path.format(agent_id=agent_id)
return self.call(api_path, method="DELETE", **kwargs) | python | def agent_delete(self, agent_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/agents#delete-agent"
api_path = "/api/v2/agents/{agent_id}"
api_path = api_path.format(agent_id=agent_id)
return self.call(api_path, method="DELETE", **kwargs) | https://developer.zendesk.com/rest_api/docs/chat/agents#delete-agent | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L124-L128 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.agent_show | def agent_show(self, agent_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/agents#get-agent-by-id"
api_path = "/api/v2/agents/{agent_id}"
api_path = api_path.format(agent_id=agent_id)
return self.call(api_path, **kwargs) | python | def agent_show(self, agent_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/agents#get-agent-by-id"
api_path = "/api/v2/agents/{agent_id}"
api_path = api_path.format(agent_id=agent_id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/chat/agents#get-agent-by-id | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L130-L134 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.agent_update | def agent_update(self, agent_id, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/agents#update-agent"
api_path = "/api/v2/agents/{agent_id}"
api_path = api_path.format(agent_id=agent_id)
return self.call(api_path, method="PUT", data=data, **kwargs) | python | def agent_update(self, agent_id, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/agents#update-agent"
api_path = "/api/v2/agents/{agent_id}"
api_path = api_path.format(agent_id=agent_id)
return self.call(api_path, method="PUT", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/chat/agents#update-agent | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L136-L140 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.agents_email_show | def agents_email_show(self, email_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/agents#get-agent-by-email-id"
api_path = "/api/v2/agents/email/{email_id}"
api_path = api_path.format(email_id=email_id)
return self.call(api_path, **kwargs) | python | def agents_email_show(self, email_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/agents#get-agent-by-email-id"
api_path = "/api/v2/agents/email/{email_id}"
api_path = api_path.format(email_id=email_id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/chat/agents#get-agent-by-email-id | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L142-L146 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.agents_me_update | def agents_me_update(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/agents#update-requesting-agent"
api_path = "/api/v2/agents/me"
return self.call(api_path, method="PUT", data=data, **kwargs) | python | def agents_me_update(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/agents#update-requesting-agent"
api_path = "/api/v2/agents/me"
return self.call(api_path, method="PUT", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/chat/agents#update-requesting-agent | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L174-L177 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.any_channel_push_create | def any_channel_push_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/channel_framework#push-content-to-support"
api_path = "/api/v2/any_channel/push"
return self.call(api_path, method="POST", data=data, **kwargs) | python | def any_channel_push_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/channel_framework#push-content-to-support"
api_path = "/api/v2/any_channel/push"
return self.call(api_path, method="POST", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/channel_framework#push-content-to-support | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L179-L182 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.any_channel_validate_token_create | def any_channel_validate_token_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/channel_framework#validate-token"
api_path = "/api/v2/any_channel/validate_token"
return self.call(api_path, method="POST", data=data, **kwargs) | python | def any_channel_validate_token_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/channel_framework#validate-token"
api_path = "/api/v2/any_channel/validate_token"
return self.call(api_path, method="POST", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/channel_framework#validate-token | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L184-L187 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.app_create | def app_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#create-app"
api_path = "/api/v2/apps.json"
return self.call(api_path, method="POST", data=data, **kwargs) | python | def app_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#create-app"
api_path = "/api/v2/apps.json"
return self.call(api_path, method="POST", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/apps#create-app | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L189-L192 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.app_delete | def app_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#delete-app"
api_path = "/api/v2/apps/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | python | def app_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#delete-app"
api_path = "/api/v2/apps/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | https://developer.zendesk.com/rest_api/docs/core/apps#delete-app | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L194-L198 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.app_public_key | def app_public_key(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#get-app-public-key"
api_path = "/api/v2/apps/{id}/public_key.pem"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | python | def app_public_key(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#get-app-public-key"
api_path = "/api/v2/apps/{id}/public_key.pem"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/apps#get-app-public-key | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L200-L204 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.app_show | def app_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#get-information-about-app"
api_path = "/api/v2/apps/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | python | def app_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#get-information-about-app"
api_path = "/api/v2/apps/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/apps#get-information-about-app | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L206-L210 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.apps_installation_create | def apps_installation_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#install-app"
api_path = "/api/v2/apps/installations.json"
return self.call(api_path, method="POST", data=data, **kwargs) | python | def apps_installation_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#install-app"
api_path = "/api/v2/apps/installations.json"
return self.call(api_path, method="POST", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/apps#install-app | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L218-L221 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.apps_installation_delete | def apps_installation_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#remove-app-installation"
api_path = "/api/v2/apps/installations/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | python | def apps_installation_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#remove-app-installation"
api_path = "/api/v2/apps/installations/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | https://developer.zendesk.com/rest_api/docs/core/apps#remove-app-installation | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L223-L227 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.apps_installation_requirements | def apps_installation_requirements(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#list-requirements"
api_path = "/api/v2/apps/installations/{id}/requirements.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | python | def apps_installation_requirements(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#list-requirements"
api_path = "/api/v2/apps/installations/{id}/requirements.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/apps#list-requirements | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L229-L233 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.apps_installation_show | def apps_installation_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#show-app-installation"
api_path = "/api/v2/apps/installations/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | python | def apps_installation_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#show-app-installation"
api_path = "/api/v2/apps/installations/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/apps#show-app-installation | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L235-L239 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.apps_installations_job_status_show | def apps_installations_job_status_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#get-requirements-install-status"
api_path = "/api/v2/apps/installations/job_statuses/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | python | def apps_installations_job_status_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#get-requirements-install-status"
api_path = "/api/v2/apps/installations/job_statuses/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/apps#get-requirements-install-status | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L247-L251 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.apps_job_status_show | def apps_job_status_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#get-job-status"
api_path = "/api/v2/apps/job_statuses/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | python | def apps_job_status_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#get-job-status"
api_path = "/api/v2/apps/job_statuses/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/apps#get-job-status | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L258-L262 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.apps_location_installations_reorder | def apps_location_installations_reorder(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/app_location_installations#reorder-app-installations-for-location"
api_path = "/api/v2/apps/location_installations/reorder.json"
return self.call(api_path, method="POST", data=data, *... | python | def apps_location_installations_reorder(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/app_location_installations#reorder-app-installations-for-location"
api_path = "/api/v2/apps/location_installations/reorder.json"
return self.call(api_path, method="POST", data=data, *... | https://developer.zendesk.com/rest_api/docs/core/app_location_installations#reorder-app-installations-for-location | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L274-L277 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.apps_location_show | def apps_location_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/app_locations#show-location"
api_path = "/api/v2/apps/locations/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | python | def apps_location_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/app_locations#show-location"
api_path = "/api/v2/apps/locations/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/app_locations#show-location | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L279-L283 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.apps_notify_create | def apps_notify_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#send-notification-to-app"
api_path = "/api/v2/apps/notify.json"
return self.call(api_path, method="POST", data=data, **kwargs) | python | def apps_notify_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#send-notification-to-app"
api_path = "/api/v2/apps/notify.json"
return self.call(api_path, method="POST", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/apps#send-notification-to-app | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L290-L293 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.apps_upload_create | def apps_upload_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#upload-app-package"
api_path = "/api/v2/apps/uploads.json"
return self.call(api_path, method="POST", data=data, **kwargs) | python | def apps_upload_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/apps#upload-app-package"
api_path = "/api/v2/apps/uploads.json"
return self.call(api_path, method="POST", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/apps#upload-app-package | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L300-L303 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.attachment_show | def attachment_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/attachments#show-attachment"
api_path = "/api/v2/attachments/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | python | def attachment_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/attachments#show-attachment"
api_path = "/api/v2/attachments/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/attachments#show-attachment | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L305-L309 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.audit_log_show | def audit_log_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/audit_logs#getting-audit-logs"
api_path = "/api/v2/audit_logs/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | python | def audit_log_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/audit_logs#getting-audit-logs"
api_path = "/api/v2/audit_logs/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/audit_logs#getting-audit-logs | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L311-L315 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.audit_logs_list | def audit_logs_list(self, filter_actor_id=None, filter_created_at=None, filter_ip_address=None, filter_source_type=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/audit_logs#listing-audit-logs"
api_path = "/api/v2/audit_logs.json"
api_query = {}
if "query" in kwargs.ke... | python | def audit_logs_list(self, filter_actor_id=None, filter_created_at=None, filter_ip_address=None, filter_source_type=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/audit_logs#listing-audit-logs"
api_path = "/api/v2/audit_logs.json"
api_query = {}
if "query" in kwargs.ke... | https://developer.zendesk.com/rest_api/docs/core/audit_logs#listing-audit-logs | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L317-L340 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.automation_create | def automation_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/automations#create-automation"
api_path = "/api/v2/automations.json"
return self.call(api_path, method="POST", data=data, **kwargs) | python | def automation_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/automations#create-automation"
api_path = "/api/v2/automations.json"
return self.call(api_path, method="POST", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/automations#create-automation | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L355-L358 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.automation_delete | def automation_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/automations#delete-automation"
api_path = "/api/v2/automations/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | python | def automation_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/automations#delete-automation"
api_path = "/api/v2/automations/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | https://developer.zendesk.com/rest_api/docs/core/automations#delete-automation | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L360-L364 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.automation_show | def automation_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/automations#show-automation"
api_path = "/api/v2/automations/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | python | def automation_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/automations#show-automation"
api_path = "/api/v2/automations/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/automations#show-automation | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L366-L370 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.automations_update_many | def automations_update_many(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/automations#update-many-automations"
api_path = "/api/v2/automations/update_many.json"
return self.call(api_path, method="PUT", data=data, **kwargs) | python | def automations_update_many(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/automations#update-many-automations"
api_path = "/api/v2/automations/update_many.json"
return self.call(api_path, method="PUT", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/automations#update-many-automations | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L398-L401 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.ban_create | def ban_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/bans#create-ban"
api_path = "/api/v2/bans"
return self.call(api_path, method="POST", data=data, **kwargs) | python | def ban_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/bans#create-ban"
api_path = "/api/v2/bans"
return self.call(api_path, method="POST", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/chat/bans#create-ban | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L403-L406 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.ban_delete | def ban_delete(self, ban_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/bans#delete-ban"
api_path = "/api/v2/bans/{ban_id}"
api_path = api_path.format(ban_id=ban_id)
return self.call(api_path, method="DELETE", **kwargs) | python | def ban_delete(self, ban_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/bans#delete-ban"
api_path = "/api/v2/bans/{ban_id}"
api_path = api_path.format(ban_id=ban_id)
return self.call(api_path, method="DELETE", **kwargs) | https://developer.zendesk.com/rest_api/docs/chat/bans#delete-ban | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L408-L412 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.ban_show | def ban_show(self, ban_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/bans#get-ban"
api_path = "/api/v2/bans/{ban_id}"
api_path = api_path.format(ban_id=ban_id)
return self.call(api_path, **kwargs) | python | def ban_show(self, ban_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/bans#get-ban"
api_path = "/api/v2/bans/{ban_id}"
api_path = api_path.format(ban_id=ban_id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/chat/bans#get-ban | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L414-L418 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.bans_list | def bans_list(self, limit=None, max_id=None, since_id=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/bans#get-all-bans"
api_path = "/api/v2/bans"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
... | python | def bans_list(self, limit=None, max_id=None, since_id=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/bans#get-all-bans"
api_path = "/api/v2/bans"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
... | https://developer.zendesk.com/rest_api/docs/chat/bans#get-all-bans | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L425-L444 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.bookmark_create | def bookmark_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/bookmarks#create-bookmark"
api_path = "/api/v2/bookmarks.json"
return self.call(api_path, method="POST", data=data, **kwargs) | python | def bookmark_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/bookmarks#create-bookmark"
api_path = "/api/v2/bookmarks.json"
return self.call(api_path, method="POST", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/bookmarks#create-bookmark | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L446-L449 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.bookmark_delete | def bookmark_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/bookmarks#delete-bookmark"
api_path = "/api/v2/bookmarks/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | python | def bookmark_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/bookmarks#delete-bookmark"
api_path = "/api/v2/bookmarks/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | https://developer.zendesk.com/rest_api/docs/core/bookmarks#delete-bookmark | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L451-L455 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.brand_check_host_mapping | def brand_check_host_mapping(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/brands#check-host-mapping-validity-for-an-existing-brand"
api_path = "/api/v2/brands/{id}/check_host_mapping.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | python | def brand_check_host_mapping(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/brands#check-host-mapping-validity-for-an-existing-brand"
api_path = "/api/v2/brands/{id}/check_host_mapping.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/brands#check-host-mapping-validity-for-an-existing-brand | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L462-L466 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.brand_create | def brand_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/brands#create-brand"
api_path = "/api/v2/brands.json"
return self.call(api_path, method="POST", data=data, **kwargs) | python | def brand_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/brands#create-brand"
api_path = "/api/v2/brands.json"
return self.call(api_path, method="POST", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/brands#create-brand | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L468-L471 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.brand_delete | def brand_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/brands#delete-a-brand"
api_path = "/api/v2/brands/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | python | def brand_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/brands#delete-a-brand"
api_path = "/api/v2/brands/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | https://developer.zendesk.com/rest_api/docs/core/brands#delete-a-brand | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L473-L477 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.brand_show | def brand_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/brands#show-a-brand"
api_path = "/api/v2/brands/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | python | def brand_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/brands#show-a-brand"
api_path = "/api/v2/brands/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/brands#show-a-brand | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L479-L483 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.brands_check_host_mapping_list | def brands_check_host_mapping_list(self, host_mapping=None, subdomain=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/brands#check-host-mapping-validity"
api_path = "/api/v2/brands/check_host_mapping.json"
api_query = {}
if "query" in kwargs.keys():
api_que... | python | def brands_check_host_mapping_list(self, host_mapping=None, subdomain=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/brands#check-host-mapping-validity"
api_path = "/api/v2/brands/check_host_mapping.json"
api_query = {}
if "query" in kwargs.keys():
api_que... | https://developer.zendesk.com/rest_api/docs/core/brands#check-host-mapping-validity | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L491-L506 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.business_hours_schedule_create | def business_hours_schedule_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/schedules#create-a-schedule"
api_path = "/api/v2/business_hours/schedules.json"
return self.call(api_path, method="POST", data=data, **kwargs) | python | def business_hours_schedule_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/schedules#create-a-schedule"
api_path = "/api/v2/business_hours/schedules.json"
return self.call(api_path, method="POST", data=data, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/schedules#create-a-schedule | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L513-L516 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.business_hours_schedule_delete | def business_hours_schedule_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/schedules#delete-a-schedule"
api_path = "/api/v2/business_hours/schedules/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | python | def business_hours_schedule_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/schedules#delete-a-schedule"
api_path = "/api/v2/business_hours/schedules/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | https://developer.zendesk.com/rest_api/docs/core/schedules#delete-a-schedule | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L518-L522 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.business_hours_schedule_holiday_delete | def business_hours_schedule_holiday_delete(self, schedule_id, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/schedules#delete-a-holiday"
api_path = "/api/v2/business_hours/schedules/{schedule_id}/holidays/{id}.json"
api_path = api_path.format(schedule_id=schedule_id, id=id)
... | python | def business_hours_schedule_holiday_delete(self, schedule_id, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/schedules#delete-a-holiday"
api_path = "/api/v2/business_hours/schedules/{schedule_id}/holidays/{id}.json"
api_path = api_path.format(schedule_id=schedule_id, id=id)
... | https://developer.zendesk.com/rest_api/docs/core/schedules#delete-a-holiday | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L530-L534 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.business_hours_schedule_holiday_show | def business_hours_schedule_holiday_show(self, schedule_id, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/schedules#show-a-holiday"
api_path = "/api/v2/business_hours/schedules/{schedule_id}/holidays/{id}.json"
api_path = api_path.format(schedule_id=schedule_id, id=id)
... | python | def business_hours_schedule_holiday_show(self, schedule_id, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/schedules#show-a-holiday"
api_path = "/api/v2/business_hours/schedules/{schedule_id}/holidays/{id}.json"
api_path = api_path.format(schedule_id=schedule_id, id=id)
... | https://developer.zendesk.com/rest_api/docs/core/schedules#show-a-holiday | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L536-L540 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.business_hours_schedule_holiday_update | def business_hours_schedule_holiday_update(self, schedule_id, id, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/schedules#update-a-holiday"
api_path = "/api/v2/business_hours/schedules/{schedule_id}/holidays/{id}.json"
api_path = api_path.format(schedule_id=schedule_id, id=i... | python | def business_hours_schedule_holiday_update(self, schedule_id, id, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/schedules#update-a-holiday"
api_path = "/api/v2/business_hours/schedules/{schedule_id}/holidays/{id}.json"
api_path = api_path.format(schedule_id=schedule_id, id=i... | https://developer.zendesk.com/rest_api/docs/core/schedules#update-a-holiday | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L542-L546 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.business_hours_schedule_holidays | def business_hours_schedule_holidays(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/schedules#list-holidays-for-a-schedule"
api_path = "/api/v2/business_hours/schedules/{id}/holidays.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | python | def business_hours_schedule_holidays(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/schedules#list-holidays-for-a-schedule"
api_path = "/api/v2/business_hours/schedules/{id}/holidays.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/schedules#list-holidays-for-a-schedule | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L548-L552 |
fprimex/zdesk | zdesk/zdesk_api.py | ZendeskAPI.business_hours_schedule_show | def business_hours_schedule_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/schedules#show-a-schedule"
api_path = "/api/v2/business_hours/schedules/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | python | def business_hours_schedule_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/schedules#show-a-schedule"
api_path = "/api/v2/business_hours/schedules/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | https://developer.zendesk.com/rest_api/docs/core/schedules#show-a-schedule | https://github.com/fprimex/zdesk/blob/851611c13b4d530e9df31390b3ec709baf0a0188/zdesk/zdesk_api.py#L554-L558 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.