feat: allow restricting sharing to service accounts (#23327)

This commit is contained in:
Kayla はな
2026-03-23 13:18:49 -06:00
committed by GitHub
parent c389c2bc5c
commit d2afda8191
8 changed files with 182 additions and 58 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ type UpdateWorkspaceSharingSettingsRequest struct {
// SharingDisabled is deprecated and left for backward compatibility
// purposes.
// Deprecated: use `ShareableWorkspaceOwners` instead
SharingDisabled bool `json:"sharing_disabled"`
SharingDisabled bool `json:"sharing_disabled,omitempty"`
// ShareableWorkspaceOwners controls whose workspaces can be shared
// within the organization.
ShareableWorkspaceOwners ShareableWorkspaceOwners `json:"shareable_workspace_owners,omitempty" enums:"none,everyone,service_accounts"`