Skip to content

Commit ad5aa87

Browse files
feat(api): api update
1 parent 01b04a5 commit ad5aa87

File tree

10 files changed

+61
-35
lines changed

10 files changed

+61
-35
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1751
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f5105331b2f9171eb6ba1c8fd2a616a5f34b382484da299d9322dde3f1541173.yml
3-
openapi_spec_hash: 99e4f780a5c7d0d67485a18dd44fdc9d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1d0c071db47608108020cc81ce54a4b642973c7835ef2beeaaa1c8d741fc6d07.yml
3+
openapi_spec_hash: 21cbc6a253005dd893cd947ebce791f3
44
config_hash: 259b5eeae0358ea7d7756b294847f140

src/cloudflare/resources/zero_trust/devices/devices.py

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,11 @@ def list(
194194
extra_body: Body | None = None,
195195
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
196196
) -> SyncSinglePage[Device]:
197-
"""
198-
List WARP registrations.
197+
"""List WARP devices.
198+
199+
Not supported when
200+
[multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
201+
is enabled for the account.
199202
200203
**Deprecated**: please use one of the following endpoints instead:
201204
@@ -235,8 +238,11 @@ def get(
235238
extra_body: Body | None = None,
236239
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
237240
) -> Optional[DeviceGetResponse]:
238-
"""
239-
Fetches a single WARP registration.
241+
"""Fetches a single WARP device.
242+
243+
Not supported when
244+
[multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
245+
is enabled for the account.
240246
241247
**Deprecated**: please use one of the following endpoints instead:
242248
@@ -352,8 +358,11 @@ def list(
352358
extra_body: Body | None = None,
353359
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
354360
) -> AsyncPaginator[Device, AsyncSinglePage[Device]]:
355-
"""
356-
List WARP registrations.
361+
"""List WARP devices.
362+
363+
Not supported when
364+
[multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
365+
is enabled for the account.
357366
358367
**Deprecated**: please use one of the following endpoints instead:
359368
@@ -393,8 +402,11 @@ async def get(
393402
extra_body: Body | None = None,
394403
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
395404
) -> Optional[DeviceGetResponse]:
396-
"""
397-
Fetches a single WARP registration.
405+
"""Fetches a single WARP device.
406+
407+
Not supported when
408+
[multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
409+
is enabled for the account.
398410
399411
**Deprecated**: please use one of the following endpoints instead:
400412

src/cloudflare/resources/zero_trust/devices/devices_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def revoke(
230230
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
231231
) -> object:
232232
"""
233-
Revokes all registrations associated with the specified device.
233+
Revokes all WARP registrations associated with the specified device.
234234
235235
Args:
236236
extra_headers: Send extra headers
@@ -461,7 +461,7 @@ async def revoke(
461461
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
462462
) -> object:
463463
"""
464-
Revokes all registrations associated with the specified device.
464+
Revokes all WARP registrations associated with the specified device.
465465
466466
Args:
467467
extra_headers: Send extra headers

src/cloudflare/resources/zero_trust/devices/override_codes.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,13 @@ def list(
5757
extra_body: Body | None = None,
5858
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
5959
) -> SyncSinglePage[object]:
60-
"""Fetches a one-time use admin override code for a registration.
60+
"""Fetches a one-time use admin override code for a device.
6161
62-
This relies on
63-
the **Admin Override** setting being enabled in your device configuration.
64-
65-
**Deprecated:** please use GET
62+
This relies on the
63+
**Admin Override** setting being enabled in your device configuration. Not
64+
supported when
65+
[multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
66+
is enabled for the account. **Deprecated:** please use GET
6667
/accounts/{account_id}/devices/registrations/{registration_id}/override_codes
6768
instead.
6869
@@ -167,12 +168,13 @@ def list(
167168
extra_body: Body | None = None,
168169
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
169170
) -> AsyncPaginator[object, AsyncSinglePage[object]]:
170-
"""Fetches a one-time use admin override code for a registration.
171+
"""Fetches a one-time use admin override code for a device.
171172
172-
This relies on
173-
the **Admin Override** setting being enabled in your device configuration.
174-
175-
**Deprecated:** please use GET
173+
This relies on the
174+
**Admin Override** setting being enabled in your device configuration. Not
175+
supported when
176+
[multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
177+
is enabled for the account. **Deprecated:** please use GET
176178
/accounts/{account_id}/devices/registrations/{registration_id}/override_codes
177179
instead.
178180

src/cloudflare/resources/zero_trust/devices/registrations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def list(
7676
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
7777
) -> SyncCursorPagination[RegistrationListResponse]:
7878
"""
79-
List WARP registrations.
79+
Lists WARP registrations.
8080
8181
Args:
8282
id: Filter by registration ID.
@@ -388,7 +388,7 @@ def list(
388388
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
389389
) -> AsyncPaginator[RegistrationListResponse, AsyncCursorPagination[RegistrationListResponse]]:
390390
"""
391-
List WARP registrations.
391+
Lists WARP registrations.
392392
393393
Args:
394394
id: Filter by registration ID.

src/cloudflare/resources/zero_trust/devices/revoke.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ def create(
5757
extra_body: Body | None = None,
5858
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
5959
) -> Optional[RevokeCreateResponse]:
60-
"""
61-
Revokes a list of registrations.
60+
"""Revokes a list of devices.
61+
62+
Not supported when
63+
[multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
64+
is enabled.
6265
6366
**Deprecated**: please use POST
6467
/accounts/{account_id}/devices/registrations/revoke instead.
@@ -128,8 +131,11 @@ async def create(
128131
extra_body: Body | None = None,
129132
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
130133
) -> Optional[RevokeCreateResponse]:
131-
"""
132-
Revokes a list of registrations.
134+
"""Revokes a list of devices.
135+
136+
Not supported when
137+
[multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
138+
is enabled.
133139
134140
**Deprecated**: please use POST
135141
/accounts/{account_id}/devices/registrations/revoke instead.

src/cloudflare/resources/zero_trust/devices/unrevoke.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ def create(
5757
extra_body: Body | None = None,
5858
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
5959
) -> Optional[UnrevokeCreateResponse]:
60-
"""
61-
Unrevokes a list of registrations.
60+
"""Unrevokes a list of devices.
61+
62+
Not supported when
63+
[multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
64+
is enabled.
6265
6366
**Deprecated**: please use POST
6467
/accounts/{account_id}/devices/registrations/unrevoke instead.
@@ -128,8 +131,11 @@ async def create(
128131
extra_body: Body | None = None,
129132
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
130133
) -> Optional[UnrevokeCreateResponse]:
131-
"""
132-
Unrevokes a list of registrations.
134+
"""Unrevokes a list of devices.
135+
136+
Not supported when
137+
[multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
138+
is enabled.
133139
134140
**Deprecated**: please use POST
135141
/accounts/{account_id}/devices/registrations/unrevoke instead.

src/cloudflare/types/zero_trust/devices/device_get_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class DeviceGetResponse(BaseModel):
5353
"""A string that uniquely identifies the hardware or virtual machine (VM)."""
5454

5555
last_seen_user: Optional[LastSeenUser] = None
56-
"""The last Access user to use the WARP device."""
56+
"""The last user to use the WARP device."""
5757

5858
mac_address: Optional[str] = None
5959
"""The device MAC address."""

src/cloudflare/types/zero_trust/devices/device_list_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class DeviceListResponse(BaseModel):
5353
"""A string that uniquely identifies the hardware or virtual machine (VM)."""
5454

5555
last_seen_user: Optional[LastSeenUser] = None
56-
"""The last Access user to use the WARP device."""
56+
"""The last user to use the WARP device."""
5757

5858
mac_address: Optional[str] = None
5959
"""The device MAC address."""

src/cloudflare/types/zero_trust/devices/registration_list_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ class Device(TypedDict, total=False):
6262

6363
class User(TypedDict, total=False):
6464
id: List[str]
65-
"""Filter by Access user ID."""
65+
"""Filter by user ID."""

0 commit comments

Comments
 (0)