Python Client SDK Generated by Speakeasy
Project description
brease-sdk
SDK Installation
pip install brease-sdk
SDK Example Usage
import sdk
from sdk.models import operations, shared
s = sdk.SDK()
req = operations.AddRuleRequest(
add_rule_input=shared.AddRuleInput(
rule=shared.ModelsRule(
action='corrupti',
description='provident',
expression=shared.ModelsRuleExpression3(
condition=shared.Condition(
base=shared.ConditionBase2(
ref=shared.ConditionBaseRef(
dst='unde',
src='nulla',
),
),
parameter=False,
type=shared.ConditionType.RGX,
),
),
id='69a674e0-f467-4cc8-b96e-d151a05dfc2d',
target=shared.ModelsTarget(
target='at',
target_value='maiores',
type='molestiae',
),
),
),
context_id='quod',
)
res = s.context_id.add_rule(req, operations.AddRuleSecurity(
api_token="YOUR_BEARER_TOKEN_HERE",
))
if res.api_add_rule_response is not None:
# handle response
Available Resources and Operations
context_id
- add_rule - Adds a new rule to the context
- evaluate_rules - Evaluate rules within a context on the provided object
- get_all_rules - Returns all rules with the context
- remove_rule - Removes a rule from the context
- replace_rule - Replaces an existing rule within the context
Maturity
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
Contributions
While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release !
SDK Created by Speakeasy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
brease-sdk-1.3.0.tar.gz
(13.4 kB
view hashes)
Built Distribution
brease_sdk-1.3.0-py3-none-any.whl
(24.4 kB
view hashes)
Close
Hashes for brease_sdk-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69c970e7a17e3d058bee62189ebcc81c383b7faabcef24047da5f61cff68e7b0 |
|
MD5 | 7895b906219ffba8aedc732ca4dcecf7 |
|
BLAKE2b-256 | 300bfbbd943bdf51bfd5247af82cec40acaf0b448ee357a1b85b4c71e9a62174 |