-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
feat(api): update via SDK Studio (#2194)
1 parent
d4deaed
commit 9949651
Showing
21 changed files
with
298 additions
and
608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
configured_endpoints: 1448 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a87c8380ec40a8719b4385109e29fd5ec40c54f39d6fe216861c55e43ab74fd3.yml | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4acaaed718bd08d16e3866d5ad032fbf2bbfeb978df2cf5164edb81fe41e4f89.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,227 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from typing import List, Union, Optional | ||
from datetime import datetime | ||
from typing_extensions import Literal, TypeAlias | ||
|
||
from ..._models import BaseModel | ||
|
||
__all__ = [ | ||
"APIShield", | ||
"Features", | ||
"FeaturesAPIShieldOperationFeatureThresholds", | ||
"FeaturesAPIShieldOperationFeatureThresholdsThresholds", | ||
"FeaturesAPIShieldOperationFeatureParameterSchemas", | ||
"FeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas", | ||
"FeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas", | ||
"FeaturesAPIShieldOperationFeatureAPIRouting", | ||
"FeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting", | ||
"FeaturesAPIShieldOperationFeatureConfidenceIntervals", | ||
"FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals", | ||
"FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold", | ||
"FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals", | ||
"FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90", | ||
"FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95", | ||
"FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99", | ||
"FeaturesAPIShieldOperationFeatureSchemaInfo", | ||
"FeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo", | ||
"FeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema", | ||
] | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureThresholdsThresholds(BaseModel): | ||
auth_id_tokens: Optional[int] = None | ||
"""The total number of auth-ids seen across this calculation.""" | ||
|
||
data_points: Optional[int] = None | ||
"""The number of data points used for the threshold suggestion calculation.""" | ||
|
||
last_updated: Optional[datetime] = None | ||
|
||
p50: Optional[int] = None | ||
"""The p50 quantile of requests (in period_seconds).""" | ||
|
||
p90: Optional[int] = None | ||
"""The p90 quantile of requests (in period_seconds).""" | ||
|
||
p99: Optional[int] = None | ||
"""The p99 quantile of requests (in period_seconds).""" | ||
|
||
period_seconds: Optional[int] = None | ||
"""The period over which this threshold is suggested.""" | ||
|
||
requests: Optional[int] = None | ||
"""The estimated number of requests covered by these calculations.""" | ||
|
||
suggested_threshold: Optional[int] = None | ||
"""The suggested threshold in requests done by the same auth_id or period_seconds.""" | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureThresholds(BaseModel): | ||
thresholds: Optional[FeaturesAPIShieldOperationFeatureThresholdsThresholds] = None | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas(BaseModel): | ||
parameters: Optional[List[object]] = None | ||
"""An array containing the learned parameter schemas.""" | ||
|
||
responses: Optional[object] = None | ||
"""An empty response object. | ||
This field is required to yield a valid operation schema. | ||
""" | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas(BaseModel): | ||
last_updated: Optional[datetime] = None | ||
|
||
parameter_schemas: Optional[FeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas] = ( | ||
None | ||
) | ||
"""An operation schema object containing a response.""" | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureParameterSchemas(BaseModel): | ||
parameter_schemas: FeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting(BaseModel): | ||
last_updated: Optional[datetime] = None | ||
|
||
route: Optional[str] = None | ||
"""Target route.""" | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureAPIRouting(BaseModel): | ||
api_routing: Optional[FeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting] = None | ||
"""API Routing settings on endpoint.""" | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90( | ||
BaseModel | ||
): | ||
lower: Optional[float] = None | ||
"""Lower bound for percentile estimate""" | ||
|
||
upper: Optional[float] = None | ||
"""Upper bound for percentile estimate""" | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95( | ||
BaseModel | ||
): | ||
lower: Optional[float] = None | ||
"""Lower bound for percentile estimate""" | ||
|
||
upper: Optional[float] = None | ||
"""Upper bound for percentile estimate""" | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99( | ||
BaseModel | ||
): | ||
lower: Optional[float] = None | ||
"""Lower bound for percentile estimate""" | ||
|
||
upper: Optional[float] = None | ||
"""Upper bound for percentile estimate""" | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals( | ||
BaseModel | ||
): | ||
p90: Optional[ | ||
FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 | ||
] = None | ||
"""Upper and lower bound for percentile estimate""" | ||
|
||
p95: Optional[ | ||
FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 | ||
] = None | ||
"""Upper and lower bound for percentile estimate""" | ||
|
||
p99: Optional[ | ||
FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 | ||
] = None | ||
"""Upper and lower bound for percentile estimate""" | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold(BaseModel): | ||
confidence_intervals: Optional[ | ||
FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals | ||
] = None | ||
|
||
mean: Optional[float] = None | ||
"""Suggested threshold.""" | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals(BaseModel): | ||
last_updated: Optional[datetime] = None | ||
|
||
suggested_threshold: Optional[ | ||
FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold | ||
] = None | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureConfidenceIntervals(BaseModel): | ||
confidence_intervals: Optional[FeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals] = None | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema(BaseModel): | ||
id: Optional[str] = None | ||
"""UUID""" | ||
|
||
created_at: Optional[datetime] = None | ||
|
||
is_learned: Optional[bool] = None | ||
"""True if schema is Cloudflare-provided.""" | ||
|
||
name: Optional[str] = None | ||
"""Schema file name.""" | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo(BaseModel): | ||
active_schema: Optional[FeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema] = None | ||
"""Schema active on endpoint.""" | ||
|
||
learned_available: Optional[bool] = None | ||
"""True if a Cloudflare-provided learned schema is available for this endpoint.""" | ||
|
||
mitigation_action: Optional[Literal["none", "log", "block"]] = None | ||
"""Action taken on requests failing validation.""" | ||
|
||
|
||
class FeaturesAPIShieldOperationFeatureSchemaInfo(BaseModel): | ||
schema_info: Optional[FeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo] = None | ||
|
||
|
||
Features: TypeAlias = Union[ | ||
FeaturesAPIShieldOperationFeatureThresholds, | ||
FeaturesAPIShieldOperationFeatureParameterSchemas, | ||
FeaturesAPIShieldOperationFeatureAPIRouting, | ||
FeaturesAPIShieldOperationFeatureConfidenceIntervals, | ||
FeaturesAPIShieldOperationFeatureSchemaInfo, | ||
] | ||
|
||
|
||
class APIShield(BaseModel): | ||
endpoint: str | ||
""" | ||
The endpoint which can contain path parameter templates in curly braces, each | ||
will be replaced from left to right with {varN}, starting with {var1}, during | ||
insertion. This will further be Cloudflare-normalized upon insertion. See: | ||
https://developers.cloudflare.com/rules/normalization/how-it-works/. | ||
""" | ||
|
||
host: str | ||
"""RFC3986-compliant host.""" | ||
|
||
last_updated: datetime | ||
|
||
method: Literal["GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "CONNECT", "PATCH", "TRACE"] | ||
"""The HTTP method used to access the endpoint.""" | ||
|
||
operation_id: str | ||
"""UUID""" | ||
|
||
features: Optional[Features] = None |
23 changes: 0 additions & 23 deletions
23
src/cloudflare/types/api_gateway/api_shield_operation_model.py
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
src/cloudflare/types/api_gateway/api_shield_operation_model_param.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
239 changes: 5 additions & 234 deletions
239
src/cloudflare/types/api_gateway/operation_create_response.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,239 +1,10 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from typing import List, Union, Optional | ||
from datetime import datetime | ||
from typing_extensions import Literal, TypeAlias | ||
from typing import List | ||
from typing_extensions import TypeAlias | ||
|
||
from ..._models import BaseModel | ||
from .api_shield import APIShield | ||
|
||
__all__ = [ | ||
"OperationCreateResponse", | ||
"OperationCreateResponseItem", | ||
"OperationCreateResponseItemFeatures", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureThresholds", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureThresholdsThresholds", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureParameterSchemas", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureAPIRouting", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervals", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureSchemaInfo", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo", | ||
"OperationCreateResponseItemFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema", | ||
] | ||
__all__ = ["OperationCreateResponse"] | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureThresholdsThresholds(BaseModel): | ||
auth_id_tokens: Optional[int] = None | ||
"""The total number of auth-ids seen across this calculation foo.""" | ||
|
||
data_points: Optional[int] = None | ||
"""The number of data points used for the threshold suggestion calculation.""" | ||
|
||
last_updated: Optional[datetime] = None | ||
|
||
p50: Optional[int] = None | ||
"""The p50 quantile of requests (in period_seconds).""" | ||
|
||
p90: Optional[int] = None | ||
"""The p90 quantile of requests (in period_seconds).""" | ||
|
||
p99: Optional[int] = None | ||
"""The p99 quantile of requests (in period_seconds).""" | ||
|
||
period_seconds: Optional[int] = None | ||
"""The period over which this threshold is suggested.""" | ||
|
||
requests: Optional[int] = None | ||
"""The estimated number of requests covered by these calculations.""" | ||
|
||
suggested_threshold: Optional[int] = None | ||
"""The suggested threshold in requests done by the same auth_id or period_seconds.""" | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureThresholds(BaseModel): | ||
thresholds: Optional[OperationCreateResponseItemFeaturesAPIShieldOperationFeatureThresholdsThresholds] = None | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas( | ||
BaseModel | ||
): | ||
parameters: Optional[List[object]] = None | ||
"""An array containing the learned parameter schemas.""" | ||
|
||
responses: Optional[object] = None | ||
"""An empty response object. | ||
This field is required to yield a valid operation schema. | ||
""" | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas(BaseModel): | ||
last_updated: Optional[datetime] = None | ||
|
||
parameter_schemas: Optional[ | ||
OperationCreateResponseItemFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemasParameterSchemas | ||
] = None | ||
"""An operation schema object containing a response.""" | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureParameterSchemas(BaseModel): | ||
parameter_schemas: OperationCreateResponseItemFeaturesAPIShieldOperationFeatureParameterSchemasParameterSchemas | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting(BaseModel): | ||
last_updated: Optional[datetime] = None | ||
|
||
route: Optional[str] = None | ||
"""Target route.""" | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureAPIRouting(BaseModel): | ||
api_routing: Optional[OperationCreateResponseItemFeaturesAPIShieldOperationFeatureAPIRoutingAPIRouting] = None | ||
"""API Routing settings on endpoint.""" | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90( | ||
BaseModel | ||
): | ||
lower: Optional[float] = None | ||
"""Lower bound for percentile estimate""" | ||
|
||
upper: Optional[float] = None | ||
"""Upper bound for percentile estimate""" | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95( | ||
BaseModel | ||
): | ||
lower: Optional[float] = None | ||
"""Lower bound for percentile estimate""" | ||
|
||
upper: Optional[float] = None | ||
"""Upper bound for percentile estimate""" | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99( | ||
BaseModel | ||
): | ||
lower: Optional[float] = None | ||
"""Lower bound for percentile estimate""" | ||
|
||
upper: Optional[float] = None | ||
"""Upper bound for percentile estimate""" | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals( | ||
BaseModel | ||
): | ||
p90: Optional[ | ||
OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP90 | ||
] = None | ||
"""Upper and lower bound for percentile estimate""" | ||
|
||
p95: Optional[ | ||
OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP95 | ||
] = None | ||
"""Upper and lower bound for percentile estimate""" | ||
|
||
p99: Optional[ | ||
OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervalsP99 | ||
] = None | ||
"""Upper and lower bound for percentile estimate""" | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold( | ||
BaseModel | ||
): | ||
confidence_intervals: Optional[ | ||
OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThresholdConfidenceIntervals | ||
] = None | ||
|
||
mean: Optional[float] = None | ||
"""Suggested threshold.""" | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals(BaseModel): | ||
last_updated: Optional[datetime] = None | ||
|
||
suggested_threshold: Optional[ | ||
OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervalsSuggestedThreshold | ||
] = None | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervals(BaseModel): | ||
confidence_intervals: Optional[ | ||
OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervalsConfidenceIntervals | ||
] = None | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema(BaseModel): | ||
id: Optional[str] = None | ||
"""UUID""" | ||
|
||
created_at: Optional[datetime] = None | ||
|
||
is_learned: Optional[bool] = None | ||
"""True if schema is Cloudflare-provided.""" | ||
|
||
name: Optional[str] = None | ||
"""Schema file name.""" | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo(BaseModel): | ||
active_schema: Optional[ | ||
OperationCreateResponseItemFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfoActiveSchema | ||
] = None | ||
"""Schema active on endpoint.""" | ||
|
||
learned_available: Optional[bool] = None | ||
"""True if a Cloudflare-provided learned schema is available for this endpoint.""" | ||
|
||
mitigation_action: Optional[Literal["none", "log", "block"]] = None | ||
"""Action taken on requests failing validation.""" | ||
|
||
|
||
class OperationCreateResponseItemFeaturesAPIShieldOperationFeatureSchemaInfo(BaseModel): | ||
schema_info: Optional[OperationCreateResponseItemFeaturesAPIShieldOperationFeatureSchemaInfoSchemaInfo] = None | ||
|
||
|
||
OperationCreateResponseItemFeatures: TypeAlias = Union[ | ||
OperationCreateResponseItemFeaturesAPIShieldOperationFeatureThresholds, | ||
OperationCreateResponseItemFeaturesAPIShieldOperationFeatureParameterSchemas, | ||
OperationCreateResponseItemFeaturesAPIShieldOperationFeatureAPIRouting, | ||
OperationCreateResponseItemFeaturesAPIShieldOperationFeatureConfidenceIntervals, | ||
OperationCreateResponseItemFeaturesAPIShieldOperationFeatureSchemaInfo, | ||
] | ||
|
||
|
||
class OperationCreateResponseItem(BaseModel): | ||
endpoint: str | ||
""" | ||
The endpoint which can contain path parameter templates in curly braces, each | ||
will be replaced from left to right with {varN}, starting with {var1}, during | ||
insertion. This will further be Cloudflare-normalized upon insertion. See: | ||
https://developers.cloudflare.com/rules/normalization/how-it-works/. | ||
""" | ||
|
||
host: str | ||
"""RFC3986-compliant host.""" | ||
|
||
last_updated: datetime | ||
|
||
method: Literal["GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "CONNECT", "PATCH", "TRACE"] | ||
"""The HTTP method used to access the endpoint.""" | ||
|
||
operation_id: str | ||
"""UUID""" | ||
|
||
features: Optional[OperationCreateResponseItemFeatures] = None | ||
|
||
|
||
OperationCreateResponse: TypeAlias = List[OperationCreateResponseItem] | ||
OperationCreateResponse: TypeAlias = List[APIShield] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters