Versioned velero models for cloudcoil
Project description
cloudcoil-models-velero
Versioned velero models for cloudcoil.
[!WARNING]
This repository is auto-generated from the cloudcoil repository. Please do not submit pull requests here. Instead, submit them to the main repository at https://github.com/cloudcoil/cloudcoil.
🔧 Installation
[!NOTE] For versioning information and compatibility, see the Versioning Guide.
Using uv (recommended):
# Install with Velero support
uv add cloudcoil.models.velero
Using pip:
pip install cloudcoil.models.velero
💡 Examples
Using Velero Models
from cloudcoil import apimachinery
import cloudcoil.models.velero.v1 as velero
# Create a Backup
backup = velero.Backup(
metadata=apimachinery.ObjectMeta(name="mybackup"),
spec=velero.BackupSpec(
included_namespaces=["default"],
storage_location="default"
)
).create()
# List Backups
for b in velero.Backup.list():
print(f"Found Backup: {b.metadata.name}")
Using the Fluent Builder API
Cloudcoil provides a powerful fluent builder API for Velero resources:
from cloudcoil.models.velero.v1 import Backup
# Create a Backup using the fluent builder
backup = (
Backup.builder()
.metadata(lambda metadata: metadata
.name("mybackup")
.namespace("velero")
.labels({"app": "myapp"})
)
.spec(lambda spec: spec
.included_namespaces(["default", "kube-system"])
.storage_location("default")
.ttl("72h")
.hooks(lambda hooks: hooks
.resources(lambda resources: resources.add({
"name": "my-hook",
"included_namespaces": ["default"]
}))
)
)
.build()
)
Using the Context Manager Builder API
For complex backup configurations, you can use the context manager-based builder:
from cloudcoil.models.velero.v1 import Backup
# Create a Backup using context managers
with Backup.new() as backup:
with backup.metadata() as metadata:
metadata.name("mybackup")
metadata.namespace("velero")
with backup.spec() as spec:
spec.included_namespaces(["default", "kube-system"])
spec.storage_location("default")
spec.ttl("72h")
with spec.hooks() as hooks:
with hooks.resources() as resources:
with resources.add() as resource:
resource.name("my-hook").included_namespaces(["default"])
with resources.add() as resource:
resource.name("another-hook").included_namespaces(["default"])
final_backup = backup.build()
📚 Documentation
For complete documentation, visit cloudcoil.github.io/cloudcoil
📜 License
Apache License, Version 2.0 - see LICENSE
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloudcoil_models_velero-1.15.2.1.tar.gz.
File metadata
- Download URL: cloudcoil_models_velero-1.15.2.1.tar.gz
- Upload date:
- Size: 99.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74b72073857364fac3644c25b590b5c41607173afa1e28b1bb05b927221a8a5c
|
|
| MD5 |
3c2896e09afb25b3fe0e23d076272e1d
|
|
| BLAKE2b-256 |
b33035b86641af18034bcf72e8860afbac907b91082646fd35e6e4db0ae4d5a2
|
Provenance
The following attestation bundles were made for cloudcoil_models_velero-1.15.2.1.tar.gz:
Publisher:
pypi_publish.yml on cloudcoil/models-velero
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cloudcoil_models_velero-1.15.2.1.tar.gz -
Subject digest:
74b72073857364fac3644c25b590b5c41607173afa1e28b1bb05b927221a8a5c - Sigstore transparency entry: 169942662
- Sigstore integration time:
-
Permalink:
cloudcoil/models-velero@a32927410bb85a7df7db2ca809229faa1118388d -
Branch / Tag:
refs/tags/1.15.2.1 - Owner: https://github.com/cloudcoil
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@a32927410bb85a7df7db2ca809229faa1118388d -
Trigger Event:
release
-
Statement type:
File details
Details for the file cloudcoil_models_velero-1.15.2.1-py3-none-any.whl.
File metadata
- Download URL: cloudcoil_models_velero-1.15.2.1-py3-none-any.whl
- Upload date:
- Size: 38.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0aef920e00c9bef6ddf0189f89499d24716d0fdd138c1a9b16b0b43c226c1bf
|
|
| MD5 |
c0f6f344641650c7eaeb61eafd8f8995
|
|
| BLAKE2b-256 |
bd37d3208bc49d86653f741a20ef83943ab80e1af65aa4a108d2066d80cf9c1a
|
Provenance
The following attestation bundles were made for cloudcoil_models_velero-1.15.2.1-py3-none-any.whl:
Publisher:
pypi_publish.yml on cloudcoil/models-velero
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cloudcoil_models_velero-1.15.2.1-py3-none-any.whl -
Subject digest:
c0aef920e00c9bef6ddf0189f89499d24716d0fdd138c1a9b16b0b43c226c1bf - Sigstore transparency entry: 169942665
- Sigstore integration time:
-
Permalink:
cloudcoil/models-velero@a32927410bb85a7df7db2ca809229faa1118388d -
Branch / Tag:
refs/tags/1.15.2.1 - Owner: https://github.com/cloudcoil
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@a32927410bb85a7df7db2ca809229faa1118388d -
Trigger Event:
release
-
Statement type: