Skip to content

Commit 15911c4

Browse files
feat(api): api update
1 parent 0c5db1b commit 15911c4

File tree

7 files changed

+35
-23
lines changed

7 files changed

+35
-23
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

zero_trust/device.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ func NewDeviceService(opts ...option.RequestOption) (r *DeviceService) {
6060
return
6161
}
6262

63-
// List WARP registrations.
63+
// List WARP devices. Not supported when
64+
// [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
65+
// is enabled for the account.
6466
//
6567
// **Deprecated**: please use one of the following endpoints instead:
6668
//
@@ -89,7 +91,9 @@ func (r *DeviceService) List(ctx context.Context, query DeviceListParams, opts .
8991
return res, nil
9092
}
9193

92-
// List WARP registrations.
94+
// List WARP devices. Not supported when
95+
// [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
96+
// is enabled for the account.
9397
//
9498
// **Deprecated**: please use one of the following endpoints instead:
9599
//
@@ -101,7 +105,9 @@ func (r *DeviceService) ListAutoPaging(ctx context.Context, query DeviceListPara
101105
return pagination.NewSinglePageAutoPager(r.List(ctx, query, opts...))
102106
}
103107

104-
// Fetches a single WARP registration.
108+
// Fetches a single WARP device. Not supported when
109+
// [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
110+
// is enabled for the account.
105111
//
106112
// **Deprecated**: please use one of the following endpoints instead:
107113
//

zero_trust/devicedevice.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (r *DeviceDeviceService) Get(ctx context.Context, deviceID string, query De
105105
return
106106
}
107107

108-
// Revokes all registrations associated with the specified device.
108+
// Revokes all WARP registrations associated with the specified device.
109109
func (r *DeviceDeviceService) Revoke(ctx context.Context, deviceID string, body DeviceDeviceRevokeParams, opts ...option.RequestOption) (res *DeviceDeviceRevokeResponse, err error) {
110110
var env DeviceDeviceRevokeResponseEnvelope
111111
opts = append(r.Options[:], opts...)
@@ -149,7 +149,7 @@ type DeviceDeviceListResponse struct {
149149
DeviceType string `json:"device_type,nullable"`
150150
// A string that uniquely identifies the hardware or virtual machine (VM).
151151
HardwareID string `json:"hardware_id,nullable"`
152-
// The last Access user to use the WARP device.
152+
// The last user to use the WARP device.
153153
LastSeenUser DeviceDeviceListResponseLastSeenUser `json:"last_seen_user,nullable"`
154154
// The device MAC address.
155155
MacAddress string `json:"mac_address,nullable"`
@@ -202,7 +202,7 @@ func (r deviceDeviceListResponseJSON) RawJSON() string {
202202
return r.raw
203203
}
204204

205-
// The last Access user to use the WARP device.
205+
// The last user to use the WARP device.
206206
type DeviceDeviceListResponseLastSeenUser struct {
207207
// UUID.
208208
ID string `json:"id"`
@@ -256,7 +256,7 @@ type DeviceDeviceGetResponse struct {
256256
DeviceType string `json:"device_type,nullable"`
257257
// A string that uniquely identifies the hardware or virtual machine (VM).
258258
HardwareID string `json:"hardware_id,nullable"`
259-
// The last Access user to use the WARP device.
259+
// The last user to use the WARP device.
260260
LastSeenUser DeviceDeviceGetResponseLastSeenUser `json:"last_seen_user,nullable"`
261261
// The device MAC address.
262262
MacAddress string `json:"mac_address,nullable"`
@@ -309,7 +309,7 @@ func (r deviceDeviceGetResponseJSON) RawJSON() string {
309309
return r.raw
310310
}
311311

312-
// The last Access user to use the WARP device.
312+
// The last user to use the WARP device.
313313
type DeviceDeviceGetResponseLastSeenUser struct {
314314
// UUID.
315315
ID string `json:"id"`

zero_trust/deviceoverridecode.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ func NewDeviceOverrideCodeService(opts ...option.RequestOption) (r *DeviceOverri
3434
return
3535
}
3636

37-
// Fetches a one-time use admin override code for a registration. This relies on
38-
// the **Admin Override** setting being enabled in your device configuration.
39-
//
40-
// **Deprecated:** please use GET
37+
// Fetches a one-time use admin override code for a device. This relies on the
38+
// **Admin Override** setting being enabled in your device configuration. Not
39+
// supported when
40+
// [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
41+
// is enabled for the account. **Deprecated:** please use GET
4142
// /accounts/{account_id}/devices/registrations/{registration_id}/override_codes
4243
// instead.
4344
//
@@ -67,10 +68,11 @@ func (r *DeviceOverrideCodeService) List(ctx context.Context, deviceID string, q
6768
return res, nil
6869
}
6970

70-
// Fetches a one-time use admin override code for a registration. This relies on
71-
// the **Admin Override** setting being enabled in your device configuration.
72-
//
73-
// **Deprecated:** please use GET
71+
// Fetches a one-time use admin override code for a device. This relies on the
72+
// **Admin Override** setting being enabled in your device configuration. Not
73+
// supported when
74+
// [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
75+
// is enabled for the account. **Deprecated:** please use GET
7476
// /accounts/{account_id}/devices/registrations/{registration_id}/override_codes
7577
// instead.
7678
//

zero_trust/deviceregistration.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func NewDeviceRegistrationService(opts ...option.RequestOption) (r *DeviceRegist
3636
return
3737
}
3838

39-
// List WARP registrations.
39+
// Lists WARP registrations.
4040
func (r *DeviceRegistrationService) List(ctx context.Context, params DeviceRegistrationListParams, opts ...option.RequestOption) (res *pagination.CursorPagination[DeviceRegistrationListResponse], err error) {
4141
var raw *http.Response
4242
opts = append(r.Options[:], opts...)
@@ -58,7 +58,7 @@ func (r *DeviceRegistrationService) List(ctx context.Context, params DeviceRegis
5858
return res, nil
5959
}
6060

61-
// List WARP registrations.
61+
// Lists WARP registrations.
6262
func (r *DeviceRegistrationService) ListAutoPaging(ctx context.Context, params DeviceRegistrationListParams, opts ...option.RequestOption) *pagination.CursorPaginationAutoPager[DeviceRegistrationListResponse] {
6363
return pagination.NewCursorPaginationAutoPager(r.List(ctx, params, opts...))
6464
}
@@ -491,7 +491,7 @@ func (r DeviceRegistrationListParamsStatus) IsKnown() bool {
491491
}
492492

493493
type DeviceRegistrationListParamsUser struct {
494-
// Filter by Access user ID.
494+
// Filter by user ID.
495495
ID param.Field[[]string] `query:"id"`
496496
}
497497

zero_trust/devicerevoke.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ func NewDeviceRevokeService(opts ...option.RequestOption) (r *DeviceRevokeServic
3434
return
3535
}
3636

37-
// Revokes a list of registrations.
37+
// Revokes a list of devices. Not supported when
38+
// [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
39+
// is enabled.
3840
//
3941
// **Deprecated**: please use POST
4042
// /accounts/{account_id}/devices/registrations/revoke instead.

zero_trust/deviceunrevoke.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ func NewDeviceUnrevokeService(opts ...option.RequestOption) (r *DeviceUnrevokeSe
3434
return
3535
}
3636

37-
// Unrevokes a list of registrations.
37+
// Unrevokes a list of devices. Not supported when
38+
// [multi-user mode](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/windows-multiuser/)
39+
// is enabled.
3840
//
3941
// **Deprecated**: please use POST
4042
// /accounts/{account_id}/devices/registrations/unrevoke instead.

0 commit comments

Comments
 (0)