Skip to content

Commit e8130e4

Browse files
Merge pull request #1 from cloudinary/speakeasy-sdk-regen-1771901802
chore: 🐝 Update SDK - Generate 0.1.1
2 parents aee262b + f5e6ee5 commit e8130e4

File tree

364 files changed

+29109
-22
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

364 files changed

+29109
-22
lines changed

.devcontainer/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
<div align="center">
3+
<a href="https://codespaces.new/cloudinary/account-provisioning-python.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
4+
</div>
5+
<br>
6+
7+
> **Remember to shutdown a GitHub Codespace when it is not in use!**
8+
9+
# Dev Containers Quick Start
10+
11+
The default location for usage snippets is the `samples` directory.
12+
13+
## Running a Usage Sample
14+
15+
A sample usage example has been provided in a `root.py` file. As you work with the SDK, it's expected that you will modify these samples to fit your needs. To execute this particular snippet, use the command below.
16+
17+
```
18+
python root.py
19+
```
20+
21+
## Generating Additional Usage Samples
22+
23+
The speakeasy CLI allows you to generate more usage snippets. Here's how:
24+
25+
- To generate a sample for a specific operation by providing an operation ID, use:
26+
27+
```
28+
speakeasy generate usage -s https://cloudinary.github.io/api-schemas/provisioning/schema.yml -l python -i {INPUT_OPERATION_ID} -o ./samples
29+
```
30+
31+
- To generate samples for an entire namespace (like a tag or group name), use:
32+
33+
```
34+
speakeasy generate usage -s https://cloudinary.github.io/api-schemas/provisioning/schema.yml -l python -n {INPUT_TAG_NAME} -o ./samples
35+
```

.devcontainer/devcontainer.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/images/tree/main/src/python
3+
{
4+
"name": "Python",
5+
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
6+
// Features to add to the dev container. More info: https://containers.dev/features.
7+
// "features": {},
8+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
9+
// "forwardPorts": [],
10+
// Use 'postCreateCommand' to run commands after the container is created.
11+
"postCreateCommand": "sudo chmod +x ./.devcontainer/setup.sh && ./.devcontainer/setup.sh",
12+
"customizations": {
13+
"vscode": {
14+
"extensions": [
15+
"ms-python.python",
16+
"ms-python.vscode-pylance",
17+
"github.vscode-pull-request-github"
18+
],
19+
"settings": {
20+
"files.eol": "\n",
21+
"editor.formatOnSave": true,
22+
"python.formatting.provider": "black",
23+
"python.linting.enabled": true,
24+
"python.linting.pylintEnabled": true,
25+
"python.linting.flake8Enabled": true,
26+
"python.linting.banditEnabled": true,
27+
"python.testing.pytestEnabled": true
28+
}
29+
},
30+
"codespaces": {
31+
"openFiles": [
32+
".devcontainer/README.md"
33+
]
34+
}
35+
}
36+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
37+
// "remoteUser": "root"
38+
}

.devcontainer/setup.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
# Install the speakeasy CLI
4+
curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh
5+
6+
# Setup samples directory
7+
rmdir samples || true
8+
mkdir samples
9+
10+
11+
python -m pip install --upgrade pip
12+
pip install -e .
13+
14+
# Generate starter usage sample with speakeasy
15+
speakeasy generate usage -s https://cloudinary.github.io/api-schemas/provisioning/schema.yml -l python -o samples/root.py

