@@ -2859,7 +2859,7 @@ def create_secondary_zone(self,
2859
2859
resolver_id : str ,
2860
2860
* ,
2861
2861
zone : str = None ,
2862
- transfer_from : List ['SecondaryZoneSourceInputItem' ] = None ,
2862
+ transfer_from : List [str ] = None ,
2863
2863
description : str = None ,
2864
2864
enabled : bool = None ,
2865
2865
x_correlation_id : str = None ,
@@ -2873,8 +2873,8 @@ def create_secondary_zone(self,
2873
2873
:param str instance_id: The unique identifier of a service instance.
2874
2874
:param str resolver_id: The unique identifier of a custom resolver.
2875
2875
:param str zone: (optional) zone name.
2876
- :param List[SecondaryZoneSourceInputItem ] transfer_from: (optional) The
2877
- source configuration of secondary zone input.
2876
+ :param List[str ] transfer_from: (optional) The source configuration of
2877
+ secondary zone input.
2878
2878
:param str description: (optional) Descriptive text of the secondary zone.
2879
2879
:param bool enabled: (optional) Enable/Disable the secondary zone.
2880
2880
:param str x_correlation_id: (optional) Uniquely identifying a request.
@@ -2887,8 +2887,6 @@ def create_secondary_zone(self,
2887
2887
raise ValueError ('instance_id must be provided' )
2888
2888
if resolver_id is None :
2889
2889
raise ValueError ('resolver_id must be provided' )
2890
- if transfer_from is not None :
2891
- transfer_from = [convert_model (x ) for x in transfer_from ]
2892
2890
headers = {
2893
2891
'X-Correlation-ID' : x_correlation_id
2894
2892
}
@@ -3042,7 +3040,7 @@ def update_secondary_zone(self,
3042
3040
* ,
3043
3041
description : str = None ,
3044
3042
enabled : bool = None ,
3045
- transfer_from : List ['SecondaryZoneSourceInputItem' ] = None ,
3043
+ transfer_from : List [str ] = None ,
3046
3044
x_correlation_id : str = None ,
3047
3045
** kwargs
3048
3046
) -> DetailedResponse :
@@ -3056,8 +3054,8 @@ def update_secondary_zone(self,
3056
3054
:param str sz_id: The unique identifier of a secondary zone.
3057
3055
:param str description: (optional) Descriptive text of the secondary zone.
3058
3056
:param bool enabled: (optional) Enable/Disable the secondary zone.
3059
- :param List[SecondaryZoneSourceInputItem ] transfer_from: (optional) The
3060
- source configuration of secondary zone input.
3057
+ :param List[str ] transfer_from: (optional) The source configuration of
3058
+ secondary zone input.
3061
3059
:param str x_correlation_id: (optional) Uniquely identifying a request.
3062
3060
:param dict headers: A `dict` containing the request headers
3063
3061
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
@@ -3070,8 +3068,6 @@ def update_secondary_zone(self,
3070
3068
raise ValueError ('resolver_id must be provided' )
3071
3069
if sz_id is None :
3072
3070
raise ValueError ('sz_id must be provided' )
3073
- if transfer_from is not None :
3074
- transfer_from = [convert_model (x ) for x in transfer_from ]
3075
3071
headers = {
3076
3072
'X-Correlation-ID' : x_correlation_id
3077
3073
}
@@ -4197,124 +4193,6 @@ def __init__(self) -> None:
4197
4193
", " .join (['ResourceRecordUpdateInputRdataRdataARecord' , 'ResourceRecordUpdateInputRdataRdataAaaaRecord' , 'ResourceRecordUpdateInputRdataRdataCnameRecord' , 'ResourceRecordUpdateInputRdataRdataMxRecord' , 'ResourceRecordUpdateInputRdataRdataSrvRecord' , 'ResourceRecordUpdateInputRdataRdataTxtRecord' , 'ResourceRecordUpdateInputRdataRdataPtrRecord' ]))
4198
4194
raise Exception (msg )
4199
4195
4200
- class SecondaryZoneSourceInputItem ():
4201
- """
4202
- The source address of secondary zone.
4203
-
4204
- :attr str address: (optional) The address of secondary zone.
4205
- """
4206
-
4207
- def __init__ (self ,
4208
- * ,
4209
- address : str = None ) -> None :
4210
- """
4211
- Initialize a SecondaryZoneSourceInputItem object.
4212
-
4213
- :param str address: (optional) The address of secondary zone.
4214
- """
4215
- self .address = address
4216
-
4217
- @classmethod
4218
- def from_dict (cls , _dict : Dict ) -> 'SecondaryZoneSourceInputItem' :
4219
- """Initialize a SecondaryZoneSourceInputItem object from a json dictionary."""
4220
- args = {}
4221
- if 'address' in _dict :
4222
- args ['address' ] = _dict .get ('address' )
4223
- return cls (** args )
4224
-
4225
- @classmethod
4226
- def _from_dict (cls , _dict ):
4227
- """Initialize a SecondaryZoneSourceInputItem object from a json dictionary."""
4228
- return cls .from_dict (_dict )
4229
-
4230
- def to_dict (self ) -> Dict :
4231
- """Return a json dictionary representing this model."""
4232
- _dict = {}
4233
- if hasattr (self , 'address' ) and self .address is not None :
4234
- _dict ['address' ] = self .address
4235
- return _dict
4236
-
4237
- def _to_dict (self ):
4238
- """Return a json dictionary representing this model."""
4239
- return self .to_dict ()
4240
-
4241
- def __str__ (self ) -> str :
4242
- """Return a `str` version of this SecondaryZoneSourceInputItem object."""
4243
- return json .dumps (self .to_dict (), indent = 2 )
4244
-
4245
- def __eq__ (self , other : 'SecondaryZoneSourceInputItem' ) -> bool :
4246
- """Return `true` when self and other are equal, false otherwise."""
4247
- if not isinstance (other , self .__class__ ):
4248
- return False
4249
- return self .__dict__ == other .__dict__
4250
-
4251
- def __ne__ (self , other : 'SecondaryZoneSourceInputItem' ) -> bool :
4252
- """Return `true` when self and other are not equal, false otherwise."""
4253
- return not self == other
4254
-
4255
- class SecondaryZoneTransferFromItem ():
4256
- """
4257
- The source address of secondary zone.
4258
-
4259
- :attr str address: (optional) The address of secondary zone.
4260
- :attr int port: (optional) The port number of secondary zone.
4261
- """
4262
-
4263
- def __init__ (self ,
4264
- * ,
4265
- address : str = None ,
4266
- port : int = None ) -> None :
4267
- """
4268
- Initialize a SecondaryZoneTransferFromItem object.
4269
-
4270
- :param str address: (optional) The address of secondary zone.
4271
- :param int port: (optional) The port number of secondary zone.
4272
- """
4273
- self .address = address
4274
- self .port = port
4275
-
4276
- @classmethod
4277
- def from_dict (cls , _dict : Dict ) -> 'SecondaryZoneTransferFromItem' :
4278
- """Initialize a SecondaryZoneTransferFromItem object from a json dictionary."""
4279
- args = {}
4280
- if 'address' in _dict :
4281
- args ['address' ] = _dict .get ('address' )
4282
- if 'port' in _dict :
4283
- args ['port' ] = _dict .get ('port' )
4284
- return cls (** args )
4285
-
4286
- @classmethod
4287
- def _from_dict (cls , _dict ):
4288
- """Initialize a SecondaryZoneTransferFromItem object from a json dictionary."""
4289
- return cls .from_dict (_dict )
4290
-
4291
- def to_dict (self ) -> Dict :
4292
- """Return a json dictionary representing this model."""
4293
- _dict = {}
4294
- if hasattr (self , 'address' ) and self .address is not None :
4295
- _dict ['address' ] = self .address
4296
- if hasattr (self , 'port' ) and self .port is not None :
4297
- _dict ['port' ] = self .port
4298
- return _dict
4299
-
4300
- def _to_dict (self ):
4301
- """Return a json dictionary representing this model."""
4302
- return self .to_dict ()
4303
-
4304
- def __str__ (self ) -> str :
4305
- """Return a `str` version of this SecondaryZoneTransferFromItem object."""
4306
- return json .dumps (self .to_dict (), indent = 2 )
4307
-
4308
- def __eq__ (self , other : 'SecondaryZoneTransferFromItem' ) -> bool :
4309
- """Return `true` when self and other are equal, false otherwise."""
4310
- if not isinstance (other , self .__class__ ):
4311
- return False
4312
- return self .__dict__ == other .__dict__
4313
-
4314
- def __ne__ (self , other : 'SecondaryZoneTransferFromItem' ) -> bool :
4315
- """Return `true` when self and other are not equal, false otherwise."""
4316
- return not self == other
4317
-
4318
4196
class AccessRequest ():
4319
4197
"""
4320
4198
Access request.
@@ -7768,8 +7646,8 @@ class SecondaryZone():
7768
7646
:attr str description: (optional) Descriptive text of the secondary zone.
7769
7647
:attr str zone: (optional) zone name.
7770
7648
:attr bool enabled: (optional) Enable/Disable the secondary zone.
7771
- :attr List[SecondaryZoneTransferFromItem ] transfer_from: (optional) The source
7772
- configuration of secondary zone output.
7649
+ :attr List[str ] transfer_from: (optional) The source configuration of secondary
7650
+ zone output.
7773
7651
:attr str created_on: (optional) The time when a secondary zone is created.
7774
7652
:attr str modified_on: (optional) The recent time when a secondary zone is
7775
7653
modified.
@@ -7781,7 +7659,7 @@ def __init__(self,
7781
7659
description : str = None ,
7782
7660
zone : str = None ,
7783
7661
enabled : bool = None ,
7784
- transfer_from : List ['SecondaryZoneTransferFromItem' ] = None ,
7662
+ transfer_from : List [str ] = None ,
7785
7663
created_on : str = None ,
7786
7664
modified_on : str = None ) -> None :
7787
7665
"""
@@ -7791,8 +7669,8 @@ def __init__(self,
7791
7669
:param str description: (optional) Descriptive text of the secondary zone.
7792
7670
:param str zone: (optional) zone name.
7793
7671
:param bool enabled: (optional) Enable/Disable the secondary zone.
7794
- :param List[SecondaryZoneTransferFromItem ] transfer_from: (optional) The
7795
- source configuration of secondary zone output.
7672
+ :param List[str ] transfer_from: (optional) The source configuration of
7673
+ secondary zone output.
7796
7674
:param str created_on: (optional) The time when a secondary zone is
7797
7675
created.
7798
7676
:param str modified_on: (optional) The recent time when a secondary zone is
@@ -7819,7 +7697,7 @@ def from_dict(cls, _dict: Dict) -> 'SecondaryZone':
7819
7697
if 'enabled' in _dict :
7820
7698
args ['enabled' ] = _dict .get ('enabled' )
7821
7699
if 'transfer_from' in _dict :
7822
- args ['transfer_from' ] = [ SecondaryZoneTransferFromItem . from_dict ( x ) for x in _dict .get ('transfer_from' )]
7700
+ args ['transfer_from' ] = _dict .get ('transfer_from' )
7823
7701
if 'created_on' in _dict :
7824
7702
args ['created_on' ] = _dict .get ('created_on' )
7825
7703
if 'modified_on' in _dict :
@@ -7843,7 +7721,7 @@ def to_dict(self) -> Dict:
7843
7721
if hasattr (self , 'enabled' ) and self .enabled is not None :
7844
7722
_dict ['enabled' ] = self .enabled
7845
7723
if hasattr (self , 'transfer_from' ) and self .transfer_from is not None :
7846
- _dict ['transfer_from' ] = [ x . to_dict () for x in self .transfer_from ]
7724
+ _dict ['transfer_from' ] = self .transfer_from
7847
7725
if hasattr (self , 'created_on' ) and self .created_on is not None :
7848
7726
_dict ['created_on' ] = self .created_on
7849
7727
if hasattr (self , 'modified_on' ) and self .modified_on is not None :
0 commit comments