77
88from binarylane import errors
99from binarylane .client import Client
10- from binarylane .models .domain_record_request import DomainRecordRequest
1110from binarylane .models .domain_record_response import DomainRecordResponse
1211from binarylane .models .problem_details import ProblemDetails
12+ from binarylane .models .update_domain_record_request import UpdateDomainRecordRequest
1313from binarylane .models .validation_problem_details import ValidationProblemDetails
1414from binarylane .types import Response
1515
@@ -19,7 +19,7 @@ def _get_kwargs(
1919 record_id : int ,
2020 * ,
2121 client : Client ,
22- json_body : DomainRecordRequest ,
22+ json_body : UpdateDomainRecordRequest ,
2323) -> Dict [str , Any ]:
2424 url = "{}/v2/domains/{domain_name}/records/{record_id}" .format (
2525 client .base_url , domain_name = domain_name , record_id = record_id
@@ -80,17 +80,16 @@ def sync_detailed(
8080 record_id : int ,
8181 * ,
8282 client : Client ,
83- json_body : DomainRecordRequest ,
83+ json_body : UpdateDomainRecordRequest ,
8484) -> Response [Union [Any , DomainRecordResponse , ProblemDetails , ValidationProblemDetails ]]:
8585 """Update an Existing Domain Record
8686
8787 Args:
8888 domain_name (Union[int, str]): The domain name or domain ID for for which the record
8989 should be updated. Example: 5.
9090 record_id (int): The ID of the record to update.
91- json_body (DomainRecordRequest): If this is used to update an existing DomainRecord any
92- values not provided will be retained. Provide empty strings to clear existing string
93- values, nulls to retain the existing values.
91+ json_body (UpdateDomainRecordRequest): Any values not provided will be retained. Provide
92+ empty strings to clear existing string values, nulls to retain the existing values.
9493
9594 Raises:
9695 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -120,17 +119,16 @@ def sync(
120119 record_id : int ,
121120 * ,
122121 client : Client ,
123- json_body : DomainRecordRequest ,
122+ json_body : UpdateDomainRecordRequest ,
124123) -> Optional [Union [Any , DomainRecordResponse , ProblemDetails , ValidationProblemDetails ]]:
125124 """Update an Existing Domain Record
126125
127126 Args:
128127 domain_name (Union[int, str]): The domain name or domain ID for for which the record
129128 should be updated. Example: 5.
130129 record_id (int): The ID of the record to update.
131- json_body (DomainRecordRequest): If this is used to update an existing DomainRecord any
132- values not provided will be retained. Provide empty strings to clear existing string
133- values, nulls to retain the existing values.
130+ json_body (UpdateDomainRecordRequest): Any values not provided will be retained. Provide
131+ empty strings to clear existing string values, nulls to retain the existing values.
134132
135133 Raises:
136134 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -153,17 +151,16 @@ async def asyncio_detailed(
153151 record_id : int ,
154152 * ,
155153 client : Client ,
156- json_body : DomainRecordRequest ,
154+ json_body : UpdateDomainRecordRequest ,
157155) -> Response [Union [Any , DomainRecordResponse , ProblemDetails , ValidationProblemDetails ]]:
158156 """Update an Existing Domain Record
159157
160158 Args:
161159 domain_name (Union[int, str]): The domain name or domain ID for for which the record
162160 should be updated. Example: 5.
163161 record_id (int): The ID of the record to update.
164- json_body (DomainRecordRequest): If this is used to update an existing DomainRecord any
165- values not provided will be retained. Provide empty strings to clear existing string
166- values, nulls to retain the existing values.
162+ json_body (UpdateDomainRecordRequest): Any values not provided will be retained. Provide
163+ empty strings to clear existing string values, nulls to retain the existing values.
167164
168165 Raises:
169166 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -191,17 +188,16 @@ async def asyncio(
191188 record_id : int ,
192189 * ,
193190 client : Client ,
194- json_body : DomainRecordRequest ,
191+ json_body : UpdateDomainRecordRequest ,
195192) -> Optional [Union [Any , DomainRecordResponse , ProblemDetails , ValidationProblemDetails ]]:
196193 """Update an Existing Domain Record
197194
198195 Args:
199196 domain_name (Union[int, str]): The domain name or domain ID for for which the record
200197 should be updated. Example: 5.
201198 record_id (int): The ID of the record to update.
202- json_body (DomainRecordRequest): If this is used to update an existing DomainRecord any
203- values not provided will be retained. Provide empty strings to clear existing string
204- values, nulls to retain the existing values.
199+ json_body (UpdateDomainRecordRequest): Any values not provided will be retained. Provide
200+ empty strings to clear existing string values, nulls to retain the existing values.
205201
206202 Raises:
207203 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
0 commit comments