├── .github ├── CODEOWNERS ├── dependabot.yml ├── labeler.yml └── workflows │ ├── checks.yml │ ├── docs.yml │ ├── labeler.yml │ └── release.yml ├── .gitignore ├── .python-version ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── MAINTAINERS.md ├── Makefile ├── README.md ├── docs ├── .gitignore ├── Makefile ├── _static │ └── .gitkeep ├── _templates │ └── .gitkeep ├── conf.py ├── index.rst ├── make.bat ├── poetry.lock └── pyproject.toml ├── scaleway-async ├── README.md ├── poetry.lock ├── pyproject.toml ├── scaleway_async │ ├── __init__.py │ ├── account │ │ ├── __init__.py │ │ ├── v2 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ │ └── v3 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── applesilicon │ │ ├── __init__.py │ │ └── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── audit_trail │ │ ├── __init__.py │ │ └── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── autoscaling │ │ ├── __init__.py │ │ └── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── baremetal │ │ ├── __init__.py │ │ ├── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ │ └── v3 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── billing │ │ ├── __init__.py │ │ ├── v2alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ │ └── v2beta1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── block │ │ ├── __init__.py │ │ ├── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ │ └── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── cockpit │ │ ├── __init__.py │ │ ├── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ │ └── v1beta1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── container │ │ ├── __init__.py │ │ └── v1beta1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── dedibox │ │ ├── __init__.py │ │ └── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── document_db │ │ ├── __init__.py │ │ └── v1beta1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── domain │ │ ├── __init__.py │ │ └── v2beta1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── edge_services │ │ ├── __init__.py │ │ ├── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ │ └── v1beta1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── file │ │ ├── __init__.py │ │ └── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── flexibleip │ │ ├── __init__.py │ │ └── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── function │ │ ├── __init__.py │ │ └── v1beta1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── iam │ │ ├── __init__.py │ │ └── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── inference │ │ ├── __init__.py │ │ ├── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ │ └── v1beta1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── instance │ │ ├── __init__.py │ │ └── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ ├── types.py │ │ │ └── types_private.py │ ├── interlink │ │ ├── __init__.py │ │ └── v1beta1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── iot │ │ ├── __init__.py │ │ └── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── ipam │ │ ├── __init__.py │ │ └── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── ipfs │ │ ├── __init__.py │ │ └── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── jobs │ │ ├── __init__.py │ │ └── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── k8s │ │ ├── __init__.py │ │ └── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── key_manager │ │ ├── __init__.py │ │ └── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── lb │ │ ├── __init__.py │ │ └── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── marketplace │ │ ├── __init__.py │ │ └── v2 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── mnq │ │ ├── __init__.py │ │ └── v1beta1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── mongodb │ │ ├── __init__.py │ │ └── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── product_catalog │ │ ├── __init__.py │ │ └── v2alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── py.typed │ ├── qaas │ │ ├── __init__.py │ │ └── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── rdb │ │ ├── __init__.py │ │ └── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── redis │ │ ├── __init__.py │ │ └── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── registry │ │ ├── __init__.py │ │ └── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── secret │ │ ├── __init__.py │ │ ├── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ │ └── v1beta1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── serverless_sqldb │ │ ├── __init__.py │ │ └── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── std │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py │ ├── tem │ │ ├── __init__.py │ │ └── v1alpha1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── test │ │ ├── __init__.py │ │ └── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── vpc │ │ ├── __init__.py │ │ ├── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ │ └── v2 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ ├── vpcgw │ │ ├── __init__.py │ │ ├── v1 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ │ └── v2 │ │ │ ├── __init__.py │ │ │ ├── api.py │ │ │ ├── content.py │ │ │ ├── marshalling.py │ │ │ └── types.py │ └── webhosting │ │ ├── __init__.py │ │ ├── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py │ │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py └── tests │ ├── test_test_v1.py │ └── utils.py ├── scaleway-core ├── README.md ├── poetry.lock ├── pyproject.toml ├── scaleway_core │ ├── __init__.py │ ├── api.py │ ├── bridge │ │ ├── __init__.py │ │ ├── decimal.py │ │ ├── money.py │ │ ├── region.py │ │ ├── scwfile.py │ │ ├── serviceinfo.py │ │ ├── timeseries.py │ │ └── zone.py │ ├── client.py │ ├── profile │ │ ├── __init__.py │ │ ├── env.py │ │ ├── file.py │ │ └── profile.py │ ├── py.typed │ ├── utils │ │ ├── __init__.py │ │ ├── fetch_all_pages.py │ │ ├── project_or_organization_id.py │ │ ├── random_name.py │ │ ├── resolve_one_of.py │ │ ├── strenummeta.py │ │ ├── validate_path_param.py │ │ └── waiter.py │ └── validations │ │ ├── __init__.py │ │ └── string_validation.py └── tests │ ├── test_bridge_marshal.py │ ├── test_profile_env.py │ ├── test_profile_file.py │ └── utils.py └── scaleway ├── README.md ├── poetry.lock ├── pyproject.toml ├── scaleway ├── __init__.py ├── account │ ├── __init__.py │ ├── v2 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py │ └── v3 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py ├── applesilicon │ ├── __init__.py │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── audit_trail │ ├── __init__.py │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py ├── autoscaling │ ├── __init__.py │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py ├── baremetal │ ├── __init__.py │ ├── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py │ └── v3 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── billing │ ├── __init__.py │ ├── v2alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py │ └── v2beta1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py ├── block │ ├── __init__.py │ ├── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── cockpit │ ├── __init__.py │ ├── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py │ └── v1beta1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── container │ ├── __init__.py │ └── v1beta1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── dedibox │ ├── __init__.py │ └── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── document_db │ ├── __init__.py │ └── v1beta1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── domain │ ├── __init__.py │ └── v2beta1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── edge_services │ ├── __init__.py │ ├── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py │ └── v1beta1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── file │ ├── __init__.py │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── flexibleip │ ├── __init__.py │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── function │ ├── __init__.py │ └── v1beta1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── iam │ ├── __init__.py │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py ├── inference │ ├── __init__.py │ ├── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py │ └── v1beta1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── instance │ ├── __init__.py │ └── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── custom_api.py │ │ ├── custom_marshalling.py │ │ ├── custom_types.py │ │ ├── marshalling.py │ │ ├── test_user_data.py │ │ ├── types.py │ │ └── types_private.py ├── interlink │ ├── __init__.py │ └── v1beta1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── iot │ ├── __init__.py │ └── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── ipam │ ├── __init__.py │ └── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py ├── ipfs │ ├── __init__.py │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── jobs │ ├── __init__.py │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── k8s │ ├── __init__.py │ └── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── key_manager │ ├── __init__.py │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py ├── lb │ ├── __init__.py │ └── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── marketplace │ ├── __init__.py │ └── v2 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py ├── mnq │ ├── __init__.py │ └── v1beta1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py ├── mongodb │ ├── __init__.py │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── product_catalog │ ├── __init__.py │ └── v2alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py ├── py.typed ├── qaas │ ├── __init__.py │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── rdb │ ├── __init__.py │ └── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── redis │ ├── __init__.py │ └── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── registry │ ├── __init__.py │ └── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── secret │ ├── __init__.py │ ├── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py │ └── v1beta1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py ├── serverless_sqldb │ ├── __init__.py │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── std │ ├── __init__.py │ ├── api.py │ ├── marshalling.py │ └── types.py ├── tem │ ├── __init__.py │ └── v1alpha1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── test │ ├── __init__.py │ └── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py ├── vpc │ ├── __init__.py │ ├── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py │ └── v2 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── marshalling.py │ │ └── types.py ├── vpcgw │ ├── __init__.py │ ├── v1 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py │ └── v2 │ │ ├── __init__.py │ │ ├── api.py │ │ ├── content.py │ │ ├── marshalling.py │ │ └── types.py └── webhosting │ ├── __init__.py │ ├── v1 │ ├── __init__.py │ ├── api.py │ ├── content.py │ ├── marshalling.py │ └── types.py │ └── v1alpha1 │ ├── __init__.py │ ├── api.py │ ├── content.py │ ├── marshalling.py │ └── types.py └── tests ├── test_test_v1.py ├── test_test_v1_marshalling.py ├── test_total_count_legacy.py └── utils.py /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: pip 4 | directory: /scaleway 5 | schedule: 6 | interval: monthly 7 | 8 | - package-ecosystem: pip 9 | directory: /scaleway-async 10 | schedule: 11 | interval: monthly 12 | 13 | - package-ecosystem: pip 14 | directory: /scaleway-core 15 | schedule: 16 | interval: monthly 17 | 18 | - package-ecosystem: github-actions 19 | directory: / 20 | schedule: 21 | interval: monthly 22 | -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- 1 | name: Generate documentation 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | merge_group: 9 | workflow_dispatch: 10 | 11 | jobs: 12 | docs: 13 | runs-on: ubuntu-latest 14 | defaults: 15 | run: 16 | working-directory: ./docs 17 | steps: 18 | - uses: actions/checkout@v4 19 | - name: Set up Python 20 | uses: actions/setup-python@v5 21 | with: 22 | python-version: "3.10" 23 | - name: Install poetry 24 | run: | 25 | pip install poetry 26 | poetry --version 27 | - name: Install dependencies and library 28 | run: poetry install --no-root 29 | - name: Generate documentation sources 30 | run: | 31 | poetry run sphinx-apidoc -f -o ./source ../scaleway-core 32 | poetry run sphinx-apidoc -f -o ./source ../scaleway 33 | poetry run sphinx-apidoc -f -o ./source ../scaleway-async 34 | - name: Generate documentation 35 | run: poetry run sphinx-build -b html ./ ./_build 36 | - name: Deploy to GitHub Pages 37 | uses: peaceiris/actions-gh-pages@v4 38 | if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} 39 | with: 40 | publish_branch: docs 41 | github_token: ${{ secrets.GITHUB_TOKEN }} 42 | publish_dir: ./docs/_build 43 | force_orphan: true 44 | -------------------------------------------------------------------------------- /.github/workflows/labeler.yml: -------------------------------------------------------------------------------- 1 | name: "Pull Request Labeler" 2 | on: 3 | - pull_request_target 4 | 5 | jobs: 6 | triage: 7 | permissions: 8 | contents: read 9 | pull-requests: write 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Checkout 13 | uses: actions/checkout@v4 14 | - name: Labeler 15 | uses: actions/labeler@v5 16 | with: 17 | sync-labels: true 18 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | release: 5 | types: [created] 6 | 7 | jobs: 8 | release-core: 9 | runs-on: ubuntu-latest 10 | defaults: 11 | run: 12 | working-directory: scaleway-core 13 | steps: 14 | - uses: actions/checkout@v4 15 | - name: Set up Python 16 | uses: actions/setup-python@v5 17 | with: 18 | python-version: "3.10" 19 | - name: Install poetry 20 | run: | 21 | pip install poetry 22 | poetry --version 23 | - name: Update lock file 24 | run: poetry lock 25 | - name: Install dependencies and library 26 | run: poetry install 27 | - name: Set package version 28 | run: poetry version $(echo "${{ github.ref }}" | cut -d "/" -f 3) 29 | - name: Build package 30 | run: poetry build 31 | - name: Publish package 32 | run: poetry publish 33 | env: 34 | POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} 35 | - name: Wait for package to be available 36 | run: sleep 60 37 | 38 | release: 39 | needs: 40 | - release-core 41 | runs-on: ubuntu-latest 42 | strategy: 43 | matrix: 44 | lib: 45 | - scaleway 46 | - scaleway-async 47 | defaults: 48 | run: 49 | working-directory: ${{ matrix.lib }} 50 | steps: 51 | - uses: actions/checkout@v4 52 | - name: Set up Python 53 | uses: actions/setup-python@v5 54 | with: 55 | python-version: "3.10" 56 | - name: Install poetry 57 | run: | 58 | pip install poetry 59 | poetry --version 60 | - name: Set local scaleway-core version 61 | run: poetry version $(echo "${{ github.ref }}" | cut -d "/" -f 3) 62 | working-directory: scaleway-core 63 | - name: Set scaleway-core version in the package 64 | run: poetry add scaleway-core@$(echo "${{ github.ref }}" | cut -d "/" -f 3) 65 | - name: Update lock file 66 | run: poetry lock 67 | - name: Install dependencies and library 68 | run: poetry install 69 | - name: Set package version 70 | run: poetry version $(echo "${{ github.ref }}" | cut -d "/" -f 3) 71 | - name: Build package 72 | run: poetry build 73 | - name: Publish package 74 | run: poetry publish 75 | env: 76 | POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} 77 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Python compiled 2 | __pycache__/ 3 | 4 | # Poetry 5 | dist/ 6 | 7 | # macOS 8 | .DS_Store 9 | -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.8.14 2 | -------------------------------------------------------------------------------- /MAINTAINERS.md: -------------------------------------------------------------------------------- 1 | This page lists all active maintainers of `scaleway-sdk-python`. This can be used for 2 | routing PRs, questions, etc. to the right place. 3 | 4 | - See [CONTRIBUTING.md](CONTRIBUTING.md) for general contribution guidelines. 5 | 6 | ### Maintainers 7 | 8 | | Name | Tag | 9 | | :---------------- | :----------------------------------------------- | 10 | | Nathanael Demacon | [@quantumsheep](https://github.com/quantumsheep) | 11 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | WORKDIR = $(shell pwd) 2 | LIBRARIES = scaleway-core scaleway-async scaleway 3 | 4 | build: 5 | for lib in $(LIBRARIES); do \ 6 | cd ${WORKDIR}/$$lib && \ 7 | poetry build; \ 8 | done 9 | 10 | install-dependencies: 11 | for lib in $(LIBRARIES); do \ 12 | cd ${WORKDIR}/$$lib && \ 13 | poetry install --no-root; \ 14 | done 15 | 16 | install-only-root: 17 | for lib in $(LIBRARIES); do \ 18 | cd ${WORKDIR}/$$lib && \ 19 | poetry install --only-root; \ 20 | done 21 | 22 | format: 23 | for lib in $(LIBRARIES); do \ 24 | cd ${WORKDIR}/$$lib && \ 25 | poetry run ruff --version && \ 26 | poetry run ruff format; \ 27 | done 28 | 29 | format-check: 30 | for lib in $(LIBRARIES); do \ 31 | cd ${WORKDIR}/$$lib && \ 32 | poetry run ruff --version && \ 33 | poetry run ruff format --check; \ 34 | done 35 | 36 | typing: 37 | for lib in $(LIBRARIES); do \ 38 | cd ${WORKDIR}/$$lib && \ 39 | poetry run mypy --version && \ 40 | poetry run mypy --install-types --non-interactive --strict $$(echo $$lib | tr "-" "_"); \ 41 | done 42 | 43 | lint: 44 | for lib in $(LIBRARIES); do \ 45 | cd ${WORKDIR}/$$lib && \ 46 | poetry run ruff --version && \ 47 | poetry run ruff check . --ignore E721 --ignore F541; \ 48 | done 49 | 50 | test: 51 | for lib in $(LIBRARIES); do \ 52 | cd ${WORKDIR}/$$lib && \ 53 | poetry run python -m unittest discover -s tests -v; \ 54 | done 55 | 56 | publish: install-dependencies 57 | for lib in $(LIBRARIES); do \ 58 | cd ${WORKDIR}/$$lib && \ 59 | poetry version "${PACKAGE_VERSION}" && \ 60 | poetry build && \ 61 | poetry publish --repository "${PYPI_REPOSITORY}" --no-interaction; \ 62 | done 63 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Scaleway Python SDK 2 | 3 | This SDK enables you to interact with Scaleway APIs using Python. 4 | 5 | > **Warning** 6 | > The project is in beta, but should be fairly stable. If you have issues using it, please [open an issue](https://github.com/scaleway/scaleway-sdk-python/issues/new). 7 | 8 | **🔗  Important links:** 9 | 10 | * [Reference documentation](https://scaleway.github.io/scaleway-sdk-python) 11 | * [Developers website](https://developers.scaleway.com) (API documentation) 12 | 13 | ## Get started 14 | 15 | Please refer to the [guide](https://scaleway.github.io/scaleway-sdk-python) to get started with the SDK. 16 | 17 | ## Development 18 | 19 | This repository is at its early stage and is still in active development. 20 | If you are looking for a way to contribute please read [CONTRIBUTING.md](./CONTRIBUTING.md). 21 | 22 | ## Reach us 23 | 24 | We love feedback. Feel free to reach us on [Scaleway Slack community](https://slack.scaleway.com/), we are waiting for you on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource). 25 | -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | ./source 2 | ./_build 3 | -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- 1 | # Minimal makefile for Sphinx documentation 2 | # 3 | 4 | # You can set these variables from the command line, and also 5 | # from the environment for the first two. 6 | SPHINXOPTS ?= 7 | SPHINXBUILD ?= sphinx-build 8 | SOURCEDIR = . 9 | BUILDDIR = _build 10 | 11 | # Put it first so that "make" without argument is like "make help". 12 | help: 13 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 14 | 15 | .PHONY: help Makefile 16 | 17 | # Catch-all target: route all unknown targets to Sphinx using the new 18 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). 19 | %: Makefile 20 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 21 | -------------------------------------------------------------------------------- /docs/_static/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scaleway/scaleway-sdk-python/f86f8891e24882217540e32f02617365a76b9737/docs/_static/.gitkeep -------------------------------------------------------------------------------- /docs/_templates/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scaleway/scaleway-sdk-python/f86f8891e24882217540e32f02617365a76b9737/docs/_templates/.gitkeep -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- 1 | # Configuration file for the Sphinx documentation builder. 2 | # 3 | # For the full list of built-in configuration values, see the documentation: 4 | # https://www.sphinx-doc.org/en/master/usage/configuration.html 5 | 6 | # -- Project information ----------------------------------------------------- 7 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information 8 | 9 | import os 10 | import sys 11 | 12 | 13 | project = "Scaleway Python SDK" 14 | copyright = "2022, Scaleway" 15 | author = "Scaleway" 16 | 17 | # -- General configuration --------------------------------------------------- 18 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration 19 | 20 | extensions = [ 21 | "sphinx.ext.autodoc", 22 | "sphinx.ext.autosummary", 23 | "sphinx_rtd_theme", 24 | ] 25 | autosummary_generate = True 26 | 27 | templates_path = ["_templates"] 28 | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] 29 | 30 | 31 | # -- Options for HTML output ------------------------------------------------- 32 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output 33 | 34 | html_theme = "sphinx_rtd_theme" 35 | html_static_path = ["_static"] 36 | 37 | sys.path.insert(0, os.path.abspath("..")) 38 | -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | pushd %~dp0 4 | 5 | REM Command file for Sphinx documentation 6 | 7 | if "%SPHINXBUILD%" == "" ( 8 | set SPHINXBUILD=sphinx-build 9 | ) 10 | set SOURCEDIR=. 11 | set BUILDDIR=_build 12 | 13 | %SPHINXBUILD% >NUL 2>NUL 14 | if errorlevel 9009 ( 15 | echo. 16 | echo.The 'sphinx-build' command was not found. Make sure you have Sphinx 17 | echo.installed, then set the SPHINXBUILD environment variable to point 18 | echo.to the full path of the 'sphinx-build' executable. Alternatively you 19 | echo.may add the Sphinx directory to PATH. 20 | echo. 21 | echo.If you don't have Sphinx installed, grab it from 22 | echo.https://www.sphinx-doc.org/ 23 | exit /b 1 24 | ) 25 | 26 | if "%1" == "" goto help 27 | 28 | %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% 29 | goto end 30 | 31 | :help 32 | %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% 33 | 34 | :end 35 | popd 36 | -------------------------------------------------------------------------------- /docs/pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.poetry] 2 | name = "scaleway-docs" 3 | version = "2.0.0" 4 | description = "" 5 | authors = ["Scaleway "] 6 | license = "BSD" 7 | 8 | [tool.poetry.dependencies] 9 | python = "^3.8" 10 | sphinx-rtd-theme = "^1.1.1" 11 | Sphinx = "^5" 12 | scaleway-core = { path = "../scaleway-core", develop = true } 13 | scaleway = { path = "../scaleway", develop = true } 14 | scaleway-async = { path = "../scaleway-async", develop = true } 15 | 16 | [build-system] 17 | requires = ["poetry-core"] 18 | build-backend = "poetry.core.masonry.api" 19 | -------------------------------------------------------------------------------- /scaleway-async/README.md: -------------------------------------------------------------------------------- 1 | # Scaleway Python SDK - Async 2 | -------------------------------------------------------------------------------- /scaleway-async/pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.poetry] 2 | name = "scaleway-async" 3 | version = "2.0.0" 4 | description = "Scaleway SDK for Python" 5 | authors = ["Scaleway "] 6 | license = "BSD" 7 | readme = "README.md" 8 | classifiers = [ 9 | "Development Status :: 3 - Alpha", 10 | "Environment :: Console", 11 | "Intended Audience :: Developers", 12 | "License :: OSI Approved :: BSD License", 13 | "Operating System :: OS Independent", 14 | "Programming Language :: Python :: 3", 15 | "Programming Language :: Python :: 3.4", 16 | "Programming Language :: Python :: 3.5", 17 | "Programming Language :: Python :: 3.6", 18 | "Programming Language :: Python :: 3.7", 19 | "Programming Language :: Python :: 3.8", 20 | "Programming Language :: Python :: 3.9", 21 | "Programming Language :: Python :: 3.10", 22 | "Topic :: Software Development", 23 | ] 24 | 25 | [tool.poetry.dependencies] 26 | python = ">=3.10" 27 | scaleway-core = "*" 28 | 29 | [tool.poetry.group.dev.dependencies] 30 | scaleway-core = { path = "../scaleway-core", develop = true } 31 | ruff = ">=0.5.0,<0.11.13" 32 | mypy = "^1.5.1" 33 | 34 | [build-system] 35 | requires = ["poetry-core"] 36 | build-backend = "poetry.core.masonry.api" 37 | 38 | [tool.ruff.lint] 39 | ignore = ["E501"] 40 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/__init__.py: -------------------------------------------------------------------------------- 1 | """Scaleway SDK for Python - Async""" 2 | 3 | import importlib.metadata 4 | 5 | __version__: str = importlib.metadata.version(__name__) 6 | 7 | from scaleway_core.api import ( 8 | API, 9 | ScalewayException, 10 | ) 11 | 12 | from scaleway_core.client import Client 13 | 14 | from scaleway_core.profile import ( 15 | Profile, 16 | ProfileConfig, 17 | ProfileDefaults, 18 | ) 19 | 20 | from scaleway_core.utils.waiter import ( 21 | WaitForOptions, 22 | WaitForStopCondition, 23 | ) 24 | 25 | from scaleway_core.bridge import ( 26 | Money, 27 | Region, 28 | ALL_REGIONS, 29 | Zone, 30 | ALL_ZONES, 31 | ScwFile, 32 | ServiceInfo, 33 | TimeSeriesPoint, 34 | TimeSeries, 35 | ) 36 | 37 | __all__ = [ 38 | "API", 39 | "ScalewayException", 40 | "Client", 41 | "Profile", 42 | "ProfileConfig", 43 | "ProfileDefaults", 44 | "WaitForOptions", 45 | "WaitForStopCondition", 46 | "Money", 47 | "Region", 48 | "ALL_REGIONS", 49 | "Zone", 50 | "ALL_ZONES", 51 | "ScwFile", 52 | "ServiceInfo", 53 | "TimeSeriesPoint", 54 | "TimeSeries", 55 | ] 56 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/account/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/account/v2/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListProjectsRequestOrderBy 4 | from .types import Project 5 | from .types import CreateProjectRequest 6 | from .types import DeleteProjectRequest 7 | from .types import GetProjectRequest 8 | from .types import ListProjectsRequest 9 | from .types import ListProjectsResponse 10 | from .types import UpdateProjectRequest 11 | from .api import AccountV2API 12 | 13 | __all__ = [ 14 | "ListProjectsRequestOrderBy", 15 | "Project", 16 | "CreateProjectRequest", 17 | "DeleteProjectRequest", 18 | "GetProjectRequest", 19 | "ListProjectsRequest", 20 | "ListProjectsResponse", 21 | "UpdateProjectRequest", 22 | "AccountV2API", 23 | ] 24 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/applesilicon/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/applesilicon/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ServerPrivateNetworkServerStatus, 7 | ServerPrivateNetworkStatus, 8 | ServerStatus, 9 | ) 10 | 11 | SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES: List[ 12 | ServerPrivateNetworkServerStatus 13 | ] = [ 14 | ServerPrivateNetworkServerStatus.ATTACHING, 15 | ServerPrivateNetworkServerStatus.DETACHING, 16 | ] 17 | """ 18 | Lists transient statutes of the enum :class:`ServerPrivateNetworkServerStatus `. 19 | """ 20 | SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: List[ServerPrivateNetworkStatus] = [ 21 | ServerPrivateNetworkStatus.VPC_UPDATING, 22 | ] 23 | """ 24 | Lists transient statutes of the enum :class:`ServerPrivateNetworkStatus `. 25 | """ 26 | SERVER_TRANSIENT_STATUSES: List[ServerStatus] = [ 27 | ServerStatus.STARTING, 28 | ServerStatus.REBOOTING, 29 | ServerStatus.UPDATING, 30 | ServerStatus.LOCKING, 31 | ServerStatus.UNLOCKING, 32 | ServerStatus.REINSTALLING, 33 | ServerStatus.BUSY, 34 | ] 35 | """ 36 | Lists transient statutes of the enum :class:`ServerStatus `. 37 | """ 38 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/audit_trail/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/audit_trail/v1alpha1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListEventsRequestOrderBy 4 | from .types import ResourceType 5 | from .types import AccountOrganizationInfo 6 | from .types import AccountUserInfo 7 | from .types import KeyManagerKeyInfo 8 | from .types import KubernetesACLInfo 9 | from .types import KubernetesClusterInfo 10 | from .types import KubernetesNodeInfo 11 | from .types import KubernetesPoolInfo 12 | from .types import SecretManagerSecretInfo 13 | from .types import SecretManagerSecretVersionInfo 14 | from .types import EventPrincipal 15 | from .types import Resource 16 | from .types import ProductService 17 | from .types import Event 18 | from .types import Product 19 | from .types import ListEventsRequest 20 | from .types import ListEventsResponse 21 | from .types import ListProductsRequest 22 | from .types import ListProductsResponse 23 | from .api import AuditTrailV1Alpha1API 24 | 25 | __all__ = [ 26 | "ListEventsRequestOrderBy", 27 | "ResourceType", 28 | "AccountOrganizationInfo", 29 | "AccountUserInfo", 30 | "KeyManagerKeyInfo", 31 | "KubernetesACLInfo", 32 | "KubernetesClusterInfo", 33 | "KubernetesNodeInfo", 34 | "KubernetesPoolInfo", 35 | "SecretManagerSecretInfo", 36 | "SecretManagerSecretVersionInfo", 37 | "EventPrincipal", 38 | "Resource", 39 | "ProductService", 40 | "Event", 41 | "Product", 42 | "ListEventsRequest", 43 | "ListEventsResponse", 44 | "ListProductsRequest", 45 | "ListProductsResponse", 46 | "AuditTrailV1Alpha1API", 47 | ] 48 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/autoscaling/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/baremetal/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/baremetal/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ServerInstallStatus, 7 | ServerPrivateNetworkStatus, 8 | ServerStatus, 9 | ) 10 | 11 | SERVER_INSTALL_TRANSIENT_STATUSES: List[ServerInstallStatus] = [ 12 | ServerInstallStatus.TO_INSTALL, 13 | ServerInstallStatus.INSTALLING, 14 | ] 15 | """ 16 | Lists transient statutes of the enum :class:`ServerInstallStatus `. 17 | """ 18 | SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: List[ServerPrivateNetworkStatus] = [ 19 | ServerPrivateNetworkStatus.ATTACHING, 20 | ServerPrivateNetworkStatus.DETACHING, 21 | ] 22 | """ 23 | Lists transient statutes of the enum :class:`ServerPrivateNetworkStatus `. 24 | """ 25 | SERVER_TRANSIENT_STATUSES: List[ServerStatus] = [ 26 | ServerStatus.DELIVERING, 27 | ServerStatus.STOPPING, 28 | ServerStatus.STARTING, 29 | ServerStatus.DELETING, 30 | ServerStatus.ORDERED, 31 | ServerStatus.RESETTING, 32 | ServerStatus.MIGRATING, 33 | ] 34 | """ 35 | Lists transient statutes of the enum :class:`ServerStatus `. 36 | """ 37 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/baremetal/v3/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListServerPrivateNetworksRequestOrderBy 4 | from .types import ServerPrivateNetworkStatus 5 | from .content import SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES 6 | from .types import ServerPrivateNetwork 7 | from .types import ListServerPrivateNetworksResponse 8 | from .types import PrivateNetworkApiAddServerPrivateNetworkRequest 9 | from .types import PrivateNetworkApiDeleteServerPrivateNetworkRequest 10 | from .types import PrivateNetworkApiListServerPrivateNetworksRequest 11 | from .types import PrivateNetworkApiSetServerPrivateNetworksRequest 12 | from .types import SetServerPrivateNetworksResponse 13 | from .api import BaremetalV3PrivateNetworkAPI 14 | 15 | __all__ = [ 16 | "ListServerPrivateNetworksRequestOrderBy", 17 | "ServerPrivateNetworkStatus", 18 | "SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES", 19 | "ServerPrivateNetwork", 20 | "ListServerPrivateNetworksResponse", 21 | "PrivateNetworkApiAddServerPrivateNetworkRequest", 22 | "PrivateNetworkApiDeleteServerPrivateNetworkRequest", 23 | "PrivateNetworkApiListServerPrivateNetworksRequest", 24 | "PrivateNetworkApiSetServerPrivateNetworksRequest", 25 | "SetServerPrivateNetworksResponse", 26 | "BaremetalV3PrivateNetworkAPI", 27 | ] 28 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/baremetal/v3/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ServerPrivateNetworkStatus, 7 | ) 8 | 9 | SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: List[ServerPrivateNetworkStatus] = [ 10 | ServerPrivateNetworkStatus.ATTACHING, 11 | ServerPrivateNetworkStatus.DETACHING, 12 | ] 13 | """ 14 | Lists transient statutes of the enum :class:`ServerPrivateNetworkStatus `. 15 | """ 16 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/billing/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/billing/v2alpha1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import DiscountDiscountMode 4 | from .types import DiscountFilterType 5 | from .types import DownloadInvoiceRequestFileType 6 | from .types import InvoiceType 7 | from .types import ListDiscountsRequestOrderBy 8 | from .types import ListInvoicesRequestOrderBy 9 | from .types import DiscountCoupon 10 | from .types import DiscountFilter 11 | from .types import GetConsumptionResponseConsumption 12 | from .types import Discount 13 | from .types import Invoice 14 | from .types import DownloadInvoiceRequest 15 | from .types import GetConsumptionRequest 16 | from .types import GetConsumptionResponse 17 | from .types import ListDiscountsRequest 18 | from .types import ListDiscountsResponse 19 | from .types import ListInvoicesRequest 20 | from .types import ListInvoicesResponse 21 | from .api import BillingV2Alpha1API 22 | 23 | __all__ = [ 24 | "DiscountDiscountMode", 25 | "DiscountFilterType", 26 | "DownloadInvoiceRequestFileType", 27 | "InvoiceType", 28 | "ListDiscountsRequestOrderBy", 29 | "ListInvoicesRequestOrderBy", 30 | "DiscountCoupon", 31 | "DiscountFilter", 32 | "GetConsumptionResponseConsumption", 33 | "Discount", 34 | "Invoice", 35 | "DownloadInvoiceRequest", 36 | "GetConsumptionRequest", 37 | "GetConsumptionResponse", 38 | "ListDiscountsRequest", 39 | "ListDiscountsResponse", 40 | "ListInvoicesRequest", 41 | "ListInvoicesResponse", 42 | "BillingV2Alpha1API", 43 | ] 44 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/billing/v2beta1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import DiscountDiscountMode 4 | from .types import DiscountFilterType 5 | from .types import DownloadInvoiceRequestFileType 6 | from .types import ExportInvoicesRequestFileType 7 | from .types import ExportInvoicesRequestOrderBy 8 | from .types import InvoiceType 9 | from .types import ListConsumptionsRequestOrderBy 10 | from .types import ListDiscountsRequestOrderBy 11 | from .types import ListInvoicesRequestOrderBy 12 | from .types import ListTaxesRequestOrderBy 13 | from .types import DiscountCoupon 14 | from .types import DiscountFilter 15 | from .types import ListConsumptionsResponseConsumption 16 | from .types import Discount 17 | from .types import Invoice 18 | from .types import ListTaxesResponseTax 19 | from .types import DownloadInvoiceRequest 20 | from .types import ExportInvoicesRequest 21 | from .types import GetInvoiceRequest 22 | from .types import ListConsumptionsRequest 23 | from .types import ListConsumptionsResponse 24 | from .types import ListDiscountsRequest 25 | from .types import ListDiscountsResponse 26 | from .types import ListInvoicesRequest 27 | from .types import ListInvoicesResponse 28 | from .types import ListTaxesRequest 29 | from .types import ListTaxesResponse 30 | from .api import BillingV2Beta1API 31 | 32 | __all__ = [ 33 | "DiscountDiscountMode", 34 | "DiscountFilterType", 35 | "DownloadInvoiceRequestFileType", 36 | "ExportInvoicesRequestFileType", 37 | "ExportInvoicesRequestOrderBy", 38 | "InvoiceType", 39 | "ListConsumptionsRequestOrderBy", 40 | "ListDiscountsRequestOrderBy", 41 | "ListInvoicesRequestOrderBy", 42 | "ListTaxesRequestOrderBy", 43 | "DiscountCoupon", 44 | "DiscountFilter", 45 | "ListConsumptionsResponseConsumption", 46 | "Discount", 47 | "Invoice", 48 | "ListTaxesResponseTax", 49 | "DownloadInvoiceRequest", 50 | "ExportInvoicesRequest", 51 | "GetInvoiceRequest", 52 | "ListConsumptionsRequest", 53 | "ListConsumptionsResponse", 54 | "ListDiscountsRequest", 55 | "ListDiscountsResponse", 56 | "ListInvoicesRequest", 57 | "ListInvoicesResponse", 58 | "ListTaxesRequest", 59 | "ListTaxesResponse", 60 | "BillingV2Beta1API", 61 | ] 62 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/block/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/block/v1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListSnapshotsRequestOrderBy 4 | from .types import ListVolumesRequestOrderBy 5 | from .types import ReferenceStatus 6 | from .content import REFERENCE_TRANSIENT_STATUSES 7 | from .types import ReferenceType 8 | from .types import SnapshotStatus 9 | from .content import SNAPSHOT_TRANSIENT_STATUSES 10 | from .types import StorageClass 11 | from .types import VolumeStatus 12 | from .content import VOLUME_TRANSIENT_STATUSES 13 | from .types import Reference 14 | from .types import SnapshotParentVolume 15 | from .types import VolumeSpecifications 16 | from .types import CreateVolumeRequestFromEmpty 17 | from .types import CreateVolumeRequestFromSnapshot 18 | from .types import Snapshot 19 | from .types import VolumeType 20 | from .types import Volume 21 | from .types import CreateSnapshotRequest 22 | from .types import CreateVolumeRequest 23 | from .types import DeleteSnapshotRequest 24 | from .types import DeleteVolumeRequest 25 | from .types import ExportSnapshotToObjectStorageRequest 26 | from .types import GetSnapshotRequest 27 | from .types import GetVolumeRequest 28 | from .types import ImportSnapshotFromObjectStorageRequest 29 | from .types import ListSnapshotsRequest 30 | from .types import ListSnapshotsResponse 31 | from .types import ListVolumeTypesRequest 32 | from .types import ListVolumeTypesResponse 33 | from .types import ListVolumesRequest 34 | from .types import ListVolumesResponse 35 | from .types import UpdateSnapshotRequest 36 | from .types import UpdateVolumeRequest 37 | from .api import BlockV1API 38 | 39 | __all__ = [ 40 | "ListSnapshotsRequestOrderBy", 41 | "ListVolumesRequestOrderBy", 42 | "ReferenceStatus", 43 | "REFERENCE_TRANSIENT_STATUSES", 44 | "ReferenceType", 45 | "SnapshotStatus", 46 | "SNAPSHOT_TRANSIENT_STATUSES", 47 | "StorageClass", 48 | "VolumeStatus", 49 | "VOLUME_TRANSIENT_STATUSES", 50 | "Reference", 51 | "SnapshotParentVolume", 52 | "VolumeSpecifications", 53 | "CreateVolumeRequestFromEmpty", 54 | "CreateVolumeRequestFromSnapshot", 55 | "Snapshot", 56 | "VolumeType", 57 | "Volume", 58 | "CreateSnapshotRequest", 59 | "CreateVolumeRequest", 60 | "DeleteSnapshotRequest", 61 | "DeleteVolumeRequest", 62 | "ExportSnapshotToObjectStorageRequest", 63 | "GetSnapshotRequest", 64 | "GetVolumeRequest", 65 | "ImportSnapshotFromObjectStorageRequest", 66 | "ListSnapshotsRequest", 67 | "ListSnapshotsResponse", 68 | "ListVolumeTypesRequest", 69 | "ListVolumeTypesResponse", 70 | "ListVolumesRequest", 71 | "ListVolumesResponse", 72 | "UpdateSnapshotRequest", 73 | "UpdateVolumeRequest", 74 | "BlockV1API", 75 | ] 76 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/block/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ReferenceStatus, 7 | SnapshotStatus, 8 | VolumeStatus, 9 | ) 10 | 11 | REFERENCE_TRANSIENT_STATUSES: List[ReferenceStatus] = [ 12 | ReferenceStatus.ATTACHING, 13 | ReferenceStatus.DETACHING, 14 | ReferenceStatus.CREATING, 15 | ] 16 | """ 17 | Lists transient statutes of the enum :class:`ReferenceStatus `. 18 | """ 19 | SNAPSHOT_TRANSIENT_STATUSES: List[SnapshotStatus] = [ 20 | SnapshotStatus.CREATING, 21 | SnapshotStatus.DELETING, 22 | SnapshotStatus.EXPORTING, 23 | ] 24 | """ 25 | Lists transient statutes of the enum :class:`SnapshotStatus `. 26 | """ 27 | VOLUME_TRANSIENT_STATUSES: List[VolumeStatus] = [ 28 | VolumeStatus.CREATING, 29 | VolumeStatus.DELETING, 30 | VolumeStatus.RESIZING, 31 | VolumeStatus.SNAPSHOTTING, 32 | VolumeStatus.UPDATING, 33 | ] 34 | """ 35 | Lists transient statutes of the enum :class:`VolumeStatus `. 36 | """ 37 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/block/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ReferenceStatus, 7 | SnapshotStatus, 8 | VolumeStatus, 9 | ) 10 | 11 | REFERENCE_TRANSIENT_STATUSES: List[ReferenceStatus] = [ 12 | ReferenceStatus.ATTACHING, 13 | ReferenceStatus.DETACHING, 14 | ReferenceStatus.CREATING, 15 | ] 16 | """ 17 | Lists transient statutes of the enum :class:`ReferenceStatus `. 18 | """ 19 | SNAPSHOT_TRANSIENT_STATUSES: List[SnapshotStatus] = [ 20 | SnapshotStatus.CREATING, 21 | SnapshotStatus.DELETING, 22 | SnapshotStatus.EXPORTING, 23 | ] 24 | """ 25 | Lists transient statutes of the enum :class:`SnapshotStatus `. 26 | """ 27 | VOLUME_TRANSIENT_STATUSES: List[VolumeStatus] = [ 28 | VolumeStatus.CREATING, 29 | VolumeStatus.DELETING, 30 | VolumeStatus.RESIZING, 31 | VolumeStatus.SNAPSHOTTING, 32 | VolumeStatus.UPDATING, 33 | ] 34 | """ 35 | Lists transient statutes of the enum :class:`VolumeStatus `. 36 | """ 37 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/cockpit/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/cockpit/v1beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | CockpitStatus, 7 | ) 8 | 9 | COCKPIT_TRANSIENT_STATUSES: List[CockpitStatus] = [ 10 | CockpitStatus.CREATING, 11 | CockpitStatus.DELETING, 12 | CockpitStatus.UPDATING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`CockpitStatus `. 16 | """ 17 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/container/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/container/v1beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ContainerStatus, 7 | CronStatus, 8 | DomainStatus, 9 | NamespaceStatus, 10 | TokenStatus, 11 | TriggerStatus, 12 | ) 13 | 14 | CONTAINER_TRANSIENT_STATUSES: List[ContainerStatus] = [ 15 | ContainerStatus.DELETING, 16 | ContainerStatus.CREATING, 17 | ContainerStatus.PENDING, 18 | ] 19 | """ 20 | Lists transient statutes of the enum :class:`ContainerStatus `. 21 | """ 22 | CRON_TRANSIENT_STATUSES: List[CronStatus] = [ 23 | CronStatus.DELETING, 24 | CronStatus.CREATING, 25 | CronStatus.PENDING, 26 | ] 27 | """ 28 | Lists transient statutes of the enum :class:`CronStatus `. 29 | """ 30 | DOMAIN_TRANSIENT_STATUSES: List[DomainStatus] = [ 31 | DomainStatus.DELETING, 32 | DomainStatus.CREATING, 33 | DomainStatus.PENDING, 34 | ] 35 | """ 36 | Lists transient statutes of the enum :class:`DomainStatus `. 37 | """ 38 | NAMESPACE_TRANSIENT_STATUSES: List[NamespaceStatus] = [ 39 | NamespaceStatus.DELETING, 40 | NamespaceStatus.CREATING, 41 | NamespaceStatus.PENDING, 42 | ] 43 | """ 44 | Lists transient statutes of the enum :class:`NamespaceStatus `. 45 | """ 46 | TOKEN_TRANSIENT_STATUSES: List[TokenStatus] = [ 47 | TokenStatus.DELETING, 48 | TokenStatus.CREATING, 49 | ] 50 | """ 51 | Lists transient statutes of the enum :class:`TokenStatus `. 52 | """ 53 | TRIGGER_TRANSIENT_STATUSES: List[TriggerStatus] = [ 54 | TriggerStatus.DELETING, 55 | TriggerStatus.CREATING, 56 | TriggerStatus.PENDING, 57 | ] 58 | """ 59 | Lists transient statutes of the enum :class:`TriggerStatus `. 60 | """ 61 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/dedibox/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/document_db/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/document_db/v1beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | InstanceLogStatus, 7 | InstanceStatus, 8 | MaintenanceStatus, 9 | ReadReplicaStatus, 10 | SnapshotStatus, 11 | ) 12 | 13 | INSTANCE_LOG_TRANSIENT_STATUSES: List[InstanceLogStatus] = [ 14 | InstanceLogStatus.CREATING, 15 | ] 16 | """ 17 | Lists transient statutes of the enum :class:`InstanceLogStatus `. 18 | """ 19 | INSTANCE_TRANSIENT_STATUSES: List[InstanceStatus] = [ 20 | InstanceStatus.PROVISIONING, 21 | InstanceStatus.CONFIGURING, 22 | InstanceStatus.DELETING, 23 | InstanceStatus.AUTOHEALING, 24 | InstanceStatus.INITIALIZING, 25 | InstanceStatus.BACKUPING, 26 | InstanceStatus.SNAPSHOTTING, 27 | InstanceStatus.RESTARTING, 28 | ] 29 | """ 30 | Lists transient statutes of the enum :class:`InstanceStatus `. 31 | """ 32 | MAINTENANCE_TRANSIENT_STATUSES: List[MaintenanceStatus] = [ 33 | MaintenanceStatus.ONGOING, 34 | ] 35 | """ 36 | Lists transient statutes of the enum :class:`MaintenanceStatus `. 37 | """ 38 | READ_REPLICA_TRANSIENT_STATUSES: List[ReadReplicaStatus] = [ 39 | ReadReplicaStatus.PROVISIONING, 40 | ReadReplicaStatus.INITIALIZING, 41 | ReadReplicaStatus.DELETING, 42 | ReadReplicaStatus.CONFIGURING, 43 | ReadReplicaStatus.PROMOTING, 44 | ] 45 | """ 46 | Lists transient statutes of the enum :class:`ReadReplicaStatus `. 47 | """ 48 | SNAPSHOT_TRANSIENT_STATUSES: List[SnapshotStatus] = [ 49 | SnapshotStatus.CREATING, 50 | SnapshotStatus.RESTORING, 51 | SnapshotStatus.DELETING, 52 | ] 53 | """ 54 | Lists transient statutes of the enum :class:`SnapshotStatus `. 55 | """ 56 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/domain/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/domain/v2beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DNSZoneStatus, 7 | DomainFeatureStatus, 8 | DomainRegistrationStatusTransferStatus, 9 | DomainStatus, 10 | HostStatus, 11 | SSLCertificateStatus, 12 | TaskStatus, 13 | ) 14 | 15 | DNS_ZONE_TRANSIENT_STATUSES: List[DNSZoneStatus] = [ 16 | DNSZoneStatus.PENDING, 17 | ] 18 | """ 19 | Lists transient statutes of the enum :class:`DNSZoneStatus `. 20 | """ 21 | DOMAIN_FEATURE_TRANSIENT_STATUSES: List[DomainFeatureStatus] = [ 22 | DomainFeatureStatus.ENABLING, 23 | DomainFeatureStatus.DISABLING, 24 | ] 25 | """ 26 | Lists transient statutes of the enum :class:`DomainFeatureStatus `. 27 | """ 28 | DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES: List[ 29 | DomainRegistrationStatusTransferStatus 30 | ] = [ 31 | DomainRegistrationStatusTransferStatus.PENDING, 32 | DomainRegistrationStatusTransferStatus.PROCESSING, 33 | ] 34 | """ 35 | Lists transient statutes of the enum :class:`DomainRegistrationStatusTransferStatus `. 36 | """ 37 | DOMAIN_TRANSIENT_STATUSES: List[DomainStatus] = [ 38 | DomainStatus.CREATING, 39 | DomainStatus.RENEWING, 40 | DomainStatus.XFERING, 41 | DomainStatus.EXPIRING, 42 | DomainStatus.UPDATING, 43 | DomainStatus.CHECKING, 44 | DomainStatus.DELETING, 45 | ] 46 | """ 47 | Lists transient statutes of the enum :class:`DomainStatus `. 48 | """ 49 | HOST_TRANSIENT_STATUSES: List[HostStatus] = [ 50 | HostStatus.UPDATING, 51 | HostStatus.DELETING, 52 | ] 53 | """ 54 | Lists transient statutes of the enum :class:`HostStatus `. 55 | """ 56 | SSL_CERTIFICATE_TRANSIENT_STATUSES: List[SSLCertificateStatus] = [ 57 | SSLCertificateStatus.PENDING, 58 | ] 59 | """ 60 | Lists transient statutes of the enum :class:`SSLCertificateStatus `. 61 | """ 62 | TASK_TRANSIENT_STATUSES: List[TaskStatus] = [ 63 | TaskStatus.PENDING, 64 | ] 65 | """ 66 | Lists transient statutes of the enum :class:`TaskStatus `. 67 | """ 68 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/edge_services/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/edge_services/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | PipelineStatus, 7 | PurgeRequestStatus, 8 | ) 9 | 10 | PIPELINE_TRANSIENT_STATUSES: List[PipelineStatus] = [ 11 | PipelineStatus.PENDING, 12 | ] 13 | """ 14 | Lists transient statutes of the enum :class:`PipelineStatus `. 15 | """ 16 | PURGE_REQUEST_TRANSIENT_STATUSES: List[PurgeRequestStatus] = [ 17 | PurgeRequestStatus.PENDING, 18 | ] 19 | """ 20 | Lists transient statutes of the enum :class:`PurgeRequestStatus `. 21 | """ 22 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/edge_services/v1beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | PipelineStatus, 7 | PurgeRequestStatus, 8 | ) 9 | 10 | PIPELINE_TRANSIENT_STATUSES: List[PipelineStatus] = [ 11 | PipelineStatus.PENDING, 12 | ] 13 | """ 14 | Lists transient statutes of the enum :class:`PipelineStatus `. 15 | """ 16 | PURGE_REQUEST_TRANSIENT_STATUSES: List[PurgeRequestStatus] = [ 17 | PurgeRequestStatus.PENDING, 18 | ] 19 | """ 20 | Lists transient statutes of the enum :class:`PurgeRequestStatus `. 21 | """ 22 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/file/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/file/v1alpha1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import AttachmentResourceType 4 | from .types import FileSystemStatus 5 | from .content import FILE_SYSTEM_TRANSIENT_STATUSES 6 | from .types import ListFileSystemsRequestOrderBy 7 | from .types import Attachment 8 | from .types import FileSystem 9 | from .types import CreateFileSystemRequest 10 | from .types import DeleteFileSystemRequest 11 | from .types import GetFileSystemRequest 12 | from .types import ListAttachmentsRequest 13 | from .types import ListAttachmentsResponse 14 | from .types import ListFileSystemsRequest 15 | from .types import ListFileSystemsResponse 16 | from .types import UpdateFileSystemRequest 17 | from .api import FileV1Alpha1API 18 | 19 | __all__ = [ 20 | "AttachmentResourceType", 21 | "FileSystemStatus", 22 | "FILE_SYSTEM_TRANSIENT_STATUSES", 23 | "ListFileSystemsRequestOrderBy", 24 | "Attachment", 25 | "FileSystem", 26 | "CreateFileSystemRequest", 27 | "DeleteFileSystemRequest", 28 | "GetFileSystemRequest", 29 | "ListAttachmentsRequest", 30 | "ListAttachmentsResponse", 31 | "ListFileSystemsRequest", 32 | "ListFileSystemsResponse", 33 | "UpdateFileSystemRequest", 34 | "FileV1Alpha1API", 35 | ] 36 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/file/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | FileSystemStatus, 7 | ) 8 | 9 | FILE_SYSTEM_TRANSIENT_STATUSES: List[FileSystemStatus] = [ 10 | FileSystemStatus.CREATING, 11 | FileSystemStatus.UPDATING, 12 | ] 13 | """ 14 | Lists transient statutes of the enum :class:`FileSystemStatus `. 15 | """ 16 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/flexibleip/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/flexibleip/v1alpha1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import FlexibleIPStatus 4 | from .content import FLEXIBLE_IP_TRANSIENT_STATUSES 5 | from .types import ListFlexibleIPsRequestOrderBy 6 | from .types import MACAddressStatus 7 | from .content import MAC_ADDRESS_TRANSIENT_STATUSES 8 | from .types import MACAddressType 9 | from .types import MACAddress 10 | from .types import FlexibleIP 11 | from .types import AttachFlexibleIPRequest 12 | from .types import AttachFlexibleIPsResponse 13 | from .types import CreateFlexibleIPRequest 14 | from .types import DeleteFlexibleIPRequest 15 | from .types import DeleteMACAddrRequest 16 | from .types import DetachFlexibleIPRequest 17 | from .types import DetachFlexibleIPsResponse 18 | from .types import DuplicateMACAddrRequest 19 | from .types import GenerateMACAddrRequest 20 | from .types import GetFlexibleIPRequest 21 | from .types import ListFlexibleIPsRequest 22 | from .types import ListFlexibleIPsResponse 23 | from .types import MoveMACAddrRequest 24 | from .types import UpdateFlexibleIPRequest 25 | from .api import FlexibleipV1Alpha1API 26 | 27 | __all__ = [ 28 | "FlexibleIPStatus", 29 | "FLEXIBLE_IP_TRANSIENT_STATUSES", 30 | "ListFlexibleIPsRequestOrderBy", 31 | "MACAddressStatus", 32 | "MAC_ADDRESS_TRANSIENT_STATUSES", 33 | "MACAddressType", 34 | "MACAddress", 35 | "FlexibleIP", 36 | "AttachFlexibleIPRequest", 37 | "AttachFlexibleIPsResponse", 38 | "CreateFlexibleIPRequest", 39 | "DeleteFlexibleIPRequest", 40 | "DeleteMACAddrRequest", 41 | "DetachFlexibleIPRequest", 42 | "DetachFlexibleIPsResponse", 43 | "DuplicateMACAddrRequest", 44 | "GenerateMACAddrRequest", 45 | "GetFlexibleIPRequest", 46 | "ListFlexibleIPsRequest", 47 | "ListFlexibleIPsResponse", 48 | "MoveMACAddrRequest", 49 | "UpdateFlexibleIPRequest", 50 | "FlexibleipV1Alpha1API", 51 | ] 52 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/flexibleip/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | FlexibleIPStatus, 7 | MACAddressStatus, 8 | ) 9 | 10 | FLEXIBLE_IP_TRANSIENT_STATUSES: List[FlexibleIPStatus] = [ 11 | FlexibleIPStatus.UPDATING, 12 | FlexibleIPStatus.DETACHING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`FlexibleIPStatus `. 16 | """ 17 | MAC_ADDRESS_TRANSIENT_STATUSES: List[MACAddressStatus] = [ 18 | MACAddressStatus.UPDATING, 19 | MACAddressStatus.DELETING, 20 | ] 21 | """ 22 | Lists transient statutes of the enum :class:`MACAddressStatus `. 23 | """ 24 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/function/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/function/v1beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | CronStatus, 7 | DomainStatus, 8 | FunctionStatus, 9 | NamespaceStatus, 10 | TokenStatus, 11 | TriggerStatus, 12 | ) 13 | 14 | CRON_TRANSIENT_STATUSES: List[CronStatus] = [ 15 | CronStatus.DELETING, 16 | CronStatus.CREATING, 17 | CronStatus.PENDING, 18 | ] 19 | """ 20 | Lists transient statutes of the enum :class:`CronStatus `. 21 | """ 22 | DOMAIN_TRANSIENT_STATUSES: List[DomainStatus] = [ 23 | DomainStatus.DELETING, 24 | DomainStatus.CREATING, 25 | DomainStatus.PENDING, 26 | ] 27 | """ 28 | Lists transient statutes of the enum :class:`DomainStatus `. 29 | """ 30 | FUNCTION_TRANSIENT_STATUSES: List[FunctionStatus] = [ 31 | FunctionStatus.DELETING, 32 | FunctionStatus.CREATING, 33 | FunctionStatus.PENDING, 34 | ] 35 | """ 36 | Lists transient statutes of the enum :class:`FunctionStatus `. 37 | """ 38 | NAMESPACE_TRANSIENT_STATUSES: List[NamespaceStatus] = [ 39 | NamespaceStatus.DELETING, 40 | NamespaceStatus.CREATING, 41 | NamespaceStatus.PENDING, 42 | ] 43 | """ 44 | Lists transient statutes of the enum :class:`NamespaceStatus `. 45 | """ 46 | TOKEN_TRANSIENT_STATUSES: List[TokenStatus] = [ 47 | TokenStatus.DELETING, 48 | TokenStatus.CREATING, 49 | ] 50 | """ 51 | Lists transient statutes of the enum :class:`TokenStatus `. 52 | """ 53 | TRIGGER_TRANSIENT_STATUSES: List[TriggerStatus] = [ 54 | TriggerStatus.DELETING, 55 | TriggerStatus.CREATING, 56 | TriggerStatus.PENDING, 57 | ] 58 | """ 59 | Lists transient statutes of the enum :class:`TriggerStatus `. 60 | """ 61 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/iam/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/inference/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/inference/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DeploymentStatus, 7 | ModelStatus, 8 | ) 9 | 10 | DEPLOYMENT_TRANSIENT_STATUSES: List[DeploymentStatus] = [ 11 | DeploymentStatus.CREATING, 12 | DeploymentStatus.DEPLOYING, 13 | DeploymentStatus.DELETING, 14 | ] 15 | """ 16 | Lists transient statutes of the enum :class:`DeploymentStatus `. 17 | """ 18 | MODEL_TRANSIENT_STATUSES: List[ModelStatus] = [ 19 | ModelStatus.PREPARING, 20 | ModelStatus.DOWNLOADING, 21 | ] 22 | """ 23 | Lists transient statutes of the enum :class:`ModelStatus `. 24 | """ 25 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/inference/v1beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DeploymentStatus, 7 | ) 8 | 9 | DEPLOYMENT_TRANSIENT_STATUSES: List[DeploymentStatus] = [ 10 | DeploymentStatus.CREATING, 11 | DeploymentStatus.DEPLOYING, 12 | DeploymentStatus.DELETING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`DeploymentStatus `. 16 | """ 17 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/instance/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/instance/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ImageState, 7 | IpState, 8 | PrivateNICState, 9 | SecurityGroupState, 10 | ServerIpState, 11 | ServerState, 12 | SnapshotState, 13 | TaskStatus, 14 | VolumeServerState, 15 | VolumeState, 16 | ) 17 | 18 | IMAGE_TRANSIENT_STATUSES: List[ImageState] = [ 19 | ImageState.CREATING, 20 | ] 21 | """ 22 | Lists transient statutes of the enum :class:`ImageState `. 23 | """ 24 | IP_TRANSIENT_STATUSES: List[IpState] = [ 25 | IpState.PENDING, 26 | ] 27 | """ 28 | Lists transient statutes of the enum :class:`IpState `. 29 | """ 30 | PRIVATE_NIC_TRANSIENT_STATUSES: List[PrivateNICState] = [ 31 | PrivateNICState.SYNCING, 32 | ] 33 | """ 34 | Lists transient statutes of the enum :class:`PrivateNICState `. 35 | """ 36 | SECURITY_GROUP_TRANSIENT_STATUSES: List[SecurityGroupState] = [ 37 | SecurityGroupState.SYNCING, 38 | ] 39 | """ 40 | Lists transient statutes of the enum :class:`SecurityGroupState `. 41 | """ 42 | SERVER_IP_TRANSIENT_STATUSES: List[ServerIpState] = [ 43 | ServerIpState.PENDING, 44 | ] 45 | """ 46 | Lists transient statutes of the enum :class:`ServerIpState `. 47 | """ 48 | SERVER_TRANSIENT_STATUSES: List[ServerState] = [ 49 | ServerState.STARTING, 50 | ServerState.STOPPING, 51 | ] 52 | """ 53 | Lists transient statutes of the enum :class:`ServerState `. 54 | """ 55 | SNAPSHOT_TRANSIENT_STATUSES: List[SnapshotState] = [ 56 | SnapshotState.SNAPSHOTTING, 57 | SnapshotState.IMPORTING, 58 | SnapshotState.EXPORTING, 59 | ] 60 | """ 61 | Lists transient statutes of the enum :class:`SnapshotState `. 62 | """ 63 | TASK_TRANSIENT_STATUSES: List[TaskStatus] = [ 64 | TaskStatus.PENDING, 65 | TaskStatus.STARTED, 66 | TaskStatus.RETRY, 67 | ] 68 | """ 69 | Lists transient statutes of the enum :class:`TaskStatus `. 70 | """ 71 | VOLUME_SERVER_TRANSIENT_STATUSES: List[VolumeServerState] = [ 72 | VolumeServerState.SNAPSHOTTING, 73 | VolumeServerState.FETCHING, 74 | VolumeServerState.RESIZING, 75 | VolumeServerState.SAVING, 76 | VolumeServerState.HOTSYNCING, 77 | ] 78 | """ 79 | Lists transient statutes of the enum :class:`VolumeServerState `. 80 | """ 81 | VOLUME_TRANSIENT_STATUSES: List[VolumeState] = [ 82 | VolumeState.SNAPSHOTTING, 83 | VolumeState.FETCHING, 84 | VolumeState.RESIZING, 85 | VolumeState.SAVING, 86 | VolumeState.HOTSYNCING, 87 | ] 88 | """ 89 | Lists transient statutes of the enum :class:`VolumeState `. 90 | """ 91 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/interlink/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/interlink/v1beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DedicatedConnectionStatus, 7 | LinkStatus, 8 | ) 9 | 10 | DEDICATED_CONNECTION_TRANSIENT_STATUSES: List[DedicatedConnectionStatus] = [ 11 | DedicatedConnectionStatus.CONFIGURING, 12 | ] 13 | """ 14 | Lists transient statutes of the enum :class:`DedicatedConnectionStatus `. 15 | """ 16 | LINK_TRANSIENT_STATUSES: List[LinkStatus] = [ 17 | LinkStatus.CONFIGURING, 18 | ] 19 | """ 20 | Lists transient statutes of the enum :class:`LinkStatus `. 21 | """ 22 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/iot/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/iot/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | HubStatus, 7 | ) 8 | 9 | HUB_TRANSIENT_STATUSES: List[HubStatus] = [ 10 | HubStatus.ENABLING, 11 | HubStatus.DISABLING, 12 | ] 13 | """ 14 | Lists transient statutes of the enum :class:`HubStatus `. 15 | """ 16 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/ipam/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/ipam/v1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListIPsRequestOrderBy 4 | from .types import ResourceType 5 | from .types import Resource 6 | from .types import Reverse 7 | from .types import Source 8 | from .types import CustomResource 9 | from .types import IP 10 | from .types import AttachIPRequest 11 | from .types import BookIPRequest 12 | from .types import DetachIPRequest 13 | from .types import GetIPRequest 14 | from .types import ListIPsRequest 15 | from .types import ListIPsResponse 16 | from .types import MoveIPRequest 17 | from .types import ReleaseIPRequest 18 | from .types import ReleaseIPSetRequest 19 | from .types import UpdateIPRequest 20 | from .api import IpamV1API 21 | 22 | __all__ = [ 23 | "ListIPsRequestOrderBy", 24 | "ResourceType", 25 | "Resource", 26 | "Reverse", 27 | "Source", 28 | "CustomResource", 29 | "IP", 30 | "AttachIPRequest", 31 | "BookIPRequest", 32 | "DetachIPRequest", 33 | "GetIPRequest", 34 | "ListIPsRequest", 35 | "ListIPsResponse", 36 | "MoveIPRequest", 37 | "ReleaseIPRequest", 38 | "ReleaseIPSetRequest", 39 | "UpdateIPRequest", 40 | "IpamV1API", 41 | ] 42 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/ipfs/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/ipfs/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | NameStatus, 7 | PinStatus, 8 | ) 9 | 10 | NAME_TRANSIENT_STATUSES: List[NameStatus] = [ 11 | NameStatus.QUEUED, 12 | NameStatus.PUBLISHING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`NameStatus `. 16 | """ 17 | PIN_TRANSIENT_STATUSES: List[PinStatus] = [ 18 | PinStatus.QUEUED, 19 | PinStatus.PINNING, 20 | ] 21 | """ 22 | Lists transient statutes of the enum :class:`PinStatus `. 23 | """ 24 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/jobs/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/jobs/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | JobRunState, 7 | ) 8 | 9 | JOB_RUN_TRANSIENT_STATUSES: List[JobRunState] = [ 10 | JobRunState.QUEUED, 11 | JobRunState.SCHEDULED, 12 | JobRunState.RUNNING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`JobRunState `. 16 | """ 17 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/k8s/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/k8s/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ClusterStatus, 7 | NodeStatus, 8 | PoolStatus, 9 | ) 10 | 11 | CLUSTER_TRANSIENT_STATUSES: List[ClusterStatus] = [ 12 | ClusterStatus.CREATING, 13 | ClusterStatus.DELETING, 14 | ClusterStatus.UPDATING, 15 | ] 16 | """ 17 | Lists transient statutes of the enum :class:`ClusterStatus `. 18 | """ 19 | NODE_TRANSIENT_STATUSES: List[NodeStatus] = [ 20 | NodeStatus.CREATING, 21 | NodeStatus.DELETING, 22 | NodeStatus.REBOOTING, 23 | NodeStatus.UPGRADING, 24 | NodeStatus.STARTING, 25 | NodeStatus.REGISTERING, 26 | ] 27 | """ 28 | Lists transient statutes of the enum :class:`NodeStatus `. 29 | """ 30 | POOL_TRANSIENT_STATUSES: List[PoolStatus] = [ 31 | PoolStatus.DELETING, 32 | PoolStatus.SCALING, 33 | PoolStatus.UPGRADING, 34 | ] 35 | """ 36 | Lists transient statutes of the enum :class:`PoolStatus `. 37 | """ 38 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/key_manager/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/key_manager/v1alpha1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import DataKeyAlgorithmSymmetricEncryption 4 | from .types import KeyAlgorithmAsymmetricEncryption 5 | from .types import KeyAlgorithmAsymmetricSigning 6 | from .types import KeyAlgorithmSymmetricEncryption 7 | from .types import KeyOrigin 8 | from .types import KeyState 9 | from .types import ListKeysRequestOrderBy 10 | from .types import ListKeysRequestUsage 11 | from .types import KeyRotationPolicy 12 | from .types import KeyUsage 13 | from .types import Key 14 | from .types import CreateKeyRequest 15 | from .types import DataKey 16 | from .types import DecryptRequest 17 | from .types import DecryptResponse 18 | from .types import DeleteKeyMaterialRequest 19 | from .types import DeleteKeyRequest 20 | from .types import DisableKeyRequest 21 | from .types import EnableKeyRequest 22 | from .types import EncryptRequest 23 | from .types import EncryptResponse 24 | from .types import GenerateDataKeyRequest 25 | from .types import GetKeyRequest 26 | from .types import GetPublicKeyRequest 27 | from .types import ImportKeyMaterialRequest 28 | from .types import ListKeysRequest 29 | from .types import ListKeysResponse 30 | from .types import ProtectKeyRequest 31 | from .types import PublicKey 32 | from .types import RotateKeyRequest 33 | from .types import SignRequest 34 | from .types import SignResponse 35 | from .types import UnprotectKeyRequest 36 | from .types import UpdateKeyRequest 37 | from .types import VerifyRequest 38 | from .types import VerifyResponse 39 | from .api import KeyManagerV1Alpha1API 40 | 41 | __all__ = [ 42 | "DataKeyAlgorithmSymmetricEncryption", 43 | "KeyAlgorithmAsymmetricEncryption", 44 | "KeyAlgorithmAsymmetricSigning", 45 | "KeyAlgorithmSymmetricEncryption", 46 | "KeyOrigin", 47 | "KeyState", 48 | "ListKeysRequestOrderBy", 49 | "ListKeysRequestUsage", 50 | "KeyRotationPolicy", 51 | "KeyUsage", 52 | "Key", 53 | "CreateKeyRequest", 54 | "DataKey", 55 | "DecryptRequest", 56 | "DecryptResponse", 57 | "DeleteKeyMaterialRequest", 58 | "DeleteKeyRequest", 59 | "DisableKeyRequest", 60 | "EnableKeyRequest", 61 | "EncryptRequest", 62 | "EncryptResponse", 63 | "GenerateDataKeyRequest", 64 | "GetKeyRequest", 65 | "GetPublicKeyRequest", 66 | "ImportKeyMaterialRequest", 67 | "ListKeysRequest", 68 | "ListKeysResponse", 69 | "ProtectKeyRequest", 70 | "PublicKey", 71 | "RotateKeyRequest", 72 | "SignRequest", 73 | "SignResponse", 74 | "UnprotectKeyRequest", 75 | "UpdateKeyRequest", 76 | "VerifyRequest", 77 | "VerifyResponse", 78 | "KeyManagerV1Alpha1API", 79 | ] 80 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/lb/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/lb/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | CertificateStatus, 7 | InstanceStatus, 8 | LbStatus, 9 | PrivateNetworkStatus, 10 | ) 11 | 12 | CERTIFICATE_TRANSIENT_STATUSES: List[CertificateStatus] = [ 13 | CertificateStatus.PENDING, 14 | ] 15 | """ 16 | Lists transient statutes of the enum :class:`CertificateStatus `. 17 | """ 18 | INSTANCE_TRANSIENT_STATUSES: List[InstanceStatus] = [ 19 | InstanceStatus.PENDING, 20 | InstanceStatus.MIGRATING, 21 | ] 22 | """ 23 | Lists transient statutes of the enum :class:`InstanceStatus `. 24 | """ 25 | LB_TRANSIENT_STATUSES: List[LbStatus] = [ 26 | LbStatus.PENDING, 27 | LbStatus.MIGRATING, 28 | LbStatus.TO_CREATE, 29 | LbStatus.CREATING, 30 | LbStatus.TO_DELETE, 31 | LbStatus.DELETING, 32 | ] 33 | """ 34 | Lists transient statutes of the enum :class:`LbStatus `. 35 | """ 36 | PRIVATE_NETWORK_TRANSIENT_STATUSES: List[PrivateNetworkStatus] = [ 37 | PrivateNetworkStatus.PENDING, 38 | ] 39 | """ 40 | Lists transient statutes of the enum :class:`PrivateNetworkStatus `. 41 | """ 42 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/marketplace/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/marketplace/v2/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListImagesRequestOrderBy 4 | from .types import ListLocalImagesRequestOrderBy 5 | from .types import ListVersionsRequestOrderBy 6 | from .types import LocalImageType 7 | from .types import Category 8 | from .types import Image 9 | from .types import LocalImage 10 | from .types import Version 11 | from .types import GetCategoryRequest 12 | from .types import GetImageRequest 13 | from .types import GetLocalImageRequest 14 | from .types import GetVersionRequest 15 | from .types import ListCategoriesRequest 16 | from .types import ListCategoriesResponse 17 | from .types import ListImagesRequest 18 | from .types import ListImagesResponse 19 | from .types import ListLocalImagesRequest 20 | from .types import ListLocalImagesResponse 21 | from .types import ListVersionsRequest 22 | from .types import ListVersionsResponse 23 | from .api import MarketplaceV2API 24 | 25 | __all__ = [ 26 | "ListImagesRequestOrderBy", 27 | "ListLocalImagesRequestOrderBy", 28 | "ListVersionsRequestOrderBy", 29 | "LocalImageType", 30 | "Category", 31 | "Image", 32 | "LocalImage", 33 | "Version", 34 | "GetCategoryRequest", 35 | "GetImageRequest", 36 | "GetLocalImageRequest", 37 | "GetVersionRequest", 38 | "ListCategoriesRequest", 39 | "ListCategoriesResponse", 40 | "ListImagesRequest", 41 | "ListImagesResponse", 42 | "ListLocalImagesRequest", 43 | "ListLocalImagesResponse", 44 | "ListVersionsRequest", 45 | "ListVersionsResponse", 46 | "MarketplaceV2API", 47 | ] 48 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/mnq/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/mongodb/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/mongodb/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | InstanceStatus, 7 | SnapshotStatus, 8 | ) 9 | 10 | INSTANCE_TRANSIENT_STATUSES: List[InstanceStatus] = [ 11 | InstanceStatus.PROVISIONING, 12 | InstanceStatus.CONFIGURING, 13 | InstanceStatus.DELETING, 14 | InstanceStatus.INITIALIZING, 15 | InstanceStatus.SNAPSHOTTING, 16 | ] 17 | """ 18 | Lists transient statutes of the enum :class:`InstanceStatus `. 19 | """ 20 | SNAPSHOT_TRANSIENT_STATUSES: List[SnapshotStatus] = [ 21 | SnapshotStatus.CREATING, 22 | SnapshotStatus.RESTORING, 23 | SnapshotStatus.DELETING, 24 | ] 25 | """ 26 | Lists transient statutes of the enum :class:`SnapshotStatus `. 27 | """ 28 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/product_catalog/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scaleway/scaleway-sdk-python/f86f8891e24882217540e32f02617365a76b9737/scaleway-async/scaleway_async/py.typed -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/qaas/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/qaas/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | JobStatus, 7 | ProcessStatus, 8 | SessionStatus, 9 | ) 10 | 11 | JOB_TRANSIENT_STATUSES: List[JobStatus] = [ 12 | JobStatus.WAITING, 13 | JobStatus.RUNNING, 14 | JobStatus.CANCELLING, 15 | ] 16 | """ 17 | Lists transient statutes of the enum :class:`JobStatus `. 18 | """ 19 | PROCESS_TRANSIENT_STATUSES: List[ProcessStatus] = [ 20 | ProcessStatus.STARTING, 21 | ProcessStatus.RUNNING, 22 | ProcessStatus.CANCELLING, 23 | ] 24 | """ 25 | Lists transient statutes of the enum :class:`ProcessStatus `. 26 | """ 27 | SESSION_TRANSIENT_STATUSES: List[SessionStatus] = [ 28 | SessionStatus.STARTING, 29 | SessionStatus.STOPPING, 30 | ] 31 | """ 32 | Lists transient statutes of the enum :class:`SessionStatus `. 33 | """ 34 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/rdb/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/rdb/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DatabaseBackupStatus, 7 | InstanceLogStatus, 8 | InstanceStatus, 9 | MaintenanceStatus, 10 | ReadReplicaStatus, 11 | SnapshotStatus, 12 | ) 13 | 14 | DATABASE_BACKUP_TRANSIENT_STATUSES: List[DatabaseBackupStatus] = [ 15 | DatabaseBackupStatus.CREATING, 16 | DatabaseBackupStatus.RESTORING, 17 | DatabaseBackupStatus.DELETING, 18 | DatabaseBackupStatus.EXPORTING, 19 | ] 20 | """ 21 | Lists transient statutes of the enum :class:`DatabaseBackupStatus `. 22 | """ 23 | INSTANCE_LOG_TRANSIENT_STATUSES: List[InstanceLogStatus] = [ 24 | InstanceLogStatus.CREATING, 25 | ] 26 | """ 27 | Lists transient statutes of the enum :class:`InstanceLogStatus `. 28 | """ 29 | INSTANCE_TRANSIENT_STATUSES: List[InstanceStatus] = [ 30 | InstanceStatus.PROVISIONING, 31 | InstanceStatus.CONFIGURING, 32 | InstanceStatus.DELETING, 33 | InstanceStatus.AUTOHEALING, 34 | InstanceStatus.INITIALIZING, 35 | InstanceStatus.BACKUPING, 36 | InstanceStatus.SNAPSHOTTING, 37 | InstanceStatus.RESTARTING, 38 | ] 39 | """ 40 | Lists transient statutes of the enum :class:`InstanceStatus `. 41 | """ 42 | MAINTENANCE_TRANSIENT_STATUSES: List[MaintenanceStatus] = [ 43 | MaintenanceStatus.ONGOING, 44 | ] 45 | """ 46 | Lists transient statutes of the enum :class:`MaintenanceStatus `. 47 | """ 48 | READ_REPLICA_TRANSIENT_STATUSES: List[ReadReplicaStatus] = [ 49 | ReadReplicaStatus.PROVISIONING, 50 | ReadReplicaStatus.INITIALIZING, 51 | ReadReplicaStatus.DELETING, 52 | ReadReplicaStatus.CONFIGURING, 53 | ReadReplicaStatus.PROMOTING, 54 | ] 55 | """ 56 | Lists transient statutes of the enum :class:`ReadReplicaStatus `. 57 | """ 58 | SNAPSHOT_TRANSIENT_STATUSES: List[SnapshotStatus] = [ 59 | SnapshotStatus.CREATING, 60 | SnapshotStatus.RESTORING, 61 | SnapshotStatus.DELETING, 62 | ] 63 | """ 64 | Lists transient statutes of the enum :class:`SnapshotStatus `. 65 | """ 66 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/redis/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/redis/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ClusterStatus, 7 | ) 8 | 9 | CLUSTER_TRANSIENT_STATUSES: List[ClusterStatus] = [ 10 | ClusterStatus.PROVISIONING, 11 | ClusterStatus.CONFIGURING, 12 | ClusterStatus.DELETING, 13 | ClusterStatus.AUTOHEALING, 14 | ClusterStatus.INITIALIZING, 15 | ] 16 | """ 17 | Lists transient statutes of the enum :class:`ClusterStatus `. 18 | """ 19 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/registry/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/registry/v1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ImageStatus 4 | from .content import IMAGE_TRANSIENT_STATUSES 5 | from .types import ImageVisibility 6 | from .types import ListImagesRequestOrderBy 7 | from .types import ListNamespacesRequestOrderBy 8 | from .types import ListTagsRequestOrderBy 9 | from .types import NamespaceStatus 10 | from .content import NAMESPACE_TRANSIENT_STATUSES 11 | from .types import TagStatus 12 | from .content import TAG_TRANSIENT_STATUSES 13 | from .types import Image 14 | from .types import Namespace 15 | from .types import Tag 16 | from .types import CreateNamespaceRequest 17 | from .types import DeleteImageRequest 18 | from .types import DeleteNamespaceRequest 19 | from .types import DeleteTagRequest 20 | from .types import GetImageRequest 21 | from .types import GetNamespaceRequest 22 | from .types import GetTagRequest 23 | from .types import ListImagesRequest 24 | from .types import ListImagesResponse 25 | from .types import ListNamespacesRequest 26 | from .types import ListNamespacesResponse 27 | from .types import ListTagsRequest 28 | from .types import ListTagsResponse 29 | from .types import UpdateImageRequest 30 | from .types import UpdateNamespaceRequest 31 | from .api import RegistryV1API 32 | 33 | __all__ = [ 34 | "ImageStatus", 35 | "IMAGE_TRANSIENT_STATUSES", 36 | "ImageVisibility", 37 | "ListImagesRequestOrderBy", 38 | "ListNamespacesRequestOrderBy", 39 | "ListTagsRequestOrderBy", 40 | "NamespaceStatus", 41 | "NAMESPACE_TRANSIENT_STATUSES", 42 | "TagStatus", 43 | "TAG_TRANSIENT_STATUSES", 44 | "Image", 45 | "Namespace", 46 | "Tag", 47 | "CreateNamespaceRequest", 48 | "DeleteImageRequest", 49 | "DeleteNamespaceRequest", 50 | "DeleteTagRequest", 51 | "GetImageRequest", 52 | "GetNamespaceRequest", 53 | "GetTagRequest", 54 | "ListImagesRequest", 55 | "ListImagesResponse", 56 | "ListNamespacesRequest", 57 | "ListNamespacesResponse", 58 | "ListTagsRequest", 59 | "ListTagsResponse", 60 | "UpdateImageRequest", 61 | "UpdateNamespaceRequest", 62 | "RegistryV1API", 63 | ] 64 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/registry/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ImageStatus, 7 | NamespaceStatus, 8 | TagStatus, 9 | ) 10 | 11 | IMAGE_TRANSIENT_STATUSES: List[ImageStatus] = [ 12 | ImageStatus.DELETING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`ImageStatus `. 16 | """ 17 | NAMESPACE_TRANSIENT_STATUSES: List[NamespaceStatus] = [ 18 | NamespaceStatus.DELETING, 19 | ] 20 | """ 21 | Lists transient statutes of the enum :class:`NamespaceStatus `. 22 | """ 23 | TAG_TRANSIENT_STATUSES: List[TagStatus] = [ 24 | TagStatus.DELETING, 25 | ] 26 | """ 27 | Lists transient statutes of the enum :class:`TagStatus `. 28 | """ 29 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/secret/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/serverless_sqldb/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/serverless_sqldb/v1alpha1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import DatabaseBackupStatus 4 | from .types import DatabaseStatus 5 | from .content import DATABASE_TRANSIENT_STATUSES 6 | from .types import ListDatabaseBackupsRequestOrderBy 7 | from .types import ListDatabasesRequestOrderBy 8 | from .types import DatabaseBackup 9 | from .types import Database 10 | from .types import CreateDatabaseRequest 11 | from .types import DeleteDatabaseRequest 12 | from .types import ExportDatabaseBackupRequest 13 | from .types import GetDatabaseBackupRequest 14 | from .types import GetDatabaseRequest 15 | from .types import ListDatabaseBackupsRequest 16 | from .types import ListDatabaseBackupsResponse 17 | from .types import ListDatabasesRequest 18 | from .types import ListDatabasesResponse 19 | from .types import RestoreDatabaseFromBackupRequest 20 | from .types import UpdateDatabaseRequest 21 | from .api import ServerlessSqldbV1Alpha1API 22 | 23 | __all__ = [ 24 | "DatabaseBackupStatus", 25 | "DatabaseStatus", 26 | "DATABASE_TRANSIENT_STATUSES", 27 | "ListDatabaseBackupsRequestOrderBy", 28 | "ListDatabasesRequestOrderBy", 29 | "DatabaseBackup", 30 | "Database", 31 | "CreateDatabaseRequest", 32 | "DeleteDatabaseRequest", 33 | "ExportDatabaseBackupRequest", 34 | "GetDatabaseBackupRequest", 35 | "GetDatabaseRequest", 36 | "ListDatabaseBackupsRequest", 37 | "ListDatabaseBackupsResponse", 38 | "ListDatabasesRequest", 39 | "ListDatabasesResponse", 40 | "RestoreDatabaseFromBackupRequest", 41 | "UpdateDatabaseRequest", 42 | "ServerlessSqldbV1Alpha1API", 43 | ] 44 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/serverless_sqldb/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DatabaseStatus, 7 | ) 8 | 9 | DATABASE_TRANSIENT_STATUSES: List[DatabaseStatus] = [ 10 | DatabaseStatus.CREATING, 11 | DatabaseStatus.DELETING, 12 | DatabaseStatus.RESTORING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`DatabaseStatus `. 16 | """ 17 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/std/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import LanguageCode 4 | 5 | __all__ = [ 6 | "LanguageCode", 7 | ] 8 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/std/api.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/std/marshalling.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | 4 | 5 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/std/types.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from __future__ import annotations 4 | 5 | from enum import Enum 6 | 7 | from scaleway_core.utils import ( 8 | StrEnumMeta, 9 | ) 10 | 11 | 12 | class LanguageCode(str, Enum, metaclass=StrEnumMeta): 13 | UNKNOWN_LANGUAGE_CODE = "unknown_language_code" 14 | EN_US = "en_us" 15 | FR_FR = "fr_fr" 16 | DE_DE = "de_de" 17 | 18 | def __str__(self) -> str: 19 | return str(self.value) 20 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/tem/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/tem/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DomainStatus, 7 | EmailStatus, 8 | ) 9 | 10 | DOMAIN_TRANSIENT_STATUSES: List[DomainStatus] = [ 11 | DomainStatus.PENDING, 12 | DomainStatus.AUTOCONFIGURING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`DomainStatus `. 16 | """ 17 | EMAIL_TRANSIENT_STATUSES: List[EmailStatus] = [ 18 | EmailStatus.NEW, 19 | EmailStatus.SENDING, 20 | ] 21 | """ 22 | Lists transient statutes of the enum :class:`EmailStatus `. 23 | """ 24 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/test/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/test/v1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import EyeColors 4 | from .types import HumanStatus 5 | from .content import HUMAN_TRANSIENT_STATUSES 6 | from .types import ListHumansRequestOrderBy 7 | from .types import Human 8 | from .types import CreateHumanRequest 9 | from .types import DeleteHumanRequest 10 | from .types import GetHumanRequest 11 | from .types import ListHumansRequest 12 | from .types import ListHumansResponse 13 | from .types import RegisterRequest 14 | from .types import RegisterResponse 15 | from .types import RunHumanRequest 16 | from .types import SmokeHumanRequest 17 | from .types import UpdateHumanRequest 18 | from .api import TestV1API 19 | 20 | __all__ = [ 21 | "EyeColors", 22 | "HumanStatus", 23 | "HUMAN_TRANSIENT_STATUSES", 24 | "ListHumansRequestOrderBy", 25 | "Human", 26 | "CreateHumanRequest", 27 | "DeleteHumanRequest", 28 | "GetHumanRequest", 29 | "ListHumansRequest", 30 | "ListHumansResponse", 31 | "RegisterRequest", 32 | "RegisterResponse", 33 | "RunHumanRequest", 34 | "SmokeHumanRequest", 35 | "UpdateHumanRequest", 36 | "TestV1API", 37 | ] 38 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/test/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | HumanStatus, 7 | ) 8 | 9 | HUMAN_TRANSIENT_STATUSES: List[HumanStatus] = [ 10 | HumanStatus.RUNNING, 11 | ] 12 | """ 13 | Lists transient statutes of the enum :class:`HumanStatus `. 14 | """ 15 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/vpc/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/vpc/v1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListPrivateNetworksRequestOrderBy 4 | from .types import PrivateNetwork 5 | from .types import CreatePrivateNetworkRequest 6 | from .types import DeletePrivateNetworkRequest 7 | from .types import GetPrivateNetworkRequest 8 | from .types import ListPrivateNetworksRequest 9 | from .types import ListPrivateNetworksResponse 10 | from .types import UpdatePrivateNetworkRequest 11 | from .api import VpcV1API 12 | 13 | __all__ = [ 14 | "ListPrivateNetworksRequestOrderBy", 15 | "PrivateNetwork", 16 | "CreatePrivateNetworkRequest", 17 | "DeletePrivateNetworkRequest", 18 | "GetPrivateNetworkRequest", 19 | "ListPrivateNetworksRequest", 20 | "ListPrivateNetworksResponse", 21 | "UpdatePrivateNetworkRequest", 22 | "VpcV1API", 23 | ] 24 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/vpcgw/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/vpcgw/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | GatewayNetworkStatus, 7 | GatewayStatus, 8 | ) 9 | 10 | GATEWAY_NETWORK_TRANSIENT_STATUSES: List[GatewayNetworkStatus] = [ 11 | GatewayNetworkStatus.ATTACHING, 12 | GatewayNetworkStatus.CONFIGURING, 13 | GatewayNetworkStatus.DETACHING, 14 | ] 15 | """ 16 | Lists transient statutes of the enum :class:`GatewayNetworkStatus `. 17 | """ 18 | GATEWAY_TRANSIENT_STATUSES: List[GatewayStatus] = [ 19 | GatewayStatus.ALLOCATING, 20 | GatewayStatus.CONFIGURING, 21 | GatewayStatus.STOPPING, 22 | GatewayStatus.DELETING, 23 | ] 24 | """ 25 | Lists transient statutes of the enum :class:`GatewayStatus `. 26 | """ 27 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/vpcgw/v2/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | GatewayNetworkStatus, 7 | GatewayStatus, 8 | ) 9 | 10 | GATEWAY_NETWORK_TRANSIENT_STATUSES: List[GatewayNetworkStatus] = [ 11 | GatewayNetworkStatus.ATTACHING, 12 | GatewayNetworkStatus.CONFIGURING, 13 | GatewayNetworkStatus.DETACHING, 14 | ] 15 | """ 16 | Lists transient statutes of the enum :class:`GatewayNetworkStatus `. 17 | """ 18 | GATEWAY_TRANSIENT_STATUSES: List[GatewayStatus] = [ 19 | GatewayStatus.ALLOCATING, 20 | GatewayStatus.CONFIGURING, 21 | GatewayStatus.STOPPING, 22 | GatewayStatus.DELETING, 23 | ] 24 | """ 25 | Lists transient statutes of the enum :class:`GatewayStatus `. 26 | """ 27 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/webhosting/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/webhosting/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DomainAvailabilityStatus, 7 | DomainStatus, 8 | HostingStatus, 9 | ) 10 | 11 | DOMAIN_AVAILABILITY_TRANSIENT_STATUSES: List[DomainAvailabilityStatus] = [ 12 | DomainAvailabilityStatus.VALIDATING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`DomainAvailabilityStatus `. 16 | """ 17 | DOMAIN_TRANSIENT_STATUSES: List[DomainStatus] = [ 18 | DomainStatus.VALIDATING, 19 | ] 20 | """ 21 | Lists transient statutes of the enum :class:`DomainStatus `. 22 | """ 23 | HOSTING_TRANSIENT_STATUSES: List[HostingStatus] = [ 24 | HostingStatus.DELIVERING, 25 | HostingStatus.DELETING, 26 | HostingStatus.MIGRATING, 27 | ] 28 | """ 29 | Lists transient statutes of the enum :class:`HostingStatus `. 30 | """ 31 | -------------------------------------------------------------------------------- /scaleway-async/scaleway_async/webhosting/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | HostingStatus, 7 | ) 8 | 9 | HOSTING_TRANSIENT_STATUSES: List[HostingStatus] = [ 10 | HostingStatus.DELIVERING, 11 | HostingStatus.DELETING, 12 | HostingStatus.MIGRATING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`HostingStatus `. 16 | """ 17 | -------------------------------------------------------------------------------- /scaleway-async/tests/utils.py: -------------------------------------------------------------------------------- 1 | import random 2 | import uuid 3 | from datetime import datetime 4 | from typing import Union 5 | 6 | from scaleway_core.profile import ProfileDefaults 7 | 8 | system_random = random.SystemRandom() 9 | 10 | 11 | def random_name() -> str: 12 | return "test-{}".format(uuid.uuid4().hex) 13 | 14 | 15 | def random_access_key() -> str: 16 | return "SCW" + "".join( 17 | system_random.choices("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", k=16) 18 | ) 19 | 20 | 21 | def string_to_datetime(date: str) -> datetime: 22 | return datetime.strptime(date, "%Y-%m-%dT%H:%M:%SZ") 23 | 24 | 25 | def random_date(min: Union[str, datetime], max: Union[str, datetime]) -> datetime: 26 | min_time = min if isinstance(min, datetime) else string_to_datetime(min) 27 | max_time = max if isinstance(max, datetime) else string_to_datetime(max) 28 | 29 | random_time = min_time + system_random.random() * (max_time - min_time) 30 | return random_time 31 | 32 | 33 | def datetime_to_string(date: datetime) -> str: 34 | return date.strftime("%Y-%m-%dT%H:%M:%SZ") 35 | 36 | 37 | def random_date_string(min: str, max: str) -> str: 38 | return datetime_to_string(random_date(min, max)) 39 | 40 | 41 | def random_profile_defaults() -> ProfileDefaults: 42 | return ProfileDefaults( 43 | default_organization_id=uuid.uuid4().hex, 44 | default_project_id=uuid.uuid4().hex, 45 | ) 46 | -------------------------------------------------------------------------------- /scaleway-core/README.md: -------------------------------------------------------------------------------- 1 | # Scaleway Python SDK - Core 2 | -------------------------------------------------------------------------------- /scaleway-core/pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.poetry] 2 | name = "scaleway-core" 3 | version = "2.0.0" 4 | description = "Scaleway SDK for Python" 5 | authors = ["Scaleway "] 6 | license = "BSD" 7 | readme = "README.md" 8 | classifiers = [ 9 | "Development Status :: 3 - Alpha", 10 | "Environment :: Console", 11 | "Intended Audience :: Developers", 12 | "License :: OSI Approved :: BSD License", 13 | "Operating System :: OS Independent", 14 | "Programming Language :: Python :: 3", 15 | "Programming Language :: Python :: 3.4", 16 | "Programming Language :: Python :: 3.5", 17 | "Programming Language :: Python :: 3.6", 18 | "Programming Language :: Python :: 3.7", 19 | "Programming Language :: Python :: 3.8", 20 | "Programming Language :: Python :: 3.9", 21 | "Programming Language :: Python :: 3.10", 22 | "Topic :: Software Development", 23 | ] 24 | 25 | [tool.poetry.dependencies] 26 | python = ">=3.10" 27 | requests = "^2.28.1" 28 | PyYAML = "^6.0" 29 | python-dateutil = "^2.8.2" 30 | 31 | [tool.poetry.group.dev.dependencies] 32 | types-python-dateutil = "^2.8.19" 33 | ruff = ">=0.5.0,<0.11.13" 34 | mypy = "^1.5.1" 35 | 36 | [build-system] 37 | requires = ["poetry-core"] 38 | build-backend = "poetry.core.masonry.api" 39 | 40 | [tool.ruff.lint] 41 | ignore = ["E501"] 42 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/__init__.py: -------------------------------------------------------------------------------- 1 | """Scaleway SDK for Python - Core""" 2 | 3 | import importlib.metadata 4 | 5 | __version__: str = importlib.metadata.version(__name__) 6 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/bridge/__init__.py: -------------------------------------------------------------------------------- 1 | from .money import Money 2 | from .money import unmarshal_Money 3 | from .money import marshal_Money 4 | 5 | from .region import Region 6 | from .region import ALL_REGIONS 7 | from .zone import Zone 8 | from .zone import ALL_ZONES 9 | 10 | from .scwfile import ScwFile 11 | from .scwfile import unmarshal_ScwFile 12 | from .scwfile import marshal_ScwFile 13 | 14 | from .serviceinfo import ServiceInfo 15 | from .serviceinfo import unmarshal_ServiceInfo 16 | from .serviceinfo import marshal_ServiceInfo 17 | 18 | from .timeseries import TimeSeriesPoint 19 | from .timeseries import TimeSeries 20 | from .timeseries import unmarshal_TimeSeries 21 | from .timeseries import marshal_TimeSeries 22 | from .timeseries import unmarshal_TimeSeriesPoint 23 | from .timeseries import marshal_TimeSeriesPoint 24 | 25 | from .decimal import unmarshal_Decimal 26 | from .decimal import marshal_Decimal 27 | 28 | __all__ = [ 29 | "Money", 30 | "unmarshal_Money", 31 | "marshal_Money", 32 | "Region", 33 | "ALL_REGIONS", 34 | "Zone", 35 | "ALL_ZONES", 36 | "ScwFile", 37 | "unmarshal_ScwFile", 38 | "marshal_ScwFile", 39 | "ServiceInfo", 40 | "unmarshal_ServiceInfo", 41 | "marshal_ServiceInfo", 42 | "TimeSeriesPoint", 43 | "TimeSeries", 44 | "unmarshal_TimeSeries", 45 | "marshal_TimeSeries", 46 | "unmarshal_TimeSeriesPoint", 47 | "marshal_TimeSeriesPoint", 48 | "unmarshal_Decimal", 49 | "marshal_Decimal", 50 | ] 51 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/bridge/decimal.py: -------------------------------------------------------------------------------- 1 | from decimal import Decimal 2 | from typing import Any, Dict 3 | 4 | 5 | def unmarshal_Decimal(data: Any) -> Decimal: 6 | """ 7 | Unmarshal an instance of Decimal from the given data. 8 | """ 9 | if not isinstance(data, dict): 10 | raise TypeError( 11 | "Unmarshalling the type 'Decimal' failed as data isn't a dictionary." 12 | ) 13 | 14 | if "value" not in data: 15 | raise TypeError( 16 | "Unmarshalling the type 'Decimal' failed as data does not contain a 'value' key." 17 | ) 18 | 19 | return Decimal(data["value"]) 20 | 21 | 22 | def marshal_Decimal(data: Decimal) -> Dict[str, Any]: 23 | """ 24 | Marshal an instance of Decimal into google.protobuf.Decimal JSON representation. 25 | """ 26 | return { 27 | "value": str(data), 28 | } 29 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/bridge/money.py: -------------------------------------------------------------------------------- 1 | from dataclasses import dataclass 2 | from typing import Any, Dict 3 | 4 | 5 | @dataclass 6 | class Money: 7 | """ 8 | Represents an amount of money with its currency type. 9 | """ 10 | 11 | currency_code: str 12 | """ 13 | 3-letter currency code defined in ISO 4217. 14 | """ 15 | 16 | units: float 17 | """ 18 | Whole units of the amount. 19 | 20 | For example if `currency_code` is `"USD"`, then 1 unit is one US dollar. 21 | """ 22 | 23 | nanos: int 24 | """ 25 | Number of nano (10^-9) units of the amount. 26 | 27 | The value must be between -999,999,999 and +999,999,999 inclusive. 28 | If `units` is positive, `nanos` must be positive or zero. 29 | If `units` is zero, `nanos` can be positive, zero, or negative. 30 | If `units` is negative, `nanos` must be negative or zero. 31 | For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. 32 | """ 33 | 34 | 35 | def unmarshal_Money(data: Any) -> Money: 36 | """ 37 | Unmarshal an instance of Money from the given data. 38 | """ 39 | if not isinstance(data, dict): 40 | raise TypeError( 41 | "Unmarshalling the type 'Money' failed as data isn't a dictionary." 42 | ) 43 | 44 | return Money( 45 | currency_code=data["currency_code"], 46 | units=data["units"], 47 | nanos=data["nanos"], 48 | ) 49 | 50 | 51 | def marshal_Money(data: Money) -> Dict[str, Any]: 52 | """ 53 | Marshal an instance of Money into a JSON compatible data structure. 54 | """ 55 | return { 56 | "currency_code": data.currency_code, 57 | "units": data.units, 58 | "nanos": data.nanos, 59 | } 60 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/bridge/region.py: -------------------------------------------------------------------------------- 1 | Region = str 2 | REGION_FR_PAR = Region("fr-par") 3 | REGION_NL_AMS = Region("nl-ams") 4 | REGION_PL_WAW = Region("pl-waw") 5 | 6 | ALL_REGIONS = [ 7 | REGION_FR_PAR, 8 | REGION_NL_AMS, 9 | REGION_PL_WAW, 10 | ] 11 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/bridge/scwfile.py: -------------------------------------------------------------------------------- 1 | from dataclasses import dataclass 2 | from typing import Any, Dict 3 | 4 | 5 | @dataclass 6 | class ScwFile: 7 | """ 8 | Represents a Scaleway file. 9 | """ 10 | 11 | name: str 12 | """ 13 | Name of the file. 14 | """ 15 | 16 | content_type: str 17 | """ 18 | Content-type of the file. 19 | """ 20 | 21 | content: str 22 | """ 23 | Content of the file in base64. 24 | """ 25 | 26 | 27 | def unmarshal_ScwFile(data: Any) -> ScwFile: 28 | """ 29 | Unmarshals a ScwFile object from a dict. 30 | """ 31 | if not isinstance(data, dict): 32 | raise TypeError( 33 | "Unmarshalling the type 'ScwFile' failed as data isn't a dictionary." 34 | ) 35 | 36 | return ScwFile( 37 | name=data["name"], 38 | content_type=data["content_type"], 39 | content=data["content"], 40 | ) 41 | 42 | 43 | def marshal_ScwFile(obj: ScwFile) -> Dict[str, Any]: 44 | """ 45 | Marshals a ScwFile object into a dict. 46 | """ 47 | return { 48 | "name": obj.name, 49 | "content_type": obj.content_type, 50 | "content": obj.content, 51 | } 52 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/bridge/serviceinfo.py: -------------------------------------------------------------------------------- 1 | from dataclasses import dataclass 2 | from typing import Any, Dict, Optional 3 | 4 | 5 | @dataclass 6 | class ServiceInfo: 7 | """ 8 | Represents API metadata. 9 | 10 | These metadata are only here for debugging. Do not rely on these values. 11 | """ 12 | 13 | name: str 14 | """ 15 | Name of the API 16 | """ 17 | 18 | description: str 19 | """ 20 | Human readable description for the API. 21 | """ 22 | 23 | version: str 24 | """ 25 | Version of the API. 26 | """ 27 | 28 | documentation_url: Optional[str] = None 29 | """ 30 | Web url where the documentation of the API can be found. 31 | """ 32 | 33 | 34 | def unmarshal_ServiceInfo(data: Any) -> ServiceInfo: 35 | """ 36 | Unmarshals a ServiceInfo object from a dict. 37 | """ 38 | if not isinstance(data, dict): 39 | raise TypeError( 40 | "Unmarshalling the type 'ServiceInfo' failed as data isn't a dictionary." 41 | ) 42 | 43 | return ServiceInfo( 44 | name=data["name"], 45 | description=data["description"], 46 | version=data["version"], 47 | documentation_url=data.get("documentation_url", None), 48 | ) 49 | 50 | 51 | def marshal_ServiceInfo(obj: ServiceInfo) -> Dict[str, Any]: 52 | """ 53 | Marshals a ServiceInfo object into a dict. 54 | """ 55 | return { 56 | "name": obj.name, 57 | "description": obj.description, 58 | "version": obj.version, 59 | "documentation_url": obj.documentation_url, 60 | } 61 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/bridge/timeseries.py: -------------------------------------------------------------------------------- 1 | from dataclasses import dataclass 2 | from datetime import datetime 3 | from typing import Any, Dict, List 4 | from dateutil import parser 5 | 6 | 7 | @dataclass 8 | class TimeSeriesPoint: 9 | """ 10 | Represents a point in a TimeSeries. 11 | """ 12 | 13 | timestamp: datetime 14 | """ 15 | Date of the point. 16 | """ 17 | 18 | value: float 19 | """ 20 | Value of the point. 21 | """ 22 | 23 | 24 | def unmarshal_TimeSeriesPoint(data: Any) -> TimeSeriesPoint: 25 | """ 26 | Unmarshal an instance of TimeSeriesPoint from the given data. 27 | """ 28 | if not isinstance(data, dict): 29 | raise TypeError( 30 | "Unmarshalling the type 'TimeSeriesPoint' failed as data isn't a dictionary." 31 | ) 32 | 33 | return TimeSeriesPoint( 34 | timestamp=parser.isoparse(data["timestamp"]), 35 | value=data["value"], 36 | ) 37 | 38 | 39 | def marshal_TimeSeriesPoint(data: TimeSeriesPoint) -> Dict[str, Any]: 40 | """ 41 | Marshal an instance of TimeSeriesPoint into a JSON compatible data structure. 42 | """ 43 | return { 44 | "timestamp": data.timestamp.isoformat(), 45 | "value": data.value, 46 | } 47 | 48 | 49 | @dataclass 50 | class TimeSeries: 51 | """ 52 | Represents a time series that could be used for graph purposes. 53 | """ 54 | 55 | name: str 56 | """ 57 | Name of the metric. 58 | """ 59 | 60 | points: List[TimeSeriesPoint] 61 | """ 62 | Points contains all the points that composed the series. 63 | """ 64 | 65 | metadata: Dict[str, str] 66 | """ 67 | Metadata contains some string metadata related to a metric. 68 | """ 69 | 70 | 71 | def unmarshal_TimeSeries(data: Any) -> TimeSeries: 72 | """ 73 | Unmarshal an instance of TimeSeries from the given data. 74 | """ 75 | if not isinstance(data, dict): 76 | raise TypeError( 77 | "Unmarshalling the type 'TimeSeries' failed as data isn't a dictionary." 78 | ) 79 | 80 | return TimeSeries( 81 | name=data["name"], 82 | points=[unmarshal_TimeSeriesPoint(point) for point in data["points"]], 83 | metadata=data["metadata"], 84 | ) 85 | 86 | 87 | def marshal_TimeSeries(data: TimeSeries) -> Dict[str, Any]: 88 | """ 89 | Marshal an instance of TimeSeries into a JSON compatible data structure. 90 | """ 91 | return { 92 | "name": data.name, 93 | "points": [marshal_TimeSeriesPoint(point) for point in data.points], 94 | "metadata": data.metadata, 95 | } 96 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/bridge/zone.py: -------------------------------------------------------------------------------- 1 | Zone = str 2 | ZONE_FR_PAR_1 = Zone("fr-par-1") 3 | ZONE_FR_PAR_2 = Zone("fr-par-2") 4 | ZONE_FR_PAR_3 = Zone("fr-par-3") 5 | ZONE_NL_AMS_1 = Zone("nl-ams-1") 6 | ZONE_NL_AMS_2 = Zone("nl-ams-2") 7 | ZONE_NL_AMS_3 = Zone("nl-ams-3") 8 | ZONE_PL_WAW_1 = Zone("pl-waw-1") 9 | ZONE_PL_WAW_2 = Zone("pl-waw-2") 10 | 11 | ALL_ZONES = [ 12 | ZONE_FR_PAR_1, 13 | ZONE_FR_PAR_2, 14 | ZONE_FR_PAR_3, 15 | ZONE_NL_AMS_1, 16 | ZONE_NL_AMS_2, 17 | ZONE_NL_AMS_3, 18 | ZONE_PL_WAW_1, 19 | ZONE_PL_WAW_2, 20 | ] 21 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/profile/__init__.py: -------------------------------------------------------------------------------- 1 | from .env import ( 2 | ENV_KEY_SCW_ACCESS_KEY, 3 | ENV_KEY_SCW_API_URL, 4 | ENV_KEY_SCW_CONFIG_PATH, 5 | ENV_KEY_SCW_DEFAULT_ORGANIZATION_ID, 6 | ENV_KEY_SCW_DEFAULT_PROJECT_ID, 7 | ENV_KEY_SCW_DEFAULT_REGION, 8 | ENV_KEY_SCW_DEFAULT_ZONE, 9 | ENV_KEY_SCW_SECRET_KEY, 10 | ) 11 | from .profile import Profile, ProfileConfig, ProfileDefaults 12 | 13 | __all__ = [ 14 | "Profile", 15 | "ProfileConfig", 16 | "ProfileDefaults", 17 | "ENV_KEY_SCW_CONFIG_PATH", 18 | "ENV_KEY_SCW_ACCESS_KEY", 19 | "ENV_KEY_SCW_SECRET_KEY", 20 | "ENV_KEY_SCW_API_URL", 21 | "ENV_KEY_SCW_DEFAULT_ORGANIZATION_ID", 22 | "ENV_KEY_SCW_DEFAULT_PROJECT_ID", 23 | "ENV_KEY_SCW_DEFAULT_REGION", 24 | "ENV_KEY_SCW_DEFAULT_ZONE", 25 | ] 26 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/profile/env.py: -------------------------------------------------------------------------------- 1 | ENV_KEY_SCW_CONFIG_PATH = "SCW_CONFIG_PATH" 2 | ENV_KEY_SCW_PROFILE = "SCW_PROFILE" 3 | ENV_KEY_SCW_ACCESS_KEY = "SCW_ACCESS_KEY" 4 | ENV_KEY_SCW_SECRET_KEY = "SCW_SECRET_KEY" # nosec B105 5 | ENV_KEY_SCW_API_URL = "SCW_API_URL" 6 | ENV_KEY_SCW_DEFAULT_ORGANIZATION_ID = "SCW_DEFAULT_ORGANIZATION_ID" 7 | ENV_KEY_SCW_DEFAULT_PROJECT_ID = "SCW_DEFAULT_PROJECT_ID" 8 | ENV_KEY_SCW_DEFAULT_REGION = "SCW_DEFAULT_REGION" 9 | ENV_KEY_SCW_DEFAULT_ZONE = "SCW_DEFAULT_ZONE" 10 | 11 | ENV_VARIABLES_TO_PROFILE = { 12 | ENV_KEY_SCW_ACCESS_KEY: "access_key", 13 | ENV_KEY_SCW_SECRET_KEY: "secret_key", 14 | ENV_KEY_SCW_API_URL: "api_url", 15 | ENV_KEY_SCW_DEFAULT_ORGANIZATION_ID: "default_organization_id", 16 | ENV_KEY_SCW_DEFAULT_PROJECT_ID: "default_project_id", 17 | ENV_KEY_SCW_DEFAULT_REGION: "default_region", 18 | ENV_KEY_SCW_DEFAULT_ZONE: "default_zone", 19 | } 20 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/profile/file.py: -------------------------------------------------------------------------------- 1 | CONFIG_PROPERTIES_TO_PROFILE = { 2 | "access_key": "access_key", 3 | "secret_key": "secret_key", 4 | "api_url": "api_url", 5 | "default_organization_id": "default_organization_id", 6 | "default_project_id": "default_project_id", 7 | "default_region": "default_region", 8 | "default_zone": "default_zone", 9 | } 10 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scaleway/scaleway-sdk-python/f86f8891e24882217540e32f02617365a76b9737/scaleway-core/scaleway_core/py.typed -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/utils/__init__.py: -------------------------------------------------------------------------------- 1 | from .fetch_all_pages import ( 2 | fetch_all_pages, 3 | fetch_all_pages_async, 4 | ) 5 | 6 | from .project_or_organization_id import project_or_organization_id 7 | 8 | from .random_name import random_name 9 | 10 | from .resolve_one_of import OneOfPossibility, resolve_one_of 11 | 12 | from .strenummeta import StrEnumMeta 13 | 14 | from .validate_path_param import validate_path_param 15 | 16 | from .waiter import ( 17 | WaitForOptions, 18 | WaitForStopCondition, 19 | wait_for_resource, 20 | wait_for_resource_async, 21 | ) 22 | 23 | __all__ = [ 24 | "fetch_all_pages", 25 | "fetch_all_pages_async", 26 | "project_or_organization_id", 27 | "random_name", 28 | "OneOfPossibility", 29 | "resolve_one_of", 30 | "StrEnumMeta", 31 | "validate_path_param", 32 | "WaitForOptions", 33 | "WaitForStopCondition", 34 | "wait_for_resource", 35 | "wait_for_resource_async", 36 | ] 37 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/utils/fetch_all_pages.py: -------------------------------------------------------------------------------- 1 | from typing import Any, Awaitable, Callable, Dict, List, Optional, Type, TypeVar 2 | 3 | T = TypeVar("T") 4 | 5 | 6 | def _build_fetcher_args( 7 | args: Dict[str, Any], 8 | page: Optional[int], 9 | ) -> Dict[str, Any]: 10 | """ 11 | Builds the arguments to pass to the fetcher function. 12 | """ 13 | return { 14 | **args, 15 | "page": page or args.get("page") or 1, 16 | } 17 | 18 | 19 | def fetch_all_pages( 20 | type: Type[T], 21 | key: str, 22 | fetcher: Callable[..., T], 23 | args: Dict[str, Any], 24 | page: Optional[int] = None, 25 | ) -> List[Any]: 26 | """ 27 | :param key: The key to use to get the list of items from the response 28 | :param fetcher: The function to call to fetch the response 29 | :return: The list of items 30 | """ 31 | fetcher_args = _build_fetcher_args(args, page) 32 | page = fetcher_args.get("page") or 1 33 | page_size = fetcher_args.get("page_size") 34 | 35 | data = fetcher(**fetcher_args) 36 | if not data: 37 | return [] 38 | 39 | items: List[Any] = getattr(data, key) 40 | 41 | if page_size is not None and len(items) < page_size: 42 | return items 43 | 44 | if not items: 45 | return items 46 | 47 | return items + fetch_all_pages( 48 | type=type, 49 | key=key, 50 | fetcher=fetcher, 51 | args=args, 52 | page=page + 1, 53 | ) 54 | 55 | 56 | async def fetch_all_pages_async( 57 | type: Type[T], 58 | key: str, 59 | fetcher: Callable[..., Awaitable[T]], 60 | args: Dict[str, Any], 61 | page: Optional[int] = None, 62 | ) -> List[Any]: 63 | """ 64 | :param key: The key to use to get the list of items from the response 65 | :param fetcher: The function to call to fetch the response 66 | :return: The list of items 67 | """ 68 | fetcher_args = _build_fetcher_args(args, page) 69 | page = fetcher_args.get("page") or 1 70 | page_size = fetcher_args.get("page_size") 71 | 72 | data = await fetcher(**fetcher_args) 73 | if not data: 74 | return [] 75 | 76 | items: List[Any] = getattr(data, key) 77 | 78 | if page_size is not None and len(items) < page_size: 79 | return items 80 | 81 | if not items: 82 | return items 83 | 84 | return items + await fetch_all_pages_async( 85 | type=type, 86 | key=key, 87 | fetcher=fetcher, 88 | args=args, 89 | page=page + 1, 90 | ) 91 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/utils/project_or_organization_id.py: -------------------------------------------------------------------------------- 1 | from typing import Dict, Optional 2 | 3 | 4 | def project_or_organization_id( 5 | organization_id: Optional[str], 6 | project_id: Optional[str], 7 | default_project_id: Optional[str], 8 | ) -> Dict[str, str]: 9 | if project_id is not None: 10 | return { 11 | "project_id": project_id, 12 | } 13 | 14 | if organization_id is not None: 15 | return { 16 | "organization_id": organization_id, 17 | } 18 | 19 | if default_project_id is not None: 20 | return { 21 | "project_id": default_project_id, 22 | } 23 | 24 | raise ValueError("You must provide either a project_id or an organization_id") 25 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/utils/resolve_one_of.py: -------------------------------------------------------------------------------- 1 | from dataclasses import dataclass 2 | from typing import Any, Dict, Generic, List, Optional, TypeVar 3 | 4 | T = TypeVar("T") 5 | 6 | 7 | @dataclass 8 | class OneOfPossibility(Generic[T]): 9 | param: str 10 | 11 | value: Optional[T] 12 | 13 | default: Optional[T] = None 14 | 15 | 16 | def resolve_one_of( 17 | possibilities: List[OneOfPossibility[Any]], is_required: bool = False 18 | ) -> Dict[str, Any]: 19 | """ 20 | Resolves the ideal parameter and value amongst an optional list. 21 | """ 22 | 23 | # Get the first non-empty parameter 24 | for possibility in possibilities: 25 | if possibility.value is not None: 26 | return {possibility.param: possibility.value} 27 | 28 | # Get the first non-empty default 29 | for possibility in possibilities: 30 | if possibility.default is not None: 31 | return {possibility.param: possibility.default} 32 | 33 | # If required, raise an error 34 | if is_required: 35 | possibilities_keys = " or ".join( 36 | [possibility.param for possibility in possibilities] 37 | ) 38 | raise ValueError(f"one of ${possibilities_keys} must be present") 39 | 40 | # Else, return an empty dict 41 | return {} 42 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/utils/strenummeta.py: -------------------------------------------------------------------------------- 1 | from enum import EnumMeta 2 | from typing import Any, Optional 3 | 4 | 5 | class StrEnumMeta(EnumMeta): 6 | def __call__( 7 | cls, 8 | value: str, 9 | names: Optional[Any] = None, 10 | *args: Any, 11 | **kwargs: Any, 12 | ) -> Any: 13 | if names is not None: 14 | return super().__call__(value, names, *args, **kwargs) 15 | 16 | try: 17 | # attempt to get an enum member 18 | return super().__call__(value, names, *args, **kwargs) 19 | except ValueError: 20 | # no such member exists, but we don't care if the value is a string 21 | if not isinstance(value, str): 22 | raise ValueError(f"{value} is not a valid {cls.__name__} or string") 23 | 24 | return value 25 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/utils/validate_path_param.py: -------------------------------------------------------------------------------- 1 | from datetime import datetime 2 | from typing import Optional, Union 3 | 4 | 5 | def validate_path_param(name: str, value: Optional[Union[str, int, datetime]]) -> str: 6 | """ 7 | Returns the parameter if it's valid as path parameter 8 | (string and not empty, or number), else throws an exception. 9 | """ 10 | if type(value) is datetime: 11 | value = value.isoformat() 12 | 13 | if (value is None) or (isinstance(value, str) and not value): 14 | raise ValueError(f"Path parameter {name} is required") 15 | 16 | return str(value) 17 | -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/validations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scaleway/scaleway-sdk-python/f86f8891e24882217540e32f02617365a76b9737/scaleway-core/scaleway_core/validations/__init__.py -------------------------------------------------------------------------------- /scaleway-core/scaleway_core/validations/string_validation.py: -------------------------------------------------------------------------------- 1 | import re 2 | import uuid 3 | from urllib.parse import urlparse 4 | 5 | _is_access_key_regex = re.compile(r"^SCW[A-Z0-9]{17}$", re.IGNORECASE) 6 | 7 | 8 | def is_access_key(s: str) -> bool: 9 | return _is_access_key_regex.match(s) is not None 10 | 11 | 12 | def _is_uuid(s: str) -> bool: 13 | try: 14 | uuid.UUID(s) 15 | return True 16 | except ValueError: 17 | return False 18 | 19 | 20 | def is_secret_key(s: str) -> bool: 21 | return _is_uuid(s) 22 | 23 | 24 | def is_organization_id(s: str) -> bool: 25 | return _is_uuid(s) 26 | 27 | 28 | def is_project_id(s: str) -> bool: 29 | return _is_uuid(s) 30 | 31 | 32 | _is_region_regex = re.compile(r"^[a-z]{2}-[a-z]{3}$", re.IGNORECASE) 33 | 34 | 35 | def is_region(s: str) -> bool: 36 | return _is_region_regex.match(s) is not None 37 | 38 | 39 | _is_zone_regex = re.compile(r"^[a-z]{2}-[a-z]{3}-[1-9]$", re.IGNORECASE) 40 | 41 | 42 | def is_zone(s: str) -> bool: 43 | return _is_zone_regex.match(s) is not None 44 | 45 | 46 | def is_url(s: str) -> bool: 47 | try: 48 | result = urlparse(s) 49 | return all([result.scheme, result.netloc]) 50 | except ValueError: 51 | return False 52 | -------------------------------------------------------------------------------- /scaleway-core/tests/test_bridge_marshal.py: -------------------------------------------------------------------------------- 1 | import unittest 2 | from decimal import Decimal 3 | 4 | from scaleway_core.bridge import unmarshal_Decimal, marshal_Decimal 5 | 6 | 7 | class TestBridgeMarshal(unittest.TestCase): 8 | def test_decimal_marshal(self): 9 | decimal = Decimal("1.2") 10 | self.assertEqual(marshal_Decimal(decimal), {"value": "1.2"}) 11 | 12 | def test_decimal_unmarshal(self): 13 | decimal = Decimal("1.2") 14 | self.assertEqual(unmarshal_Decimal({"value": "1.2"}), decimal) 15 | -------------------------------------------------------------------------------- /scaleway-core/tests/test_profile_env.py: -------------------------------------------------------------------------------- 1 | import logging 2 | import os 3 | import sys 4 | import unittest 5 | import uuid 6 | from unittest import mock 7 | 8 | import utils 9 | from scaleway_core.profile import Profile 10 | 11 | logger = logging.getLogger() 12 | logger.level = logging.DEBUG 13 | stream_handler = logging.StreamHandler(sys.stdout) 14 | logger.addHandler(stream_handler) 15 | 16 | 17 | class TestProfileEnv(unittest.TestCase): 18 | def setUp(self) -> None: 19 | self.profile_config = Profile( 20 | access_key=utils.random_access_key(), 21 | secret_key=str(uuid.uuid4()), 22 | default_organization_id=str(uuid.uuid4()), 23 | default_project_id=str(uuid.uuid4()), 24 | default_region="fr-par", 25 | default_zone="fr-par-1", 26 | api_url="https://example.com", 27 | ) 28 | 29 | def test_load_profile_from_env(self) -> None: 30 | with mock.patch.dict( 31 | os.environ, 32 | { 33 | "SCW_ACCESS_KEY": self.profile_config.access_key, 34 | "SCW_SECRET_KEY": self.profile_config.secret_key, 35 | "SCW_DEFAULT_ORGANIZATION_ID": self.profile_config.default_organization_id, 36 | "SCW_DEFAULT_PROJECT_ID": self.profile_config.default_project_id, 37 | "SCW_DEFAULT_REGION": self.profile_config.default_region, 38 | "SCW_DEFAULT_ZONE": self.profile_config.default_zone, 39 | "SCW_API_URL": self.profile_config.api_url, 40 | }, 41 | ): 42 | profile = Profile.from_env() 43 | self.assertEqual(profile, self.profile_config) 44 | -------------------------------------------------------------------------------- /scaleway-core/tests/utils.py: -------------------------------------------------------------------------------- 1 | import random 2 | import uuid 3 | from datetime import datetime 4 | from typing import Union 5 | 6 | from scaleway_core.profile import ProfileDefaults 7 | 8 | system_random = random.SystemRandom() 9 | 10 | 11 | def random_name() -> str: 12 | return "test-{}".format(uuid.uuid4().hex) 13 | 14 | 15 | def random_access_key() -> str: 16 | return "SCW" + "".join( 17 | system_random.choices("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", k=16) 18 | ) 19 | 20 | 21 | def string_to_datetime(date: str) -> datetime: 22 | return datetime.strptime(date, "%Y-%m-%dT%H:%M:%SZ") 23 | 24 | 25 | def random_date(min: Union[str, datetime], max: Union[str, datetime]) -> datetime: 26 | min_time = min if isinstance(min, datetime) else string_to_datetime(min) 27 | max_time = max if isinstance(max, datetime) else string_to_datetime(max) 28 | 29 | random_time = min_time + system_random.random() * (max_time - min_time) 30 | return random_time 31 | 32 | 33 | def datetime_to_string(date: datetime) -> str: 34 | return date.strftime("%Y-%m-%dT%H:%M:%SZ") 35 | 36 | 37 | def random_date_string(min: str, max: str) -> str: 38 | return datetime_to_string(random_date(min, max)) 39 | 40 | 41 | def random_profile_defaults() -> ProfileDefaults: 42 | return ProfileDefaults( 43 | default_organization_id=uuid.uuid4().hex, 44 | default_project_id=uuid.uuid4().hex, 45 | ) 46 | -------------------------------------------------------------------------------- /scaleway/README.md: -------------------------------------------------------------------------------- 1 | # Scaleway Python SDK 2 | 3 | This SDK enables you to interact with Scaleway APIs. 4 | -------------------------------------------------------------------------------- /scaleway/pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.poetry] 2 | name = "scaleway" 3 | version = "2.0.0" 4 | description = "Scaleway SDK for Python" 5 | authors = ["Scaleway "] 6 | license = "BSD" 7 | readme = "README.md" 8 | classifiers = [ 9 | "Development Status :: 3 - Alpha", 10 | "Environment :: Console", 11 | "Intended Audience :: Developers", 12 | "License :: OSI Approved :: BSD License", 13 | "Operating System :: OS Independent", 14 | "Programming Language :: Python :: 3", 15 | "Programming Language :: Python :: 3.4", 16 | "Programming Language :: Python :: 3.5", 17 | "Programming Language :: Python :: 3.6", 18 | "Programming Language :: Python :: 3.7", 19 | "Programming Language :: Python :: 3.8", 20 | "Programming Language :: Python :: 3.9", 21 | "Programming Language :: Python :: 3.10", 22 | "Topic :: Software Development", 23 | ] 24 | 25 | [tool.poetry.dependencies] 26 | python = ">=3.10" 27 | scaleway-core = "*" 28 | 29 | [tool.poetry.group.dev.dependencies] 30 | scaleway-core = { path = "../scaleway-core", develop = true } 31 | ruff = ">=0.5.0,<0.11.13" 32 | mypy = "^1.5.1" 33 | 34 | [build-system] 35 | requires = ["poetry-core"] 36 | build-backend = "poetry.core.masonry.api" 37 | 38 | [tool.ruff.lint] 39 | ignore = ["E501"] 40 | -------------------------------------------------------------------------------- /scaleway/scaleway/__init__.py: -------------------------------------------------------------------------------- 1 | """Scaleway SDK for Python""" 2 | 3 | import importlib.metadata 4 | 5 | __version__: str = importlib.metadata.version(__name__) 6 | 7 | from scaleway_core.api import ( 8 | API, 9 | ScalewayException, 10 | ) 11 | 12 | from scaleway_core.client import Client 13 | 14 | from scaleway_core.profile import ( 15 | Profile, 16 | ProfileConfig, 17 | ProfileDefaults, 18 | ) 19 | 20 | from scaleway_core.utils.waiter import ( 21 | WaitForOptions, 22 | WaitForStopCondition, 23 | ) 24 | 25 | from scaleway_core.bridge import ( 26 | Money, 27 | Region, 28 | ALL_REGIONS, 29 | Zone, 30 | ALL_ZONES, 31 | ScwFile, 32 | ServiceInfo, 33 | TimeSeriesPoint, 34 | TimeSeries, 35 | ) 36 | 37 | __all__ = [ 38 | "API", 39 | "ScalewayException", 40 | "Client", 41 | "Profile", 42 | "ProfileConfig", 43 | "ProfileDefaults", 44 | "WaitForOptions", 45 | "WaitForStopCondition", 46 | "Money", 47 | "Region", 48 | "ALL_REGIONS", 49 | "Zone", 50 | "ALL_ZONES", 51 | "ScwFile", 52 | "ServiceInfo", 53 | "TimeSeriesPoint", 54 | "TimeSeries", 55 | ] 56 | -------------------------------------------------------------------------------- /scaleway/scaleway/account/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/account/v2/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListProjectsRequestOrderBy 4 | from .types import Project 5 | from .types import CreateProjectRequest 6 | from .types import DeleteProjectRequest 7 | from .types import GetProjectRequest 8 | from .types import ListProjectsRequest 9 | from .types import ListProjectsResponse 10 | from .types import UpdateProjectRequest 11 | from .api import AccountV2API 12 | 13 | __all__ = [ 14 | "ListProjectsRequestOrderBy", 15 | "Project", 16 | "CreateProjectRequest", 17 | "DeleteProjectRequest", 18 | "GetProjectRequest", 19 | "ListProjectsRequest", 20 | "ListProjectsResponse", 21 | "UpdateProjectRequest", 22 | "AccountV2API", 23 | ] 24 | -------------------------------------------------------------------------------- /scaleway/scaleway/applesilicon/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/applesilicon/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ServerPrivateNetworkServerStatus, 7 | ServerPrivateNetworkStatus, 8 | ServerStatus, 9 | ) 10 | 11 | SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES: List[ 12 | ServerPrivateNetworkServerStatus 13 | ] = [ 14 | ServerPrivateNetworkServerStatus.ATTACHING, 15 | ServerPrivateNetworkServerStatus.DETACHING, 16 | ] 17 | """ 18 | Lists transient statutes of the enum :class:`ServerPrivateNetworkServerStatus `. 19 | """ 20 | SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: List[ServerPrivateNetworkStatus] = [ 21 | ServerPrivateNetworkStatus.VPC_UPDATING, 22 | ] 23 | """ 24 | Lists transient statutes of the enum :class:`ServerPrivateNetworkStatus `. 25 | """ 26 | SERVER_TRANSIENT_STATUSES: List[ServerStatus] = [ 27 | ServerStatus.STARTING, 28 | ServerStatus.REBOOTING, 29 | ServerStatus.UPDATING, 30 | ServerStatus.LOCKING, 31 | ServerStatus.UNLOCKING, 32 | ServerStatus.REINSTALLING, 33 | ServerStatus.BUSY, 34 | ] 35 | """ 36 | Lists transient statutes of the enum :class:`ServerStatus `. 37 | """ 38 | -------------------------------------------------------------------------------- /scaleway/scaleway/audit_trail/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/audit_trail/v1alpha1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListEventsRequestOrderBy 4 | from .types import ResourceType 5 | from .types import AccountOrganizationInfo 6 | from .types import AccountUserInfo 7 | from .types import KeyManagerKeyInfo 8 | from .types import KubernetesACLInfo 9 | from .types import KubernetesClusterInfo 10 | from .types import KubernetesNodeInfo 11 | from .types import KubernetesPoolInfo 12 | from .types import SecretManagerSecretInfo 13 | from .types import SecretManagerSecretVersionInfo 14 | from .types import EventPrincipal 15 | from .types import Resource 16 | from .types import ProductService 17 | from .types import Event 18 | from .types import Product 19 | from .types import ListEventsRequest 20 | from .types import ListEventsResponse 21 | from .types import ListProductsRequest 22 | from .types import ListProductsResponse 23 | from .api import AuditTrailV1Alpha1API 24 | 25 | __all__ = [ 26 | "ListEventsRequestOrderBy", 27 | "ResourceType", 28 | "AccountOrganizationInfo", 29 | "AccountUserInfo", 30 | "KeyManagerKeyInfo", 31 | "KubernetesACLInfo", 32 | "KubernetesClusterInfo", 33 | "KubernetesNodeInfo", 34 | "KubernetesPoolInfo", 35 | "SecretManagerSecretInfo", 36 | "SecretManagerSecretVersionInfo", 37 | "EventPrincipal", 38 | "Resource", 39 | "ProductService", 40 | "Event", 41 | "Product", 42 | "ListEventsRequest", 43 | "ListEventsResponse", 44 | "ListProductsRequest", 45 | "ListProductsResponse", 46 | "AuditTrailV1Alpha1API", 47 | ] 48 | -------------------------------------------------------------------------------- /scaleway/scaleway/autoscaling/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/baremetal/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/baremetal/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ServerInstallStatus, 7 | ServerPrivateNetworkStatus, 8 | ServerStatus, 9 | ) 10 | 11 | SERVER_INSTALL_TRANSIENT_STATUSES: List[ServerInstallStatus] = [ 12 | ServerInstallStatus.TO_INSTALL, 13 | ServerInstallStatus.INSTALLING, 14 | ] 15 | """ 16 | Lists transient statutes of the enum :class:`ServerInstallStatus `. 17 | """ 18 | SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: List[ServerPrivateNetworkStatus] = [ 19 | ServerPrivateNetworkStatus.ATTACHING, 20 | ServerPrivateNetworkStatus.DETACHING, 21 | ] 22 | """ 23 | Lists transient statutes of the enum :class:`ServerPrivateNetworkStatus `. 24 | """ 25 | SERVER_TRANSIENT_STATUSES: List[ServerStatus] = [ 26 | ServerStatus.DELIVERING, 27 | ServerStatus.STOPPING, 28 | ServerStatus.STARTING, 29 | ServerStatus.DELETING, 30 | ServerStatus.ORDERED, 31 | ServerStatus.RESETTING, 32 | ServerStatus.MIGRATING, 33 | ] 34 | """ 35 | Lists transient statutes of the enum :class:`ServerStatus `. 36 | """ 37 | -------------------------------------------------------------------------------- /scaleway/scaleway/baremetal/v3/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListServerPrivateNetworksRequestOrderBy 4 | from .types import ServerPrivateNetworkStatus 5 | from .content import SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES 6 | from .types import ServerPrivateNetwork 7 | from .types import ListServerPrivateNetworksResponse 8 | from .types import PrivateNetworkApiAddServerPrivateNetworkRequest 9 | from .types import PrivateNetworkApiDeleteServerPrivateNetworkRequest 10 | from .types import PrivateNetworkApiListServerPrivateNetworksRequest 11 | from .types import PrivateNetworkApiSetServerPrivateNetworksRequest 12 | from .types import SetServerPrivateNetworksResponse 13 | from .api import BaremetalV3PrivateNetworkAPI 14 | 15 | __all__ = [ 16 | "ListServerPrivateNetworksRequestOrderBy", 17 | "ServerPrivateNetworkStatus", 18 | "SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES", 19 | "ServerPrivateNetwork", 20 | "ListServerPrivateNetworksResponse", 21 | "PrivateNetworkApiAddServerPrivateNetworkRequest", 22 | "PrivateNetworkApiDeleteServerPrivateNetworkRequest", 23 | "PrivateNetworkApiListServerPrivateNetworksRequest", 24 | "PrivateNetworkApiSetServerPrivateNetworksRequest", 25 | "SetServerPrivateNetworksResponse", 26 | "BaremetalV3PrivateNetworkAPI", 27 | ] 28 | -------------------------------------------------------------------------------- /scaleway/scaleway/baremetal/v3/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ServerPrivateNetworkStatus, 7 | ) 8 | 9 | SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: List[ServerPrivateNetworkStatus] = [ 10 | ServerPrivateNetworkStatus.ATTACHING, 11 | ServerPrivateNetworkStatus.DETACHING, 12 | ] 13 | """ 14 | Lists transient statutes of the enum :class:`ServerPrivateNetworkStatus `. 15 | """ 16 | -------------------------------------------------------------------------------- /scaleway/scaleway/billing/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/billing/v2alpha1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import DiscountDiscountMode 4 | from .types import DiscountFilterType 5 | from .types import DownloadInvoiceRequestFileType 6 | from .types import InvoiceType 7 | from .types import ListDiscountsRequestOrderBy 8 | from .types import ListInvoicesRequestOrderBy 9 | from .types import DiscountCoupon 10 | from .types import DiscountFilter 11 | from .types import GetConsumptionResponseConsumption 12 | from .types import Discount 13 | from .types import Invoice 14 | from .types import DownloadInvoiceRequest 15 | from .types import GetConsumptionRequest 16 | from .types import GetConsumptionResponse 17 | from .types import ListDiscountsRequest 18 | from .types import ListDiscountsResponse 19 | from .types import ListInvoicesRequest 20 | from .types import ListInvoicesResponse 21 | from .api import BillingV2Alpha1API 22 | 23 | __all__ = [ 24 | "DiscountDiscountMode", 25 | "DiscountFilterType", 26 | "DownloadInvoiceRequestFileType", 27 | "InvoiceType", 28 | "ListDiscountsRequestOrderBy", 29 | "ListInvoicesRequestOrderBy", 30 | "DiscountCoupon", 31 | "DiscountFilter", 32 | "GetConsumptionResponseConsumption", 33 | "Discount", 34 | "Invoice", 35 | "DownloadInvoiceRequest", 36 | "GetConsumptionRequest", 37 | "GetConsumptionResponse", 38 | "ListDiscountsRequest", 39 | "ListDiscountsResponse", 40 | "ListInvoicesRequest", 41 | "ListInvoicesResponse", 42 | "BillingV2Alpha1API", 43 | ] 44 | -------------------------------------------------------------------------------- /scaleway/scaleway/billing/v2beta1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import DiscountDiscountMode 4 | from .types import DiscountFilterType 5 | from .types import DownloadInvoiceRequestFileType 6 | from .types import ExportInvoicesRequestFileType 7 | from .types import ExportInvoicesRequestOrderBy 8 | from .types import InvoiceType 9 | from .types import ListConsumptionsRequestOrderBy 10 | from .types import ListDiscountsRequestOrderBy 11 | from .types import ListInvoicesRequestOrderBy 12 | from .types import ListTaxesRequestOrderBy 13 | from .types import DiscountCoupon 14 | from .types import DiscountFilter 15 | from .types import ListConsumptionsResponseConsumption 16 | from .types import Discount 17 | from .types import Invoice 18 | from .types import ListTaxesResponseTax 19 | from .types import DownloadInvoiceRequest 20 | from .types import ExportInvoicesRequest 21 | from .types import GetInvoiceRequest 22 | from .types import ListConsumptionsRequest 23 | from .types import ListConsumptionsResponse 24 | from .types import ListDiscountsRequest 25 | from .types import ListDiscountsResponse 26 | from .types import ListInvoicesRequest 27 | from .types import ListInvoicesResponse 28 | from .types import ListTaxesRequest 29 | from .types import ListTaxesResponse 30 | from .api import BillingV2Beta1API 31 | 32 | __all__ = [ 33 | "DiscountDiscountMode", 34 | "DiscountFilterType", 35 | "DownloadInvoiceRequestFileType", 36 | "ExportInvoicesRequestFileType", 37 | "ExportInvoicesRequestOrderBy", 38 | "InvoiceType", 39 | "ListConsumptionsRequestOrderBy", 40 | "ListDiscountsRequestOrderBy", 41 | "ListInvoicesRequestOrderBy", 42 | "ListTaxesRequestOrderBy", 43 | "DiscountCoupon", 44 | "DiscountFilter", 45 | "ListConsumptionsResponseConsumption", 46 | "Discount", 47 | "Invoice", 48 | "ListTaxesResponseTax", 49 | "DownloadInvoiceRequest", 50 | "ExportInvoicesRequest", 51 | "GetInvoiceRequest", 52 | "ListConsumptionsRequest", 53 | "ListConsumptionsResponse", 54 | "ListDiscountsRequest", 55 | "ListDiscountsResponse", 56 | "ListInvoicesRequest", 57 | "ListInvoicesResponse", 58 | "ListTaxesRequest", 59 | "ListTaxesResponse", 60 | "BillingV2Beta1API", 61 | ] 62 | -------------------------------------------------------------------------------- /scaleway/scaleway/block/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/block/v1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListSnapshotsRequestOrderBy 4 | from .types import ListVolumesRequestOrderBy 5 | from .types import ReferenceStatus 6 | from .content import REFERENCE_TRANSIENT_STATUSES 7 | from .types import ReferenceType 8 | from .types import SnapshotStatus 9 | from .content import SNAPSHOT_TRANSIENT_STATUSES 10 | from .types import StorageClass 11 | from .types import VolumeStatus 12 | from .content import VOLUME_TRANSIENT_STATUSES 13 | from .types import Reference 14 | from .types import SnapshotParentVolume 15 | from .types import VolumeSpecifications 16 | from .types import CreateVolumeRequestFromEmpty 17 | from .types import CreateVolumeRequestFromSnapshot 18 | from .types import Snapshot 19 | from .types import VolumeType 20 | from .types import Volume 21 | from .types import CreateSnapshotRequest 22 | from .types import CreateVolumeRequest 23 | from .types import DeleteSnapshotRequest 24 | from .types import DeleteVolumeRequest 25 | from .types import ExportSnapshotToObjectStorageRequest 26 | from .types import GetSnapshotRequest 27 | from .types import GetVolumeRequest 28 | from .types import ImportSnapshotFromObjectStorageRequest 29 | from .types import ListSnapshotsRequest 30 | from .types import ListSnapshotsResponse 31 | from .types import ListVolumeTypesRequest 32 | from .types import ListVolumeTypesResponse 33 | from .types import ListVolumesRequest 34 | from .types import ListVolumesResponse 35 | from .types import UpdateSnapshotRequest 36 | from .types import UpdateVolumeRequest 37 | from .api import BlockV1API 38 | 39 | __all__ = [ 40 | "ListSnapshotsRequestOrderBy", 41 | "ListVolumesRequestOrderBy", 42 | "ReferenceStatus", 43 | "REFERENCE_TRANSIENT_STATUSES", 44 | "ReferenceType", 45 | "SnapshotStatus", 46 | "SNAPSHOT_TRANSIENT_STATUSES", 47 | "StorageClass", 48 | "VolumeStatus", 49 | "VOLUME_TRANSIENT_STATUSES", 50 | "Reference", 51 | "SnapshotParentVolume", 52 | "VolumeSpecifications", 53 | "CreateVolumeRequestFromEmpty", 54 | "CreateVolumeRequestFromSnapshot", 55 | "Snapshot", 56 | "VolumeType", 57 | "Volume", 58 | "CreateSnapshotRequest", 59 | "CreateVolumeRequest", 60 | "DeleteSnapshotRequest", 61 | "DeleteVolumeRequest", 62 | "ExportSnapshotToObjectStorageRequest", 63 | "GetSnapshotRequest", 64 | "GetVolumeRequest", 65 | "ImportSnapshotFromObjectStorageRequest", 66 | "ListSnapshotsRequest", 67 | "ListSnapshotsResponse", 68 | "ListVolumeTypesRequest", 69 | "ListVolumeTypesResponse", 70 | "ListVolumesRequest", 71 | "ListVolumesResponse", 72 | "UpdateSnapshotRequest", 73 | "UpdateVolumeRequest", 74 | "BlockV1API", 75 | ] 76 | -------------------------------------------------------------------------------- /scaleway/scaleway/block/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ReferenceStatus, 7 | SnapshotStatus, 8 | VolumeStatus, 9 | ) 10 | 11 | REFERENCE_TRANSIENT_STATUSES: List[ReferenceStatus] = [ 12 | ReferenceStatus.ATTACHING, 13 | ReferenceStatus.DETACHING, 14 | ReferenceStatus.CREATING, 15 | ] 16 | """ 17 | Lists transient statutes of the enum :class:`ReferenceStatus `. 18 | """ 19 | SNAPSHOT_TRANSIENT_STATUSES: List[SnapshotStatus] = [ 20 | SnapshotStatus.CREATING, 21 | SnapshotStatus.DELETING, 22 | SnapshotStatus.EXPORTING, 23 | ] 24 | """ 25 | Lists transient statutes of the enum :class:`SnapshotStatus `. 26 | """ 27 | VOLUME_TRANSIENT_STATUSES: List[VolumeStatus] = [ 28 | VolumeStatus.CREATING, 29 | VolumeStatus.DELETING, 30 | VolumeStatus.RESIZING, 31 | VolumeStatus.SNAPSHOTTING, 32 | VolumeStatus.UPDATING, 33 | ] 34 | """ 35 | Lists transient statutes of the enum :class:`VolumeStatus `. 36 | """ 37 | -------------------------------------------------------------------------------- /scaleway/scaleway/block/v1alpha1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListSnapshotsRequestOrderBy 4 | from .types import ListVolumesRequestOrderBy 5 | from .types import ReferenceStatus 6 | from .content import REFERENCE_TRANSIENT_STATUSES 7 | from .types import ReferenceType 8 | from .types import SnapshotStatus 9 | from .content import SNAPSHOT_TRANSIENT_STATUSES 10 | from .types import StorageClass 11 | from .types import VolumeStatus 12 | from .content import VOLUME_TRANSIENT_STATUSES 13 | from .types import Reference 14 | from .types import SnapshotParentVolume 15 | from .types import VolumeSpecifications 16 | from .types import CreateVolumeRequestFromEmpty 17 | from .types import CreateVolumeRequestFromSnapshot 18 | from .types import Snapshot 19 | from .types import VolumeType 20 | from .types import Volume 21 | from .types import CreateSnapshotRequest 22 | from .types import CreateVolumeRequest 23 | from .types import DeleteSnapshotRequest 24 | from .types import DeleteVolumeRequest 25 | from .types import ExportSnapshotToObjectStorageRequest 26 | from .types import GetSnapshotRequest 27 | from .types import GetVolumeRequest 28 | from .types import ImportSnapshotFromObjectStorageRequest 29 | from .types import ImportSnapshotFromS3Request 30 | from .types import ListSnapshotsRequest 31 | from .types import ListSnapshotsResponse 32 | from .types import ListVolumeTypesRequest 33 | from .types import ListVolumeTypesResponse 34 | from .types import ListVolumesRequest 35 | from .types import ListVolumesResponse 36 | from .types import UpdateSnapshotRequest 37 | from .types import UpdateVolumeRequest 38 | from .api import BlockV1Alpha1API 39 | 40 | __all__ = [ 41 | "ListSnapshotsRequestOrderBy", 42 | "ListVolumesRequestOrderBy", 43 | "ReferenceStatus", 44 | "REFERENCE_TRANSIENT_STATUSES", 45 | "ReferenceType", 46 | "SnapshotStatus", 47 | "SNAPSHOT_TRANSIENT_STATUSES", 48 | "StorageClass", 49 | "VolumeStatus", 50 | "VOLUME_TRANSIENT_STATUSES", 51 | "Reference", 52 | "SnapshotParentVolume", 53 | "VolumeSpecifications", 54 | "CreateVolumeRequestFromEmpty", 55 | "CreateVolumeRequestFromSnapshot", 56 | "Snapshot", 57 | "VolumeType", 58 | "Volume", 59 | "CreateSnapshotRequest", 60 | "CreateVolumeRequest", 61 | "DeleteSnapshotRequest", 62 | "DeleteVolumeRequest", 63 | "ExportSnapshotToObjectStorageRequest", 64 | "GetSnapshotRequest", 65 | "GetVolumeRequest", 66 | "ImportSnapshotFromObjectStorageRequest", 67 | "ImportSnapshotFromS3Request", 68 | "ListSnapshotsRequest", 69 | "ListSnapshotsResponse", 70 | "ListVolumeTypesRequest", 71 | "ListVolumeTypesResponse", 72 | "ListVolumesRequest", 73 | "ListVolumesResponse", 74 | "UpdateSnapshotRequest", 75 | "UpdateVolumeRequest", 76 | "BlockV1Alpha1API", 77 | ] 78 | -------------------------------------------------------------------------------- /scaleway/scaleway/block/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ReferenceStatus, 7 | SnapshotStatus, 8 | VolumeStatus, 9 | ) 10 | 11 | REFERENCE_TRANSIENT_STATUSES: List[ReferenceStatus] = [ 12 | ReferenceStatus.ATTACHING, 13 | ReferenceStatus.DETACHING, 14 | ReferenceStatus.CREATING, 15 | ] 16 | """ 17 | Lists transient statutes of the enum :class:`ReferenceStatus `. 18 | """ 19 | SNAPSHOT_TRANSIENT_STATUSES: List[SnapshotStatus] = [ 20 | SnapshotStatus.CREATING, 21 | SnapshotStatus.DELETING, 22 | SnapshotStatus.EXPORTING, 23 | ] 24 | """ 25 | Lists transient statutes of the enum :class:`SnapshotStatus `. 26 | """ 27 | VOLUME_TRANSIENT_STATUSES: List[VolumeStatus] = [ 28 | VolumeStatus.CREATING, 29 | VolumeStatus.DELETING, 30 | VolumeStatus.RESIZING, 31 | VolumeStatus.SNAPSHOTTING, 32 | VolumeStatus.UPDATING, 33 | ] 34 | """ 35 | Lists transient statutes of the enum :class:`VolumeStatus `. 36 | """ 37 | -------------------------------------------------------------------------------- /scaleway/scaleway/cockpit/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/cockpit/v1beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | CockpitStatus, 7 | ) 8 | 9 | COCKPIT_TRANSIENT_STATUSES: List[CockpitStatus] = [ 10 | CockpitStatus.CREATING, 11 | CockpitStatus.DELETING, 12 | CockpitStatus.UPDATING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`CockpitStatus `. 16 | """ 17 | -------------------------------------------------------------------------------- /scaleway/scaleway/container/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/container/v1beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ContainerStatus, 7 | CronStatus, 8 | DomainStatus, 9 | NamespaceStatus, 10 | TokenStatus, 11 | TriggerStatus, 12 | ) 13 | 14 | CONTAINER_TRANSIENT_STATUSES: List[ContainerStatus] = [ 15 | ContainerStatus.DELETING, 16 | ContainerStatus.CREATING, 17 | ContainerStatus.PENDING, 18 | ] 19 | """ 20 | Lists transient statutes of the enum :class:`ContainerStatus `. 21 | """ 22 | CRON_TRANSIENT_STATUSES: List[CronStatus] = [ 23 | CronStatus.DELETING, 24 | CronStatus.CREATING, 25 | CronStatus.PENDING, 26 | ] 27 | """ 28 | Lists transient statutes of the enum :class:`CronStatus `. 29 | """ 30 | DOMAIN_TRANSIENT_STATUSES: List[DomainStatus] = [ 31 | DomainStatus.DELETING, 32 | DomainStatus.CREATING, 33 | DomainStatus.PENDING, 34 | ] 35 | """ 36 | Lists transient statutes of the enum :class:`DomainStatus `. 37 | """ 38 | NAMESPACE_TRANSIENT_STATUSES: List[NamespaceStatus] = [ 39 | NamespaceStatus.DELETING, 40 | NamespaceStatus.CREATING, 41 | NamespaceStatus.PENDING, 42 | ] 43 | """ 44 | Lists transient statutes of the enum :class:`NamespaceStatus `. 45 | """ 46 | TOKEN_TRANSIENT_STATUSES: List[TokenStatus] = [ 47 | TokenStatus.DELETING, 48 | TokenStatus.CREATING, 49 | ] 50 | """ 51 | Lists transient statutes of the enum :class:`TokenStatus `. 52 | """ 53 | TRIGGER_TRANSIENT_STATUSES: List[TriggerStatus] = [ 54 | TriggerStatus.DELETING, 55 | TriggerStatus.CREATING, 56 | TriggerStatus.PENDING, 57 | ] 58 | """ 59 | Lists transient statutes of the enum :class:`TriggerStatus `. 60 | """ 61 | -------------------------------------------------------------------------------- /scaleway/scaleway/dedibox/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/document_db/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/document_db/v1beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | InstanceLogStatus, 7 | InstanceStatus, 8 | MaintenanceStatus, 9 | ReadReplicaStatus, 10 | SnapshotStatus, 11 | ) 12 | 13 | INSTANCE_LOG_TRANSIENT_STATUSES: List[InstanceLogStatus] = [ 14 | InstanceLogStatus.CREATING, 15 | ] 16 | """ 17 | Lists transient statutes of the enum :class:`InstanceLogStatus `. 18 | """ 19 | INSTANCE_TRANSIENT_STATUSES: List[InstanceStatus] = [ 20 | InstanceStatus.PROVISIONING, 21 | InstanceStatus.CONFIGURING, 22 | InstanceStatus.DELETING, 23 | InstanceStatus.AUTOHEALING, 24 | InstanceStatus.INITIALIZING, 25 | InstanceStatus.BACKUPING, 26 | InstanceStatus.SNAPSHOTTING, 27 | InstanceStatus.RESTARTING, 28 | ] 29 | """ 30 | Lists transient statutes of the enum :class:`InstanceStatus `. 31 | """ 32 | MAINTENANCE_TRANSIENT_STATUSES: List[MaintenanceStatus] = [ 33 | MaintenanceStatus.ONGOING, 34 | ] 35 | """ 36 | Lists transient statutes of the enum :class:`MaintenanceStatus `. 37 | """ 38 | READ_REPLICA_TRANSIENT_STATUSES: List[ReadReplicaStatus] = [ 39 | ReadReplicaStatus.PROVISIONING, 40 | ReadReplicaStatus.INITIALIZING, 41 | ReadReplicaStatus.DELETING, 42 | ReadReplicaStatus.CONFIGURING, 43 | ReadReplicaStatus.PROMOTING, 44 | ] 45 | """ 46 | Lists transient statutes of the enum :class:`ReadReplicaStatus `. 47 | """ 48 | SNAPSHOT_TRANSIENT_STATUSES: List[SnapshotStatus] = [ 49 | SnapshotStatus.CREATING, 50 | SnapshotStatus.RESTORING, 51 | SnapshotStatus.DELETING, 52 | ] 53 | """ 54 | Lists transient statutes of the enum :class:`SnapshotStatus `. 55 | """ 56 | -------------------------------------------------------------------------------- /scaleway/scaleway/domain/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/domain/v2beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DNSZoneStatus, 7 | DomainFeatureStatus, 8 | DomainRegistrationStatusTransferStatus, 9 | DomainStatus, 10 | HostStatus, 11 | SSLCertificateStatus, 12 | TaskStatus, 13 | ) 14 | 15 | DNS_ZONE_TRANSIENT_STATUSES: List[DNSZoneStatus] = [ 16 | DNSZoneStatus.PENDING, 17 | ] 18 | """ 19 | Lists transient statutes of the enum :class:`DNSZoneStatus `. 20 | """ 21 | DOMAIN_FEATURE_TRANSIENT_STATUSES: List[DomainFeatureStatus] = [ 22 | DomainFeatureStatus.ENABLING, 23 | DomainFeatureStatus.DISABLING, 24 | ] 25 | """ 26 | Lists transient statutes of the enum :class:`DomainFeatureStatus `. 27 | """ 28 | DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES: List[ 29 | DomainRegistrationStatusTransferStatus 30 | ] = [ 31 | DomainRegistrationStatusTransferStatus.PENDING, 32 | DomainRegistrationStatusTransferStatus.PROCESSING, 33 | ] 34 | """ 35 | Lists transient statutes of the enum :class:`DomainRegistrationStatusTransferStatus `. 36 | """ 37 | DOMAIN_TRANSIENT_STATUSES: List[DomainStatus] = [ 38 | DomainStatus.CREATING, 39 | DomainStatus.RENEWING, 40 | DomainStatus.XFERING, 41 | DomainStatus.EXPIRING, 42 | DomainStatus.UPDATING, 43 | DomainStatus.CHECKING, 44 | DomainStatus.DELETING, 45 | ] 46 | """ 47 | Lists transient statutes of the enum :class:`DomainStatus `. 48 | """ 49 | HOST_TRANSIENT_STATUSES: List[HostStatus] = [ 50 | HostStatus.UPDATING, 51 | HostStatus.DELETING, 52 | ] 53 | """ 54 | Lists transient statutes of the enum :class:`HostStatus `. 55 | """ 56 | SSL_CERTIFICATE_TRANSIENT_STATUSES: List[SSLCertificateStatus] = [ 57 | SSLCertificateStatus.PENDING, 58 | ] 59 | """ 60 | Lists transient statutes of the enum :class:`SSLCertificateStatus `. 61 | """ 62 | TASK_TRANSIENT_STATUSES: List[TaskStatus] = [ 63 | TaskStatus.PENDING, 64 | ] 65 | """ 66 | Lists transient statutes of the enum :class:`TaskStatus `. 67 | """ 68 | -------------------------------------------------------------------------------- /scaleway/scaleway/edge_services/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/edge_services/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | PipelineStatus, 7 | PurgeRequestStatus, 8 | ) 9 | 10 | PIPELINE_TRANSIENT_STATUSES: List[PipelineStatus] = [ 11 | PipelineStatus.PENDING, 12 | ] 13 | """ 14 | Lists transient statutes of the enum :class:`PipelineStatus `. 15 | """ 16 | PURGE_REQUEST_TRANSIENT_STATUSES: List[PurgeRequestStatus] = [ 17 | PurgeRequestStatus.PENDING, 18 | ] 19 | """ 20 | Lists transient statutes of the enum :class:`PurgeRequestStatus `. 21 | """ 22 | -------------------------------------------------------------------------------- /scaleway/scaleway/edge_services/v1beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | PipelineStatus, 7 | PurgeRequestStatus, 8 | ) 9 | 10 | PIPELINE_TRANSIENT_STATUSES: List[PipelineStatus] = [ 11 | PipelineStatus.PENDING, 12 | ] 13 | """ 14 | Lists transient statutes of the enum :class:`PipelineStatus `. 15 | """ 16 | PURGE_REQUEST_TRANSIENT_STATUSES: List[PurgeRequestStatus] = [ 17 | PurgeRequestStatus.PENDING, 18 | ] 19 | """ 20 | Lists transient statutes of the enum :class:`PurgeRequestStatus `. 21 | """ 22 | -------------------------------------------------------------------------------- /scaleway/scaleway/file/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/file/v1alpha1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import AttachmentResourceType 4 | from .types import FileSystemStatus 5 | from .content import FILE_SYSTEM_TRANSIENT_STATUSES 6 | from .types import ListFileSystemsRequestOrderBy 7 | from .types import Attachment 8 | from .types import FileSystem 9 | from .types import CreateFileSystemRequest 10 | from .types import DeleteFileSystemRequest 11 | from .types import GetFileSystemRequest 12 | from .types import ListAttachmentsRequest 13 | from .types import ListAttachmentsResponse 14 | from .types import ListFileSystemsRequest 15 | from .types import ListFileSystemsResponse 16 | from .types import UpdateFileSystemRequest 17 | from .api import FileV1Alpha1API 18 | 19 | __all__ = [ 20 | "AttachmentResourceType", 21 | "FileSystemStatus", 22 | "FILE_SYSTEM_TRANSIENT_STATUSES", 23 | "ListFileSystemsRequestOrderBy", 24 | "Attachment", 25 | "FileSystem", 26 | "CreateFileSystemRequest", 27 | "DeleteFileSystemRequest", 28 | "GetFileSystemRequest", 29 | "ListAttachmentsRequest", 30 | "ListAttachmentsResponse", 31 | "ListFileSystemsRequest", 32 | "ListFileSystemsResponse", 33 | "UpdateFileSystemRequest", 34 | "FileV1Alpha1API", 35 | ] 36 | -------------------------------------------------------------------------------- /scaleway/scaleway/file/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | FileSystemStatus, 7 | ) 8 | 9 | FILE_SYSTEM_TRANSIENT_STATUSES: List[FileSystemStatus] = [ 10 | FileSystemStatus.CREATING, 11 | FileSystemStatus.UPDATING, 12 | ] 13 | """ 14 | Lists transient statutes of the enum :class:`FileSystemStatus `. 15 | """ 16 | -------------------------------------------------------------------------------- /scaleway/scaleway/flexibleip/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/flexibleip/v1alpha1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import FlexibleIPStatus 4 | from .content import FLEXIBLE_IP_TRANSIENT_STATUSES 5 | from .types import ListFlexibleIPsRequestOrderBy 6 | from .types import MACAddressStatus 7 | from .content import MAC_ADDRESS_TRANSIENT_STATUSES 8 | from .types import MACAddressType 9 | from .types import MACAddress 10 | from .types import FlexibleIP 11 | from .types import AttachFlexibleIPRequest 12 | from .types import AttachFlexibleIPsResponse 13 | from .types import CreateFlexibleIPRequest 14 | from .types import DeleteFlexibleIPRequest 15 | from .types import DeleteMACAddrRequest 16 | from .types import DetachFlexibleIPRequest 17 | from .types import DetachFlexibleIPsResponse 18 | from .types import DuplicateMACAddrRequest 19 | from .types import GenerateMACAddrRequest 20 | from .types import GetFlexibleIPRequest 21 | from .types import ListFlexibleIPsRequest 22 | from .types import ListFlexibleIPsResponse 23 | from .types import MoveMACAddrRequest 24 | from .types import UpdateFlexibleIPRequest 25 | from .api import FlexibleipV1Alpha1API 26 | 27 | __all__ = [ 28 | "FlexibleIPStatus", 29 | "FLEXIBLE_IP_TRANSIENT_STATUSES", 30 | "ListFlexibleIPsRequestOrderBy", 31 | "MACAddressStatus", 32 | "MAC_ADDRESS_TRANSIENT_STATUSES", 33 | "MACAddressType", 34 | "MACAddress", 35 | "FlexibleIP", 36 | "AttachFlexibleIPRequest", 37 | "AttachFlexibleIPsResponse", 38 | "CreateFlexibleIPRequest", 39 | "DeleteFlexibleIPRequest", 40 | "DeleteMACAddrRequest", 41 | "DetachFlexibleIPRequest", 42 | "DetachFlexibleIPsResponse", 43 | "DuplicateMACAddrRequest", 44 | "GenerateMACAddrRequest", 45 | "GetFlexibleIPRequest", 46 | "ListFlexibleIPsRequest", 47 | "ListFlexibleIPsResponse", 48 | "MoveMACAddrRequest", 49 | "UpdateFlexibleIPRequest", 50 | "FlexibleipV1Alpha1API", 51 | ] 52 | -------------------------------------------------------------------------------- /scaleway/scaleway/flexibleip/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | FlexibleIPStatus, 7 | MACAddressStatus, 8 | ) 9 | 10 | FLEXIBLE_IP_TRANSIENT_STATUSES: List[FlexibleIPStatus] = [ 11 | FlexibleIPStatus.UPDATING, 12 | FlexibleIPStatus.DETACHING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`FlexibleIPStatus `. 16 | """ 17 | MAC_ADDRESS_TRANSIENT_STATUSES: List[MACAddressStatus] = [ 18 | MACAddressStatus.UPDATING, 19 | MACAddressStatus.DELETING, 20 | ] 21 | """ 22 | Lists transient statutes of the enum :class:`MACAddressStatus `. 23 | """ 24 | -------------------------------------------------------------------------------- /scaleway/scaleway/function/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/function/v1beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | CronStatus, 7 | DomainStatus, 8 | FunctionStatus, 9 | NamespaceStatus, 10 | TokenStatus, 11 | TriggerStatus, 12 | ) 13 | 14 | CRON_TRANSIENT_STATUSES: List[CronStatus] = [ 15 | CronStatus.DELETING, 16 | CronStatus.CREATING, 17 | CronStatus.PENDING, 18 | ] 19 | """ 20 | Lists transient statutes of the enum :class:`CronStatus `. 21 | """ 22 | DOMAIN_TRANSIENT_STATUSES: List[DomainStatus] = [ 23 | DomainStatus.DELETING, 24 | DomainStatus.CREATING, 25 | DomainStatus.PENDING, 26 | ] 27 | """ 28 | Lists transient statutes of the enum :class:`DomainStatus `. 29 | """ 30 | FUNCTION_TRANSIENT_STATUSES: List[FunctionStatus] = [ 31 | FunctionStatus.DELETING, 32 | FunctionStatus.CREATING, 33 | FunctionStatus.PENDING, 34 | ] 35 | """ 36 | Lists transient statutes of the enum :class:`FunctionStatus `. 37 | """ 38 | NAMESPACE_TRANSIENT_STATUSES: List[NamespaceStatus] = [ 39 | NamespaceStatus.DELETING, 40 | NamespaceStatus.CREATING, 41 | NamespaceStatus.PENDING, 42 | ] 43 | """ 44 | Lists transient statutes of the enum :class:`NamespaceStatus `. 45 | """ 46 | TOKEN_TRANSIENT_STATUSES: List[TokenStatus] = [ 47 | TokenStatus.DELETING, 48 | TokenStatus.CREATING, 49 | ] 50 | """ 51 | Lists transient statutes of the enum :class:`TokenStatus `. 52 | """ 53 | TRIGGER_TRANSIENT_STATUSES: List[TriggerStatus] = [ 54 | TriggerStatus.DELETING, 55 | TriggerStatus.CREATING, 56 | TriggerStatus.PENDING, 57 | ] 58 | """ 59 | Lists transient statutes of the enum :class:`TriggerStatus `. 60 | """ 61 | -------------------------------------------------------------------------------- /scaleway/scaleway/iam/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/inference/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/inference/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DeploymentStatus, 7 | ModelStatus, 8 | ) 9 | 10 | DEPLOYMENT_TRANSIENT_STATUSES: List[DeploymentStatus] = [ 11 | DeploymentStatus.CREATING, 12 | DeploymentStatus.DEPLOYING, 13 | DeploymentStatus.DELETING, 14 | ] 15 | """ 16 | Lists transient statutes of the enum :class:`DeploymentStatus `. 17 | """ 18 | MODEL_TRANSIENT_STATUSES: List[ModelStatus] = [ 19 | ModelStatus.PREPARING, 20 | ModelStatus.DOWNLOADING, 21 | ] 22 | """ 23 | Lists transient statutes of the enum :class:`ModelStatus `. 24 | """ 25 | -------------------------------------------------------------------------------- /scaleway/scaleway/inference/v1beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DeploymentStatus, 7 | ) 8 | 9 | DEPLOYMENT_TRANSIENT_STATUSES: List[DeploymentStatus] = [ 10 | DeploymentStatus.CREATING, 11 | DeploymentStatus.DEPLOYING, 12 | DeploymentStatus.DELETING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`DeploymentStatus `. 16 | """ 17 | -------------------------------------------------------------------------------- /scaleway/scaleway/instance/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/instance/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ImageState, 7 | IpState, 8 | PrivateNICState, 9 | SecurityGroupState, 10 | ServerIpState, 11 | ServerState, 12 | SnapshotState, 13 | TaskStatus, 14 | VolumeServerState, 15 | VolumeState, 16 | ) 17 | 18 | IMAGE_TRANSIENT_STATUSES: List[ImageState] = [ 19 | ImageState.CREATING, 20 | ] 21 | """ 22 | Lists transient statutes of the enum :class:`ImageState `. 23 | """ 24 | IP_TRANSIENT_STATUSES: List[IpState] = [ 25 | IpState.PENDING, 26 | ] 27 | """ 28 | Lists transient statutes of the enum :class:`IpState `. 29 | """ 30 | PRIVATE_NIC_TRANSIENT_STATUSES: List[PrivateNICState] = [ 31 | PrivateNICState.SYNCING, 32 | ] 33 | """ 34 | Lists transient statutes of the enum :class:`PrivateNICState `. 35 | """ 36 | SECURITY_GROUP_TRANSIENT_STATUSES: List[SecurityGroupState] = [ 37 | SecurityGroupState.SYNCING, 38 | ] 39 | """ 40 | Lists transient statutes of the enum :class:`SecurityGroupState `. 41 | """ 42 | SERVER_IP_TRANSIENT_STATUSES: List[ServerIpState] = [ 43 | ServerIpState.PENDING, 44 | ] 45 | """ 46 | Lists transient statutes of the enum :class:`ServerIpState `. 47 | """ 48 | SERVER_TRANSIENT_STATUSES: List[ServerState] = [ 49 | ServerState.STARTING, 50 | ServerState.STOPPING, 51 | ] 52 | """ 53 | Lists transient statutes of the enum :class:`ServerState `. 54 | """ 55 | SNAPSHOT_TRANSIENT_STATUSES: List[SnapshotState] = [ 56 | SnapshotState.SNAPSHOTTING, 57 | SnapshotState.IMPORTING, 58 | SnapshotState.EXPORTING, 59 | ] 60 | """ 61 | Lists transient statutes of the enum :class:`SnapshotState `. 62 | """ 63 | TASK_TRANSIENT_STATUSES: List[TaskStatus] = [ 64 | TaskStatus.PENDING, 65 | TaskStatus.STARTED, 66 | TaskStatus.RETRY, 67 | ] 68 | """ 69 | Lists transient statutes of the enum :class:`TaskStatus `. 70 | """ 71 | VOLUME_SERVER_TRANSIENT_STATUSES: List[VolumeServerState] = [ 72 | VolumeServerState.SNAPSHOTTING, 73 | VolumeServerState.FETCHING, 74 | VolumeServerState.RESIZING, 75 | VolumeServerState.SAVING, 76 | VolumeServerState.HOTSYNCING, 77 | ] 78 | """ 79 | Lists transient statutes of the enum :class:`VolumeServerState `. 80 | """ 81 | VOLUME_TRANSIENT_STATUSES: List[VolumeState] = [ 82 | VolumeState.SNAPSHOTTING, 83 | VolumeState.FETCHING, 84 | VolumeState.RESIZING, 85 | VolumeState.SAVING, 86 | VolumeState.HOTSYNCING, 87 | ] 88 | """ 89 | Lists transient statutes of the enum :class:`VolumeState `. 90 | """ 91 | -------------------------------------------------------------------------------- /scaleway/scaleway/instance/v1/custom_marshalling.py: -------------------------------------------------------------------------------- 1 | from typing import Dict, Any 2 | 3 | from scaleway.instance.v1.custom_types import ( 4 | GetServerUserDataRequest, 5 | GetAllServerUserDataRequest, 6 | ) 7 | from scaleway_core.profile import ProfileDefaults 8 | 9 | 10 | def marshal_GetServerUserDataRequest( 11 | request: GetServerUserDataRequest, defaults: ProfileDefaults 12 | ) -> Dict[str, Any]: 13 | output: Dict[str, Any] = {} 14 | 15 | if request.server_id is not None: 16 | output["server_id"] = request.server_id 17 | if request.key is not None: 18 | output["key"] = request.key 19 | if request.zone is not None: 20 | output["zone"] = request.zone 21 | 22 | return output 23 | 24 | 25 | def marshal_ListServerUserDataRequest( 26 | request: GetAllServerUserDataRequest, defaults: ProfileDefaults 27 | ) -> Dict[str, Any]: 28 | output: Dict[str, Any] = {} 29 | 30 | if request.server_id is not None: 31 | output["server_id"] = request.server_id 32 | if request.zone is not None: 33 | output["zone"] = request.zone 34 | 35 | return output 36 | -------------------------------------------------------------------------------- /scaleway/scaleway/instance/v1/custom_types.py: -------------------------------------------------------------------------------- 1 | from dataclasses import dataclass 2 | from typing import Optional, Dict 3 | 4 | from scaleway_core.bridge import Zone as ScwZone 5 | 6 | 7 | @dataclass 8 | class GetServerUserDataRequest: 9 | server_id: str 10 | 11 | """ 12 | Key defines the user data key to get 13 | """ 14 | key: str 15 | 16 | """ 17 | Zone of the user data to get 18 | """ 19 | zone: Optional[ScwZone] 20 | 21 | 22 | @dataclass 23 | class GetAllServerUserDataRequest: 24 | server_id: str 25 | 26 | """ 27 | Zone of the user data to get 28 | """ 29 | zone: Optional[ScwZone] 30 | 31 | 32 | @dataclass 33 | class GetAllServerUserDataResponse: 34 | user_data: Dict[str, bytes] 35 | 36 | 37 | @dataclass 38 | class SetAllServerUserDataRequest: 39 | server_id: str 40 | 41 | user_data: Dict[str, bytes] 42 | 43 | """ 44 | Zone of the user data to set 45 | """ 46 | zone: Optional[ScwZone] 47 | -------------------------------------------------------------------------------- /scaleway/scaleway/instance/v1/test_user_data.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import unittest 3 | import logging 4 | from typing import Dict 5 | 6 | from scaleway_core.client import Client 7 | from .custom_api import InstanceUtilsV1API 8 | 9 | logger = logging.getLogger() 10 | logger.level = logging.DEBUG 11 | stream_handler = logging.StreamHandler(sys.stdout) 12 | logger.addHandler(stream_handler) 13 | 14 | 15 | class TestServerUserData(unittest.TestCase): 16 | def setUp(self) -> None: 17 | self.client = Client() 18 | self.instance_api = InstanceUtilsV1API(self.client, bypass_validation=True) 19 | self.server = self.instance_api._create_server( 20 | commercial_type="DEV1-S", 21 | zone="fr-par-1", 22 | image="ubuntu_jammy", 23 | name="my-server-web", 24 | volumes={}, 25 | protected=False, 26 | ) 27 | 28 | @unittest.skip("API Test is not up") 29 | def test_set_and_get_server_user_data(self) -> None: 30 | if self.server is None or self.server.server is None: 31 | self.fail("Server setup failed.") 32 | key = "first key" 33 | content = b"\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x10" 34 | self.instance_api.set_server_user_data( 35 | server_id=self.server.server.id, key=key, content=content 36 | ) 37 | user_data = self.instance_api.get_server_user_data( 38 | server_id=self.server.server.id, key=key 39 | ) 40 | self.assertIsNotNone(user_data) 41 | 42 | @unittest.skip("API Test is not up") 43 | def test_set_and_get_all_user_data(self) -> None: 44 | if self.server is None or self.server.server is None: 45 | self.fail("Server setup failed.") 46 | key = "first key" 47 | content = b"content first key" 48 | key_bis = "second key" 49 | content_bis = b"test content" 50 | another_key = "third key" 51 | another_content = b"another content to test" 52 | 53 | user_data: Dict[str, bytes] = { 54 | key_bis: content_bis, 55 | another_key: another_content, 56 | key: content, 57 | } 58 | self.instance_api.set_all_server_user_data( 59 | server_id=self.server.server.id, user_data=user_data 60 | ) 61 | response = self.instance_api.get_all_server_user_data( 62 | server_id=self.server.server.id 63 | ) 64 | self.assertIsNotNone(response) 65 | -------------------------------------------------------------------------------- /scaleway/scaleway/interlink/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/interlink/v1beta1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DedicatedConnectionStatus, 7 | LinkStatus, 8 | ) 9 | 10 | DEDICATED_CONNECTION_TRANSIENT_STATUSES: List[DedicatedConnectionStatus] = [ 11 | DedicatedConnectionStatus.CONFIGURING, 12 | ] 13 | """ 14 | Lists transient statutes of the enum :class:`DedicatedConnectionStatus `. 15 | """ 16 | LINK_TRANSIENT_STATUSES: List[LinkStatus] = [ 17 | LinkStatus.CONFIGURING, 18 | ] 19 | """ 20 | Lists transient statutes of the enum :class:`LinkStatus `. 21 | """ 22 | -------------------------------------------------------------------------------- /scaleway/scaleway/iot/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/iot/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | HubStatus, 7 | ) 8 | 9 | HUB_TRANSIENT_STATUSES: List[HubStatus] = [ 10 | HubStatus.ENABLING, 11 | HubStatus.DISABLING, 12 | ] 13 | """ 14 | Lists transient statutes of the enum :class:`HubStatus `. 15 | """ 16 | -------------------------------------------------------------------------------- /scaleway/scaleway/ipam/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/ipam/v1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListIPsRequestOrderBy 4 | from .types import ResourceType 5 | from .types import Resource 6 | from .types import Reverse 7 | from .types import Source 8 | from .types import CustomResource 9 | from .types import IP 10 | from .types import AttachIPRequest 11 | from .types import BookIPRequest 12 | from .types import DetachIPRequest 13 | from .types import GetIPRequest 14 | from .types import ListIPsRequest 15 | from .types import ListIPsResponse 16 | from .types import MoveIPRequest 17 | from .types import ReleaseIPRequest 18 | from .types import ReleaseIPSetRequest 19 | from .types import UpdateIPRequest 20 | from .api import IpamV1API 21 | 22 | __all__ = [ 23 | "ListIPsRequestOrderBy", 24 | "ResourceType", 25 | "Resource", 26 | "Reverse", 27 | "Source", 28 | "CustomResource", 29 | "IP", 30 | "AttachIPRequest", 31 | "BookIPRequest", 32 | "DetachIPRequest", 33 | "GetIPRequest", 34 | "ListIPsRequest", 35 | "ListIPsResponse", 36 | "MoveIPRequest", 37 | "ReleaseIPRequest", 38 | "ReleaseIPSetRequest", 39 | "UpdateIPRequest", 40 | "IpamV1API", 41 | ] 42 | -------------------------------------------------------------------------------- /scaleway/scaleway/ipfs/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/ipfs/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | NameStatus, 7 | PinStatus, 8 | ) 9 | 10 | NAME_TRANSIENT_STATUSES: List[NameStatus] = [ 11 | NameStatus.QUEUED, 12 | NameStatus.PUBLISHING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`NameStatus `. 16 | """ 17 | PIN_TRANSIENT_STATUSES: List[PinStatus] = [ 18 | PinStatus.QUEUED, 19 | PinStatus.PINNING, 20 | ] 21 | """ 22 | Lists transient statutes of the enum :class:`PinStatus `. 23 | """ 24 | -------------------------------------------------------------------------------- /scaleway/scaleway/jobs/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/jobs/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | JobRunState, 7 | ) 8 | 9 | JOB_RUN_TRANSIENT_STATUSES: List[JobRunState] = [ 10 | JobRunState.QUEUED, 11 | JobRunState.SCHEDULED, 12 | JobRunState.RUNNING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`JobRunState `. 16 | """ 17 | -------------------------------------------------------------------------------- /scaleway/scaleway/k8s/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/k8s/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ClusterStatus, 7 | NodeStatus, 8 | PoolStatus, 9 | ) 10 | 11 | CLUSTER_TRANSIENT_STATUSES: List[ClusterStatus] = [ 12 | ClusterStatus.CREATING, 13 | ClusterStatus.DELETING, 14 | ClusterStatus.UPDATING, 15 | ] 16 | """ 17 | Lists transient statutes of the enum :class:`ClusterStatus `. 18 | """ 19 | NODE_TRANSIENT_STATUSES: List[NodeStatus] = [ 20 | NodeStatus.CREATING, 21 | NodeStatus.DELETING, 22 | NodeStatus.REBOOTING, 23 | NodeStatus.UPGRADING, 24 | NodeStatus.STARTING, 25 | NodeStatus.REGISTERING, 26 | ] 27 | """ 28 | Lists transient statutes of the enum :class:`NodeStatus `. 29 | """ 30 | POOL_TRANSIENT_STATUSES: List[PoolStatus] = [ 31 | PoolStatus.DELETING, 32 | PoolStatus.SCALING, 33 | PoolStatus.UPGRADING, 34 | ] 35 | """ 36 | Lists transient statutes of the enum :class:`PoolStatus `. 37 | """ 38 | -------------------------------------------------------------------------------- /scaleway/scaleway/key_manager/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/key_manager/v1alpha1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import DataKeyAlgorithmSymmetricEncryption 4 | from .types import KeyAlgorithmAsymmetricEncryption 5 | from .types import KeyAlgorithmAsymmetricSigning 6 | from .types import KeyAlgorithmSymmetricEncryption 7 | from .types import KeyOrigin 8 | from .types import KeyState 9 | from .types import ListKeysRequestOrderBy 10 | from .types import ListKeysRequestUsage 11 | from .types import KeyRotationPolicy 12 | from .types import KeyUsage 13 | from .types import Key 14 | from .types import CreateKeyRequest 15 | from .types import DataKey 16 | from .types import DecryptRequest 17 | from .types import DecryptResponse 18 | from .types import DeleteKeyMaterialRequest 19 | from .types import DeleteKeyRequest 20 | from .types import DisableKeyRequest 21 | from .types import EnableKeyRequest 22 | from .types import EncryptRequest 23 | from .types import EncryptResponse 24 | from .types import GenerateDataKeyRequest 25 | from .types import GetKeyRequest 26 | from .types import GetPublicKeyRequest 27 | from .types import ImportKeyMaterialRequest 28 | from .types import ListKeysRequest 29 | from .types import ListKeysResponse 30 | from .types import ProtectKeyRequest 31 | from .types import PublicKey 32 | from .types import RotateKeyRequest 33 | from .types import SignRequest 34 | from .types import SignResponse 35 | from .types import UnprotectKeyRequest 36 | from .types import UpdateKeyRequest 37 | from .types import VerifyRequest 38 | from .types import VerifyResponse 39 | from .api import KeyManagerV1Alpha1API 40 | 41 | __all__ = [ 42 | "DataKeyAlgorithmSymmetricEncryption", 43 | "KeyAlgorithmAsymmetricEncryption", 44 | "KeyAlgorithmAsymmetricSigning", 45 | "KeyAlgorithmSymmetricEncryption", 46 | "KeyOrigin", 47 | "KeyState", 48 | "ListKeysRequestOrderBy", 49 | "ListKeysRequestUsage", 50 | "KeyRotationPolicy", 51 | "KeyUsage", 52 | "Key", 53 | "CreateKeyRequest", 54 | "DataKey", 55 | "DecryptRequest", 56 | "DecryptResponse", 57 | "DeleteKeyMaterialRequest", 58 | "DeleteKeyRequest", 59 | "DisableKeyRequest", 60 | "EnableKeyRequest", 61 | "EncryptRequest", 62 | "EncryptResponse", 63 | "GenerateDataKeyRequest", 64 | "GetKeyRequest", 65 | "GetPublicKeyRequest", 66 | "ImportKeyMaterialRequest", 67 | "ListKeysRequest", 68 | "ListKeysResponse", 69 | "ProtectKeyRequest", 70 | "PublicKey", 71 | "RotateKeyRequest", 72 | "SignRequest", 73 | "SignResponse", 74 | "UnprotectKeyRequest", 75 | "UpdateKeyRequest", 76 | "VerifyRequest", 77 | "VerifyResponse", 78 | "KeyManagerV1Alpha1API", 79 | ] 80 | -------------------------------------------------------------------------------- /scaleway/scaleway/lb/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/lb/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | CertificateStatus, 7 | InstanceStatus, 8 | LbStatus, 9 | PrivateNetworkStatus, 10 | ) 11 | 12 | CERTIFICATE_TRANSIENT_STATUSES: List[CertificateStatus] = [ 13 | CertificateStatus.PENDING, 14 | ] 15 | """ 16 | Lists transient statutes of the enum :class:`CertificateStatus `. 17 | """ 18 | INSTANCE_TRANSIENT_STATUSES: List[InstanceStatus] = [ 19 | InstanceStatus.PENDING, 20 | InstanceStatus.MIGRATING, 21 | ] 22 | """ 23 | Lists transient statutes of the enum :class:`InstanceStatus `. 24 | """ 25 | LB_TRANSIENT_STATUSES: List[LbStatus] = [ 26 | LbStatus.PENDING, 27 | LbStatus.MIGRATING, 28 | LbStatus.TO_CREATE, 29 | LbStatus.CREATING, 30 | LbStatus.TO_DELETE, 31 | LbStatus.DELETING, 32 | ] 33 | """ 34 | Lists transient statutes of the enum :class:`LbStatus `. 35 | """ 36 | PRIVATE_NETWORK_TRANSIENT_STATUSES: List[PrivateNetworkStatus] = [ 37 | PrivateNetworkStatus.PENDING, 38 | ] 39 | """ 40 | Lists transient statutes of the enum :class:`PrivateNetworkStatus `. 41 | """ 42 | -------------------------------------------------------------------------------- /scaleway/scaleway/marketplace/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/marketplace/v2/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListImagesRequestOrderBy 4 | from .types import ListLocalImagesRequestOrderBy 5 | from .types import ListVersionsRequestOrderBy 6 | from .types import LocalImageType 7 | from .types import Category 8 | from .types import Image 9 | from .types import LocalImage 10 | from .types import Version 11 | from .types import GetCategoryRequest 12 | from .types import GetImageRequest 13 | from .types import GetLocalImageRequest 14 | from .types import GetVersionRequest 15 | from .types import ListCategoriesRequest 16 | from .types import ListCategoriesResponse 17 | from .types import ListImagesRequest 18 | from .types import ListImagesResponse 19 | from .types import ListLocalImagesRequest 20 | from .types import ListLocalImagesResponse 21 | from .types import ListVersionsRequest 22 | from .types import ListVersionsResponse 23 | from .api import MarketplaceV2API 24 | 25 | __all__ = [ 26 | "ListImagesRequestOrderBy", 27 | "ListLocalImagesRequestOrderBy", 28 | "ListVersionsRequestOrderBy", 29 | "LocalImageType", 30 | "Category", 31 | "Image", 32 | "LocalImage", 33 | "Version", 34 | "GetCategoryRequest", 35 | "GetImageRequest", 36 | "GetLocalImageRequest", 37 | "GetVersionRequest", 38 | "ListCategoriesRequest", 39 | "ListCategoriesResponse", 40 | "ListImagesRequest", 41 | "ListImagesResponse", 42 | "ListLocalImagesRequest", 43 | "ListLocalImagesResponse", 44 | "ListVersionsRequest", 45 | "ListVersionsResponse", 46 | "MarketplaceV2API", 47 | ] 48 | -------------------------------------------------------------------------------- /scaleway/scaleway/mnq/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/mongodb/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/mongodb/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | InstanceStatus, 7 | SnapshotStatus, 8 | ) 9 | 10 | INSTANCE_TRANSIENT_STATUSES: List[InstanceStatus] = [ 11 | InstanceStatus.PROVISIONING, 12 | InstanceStatus.CONFIGURING, 13 | InstanceStatus.DELETING, 14 | InstanceStatus.INITIALIZING, 15 | InstanceStatus.SNAPSHOTTING, 16 | ] 17 | """ 18 | Lists transient statutes of the enum :class:`InstanceStatus `. 19 | """ 20 | SNAPSHOT_TRANSIENT_STATUSES: List[SnapshotStatus] = [ 21 | SnapshotStatus.CREATING, 22 | SnapshotStatus.RESTORING, 23 | SnapshotStatus.DELETING, 24 | ] 25 | """ 26 | Lists transient statutes of the enum :class:`SnapshotStatus `. 27 | """ 28 | -------------------------------------------------------------------------------- /scaleway/scaleway/product_catalog/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/py.typed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scaleway/scaleway-sdk-python/f86f8891e24882217540e32f02617365a76b9737/scaleway/scaleway/py.typed -------------------------------------------------------------------------------- /scaleway/scaleway/qaas/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/qaas/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | JobStatus, 7 | ProcessStatus, 8 | SessionStatus, 9 | ) 10 | 11 | JOB_TRANSIENT_STATUSES: List[JobStatus] = [ 12 | JobStatus.WAITING, 13 | JobStatus.RUNNING, 14 | JobStatus.CANCELLING, 15 | ] 16 | """ 17 | Lists transient statutes of the enum :class:`JobStatus `. 18 | """ 19 | PROCESS_TRANSIENT_STATUSES: List[ProcessStatus] = [ 20 | ProcessStatus.STARTING, 21 | ProcessStatus.RUNNING, 22 | ProcessStatus.CANCELLING, 23 | ] 24 | """ 25 | Lists transient statutes of the enum :class:`ProcessStatus `. 26 | """ 27 | SESSION_TRANSIENT_STATUSES: List[SessionStatus] = [ 28 | SessionStatus.STARTING, 29 | SessionStatus.STOPPING, 30 | ] 31 | """ 32 | Lists transient statutes of the enum :class:`SessionStatus `. 33 | """ 34 | -------------------------------------------------------------------------------- /scaleway/scaleway/rdb/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/rdb/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DatabaseBackupStatus, 7 | InstanceLogStatus, 8 | InstanceStatus, 9 | MaintenanceStatus, 10 | ReadReplicaStatus, 11 | SnapshotStatus, 12 | ) 13 | 14 | DATABASE_BACKUP_TRANSIENT_STATUSES: List[DatabaseBackupStatus] = [ 15 | DatabaseBackupStatus.CREATING, 16 | DatabaseBackupStatus.RESTORING, 17 | DatabaseBackupStatus.DELETING, 18 | DatabaseBackupStatus.EXPORTING, 19 | ] 20 | """ 21 | Lists transient statutes of the enum :class:`DatabaseBackupStatus `. 22 | """ 23 | INSTANCE_LOG_TRANSIENT_STATUSES: List[InstanceLogStatus] = [ 24 | InstanceLogStatus.CREATING, 25 | ] 26 | """ 27 | Lists transient statutes of the enum :class:`InstanceLogStatus `. 28 | """ 29 | INSTANCE_TRANSIENT_STATUSES: List[InstanceStatus] = [ 30 | InstanceStatus.PROVISIONING, 31 | InstanceStatus.CONFIGURING, 32 | InstanceStatus.DELETING, 33 | InstanceStatus.AUTOHEALING, 34 | InstanceStatus.INITIALIZING, 35 | InstanceStatus.BACKUPING, 36 | InstanceStatus.SNAPSHOTTING, 37 | InstanceStatus.RESTARTING, 38 | ] 39 | """ 40 | Lists transient statutes of the enum :class:`InstanceStatus `. 41 | """ 42 | MAINTENANCE_TRANSIENT_STATUSES: List[MaintenanceStatus] = [ 43 | MaintenanceStatus.ONGOING, 44 | ] 45 | """ 46 | Lists transient statutes of the enum :class:`MaintenanceStatus `. 47 | """ 48 | READ_REPLICA_TRANSIENT_STATUSES: List[ReadReplicaStatus] = [ 49 | ReadReplicaStatus.PROVISIONING, 50 | ReadReplicaStatus.INITIALIZING, 51 | ReadReplicaStatus.DELETING, 52 | ReadReplicaStatus.CONFIGURING, 53 | ReadReplicaStatus.PROMOTING, 54 | ] 55 | """ 56 | Lists transient statutes of the enum :class:`ReadReplicaStatus `. 57 | """ 58 | SNAPSHOT_TRANSIENT_STATUSES: List[SnapshotStatus] = [ 59 | SnapshotStatus.CREATING, 60 | SnapshotStatus.RESTORING, 61 | SnapshotStatus.DELETING, 62 | ] 63 | """ 64 | Lists transient statutes of the enum :class:`SnapshotStatus `. 65 | """ 66 | -------------------------------------------------------------------------------- /scaleway/scaleway/redis/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/redis/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ClusterStatus, 7 | ) 8 | 9 | CLUSTER_TRANSIENT_STATUSES: List[ClusterStatus] = [ 10 | ClusterStatus.PROVISIONING, 11 | ClusterStatus.CONFIGURING, 12 | ClusterStatus.DELETING, 13 | ClusterStatus.AUTOHEALING, 14 | ClusterStatus.INITIALIZING, 15 | ] 16 | """ 17 | Lists transient statutes of the enum :class:`ClusterStatus `. 18 | """ 19 | -------------------------------------------------------------------------------- /scaleway/scaleway/registry/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/registry/v1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ImageStatus 4 | from .content import IMAGE_TRANSIENT_STATUSES 5 | from .types import ImageVisibility 6 | from .types import ListImagesRequestOrderBy 7 | from .types import ListNamespacesRequestOrderBy 8 | from .types import ListTagsRequestOrderBy 9 | from .types import NamespaceStatus 10 | from .content import NAMESPACE_TRANSIENT_STATUSES 11 | from .types import TagStatus 12 | from .content import TAG_TRANSIENT_STATUSES 13 | from .types import Image 14 | from .types import Namespace 15 | from .types import Tag 16 | from .types import CreateNamespaceRequest 17 | from .types import DeleteImageRequest 18 | from .types import DeleteNamespaceRequest 19 | from .types import DeleteTagRequest 20 | from .types import GetImageRequest 21 | from .types import GetNamespaceRequest 22 | from .types import GetTagRequest 23 | from .types import ListImagesRequest 24 | from .types import ListImagesResponse 25 | from .types import ListNamespacesRequest 26 | from .types import ListNamespacesResponse 27 | from .types import ListTagsRequest 28 | from .types import ListTagsResponse 29 | from .types import UpdateImageRequest 30 | from .types import UpdateNamespaceRequest 31 | from .api import RegistryV1API 32 | 33 | __all__ = [ 34 | "ImageStatus", 35 | "IMAGE_TRANSIENT_STATUSES", 36 | "ImageVisibility", 37 | "ListImagesRequestOrderBy", 38 | "ListNamespacesRequestOrderBy", 39 | "ListTagsRequestOrderBy", 40 | "NamespaceStatus", 41 | "NAMESPACE_TRANSIENT_STATUSES", 42 | "TagStatus", 43 | "TAG_TRANSIENT_STATUSES", 44 | "Image", 45 | "Namespace", 46 | "Tag", 47 | "CreateNamespaceRequest", 48 | "DeleteImageRequest", 49 | "DeleteNamespaceRequest", 50 | "DeleteTagRequest", 51 | "GetImageRequest", 52 | "GetNamespaceRequest", 53 | "GetTagRequest", 54 | "ListImagesRequest", 55 | "ListImagesResponse", 56 | "ListNamespacesRequest", 57 | "ListNamespacesResponse", 58 | "ListTagsRequest", 59 | "ListTagsResponse", 60 | "UpdateImageRequest", 61 | "UpdateNamespaceRequest", 62 | "RegistryV1API", 63 | ] 64 | -------------------------------------------------------------------------------- /scaleway/scaleway/registry/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | ImageStatus, 7 | NamespaceStatus, 8 | TagStatus, 9 | ) 10 | 11 | IMAGE_TRANSIENT_STATUSES: List[ImageStatus] = [ 12 | ImageStatus.DELETING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`ImageStatus `. 16 | """ 17 | NAMESPACE_TRANSIENT_STATUSES: List[NamespaceStatus] = [ 18 | NamespaceStatus.DELETING, 19 | ] 20 | """ 21 | Lists transient statutes of the enum :class:`NamespaceStatus `. 22 | """ 23 | TAG_TRANSIENT_STATUSES: List[TagStatus] = [ 24 | TagStatus.DELETING, 25 | ] 26 | """ 27 | Lists transient statutes of the enum :class:`TagStatus `. 28 | """ 29 | -------------------------------------------------------------------------------- /scaleway/scaleway/secret/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/serverless_sqldb/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/serverless_sqldb/v1alpha1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import DatabaseBackupStatus 4 | from .types import DatabaseStatus 5 | from .content import DATABASE_TRANSIENT_STATUSES 6 | from .types import ListDatabaseBackupsRequestOrderBy 7 | from .types import ListDatabasesRequestOrderBy 8 | from .types import DatabaseBackup 9 | from .types import Database 10 | from .types import CreateDatabaseRequest 11 | from .types import DeleteDatabaseRequest 12 | from .types import ExportDatabaseBackupRequest 13 | from .types import GetDatabaseBackupRequest 14 | from .types import GetDatabaseRequest 15 | from .types import ListDatabaseBackupsRequest 16 | from .types import ListDatabaseBackupsResponse 17 | from .types import ListDatabasesRequest 18 | from .types import ListDatabasesResponse 19 | from .types import RestoreDatabaseFromBackupRequest 20 | from .types import UpdateDatabaseRequest 21 | from .api import ServerlessSqldbV1Alpha1API 22 | 23 | __all__ = [ 24 | "DatabaseBackupStatus", 25 | "DatabaseStatus", 26 | "DATABASE_TRANSIENT_STATUSES", 27 | "ListDatabaseBackupsRequestOrderBy", 28 | "ListDatabasesRequestOrderBy", 29 | "DatabaseBackup", 30 | "Database", 31 | "CreateDatabaseRequest", 32 | "DeleteDatabaseRequest", 33 | "ExportDatabaseBackupRequest", 34 | "GetDatabaseBackupRequest", 35 | "GetDatabaseRequest", 36 | "ListDatabaseBackupsRequest", 37 | "ListDatabaseBackupsResponse", 38 | "ListDatabasesRequest", 39 | "ListDatabasesResponse", 40 | "RestoreDatabaseFromBackupRequest", 41 | "UpdateDatabaseRequest", 42 | "ServerlessSqldbV1Alpha1API", 43 | ] 44 | -------------------------------------------------------------------------------- /scaleway/scaleway/serverless_sqldb/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DatabaseStatus, 7 | ) 8 | 9 | DATABASE_TRANSIENT_STATUSES: List[DatabaseStatus] = [ 10 | DatabaseStatus.CREATING, 11 | DatabaseStatus.DELETING, 12 | DatabaseStatus.RESTORING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`DatabaseStatus `. 16 | """ 17 | -------------------------------------------------------------------------------- /scaleway/scaleway/std/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import LanguageCode 4 | 5 | __all__ = [ 6 | "LanguageCode", 7 | ] 8 | -------------------------------------------------------------------------------- /scaleway/scaleway/std/api.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/std/marshalling.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | 4 | 5 | -------------------------------------------------------------------------------- /scaleway/scaleway/std/types.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from __future__ import annotations 4 | 5 | from enum import Enum 6 | 7 | from scaleway_core.utils import ( 8 | StrEnumMeta, 9 | ) 10 | 11 | 12 | class LanguageCode(str, Enum, metaclass=StrEnumMeta): 13 | UNKNOWN_LANGUAGE_CODE = "unknown_language_code" 14 | EN_US = "en_us" 15 | FR_FR = "fr_fr" 16 | DE_DE = "de_de" 17 | 18 | def __str__(self) -> str: 19 | return str(self.value) 20 | -------------------------------------------------------------------------------- /scaleway/scaleway/tem/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/tem/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DomainStatus, 7 | EmailStatus, 8 | ) 9 | 10 | DOMAIN_TRANSIENT_STATUSES: List[DomainStatus] = [ 11 | DomainStatus.PENDING, 12 | DomainStatus.AUTOCONFIGURING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`DomainStatus `. 16 | """ 17 | EMAIL_TRANSIENT_STATUSES: List[EmailStatus] = [ 18 | EmailStatus.NEW, 19 | EmailStatus.SENDING, 20 | ] 21 | """ 22 | Lists transient statutes of the enum :class:`EmailStatus `. 23 | """ 24 | -------------------------------------------------------------------------------- /scaleway/scaleway/test/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/test/v1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import EyeColors 4 | from .types import HumanStatus 5 | from .content import HUMAN_TRANSIENT_STATUSES 6 | from .types import ListHumansRequestOrderBy 7 | from .types import Human 8 | from .types import CreateHumanRequest 9 | from .types import DeleteHumanRequest 10 | from .types import GetHumanRequest 11 | from .types import ListHumansRequest 12 | from .types import ListHumansResponse 13 | from .types import RegisterRequest 14 | from .types import RegisterResponse 15 | from .types import RunHumanRequest 16 | from .types import SmokeHumanRequest 17 | from .types import UpdateHumanRequest 18 | from .api import TestV1API 19 | 20 | __all__ = [ 21 | "EyeColors", 22 | "HumanStatus", 23 | "HUMAN_TRANSIENT_STATUSES", 24 | "ListHumansRequestOrderBy", 25 | "Human", 26 | "CreateHumanRequest", 27 | "DeleteHumanRequest", 28 | "GetHumanRequest", 29 | "ListHumansRequest", 30 | "ListHumansResponse", 31 | "RegisterRequest", 32 | "RegisterResponse", 33 | "RunHumanRequest", 34 | "SmokeHumanRequest", 35 | "UpdateHumanRequest", 36 | "TestV1API", 37 | ] 38 | -------------------------------------------------------------------------------- /scaleway/scaleway/test/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | HumanStatus, 7 | ) 8 | 9 | HUMAN_TRANSIENT_STATUSES: List[HumanStatus] = [ 10 | HumanStatus.RUNNING, 11 | ] 12 | """ 13 | Lists transient statutes of the enum :class:`HumanStatus `. 14 | """ 15 | -------------------------------------------------------------------------------- /scaleway/scaleway/vpc/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/vpc/v1/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from .types import ListPrivateNetworksRequestOrderBy 4 | from .types import PrivateNetwork 5 | from .types import CreatePrivateNetworkRequest 6 | from .types import DeletePrivateNetworkRequest 7 | from .types import GetPrivateNetworkRequest 8 | from .types import ListPrivateNetworksRequest 9 | from .types import ListPrivateNetworksResponse 10 | from .types import UpdatePrivateNetworkRequest 11 | from .api import VpcV1API 12 | 13 | __all__ = [ 14 | "ListPrivateNetworksRequestOrderBy", 15 | "PrivateNetwork", 16 | "CreatePrivateNetworkRequest", 17 | "DeletePrivateNetworkRequest", 18 | "GetPrivateNetworkRequest", 19 | "ListPrivateNetworksRequest", 20 | "ListPrivateNetworksResponse", 21 | "UpdatePrivateNetworkRequest", 22 | "VpcV1API", 23 | ] 24 | -------------------------------------------------------------------------------- /scaleway/scaleway/vpcgw/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/vpcgw/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | GatewayNetworkStatus, 7 | GatewayStatus, 8 | ) 9 | 10 | GATEWAY_NETWORK_TRANSIENT_STATUSES: List[GatewayNetworkStatus] = [ 11 | GatewayNetworkStatus.ATTACHING, 12 | GatewayNetworkStatus.CONFIGURING, 13 | GatewayNetworkStatus.DETACHING, 14 | ] 15 | """ 16 | Lists transient statutes of the enum :class:`GatewayNetworkStatus `. 17 | """ 18 | GATEWAY_TRANSIENT_STATUSES: List[GatewayStatus] = [ 19 | GatewayStatus.ALLOCATING, 20 | GatewayStatus.CONFIGURING, 21 | GatewayStatus.STOPPING, 22 | GatewayStatus.DELETING, 23 | ] 24 | """ 25 | Lists transient statutes of the enum :class:`GatewayStatus `. 26 | """ 27 | -------------------------------------------------------------------------------- /scaleway/scaleway/vpcgw/v2/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | GatewayNetworkStatus, 7 | GatewayStatus, 8 | ) 9 | 10 | GATEWAY_NETWORK_TRANSIENT_STATUSES: List[GatewayNetworkStatus] = [ 11 | GatewayNetworkStatus.ATTACHING, 12 | GatewayNetworkStatus.CONFIGURING, 13 | GatewayNetworkStatus.DETACHING, 14 | ] 15 | """ 16 | Lists transient statutes of the enum :class:`GatewayNetworkStatus `. 17 | """ 18 | GATEWAY_TRANSIENT_STATUSES: List[GatewayStatus] = [ 19 | GatewayStatus.ALLOCATING, 20 | GatewayStatus.CONFIGURING, 21 | GatewayStatus.STOPPING, 22 | GatewayStatus.DELETING, 23 | ] 24 | """ 25 | Lists transient statutes of the enum :class:`GatewayStatus `. 26 | """ 27 | -------------------------------------------------------------------------------- /scaleway/scaleway/webhosting/__init__.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | -------------------------------------------------------------------------------- /scaleway/scaleway/webhosting/v1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | DomainAvailabilityStatus, 7 | DomainStatus, 8 | HostingStatus, 9 | ) 10 | 11 | DOMAIN_AVAILABILITY_TRANSIENT_STATUSES: List[DomainAvailabilityStatus] = [ 12 | DomainAvailabilityStatus.VALIDATING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`DomainAvailabilityStatus `. 16 | """ 17 | DOMAIN_TRANSIENT_STATUSES: List[DomainStatus] = [ 18 | DomainStatus.VALIDATING, 19 | ] 20 | """ 21 | Lists transient statutes of the enum :class:`DomainStatus `. 22 | """ 23 | HOSTING_TRANSIENT_STATUSES: List[HostingStatus] = [ 24 | HostingStatus.DELIVERING, 25 | HostingStatus.DELETING, 26 | HostingStatus.MIGRATING, 27 | ] 28 | """ 29 | Lists transient statutes of the enum :class:`HostingStatus `. 30 | """ 31 | -------------------------------------------------------------------------------- /scaleway/scaleway/webhosting/v1alpha1/content.py: -------------------------------------------------------------------------------- 1 | # This file was automatically generated. DO NOT EDIT. 2 | # If you have any remark or suggestion do not hesitate to open an issue. 3 | from typing import List 4 | 5 | from .types import ( 6 | HostingStatus, 7 | ) 8 | 9 | HOSTING_TRANSIENT_STATUSES: List[HostingStatus] = [ 10 | HostingStatus.DELIVERING, 11 | HostingStatus.DELETING, 12 | HostingStatus.MIGRATING, 13 | ] 14 | """ 15 | Lists transient statutes of the enum :class:`HostingStatus `. 16 | """ 17 | -------------------------------------------------------------------------------- /scaleway/tests/test_total_count_legacy.py: -------------------------------------------------------------------------------- 1 | import logging 2 | import sys 3 | import unittest 4 | from scaleway_core.client import Client 5 | from scaleway.instance.v1 import InstanceV1API 6 | 7 | logger = logging.getLogger() 8 | logger.level = logging.DEBUG 9 | stream_handler = logging.StreamHandler(sys.stdout) 10 | logger.addHandler(stream_handler) 11 | 12 | 13 | class TestTotalCountLegacy(unittest.TestCase): 14 | def setUp(self) -> None: 15 | self.client = Client() 16 | self.instance_api = InstanceV1API(self.client, bypass_validation=True) 17 | 18 | def test_list_servers_type(self): 19 | list_server_type = self.instance_api.list_servers_types(zone="fr-par-1") 20 | self.assertIsNotNone(list_server_type.total_count) 21 | -------------------------------------------------------------------------------- /scaleway/tests/utils.py: -------------------------------------------------------------------------------- 1 | import random 2 | import uuid 3 | from datetime import datetime 4 | from typing import Union 5 | 6 | from scaleway_core.profile import ProfileDefaults 7 | 8 | system_random = random.SystemRandom() 9 | 10 | 11 | def random_name() -> str: 12 | return "test-{}".format(uuid.uuid4().hex) 13 | 14 | 15 | def random_access_key() -> str: 16 | return "SCW" + "".join( 17 | system_random.choices("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", k=16) 18 | ) 19 | 20 | 21 | def string_to_datetime(date: str) -> datetime: 22 | return datetime.strptime(date, "%Y-%m-%dT%H:%M:%SZ") 23 | 24 | 25 | def random_date(min: Union[str, datetime], max: Union[str, datetime]) -> datetime: 26 | min_time = min if isinstance(min, datetime) else string_to_datetime(min) 27 | max_time = max if isinstance(max, datetime) else string_to_datetime(max) 28 | 29 | random_time = min_time + system_random.random() * (max_time - min_time) 30 | return random_time 31 | 32 | 33 | def datetime_to_string(date: datetime) -> str: 34 | return date.strftime("%Y-%m-%dT%H:%M:%SZ") 35 | 36 | 37 | def random_date_string(min: str, max: str) -> str: 38 | return datetime_to_string(random_date(min, max)) 39 | 40 | 41 | def random_profile_defaults() -> ProfileDefaults: 42 | return ProfileDefaults( 43 | default_organization_id=uuid.uuid4().hex, 44 | default_project_id=uuid.uuid4().hex, 45 | ) 46 | --------------------------------------------------------------------------------