Skip to content

Commit 506c5a5

Browse files
feat(api): api update
1 parent 05fe237 commit 506c5a5

14 files changed

+158
-50
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1706
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f1a523b24da1d5be27d0a24eca50f162bca8158612666e6293b543cc9f798232.yml
3-
openapi_spec_hash: e2656a7cbc63b52eaba4b557d3ee6016
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d4beb15f5e5c590c847b87972f604fa43402db9826de86563bf3dd0673357e52.yml
3+
openapi_spec_hash: bd2b387ae5fadf95587cd98ba672d053
44
config_hash: 67f412c990647f3cb598378fa22a9db5

src/cloudflare/resources/intel/attack_surface_report/issue_types.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get(
5555
Get Security Center Issues Types
5656
5757
Args:
58-
account_id: Identifier
58+
account_id: Identifier.
5959
6060
extra_headers: Send extra headers
6161
@@ -112,7 +112,7 @@ def get(
112112
Get Security Center Issues Types
113113
114114
Args:
115-
account_id: Identifier
115+
account_id: Identifier.
116116
117117
extra_headers: Send extra headers
118118

src/cloudflare/resources/intel/attack_surface_report/issues.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def list(
8585
Get Security Center Issues
8686
8787
Args:
88-
account_id: Identifier
88+
account_id: Identifier.
8989
9090
page: Current page within paginated list of results
9191
@@ -157,7 +157,7 @@ def class_(
157157
Get Security Center Issue Counts by Class
158158
159159
Args:
160-
account_id: Identifier
160+
account_id: Identifier.
161161
162162
extra_headers: Send extra headers
163163
@@ -214,7 +214,7 @@ def dismiss(
214214
Archive Security Center Insight
215215
216216
Args:
217-
account_id: Identifier
217+
account_id: Identifier.
218218
219219
extra_headers: Send extra headers
220220
@@ -263,7 +263,7 @@ def severity(
263263
Get Security Center Issue Counts by Severity
264264
265265
Args:
266-
account_id: Identifier
266+
account_id: Identifier.
267267
268268
extra_headers: Send extra headers
269269
@@ -329,7 +329,7 @@ def type(
329329
Get Security Center Issue Counts by Type
330330
331331
Args:
332-
account_id: Identifier
332+
account_id: Identifier.
333333
334334
extra_headers: Send extra headers
335335
@@ -418,7 +418,7 @@ def list(
418418
Get Security Center Issues
419419
420420
Args:
421-
account_id: Identifier
421+
account_id: Identifier.
422422
423423
page: Current page within paginated list of results
424424
@@ -490,7 +490,7 @@ async def class_(
490490
Get Security Center Issue Counts by Class
491491
492492
Args:
493-
account_id: Identifier
493+
account_id: Identifier.
494494
495495
extra_headers: Send extra headers
496496
@@ -547,7 +547,7 @@ async def dismiss(
547547
Archive Security Center Insight
548548
549549
Args:
550-
account_id: Identifier
550+
account_id: Identifier.
551551
552552
extra_headers: Send extra headers
553553
@@ -596,7 +596,7 @@ async def severity(
596596
Get Security Center Issue Counts by Severity
597597
598598
Args:
599-
account_id: Identifier
599+
account_id: Identifier.
600600
601601
extra_headers: Send extra headers
602602
@@ -662,7 +662,7 @@ async def type(
662662
Get Security Center Issue Counts by Type
663663
664664
Args:
665-
account_id: Identifier
665+
account_id: Identifier.
666666
667667
extra_headers: Send extra headers
668668

src/cloudflare/resources/security_txt.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def update(
7171
Update security.txt
7272
7373
Args:
74-
zone_id: Identifier
74+
zone_id: Identifier.
7575
7676
extra_headers: Send extra headers
7777
@@ -120,7 +120,7 @@ def delete(
120120
Delete security.txt
121121
122122
Args:
123-
zone_id: Identifier
123+
zone_id: Identifier.
124124
125125
extra_headers: Send extra headers
126126
@@ -155,7 +155,7 @@ def get(
155155
Get security.txt
156156
157157
Args:
158-
zone_id: Identifier
158+
zone_id: Identifier.
159159
160160
extra_headers: Send extra headers
161161
@@ -224,7 +224,7 @@ async def update(
224224
Update security.txt
225225
226226
Args:
227-
zone_id: Identifier
227+
zone_id: Identifier.
228228
229229
extra_headers: Send extra headers
230230
@@ -273,7 +273,7 @@ async def delete(
273273
Delete security.txt
274274
275275
Args:
276-
zone_id: Identifier
276+
zone_id: Identifier.
277277
278278
extra_headers: Send extra headers
279279
@@ -308,7 +308,7 @@ async def get(
308308
Get security.txt
309309
310310
Args:
311-
zone_id: Identifier
311+
zone_id: Identifier.
312312
313313
extra_headers: Send extra headers
314314

src/cloudflare/types/intel/attack_surface_report/issue_class_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class IssueClassParams(TypedDict, total=False):
1616
account_id: Required[str]
17-
"""Identifier"""
17+
"""Identifier."""
1818

1919
dismissed: bool
2020

src/cloudflare/types/intel/attack_surface_report/issue_dismiss_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99

1010
class IssueDismissParams(TypedDict, total=False):
1111
account_id: Required[str]
12-
"""Identifier"""
12+
"""Identifier."""
1313

1414
dismiss: bool
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,45 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
3+
from typing import List, Optional
44
from typing_extensions import Literal
55

66
from ...._models import BaseModel
7-
from ...shared.response_info import ResponseInfo
87

9-
__all__ = ["IssueDismissResponse"]
8+
__all__ = ["IssueDismissResponse", "Error", "ErrorSource", "Message", "MessageSource"]
9+
10+
11+
class ErrorSource(BaseModel):
12+
pointer: Optional[str] = None
13+
14+
15+
class Error(BaseModel):
16+
code: int
17+
18+
message: str
19+
20+
documentation_url: Optional[str] = None
21+
22+
source: Optional[ErrorSource] = None
23+
24+
25+
class MessageSource(BaseModel):
26+
pointer: Optional[str] = None
27+
28+
29+
class Message(BaseModel):
30+
code: int
31+
32+
message: str
33+
34+
documentation_url: Optional[str] = None
35+
36+
source: Optional[MessageSource] = None
1037

1138

1239
class IssueDismissResponse(BaseModel):
13-
errors: List[ResponseInfo]
40+
errors: List[Error]
1441

15-
messages: List[ResponseInfo]
42+
messages: List[Message]
1643

1744
success: Literal[True]
18-
"""Whether the API call was successful"""
45+
"""Whether the API call was successful."""

src/cloudflare/types/intel/attack_surface_report/issue_list_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class IssueListParams(TypedDict, total=False):
1616
account_id: Required[str]
17-
"""Identifier"""
17+
"""Identifier."""
1818

1919
dismissed: bool
2020

src/cloudflare/types/intel/attack_surface_report/issue_severity_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class IssueSeverityParams(TypedDict, total=False):
1616
account_id: Required[str]
17-
"""Identifier"""
17+
"""Identifier."""
1818

1919
dismissed: bool
2020

src/cloudflare/types/intel/attack_surface_report/issue_type_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class IssueTypeParams(TypedDict, total=False):
1616
account_id: Required[str]
17-
"""Identifier"""
17+
"""Identifier."""
1818

1919
dismissed: bool
2020

Original file line numberDiff line numberDiff line change
@@ -1,18 +1,45 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
3+
from typing import List, Optional
44
from typing_extensions import Literal
55

66
from ..._models import BaseModel
7-
from ..shared.response_info import ResponseInfo
87

9-
__all__ = ["InsightDismissResponse"]
8+
__all__ = ["InsightDismissResponse", "Error", "ErrorSource", "Message", "MessageSource"]
9+
10+
11+
class ErrorSource(BaseModel):
12+
pointer: Optional[str] = None
13+
14+
15+
class Error(BaseModel):
16+
code: int
17+
18+
message: str
19+
20+
documentation_url: Optional[str] = None
21+
22+
source: Optional[ErrorSource] = None
23+
24+
25+
class MessageSource(BaseModel):
26+
pointer: Optional[str] = None
27+
28+
29+
class Message(BaseModel):
30+
code: int
31+
32+
message: str
33+
34+
documentation_url: Optional[str] = None
35+
36+
source: Optional[MessageSource] = None
1037

1138

1239
class InsightDismissResponse(BaseModel):
13-
errors: List[ResponseInfo]
40+
errors: List[Error]
1441

15-
messages: List[ResponseInfo]
42+
messages: List[Message]
1643

1744
success: Literal[True]
18-
"""Whether the API call was successful"""
45+
"""Whether the API call was successful."""
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,45 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
3+
from typing import List, Optional
44
from typing_extensions import Literal
55

66
from ..._models import BaseModel
7-
from ..shared.response_info import ResponseInfo
87

9-
__all__ = ["SecurityTXTDeleteResponse"]
8+
__all__ = ["SecurityTXTDeleteResponse", "Error", "ErrorSource", "Message", "MessageSource"]
9+
10+
11+
class ErrorSource(BaseModel):
12+
pointer: Optional[str] = None
13+
14+
15+
class Error(BaseModel):
16+
code: int
17+
18+
message: str
19+
20+
documentation_url: Optional[str] = None
21+
22+
source: Optional[ErrorSource] = None
23+
24+
25+
class MessageSource(BaseModel):
26+
pointer: Optional[str] = None
27+
28+
29+
class Message(BaseModel):
30+
code: int
31+
32+
message: str
33+
34+
documentation_url: Optional[str] = None
35+
36+
source: Optional[MessageSource] = None
1037

1138

1239
class SecurityTXTDeleteResponse(BaseModel):
13-
errors: List[ResponseInfo]
40+
errors: List[Error]
1441

15-
messages: List[ResponseInfo]
42+
messages: List[Message]
1643

1744
success: Literal[True]
18-
"""Whether the API call was successful"""
45+
"""Whether the API call was successful."""

src/cloudflare/types/security_txt/security_txt_update_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class SecurityTXTUpdateParams(TypedDict, total=False):
1515
zone_id: Required[str]
16-
"""Identifier"""
16+
"""Identifier."""
1717

1818
acknowledgments: List[str]
1919

0 commit comments

Comments
 (0)