Skip to content
Open
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
532f744
[Enabler] [2053] [zos_data_set] Add_support_for_noscratch_option (#2202)
mayankmani-sde Jul 9, 2025
5134997
Adding new module
surendrababuravella Aug 2, 2025
19de431
Update zos_started_task.py
surendrababuravella Aug 11, 2025
256d4c9
Updating testcases
surendrababuravella Aug 11, 2025
8cd6c69
Updating test cases
surendrababuravella Aug 11, 2025
241fabf
Updating testcases
surendrababuravella Aug 12, 2025
b6592c5
Adding features in display command and updating testcases
surendrababuravella Aug 28, 2025
fd063b7
update parameters
surendrababuravella Aug 30, 2025
2d2877b
Added RST for started task
fernandofloresg Sep 7, 2025
08cdd4c
Features update
surendrababuravella Sep 8, 2025
c7a20f2
Merge branch 'enhancement/zos_started_task' of https://github.com/ans…
surendrababuravella Sep 8, 2025
9c244a1
Adding generic parameters support
surendrababuravella Sep 10, 2025
38cf15b
Update better_arg_parser.py
surendrababuravella Sep 10, 2025
1542041
Merge remote-tracking branch 'origin/dev' into enhancement/zos_starte…
surendrababuravella Sep 10, 2025
20f9223
Delete 2202-zos_data_set-Support-noscratch-options.yml
surendrababuravella Sep 10, 2025
45fd79d
Update zos_started_task.py
surendrababuravella Sep 10, 2025
ac961fb
Update testcases
surendrababuravella Sep 10, 2025
416cc5b
Update test_zos_started_task_func.py
surendrababuravella Sep 10, 2025
b5a225c
Update zos_started_task.py
surendrababuravella Sep 11, 2025
8f0dda3
adding time zone changes
surendrababuravella Sep 11, 2025
712828b
Update zos_started_task.py
surendrababuravella Sep 15, 2025
da3e810
Update zos_started_task.py
surendrababuravella Sep 15, 2025
0c19b4f
Update zos_started_task.py
surendrababuravella Sep 17, 2025
203cde7
Updating testcases
surendrababuravella Sep 18, 2025
dd58e0d
Update zos_started_task.py
surendrababuravella Sep 18, 2025
a5f1325
Update test_zos_started_task_func.py
surendrababuravella Sep 18, 2025
1a47874
Resolving PR review comments
surendrababuravella Sep 19, 2025
e097e77
Update zos_started_task.py
surendrababuravella Sep 19, 2025
e39507b
Added msg in all error responses
surendrababuravella Sep 22, 2025
9b459ef
Replacing error strings with error codes
surendrababuravella Sep 22, 2025
d40565e
Updating documentation
surendrababuravella Sep 22, 2025
cae13dc
Merge branch 'dev' into enhancement/zos_started_task
surendrababuravella Sep 22, 2025
61fa37b
Update zos_started_task.rst
surendrababuravella Sep 22, 2025
f95db5f
Merge branch 'enhancement/zos_started_task' of https://github.com/ans…
surendrababuravella Sep 22, 2025
b47b3de
Addressing PR comments
surendrababuravella Sep 24, 2025
d87d314
resolving PR comments
surendrababuravella Sep 25, 2025
8eb0c12
Merge branch 'dev' into enhancement/zos_started_task
fernandofloresg Sep 26, 2025
cc68275
resolving review comments
surendrababuravella Sep 27, 2025
8852bfa
Update zos_started_task.rst
surendrababuravella Sep 27, 2025
0380841
Merge branch 'enhancement/zos_started_task' of https://github.com/ans…
surendrababuravella Sep 27, 2025
d44bcf7
Updating doc changes
surendrababuravella Sep 29, 2025
b726c6e
Adding document updates
surendrababuravella Sep 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
605 changes: 605 additions & 0 deletions docs/source/modules/zos_started_task.rst

Large diffs are not rendered by default.

95 changes: 95 additions & 0 deletions plugins/module_utils/better_arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def __init__(self, arg_name, contents, resolved_args, arg_defs):
# TODO: determine if we should optionally allow top-level args to be passed
self.type_handlers = {
"dict": self._dict_type,
"basic_dict": self._basic_dict_type,
"list": self._list_type,
"str": self._str_type,
"bool": self._bool_type,
Expand All @@ -160,6 +161,8 @@ def __init__(self, arg_name, contents, resolved_args, arg_defs):
"data_set": self._data_set_type,
"data_set_base": self._data_set_base_type,
"data_set_member": self._data_set_member_type,
"member_name": self._member_name_type,
"identifier_name": self._identifier_name_type,
"qualifier": self._qualifier_type,
"qualifier_or_empty": self._qualifier_or_empty_type,
"qualifier_pattern": self._qualifier_pattern_type,
Expand Down Expand Up @@ -252,6 +255,32 @@ def _dict_type(self, contents, resolved_dependencies):
self._assert_mutually_exclusive(contents)
return contents

def _basic_dict_type(self, contents, resolve_dependencies):
"""Resolver for basic dict type arguments.

Parameters
----------
contents : dict
The contents of the argument.
resolved_dependencies : dict
Contains all of the dependencies and their contents,
which have already been handled,
for use during current arguments handling operations.

Returns
-------
dict
The arguments contents after any necessary operations.

Raises
------
ValueError
When contents is invalid argument type.
"""
if not isinstance(contents, dict):
raise ValueError('Invalid argument "{0}" for type "dict".'.format(contents))
return contents

def _str_type(self, contents, resolve_dependencies):
"""Resolver for str type arguments.

Expand Down Expand Up @@ -329,6 +358,72 @@ def _bool_type(self, contents, resolve_dependencies):
raise ValueError('Invalid argument "{0}" for type "bool".'.format(contents))
return contents

def _member_name_type(self, contents, resolve_dependencies):
"""Resolver for PDS/E member name type arguments. This is part of
zos_started_task member name validfation.

Parameters
----------
contents : bool
The contents of the argument.
resolved_dependencies : dict
Contains all of the dependencies and their contents,
which have already been handled,
for use during current arguments handling operations.

Returns
-------
str
The arguments contents after any necessary operations.

Raises
------
ValueError
When contents is invalid argument type.
"""
if not fullmatch(
r"^[A-Z$#@]{1}[A-Z0-9$#@]{0,7}$",
str(contents),
IGNORECASE,
):
raise ValueError(
'Invalid argument "{0}" for type "member_name".'.format(contents)
)
return str(contents)

def _identifier_name_type(self, contents, resolve_dependencies):
"""Resolver for identifier name type arguments. This is part of
zos_started_task identifier name validation.

Parameters
----------
contents : bool
The contents of the argument.
resolved_dependencies : dict
Contains all of the dependencies and their contents,
which have already been handled,
for use during current arguments handling operations.

Returns
-------
str
The arguments contents after any necessary operations.

Raises
------
ValueError
When contents is invalid argument type.
"""
if not fullmatch(
r"^[A-Z]{1}[A-Z0-9$#@]{0,7}$",
str(contents),
IGNORECASE,
):
raise ValueError(
'Invalid argument "{0}" for type "identifier_name".'.format(contents)
)
return str(contents)

def _path_type(self, contents, resolve_dependencies):
"""Resolver for path type arguments.

Expand Down
Loading