Skip to content

Commit

Permalink
API-Update: Add product_name to InstanceResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Nov 15, 2023
1 parent b3ccb2f commit 3d40746
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/InstanceResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Name | Type | Description | Notes
**v_host_id** | **int** | ID of host system |
**add_ons** | [**[AddOnResponse]**](AddOnResponse.md) | |
**product_type** | **str** | Instance's category depending on Product Id |
**product_name** | **str** | Instance's Product Name |
**error_message** | **str** | Message in case of an error. | [optional]
**default_user** | **str** | Default user name created for login during (re-)installation with administrative privileges. Allowed values for Linux/BSD are `admin` (use sudo to apply administrative privileges like root) or `root`. Allowed values for Windows are `admin` (has administrative privileges like administrator) or `administrator`. | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/ListInstancesResponseData.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Name | Type | Description | Notes
**v_host_id** | **int** | ID of host system |
**add_ons** | [**[AddOnResponse]**](AddOnResponse.md) | |
**product_type** | **str** | Instance's category depending on Product Id |
**product_name** | **str** | Instance's Product Name |
**error_message** | **str** | Message in case of an error. | [optional]
**default_user** | **str** | Default user name created for login during (re-)installation with administrative privileges. Allowed values for Linux/BSD are `admin` (use sudo to apply administrative privileges like root) or `root`. Allowed values for Windows are `admin` (has administrative privileges like administrator) or `administrator`. | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
Expand Down
10 changes: 8 additions & 2 deletions pfruck_contabo/model/instance_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def openapi_types():
'v_host_id': (int,), # noqa: E501
'add_ons': ([AddOnResponse],), # noqa: E501
'product_type': (str,), # noqa: E501
'product_name': (str,), # noqa: E501
'error_message': (str,), # noqa: E501
'default_user': (str,), # noqa: E501
}
Expand Down Expand Up @@ -179,6 +180,7 @@ def discriminator():
'v_host_id': 'vHostId', # noqa: E501
'add_ons': 'addOns', # noqa: E501
'product_type': 'productType', # noqa: E501
'product_name': 'productName', # noqa: E501
'error_message': 'errorMessage', # noqa: E501
'default_user': 'defaultUser', # noqa: E501
}
Expand All @@ -190,7 +192,7 @@ def discriminator():

@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, tenant_id, customer_id, additional_ips, name, display_name, instance_id, data_center, region, region_name, product_id, image_id, ip_config, mac_address, ram_mb, cpu_cores, os_type, disk_mb, ssh_keys, created_date, cancel_date, status, v_host_id, add_ons, product_type, *args, **kwargs): # noqa: E501
def _from_openapi_data(cls, tenant_id, customer_id, additional_ips, name, display_name, instance_id, data_center, region, region_name, product_id, image_id, ip_config, mac_address, ram_mb, cpu_cores, os_type, disk_mb, ssh_keys, created_date, cancel_date, status, v_host_id, add_ons, product_type, product_name, *args, **kwargs): # noqa: E501
"""InstanceResponse - a model defined in OpenAPI
Args:
Expand Down Expand Up @@ -218,6 +220,7 @@ def _from_openapi_data(cls, tenant_id, customer_id, additional_ips, name, displa
v_host_id (int): ID of host system
add_ons ([AddOnResponse]):
product_type (str): Instance's category depending on Product Id
product_name (str): Instance's Product Name
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
Expand Down Expand Up @@ -307,6 +310,7 @@ def _from_openapi_data(cls, tenant_id, customer_id, additional_ips, name, displa
self.v_host_id = v_host_id
self.add_ons = add_ons
self.product_type = product_type
self.product_name = product_name
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
Expand All @@ -327,7 +331,7 @@ def _from_openapi_data(cls, tenant_id, customer_id, additional_ips, name, displa
])

@convert_js_args_to_python_args
def __init__(self, tenant_id, customer_id, additional_ips, name, display_name, instance_id, data_center, region, region_name, product_id, image_id, ip_config, mac_address, ram_mb, cpu_cores, os_type, disk_mb, ssh_keys, created_date, cancel_date, status, v_host_id, add_ons, product_type, *args, **kwargs): # noqa: E501
def __init__(self, tenant_id, customer_id, additional_ips, name, display_name, instance_id, data_center, region, region_name, product_id, image_id, ip_config, mac_address, ram_mb, cpu_cores, os_type, disk_mb, ssh_keys, created_date, cancel_date, status, v_host_id, add_ons, product_type, product_name, *args, **kwargs): # noqa: E501
"""InstanceResponse - a model defined in OpenAPI
Args:
Expand Down Expand Up @@ -355,6 +359,7 @@ def __init__(self, tenant_id, customer_id, additional_ips, name, display_name, i
v_host_id (int): ID of host system
add_ons ([AddOnResponse]):
product_type (str): Instance's category depending on Product Id
product_name (str): Instance's Product Name
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
Expand Down Expand Up @@ -442,6 +447,7 @@ def __init__(self, tenant_id, customer_id, additional_ips, name, display_name, i
self.v_host_id = v_host_id
self.add_ons = add_ons
self.product_type = product_type
self.product_name = product_name
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
Expand Down
10 changes: 8 additions & 2 deletions pfruck_contabo/model/list_instances_response_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def openapi_types():
'v_host_id': (int,), # noqa: E501
'add_ons': ([AddOnResponse],), # noqa: E501
'product_type': (str,), # noqa: E501
'product_name': (str,), # noqa: E501
'error_message': (str,), # noqa: E501
'default_user': (str,), # noqa: E501
}
Expand Down Expand Up @@ -179,6 +180,7 @@ def discriminator():
'v_host_id': 'vHostId', # noqa: E501
'add_ons': 'addOns', # noqa: E501
'product_type': 'productType', # noqa: E501
'product_name': 'productName', # noqa: E501
'error_message': 'errorMessage', # noqa: E501
'default_user': 'defaultUser', # noqa: E501
}
Expand All @@ -190,7 +192,7 @@ def discriminator():

