Skip to content

Commit

Permalink
Merge pull request #55 from p-fruck/actions/auto-update-1651515821
Browse files Browse the repository at this point in the history
API-Update: Add instance_ids to PrivateNetworksApi
  • Loading branch information
p-fruck authored May 2, 2022
2 parents 21deb6b + b7f9680 commit c3abd36
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/PrivateNetworksApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ with pfruck_contabo.ApiClient(configuration) as api_client:
"name:asc",
] # [str] | Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC|DESC`. (optional)
name = "VPN" # str | The name of the virtual private network (optional)
instance_ids = "100, 101, 102" # str | Comma separated instances identifiers (optional)

# example passing only required values which don't have defaults set
try:
Expand All @@ -531,7 +532,7 @@ with pfruck_contabo.ApiClient(configuration) as api_client:
# and optional values
try:
# List private networks
api_response = api_instance.retrieve_private_network_list(x_request_id, x_trace_id=x_trace_id, page=page, size=size, order_by=order_by, name=name)
api_response = api_instance.retrieve_private_network_list(x_request_id, x_trace_id=x_trace_id, page=page, size=size, order_by=order_by, name=name, instance_ids=instance_ids)
pprint(api_response)
except pfruck_contabo.ApiException as e:
print("Exception when calling PrivateNetworksApi->retrieve_private_network_list: %s\n" % e)
Expand All @@ -548,6 +549,7 @@ Name | Type | Description | Notes
**size** | **int**| Number of elements per page. | [optional]
**order_by** | **[str]**| Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC|DESC`. | [optional]
**name** | **str**| The name of the virtual private network | [optional]
**instance_ids** | **str**| Comma separated instances identifiers | [optional]

### Return type

Expand Down
6 changes: 6 additions & 0 deletions pfruck_contabo/api/private_networks_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ def __init__(self, api_client=None):
'size',
'order_by',
'name',
'instance_ids',
],
'required': [
'x_request_id',
Expand Down Expand Up @@ -454,6 +455,8 @@ def __init__(self, api_client=None):
([str],),
'name':
(str,),
'instance_ids':
(str,),
},
'attribute_map': {
'x_request_id': 'x-request-id',
Expand All @@ -462,6 +465,7 @@ def __init__(self, api_client=None):
'size': 'size',
'order_by': 'orderBy',
'name': 'name',
'instance_ids': 'instanceIds',
},
'location_map': {
'x_request_id': 'header',
Expand All @@ -470,6 +474,7 @@ def __init__(self, api_client=None):
'size': 'query',
'order_by': 'query',
'name': 'query',
'instance_ids': 'query',
},
'collection_format_map': {
'order_by': 'multi',
Expand Down Expand Up @@ -1030,6 +1035,7 @@ def retrieve_private_network_list(
size (int): Number of elements per page.. [optional]
order_by ([str]): Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC|DESC`.. [optional]
name (str): The name of the virtual private network. [optional]
instance_ids (str): Comma separated instances identifiers. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
Expand Down

0 comments on commit c3abd36

Please sign in to comment.