Skip to content

Commit

Permalink
ci: Automated generate push
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Apr 15, 2020
1 parent 8f18978 commit 5d0ebdd
Show file tree
Hide file tree
Showing 91 changed files with 445 additions and 256 deletions.
33 changes: 33 additions & 0 deletions v1/generated/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# ref: https://docs.gitlab.com/ee/ci/README.html

stages:
- test

.nosetest:
stage: test
script:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pytest --cov=carbon3d

nosetest-2.7:
extends: .nosetest
image: python:2.7-alpine
nosetest-3.3:
extends: .nosetest
image: python:3.3-alpine
nosetest-3.4:
extends: .nosetest
image: python:3.4-alpine
nosetest-3.5:
extends: .nosetest
image: python:3.5-alpine
nosetest-3.6:
extends: .nosetest
image: python:3.6-alpine
nosetest-3.7:
extends: .nosetest
image: python:3.7-alpine
nosetest-3.8:
extends: .nosetest
image: python:3.8-alpine
2 changes: 1 addition & 1 deletion v1/generated/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.2.3
4.3.0
6 changes: 4 additions & 2 deletions v1/generated/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ python:
- "3.7"
- "3.8"
# command to install dependencies
install: "pip install -r requirements.txt"
install:
- "pip install -r requirements.txt"
- "pip install -r test-requirements.txt"
# command to run tests
script: nosetests
script: pytest --cov=carbon3d
7 changes: 5 additions & 2 deletions v1/generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ This API also provides a programmatic interface to access [printer](#/Printers)

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.0.3
- Package version: 0.0.3
- API version: 0.0.4
- Package version: 0.0.4
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://www.carbon3d.com](https://www.carbon3d.com)

Expand Down Expand Up @@ -81,6 +81,9 @@ configuration = carbon3d.Configuration()
# Configure Bearer authorization (JWT): bearerAuth
configuration.access_token = 'YOUR_BEARER_TOKEN'

# Defining host is optional and default to https://api.carbon3d.com/v1
configuration.host = "https://api.carbon3d.com/v1"

# Defining host is optional and default to https://api.carbon3d.com/v1
configuration.host = "https://api.carbon3d.com/v1"
# Enter a context with an instance of the API client
Expand Down
4 changes: 2 additions & 2 deletions v1/generated/carbon3d/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
Welcome to the Carbon DLS API docs! A Carbon DLS API token ([JWT](https://en.wikipedia.org/wiki/JSON_Web_Token)) must be included with each request to the API. Steps to create API tokens: - Create and download an API key [here](https://print.carbon3d.com/api_keys) - For testing: Generate JWT tokens using the [token generator](/token_generator) - For production: Generate JWT tokens dynamically (<em>see authtoken-create.py example</em>) - A valid Carbon API token must be included as <code>Authorization: Bearer [token]</code> HTTP header. This API provides a programmatic interface for submitting part (and soon build) orders. The general process for creating an order is as follows: - Upload model files to the API with the [/models](#/Models) endpoint - Create parts that reference a model and a part number with the [/parts](#/Parts) endpoint - Part numbers can be created [here](https://print.carbon3d.com/catalog_parts) - Create an order with the [/orders](#/Orders) endpoint Uploaded models, parts and orders can be retrieved either in bulk or by UUID at the [/models](#/Models), [/parts](#/Parts) and [/orders](#/Orders) endpoints, respectively. Once a part order is submitted, automatic packing will create one or more builds (for mass-customization applications only). Builds can be retrieved either in bulk or by UUID at the [/builds](#/Builds) endpoint. - Build attachments (traveler, slice video) can be retrieved by UUID at the [/attachments](#/Attachments) endpoint. This API also provides a programmatic interface to access [printer](#/Printers) (fleet) status and query for [prints](#/Prints). # noqa: E501
The version of the OpenAPI document: 0.0.3
The version of the OpenAPI document: 0.0.4
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

__version__ = "0.0.3"
__version__ = "0.0.4"

# import apis into sdk package
from carbon3d.api.attachments_api import AttachmentsApi
Expand Down
20 changes: 13 additions & 7 deletions v1/generated/carbon3d/api/attachments_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Welcome to the Carbon DLS API docs! A Carbon DLS API token ([JWT](https://en.wikipedia.org/wiki/JSON_Web_Token)) must be included with each request to the API. Steps to create API tokens: - Create and download an API key [here](https://print.carbon3d.com/api_keys) - For testing: Generate JWT tokens using the [token generator](/token_generator) - For production: Generate JWT tokens dynamically (<em>see authtoken-create.py example</em>) - A valid Carbon API token must be included as <code>Authorization: Bearer [token]</code> HTTP header. This API provides a programmatic interface for submitting part (and soon build) orders. The general process for creating an order is as follows: - Upload model files to the API with the [/models](#/Models) endpoint - Create parts that reference a model and a part number with the [/parts](#/Parts) endpoint - Part numbers can be created [here](https://print.carbon3d.com/catalog_parts) - Create an order with the [/orders](#/Orders) endpoint Uploaded models, parts and orders can be retrieved either in bulk or by UUID at the [/models](#/Models), [/parts](#/Parts) and [/orders](#/Orders) endpoints, respectively. Once a part order is submitted, automatic packing will create one or more builds (for mass-customization applications only). Builds can be retrieved either in bulk or by UUID at the [/builds](#/Builds) endpoint. - Build attachments (traveler, slice video) can be retrieved by UUID at the [/attachments](#/Attachments) endpoint. This API also provides a programmatic interface to access [printer](#/Printers) (fleet) status and query for [prints](#/Prints). # noqa: E501
The version of the OpenAPI document: 0.0.3
The version of the OpenAPI document: 0.0.4
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand All @@ -19,7 +19,7 @@
import six

from carbon3d.api_client import ApiClient
from carbon3d.exceptions import (
from carbon3d.exceptions import ( # noqa: F401
ApiTypeError,
ApiValueError
)
Expand Down Expand Up @@ -89,11 +89,17 @@ def get_attachment_with_http_info(self, uuid, **kwargs): # noqa: E501

local_var_params = locals()

all_params = ['uuid'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'uuid'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down
38 changes: 26 additions & 12 deletions v1/generated/carbon3d/api/builds_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Welcome to the Carbon DLS API docs! A Carbon DLS API token ([JWT](https://en.wikipedia.org/wiki/JSON_Web_Token)) must be included with each request to the API. Steps to create API tokens: - Create and download an API key [here](https://print.carbon3d.com/api_keys) - For testing: Generate JWT tokens using the [token generator](/token_generator) - For production: Generate JWT tokens dynamically (<em>see authtoken-create.py example</em>) - A valid Carbon API token must be included as <code>Authorization: Bearer [token]</code> HTTP header. This API provides a programmatic interface for submitting part (and soon build) orders. The general process for creating an order is as follows: - Upload model files to the API with the [/models](#/Models) endpoint - Create parts that reference a model and a part number with the [/parts](#/Parts) endpoint - Part numbers can be created [here](https://print.carbon3d.com/catalog_parts) - Create an order with the [/orders](#/Orders) endpoint Uploaded models, parts and orders can be retrieved either in bulk or by UUID at the [/models](#/Models), [/parts](#/Parts) and [/orders](#/Orders) endpoints, respectively. Once a part order is submitted, automatic packing will create one or more builds (for mass-customization applications only). Builds can be retrieved either in bulk or by UUID at the [/builds](#/Builds) endpoint. - Build attachments (traveler, slice video) can be retrieved by UUID at the [/attachments](#/Attachments) endpoint. This API also provides a programmatic interface to access [printer](#/Printers) (fleet) status and query for [prints](#/Prints). # noqa: E501
The version of the OpenAPI document: 0.0.3
The version of the OpenAPI document: 0.0.4
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand All @@ -19,7 +19,7 @@
import six

from carbon3d.api_client import ApiClient
from carbon3d.exceptions import (
from carbon3d.exceptions import ( # noqa: F401
ApiTypeError,
ApiValueError
)
Expand Down Expand Up @@ -89,11 +89,17 @@ def get_build_with_http_info(self, uuid, **kwargs): # noqa: E501

local_var_params = locals()

all_params = ['uuid'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'uuid'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down Expand Up @@ -201,11 +207,19 @@ def get_builds_with_http_info(self, limit, offset, **kwargs): # noqa: E501

local_var_params = locals()

all_params = ['limit', 'offset', 'sort'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'limit',
'offset',
'sort'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down
57 changes: 40 additions & 17 deletions v1/generated/carbon3d/api/models_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Welcome to the Carbon DLS API docs! A Carbon DLS API token ([JWT](https://en.wikipedia.org/wiki/JSON_Web_Token)) must be included with each request to the API. Steps to create API tokens: - Create and download an API key [here](https://print.carbon3d.com/api_keys) - For testing: Generate JWT tokens using the [token generator](/token_generator) - For production: Generate JWT tokens dynamically (<em>see authtoken-create.py example</em>) - A valid Carbon API token must be included as <code>Authorization: Bearer [token]</code> HTTP header. This API provides a programmatic interface for submitting part (and soon build) orders. The general process for creating an order is as follows: - Upload model files to the API with the [/models](#/Models) endpoint - Create parts that reference a model and a part number with the [/parts](#/Parts) endpoint - Part numbers can be created [here](https://print.carbon3d.com/catalog_parts) - Create an order with the [/orders](#/Orders) endpoint Uploaded models, parts and orders can be retrieved either in bulk or by UUID at the [/models](#/Models), [/parts](#/Parts) and [/orders](#/Orders) endpoints, respectively. Once a part order is submitted, automatic packing will create one or more builds (for mass-customization applications only). Builds can be retrieved either in bulk or by UUID at the [/builds](#/Builds) endpoint. - Build attachments (traveler, slice video) can be retrieved by UUID at the [/attachments](#/Attachments) endpoint. This API also provides a programmatic interface to access [printer](#/Printers) (fleet) status and query for [prints](#/Prints). # noqa: E501
The version of the OpenAPI document: 0.0.3
The version of the OpenAPI document: 0.0.4
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand All @@ -19,7 +19,7 @@
import six

from carbon3d.api_client import ApiClient
from carbon3d.exceptions import (
from carbon3d.exceptions import ( # noqa: F401
ApiTypeError,
ApiValueError
)
Expand Down Expand Up @@ -89,11 +89,17 @@ def get_model_with_http_info(self, uuid, **kwargs): # noqa: E501

local_var_params = locals()

all_params = ['uuid'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'uuid'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down Expand Up @@ -203,11 +209,20 @@ def get_models_with_http_info(self, limit, offset, **kwargs): # noqa: E501

local_var_params = locals()

all_params = ['limit', 'offset', 'filename', 'sort'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'limit',
'offset',
'filename',
'sort'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down Expand Up @@ -332,11 +347,19 @@ def upload_model_with_http_info(self, filename, **kwargs): # noqa: E501

local_var_params = locals()

all_params = ['filename', 'application_id', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
all_params = [
'filename',
'application_id',
'body'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
Expand Down
Loading

0 comments on commit 5d0ebdd

Please sign in to comment.