-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update doc strings #307
Update doc strings #307
Conversation
Signed-off-by: pem70 <[email protected]>
Signed-off-by: pem70 <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #307 +/- ##
=======================================
Coverage 89.90% 89.90%
=======================================
Files 53 53
Lines 2713 2713
=======================================
Hits 2439 2439
Misses 274 274
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hey @anaxceron,
UPDATE: We do have builds for every PR 😋 Thanks to @t1m0thyj for helping me find this! 🙏🏽 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good, thanks @pem70!
Left minor comments related to consistency and documenting the encoding
option.
@@ -8,6 +8,8 @@ All notable changes to the Zowe Client Python SDK will be documented in this fil | |||
|
|||
- Included support for `AUTH_TYPE_CERT_PEM` and `AUTH_TYPE_NONE` in `session` [#291] (https://github.com/zowe/zowe-client-python-sdk/issues/291) and [#296] (https://github.com/zowe/zowe-client-python-sdk/issues/296) | |||
|
|||
- Updated all functions descriptions to be consitent [#279] (https://github.com/zowe/zowe-client-python-sdk/issues/279) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Updated all functions descriptions to be consitent [#279] (https://github.com/zowe/zowe-client-python-sdk/issues/279) | |
- Updated doc strings for all functions to be consistent [#279] (https://github.com/zowe/zowe-client-python-sdk/issues/279) |
data: str | ||
Content to be written | ||
encoding: | ||
Specifies encoding schema |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifies encoding schema | |
Specifies encoding name (e.g. IBM-1047) |
output_file:str | ||
Name of the local file to create | ||
with_prefixes:boolean | ||
If true, include a four big endian bytes record length prefix. The default is False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use formatting consistent with get_binary_content
?
If true, include a four big endian bytes record length prefix. The default is False | |
If true, include a four big endian bytes record length prefix. Default: False |
dataset_name: str | ||
Name of the dataset to be created | ||
encoding: str | ||
Specifies the encoding schema |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifies the encoding schema | |
Specifies the encoding name (e.g. IBM-1047) |
file_system_name: str | ||
the name for the file system | ||
options: dict | ||
specifies file system attributes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use sentence case to make the descriptions consistent
file_system_name: str | |
the name for the file system | |
options: dict | |
specifies file system attributes | |
file_system_name: str | |
Name of the file system | |
options: dict | |
Specifies file system attributes |
file_path: str | ||
file_path of the file to add | ||
type: str | ||
"file" or "dir" | ||
mode: str | ||
Ex:- rwxr-xr-x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file_path: str | |
file_path of the file to add | |
type: str | |
"file" or "dir" | |
mode: str | |
Ex:- rwxr-xr-x | |
file_path: str | |
Path of the file to add | |
type: str | |
Specify either "file" or "dir" | |
mode: str | |
Unix permission string (e.g. `rwxr-xr-x`) |
data: str | ||
Contents to be written | ||
encoding: str | ||
Specifies the encoding schema |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifies the encoding schema | |
Specifies the encoding name (e.g. IBM-1047) |
member_pattern: str | ||
Filters members by name pattern. | ||
member_start: str | ||
The starting point for listing members. | ||
limit: int | ||
The maximum number of members returned. | ||
attributes: str | ||
The member attributes to retrieve. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing periods should be removed for consistency
@@ -325,6 +381,7 @@ def copy_data_set_or_member( | |||
Enqueue type for the dataset to copy from | |||
replace: bool | |||
If true, members in the target data set are replaced. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing periods should be removed for consistency
dataset_name: str | ||
The name of the dataset | ||
stream: bool | ||
Specifies |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifies | |
Specify True to return content as a stream object instead of a string. Default: False |
Merged into a combined pull request. |
What It Does
Update doc strings for all functions as required by [#279]
How to Test
Review Checklist
I certify that I have:
Additional Comments