Cancels an Encoding.

 @param id Id of an Encoding.
 @param factory_id Id of a Factory.
 @param [Hash] opts the optional parameters
 @return [CanceledResponse]
546818
def cancel_encoding(id, factory_id, opts = {})
      data, _status_code, _headers = cancel_encoding_with_http_info(id, factory_id, opts)
      return data
    end
339255
def delete_video_source(id, factory_id, opts = {})
      data, _status_code, _headers = delete_video_source_with_http_info(id, factory_id, opts)
      return data
    end
700577
def method_missing(id_or_class, *args, &block)
      if id_or_class.to_s =~ /(.*)!$/
        @attrs[:id] = $1
      else
        id = id_or_class
        @attrs[:class] = @attrs[:class] ? "#{@attrs[:class]} #{id}".strip : id
      end

      unless args.empty?
        if args.last.respond_to? :to_hash
          @attrs.merge! args.pop.to_hash
        end
      end

      args.push(@attrs)

      while @stream.length > @original_stream_length
        @stream.pop
      end

      if block
        @builder.tag! @sym, *args, &block
      else
        @builder.tag! @sym, *args
      end

      self
    end
1193997
def delete(id)
      return true unless id
      with_redis { |redis| redis.del(redis_key_for(id)) }
      true
    end
447985
def valid_id(opts, id_):
    '''
    
    '''
    try:
        if any(x in id_ for x in ('/', '\\', str('\0'))):
            return False
        return bool(clean_path(opts['pki_dir'], id_))
    except (AttributeError, KeyError, TypeError, UnicodeDecodeError):
        return False
935313
def id(opts):
    '''
    
    '''
    r = salt.utils.http.query(opts['proxy']['url']+'id', decode_type='json', decode=True)
    return r['dict']['id'].encode('ascii', 'ignore')
1228216
function (id) {
      return typeof id === 'number' ?
        clear(id) :
        void(
          drop(qframe, id) ||
          drop(qidle, id) ||
          drop(qframex, id) ||
          drop(qidlex, id)
        );
    }
139812
protected void disableApiKeyInternal(final ObjectId id) {
    final StitchAuthRequest.Builder reqBuilder = new StitchAuthRequest.Builder();
    reqBuilder
            .withMethod(Method.PUT)
            .withPath(routes.getApiKeyDisableRouteForId(id.toHexString()))
            .withRefreshToken();
    getRequestClient().doAuthenticatedRequest(reqBuilder.build());
  }
1265846
def per_from_id_except(s, flavors=chat_flavors+inline_flavors):
    
    return _wrap_none(lambda msg:
                          msg['from']['id']
                          if (flavors == 'all' or flavor(msg) in flavors) and msg['from']['id'] not in s
                          else None)
134746
def per_from_id_in(s, flavors=chat_flavors+inline_flavors):
    
    return _wrap_none(lambda msg:
                          msg['from']['id']
                          if (flavors == 'all' or flavor(msg) in flavors) and msg['from']['id'] in s
                          else None)
495493
def status_unmute(self, id):
        
        id = self.__unpack_id(id)
        url = '/api/v1/statuses/{0}/unmute'.format(str(id))
        return self.__api_request('POST', url)
413199
function encode(batch, id, ver) {
    //producerId min 2 digits
    let producerId = b36.int2Str36(batch.producerId).padStart(2, '0');
    //producerId min 3 digits
    let batchId = b36.int2Str36(batch.id).padStart(3, '0');
    //id min 2 digits
    id = b36.int2Str36(id).padStart(3, '0');

    let msg = composeCode(producerId, batchId, id);

    let sign = sign2Str36(dsa.doSign(batch.dsa, batch.privateKey, msg, hash.vsHash));

    let codeDescr =  generateCodeDescr(producerId, batchId, id, sign, ver);

    return codeDescr ? (codeDescr + msg + sign) : '';
}
91920
def cancel(id)
      have_key?
      address = @url_privat + "/api/exchange/orders/" + id
      body = { }
      h = delete_ssl_with_sign(address, body)
      {
        "success" => h["success"],
      }
    end
615711
def post_event_cancel(self, id, **data):
        
        
        return self.post("/events/{0}/cancel/".format(id), data=data)
979685
def strip_suffix(id):
    
    suffix = get_suffix(id)
    if not suffix:
        return id
    return re.split(suffix, id)[0]
1364246
def decode(self, ids, strip_extraneous=False):
    
    if strip_extraneous:
      ids = strip_ids(ids, list(range(self._num_reserved_ids or 0)))
    return unicode_to_native(
        tokenizer.decode(self._subtoken_ids_to_tokens(ids)))
847624
def encoding_option(opts)
      encoding_desc = 'Specify the default encoding for input files.'
      opts.on('-E', '--default-encoding ENCODING', encoding_desc) do |encoding|
        Encoding.default_external = encoding
      end
    end