Skip to content
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

chore: speakeasy sdk regeneration - Generate Webhooks SDK #55

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
32 changes: 16 additions & 16 deletions webhooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,36 @@ s = epilot.Epilot(
req = shared.WebhookConfig(
auth=shared.Auth(
api_key_config=shared.APIKeyConfig(
key_name="unde",
key_value="deserunt",
key_name="corrupti",
key_value="provident",
),
auth_type="API_KEY",
basic_auth_config=shared.BasicAuthConfig(
password="nulla",
username="Leatha_Stiedemann",
password="quibusdam",
username="Leda_Stiedemann",
),
oauth_config=shared.OAuthConfig(
client_id="nihil",
client_secret="fuga",
endpoint="facilis",
client_id="vel",
client_secret="error",
endpoint="deserunt",
http_method="PUT",
),
),
creation_time="2021-04-27T12:01:13.000Z",
enabled=False,
event_name="iusto",
event_name="iure",
filter=shared.Filter(
key_to_filter="ullam",
key_to_filter="magnam",
supported_values=[
"inventore",
"sapiente",
"enim",
"eum",
"ipsa",
"delectus",
"tempora",
"suscipit",
],
),
http_method="PATCH",
id="autem",
url="vel",
id="cc8796ed-151a-405d-bc2d-df7cc78ca1ba",
url="occaecati",
)

res = s.webhooks.create_config(req)
Expand All @@ -64,7 +64,7 @@ if res.webhook_config is not None:
<!-- End SDK Example Usage -->

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


### webhooks
Expand Down
44 changes: 43 additions & 1 deletion webhooks/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,46 @@ Based on:
### Changes
Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/webhooks-howto.yaml
- Speakeasy CLI 1.19.2 (2.16.5) https://github.com/speakeasy-api/speakeasy
- Speakeasy CLI 1.19.2 (2.16.5) https://github.com/speakeasy-api/speakeasy

## 2023-04-01 01:01:11
### Changes
Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/webhooks-howto.yaml
- Speakeasy CLI 1.19.3 (2.16.7) https://github.com/speakeasy-api/speakeasy

## 2023-04-06 00:56:39
### Changes
Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/webhooks-howto.yaml
- Speakeasy CLI 1.19.6 (2.17.8) https://github.com/speakeasy-api/speakeasy

## 2023-04-12 00:58:51
### Changes
Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/webhooks-howto.yaml
- Speakeasy CLI 1.19.7 (2.17.9) https://github.com/speakeasy-api/speakeasy

## 2023-04-14 00:57:42
### Changes
Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/webhooks-howto.yaml
- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy

## 2023-04-18 00:57:43
### Changes
Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/webhooks-howto.yaml
- Speakeasy CLI 1.20.1 (2.18.1) https://github.com/speakeasy-api/speakeasy

## 2023-04-19 01:00:51
### Changes
Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/webhooks-howto.yaml
- Speakeasy CLI 1.20.2 (2.18.2) https://github.com/speakeasy-api/speakeasy

## 2023-04-21 00:58:24
### Changes
Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/webhooks-howto.yaml
- Speakeasy CLI 1.21.4 (2.19.1) https://github.com/speakeasy-api/speakeasy
30 changes: 15 additions & 15 deletions webhooks/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,36 @@ s = epilot.Epilot(
req = shared.WebhookConfig(
auth=shared.Auth(
api_key_config=shared.APIKeyConfig(
key_name="unde",
key_value="deserunt",
key_name="corrupti",
key_value="provident",
),
auth_type="API_KEY",
basic_auth_config=shared.BasicAuthConfig(
password="nulla",
username="Leatha_Stiedemann",
password="quibusdam",
username="Leda_Stiedemann",
),
oauth_config=shared.OAuthConfig(
client_id="nihil",
client_secret="fuga",
endpoint="facilis",
client_id="vel",
client_secret="error",
endpoint="deserunt",
http_method="PUT",
),
),
creation_time="2021-04-27T12:01:13.000Z",
enabled=False,
event_name="iusto",
event_name="iure",
filter=shared.Filter(
key_to_filter="ullam",
key_to_filter="magnam",
supported_values=[
"inventore",
"sapiente",
"enim",
"eum",
"ipsa",
"delectus",
"tempora",
"suscipit",
],
),
http_method="PATCH",
id="autem",
url="vel",
id="cc8796ed-151a-405d-bc2d-df7cc78ca1ba",
url="occaecati",
)

res = s.webhooks.create_config(req)
Expand Down
7 changes: 3 additions & 4 deletions webhooks/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ configVersion: 1.0.0
management:
docChecksum: ec0e473c4984d2b4894ce5f50dd5abeb
docVersion: 1.0.0
speakeasyVersion: 1.19.2
generationVersion: 2.16.5
speakeasyVersion: 1.21.4
generationVersion: 2.19.1
generation:
telemetryEnabled: false
sdkClassName: epilot
sdkFlattening: true
singleTagPerOp: false
python:
version: 1.2.2
version: 1.5.0
author: epilot
description: Python Client SDK for Epilot
packageName: epilot-webhooks
13 changes: 6 additions & 7 deletions webhooks/pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,7 @@ attr-naming-style=snake_case
#attr-rgx=

# Bad variable names which should always be refused, separated by a comma.
bad-names=foo,
bar,
baz,
toto,
tutu,
tata
bad-names=

# Bad variable names regexes, separated by a comma. If names match any regex,
# they will always be refused
Expand Down Expand Up @@ -439,7 +434,11 @@ disable=raw-checker-failed,
trailing-newlines,
too-many-public-methods,
too-many-locals,
too-many-lines
too-many-lines,
using-constant-test,
too-many-statements,
cyclic-import,
too-many-nested-blocks

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
2 changes: 1 addition & 1 deletion webhooks/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="epilot-webhooks",
version="1.2.2",
version="1.5.0",
author="epilot",
description="Python Client SDK for Epilot",
long_description=long_description,
Expand Down
6 changes: 3 additions & 3 deletions webhooks/src/epilot/models/shared/authtype_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
from enum import Enum

class AuthTypeEnum(str, Enum):
BASIC = "BASIC"
OAUTH_CLIENT_CREDENTIALS = "OAUTH_CLIENT_CREDENTIALS"
API_KEY = "API_KEY"
BASIC = 'BASIC'
OAUTH_CLIENT_CREDENTIALS = 'OAUTH_CLIENT_CREDENTIALS'
API_KEY = 'API_KEY'
14 changes: 7 additions & 7 deletions webhooks/src/epilot/models/shared/httpmethod_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
from enum import Enum

class HTTPMethodEnum(str, Enum):
GET = "GET"
POST = "POST"
PUT = "PUT"
PATCH = "PATCH"
DELETE = "DELETE"
OPTIONS = "OPTIONS"
HEAD = "HEAD"
GET = 'GET'
POST = 'POST'
PUT = 'PUT'
PATCH = 'PATCH'
DELETE = 'DELETE'
OPTIONS = 'OPTIONS'
HEAD = 'HEAD'
5 changes: 2 additions & 3 deletions webhooks/src/epilot/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,15 @@ class Epilot:
Additional to this path parameters, the payload to update the webhook configuration is the same we use for creating new webhooks. You can also refer to [Which events are available](#section/Create-Webhook) for more details.

To deactivate or reactivate a webhook configuration, you can make use of this endpoint, providing the organization id and webhook id as path parameter, and your payload should contain same configuration saved except the field `enabled` should either `false` if you want to deactivate the webhook otherwise `true` if the webhook should be active.

"""
webhooks: Webhooks

_client: requests_http.Session
_security_client: requests_http.Session
_server_url: str = SERVERS[0]
_language: str = "python"
_sdk_version: str = "1.2.2"
_gen_version: str = "2.16.5"
_sdk_version: str = "1.5.0"
_gen_version: str = "2.19.1"

def __init__(self,
security: shared.Security = None,
Expand Down
Loading