|
24 | 24 | AppleSiliconServerInfo, |
25 | 25 | BaremetalServerInfo, |
26 | 26 | BaremetalSettingInfo, |
| 27 | + EdgeServicesBackendStageInfo, |
| 28 | + EdgeServicesCacheStageInfo, |
| 29 | + EdgeServicesDNSStageInfo, |
| 30 | + EdgeServicesPipelineInfo, |
| 31 | + EdgeServicesPlanInfo, |
| 32 | + EdgeServicesRouteRulesInfo, |
| 33 | + EdgeServicesRouteStageInfo, |
| 34 | + EdgeServicesTLSStageInfo, |
| 35 | + EdgeServicesWAFStageInfo, |
27 | 36 | InstanceServerInfo, |
28 | 37 | IpamIpInfo, |
29 | 38 | KeyManagerKeyInfo, |
@@ -293,6 +302,153 @@ def unmarshal_BaremetalSettingInfo(data: Any) -> BaremetalSettingInfo: |
293 | 302 | return BaremetalSettingInfo(**args) |
294 | 303 |
|
295 | 304 |
|
| 305 | +def unmarshal_EdgeServicesBackendStageInfo(data: Any) -> EdgeServicesBackendStageInfo: |
| 306 | + if not isinstance(data, dict): |
| 307 | + raise TypeError( |
| 308 | + "Unmarshalling the type 'EdgeServicesBackendStageInfo' failed as data isn't a dictionary." |
| 309 | + ) |
| 310 | + |
| 311 | + args: dict[str, Any] = {} |
| 312 | + |
| 313 | + field = data.get("pipeline_id", None) |
| 314 | + if field is not None: |
| 315 | + args["pipeline_id"] = field |
| 316 | + else: |
| 317 | + args["pipeline_id"] = None |
| 318 | + |
| 319 | + return EdgeServicesBackendStageInfo(**args) |
| 320 | + |
| 321 | + |
| 322 | +def unmarshal_EdgeServicesCacheStageInfo(data: Any) -> EdgeServicesCacheStageInfo: |
| 323 | + if not isinstance(data, dict): |
| 324 | + raise TypeError( |
| 325 | + "Unmarshalling the type 'EdgeServicesCacheStageInfo' failed as data isn't a dictionary." |
| 326 | + ) |
| 327 | + |
| 328 | + args: dict[str, Any] = {} |
| 329 | + |
| 330 | + field = data.get("pipeline_id", None) |
| 331 | + if field is not None: |
| 332 | + args["pipeline_id"] = field |
| 333 | + else: |
| 334 | + args["pipeline_id"] = None |
| 335 | + |
| 336 | + return EdgeServicesCacheStageInfo(**args) |
| 337 | + |
| 338 | + |
| 339 | +def unmarshal_EdgeServicesDNSStageInfo(data: Any) -> EdgeServicesDNSStageInfo: |
| 340 | + if not isinstance(data, dict): |
| 341 | + raise TypeError( |
| 342 | + "Unmarshalling the type 'EdgeServicesDNSStageInfo' failed as data isn't a dictionary." |
| 343 | + ) |
| 344 | + |
| 345 | + args: dict[str, Any] = {} |
| 346 | + |
| 347 | + field = data.get("pipeline_id", None) |
| 348 | + if field is not None: |
| 349 | + args["pipeline_id"] = field |
| 350 | + else: |
| 351 | + args["pipeline_id"] = None |
| 352 | + |
| 353 | + return EdgeServicesDNSStageInfo(**args) |
| 354 | + |
| 355 | + |
| 356 | +def unmarshal_EdgeServicesPipelineInfo(data: Any) -> EdgeServicesPipelineInfo: |
| 357 | + if not isinstance(data, dict): |
| 358 | + raise TypeError( |
| 359 | + "Unmarshalling the type 'EdgeServicesPipelineInfo' failed as data isn't a dictionary." |
| 360 | + ) |
| 361 | + |
| 362 | + args: dict[str, Any] = {} |
| 363 | + |
| 364 | + field = data.get("name", None) |
| 365 | + if field is not None: |
| 366 | + args["name"] = field |
| 367 | + else: |
| 368 | + args["name"] = None |
| 369 | + |
| 370 | + return EdgeServicesPipelineInfo(**args) |
| 371 | + |
| 372 | + |
| 373 | +def unmarshal_EdgeServicesPlanInfo(data: Any) -> EdgeServicesPlanInfo: |
| 374 | + if not isinstance(data, dict): |
| 375 | + raise TypeError( |
| 376 | + "Unmarshalling the type 'EdgeServicesPlanInfo' failed as data isn't a dictionary." |
| 377 | + ) |
| 378 | + |
| 379 | + args: dict[str, Any] = {} |
| 380 | + |
| 381 | + return EdgeServicesPlanInfo(**args) |
| 382 | + |
| 383 | + |
| 384 | +def unmarshal_EdgeServicesRouteRulesInfo(data: Any) -> EdgeServicesRouteRulesInfo: |
| 385 | + if not isinstance(data, dict): |
| 386 | + raise TypeError( |
| 387 | + "Unmarshalling the type 'EdgeServicesRouteRulesInfo' failed as data isn't a dictionary." |
| 388 | + ) |
| 389 | + |
| 390 | + args: dict[str, Any] = {} |
| 391 | + |
| 392 | + field = data.get("route_stage_id", None) |
| 393 | + if field is not None: |
| 394 | + args["route_stage_id"] = field |
| 395 | + else: |
| 396 | + args["route_stage_id"] = None |
| 397 | + |
| 398 | + return EdgeServicesRouteRulesInfo(**args) |
| 399 | + |
| 400 | + |
| 401 | +def unmarshal_EdgeServicesRouteStageInfo(data: Any) -> EdgeServicesRouteStageInfo: |
| 402 | + if not isinstance(data, dict): |
| 403 | + raise TypeError( |
| 404 | + "Unmarshalling the type 'EdgeServicesRouteStageInfo' failed as data isn't a dictionary." |
| 405 | + ) |
| 406 | + |
| 407 | + args: dict[str, Any] = {} |
| 408 | + |
| 409 | + field = data.get("pipeline_id", None) |
| 410 | + if field is not None: |
| 411 | + args["pipeline_id"] = field |
| 412 | + else: |
| 413 | + args["pipeline_id"] = None |
| 414 | + |
| 415 | + return EdgeServicesRouteStageInfo(**args) |
| 416 | + |
| 417 | + |
| 418 | +def unmarshal_EdgeServicesTLSStageInfo(data: Any) -> EdgeServicesTLSStageInfo: |
| 419 | + if not isinstance(data, dict): |
| 420 | + raise TypeError( |
| 421 | + "Unmarshalling the type 'EdgeServicesTLSStageInfo' failed as data isn't a dictionary." |
| 422 | + ) |
| 423 | + |
| 424 | + args: dict[str, Any] = {} |
| 425 | + |
| 426 | + field = data.get("pipeline_id", None) |
| 427 | + if field is not None: |
| 428 | + args["pipeline_id"] = field |
| 429 | + else: |
| 430 | + args["pipeline_id"] = None |
| 431 | + |
| 432 | + return EdgeServicesTLSStageInfo(**args) |
| 433 | + |
| 434 | + |
| 435 | +def unmarshal_EdgeServicesWAFStageInfo(data: Any) -> EdgeServicesWAFStageInfo: |
| 436 | + if not isinstance(data, dict): |
| 437 | + raise TypeError( |
| 438 | + "Unmarshalling the type 'EdgeServicesWAFStageInfo' failed as data isn't a dictionary." |
| 439 | + ) |
| 440 | + |
| 441 | + args: dict[str, Any] = {} |
| 442 | + |
| 443 | + field = data.get("pipeline_id", None) |
| 444 | + if field is not None: |
| 445 | + args["pipeline_id"] = field |
| 446 | + else: |
| 447 | + args["pipeline_id"] = None |
| 448 | + |
| 449 | + return EdgeServicesWAFStageInfo(**args) |
| 450 | + |
| 451 | + |
296 | 452 | def unmarshal_InstanceServerInfo(data: Any) -> InstanceServerInfo: |
297 | 453 | if not isinstance(data, dict): |
298 | 454 | raise TypeError( |
@@ -797,6 +953,68 @@ def unmarshal_Resource(data: Any) -> Resource: |
797 | 953 | else: |
798 | 954 | args["load_balancer_certificate_info"] = None |
799 | 955 |
|
| 956 | + field = data.get("edge_services_plan_info", None) |
| 957 | + if field is not None: |
| 958 | + args["edge_services_plan_info"] = unmarshal_EdgeServicesPlanInfo(field) |
| 959 | + else: |
| 960 | + args["edge_services_plan_info"] = None |
| 961 | + |
| 962 | + field = data.get("edge_services_pipeline_info", None) |
| 963 | + if field is not None: |
| 964 | + args["edge_services_pipeline_info"] = unmarshal_EdgeServicesPipelineInfo(field) |
| 965 | + else: |
| 966 | + args["edge_services_pipeline_info"] = None |
| 967 | + |
| 968 | + field = data.get("edge_services_dns_stage_info", None) |
| 969 | + if field is not None: |
| 970 | + args["edge_services_dns_stage_info"] = unmarshal_EdgeServicesDNSStageInfo(field) |
| 971 | + else: |
| 972 | + args["edge_services_dns_stage_info"] = None |
| 973 | + |
| 974 | + field = data.get("edge_services_tls_stage_info", None) |
| 975 | + if field is not None: |
| 976 | + args["edge_services_tls_stage_info"] = unmarshal_EdgeServicesTLSStageInfo(field) |
| 977 | + else: |
| 978 | + args["edge_services_tls_stage_info"] = None |
| 979 | + |
| 980 | + field = data.get("edge_services_cache_stage_info", None) |
| 981 | + if field is not None: |
| 982 | + args["edge_services_cache_stage_info"] = unmarshal_EdgeServicesCacheStageInfo( |
| 983 | + field |
| 984 | + ) |
| 985 | + else: |
| 986 | + args["edge_services_cache_stage_info"] = None |
| 987 | + |
| 988 | + field = data.get("edge_services_route_stage_info", None) |
| 989 | + if field is not None: |
| 990 | + args["edge_services_route_stage_info"] = unmarshal_EdgeServicesRouteStageInfo( |
| 991 | + field |
| 992 | + ) |
| 993 | + else: |
| 994 | + args["edge_services_route_stage_info"] = None |
| 995 | + |
| 996 | + field = data.get("edge_services_route_rules_info", None) |
| 997 | + if field is not None: |
| 998 | + args["edge_services_route_rules_info"] = unmarshal_EdgeServicesRouteRulesInfo( |
| 999 | + field |
| 1000 | + ) |
| 1001 | + else: |
| 1002 | + args["edge_services_route_rules_info"] = None |
| 1003 | + |
| 1004 | + field = data.get("edge_services_waf_stage_info", None) |
| 1005 | + if field is not None: |
| 1006 | + args["edge_services_waf_stage_info"] = unmarshal_EdgeServicesWAFStageInfo(field) |
| 1007 | + else: |
| 1008 | + args["edge_services_waf_stage_info"] = None |
| 1009 | + |
| 1010 | + field = data.get("edge_services_backend_stage_info", None) |
| 1011 | + if field is not None: |
| 1012 | + args["edge_services_backend_stage_info"] = ( |
| 1013 | + unmarshal_EdgeServicesBackendStageInfo(field) |
| 1014 | + ) |
| 1015 | + else: |
| 1016 | + args["edge_services_backend_stage_info"] = None |
| 1017 | + |
800 | 1018 | return Resource(**args) |
801 | 1019 |
|
802 | 1020 |
|
|
0 commit comments