Skip to main content

Generated openapi models for Argo objects.

Project description

argo-models

Build Status PyPI version Downloads

argo-models is a argo namespaced package with the argo.models subpackage which contains the generated OpenAPI models from Argo.

Documentations can be found at https://argo-models.readthedocs.io/en/latest/

pip install argo-models
from argo.models import V1alpha1ArtifactLocation, V1alpha1S3Artifact
from kubernetes.client.models import V1SecretKeySelector

# create aws cred
access_key_secret = V1SecretKeySelector(name="s3_secret", key="accesskey")
secret_key_secret = V1SecretKeySelector(name="s3_secret", key="secretkey")

# create artifact config for s3
s3_artifact = V1alpha1S3Artifact(
    bucket="foobar",
    endpoint="s3.amazonaws.com"
    insecure=False,
    access_key_secret=access_key_secret,
    secret_key_secret=secret_key_secret,
    key=""
)

# create artifact location
artifact_location = V1alpha1ArtifactLocation(s3=s3_artifact)

Developer notes

To generate the latest models, update version.txt with the desired argo release (e.g. 2.3.0-rc3) and then run ./generate-api.sh.

To release new version to pypi, create a release with the corresponding version tag (e.g. v2.2.1). Travis will automatically publish the package.

NOTE:

version.txt should hold the current/latest argo version to be generated, as it is also used by setup.py as the argo-models package version.

Please install @openapitools/openapi-generator-cli to generate the openapi specs.

License

This package is licensed under Apache-2.0 and is a derivative of the Argo project using OpenAPI generator.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

argo-models-2.4.3.post0.tar.gz (63.1 kB view details)

Uploaded Source

File details

Details for the file argo-models-2.4.3.post0.tar.gz.

File metadata

  • Download URL: argo-models-2.4.3.post0.tar.gz
  • Upload date:
  • Size: 63.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.7

File hashes

Hashes for argo-models-2.4.3.post0.tar.gz
Algorithm Hash digest
SHA256 8114de8269217662ab33d3b87b5fcde73cc371ee4a6cbace5c5e8b91e42bb99f
MD5 6f178d4c832daf3d625839df8cddbd42
BLAKE2b-256 cb9a2b84537f9aa53dcd0f9e34c1a279b37ab8062c89507f47ea2e5e07d293ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page