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 #285

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
15 changes: 15 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4840,9 +4840,24 @@ Types:

```python
from cloudflare.types.zero_trust.devices import (
CarbonblackInput,
ClientCertificateInput,
CrowdstrikeInput,
DeviceInput,
DeviceMatch,
DevicePostureRule,
DiskEncryptionInput,
DomainJoinedInput,
FileInput,
FirewallInput,
IntuneInput,
KolideInput,
OSVersionInput,
SentineloneInput,
SentineloneS2sInput,
TaniumInput,
UniqueClientIDInput,
WorkspaceOneInput,
PostureDeleteResponse,
)
```
Expand Down
29 changes: 29 additions & 0 deletions src/cloudflare/types/zero_trust/devices/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,64 @@

from __future__ import annotations

from .file_input import FileInput as FileInput
from .schema_data import SchemaData as SchemaData
from .schema_http import SchemaHTTP as SchemaHTTP
from .device_input import DeviceInput as DeviceInput
from .device_match import DeviceMatch as DeviceMatch
from .intune_input import IntuneInput as IntuneInput
from .kolide_input import KolideInput as KolideInput
from .tanium_input import TaniumInput as TaniumInput
from .device_network import DeviceNetwork as DeviceNetwork
from .firewall_input import FirewallInput as FirewallInput
from .device_settings import DeviceSettings as DeviceSettings
from .settings_policy import SettingsPolicy as SettingsPolicy
from .file_input_param import FileInputParam as FileInputParam
from .os_version_input import OSVersionInput as OSVersionInput
from .carbonblack_input import CarbonblackInput as CarbonblackInput
from .crowdstrike_input import CrowdstrikeInput as CrowdstrikeInput
from .schema_data_param import SchemaDataParam as SchemaDataParam
from .sentinelone_input import SentineloneInput as SentineloneInput
from .device_input_param import DeviceInputParam as DeviceInputParam
from .device_match_param import DeviceMatchParam as DeviceMatchParam
from .intune_input_param import IntuneInputParam as IntuneInputParam
from .kolide_input_param import KolideInputParam as KolideInputParam
from .policy_edit_params import PolicyEditParams as PolicyEditParams
from .tanium_input_param import TaniumInputParam as TaniumInputParam
from .device_posture_rule import DevicePostureRule as DevicePostureRule
from .domain_joined_input import DomainJoinedInput as DomainJoinedInput
from .workspace_one_input import WorkspaceOneInput as WorkspaceOneInput
from .firewall_input_param import FirewallInputParam as FirewallInputParam
from .policy_create_params import PolicyCreateParams as PolicyCreateParams
from .policy_delete_params import PolicyDeleteParams as PolicyDeleteParams
from .revoke_create_params import RevokeCreateParams as RevokeCreateParams
from .disk_encryption_input import DiskEncryptionInput as DiskEncryptionInput
from .network_create_params import NetworkCreateParams as NetworkCreateParams
from .network_delete_params import NetworkDeleteParams as NetworkDeleteParams
from .network_update_params import NetworkUpdateParams as NetworkUpdateParams
from .posture_create_params import PostureCreateParams as PostureCreateParams
from .posture_delete_params import PostureDeleteParams as PostureDeleteParams
from .posture_update_params import PostureUpdateParams as PostureUpdateParams
from .sentinelone_s2s_input import SentineloneS2sInput as SentineloneS2sInput
from .setting_update_params import SettingUpdateParams as SettingUpdateParams
from .dex_test_create_params import DEXTestCreateParams as DEXTestCreateParams
from .dex_test_update_params import DEXTestUpdateParams as DEXTestUpdateParams
from .os_version_input_param import OSVersionInputParam as OSVersionInputParam
from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse
from .revoke_create_response import RevokeCreateResponse as RevokeCreateResponse
from .unique_client_id_input import UniqueClientIDInput as UniqueClientIDInput
from .unrevoke_create_params import UnrevokeCreateParams as UnrevokeCreateParams
from .crowdstrike_input_param import CrowdstrikeInputParam as CrowdstrikeInputParam
from .network_delete_response import NetworkDeleteResponse as NetworkDeleteResponse
from .posture_delete_response import PostureDeleteResponse as PostureDeleteResponse
from .sentinelone_input_param import SentineloneInputParam as SentineloneInputParam
from .client_certificate_input import ClientCertificateInput as ClientCertificateInput
from .dex_test_delete_response import DEXTestDeleteResponse as DEXTestDeleteResponse
from .unrevoke_create_response import UnrevokeCreateResponse as UnrevokeCreateResponse
from .domain_joined_input_param import DomainJoinedInputParam as DomainJoinedInputParam
from .workspace_one_input_param import WorkspaceOneInputParam as WorkspaceOneInputParam
from .disk_encryption_input_param import DiskEncryptionInputParam as DiskEncryptionInputParam
from .override_code_list_response import OverrideCodeListResponse as OverrideCodeListResponse
from .sentinelone_s2s_input_param import SentineloneS2sInputParam as SentineloneS2sInputParam
from .unique_client_id_input_param import UniqueClientIDInputParam as UniqueClientIDInputParam
from .client_certificate_input_param import ClientCertificateInputParam as ClientCertificateInputParam
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.


