Skip to content

Commit

Permalink
SDK regeneration (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
  • Loading branch information
fern-api[bot] authored May 28, 2024
1 parent e8d7cb0 commit a618de5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
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 = "0.1.3"
version = "0.2.0"
description = ""
readme = "README.md"
authors = []
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": "0.1.3",
"X-Fern-SDK-Version": "0.2.0",
}
api_key = self._get_api_key()
if api_key is not None:
Expand Down
26 changes: 12 additions & 14 deletions src/ssoready/saml/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SamlClient:
def __init__(self, *, client_wrapper: SyncClientWrapper):
self._client_wrapper = client_wrapper

def redeem_access_code(
def redeem_saml_access_code(
self, *, saml_access_code: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None
) -> RedeemSamlAccessCodeResponse:
"""
Expand All @@ -47,8 +47,8 @@ def redeem_access_code(
client = SSOReady(
api_key="YOUR_API_KEY",
)
client.saml.redeem_access_code(
saml_access_code="saml_access_code_94d90b43a2027a9084bfc792",
client.saml.redeem_saml_access_code(
saml_access_code="saml_access_code_...",
)
"""
_request: typing.Dict[str, typing.Any] = {}
Expand Down Expand Up @@ -90,7 +90,7 @@ def redeem_access_code(
raise ApiError(status_code=_response.status_code, body=_response.text)
raise ApiError(status_code=_response.status_code, body=_response_json)

def get_redirect_url(
def get_saml_redirect_url(
self,
*,
saml_connection_id: typing.Optional[str] = OMIT,
Expand Down Expand Up @@ -137,9 +137,8 @@ def get_redirect_url(
client = SSOReady(
api_key="YOUR_API_KEY",
)
client.saml.get_redirect_url(
saml_connection_id="saml_conn_ac3bzzoqhaa88ozk29hhv12l",
organization_id="org_7cu5hsy9vrbi5d2k1qvbh19lj",
client.saml.get_saml_redirect_url(
organization_external_id="my_custom_external_id",
)
"""
_request: typing.Dict[str, typing.Any] = {}
Expand Down Expand Up @@ -192,7 +191,7 @@ class AsyncSamlClient:
def __init__(self, *, client_wrapper: AsyncClientWrapper):
self._client_wrapper = client_wrapper

async def redeem_access_code(
async def redeem_saml_access_code(
self, *, saml_access_code: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None
) -> RedeemSamlAccessCodeResponse:
"""
Expand All @@ -217,8 +216,8 @@ async def redeem_access_code(
client = AsyncSSOReady(
api_key="YOUR_API_KEY",
)
await client.saml.redeem_access_code(
saml_access_code="saml_access_code_94d90b43a2027a9084bfc792",
await client.saml.redeem_saml_access_code(
saml_access_code="saml_access_code_...",
)
"""
_request: typing.Dict[str, typing.Any] = {}
Expand Down Expand Up @@ -260,7 +259,7 @@ async def redeem_access_code(
raise ApiError(status_code=_response.status_code, body=_response.text)
raise ApiError(status_code=_response.status_code, body=_response_json)

async def get_redirect_url(
async def get_saml_redirect_url(
self,
*,
saml_connection_id: typing.Optional[str] = OMIT,
Expand Down Expand Up @@ -307,9 +306,8 @@ async def get_redirect_url(
client = AsyncSSOReady(
api_key="YOUR_API_KEY",
)
await client.saml.get_redirect_url(
saml_connection_id="saml_conn_ac3bzzoqhaa88ozk29hhv12l",
organization_id="org_7cu5hsy9vrbi5d2k1qvbh19lj",
await client.saml.get_saml_redirect_url(
organization_external_id="my_custom_external_id",
)
"""
_request: typing.Dict[str, typing.Any] = {}
Expand Down

0 comments on commit a618de5

Please sign in to comment.