Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def custom_virtualenv(self, value):
"""Update the custom_virtualenv of the group.
Returns:
None:
"""
max_characters = 100
conditions = [validate_max_length(value, max_characters)]
if all(conditions):
self._update_values('custom_virtualenv', value)
else:
raise InvalidValue('{value} is invalid. Condition max_characters must be less than or equal to '
'{max_characters}'.format(value=value, max_characters=max_characters))
def name(self, value):
"""Update the name of the inventory source.
Returns:
None:
"""
max_characters = 512
conditions = [validate_max_length(value, max_characters)]
if all(conditions):
self._update_values('name', value)
else:
raise InvalidValue(('{value} is invalid. Condition max_characters must be '
'less or equal to {max_characters}').format(value=value,
max_characters=max_characters))
def scm_url(self, value):
"""Update the scm_url project.
Returns:
None:
"""
max_characters = 1024
conditions = [validate_max_length(value, max_characters)]
if all(conditions):
self._update_values('scm_url', value)
else:
raise InvalidValue('{value} is invalid. Condition max_characters must be less than or equal to '
'{max_characters}'.format(value=value, max_characters=max_characters))
def instance_id(self, value):
"""Update the instance_id of the host.
Returns:
None:
"""
max_characters = 1024
conditions = [validate_max_length(value, max_characters)]
if all(conditions):
self._update_values('instance_id', value)
else:
raise InvalidValue('{value} is invalid. Condition max_characters must be less than or equal to '
'{max_characters}'.format(value=value, max_characters=max_characters))
def custom_virtualenv(self, value):
"""Update the custom_virtualenv of the group.
Returns:
None:
"""
max_characters = 100
conditions = [validate_max_length(value, max_characters)]
if all(conditions):
self._update_values('custom_virtualenv', value)
else:
raise InvalidValue('{value} is invalid. Condition max_characters must be less than or equal to '
'{max_characters}'.format(value=value, max_characters=max_characters))
def name(self, value):
"""Update the name of the organization.
Returns:
None:
"""
max_characters = 512
conditions = [validate_max_length(value, max_characters)]
if all(conditions):
self._update_values('name', value)
else:
raise InvalidValue('{value} is invalid. Condition max_characters must be less than or equal to '
'{max_characters}'.format(value=value, max_characters=max_characters))
def name(self, value):
"""Update the name of the project.
Returns:
None:
"""
max_characters = 512
conditions = [validate_max_length(value, max_characters)]
if all(conditions):
self._update_values('name', value)
else:
raise InvalidValue('{value} is invalid. Condition max_characters must be less than or equal to '
'{max_characters}'.format(value=value, max_characters=max_characters))
def name(self, value):
"""Update the name of the credential type.
Returns:
None:
"""
max_characters = 512
conditions = [validate_max_length(value, max_characters)]
if all(conditions):
self._update_values('name', value)
else:
raise InvalidValue('{value} is invalid. Condition max_characters must be less or equal '
'{max_characters}'.format(value=value, max_characters=max_characters))
def name(self, value):
"""Update the name of the team.
Returns:
None:
"""
max_characters = 512
conditions = [validate_max_length(value, max_characters)]
if all(conditions):
self._update_values('name', value)
else:
raise InvalidValue('{value} is invalid. Condition max_characters must be less or equal to '
'{max_characters}'.format(value=value, max_characters=max_characters))
def name(self, value):
"""Update the name of the inventory script.
Returns:
None:
"""
max_characters = 512
conditions = [validate_max_length(value, max_characters)]
if all(conditions):
self._update_values('name', value)
else:
raise InvalidValue(('{value} is invalid. Condition max_characters must be '
'less or equal to {max_characters}').format(value=value,
max_characters=max_characters))