.speakeasy/gen.lock

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ management:
55
docVersion: 0.2.1
66
speakeasyVersion: 1.725.0
77
generationVersion: 2.836.5
8-
releaseVersion: 0.1.0
9-
configChecksum: e79707b0073203ae86288faef433b6cf
8+
releaseVersion: 0.1.1
9+
configChecksum: 46472c652c96c87545cd413451e7cbe6
10+
repoURL: https://github.com/cloudinary/account-provisioning-python.git
11+
installationURL: https://github.com/cloudinary/account-provisioning-python.git
1012
persistentEdits:
11-
generation_id: 0949abb5-dfc7-4ece-922a-7b71c8c41ed4
12-
pristine_commit_hash: 266e71cf34dbf3243b64ba5e606d56d642d7f5dd
13-
pristine_tree_hash: 2aab5253bd02d6d0544654f4fab49d61ddc6020e
13+
generation_id: 523316e1-b15b-4203-be9e-5ab190c5df43
14+
pristine_commit_hash: 0a60fd101337eeb6c629bc0fa77cd7c519e65ea4
15+
pristine_tree_hash: 59b84db12d8ea45290c3057c2a204a3c51c65323
1416
features:
1517
python:
1618
additionalDependencies: 1.0.0
@@ -37,8 +39,8 @@ features:
3739
trackedFiles:
3840
.devcontainer/README.md:
3941
id: b170c0f184ac
40-
last_write_checksum: sha1:855de42ee70c98328691f5f2f736895323a7a352
41-
pristine_git_object: 555854e54c06c221b05c81047b4eece1f18f1f65
42+
last_write_checksum: sha1:a64fd5632ab19b45848b8f60745abedb200090d7
43+
pristine_git_object: cb1524f6c54a38c16c4db8fa0a60539d2319cc53
4244
.devcontainer/devcontainer.json:
4345
id: b34062a34eb1
4446
last_write_checksum: sha1:fbbce5654b8990b172a9ffe841d7635cd51c495b
@@ -829,12 +831,16 @@ trackedFiles:
829831
pristine_git_object: b41e83b1af81e4f783a4007869370c0d60504b45
830832
pyproject.toml:
831833
id: 5d07e7d72637
832-
last_write_checksum: sha1:d8ab9afb759a8e61c3d8a519a430392977166f8c
833-
pristine_git_object: ca7dac943ab9e7801cafc73493460f9df848d131
834+
last_write_checksum: sha1:c9388bb13830e7947330da8987373aca23239769
835+
pristine_git_object: 83a0cf8ef3715d4e2a0c893890943bca3621b277
836+
scripts/prepare_readme.py:
837+
id: e0c5957a6035
838+
last_write_checksum: sha1:a5741d35e04ef110fcd07926f8fcfdbf7e61ffb7
839+
pristine_git_object: 062f20a7ca52115c9ac6f2fc64fc9bf989d73d93
834840
scripts/publish.sh:
835841
id: fe273b08f514
836-
last_write_checksum: sha1:11c8a74f613fdb29f432e3feafb84072eeba6428
837-
pristine_git_object: 5eb52a49483fd30944c0a030f0decde1360f6765
842+
last_write_checksum: sha1:b31bafc19c15ab5ea925fdf8d5d4adce2b115a63
843+
pristine_git_object: 2a3ead70ccc6228cbae1c5c8a319b1399f3804ea
838844
src/cloudinary_account_provisioning/__init__.py:
839845
id: a98ea32e5e6e
840846
last_write_checksum: sha1:36306d1d404b6aeb912d27f1d9c52f098ff7bf9b
@@ -853,8 +859,8 @@ trackedFiles:
853859
pristine_git_object: 37dc1e0c10cef89a3c7f8218b2cb9694a4944f83
854860
src/cloudinary_account_provisioning/_version.py:
855861
id: 76c72d55f9f0
856-
last_write_checksum: sha1:06b9afd3a6b34c3c6a815a55c06bc6f9260d4b5b
857-
pristine_git_object: 698824bdb9604f7cd917c105adfadbb8f7f214e1
862+
last_write_checksum: sha1:64496cd4562f3d2586734927583485667d054cc3
863+
pristine_git_object: 0e9e45dc735f9393bfef0defc1915557adfcca38
858864
src/cloudinary_account_provisioning/accesskeys.py:
859865
id: 3d4cc397b561
860866
last_write_checksum: sha1:595e9b632c47beea5a9b96b12e8d03ba79490005

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ generation:
3434
generateNewTests: false
3535
skipResponseBodyAssertions: false
3636
python:
37-
version: 0.1.0
37+
version: 0.1.1
3838
additionalDependencies:
3939
dev: {}
4040
main: {}

.speakeasy/workflow.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ sources:
66
sourceBlobDigest: sha256:0c58d072e0b61c934870ce292789dd513ea1df64ec9a625f3e428fc17fcf2574
77
tags:
88
- latest
9+
- speakeasy-sdk-regen-1771901802
910
- 0.2.1
1011
targets:
1112
cloudinary:
@@ -14,7 +15,7 @@ targets:
1415
sourceRevisionDigest: sha256:2eb14e9aa6662f5f4f1d9ef1039678b31573aebc5765ea3e64a4d2017f9073d4
1516
sourceBlobDigest: sha256:0c58d072e0b61c934870ce292789dd513ea1df64ec9a625f3e428fc17fcf2574
1617
codeSamplesNamespace: cloudinary-provisioning-python-code-samples
17-
codeSamplesRevisionDigest: sha256:51b4b477a0ec7db077e23bf61c39dfa7eeebc8a1f4ba5b80e7efa092acbe803f
18+
codeSamplesRevisionDigest: sha256:77293005f11b5f2f0f8da3247f2fcce2aa0c14f2fa2f63a8d6b1cbdddd864493
1819
workflow:
1920
workflowVersion: 1.0.0
2021
speakeasyVersion: latest

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"python.testing.pytestArgs": ["tests", "-vv"],
3+
"python.testing.unittestEnabled": false,
4+
"python.testing.pytestEnabled": true,
5+
"pylint.args": ["--rcfile=pylintrc"]
6+
}

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing to This Repository
2+
3+
Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.
4+
5+
## How to Report Issues
6+
7+
If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:
8+
9+
- A clear and descriptive title
10+
- Steps to reproduce the issue
11+
- Expected and actual behavior
12+
- Any relevant logs, screenshots, or error messages
13+
- Information about your environment (e.g., operating system, software versions)
14+
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed
15+
16+
## Issue Triage and Upstream Fixes
17+
18+
We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.
19+
20+
## Contact
21+
22+
If you have any questions or need further assistance, please feel free to reach out by opening an issue.
23+
24+
Thank you for your understanding and cooperation!
25+
26+
The Maintainers

0 commit comments

Comments
 (0)