Sets the CoAP version

        :param v: the version
        :raise AttributeError: if value is not 1
327168
def version(self, v):
        
        if not isinstance(v, int) or v != 1:
            raise AttributeError
        self._version = v
53161
public function setVersion($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->version !== $v) {
            $this->version = $v;
            $this->modifiedColumns[DealerContactInfoTableMap::VERSION] = true;
        }


        return $this;
    }
945154
def add_version_func(self, show_version):
        '''  '''
        if callable(show_version):
            self.__show_version_func = show_version
        else:
            self.__show_version_func = lambda cli, args: print(show_version)
        self.parser.add_argument("-V", "--version", action="store_true")
263141
function setVersion(type, ver) {

  const idx = verMap[type];
  let cur = verArr[idx];
  let next = cur + 1;

  if (isTruthy(ver))
    next = ver;

  if (isTruthy(ver)) {
    verArr[idx] = ver;
  }

  else {
    if (type === 'patch') {
      if (next > maxPatch) {
        // zero current stepping
        // up to minor.
        verArr[idx] = 0;
        return setVersion('minor');
      }
      else {
        verArr[idx] = next;
      }
    }
    else if (type === 'minor') {
      if (next > maxMinor) {
        // zero current stepping
        // up to major.
        verArr[idx] = 0;
        return setVersion('major');
      }
      else {
        verArr[idx] = next;
      }
    }
    else {
      verArr[idx] = next;
    }
  }

}
917102
def set(self, path, value, version=-1):
        
        value = to_bytes(value)
        super(XClient, self).set(path, value, version)
849380
public void setVersion(String v) {
    if (ResourceEntry_Type.featOkTst && ((ResourceEntry_Type)jcasType).casFeat_version == null)
      jcasType.jcas.throwFeatMissing("version", "de.julielab.jules.types.ResourceEntry");
    jcasType.ll_cas.ll_setStringValue(addr, ((ResourceEntry_Type)jcasType).casFeatCode_version, v);}
480598
def _cmp_version(item1, item2):
    '''
    
    '''
    vers1 = _LooseVersion(item1)
    vers2 = _LooseVersion(item2)

    if vers1 < vers2:
        return -1
    if vers1 > vers2:
        return 1
    return 0
446945
def setVersion(self, version):
        
        try:
            sha = self.versions(version).commit.sha
            self.git.reset("--hard", sha)
        except Exception, e:
            raise RepoError(e)
830007
def set_version(self, version):
        
        self.parser.add_argument(
            "--version",
            action="version",
            version="%(prog)s {} (core {})".format(
                version, devpipeline_core.version.STRING
            ),
        )
985504
def set_major(self):
        
        old_version = self.get_version()
        new_version = str(int(old_version.split('.', 5)[0])+1) + '.0.0'
        self.set_version(old_version, new_version)
822928
def set_installed_version(vcs, version):
    
    version_path = _get_version_path(vcs)
    with open(version_path, 'w') as f:
        f.write(version)
1068687
def set(self, path, value, version):
        
        if self.in_transaction:
            self.client_context.set_data(path, value, version=version)
        else:
            self.client_context.set(path, value, version=version)
669402
def is_version(value):
    """"""
    try:
        value = str(value)
        if not parse_ver('1.4') <= parse_ver(value):
            raise ValueError()
        return value
    except (AttributeError, TypeError, ValueError):
        raise vol.Invalid(
            '{} is not a valid version specifier'.format(value))
412349
def set_stripe_api_version(version=None, validate=True):
	
	version = version or get_stripe_api_version()

	if validate:
		valid = validate_stripe_api_version(version)
		if not valid:
			raise ValueError("Bad stripe API version: {}".format(version))

	stripe.api_version = version
1112075
def setvcpus(vm_, vcpus):
    '''
    
    '''
    with _get_xapi_session() as xapi:
        vm_uuid = _get_label_uuid(xapi, 'VM', vm_)
        if vm_uuid is False:
            return False
        try:
            xapi.VM.set_VCPUs_number_live(vm_uuid, vcpus)
            return True
        except Exception:
            return False
454632
public void setY(float v) {
    if (DocumentElement_Type.featOkTst && ((DocumentElement_Type)jcasType).casFeat_y == null)
      jcasType.jcas.throwFeatMissing("y", "ch.epfl.bbp.uima.types.DocumentElement");
    jcasType.ll_cas.ll_setFloatValue(addr, ((DocumentElement_Type)jcasType).casFeatCode_y, v);}
292648
public void setIssue(String v) {
    if (Journal_Type.featOkTst && ((Journal_Type)jcasType).casFeat_issue == null)
      jcasType.jcas.throwFeatMissing("issue", "de.julielab.jules.types.Journal");
    jcasType.ll_cas.ll_setStringValue(addr, ((Journal_Type)jcasType).casFeatCode_issue, v);}