{"id":24989041,"url":"https://github.com/cloudcoil/models-velero","last_synced_at":"2025-10-12T07:20:45.888Z","repository":{"id":275046467,"uuid":"924917928","full_name":"cloudcoil/models-velero","owner":"cloudcoil","description":"Generated model repository for velero","archived":false,"fork":false,"pushed_at":"2025-08-24T21:27:54.000Z","size":427,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-25T00:42:41.295Z","etag":null,"topics":["cloudcoil","cloudcoil-models"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudcoil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-30T21:47:48.000Z","updated_at":"2025-08-24T21:25:29.000Z","dependencies_parsed_at":"2025-01-30T22:01:33.985Z","dependency_job_id":"e21d13b9-bdef-4310-bf9a-2dbe41569e02","html_url":"https://github.com/cloudcoil/models-velero","commit_stats":null,"previous_names":["cloudcoil/models-velero"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cloudcoil/models-velero","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcoil%2Fmodels-velero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcoil%2Fmodels-velero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcoil%2Fmodels-velero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcoil%2Fmodels-velero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudcoil","download_url":"https://codeload.github.com/cloudcoil/models-velero/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcoil%2Fmodels-velero/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010647,"owners_count":26084784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudcoil","cloudcoil-models"],"created_at":"2025-02-04T12:14:19.047Z","updated_at":"2025-10-12T07:20:45.873Z","avatar_url":"https://github.com/cloudcoil.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloudcoil-models-velero\n\nVersioned velero models for cloudcoil.\n\n[![PyPI](https://img.shields.io/pypi/v/cloudcoil.models.velero.svg)](https://pypi.python.org/pypi/cloudcoil.models.velero)\n[![Downloads](https://static.pepy.tech/badge/cloudcoil.models.velero)](https://pepy.tech/project/cloudcoil.models.velero)\n[![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/license/apache-2-0/)\n[![CI](https://github.com/cloudcoil/models-velero/actions/workflows/ci.yml/badge.svg)](https://github.com/cloudcoil/models-velero/actions/workflows/ci.yml)\n\u003e [!WARNING]  \n\u003e This repository is auto-generated from the [cloudcoil repository](https://github.com/cloudcoil/cloudcoil/tree/main/models/velero). Please do not submit pull requests here. Instead, submit them to the main repository at https://github.com/cloudcoil/cloudcoil.\n\n## 🔧 Installation\n\n\u003e [!NOTE]\n\u003e For versioning information and compatibility, see the [Versioning Guide](https://github.com/cloudcoil/cloudcoil/blob/main/VERSIONING.md).\n\nUsing [uv](https://github.com/astral-sh/uv) (recommended):\n\n```bash\n# Install with Velero support\nuv add cloudcoil.models.velero\n```\n\nUsing pip:\n\n```bash\npip install cloudcoil.models.velero\n```\n\n## 💡 Examples\n\n### Using Velero Models\n\n```python\nfrom cloudcoil import apimachinery\nimport cloudcoil.models.velero.v1 as velero\n\n# Create a Backup\nbackup = velero.Backup(\n    metadata=apimachinery.ObjectMeta(name=\"mybackup\"),\n    spec=velero.BackupSpec(\n        included_namespaces=[\"default\"],\n        storage_location=\"default\"\n    )\n).create()\n\n# List Backups\nfor b in velero.Backup.list():\n    print(f\"Found Backup: {b.metadata.name}\")\n```\n\n### Using the Fluent Builder API\n\nCloudcoil provides a powerful fluent builder API for Velero resources:\n\n```python\nfrom cloudcoil.models.velero.v1 import Backup\n\n# Create a Backup using the fluent builder\nbackup = (\n    Backup.builder()\n    .metadata(lambda metadata: metadata\n        .name(\"mybackup\")\n        .namespace(\"velero\")\n        .labels({\"app\": \"myapp\"})\n    )\n    .spec(lambda spec: spec\n        .included_namespaces([\"default\", \"kube-system\"])\n        .storage_location(\"default\")\n        .ttl(\"72h\")\n        .hooks(lambda hooks: hooks\n            .resources(lambda resources: resources.add({\n                \"name\": \"my-hook\",\n                \"included_namespaces\": [\"default\"]\n            }))\n        )\n    )\n    .build()\n)\n```\n\n### Using the Context Manager Builder API\n\nFor complex backup configurations, you can use the context manager-based builder:\n\n```python\nfrom cloudcoil.models.velero.v1 import Backup\n\n# Create a Backup using context managers\nwith Backup.new() as backup:\n    with backup.metadata() as metadata:\n        metadata.name(\"mybackup\")\n        metadata.namespace(\"velero\")\n\n    with backup.spec() as spec:\n        spec.included_namespaces([\"default\", \"kube-system\"])\n        spec.storage_location(\"default\")\n        spec.ttl(\"72h\")\n        with spec.hooks() as hooks:\n            with hooks.resources() as resources:\n                with resources.add() as resource:\n                    resource.name(\"my-hook\").included_namespaces([\"default\"])\n                with resources.add() as resource:\n                    resource.name(\"another-hook\").included_namespaces([\"default\"])\nfinal_backup = backup.build()\n```\n\n## 📚 Documentation\n\nFor complete documentation, visit [cloudcoil.github.io/cloudcoil](https://cloudcoil.github.io/cloudcoil)\n\n## 📜 License\n\nApache License, Version 2.0 - see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudcoil%2Fmodels-velero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudcoil%2Fmodels-velero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudcoil%2Fmodels-velero/lists"}