Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
chore: upgrade openapi-generator to latest release (v7.4.0) (#88)
Browse files Browse the repository at this point in the history
This updates the Makefile to stitch the API spec and generate the SDK
code using the latest release of openapi-generator. Among other things,
this fixes an issue where openapi-generator would occasionally add extra
values to `enum` properties nested under `oneOf` schemas.
  • Loading branch information
ctreatma authored Mar 13, 2024
1 parent 23e95c3 commit 9ecb4ac
Show file tree
Hide file tree
Showing 885 changed files with 70,598 additions and 36,547 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ VERSION_FILE=version
PACKAGE_VERSION := $(shell cat ${VERSION_FILE})

SPEC_PATCHED_FILE=./metal_openapi.fixed.yaml
OPENAPI_CODEGEN_TAG=v7.0.0
OPENAPI_CODEGEN_TAG=v7.4.0
OPENAPI_CODEGEN_IMAGE=openapitools/openapi-generator-cli:${OPENAPI_CODEGEN_TAG}
CURRENT_UID := $(shell id -u)
CURRENT_GID := $(shell id -g)
Expand Down
2 changes: 1 addition & 1 deletion equinix_metal/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.0
7.4.0
2 changes: 1 addition & 1 deletion equinix_metal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:

- API version: 1.0.0
- Package version: 0.8.0
- Generator version: 7.4.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -131,7 +132,6 @@ Please follow the [installation procedure](#installation--usage) and then run th

```python

import time
import equinix_metal
from equinix_metal.rest import ApiException
from pprint import pprint
Expand Down
3 changes: 2 additions & 1 deletion equinix_metal/docs/AWSFabricProvider.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**account_id** | **str** | AWS Account ID |
Expand All @@ -19,7 +20,7 @@ json = "{}"
# create an instance of AWSFabricProvider from a JSON string
aws_fabric_provider_instance = AWSFabricProvider.from_json(json)
# print the JSON string representation of the object
print AWSFabricProvider.to_json()
print(AWSFabricProvider.to_json())

# convert the object into a dict
aws_fabric_provider_dict = aws_fabric_provider_instance.to_dict()
Expand Down
3 changes: 2 additions & 1 deletion equinix_metal/docs/ActivateHardwareReservationRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**description** | **str** | | [optional]
Expand All @@ -17,7 +18,7 @@ json = "{}"
# create an instance of ActivateHardwareReservationRequest from a JSON string
activate_hardware_reservation_request_instance = ActivateHardwareReservationRequest.from_json(json)
# print the JSON string representation of the object
print ActivateHardwareReservationRequest.to_json()
print(ActivateHardwareReservationRequest.to_json())

# convert the object into a dict
activate_hardware_reservation_request_dict = activate_hardware_reservation_request_instance.to_dict()
Expand Down
3 changes: 2 additions & 1 deletion equinix_metal/docs/Address.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**address** | **str** | | [optional]
Expand All @@ -23,7 +24,7 @@ json = "{}"
# create an instance of Address from a JSON string
address_instance = Address.from_json(json)
# print the JSON string representation of the object
print Address.to_json()
print(Address.to_json())

# convert the object into a dict
address_dict = address_instance.to_dict()
Expand Down
3 changes: 2 additions & 1 deletion equinix_metal/docs/Attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**created_at** | **datetime** | Datetime when the block was created. | [optional] [readonly]
Expand All @@ -20,7 +21,7 @@ json = "{}"
# create an instance of Attribute from a JSON string
attribute_instance = Attribute.from_json(json)
# print the JSON string representation of the object
print Attribute.to_json()
print(Attribute.to_json())

# convert the object into a dict
attribute_dict = attribute_instance.to_dict()
Expand Down
3 changes: 2 additions & 1 deletion equinix_metal/docs/AttributeData.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**href** | **str** | | [optional]
Expand All @@ -20,7 +21,7 @@ json = "{}"
# create an instance of AttributeData from a JSON string
attribute_data_instance = AttributeData.from_json(json)
# print the JSON string representation of the object
print AttributeData.to_json()
print(AttributeData.to_json())

# convert the object into a dict
attribute_data_dict = attribute_data_instance.to_dict()
Expand Down
3 changes: 2 additions & 1 deletion equinix_metal/docs/AuthToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**created_at** | **datetime** | | [optional]
Expand All @@ -24,7 +25,7 @@ json = "{}"
# create an instance of AuthToken from a JSON string
auth_token_instance = AuthToken.from_json(json)
# print the JSON string representation of the object
print AuthToken.to_json()
print(AuthToken.to_json())

# convert the object into a dict
auth_token_dict = auth_token_instance.to_dict()
Expand Down
3 changes: 2 additions & 1 deletion equinix_metal/docs/AuthTokenInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**description** | **str** | | [optional]
Expand All @@ -18,7 +19,7 @@ json = "{}"
# create an instance of AuthTokenInput from a JSON string
auth_token_input_instance = AuthTokenInput.from_json(json)
# print the JSON string representation of the object
print AuthTokenInput.to_json()
print(AuthTokenInput.to_json())

# convert the object into a dict
auth_token_input_dict = auth_token_input_instance.to_dict()
Expand Down
3 changes: 2 additions & 1 deletion equinix_metal/docs/AuthTokenList.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**api_keys** | [**List[AuthToken]**](AuthToken.md) | | [optional]
Expand All @@ -17,7 +18,7 @@ json = "{}"
# create an instance of AuthTokenList from a JSON string
auth_token_list_instance = AuthTokenList.from_json(json)
# print the JSON string representation of the object
print AuthTokenList.to_json()
print(AuthTokenList.to_json())

# convert the object into a dict
auth_token_list_dict = auth_token_list_instance.to_dict()
Expand Down
3 changes: 2 additions & 1 deletion equinix_metal/docs/AuthTokenProject.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**backend_transfer_enabled** | **bool** | | [optional]
Expand Down Expand Up @@ -35,7 +36,7 @@ json = "{}"
# create an instance of AuthTokenProject from a JSON string
auth_token_project_instance = AuthTokenProject.from_json(json)
# print the JSON string representation of the object
print AuthTokenProject.to_json()
print(AuthTokenProject.to_json())

# convert the object into a dict
auth_token_project_dict = auth_token_project_instance.to_dict()
Expand Down
3 changes: 2 additions & 1 deletion equinix_metal/docs/AuthTokenUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**avatar_thumb_url** | **str** | | [optional]
Expand Down Expand Up @@ -37,7 +38,7 @@ json = "{}"
# create an instance of AuthTokenUser from a JSON string
auth_token_user_instance = AuthTokenUser.from_json(json)
# print the JSON string representation of the object
print AuthTokenUser.to_json()
print(AuthTokenUser.to_json())

# convert the object into a dict
auth_token_user_dict = auth_token_user_instance.to_dict()
Expand Down
Loading

0 comments on commit 9ecb4ac

Please sign in to comment.