Invokes the /database-xxxx/addTags API method.

    For more info, see: https://wiki.dnanexus.com/API-Specification-v1.0.0/Tags#API-method%3A-%2Fclass-xxxx%2FaddTags
354136
def database_add_tags(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/addTags' % object_id, input_params, always_retry=always_retry, **kwargs)
1298785
@SuppressWarnings("unchecked")
    public T addTags(List<String> tags) {
        if (this.tags_ == null) {
            tags_ = new ArrayList<>();
        }
        this.tags_.addAll(tags);
        return (T) this;
    }
441126
def add_tags(host)
      host[:host_tags].merge(
          'beaker_version'    => Beaker::Version::STRING,
          'jenkins_build_url' => @options[:jenkins_build_url],
          'department'        => @options[:department],
          'project'           => @options[:project],
          'created_by'        => @options[:created_by],
          'name'              => host.name,
          'roles'             => host.host_hash[:roles].join(', ')
      )
    end
1273213
public void addTag(String tag) {
        if (this.tags == null) {
            tags = new ArrayList<String>();
        }
        this.tags.add(tag);
    }
794171
def add_tags(self, tags):
        

        if isinstance(tags, (str, unicode)):
            tags = [tags]

        objs = object_session(self)
        tmps = [FeedTag(tag=t, feed=self) for t in tags]
        objs.add_all(tmps)
        objs.commit()
782571
def add_tag(self, name, value):
        

        self.tags.append(Tag(name, value))
54957
def update_tag(self, name):
        # The `_tag` is to avoid conflicts with MutableMapping.update.
        
        api = self.doapi_manager
        return api._tag(api.request(self.url, method='PUT',
                                    data={"name": name})["tag"])
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
46227
def add_tag(tag_name, timeout)
      cmd = { :name => :add_tag, :tag => tag_name }
      response = blocking_request(cmd, timeout)
      result = OperationResult.from_results(load(response, "Unexpected response #{response.inspect}"))
      if result.success?
        ::Chef::Log.info("Successfully added tag #{tag_name}")
      else
        raise TagError.new("Add tag failed: #{result.content}")
      end
      true
    end
984272
public function addTags($id, array $tags, $identifyBy = 'email')
    {
        $request = new Request('subscribers');
        $request->setQuery(['identified_by' => $identifyBy]);
        $request->setIdParam($id);
        $request->addSubresource(['name' => 'tags']);
        $request->setParams(['tags' => $tags]);

        $response = $this->client->post($request);

        $this->assertSuccessResponse($response);

        return $response->getData();

    }
839228
def addTag( self, tag ):
        
        if ( not (tag and self.isTagValid(tag)) ):
            return False
        
        self.blockSignals(True)
        create_item = self.createItem()
        if create_item:
            self.insertItem(self.row(create_item), XMultiTagItem(tag, self))
            create_item.setText('')
        else:
            self.addItem(XMultiTagItem(tag, self))
        self.blockSignals(False)
        
        if ( not self.signalsBlocked() ):
            self.tagCreated.emit(tag)
        
        return False
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})
568815
public CreateSimulationApplicationResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
138422
def addTags(self, tags):
        
        method = 'flickr.photos.addTags'
        if isinstance(tags, list):
            tags = uniq(tags)

        _dopost(method, auth=True, photo_id=self.id, tags=tags)
        #load properties again
        self._load_properties()
21384
def add_tags(self):
        
        session = boto3.session.Session(profile_name=self.env, region_name=self.region)
        resource = session.resource('ec2')
        group_id = get_security_group_id(self.app_name, self.env, self.region)
        security_group = resource.SecurityGroup(group_id)

        try:
            tag = security_group.create_tags(
                DryRun=False,
                Tags=[{
                    'Key': 'app_group',
                    'Value': self.group
                }, {
                    'Key': 'app_name',
                    'Value': self.app_name
                }])
            self.log.debug('Security group has been tagged: %s', tag)
        except botocore.exceptions.ClientError as error:
            self.log.warning(error)

        return True
955360
private function setTag()
    {
        $Params = $this->getURLParams();
        $tag = Tag::get()
            ->filter(array('URLSegment' => Convert::raw2sql($Params['ID'])))->first();
        $this->current_tag = $tag;
    }
927397
def add_tag(self, tag):
        
        if tag not in self._tags:
            self._tags[tag] = dict()