Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): update via SDK Studio #292

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2996,7 +2996,7 @@ Types:
```python
from cloudflare.types import (
RequestRule,
ResponeRule,
ResponseRule,
Ruleset,
RulesetCreateResponse,
RulesetUpdateResponse,
Expand Down Expand Up @@ -3689,7 +3689,6 @@ Types:
```python
from cloudflare.types.intel.attack_surface_report import (
IssueClass,
IssueType,
Product,
SeverityQueryParam,
Subject,
Expand Down
178 changes: 161 additions & 17 deletions src/cloudflare/resources/intel/attack_surface_report/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from __future__ import annotations

from typing import Any, List, Type, cast
from typing_extensions import Literal

import httpx

Expand All @@ -28,7 +29,6 @@
from ....types.intel.attack_surface_report import (
ProductParam,
SubjectParam,
IssueTypeParam,
IssueClassParam,
IssueListResponse,
IssueTypeResponse,
Expand Down Expand Up @@ -62,8 +62,26 @@ def list(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -136,8 +154,26 @@ def class_(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
product_neq: ProductParam | NotGiven = NOT_GIVEN,
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -251,8 +287,26 @@ def severity(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
product_neq: ProductParam | NotGiven = NOT_GIVEN,
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -317,8 +371,26 @@ def type(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
product_neq: ProductParam | NotGiven = NOT_GIVEN,
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -393,8 +465,26 @@ def list(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -467,8 +557,26 @@ async def class_(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
product_neq: ProductParam | NotGiven = NOT_GIVEN,
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -582,8 +690,26 @@ async def severity(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
product_neq: ProductParam | NotGiven = NOT_GIVEN,
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -648,8 +774,26 @@ async def type(
dismissed: bool | NotGiven = NOT_GIVEN,
issue_class: IssueClassParam | NotGiven = NOT_GIVEN,
issue_class_neq: IssueClassParam | NotGiven = NOT_GIVEN,
issue_type: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type_neq: IssueTypeParam | NotGiven = NOT_GIVEN,
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
issue_type_neq: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]
| NotGiven = NOT_GIVEN,
product: ProductParam | NotGiven = NOT_GIVEN,
product_neq: ProductParam | NotGiven = NOT_GIVEN,
severity: List[SeverityQueryParam] | NotGiven = NOT_GIVEN,
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
from .header_param import HeaderParam as HeaderParam
from .health_check import HealthCheck as HealthCheck
from .origin_param import OriginParam as OriginParam
from .respone_rule import ResponeRule as ResponeRule
from .target_param import TargetParam as TargetParam
from .tunnel_param import TunnelParam as TunnelParam
from .waiting_room import WaitingRoom as WaitingRoom
Expand All @@ -74,6 +73,7 @@
from .queue_created import QueueCreated as QueueCreated
from .queue_updated import QueueUpdated as QueueUpdated
from .request_model import RequestModel as RequestModel
from .response_rule import ResponseRule as ResponseRule
from .edge_ips_param import EdgeIPsParam as EdgeIPsParam
from .filter_options import FilterOptions as FilterOptions
from .hostname_param import HostnameParam as HostnameParam
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from .product_param import ProductParam as ProductParam
from .subject_param import SubjectParam as SubjectParam
from .issue_type_param import IssueTypeParam as IssueTypeParam
from .issue_class_param import IssueClassParam as IssueClassParam
from .issue_list_params import IssueListParams as IssueListParams
from .issue_type_params import IssueTypeParams as IssueTypeParams
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
from __future__ import annotations

from typing import List
from typing_extensions import Required, Annotated, TypedDict
from typing_extensions import Literal, Required, Annotated, TypedDict

from ...._utils import PropertyInfo
from .product_param import ProductParam
from .subject_param import SubjectParam
from .issue_type_param import IssueTypeParam
from .issue_class_param import IssueClassParam
from .severity_query_param import SeverityQueryParam

Expand All @@ -25,9 +24,28 @@ class IssueClassParams(TypedDict, total=False):

issue_class_neq: Annotated[IssueClassParam, PropertyInfo(alias="issue_class~neq")]

issue_type: IssueTypeParam

issue_type_neq: Annotated[IssueTypeParam, PropertyInfo(alias="issue_type~neq")]
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]

issue_type_neq: Annotated[
List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
],
PropertyInfo(alias="issue_type~neq"),
]

product: ProductParam

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
from __future__ import annotations

from typing import List
from typing_extensions import Required, Annotated, TypedDict
from typing_extensions import Literal, Required, Annotated, TypedDict

from ...._utils import PropertyInfo
from .product_param import ProductParam
from .subject_param import SubjectParam
from .issue_type_param import IssueTypeParam
from .issue_class_param import IssueClassParam
from .severity_query_param import SeverityQueryParam

Expand All @@ -25,9 +24,28 @@ class IssueListParams(TypedDict, total=False):

issue_class_neq: Annotated[IssueClassParam, PropertyInfo(alias="issue_class~neq")]

issue_type: IssueTypeParam

issue_type_neq: Annotated[IssueTypeParam, PropertyInfo(alias="issue_type~neq")]
issue_type: List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
]

issue_type_neq: Annotated[
List[
Literal[
"compliance_violation",
"email_security",
"exposed_infrastructure",
"insecure_configuration",
"weak_authentication",
]
],
PropertyInfo(alias="issue_type~neq"),
]

page: int
"""Current page within paginated list of results"""
Expand Down
Loading