Skip to content

Commit f31b651

Browse files
committed
auto-generated version 1.3.0
1 parent 603cb52 commit f31b651

File tree

80 files changed

+757
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+757
-151
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,22 @@ import ionoscloud_dns
6868
6969
### Authentication
7070

71+
All available server URLs are:
72+
73+
- *https://dns.de-fra.ionos.com* - Frankfurt
74+
75+
By default, *https://dns.de-fra.ionos.com* is used, however this can be overriden at authentication, either
76+
by setting the `IONOS_API_URL` environment variable or by specifying the `host` parameter when
77+
initializing the sdk client.
78+
7179
The username and password **or** the authentication token can be manually specified when initializing the SDK client:
7280

7381
```python
7482
configuration = ionoscloud_dns.Configuration(
7583
username='YOUR_USERNAME',
7684
password='YOUR_PASSWORD',
77-
token='YOUR_TOKEN'
85+
token='YOUR_TOKEN',
86+
host='SERVER_API_URL'
7887
)
7988
client = ionoscloud_dns.ApiClient(configuration)
8089
```
@@ -87,7 +96,8 @@ import os
8796
configuration = ionoscloud_dns.Configuration(
8897
username=os.environ.get('IONOS_USERNAME'),
8998
password=os.environ.get('IONOS_PASSWORD'),
90-
token=os.environ.get('IONOS_TOKEN')
99+
token=os.environ.get('IONOS_TOKEN'),
100+
host=os.environ.get('IONOS_API_URL')
91101
)
92102
client = ionoscloud_dns.ApiClient(configuration)
93103
```
@@ -218,6 +228,7 @@ All URIs are relative to *https://dns.de-fra.ionos.com*
218228
- [RecordEnsure](docs/models/RecordEnsure)
219229
- [RecordRead](docs/models/RecordRead)
220230
- [RecordReadList](docs/models/RecordReadList)
231+
- [RecordType](docs/models/RecordType)
221232
- [ReverseRecord](docs/models/ReverseRecord)
222233
- [ReverseRecordCreate](docs/models/ReverseRecordCreate)
223234
- [ReverseRecordEnsure](docs/models/ReverseRecordEnsure)
@@ -249,4 +260,4 @@ All URIs are relative to *https://dns.de-fra.ionos.com*
249260

250261
[[Back to API list]](#documentation-for-api-endpoints) [[Back to Model list]](#documentation-for-models)
251262

252-
</details>
263+
</details>

docs/api/RecordsApi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ All URIs are relative to *https://dns.de-fra.ionos.com*
1414

1515

1616
# **records_get**
17-
> RecordReadList records_get(filter_zone_id=filter_zone_id, filter_name=filter_name, filter_state=filter_state, offset=offset, limit=limit)
17+
> RecordReadList records_get(filter_zone_id=filter_zone_id, filter_name=filter_name, filter_state=filter_state, filter_type=filter_type, offset=offset, limit=limit)
1818
1919
Retrieve all records from primary zones
2020

@@ -29,6 +29,7 @@ Returns the list of all records for all customer DNS zones with the possibility
2929
| **filter_zone_id** | **str**| Filter used to fetch only the records that contain specified zoneId. | [optional] |
3030
| **filter_name** | **str**| Filter used to fetch only the records that contain specified record name. | [optional] |
3131
| **filter_state** | [**ProvisioningState**](../models/.md)| Filter used to fetch only the records that are in certain state. | [optional] |
32+
| **filter_type** | [**RecordType**](../models/.md)| Filter used to fetch only the records with specified type. | [optional] |
3233
| **offset** | **int**| The first element (of the total list of elements) to include in the response. Use together with limit for pagination. | [optional] [default to 0] |
3334
| **limit** | **int**| The maximum number of elements to return. Use together with offset for pagination. | [optional] [default to 100] |
3435

docs/models/Metadata.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ Metadata of the resource.
44
## Properties
55
| Name | Type | Description | Notes |
66
| ------------ | ------------- | ------------- | ------------- |
7+
| **created_date** | **datetime** | The creation date formatted as yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39;Z&#39;. | [optional] [readonly] |
8+
| **created_by** | **str** | Unique name of the identity that created the resource. | [optional] [readonly] |
9+
| **created_by_user_id** | **str** | The unique ID of the user who created the resource. | [optional] [readonly] |
710
| **last_modified_date** | **datetime** | The date of the last change formatted as yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39;Z&#39;. | [optional] [readonly] |
8-
| **created_date** | **datetime** | The date of creation of the zone formatted as yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39;Z&#39;. | [optional] [readonly] |
11+
| **last_modified_by** | **str** | Unique name of the identity that created the resource. | [optional] [readonly] |
12+
| **last_modified_by_user_id** | **str** | The unique ID of the user who last modified the resource. | [optional] [readonly] |
13+
| **resource_urn** | **str** | Unique name of the resource. | [optional] [readonly] |
914

1015

docs/models/MetadataWithStateFqdnZoneId.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
## Properties
44
| Name | Type | Description | Notes |
55
| ------------ | ------------- | ------------- | ------------- |
6+
| **created_date** | **datetime** | The creation date formatted as yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39;Z&#39;. | [optional] [readonly] |
7+
| **created_by** | **str** | Unique name of the identity that created the resource. | [optional] [readonly] |
8+
| **created_by_user_id** | **str** | The unique ID of the user who created the resource. | [optional] [readonly] |
69
| **last_modified_date** | **datetime** | The date of the last change formatted as yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39;Z&#39;. | [optional] [readonly] |
7-
| **created_date** | **datetime** | The date of creation of the zone formatted as yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39;Z&#39;. | [optional] [readonly] |
10+
| **last_modified_by** | **str** | Unique name of the identity that created the resource. | [optional] [readonly] |
11+
| **last_modified_by_user_id** | **str** | The unique ID of the user who last modified the resource. | [optional] [readonly] |
12+
| **resource_urn** | **str** | Unique name of the resource. | [optional] [readonly] |
813
| **state** | [**ProvisioningState**](ProvisioningState.md) | | |
914
| **fqdn** | **str** | A fully qualified domain name. FQDN consists of two parts - the hostname and the domain name. | [readonly] |
1015
| **zone_id** | **str** | The ID (UUID) of the DNS zone of which record belongs to. | [readonly] |

docs/models/MetadataWithStateNameservers.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
## Properties
44
| Name | Type | Description | Notes |
55
| ------------ | ------------- | ------------- | ------------- |
6+
| **created_date** | **datetime** | The creation date formatted as yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39;Z&#39;. | [optional] [readonly] |
7+
| **created_by** | **str** | Unique name of the identity that created the resource. | [optional] [readonly] |
8+
| **created_by_user_id** | **str** | The unique ID of the user who created the resource. | [optional] [readonly] |
69
| **last_modified_date** | **datetime** | The date of the last change formatted as yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39;Z&#39;. | [optional] [readonly] |
7-
| **created_date** | **datetime** | The date of creation of the zone formatted as yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39;Z&#39;. | [optional] [readonly] |
10+
| **last_modified_by** | **str** | Unique name of the identity that created the resource. | [optional] [readonly] |
11+
| **last_modified_by_user_id** | **str** | The unique ID of the user who last modified the resource. | [optional] [readonly] |
12+
| **resource_urn** | **str** | Unique name of the resource. | [optional] [readonly] |
813
| **state** | [**ProvisioningState**](ProvisioningState.md) | | |
914
| **nameservers** | **list[str]** | The list of nameservers associated to the zone. Nameservers are different for primary and secondary zones. For primary zones it would be: - ns-ic.ui-dns.com - ns-ic.ui-dns.de - ns-ic.ui-dns.org - ns-ic.ui-dns.biz And for secondary zones: - nscs.ui-dns.com - nscs.ui-dns.de - nscs.ui-dns.org - nscs.ui-dns.biz | |
1015

docs/models/Record.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
| Name | Type | Description | Notes |
55
| ------------ | ------------- | ------------- | ------------- |
66
| **name** | **str** | | |
7-
| **type** | **str** | Holds supported DNS resource record types. In the DNS context a record is a DNS resource record. | |
7+
| **type** | [**RecordType**](RecordType.md) | | |
88
| **content** | **str** | | |
99
| **ttl** | **int** | Time to live for the record, recommended 3600. | [optional] [default to 3600] |
1010
| **priority** | **int** | Priority value is between 0 and 65535. Priority is mandatory for MX, SRV and URI record types and ignored for all other types. | [optional] |

docs/models/RecordType.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# RecordType
2+
3+
Holds supported DNS resource record types. In the DNS context a record is a DNS resource record.
4+
## Properties
5+
| Name | Type | Description | Notes |
6+
| ------------ | ------------- | ------------- | ------------- |
7+
8+

docs/summary.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
* [RecordEnsure](models/RecordEnsure.md)
5151
* [RecordRead](models/RecordRead.md)
5252
* [RecordReadList](models/RecordReadList.md)
53+
* [RecordType](models/RecordType.md)
5354
* [ReverseRecord](models/ReverseRecord.md)
5455
* [ReverseRecordCreate](models/ReverseRecordCreate.md)
5556
* [ReverseRecordEnsure](models/ReverseRecordEnsure.md)

ionoscloud_dns/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
88
Cloud DNS service helps IONOS Cloud customers to automate DNS Zone and Record management. # noqa: E501
99
10-
The version of the OpenAPI document: 1.15.4
10+
The version of the OpenAPI document: 1.17.0
1111
1212
Generated by: https://openapi-generator.tech
1313
"""
1414

1515

16-
__version__ = "1.2.0"
16+
__version__ = "1.3.0"
1717

1818
# import apis into sdk package
1919
from ionoscloud_dns.api.dnssec_api import DNSSECApi
@@ -71,6 +71,7 @@
7171
from ionoscloud_dns.models.record_ensure import RecordEnsure
7272
from ionoscloud_dns.models.record_read import RecordRead
7373
from ionoscloud_dns.models.record_read_list import RecordReadList
74+
from ionoscloud_dns.models.record_type import RecordType
7475
from ionoscloud_dns.models.reverse_record import ReverseRecord
7576
from ionoscloud_dns.models.reverse_record_create import ReverseRecordCreate
7677
from ionoscloud_dns.models.reverse_record_ensure import ReverseRecordEnsure

ionoscloud_dns/api/records_api.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def records_get(self, **kwargs): # noqa: E501
3333
:type filter_name: str
3434
:param filter_state: Filter used to fetch only the records that are in certain state.
3535
:type filter_state: ProvisioningState
36+
:param filter_type: Filter used to fetch only the records with specified type.
37+
:type filter_type: RecordType
3638
:param offset: The first element (of the total list of elements) to include in the response. Use together with limit for pagination.
3739
:type offset: int
3840
:param limit: The maximum number of elements to return. Use together with offset for pagination.
@@ -71,6 +73,8 @@ def records_get_with_http_info(self, **kwargs): # noqa: E501
7173
:type filter_name: str
7274
:param filter_state: Filter used to fetch only the records that are in certain state.
7375
:type filter_state: ProvisioningState
76+
:param filter_type: Filter used to fetch only the records with specified type.
77+
:type filter_type: RecordType
7478
:param offset: The first element (of the total list of elements) to include in the response. Use together with limit for pagination.
7579
:type offset: int
7680
:param limit: The maximum number of elements to return. Use together with offset for pagination.
@@ -104,6 +108,7 @@ def records_get_with_http_info(self, **kwargs): # noqa: E501
104108
'filter_zone_id',
105109
'filter_name',
106110
'filter_state',
111+
'filter_type',
107112
'offset',
108113
'limit'
109114
]
@@ -145,6 +150,8 @@ def records_get_with_http_info(self, **kwargs): # noqa: E501
145150
query_params.append(('filter.name', local_var_params['filter_name'])) # noqa: E501
146151
if 'filter_state' in local_var_params and local_var_params['filter_state'] is not None: # noqa: E501
147152
query_params.append(('filter.state', local_var_params['filter_state'])) # noqa: E501
153+
if 'filter_type' in local_var_params and local_var_params['filter_type'] is not None: # noqa: E501
154+
query_params.append(('filter.type', local_var_params['filter_type'])) # noqa: E501
148155
if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
149156
query_params.append(('offset', local_var_params['offset'])) # noqa: E501
150157
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501

0 commit comments

Comments
 (0)