Home
last modified time | relevance | path

Searched refs:arg_spec (Results 1 – 25 of 422) sorted by relevance

12345678910>>...17

/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/module_utils/
H A Dapi.py35 arg_spec = (dict(
40 arg_spec.update(spec)
41 return arg_spec
46 arg_spec = (dict(
51 arg_spec.update(spec)
52 return arg_spec
56 arg_spec = (dict(
63 arg_spec.update(spec)
64 return arg_spec
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/lib/ansible/module_utils/
H A Dapi.py37 arg_spec = (dict(
42 arg_spec.update(spec)
43 return arg_spec
48 arg_spec = (dict(
53 arg_spec.update(spec)
54 return arg_spec
58 arg_spec = (dict(
65 arg_spec.update(spec)
66 return arg_spec
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/lib/ansible/module_utils/
H A Dapi.py37 arg_spec = (dict(
42 arg_spec.update(spec)
43 return arg_spec
48 arg_spec = (dict(
53 arg_spec.update(spec)
54 return arg_spec
58 arg_spec = (dict(
65 arg_spec.update(spec)
66 return arg_spec
/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/modules/net_tools/nios/
H A Dnios_fixed_address.py196 def validate_ip_addr_type(ip, arg_spec, module): argument
201 if validate_ip_address(check_ip[0]) and 'ipaddr' in arg_spec:
202 arg_spec['ipv4addr'] = arg_spec.pop('ipaddr')
204 return NIOS_IPV4_FIXED_ADDRESS, arg_spec, module
205 elif validate_ip_v6_address(check_ip[0]) and 'ipaddr' in arg_spec:
206 arg_spec['ipv6addr'] = arg_spec.pop('ipaddr')
208 return NIOS_IPV6_FIXED_ADDRESS, arg_spec, module
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
H A Ddecorators.py32 arg_spec = inspect.getargspec(func)
33 is_method = arg_spec.args and arg_spec.args[0] == "self"
36 arg_index = arg_spec.args.index(name)
37 defaults_length = len(arg_spec.defaults) if arg_spec.defaults else 0
38 default_index = arg_index + defaults_length - len(arg_spec.args)
40 default = arg_spec.defaults[default_index]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
H A Ddecorators.py32 arg_spec = inspect.getargspec(func)
33 is_method = arg_spec.args and arg_spec.args[0] == "self"
36 arg_index = arg_spec.args.index(name)
37 defaults_length = len(arg_spec.defaults) if arg_spec.defaults else 0
38 default_index = arg_index + defaults_length - len(arg_spec.args)
40 default = arg_spec.defaults[default_index]
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/general/plugins/modules/net_tools/nios/
H A Dnios_fixed_address.py235 def validate_ip_addr_type(ip, arg_spec, module): argument
240 if validate_ip_address(check_ip[0]) and 'ipaddr' in arg_spec:
241 arg_spec['ipv4addr'] = arg_spec.pop('ipaddr')
243 return NIOS_IPV4_FIXED_ADDRESS, arg_spec, module
244 elif validate_ip_v6_address(check_ip[0]) and 'ipaddr' in arg_spec:
245 arg_spec['ipv6addr'] = arg_spec.pop('ipaddr')
247 return NIOS_IPV6_FIXED_ADDRESS, arg_spec, module
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/general/plugins/modules/
H A Dnios_fixed_address.py235 def validate_ip_addr_type(ip, arg_spec, module): argument
240 if validate_ip_address(check_ip[0]) and 'ipaddr' in arg_spec:
241 arg_spec['ipv4addr'] = arg_spec.pop('ipaddr')
243 return NIOS_IPV4_FIXED_ADDRESS, arg_spec, module
244 elif validate_ip_v6_address(check_ip[0]) and 'ipaddr' in arg_spec:
245 arg_spec['ipv6addr'] = arg_spec.pop('ipaddr')
247 return NIOS_IPV6_FIXED_ADDRESS, arg_spec, module
/dports/devel/py-autocommand/autocommand-2.2.1/src/autocommand/
H A Dautoparse.py103 arg_spec = {}
120 arg_spec['default'] = default
128 arg_spec['action'] = 'store_true'
130 arg_spec['action'] = 'store_false'
137 arg_spec['type'] = str
146 arg_spec['type'] = arg_type
153 arg_spec['nargs'] = '*'
157 arg_spec['help'] = description
176 arg_spec['dest'] = name
180 parser.add_argument(*flags, **arg_spec)
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/test/units/module_utils/common/arg_spec/
H A Dtest_sub_spec.py8 from ansible.module_utils.common.arg_spec import ArgumentSpecValidator, ValidationResult
12 arg_spec = {
42 v = ArgumentSpecValidator(arg_spec)
51 arg_spec = {
101 v = ArgumentSpecValidator(arg_spec)
H A Dtest_module_validate.py10 from ansible.module_utils.common.arg_spec import ModuleArgumentSpecValidator, ValidationResult
14 arg_spec = {'name': {}}
18 v = ModuleArgumentSpecValidator(arg_spec)
29 arg_spec = {
42 v = ModuleArgumentSpecValidator(arg_spec)
H A Dtest_aliases.py11 from ansible.module_utils.common.arg_spec import ArgumentSpecValidator, ValidationResult
91 def test_aliases(arg_spec, parameters, expected, deprecation, warning): argument
92 v = ArgumentSpecValidator(arg_spec)
115 def test_aliases_invalid(arg_spec, parameters, expected, error): argument
116 v = ArgumentSpecValidator(arg_spec)
H A Dtest_validate_invalid.py10 from ansible.module_utils.common.arg_spec import ArgumentSpecValidator, ValidationResult
112 def test_invalid_spec(arg_spec, parameters, expected, unsupported, error): argument
113 v = ArgumentSpecValidator(arg_spec)
H A Dtest_validate_valid.py12 from ansible.module_utils.common.arg_spec import ArgumentSpecValidator, ValidationResult
323 def test_valid_spec(arg_spec, parameters, expected, valid_params, mocker): argument
327 v = ArgumentSpecValidator(arg_spec)
/dports/math/py-keras/Keras-2.4.3/keras/utils/
H A Dgeneric_utils.py179 arg_spec = inspect.getargspec(fn)
180 if accept_all and arg_spec.keywords is not None:
182 return (name in arg_spec.args)
184 arg_spec = inspect.getfullargspec(fn)
185 if accept_all and arg_spec.varkw is not None:
187 return (name in arg_spec.args or
188 name in arg_spec.kwonlyargs)
/dports/devel/b2/B2_Command_Line_Tool-1.3.8/test/
H A Dtest_parse_args.py93 arg_spec = dict(self.NO_ARGS)
94 arg_spec['optional_before'] = ['a']
95 arg_spec['required'] = ['a']
99 parse_arg_list([], **arg_spec)
/dports/databases/redisdesktopmanager/RedisDesktopManager-2021.8/src/resources/
H A Dconvert_commands.py25 arg_spec = " ".join(parts)
28 arguments.append("[%s]" % arg_spec)
30 arguments.append(arg_spec)
/dports/java/eclipse-pydev/eclipse-pydev-8.2.0/plugins/org.python.pydev.core_8.2.0.202102211157/pysrc/_pydev_bundle/
H A D_pydev_imports_tipper.py22 arg_spec = getfullargspec(*args, **kwargs)
23 …return arg_spec.args, arg_spec.varargs, arg_spec.varkw, arg_spec.defaults, arg_spec.kwonlyargs or …
/dports/devel/pycharm-pro/pycharm-2020.2.3/plugins/python/helpers/pydev/_pydev_bundle/
H A D_pydev_imports_tipper.py21 arg_spec = getfullargspec(*args, **kwargs)
22 …return arg_spec.args, arg_spec.varargs, arg_spec.varkw, arg_spec.defaults, arg_spec.kwonlyargs or …
/dports/devel/py-debugpy/debugpy-1.5.1/src/debugpy/_vendored/pydevd/_pydev_bundle/
H A D_pydev_imports_tipper.py22 arg_spec = getfullargspec(*args, **kwargs)
23 …return arg_spec.args, arg_spec.varargs, arg_spec.varkw, arg_spec.defaults, arg_spec.kwonlyargs or …
/dports/sysutils/ansible2/ansible-2.9.27/test/units/module_utils/basic/
H A Dtest_argument_spec.py113 arg_spec = dict(
130 argument_spec=arg_spec,
157 arg_spec = dict(
182 argument_spec=arg_spec,
654 arg_spec = {
657 am = basic.AnsibleModule(arg_spec)
667 arg_spec = {
670 am = basic.AnsibleModule(arg_spec)
678 arg_spec = {
681 am = basic.AnsibleModule(arg_spec)
/dports/devel/gbump/gbump-1.0.1/cargo-crates/git2-0.10.1/examples/
H A Dadd.rs25 arg_spec: Vec<String>, field
60 index.update_all(args.arg_spec.iter(), cb)?; in run()
62 index.add_all(args.arg_spec.iter(), git2::IndexAddOption::DEFAULT, cb)?; in run()
/dports/devel/interactive_rebase_tool/git-interactive-rebase-tool-1.2.1/cargo-crates/git2-0.7.5/examples/
H A Dadd.rs29 arg_spec: Vec<String>, field
59 try!(index.update_all(args.arg_spec.iter(), cb)); in run()
61 try!(index.add_all(args.arg_spec.iter(), git2::IndexAddOption::DEFAULT, cb)); in run()
/dports/misc/broot/broot-1.7.0/cargo-crates/git2-0.13.20/examples/
H A Dadd.rs25 arg_spec: Vec<String>, field
66 index.update_all(args.arg_spec.iter(), cb)?; in run()
68 index.add_all(args.arg_spec.iter(), git2::IndexAddOption::DEFAULT, cb)?; in run()
/dports/devel/sentry-cli/sentry-cli-1.71.0/cargo-crates/git2-0.13.22/examples/
H A Dadd.rs25 arg_spec: Vec<String>, field
66 index.update_all(args.arg_spec.iter(), cb)?; in run()
68 index.add_all(args.arg_spec.iter(), git2::IndexAddOption::DEFAULT, cb)?; in run()

12345678910>>...17