add_tag(context, id, name)

    Attach a tag to a job.

    >>> dcictl job-add-tag [OPTIONS]

    :param string id: ID of the job to attach the tag on [required]
    :param string tag_name: name of the tag to be attached [required]
494384
def add_tag(context, id, name):
    

    result = job.add_tag(context, id=id, name=name)
    utils.format_output(result, context.format)
447748
def file_add_tags(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/addTags' % object_id, input_params, always_retry=always_retry, **kwargs)
1341018
def add_job(self, job_name, job_id=None):
        
        logger.debug('Creating a new job named {0}'.format(job_name))
        if not self._name_is_available(job_name):
            raise DagobahError('name %s is not available' % job_name)

        if not job_id:
            job_id = self.backend.get_new_job_id()
            self.created_jobs += 1

        self.jobs.append(Job(self,
                             self.backend,
                             job_id,
                             job_name))

        job = self.get_job(job_name)
        job.commit()
1093161
def add_tags(self, tags, **kwargs):
        

        dxpy.api.job_add_tags(self._dxid, {"tags": tags}, **kwargs)
480993
def add_tags(self, tags, **kwargs):
        

        dxpy.api.analysis_add_tags(self._dxid, {"tags": tags}, **kwargs)
536695
def job_add_tags(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/addTags' % object_id, input_params, always_retry=always_retry, **kwargs)
43719
def onTagDel(self, name, func):
        '''
        

        '''
        if '*' in name:
            self.ontagdelglobs.add(name, func)
        else:
            self.ontagdels[name].append(func)
471116
def add_tags(alert_ids, tags)
      query = generate_query_params(alertIds: alert_ids, tags: tags)
      http_put('/tags' + query, {})
    end
1207609
def update(self, tag_id, name):
        
        name = to_text(name)
        return self._post(
            'tags/update',
            data={
                'tag': {
                    'id': int(tag_id),
                    'name': name
                }
            }
        )
370680
def add_tag(
            self,
            tag):
        

        if tag.replace("@", "") in self.tags:
            return

        self.refresh
        oldContent = self.to_string(indentLevel=1)
        self.tags += [tag.replace("@", "")]
        newContent = self.to_string(indentLevel=1)

        # ADD DIRECTLY TO CONTENT IF THE PROJECT IS BEING ADDED SPECIFICALLY TO
        # THIS OBJECT
        self.parent._update_document_tree(
            oldContent=oldContent,
            newContent=newContent
        )

        self.refresh
        return None
893662
def applet_add_tags(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/addTags' % object_id, input_params, always_retry=always_retry, **kwargs)
622751
def delete_tag(context, id, tag_id):
    

    result = job.delete_tag(context, id=id, tag_id=tag_id)
    if result.status_code == 204:
        utils.print_json({'id': id, 'message': 'Tag removed.'})
    else:
        utils.format_output(result, context.format)
1267058
def add_tags(self, tags):
        
        if not isinstance(tags, list):
            tags = [tags]
        self._bugsy.request('bug/comment/%s/tags' % self._comment['id'],
                            method='PUT', json={"add": tags})
1188144
def get_tag(self, name, params=None):
        
        return self.tag(name, action='GET', params=params)
423898
def _remap_tag_to_tag_id(cls, tag, new_data):
        ''''''
        try:
            value = new_data[tag]
        except:
            # If tag wasn't changed, just return
            return

        tag_id = tag + '_id'
        try:
            # Remap the ID change to the required field
            new_data[tag_id] = value['id']
        except:
            try:
                # Try and grab the id of the object
                new_data[tag_id] = value.id
            except AttributeError:
                # If the changes field is not a dict or object, just use whatever value was given
                new_data[tag_id] = value

        # Remove the tag from the changed data
        del new_data[tag]
160041
def tag_add(self, *tags):
        
        return View({**self.spec, 'tag': list(set(self.tags) | set(tags))})
1212099
def get_tag(self, tag_id):
        
        url = self._generate_url('tags/{0}'.format(tag_id))
        return self.get(url)