Skip to content

Commit

Permalink
change api prefix to lsf_client
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeg000 committed May 21, 2024
1 parent f16de12 commit 95b560a
Show file tree
Hide file tree
Showing 55 changed files with 271 additions and 270 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: openapi_client Python package
name: lsf_client Python package

on: [push, pull_request]

Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stages:
script:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pytest --cov=openapi_client
- pytest --cov=lsf_client

pytest-3.7:
extends: .pytest
Expand Down
46 changes: 23 additions & 23 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,29 @@ docs/Session.md
docs/TreeNode.md
docs/User.md
git_push.sh
openapi_client/__init__.py
openapi_client/api/__init__.py
openapi_client/api/authentication_api.py
openapi_client/api/file_operations_api.py
openapi_client/api/lsf_cluster_api.py
openapi_client/api/ping_api.py
openapi_client/api_client.py
openapi_client/api_response.py
openapi_client/configuration.py
openapi_client/exceptions.py
openapi_client/models/__init__.py
openapi_client/models/error.py
openapi_client/models/error_message.py
openapi_client/models/lsf_cluster.py
openapi_client/models/lsfcli_result.py
openapi_client/models/repositories.py
openapi_client/models/repository_bean.py
openapi_client/models/return_message.py
openapi_client/models/session.py
openapi_client/models/tree_node.py
openapi_client/models/user.py
openapi_client/py.typed
openapi_client/rest.py
lsf_client/__init__.py
lsf_client/api/__init__.py
lsf_client/api/authentication_api.py
lsf_client/api/file_operations_api.py
lsf_client/api/lsf_cluster_api.py
lsf_client/api/ping_api.py
lsf_client/api_client.py
lsf_client/api_response.py
lsf_client/configuration.py
lsf_client/exceptions.py
lsf_client/models/__init__.py
lsf_client/models/error.py
lsf_client/models/error_message.py
lsf_client/models/lsf_cluster.py
lsf_client/models/lsfcli_result.py
lsf_client/models/repositories.py
lsf_client/models/repository_bean.py
lsf_client/models/return_message.py
lsf_client/models/session.py
lsf_client/models/tree_node.py
lsf_client/models/user.py
lsf_client/py.typed
lsf_client/rest.py
pyproject.toml
requirements.txt
setup.cfg
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ install:
- "pip install -r requirements.txt"
- "pip install -r test-requirements.txt"
# command to run tests
script: pytest --cov=openapi_client
script: pytest --cov=lsf_client
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# openapi-client
LSF Web Service in Python
# lsf_client
LSF Web Service

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0
- Package version: 1.0.0
- Generator version: 7.6.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.
Expand All @@ -23,7 +24,7 @@ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

Then import the package:
```python
import openapi_client
import lsf_client
```

### Setuptools
Expand All @@ -37,7 +38,7 @@ python setup.py install --user

Then import the package:
```python
import openapi_client
import lsf_client
```

