From e1dfb01112da298b87dcd1cec24e8c8ba92d0894 Mon Sep 17 00:00:00 2001 From: Justin Holmes Date: Mon, 23 Jan 2023 14:09:00 -0600 Subject: [PATCH] Add ui_read_only_toggle_reason to Access organization --- access_organization.go | 1 + access_organization_test.go | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/access_organization.go b/access_organization.go index 35c9e9e37889..f4de4a7b684c 100644 --- a/access_organization.go +++ b/access_organization.go @@ -16,6 +16,7 @@ type AccessOrganization struct { AuthDomain string `json:"auth_domain"` LoginDesign AccessOrganizationLoginDesign `json:"login_design"` IsUIReadOnly *bool `json:"is_ui_read_only,omitempty"` + UIReadOnlyToggleReason string `json:"ui_read_only_toggle_reason,omitempty"` UserSeatExpirationInactiveTime string `json:"user_seat_expiration_inactive_time,omitempty"` } diff --git a/access_organization_test.go b/access_organization_test.go index f09a0a37ed12..7d6cfa60e33d 100644 --- a/access_organization_test.go +++ b/access_organization_test.go @@ -163,7 +163,8 @@ func TestUpdateAccessOrganization(t *testing.T) { "header_text": "Widget Corp", "footer_text": "© Widget Corp" }, - "is_ui_read_only": false + "is_ui_read_only": false, + "ui_read_only_toggle_reason": "this is my reason" } } `) @@ -184,7 +185,8 @@ func TestUpdateAccessOrganization(t *testing.T) { HeaderText: "Widget Corp", FooterText: "© Widget Corp", }, - IsUIReadOnly: BoolPtr(false), + IsUIReadOnly: BoolPtr(false), + UIReadOnlyToggleReason: "this is my reason", } mux.HandleFunc("/accounts/"+testAccountID+"/access/organizations", handler)