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

chore: upgrade openapi-generator to latest release (v7.4.0) #88

Merged
merged 6 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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
18 changes: 6 additions & 12 deletions equinix_metal/docs/AuthenticationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ Creates a API key for the current user.
### Example

* Api Key Authentication (x_auth_token):

```python
import time
import os
import equinix_metal
from equinix_metal.models.auth_token import AuthToken
from equinix_metal.models.auth_token_input import AuthTokenInput
Expand Down Expand Up @@ -106,9 +105,8 @@ Creates an API key for a project.
### Example

* Api Key Authentication (x_auth_token):

```python
import time
import os
import equinix_metal
from equinix_metal.models.auth_token import AuthToken
from equinix_metal.models.auth_token_input import AuthTokenInput
Expand Down Expand Up @@ -192,9 +190,8 @@ Deletes the API key.
### Example

* Api Key Authentication (x_auth_token):

```python
import time
import os
import equinix_metal
from equinix_metal.rest import ApiException
from pprint import pprint
Expand Down Expand Up @@ -269,9 +266,8 @@ Deletes the current user API key.
### Example

* Api Key Authentication (x_auth_token):

```python
import time
import os
import equinix_metal
from equinix_metal.rest import ApiException
from pprint import pprint
Expand Down Expand Up @@ -346,9 +342,8 @@ Returns all API keys for the current user.
### Example

* Api Key Authentication (x_auth_token):

```python
import time
import os
import equinix_metal
from equinix_metal.models.auth_token_list import AuthTokenList
from equinix_metal.rest import ApiException
Expand Down Expand Up @@ -428,9 +423,8 @@ Returns all API keys for a specific project.
### Example

* Api Key Authentication (x_auth_token):

```python
import time
import os
import equinix_metal
from equinix_metal.models.auth_token_list import AuthTokenList
from equinix_metal.rest import ApiException
Expand Down
21 changes: 7 additions & 14 deletions equinix_metal/docs/BGPApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ Deletes the BGP session.
### Example

* Api Key Authentication (x_auth_token):

```python
import time
import os
import equinix_metal
from equinix_metal.rest import ApiException
from pprint import pprint
Expand Down Expand Up @@ -101,9 +100,8 @@ Returns a bgp config
### Example

* Api Key Authentication (x_auth_token):

```python
import time
import os
import equinix_metal
from equinix_metal.models.bgp_config import BgpConfig
from equinix_metal.rest import ApiException
Expand Down Expand Up @@ -184,9 +182,8 @@ Returns a BGP session
### Example

* Api Key Authentication (x_auth_token):

```python
import time
import os
import equinix_metal
from equinix_metal.models.bgp_session import BgpSession
from equinix_metal.rest import ApiException
Expand Down Expand Up @@ -267,9 +264,8 @@ Returns all global bgp ranges for a project
### Example

* Api Key Authentication (x_auth_token):

```python
import time
import os
import equinix_metal
from equinix_metal.models.global_bgp_range_list import GlobalBgpRangeList
from equinix_metal.rest import ApiException
Expand Down Expand Up @@ -348,9 +344,8 @@ Provides a listing of available BGP sessions for the project.
### Example

* Api Key Authentication (x_auth_token):

```python
import time
import os
import equinix_metal
from equinix_metal.models.bgp_session_list import BgpSessionList
from equinix_metal.rest import ApiException
Expand Down Expand Up @@ -428,9 +423,8 @@ Requests to enable bgp configuration for a project.
### Example

* Api Key Authentication (x_auth_token):

```python
import time
import os
import equinix_metal
from equinix_metal.models.bgp_config_request_input import BgpConfigRequestInput
from equinix_metal.rest import ApiException
Expand Down Expand Up @@ -512,9 +506,8 @@ Updates the BGP session by either enabling or disabling the default route functi
### Example

* Api Key Authentication (x_auth_token):

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


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**address_family** | **str** | Address family for BGP session. | [optional]
Expand All @@ -18,7 +19,7 @@ json = "{}"
# create an instance of BGPSessionInput from a JSON string
bgp_session_input_instance = BGPSessionInput.from_json(json)
# print the JSON string representation of the object
print BGPSessionInput.to_json()
print(BGPSessionInput.to_json())

# convert the object into a dict
bgp_session_input_dict = bgp_session_input_instance.to_dict()
Expand Down
3 changes: 2 additions & 1 deletion equinix_metal/docs/Batch.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 Batch from a JSON string
batch_instance = Batch.from_json(json)
# print the JSON string representation of the object
print Batch.to_json()
print(Batch.to_json())

# convert the object into a dict
batch_dict = batch_instance.to_dict()
Expand Down
Loading
Loading