### Tests
Expand All @@ -50,23 +51,23 @@ Please follow the [installation procedure](#installation--usage) and then run th

```python

import openapi_client
from openapi_client.rest import ApiException
import lsf_client
from lsf_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8080/lsf
# Defining the host is optional and defaults to http://localhost:8088/lsf
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
host = "http://localhost:8080/lsf"
configuration = lsf_client.Configuration(
host = "http://localhost:8088/lsf"
)



# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
with lsf_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.AuthenticationApi(api_client)
user = openapi_client.User() # User | (optional)
api_instance = lsf_client.AuthenticationApi(api_client)
user = lsf_client.User() # User | (optional)

try:
# User log on
Expand All @@ -80,7 +81,7 @@ with openapi_client.ApiClient(configuration) as api_client:

## Documentation for API Endpoints

All URIs are relative to *http://localhost:8080/lsf*
All URIs are relative to *http://localhost:8088/lsf*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
30 changes: 15 additions & 15 deletions docs/AuthenticationApi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# openapi_client.AuthenticationApi
# lsf_client.AuthenticationApi

All URIs are relative to *http://localhost:8088/lsf*

Expand All @@ -19,24 +19,24 @@ User log on


```python
import openapi_client
from openapi_client.models.session import Session
from openapi_client.models.user import User
from openapi_client.rest import ApiException
import lsf_client
from lsf_client.models.session import Session
from lsf_client.models.user import User
from lsf_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8088/lsf
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
configuration = lsf_client.Configuration(
host = "http://localhost:8088/lsf"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
with lsf_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.AuthenticationApi(api_client)
user = openapi_client.User() # User | (optional)
api_instance = lsf_client.AuthenticationApi(api_client)
user = lsf_client.User() # User | (optional)

try:
# User log on
Expand Down Expand Up @@ -93,14 +93,14 @@ User log off
* Api Key Authentication (LSF-Web-Service-authentication):

```python
import openapi_client
from openapi_client.models.return_message import ReturnMessage
from openapi_client.rest import ApiException
import lsf_client
from lsf_client.models.return_message import ReturnMessage
from lsf_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8088/lsf
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
configuration = lsf_client.Configuration(
host = "http://localhost:8088/lsf"
)

Expand All @@ -116,9 +116,9 @@ configuration.api_key['LSF-Web-Service-authentication'] = os.environ["API_KEY"]
# configuration.api_key_prefix['LSF-Web-Service-authentication'] = 'Bearer'

# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
with lsf_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.AuthenticationApi(api_client)
api_instance = lsf_client.AuthenticationApi(api_client)

try:
# User log off
Expand Down
2 changes: 1 addition & 1 deletion docs/Error.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example

```python
from openapi_client.models.error import Error
from lsf_client.models.error import Error

# TODO update the JSON string below
json = "{}"
Expand Down
2 changes: 1 addition & 1 deletion docs/ErrorMessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example

```python
from openapi_client.models.error_message import ErrorMessage
from lsf_client.models.error_message import ErrorMessage

# TODO update the JSON string below
json = "{}"
Expand Down
56 changes: 28 additions & 28 deletions docs/FileOperationsApi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# openapi_client.FileOperationsApi
# lsf_client.FileOperationsApi

All URIs are relative to *http://localhost:8088/lsf*

Expand All @@ -23,13 +23,13 @@ Delete file by a specific path, wildcard '*' and '?' are both supported
* Api Key Authentication (LSF-Web-Service-authentication):

```python
import openapi_client
from openapi_client.rest import ApiException
import lsf_client
from lsf_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8088/lsf
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
configuration = lsf_client.Configuration(
host = "http://localhost:8088/lsf"
)

Expand All @@ -45,9 +45,9 @@ configuration.api_key['LSF-Web-Service-authentication'] = os.environ["API_KEY"]
# configuration.api_key_prefix['LSF-Web-Service-authentication'] = 'Bearer'

# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
with lsf_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.FileOperationsApi(api_client)
api_instance = lsf_client.FileOperationsApi(api_client)
file_path = 'file_path_example' # str | base64 encoded file path

try:
Expand Down Expand Up @@ -104,13 +104,13 @@ Download a single file
* Api Key Authentication (LSF-Web-Service-authentication):

```python
import openapi_client
from openapi_client.rest import ApiException
import lsf_client
from lsf_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8088/lsf
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
configuration = lsf_client.Configuration(
host = "http://localhost:8088/lsf"
)

Expand All @@ -126,9 +126,9 @@ configuration.api_key['LSF-Web-Service-authentication'] = os.environ["API_KEY"]
# configuration.api_key_prefix['LSF-Web-Service-authentication'] = 'Bearer'

# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
with lsf_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.FileOperationsApi(api_client)
api_instance = lsf_client.FileOperationsApi(api_client)
file_path = 'file_path_example' # str | base64 encoded file path

try:
Expand Down Expand Up @@ -187,14 +187,14 @@ List file under a specific path
* Api Key Authentication (LSF-Web-Service-authentication):

```python
import openapi_client
from openapi_client.models.tree_node import TreeNode
from openapi_client.rest import ApiException
import lsf_client
from lsf_client.models.tree_node import TreeNode
from lsf_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8088/lsf
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
configuration = lsf_client.Configuration(
host = "http://localhost:8088/lsf"
)

Expand All @@ -210,9 +210,9 @@ configuration.api_key['LSF-Web-Service-authentication'] = os.environ["API_KEY"]
# configuration.api_key_prefix['LSF-Web-Service-authentication'] = 'Bearer'

# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
with lsf_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.FileOperationsApi(api_client)
api_instance = lsf_client.FileOperationsApi(api_client)
path = 'path_example' # str | (optional)

try:
Expand Down Expand Up @@ -270,14 +270,14 @@ List repositories to current logged in user
* Api Key Authentication (LSF-Web-Service-authentication):

```python
import openapi_client
from openapi_client.models.repositories import Repositories
from openapi_client.rest import ApiException
import lsf_client
from lsf_client.models.repositories import Repositories
from lsf_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8088/lsf
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
configuration = lsf_client.Configuration(
host = "http://localhost:8088/lsf"
)

Expand All @@ -293,9 +293,9 @@ configuration.api_key['LSF-Web-Service-authentication'] = os.environ["API_KEY"]
# configuration.api_key_prefix['LSF-Web-Service-authentication'] = 'Bearer'

# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
with lsf_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.FileOperationsApi(api_client)
api_instance = lsf_client.FileOperationsApi(api_client)

try:
# List repositories
Expand Down Expand Up @@ -347,13 +347,13 @@ Upload a single file
* Api Key Authentication (LSF-Web-Service-authentication):

```python
import openapi_client
from openapi_client.rest import ApiException
import lsf_client
from lsf_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8088/lsf
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
configuration = lsf_client.Configuration(
host = "http://localhost:8088/lsf"
)

Expand All @@ -369,9 +369,9 @@ configuration.api_key['LSF-Web-Service-authentication'] = os.environ["API_KEY"]
# configuration.api_key_prefix['LSF-Web-Service-authentication'] = 'Bearer'

# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
with lsf_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.FileOperationsApi(api_client)
api_instance = lsf_client.FileOperationsApi(api_client)
file = None # bytearray |
path = 'path_example' # str | (optional)
compress = 'compress_example' # str | A filename extension, if specified, the uploaded file will be automatically de-compressed by related command (optional)
Expand Down
Loading

0 comments on commit 95b560a

Please sign in to comment.