__all__ = ["CarbonblackInput"]

CarbonblackInput = str
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from ...._models import BaseModel

__all__ = ["ClientCertificateInput"]


class ClientCertificateInput(BaseModel):
certificate_id: str
"""UUID of Cloudflare managed certificate."""

cn: str
"""Common Name that is protected by the certificate"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing_extensions import Required, TypedDict

__all__ = ["ClientCertificateInputParam"]


class ClientCertificateInputParam(TypedDict, total=False):
certificate_id: Required[str]
"""UUID of Cloudflare managed certificate."""

cn: Required[str]
"""Common Name that is protected by the certificate"""
39 changes: 39 additions & 0 deletions src/cloudflare/types/zero_trust/devices/crowdstrike_input.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional
from typing_extensions import Literal

from pydantic import Field as FieldInfo

from ...._models import BaseModel

__all__ = ["CrowdstrikeInput"]


class CrowdstrikeInput(BaseModel):
connection_id: str
"""Posture Integration ID."""

last_seen: Optional[str] = None
"""For more details on last seen, please refer to the Crowdstrike documentation."""

operator: Optional[Literal["<", "<=", ">", ">=", "=="]] = None
"""operator"""

os: Optional[str] = None
"""Os Version"""

overall: Optional[str] = None
"""overall"""

sensor_config: Optional[str] = None
"""SensorConfig"""

state: Optional[Literal["online", "offline", "unknown"]] = None
"""For more details on state, please refer to the Crowdstrike documentation."""

version: Optional[str] = None
"""Version"""

version_operator: Optional[Literal["<", "<=", ">", ">=", "=="]] = FieldInfo(alias="versionOperator", default=None)
"""Version Operator"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing_extensions import Literal, Required, Annotated, TypedDict

from ...._utils import PropertyInfo

__all__ = ["CrowdstrikeInputParam"]


class CrowdstrikeInputParam(TypedDict, total=False):
connection_id: Required[str]
"""Posture Integration ID."""

last_seen: str
"""For more details on last seen, please refer to the Crowdstrike documentation."""

operator: Literal["<", "<=", ">", ">=", "=="]
"""operator"""

os: str
"""Os Version"""

overall: str
"""overall"""

sensor_config: str
"""SensorConfig"""

state: Literal["online", "offline", "unknown"]
"""For more details on state, please refer to the Crowdstrike documentation."""

version: str
"""Version"""

version_operator: Annotated[Literal["<", "<=", ">", ">=", "=="], PropertyInfo(alias="versionOperator")]
"""Version Operator"""
Loading