| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a461a15 commit 820bf1f
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -71,12 +71,12 @@ def create( | |||
| 71 | 71 | *, | |
| 72 | 72 | zone_id: str, | |
| 73 | 73 | certificate: str, | |
| 74 | - private_key: str, | ||
| 75 | 74 | bundle_method: BundleMethod | Omit = omit, | |
| 76 | 75 | custom_csr_id: str | Omit = omit, | |
| 77 | 76 | deploy: Literal["staging", "production"] | Omit = omit, | |
| 78 | 77 | geo_restrictions: GeoRestrictionsParam | Omit = omit, | |
| 79 | 78 | policy: str | Omit = omit, | |
| 79 | + private_key: str | Omit = omit, | ||
| 80 | 80 | type: Literal["legacy_custom", "sni_custom"] | Omit = omit, | |
| 81 | 81 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. | |
| 82 | 82 | # The extra values given here take precedence over values defined on the client or passed to this method. | |
@@ -93,16 +93,14 @@ def create( | |||
| 93 | 93 | ||
| 94 | 94 | certificate: The zone's SSL certificate or certificate and the intermediate(s). | |
| 95 | 95 | ||
| 96 | - private_key: The zone's private key. | ||
| 97 | - | ||
| 98 | 96 | bundle_method: A ubiquitous bundle has the highest probability of being verified everywhere, | |
| 99 | 97 | even by clients using outdated or unusual trust stores. An optimal bundle uses | |
| 100 | 98 | the shortest chain and newest intermediates. And the force bundle verifies the | |
| 101 | 99 | chain, but does not otherwise modify it. | |
| 102 | 100 | ||
| 103 | 101 | custom_csr_id: The identifier for the Custom CSR that was used. | |
| 104 | 102 | ||
| 105 | - deploy: The environment to deploy the certificate to, defaults to production | ||
| 103 | + deploy: The environment to deploy the certificate to, defaults to production. | ||
| 106 | 104 | ||
| 107 | 105 | geo_restrictions: Specify the region where your private key can be held locally for optimal TLS | |
| 108 | 106 | performance. HTTPS connections to any excluded data center will still be fully | |
@@ -124,6 +122,9 @@ def create( | |||
| 124 | 122 | "policy_restrictions" in requests. Responses return this field as | |
| 125 | 123 | "policy_restrictions". | |
| 126 | 124 | ||
| 125 | + private_key: The zone's private key. Not required if custom_csr_id is provided, in which case | ||
| 126 | + the private key is retrieved from the CSR record held by Cloudflare. | ||
| 127 | + | ||
| 127 | 128 | type: The type 'legacy_custom' enables support for legacy clients which do not include | |
| 128 | 129 | SNI in the TLS handshake. | |
| 129 | 130 | ||
@@ -142,12 +143,12 @@ def create( | |||
| 142 | 143 | body=maybe_transform( | |
| 143 | 144 | { | |
| 144 | 145 | "certificate": certificate, | |
| 145 | - "private_key": private_key, | ||
| 146 | 146 | "bundle_method": bundle_method, | |
| 147 | 147 | "custom_csr_id": custom_csr_id, | |
| 148 | 148 | "deploy": deploy, | |
| 149 | 149 | "geo_restrictions": geo_restrictions, | |
| 150 | 150 | "policy": policy, | |
| 151 | + "private_key": private_key, | ||
| 151 | 152 | "type": type, | |
| 152 | 153 | }, | |
| 153 | 154 | custom_certificate_create_params.CustomCertificateCreateParams, | |
@@ -316,7 +317,7 @@ def edit( | |||
| 316 | 317 | ||
| 317 | 318 | custom_csr_id: The identifier for the Custom CSR that was used. | |
| 318 | 319 | ||
| 319 | - deploy: The environment to deploy the certificate to, defaults to production | ||
| 320 | + deploy: The environment to deploy the certificate to, defaults to production. | ||
| 320 | 321 | ||
| 321 | 322 | geo_restrictions: Specify the region where your private key can be held locally for optimal TLS | |
| 322 | 323 | performance. HTTPS connections to any excluded data center will still be fully | |
@@ -338,7 +339,8 @@ def edit( | |||
| 338 | 339 | "policy_restrictions" in requests. Responses return this field as | |
| 339 | 340 | "policy_restrictions". | |
| 340 | 341 | ||
| 341 | - private_key: The zone's private key. | ||
| 342 | + private_key: The zone's private key. Not required if custom_csr_id is provided, in which case | ||
| 343 | + the private key is retrieved from the CSR record held by Cloudflare. | ||
| 342 | 344 | ||
| 343 | 345 | extra_headers: Send extra headers | |
| 344 | 346 | ||
@@ -464,12 +466,12 @@ async def create( | |||
| 464 | 466 | *, | |
| 465 | 467 | zone_id: str, | |
| 466 | 468 | certificate: str, | |
| 467 | - private_key: str, | ||
| 468 | 469 | bundle_method: BundleMethod | Omit = omit, | |
| 469 | 470 | custom_csr_id: str | Omit = omit, | |
| 470 | 471 | deploy: Literal["staging", "production"] | Omit = omit, | |
| 471 | 472 | geo_restrictions: GeoRestrictionsParam | Omit = omit, | |
| 472 | 473 | policy: str | Omit = omit, | |
| 474 | + private_key: str | Omit = omit, | ||
| 473 | 475 | type: Literal["legacy_custom", "sni_custom"] | Omit = omit, | |
| 474 | 476 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. | |
| 475 | 477 | # The extra values given here take precedence over values defined on the client or passed to this method. | |
@@ -486,16 +488,14 @@ async def create( | |||
| 486 | 488 | ||
| 487 | 489 | certificate: The zone's SSL certificate or certificate and the intermediate(s). | |
| 488 | 490 | ||
| 489 | - private_key: The zone's private key. | ||
| 490 | - | ||
| 491 | 491 | bundle_method: A ubiquitous bundle has the highest probability of being verified everywhere, | |
| 492 | 492 | even by clients using outdated or unusual trust stores. An optimal bundle uses | |
| 493 | 493 | the shortest chain and newest intermediates. And the force bundle verifies the | |
| 494 | 494 | chain, but does not otherwise modify it. | |
| 495 | 495 | ||
| 496 | 496 | custom_csr_id: The identifier for the Custom CSR that was used. | |
| 497 | 497 | ||
| 498 | - deploy: The environment to deploy the certificate to, defaults to production | ||
| 498 | + deploy: The environment to deploy the certificate to, defaults to production. | ||
| 499 | 499 | ||
| 500 | 500 | geo_restrictions: Specify the region where your private key can be held locally for optimal TLS | |
| 501 | 501 | performance. HTTPS connections to any excluded data center will still be fully | |
@@ -517,6 +517,9 @@ async def create( | |||
| 517 | 517 | "policy_restrictions" in requests. Responses return this field as | |
| 518 | 518 | "policy_restrictions". | |
| 519 | 519 | ||
| 520 | + private_key: The zone's private key. Not required if custom_csr_id is provided, in which case | ||
| 521 | + the private key is retrieved from the CSR record held by Cloudflare. | ||
| 522 | + | ||
| 520 | 523 | type: The type 'legacy_custom' enables support for legacy clients which do not include | |
| 521 | 524 | SNI in the TLS handshake. | |
| 522 | 525 | ||
@@ -535,12 +538,12 @@ async def create( | |||
| 535 | 538 | body=await async_maybe_transform( | |
| 536 | 539 | { | |
| 537 | 540 | "certificate": certificate, | |
| 538 | - "private_key": private_key, | ||
| 539 | 541 | "bundle_method": bundle_method, | |
| 540 | 542 | "custom_csr_id": custom_csr_id, | |
| 541 | 543 | "deploy": deploy, | |
| 542 | 544 | "geo_restrictions": geo_restrictions, | |
| 543 | 545 | "policy": policy, | |
| 546 | + "private_key": private_key, | ||
| 544 | 547 | "type": type, | |
| 545 | 548 | }, | |
| 546 | 549 | custom_certificate_create_params.CustomCertificateCreateParams, | |
@@ -709,7 +712,7 @@ async def edit( | |||
| 709 | 712 | ||
| 710 | 713 | custom_csr_id: The identifier for the Custom CSR that was used. | |
| 711 | 714 | ||
| 712 | - deploy: The environment to deploy the certificate to, defaults to production | ||
| 715 | + deploy: The environment to deploy the certificate to, defaults to production. | ||
| 713 | 716 | ||
| 714 | 717 | geo_restrictions: Specify the region where your private key can be held locally for optimal TLS | |
| 715 | 718 | performance. HTTPS connections to any excluded data center will still be fully | |
@@ -731,7 +734,8 @@ async def edit( | |||
| 731 | 734 | "policy_restrictions" in requests. Responses return this field as | |
| 732 | 735 | "policy_restrictions". | |
| 733 | 736 | ||
| 734 | - private_key: The zone's private key. | ||
| 737 | + private_key: The zone's private key. Not required if custom_csr_id is provided, in which case | ||
| 738 | + the private key is retrieved from the CSR record held by Cloudflare. | ||
| 735 | 739 | ||
| 736 | 740 | extra_headers: Send extra headers | |
| 737 | 741 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,9 +17,6 @@ class CustomCertificateCreateParams(TypedDict, total=False): | |||
| 17 | 17 | certificate: Required[str] | |
| 18 | 18 | """The zone's SSL certificate or certificate and the intermediate(s).""" | |
| 19 | 19 | ||
| 20 | - private_key: Required[str] | ||
| 21 | - """The zone's private key.""" | ||
| 22 | - | ||
| 23 | 20 | bundle_method: BundleMethod | |
| 24 | 21 | """ | |
| 25 | 22 | A ubiquitous bundle has the highest probability of being verified everywhere, | |
@@ -32,7 +29,7 @@ class CustomCertificateCreateParams(TypedDict, total=False): | |||
| 32 | 29 | """The identifier for the Custom CSR that was used.""" | |
| 33 | 30 | ||
| 34 | 31 | deploy: Literal["staging", "production"] | |
| 35 | - """The environment to deploy the certificate to, defaults to production""" | ||
| 32 | + """The environment to deploy the certificate to, defaults to production.""" | ||
| 36 | 33 | ||
| 37 | 34 | geo_restrictions: GeoRestrictionsParam | |
| 38 | 35 | """ | |
@@ -60,6 +57,13 @@ class CustomCertificateCreateParams(TypedDict, total=False): | |||
| 60 | 57 | "policy_restrictions". | |
| 61 | 58 | """ | |
| 62 | 59 | ||
| 60 | + private_key: str | ||
| 61 | + """The zone's private key. | ||
| 62 | + | ||
| 63 | + Not required if custom_csr_id is provided, in which case the private key is | ||
| 64 | + retrieved from the CSR record held by Cloudflare. | ||
| 65 | + """ | ||
| 66 | + | ||
| 63 | 67 | type: Literal["legacy_custom", "sni_custom"] | |
| 64 | 68 | """ | |
| 65 | 69 | The type 'legacy_custom' enables support for legacy clients which do not include | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,7 +29,7 @@ class CustomCertificateEditParams(TypedDict, total=False): | |||
| 29 | 29 | """The identifier for the Custom CSR that was used.""" | |
| 30 | 30 | ||
| 31 | 31 | deploy: Literal["staging", "production"] | |
| 32 | - """The environment to deploy the certificate to, defaults to production""" | ||
| 32 | + """The environment to deploy the certificate to, defaults to production.""" | ||
| 33 | 33 | ||
| 34 | 34 | geo_restrictions: GeoRestrictionsParam | |
| 35 | 35 | """ | |
@@ -58,4 +58,8 @@ class CustomCertificateEditParams(TypedDict, total=False): | |||
| 58 | 58 | """ | |
| 59 | 59 | ||
| 60 | 60 | private_key: str | |
| 61 | - """The zone's private key.""" | ||
| 61 | + """The zone's private key. | ||
| 62 | + | ||
| 63 | + Not required if custom_csr_id is provided, in which case the private key is | ||
| 64 | + retrieved from the CSR record held by Cloudflare. | ||
| 65 | + """ | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments