Skip to content

chore: speakeasy sdk regeneration - Generate Access Token SDK #70

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

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
bd94969
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.70.2
speakeasybot Aug 9, 2023
a8fd2e5
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.72.0
speakeasybot Aug 15, 2023
afaba1c
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.74.3
speakeasybot Aug 19, 2023
8d10ad9
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.74.11
speakeasybot Aug 25, 2023
d277a72
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.74.16
speakeasybot Aug 26, 2023
ffb9abd
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.74.17
speakeasybot Aug 29, 2023
352d3c0
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.76.0
speakeasybot Aug 31, 2023
c8f5bfd
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.77.0
speakeasybot Sep 1, 2023
1fc19d3
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.77.2
speakeasybot Sep 2, 2023
201753a
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.78.3
speakeasybot Sep 5, 2023
a6deabe
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.82.5
speakeasybot Sep 12, 2023
8bec480
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.86.0
speakeasybot Sep 16, 2023
a0c4a0a
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.88.0
speakeasybot Sep 20, 2023
36877af
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.91.0
speakeasybot Sep 26, 2023
7d5003f
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.91.2
speakeasybot Sep 27, 2023
174052e
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.91.3
speakeasybot Sep 29, 2023
e5c81ba
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.92.2
speakeasybot Oct 1, 2023
bb6d965
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.92.3
speakeasybot Oct 2, 2023
066154a
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.94.0
speakeasybot Oct 5, 2023
320cd13
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.96.1
speakeasybot Oct 7, 2023
24d7ed1
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.99.1
speakeasybot Oct 13, 2023
683adf6
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.101.0
speakeasybot Oct 18, 2023
aa8894d
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.104.0
speakeasybot Oct 21, 2023
2bd7607
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.109.0
speakeasybot Oct 28, 2023
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
2 changes: 2 additions & 0 deletions access_token/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This allows generated code to be indexed correctly
*.py linguist-generated=false
6 changes: 6 additions & 0 deletions access_token/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
venv/
src/*.egg-info/
__pycache__/
.pytest_cache/
.python-version
.DS_Store
164 changes: 146 additions & 18 deletions access_token/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,172 @@ pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=access
<!-- Start SDK Example Usage -->
```python
import epilot
from epilot.models import operations, shared
from epilot.models import shared

s = epilot.Epilot(
security=shared.Security(
epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE",
epilot_auth="",
),
)


req = shared.JourneyTokenParameters(
journey_id="deserunt",
name="Postman Access Token",
token_type="journey",
req = shared.AccessTokenParameters(
assignments=[
'123:owner',
],
name='Postman Access Token',
)

res = s.access_tokens.create_access_token(req)

if res.create_access_token_201_application_json_object is not None:
# handle response
pass
```
<!-- End SDK Example Usage -->

<!-- Start SDK Available Operations -->
## SDK Available Operations
## Available Resources and Operations


### access_tokens
### [access_tokens](docs/sdks/accesstokens/README.md)

* `create_access_token` - createAccessToken
* `list_access_tokens` - listAccessTokens
* `revoke_access_token` - revokeAccessToken
* [create_access_token](docs/sdks/accesstokens/README.md#create_access_token) - createAccessToken
* [list_access_tokens](docs/sdks/accesstokens/README.md#list_access_tokens) - listAccessTokens
* [revoke_access_token](docs/sdks/accesstokens/README.md#revoke_access_token) - revokeAccessToken

### public
### [public](docs/sdks/public/README.md)

* `get_access_token_jwks` - getAccessTokenJwks
* `get_access_token_oidc` - getAccessTokenOIDC
* `get_public_token_jwks` - getPublicTokenJwks
* `get_public_token_oidc` - getPublicTokenOIDC
* [get_access_token_jwks](docs/sdks/public/README.md#get_access_token_jwks) - getAccessTokenJwks
* [get_access_token_oidc](docs/sdks/public/README.md#get_access_token_oidc) - getAccessTokenOIDC
* [get_public_token_jwks](docs/sdks/public/README.md#get_public_token_jwks) - getPublicTokenJwks
* [get_public_token_oidc](docs/sdks/public/README.md#get_public_token_oidc) - getPublicTokenOIDC
<!-- End SDK Available Operations -->



<!-- Start Dev Containers -->

<!-- End Dev Containers -->



<!-- Start Pagination -->
# Pagination

Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
returned response object will have a `Next` method that can be called to pull down the next group of results. If the
return value of `Next` is `None`, then there are no more pages to be fetched.

Here's an example of one such pagination call:
<!-- End Pagination -->



<!-- Start Error Handling -->
# Error Handling

Handling errors in your SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type.


<!-- End Error Handling -->



<!-- Start Server Selection -->
# Server Selection

## Select Server by Index

You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:

| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://access-token.sls.epilot.io` | None |

For example:


```python
import epilot
from epilot.models import shared

s = epilot.Epilot(
security=shared.Security(
epilot_auth="",
),
server_idx=0
)

req = shared.AccessTokenParameters(
assignments=[
'123:owner',
],
name='Postman Access Token',
)

res = s.access_tokens.create_access_token(req)

if res.create_access_token_201_application_json_object is not None:
# handle response
pass
```


## Override Server URL Per-Client

The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:


```python
import epilot
from epilot.models import shared

s = epilot.Epilot(
security=shared.Security(
epilot_auth="",
),
server_url="https://access-token.sls.epilot.io"
)

req = shared.AccessTokenParameters(
assignments=[
'123:owner',
],
name='Postman Access Token',
)

res = s.access_tokens.create_access_token(req)

if res.create_access_token_201_application_json_object is not None:
# handle response
pass
```
<!-- End Server Selection -->



<!-- Start Custom HTTP Client -->
# Custom HTTP Client

The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.


For example, you could specify a header for every request that your sdk makes as follows:

```python
import epilot
import requests

http_client = requests.Session()
http_client.headers.update({'x-custom-header': 'someValue'})
s = epilot.Epilot(client: http_client)
```


<!-- End Custom HTTP Client -->

<!-- Placeholder for Future Speakeasy SDK Sections -->



### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
Loading