@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, tenant_id, customer_id, additional_ips, name, display_name, instance_id, data_center, region, region_name, product_id, image_id, ip_config, mac_address, ram_mb, cpu_cores, os_type, disk_mb, ssh_keys, created_date, cancel_date, status, v_host_id, add_ons, product_type, *args, **kwargs): # noqa: E501
def _from_openapi_data(cls, tenant_id, customer_id, additional_ips, name, display_name, instance_id, data_center, region, region_name, product_id, image_id, ip_config, mac_address, ram_mb, cpu_cores, os_type, disk_mb, ssh_keys, created_date, cancel_date, status, v_host_id, add_ons, product_type, product_name, *args, **kwargs): # noqa: E501
"""ListInstancesResponseData - a model defined in OpenAPI
Args:
Expand Down Expand Up @@ -218,6 +220,7 @@ def _from_openapi_data(cls, tenant_id, customer_id, additional_ips, name, displa
v_host_id (int): ID of host system
add_ons ([AddOnResponse]):
product_type (str): Instance's category depending on Product Id
product_name (str): Instance's Product Name
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
Expand Down Expand Up @@ -307,6 +310,7 @@ def _from_openapi_data(cls, tenant_id, customer_id, additional_ips, name, displa
self.v_host_id = v_host_id
self.add_ons = add_ons
self.product_type = product_type
self.product_name = product_name
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
Expand All @@ -327,7 +331,7 @@ def _from_openapi_data(cls, tenant_id, customer_id, additional_ips, name, displa
])

@convert_js_args_to_python_args
def __init__(self, tenant_id, customer_id, additional_ips, name, display_name, instance_id, data_center, region, region_name, product_id, image_id, ip_config, mac_address, ram_mb, cpu_cores, os_type, disk_mb, ssh_keys, created_date, cancel_date, status, v_host_id, add_ons, product_type, *args, **kwargs): # noqa: E501
def __init__(self, tenant_id, customer_id, additional_ips, name, display_name, instance_id, data_center, region, region_name, product_id, image_id, ip_config, mac_address, ram_mb, cpu_cores, os_type, disk_mb, ssh_keys, created_date, cancel_date, status, v_host_id, add_ons, product_type, product_name, *args, **kwargs): # noqa: E501
"""ListInstancesResponseData - a model defined in OpenAPI
Args:
Expand Down Expand Up @@ -355,6 +359,7 @@ def __init__(self, tenant_id, customer_id, additional_ips, name, display_name, i
v_host_id (int): ID of host system
add_ons ([AddOnResponse]):
product_type (str): Instance's category depending on Product Id
product_name (str): Instance's Product Name
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
Expand Down Expand Up @@ -442,6 +447,7 @@ def __init__(self, tenant_id, customer_id, additional_ips, name, display_name, i
self.v_host_id = v_host_id
self.add_ons = add_ons
self.product_type = product_type
self.product_name = product_name
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
Expand Down

0 comments on commit 3d40746

Please sign in to comment.