Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 13, 2024
1 parent b60502f commit c6ab387
Show file tree
Hide file tree
Showing 19 changed files with 958 additions and 178 deletions.
215 changes: 114 additions & 101 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ssoready"
version = "1.0.0"
version = "1.0.1"
description = ""
readme = "README.md"
authors = []
Expand Down
22 changes: 20 additions & 2 deletions src/ssoready/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,34 @@
# This file was auto-generated by Fern from our API Definition.

from .types import GetSamlRedirectUrlResponse, GoogleProtobufAny, RedeemSamlAccessCodeResponse, Status
from . import saml
from .types import (
GetSamlRedirectUrlResponse,
GetScimGroupResponse,
GetScimUserResponse,
GoogleProtobufAny,
ListScimGroupsResponse,
ListScimUsersResponse,
RedeemSamlAccessCodeResponse,
ScimGroup,
ScimUser,
Status,
)
from . import saml, scim
from .environment import SSOReadyEnvironment
from .version import __version__

__all__ = [
"GetSamlRedirectUrlResponse",
"GetScimGroupResponse",
"GetScimUserResponse",
"GoogleProtobufAny",
"ListScimGroupsResponse",
"ListScimUsersResponse",
"RedeemSamlAccessCodeResponse",
"SSOReadyEnvironment",
"ScimGroup",
"ScimUser",
"Status",
"__version__",
"saml",
"scim",
]
3 changes: 3 additions & 0 deletions src/ssoready/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from .environment import SSOReadyEnvironment
from .saml.client import AsyncSamlClient, SamlClient
from .scim.client import AsyncScimClient, ScimClient


class SSOReady:
Expand Down Expand Up @@ -69,6 +70,7 @@ def __init__(
timeout=_defaulted_timeout,
)
self.saml = SamlClient(client_wrapper=self._client_wrapper)
self.scim = ScimClient(client_wrapper=self._client_wrapper)


class AsyncSSOReady:
Expand Down Expand Up @@ -130,6 +132,7 @@ def __init__(
timeout=_defaulted_timeout,
)
self.saml = AsyncSamlClient(client_wrapper=self._client_wrapper)
self.scim = AsyncScimClient(client_wrapper=self._client_wrapper)


def _get_base_url(*, base_url: typing.Optional[str] = None, environment: SSOReadyEnvironment) -> str:
Expand Down
2 changes: 1 addition & 1 deletion src/ssoready/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "ssoready",
"X-Fern-SDK-Version": "1.0.0",
"X-Fern-SDK-Version": "1.0.1",
}
api_key = self._get_api_key()
if api_key is not None:
Expand Down
28 changes: 0 additions & 28 deletions src/ssoready/saml/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ def redeem_saml_access_code(
self, *, saml_access_code: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None
) -> RedeemSamlAccessCodeResponse:
"""
Exchange a SAML access code for details about a SAML login.
Parameters
----------
saml_access_code : typing.Optional[str]
Expand Down Expand Up @@ -100,27 +98,15 @@ def get_saml_redirect_url(
request_options: typing.Optional[RequestOptions] = None,
) -> GetSamlRedirectUrlResponse:
"""
Get a URL to initiate a SAML login.
Parameters
----------
saml_connection_id : typing.Optional[str]
The SAML connection to log in with.
organization_id : typing.Optional[str]
The organization to log in with, identified by ID.
This will use the organization's primary SAML connection.
organization_external_id : typing.Optional[str]
The organization to log in with, identified by external ID.
This will use the organization's primary SAML connection.
state : typing.Optional[str]
An arbitrary string that will be returned back in the SAML
login's corresponding RedeemSAMLAccessCode call.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down Expand Up @@ -195,8 +181,6 @@ async def redeem_saml_access_code(
self, *, saml_access_code: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None
) -> RedeemSamlAccessCodeResponse:
"""
Exchange a SAML access code for details about a SAML login.
Parameters
----------
saml_access_code : typing.Optional[str]
Expand Down Expand Up @@ -269,27 +253,15 @@ async def get_saml_redirect_url(
request_options: typing.Optional[RequestOptions] = None,
) -> GetSamlRedirectUrlResponse:
"""
Get a URL to initiate a SAML login.
Parameters
----------
saml_connection_id : typing.Optional[str]
The SAML connection to log in with.
organization_id : typing.Optional[str]
The organization to log in with, identified by ID.
This will use the organization's primary SAML connection.
organization_external_id : typing.Optional[str]
The organization to log in with, identified by external ID.
This will use the organization's primary SAML connection.
state : typing.Optional[str]
An arbitrary string that will be returned back in the SAML
login's corresponding RedeemSAMLAccessCode call.
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down
2 changes: 2 additions & 0 deletions src/ssoready/scim/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file was auto-generated by Fern from our API Definition.

Loading

0 comments on commit c6ab387

Please sign in to comment.