@@ -246,7 +246,7 @@ def update_zone_cname_flattening(self, *, accept: str = None, value: str = None,
246
246
247
247
def get_opportunistic_encryption (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
248
248
"""
249
- get opportunistic encryption setting.
249
+ Get opportunistic encryption setting.
250
250
251
251
Get opportunistic encryption setting for a zone.
252
252
@@ -317,7 +317,7 @@ def update_opportunistic_encryption(self, *, accept: str = None, value: str = No
317
317
318
318
def get_challenge_ttl (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
319
319
"""
320
- get challenge TTL setting.
320
+ Get challenge TTL setting.
321
321
322
322
Get challenge TTL setting for a zone.
323
323
@@ -388,7 +388,7 @@ def update_challenge_ttl(self, *, accept: str = None, value: int = None, **kwarg
388
388
389
389
def get_automatic_https_rewrites (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
390
390
"""
391
- get automatic https rewrites setting.
391
+ Get automatic https rewrites setting.
392
392
393
393
Get automatic https rewrites setting for a zone.
394
394
@@ -459,7 +459,7 @@ def update_automatic_https_rewrites(self, *, accept: str = None, value: str = No
459
459
460
460
def get_ture_client_ip (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
461
461
"""
462
- get true client IP setting.
462
+ Get true client IP setting.
463
463
464
464
Get true client IP setting for a zone.
465
465
@@ -530,7 +530,7 @@ def update_true_client_ip(self, *, accept: str = None, value: str = None, **kwar
530
530
531
531
def get_always_use_https (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
532
532
"""
533
- get always use https setting.
533
+ Get always use https setting.
534
534
535
535
Get always use https setting for a zone.
536
536
@@ -601,7 +601,7 @@ def update_always_use_https(self, *, accept: str = None, value: str = None, **kw
601
601
602
602
def get_image_size_optimization (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
603
603
"""
604
- get image size optimization setting.
604
+ Get image size optimization setting.
605
605
606
606
Get image size optimization setting for a zone.
607
607
@@ -676,7 +676,7 @@ def update_image_size_optimization(self, *, accept: str = None, value: str = Non
676
676
677
677
def get_script_load_optimization (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
678
678
"""
679
- get script load optimization setting.
679
+ Get script load optimization setting.
680
680
681
681
Get script load optimization setting for a zone.
682
682
@@ -747,7 +747,7 @@ def update_script_load_optimization(self, *, accept: str = None, value: str = No
747
747
748
748
def get_image_load_optimization (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
749
749
"""
750
- get image load optimizationn setting.
750
+ Get image load optimizationn setting.
751
751
752
752
Get image load optimizationn setting for a zone.
753
753
@@ -818,7 +818,7 @@ def update_image_load_optimization(self, *, accept: str = None, value: str = Non
818
818
819
819
def get_minify (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
820
820
"""
821
- get minify setting.
821
+ Get minify setting.
822
822
823
823
Get minify setting for a zone.
824
824
@@ -846,9 +846,7 @@ def get_minify(self, *, accept: str = None, **kwargs) -> DetailedResponse:
846
846
response = self .send (request )
847
847
return response
848
848
849
-
850
-
851
- def update_minify (self , * , accept : str = None , css : str = None , html : str = None , js : str = None , ** kwargs ) -> DetailedResponse :
849
+ def update_minify (self , * , accept : str = None , value : 'MinifySettingValue' = None , ** kwargs ) -> DetailedResponse :
852
850
"""
853
851
Update minify setting.
854
852
@@ -862,17 +860,17 @@ def update_minify(self, *, accept: str = None, css: str = None, html: str = None
862
860
:rtype: DetailedResponse with `dict` result representing a `MinifyResp` object
863
861
"""
864
862
863
+ if value is not None :
864
+ value = convert_model (value )
865
865
headers = {
866
866
'Accept' : accept
867
867
}
868
868
sdk_headers = get_sdk_headers (service_name = self .DEFAULT_SERVICE_NAME , service_version = 'V1' , operation_id = 'update_minify' )
869
869
headers .update (sdk_headers )
870
870
871
- data = {'value' : {
872
- 'css' : css ,
873
- 'html' : html ,
874
- 'js' : js
875
- }}
871
+ data = {
872
+ 'value' : value
873
+ }
876
874
data = {k : v for (k , v ) in data .items () if v is not None }
877
875
data = json .dumps (data )
878
876
headers ['content-type' ] = 'application/json'
@@ -892,7 +890,7 @@ def update_minify(self, *, accept: str = None, css: str = None, html: str = None
892
890
893
891
def get_min_tls_version (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
894
892
"""
895
- get minimum TLS version setting.
893
+ Get minimum TLS version setting.
896
894
897
895
Get minimum TLS version setting for a zone.
898
896
@@ -963,7 +961,7 @@ def update_min_tls_version(self, *, accept: str = None, value: str = None, **kwa
963
961
964
962
def get_ip_geolocation (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
965
963
"""
966
- get IP geolocation setting.
964
+ Get IP geolocation setting.
967
965
968
966
Get IP geolocation setting for a zone.
969
967
@@ -1034,7 +1032,7 @@ def update_ip_geolocation(self, *, accept: str = None, value: str = None, **kwar
1034
1032
1035
1033
def get_server_side_exclude (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
1036
1034
"""
1037
- get server side exclude setting.
1035
+ Get server side exclude setting.
1038
1036
1039
1037
Get server side exclude setting for a zone.
1040
1038
@@ -1105,7 +1103,7 @@ def update_server_side_exclude(self, *, accept: str = None, value: str = None, *
1105
1103
1106
1104
def get_security_header (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
1107
1105
"""
1108
- get HTTP strict transport security setting.
1106
+ Get HTTP strict transport security setting.
1109
1107
1110
1108
Get HTTP strict transport security setting for a zone.
1111
1109
@@ -1178,7 +1176,7 @@ def update_security_header(self, *, accept: str = None, value: 'SecurityHeaderSe
1178
1176
1179
1177
def get_mobile_redirect (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
1180
1178
"""
1181
- get mobile redirect setting.
1179
+ Get mobile redirect setting.
1182
1180
1183
1181
Get mobile redirect setting for a zone.
1184
1182
@@ -1251,7 +1249,7 @@ def update_mobile_redirect(self, *, accept: str = None, value: 'MobileRedirecSet
1251
1249
1252
1250
def get_prefetch_preload (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
1253
1251
"""
1254
- get prefetch URLs from header setting.
1252
+ Get prefetch URLs from header setting.
1255
1253
1256
1254
Get prefetch URLs from header setting for a zone.
1257
1255
@@ -1322,7 +1320,7 @@ def update_prefetch_preload(self, *, accept: str = None, value: str = None, **kw
1322
1320
1323
1321
def get_http2 (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
1324
1322
"""
1325
- get http/2 setting.
1323
+ Get http/2 setting.
1326
1324
1327
1325
Get http/2 setting for a zone.
1328
1326
@@ -1393,7 +1391,7 @@ def update_http2(self, *, accept: str = None, value: str = None, **kwargs) -> De
1393
1391
1394
1392
def get_ipv6 (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
1395
1393
"""
1396
- get IPv6 compatibility setting.
1394
+ Get IPv6 compatibility setting.
1397
1395
1398
1396
Get IPv6 compatibility setting for a zone.
1399
1397
@@ -1464,7 +1462,7 @@ def update_ipv6(self, *, accept: str = None, value: str = None, **kwargs) -> Det
1464
1462
1465
1463
def get_web_sockets (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
1466
1464
"""
1467
- get web sockets setting.
1465
+ Get web sockets setting.
1468
1466
1469
1467
Get web sockets setting for a zone.
1470
1468
@@ -1535,7 +1533,7 @@ def update_web_sockets(self, *, accept: str = None, value: str = None, **kwargs)
1535
1533
1536
1534
def get_pseudo_ipv4 (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
1537
1535
"""
1538
- get pseudo IPv4 setting.
1536
+ Get pseudo IPv4 setting.
1539
1537
1540
1538
Get pseudo IPv4 setting for a zone.
1541
1539
@@ -1606,7 +1604,7 @@ def update_pseudo_ipv4(self, *, accept: str = None, value: str = None, **kwargs)
1606
1604
1607
1605
def get_response_buffering (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
1608
1606
"""
1609
- get response buffering setting.
1607
+ Get response buffering setting.
1610
1608
1611
1609
Get response buffering setting for a zone.
1612
1610
@@ -1677,7 +1675,7 @@ def update_response_buffering(self, *, accept: str = None, value: str = None, **
1677
1675
1678
1676
def get_hotlink_protection (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
1679
1677
"""
1680
- get hotlink protection setting.
1678
+ Get hotlink protection setting.
1681
1679
1682
1680
Get hotlink protection setting for a zone.
1683
1681
@@ -1748,7 +1746,7 @@ def update_hotlink_protection(self, *, accept: str = None, value: str = None, **
1748
1746
1749
1747
def get_max_upload (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
1750
1748
"""
1751
- get maximum upload size setting.
1749
+ Get maximum upload size setting.
1752
1750
1753
1751
Get maximum upload size setting for a zone.
1754
1752
@@ -1822,7 +1820,7 @@ def update_max_upload(self, *, accept: str = None, value: int = None, **kwargs)
1822
1820
1823
1821
def get_tls_client_auth (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
1824
1822
"""
1825
- get TLS Client Auth setting.
1823
+ Get TLS Client Auth setting.
1826
1824
1827
1825
Get TLS Client Auth setting for a zone.
1828
1826
@@ -1893,7 +1891,7 @@ def update_tls_client_auth(self, *, accept: str = None, value: str = None, **kwa
1893
1891
1894
1892
def get_browser_check (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
1895
1893
"""
1896
- get browser check setting.
1894
+ Get browser check setting.
1897
1895
1898
1896
Get browser check setting for a zone.
1899
1897
@@ -1964,7 +1962,7 @@ def update_browser_check(self, *, accept: str = None, value: str = None, **kwarg
1964
1962
1965
1963
def get_enable_error_pages_on (self , ** kwargs ) -> DetailedResponse :
1966
1964
"""
1967
- get enable error pages on setting.
1965
+ Get enable error pages on setting.
1968
1966
1969
1967
Get enable error pages on setting for a zone.
1970
1968
@@ -2031,7 +2029,7 @@ def update_enable_error_pages_on(self, *, accept: str = None, value: str = None,
2031
2029
2032
2030
def get_web_application_firewall (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
2033
2031
"""
2034
- get web application firewall setting.
2032
+ Get web application firewall setting.
2035
2033
2036
2034
Get web application firewall setting for a zone.
2037
2035
@@ -2102,7 +2100,7 @@ def update_web_application_firewall(self, *, accept: str = None, value: str = No
2102
2100
2103
2101
def get_ciphers (self , * , accept : str = None , ** kwargs ) -> DetailedResponse :
2104
2102
"""
2105
- get ciphers setting.
2103
+ Get ciphers setting.
2106
2104
2107
2105
Get ciphers setting for a zone.
2108
2106
0 commit comments