Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
34 changes: 34 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,37 @@ jobs:
run: poetry run task test
env:
TASKIPY: true

build-linux:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install binarylane-cli
run: pip install .

- name: Install PyInstaller
run: pip install pyinstaller

- name: Run PyInstaller
run: pyinstaller --name bl --onefile --copy-metadata binarylane-cli --collect-submodules binarylane src/binarylane/console/__main__.py

- name: Install StaticX
run: pip install staticx

- name: Install patchelf
run: sudo apt install -y patchelf

- name: Run StaticX
run: staticx --strip --no-compress dist/bl dist/bl

- uses: actions/upload-artifact@v3
with:
name: linux-x64
path: dist/*
18 changes: 9 additions & 9 deletions lib/binarylane/api/domains/delete_v2_domains_domain_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


def _get_kwargs(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
) -> Dict[str, Any]:
Expand Down Expand Up @@ -57,14 +57,14 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Uni


def sync_detailed(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
) -> Response[Union[Any, ProblemDetails]]:
"""Delete an Existing Domain

Args:
domain_name (str): The name of the domain to delete.
domain_name (Union[int, str]): The name or domain ID of the domain to delete. Example: 5.

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -88,14 +88,14 @@ def sync_detailed(


def sync(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
) -> Optional[Union[Any, ProblemDetails]]:
"""Delete an Existing Domain

Args:
domain_name (str): The name of the domain to delete.
domain_name (Union[int, str]): The name or domain ID of the domain to delete. Example: 5.

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -112,14 +112,14 @@ def sync(


async def asyncio_detailed(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
) -> Response[Union[Any, ProblemDetails]]:
"""Delete an Existing Domain

Args:
domain_name (str): The name of the domain to delete.
domain_name (Union[int, str]): The name or domain ID of the domain to delete. Example: 5.

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -141,14 +141,14 @@ async def asyncio_detailed(


async def asyncio(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
) -> Optional[Union[Any, ProblemDetails]]:
"""Delete an Existing Domain

Args:
domain_name (str): The name of the domain to delete.
domain_name (Union[int, str]): The name or domain ID of the domain to delete. Example: 5.

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


def _get_kwargs(
domain_name: str,
domain_name: Union[int, str],
record_id: int,
*,
client: Client,
Expand Down Expand Up @@ -60,15 +60,16 @@ def _build_response(*, client: Client, response: httpx.Response) -> Response[Uni


def sync_detailed(
domain_name: str,
domain_name: Union[int, str],
record_id: int,
*,
client: Client,
) -> Response[Union[Any, ProblemDetails]]:
"""Delete an Existing Domain Record

Args:
domain_name (str): The domain name for which the record should be deleted.
domain_name (Union[int, str]): The domain name or domain ID for which the record should be
deleted. Example: 5.
record_id (int): The ID of the record to delete.

Raises:
Expand All @@ -94,15 +95,16 @@ def sync_detailed(


def sync(
domain_name: str,
domain_name: Union[int, str],
record_id: int,
*,
client: Client,
) -> Optional[Union[Any, ProblemDetails]]:
"""Delete an Existing Domain Record

Args:
domain_name (str): The domain name for which the record should be deleted.
domain_name (Union[int, str]): The domain name or domain ID for which the record should be
deleted. Example: 5.
record_id (int): The ID of the record to delete.

Raises:
Expand All @@ -121,15 +123,16 @@ def sync(


async def asyncio_detailed(
domain_name: str,
domain_name: Union[int, str],
record_id: int,
*,
client: Client,
) -> Response[Union[Any, ProblemDetails]]:
"""Delete an Existing Domain Record

Args:
domain_name (str): The domain name for which the record should be deleted.
domain_name (Union[int, str]): The domain name or domain ID for which the record should be
deleted. Example: 5.
record_id (int): The ID of the record to delete.

Raises:
Expand All @@ -153,15 +156,16 @@ async def asyncio_detailed(


async def asyncio(
domain_name: str,
domain_name: Union[int, str],
record_id: int,
*,
client: Client,
) -> Optional[Union[Any, ProblemDetails]]:
"""Delete an Existing Domain Record

Args:
domain_name (str): The domain name for which the record should be deleted.
domain_name (Union[int, str]): The domain name or domain ID for which the record should be
deleted. Example: 5.
record_id (int): The ID of the record to delete.

Raises:
Expand Down
18 changes: 9 additions & 9 deletions lib/binarylane/api/domains/get_v2_domains_domain_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


def _get_kwargs(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
) -> Dict[str, Any]:
Expand Down Expand Up @@ -63,14 +63,14 @@ def _build_response(


def sync_detailed(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
) -> Response[Union[Any, DomainResponse, ProblemDetails]]:
"""Fetch an Existing Domain

Args:
domain_name (str): The name of the domain to fetch.
domain_name (Union[int, str]): The name or domain ID of the domain to fetch. Example: 5.

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -94,14 +94,14 @@ def sync_detailed(


def sync(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
) -> Optional[Union[Any, DomainResponse, ProblemDetails]]:
"""Fetch an Existing Domain

Args:
domain_name (str): The name of the domain to fetch.
domain_name (Union[int, str]): The name or domain ID of the domain to fetch. Example: 5.

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -118,14 +118,14 @@ def sync(


async def asyncio_detailed(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
) -> Response[Union[Any, DomainResponse, ProblemDetails]]:
"""Fetch an Existing Domain

Args:
domain_name (str): The name of the domain to fetch.
domain_name (Union[int, str]): The name or domain ID of the domain to fetch. Example: 5.

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand All @@ -147,14 +147,14 @@ async def asyncio_detailed(


async def asyncio(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
) -> Optional[Union[Any, DomainResponse, ProblemDetails]]:
"""Fetch an Existing Domain

Args:
domain_name (str): The name of the domain to fetch.
domain_name (Union[int, str]): The name or domain ID of the domain to fetch. Example: 5.

Raises:
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
Expand Down
22 changes: 13 additions & 9 deletions lib/binarylane/api/domains/get_v2_domains_domain_name_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


def _get_kwargs(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
type: Union[Unset, None, DomainRecordType] = UNSET,
Expand Down Expand Up @@ -84,7 +84,7 @@ def _build_response(


def sync_detailed(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
type: Union[Unset, None, DomainRecordType] = UNSET,
Expand All @@ -95,7 +95,8 @@ def sync_detailed(
"""List All Domain Records for a Domain

Args:
domain_name (str): The domain name for which records should be listed.
domain_name (Union[int, str]): The domain name or domain ID for for which records should
be listed. Example: 5.
type (Union[Unset, None, DomainRecordType]):
| Value | Description |
| ----- | ----------- |
Expand Down Expand Up @@ -140,7 +141,7 @@ def sync_detailed(


def sync(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
type: Union[Unset, None, DomainRecordType] = UNSET,
Expand All @@ -151,7 +152,8 @@ def sync(
"""List All Domain Records for a Domain

Args:
domain_name (str): The domain name for which records should be listed.
domain_name (Union[int, str]): The domain name or domain ID for for which records should
be listed. Example: 5.
type (Union[Unset, None, DomainRecordType]):
| Value | Description |
| ----- | ----------- |
Expand Down Expand Up @@ -189,7 +191,7 @@ def sync(


async def asyncio_detailed(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
type: Union[Unset, None, DomainRecordType] = UNSET,
Expand All @@ -200,7 +202,8 @@ async def asyncio_detailed(
"""List All Domain Records for a Domain

Args:
domain_name (str): The domain name for which records should be listed.
domain_name (Union[int, str]): The domain name or domain ID for for which records should
be listed. Example: 5.
type (Union[Unset, None, DomainRecordType]):
| Value | Description |
| ----- | ----------- |
Expand Down Expand Up @@ -243,7 +246,7 @@ async def asyncio_detailed(


async def asyncio(
domain_name: str,
domain_name: Union[int, str],
*,
client: Client,
type: Union[Unset, None, DomainRecordType] = UNSET,
Expand All @@ -254,7 +257,8 @@ async def asyncio(
"""List All Domain Records for a Domain

Args:
domain_name (str): The domain name for which records should be listed.
domain_name (Union[int, str]): The domain name or domain ID for for which records should
be listed. Example: 5.
type (Union[Unset, None, DomainRecordType]):
| Value | Description |
| ----- | ----------- |
Expand Down
Loading
Loading