Skip to content

Commit 5662a87

Browse files
feat(api): api update
1 parent 1e499f3 commit 5662a87

3 files changed

Lines changed: 120 additions & 6 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1781
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-97d96a216e844ce5d0e2fcaea34f8e35db45dea86068bd95a88d3bb33a6f0c0d.yml
3-
openapi_spec_hash: 4fa5e37d0d49108f256d15dde5edef42
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d71a3caeff1c20ff21ed71844ae8abde6c126959582dd71de1b90eae7b72d534.yml
3+
openapi_spec_hash: ecfcefd6283b0343bfde6ebdf545bbac
44
config_hash: 242134bf2dc570f5555bf479c40a42d0

src/cloudflare/types/ssl/certificate_pack_create_response.py

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,41 @@
77
from .status import Status
88
from ..._models import BaseModel
99

10-
__all__ = ["CertificatePackCreateResponse"]
10+
__all__ = ["CertificatePackCreateResponse", "ValidationError", "ValidationRecord"]
11+
12+
13+
class ValidationError(BaseModel):
14+
message: Optional[str] = None
15+
"""A domain validation error."""
16+
17+
18+
class ValidationRecord(BaseModel):
19+
emails: Optional[List[str]] = None
20+
"""
21+
The set of email addresses that the certificate authority (CA) will use to
22+
complete domain validation.
23+
"""
24+
25+
http_body: Optional[str] = None
26+
"""
27+
The content that the certificate authority (CA) will expect to find at the
28+
http_url during the domain validation.
29+
"""
30+
31+
http_url: Optional[str] = None
32+
"""The url that will be checked during domain validation."""
33+
34+
txt_name: Optional[str] = None
35+
"""
36+
The hostname that the certificate authority (CA) will check for a TXT record
37+
during domain validation .
38+
"""
39+
40+
txt_value: Optional[str] = None
41+
"""
42+
The TXT record that the certificate authority (CA) will check during domain
43+
validation.
44+
"""
1145

1246

1347
class CertificatePackCreateResponse(BaseModel):
@@ -38,11 +72,34 @@ class CertificatePackCreateResponse(BaseModel):
3872
status: Optional[Status] = None
3973
"""Status of certificate pack."""
4074

41-
type: Optional[Literal["advanced"]] = None
75+
type: Optional[
76+
Literal[
77+
"mh_custom",
78+
"managed_hostname",
79+
"sni_custom",
80+
"universal",
81+
"advanced",
82+
"total_tls",
83+
"keyless",
84+
"legacy_custom",
85+
]
86+
] = None
4287
"""Type of certificate pack."""
4388

89+
validation_errors: Optional[List[ValidationError]] = None
90+
"""
91+
Domain validation errors that have been received by the certificate authority
92+
(CA).
93+
"""
94+
4495
validation_method: Optional[Literal["txt", "http", "email"]] = None
4596
"""Validation Method selected for the order."""
4697

98+
validation_records: Optional[List[ValidationRecord]] = None
99+
"""Certificates' validation records.
100+
101+
Only present when certificate pack is in "pending_validation" status
102+
"""
103+
47104
validity_days: Optional[Literal[14, 30, 90, 365]] = None
48105
"""Validity Days selected for the order."""

src/cloudflare/types/ssl/certificate_pack_edit_response.py

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,41 @@
77
from .status import Status
88
from ..._models import BaseModel
99

10-
__all__ = ["CertificatePackEditResponse"]
10+
__all__ = ["CertificatePackEditResponse", "ValidationError", "ValidationRecord"]
11+
12+
13+
class ValidationError(BaseModel):
14+
message: Optional[str] = None
15+
"""A domain validation error."""
16+
17+
18+
class ValidationRecord(BaseModel):
19+
emails: Optional[List[str]] = None
20+
"""
21+
The set of email addresses that the certificate authority (CA) will use to
22+
complete domain validation.
23+
"""
24+
25+
http_body: Optional[str] = None
26+
"""
27+
The content that the certificate authority (CA) will expect to find at the
28+
http_url during the domain validation.
29+
"""
30+
31+
http_url: Optional[str] = None
32+
"""The url that will be checked during domain validation."""
33+
34+
txt_name: Optional[str] = None
35+
"""
36+
The hostname that the certificate authority (CA) will check for a TXT record
37+
during domain validation .
38+
"""
39+
40+
txt_value: Optional[str] = None
41+
"""
42+
The TXT record that the certificate authority (CA) will check during domain
43+
validation.
44+
"""
1145

1246

1347
class CertificatePackEditResponse(BaseModel):
@@ -38,11 +72,34 @@ class CertificatePackEditResponse(BaseModel):
3872
status: Optional[Status] = None
3973
"""Status of certificate pack."""
4074

41-
type: Optional[Literal["advanced"]] = None
75+
type: Optional[
76+
Literal[
77+
"mh_custom",
78+
"managed_hostname",
79+
"sni_custom",
80+
"universal",
81+
"advanced",
82+
"total_tls",
83+
"keyless",
84+
"legacy_custom",
85+
]
86+
] = None
4287
"""Type of certificate pack."""
4388

89+
validation_errors: Optional[List[ValidationError]] = None
90+
"""
91+
Domain validation errors that have been received by the certificate authority
92+
(CA).
93+
"""
94+
4495
validation_method: Optional[Literal["txt", "http", "email"]] = None
4596
"""Validation Method selected for the order."""
4697

98+
validation_records: Optional[List[ValidationRecord]] = None
99+
"""Certificates' validation records.
100+
101+
Only present when certificate pack is in "pending_validation" status
102+
"""
103+
47104
validity_days: Optional[Literal[14, 30, 90, 365]] = None
48105
"""Validity Days selected for the order."""

0 commit comments

Comments
 (0)