Skip to content

Commit 914d824

Browse files
authored
feat(user-management): add directory_managed to OrganizationMembership (#446)
1 parent d1c93d6 commit 914d824

File tree

11 files changed

+14
-11
lines changed

11 files changed

+14
-11
lines changed

lib/workos/organization_membership.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ module WorkOS
77
class OrganizationMembership
88
include HashProvider
99

10-
attr_accessor :id, :user_id, :organization_id, :status, :role, :roles, :custom_attributes, :created_at, :updated_at
10+
attr_accessor :id, :user_id, :organization_id, :status, :role, :roles, :custom_attributes, :directory_managed,
11+
:created_at, :updated_at
1112

1213
def initialize(json)
1314
hash = JSON.parse(json, symbolize_names: true)
@@ -19,6 +20,7 @@ def initialize(json)
1920
@role = hash[:role]
2021
@roles = hash[:roles]
2122
@custom_attributes = hash[:custom_attributes]
23+
@directory_managed = hash[:directory_managed]
2224
@created_at = hash[:created_at]
2325
@updated_at = hash[:updated_at]
2426
end
@@ -32,6 +34,7 @@ def to_json(*)
3234
role: role,
3335
roles: roles,
3436
custom_attributes: custom_attributes,
37+
directory_managed: directory_managed,
3538
created_at: created_at,
3639
updated_at: updated_at,
3740
}

spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/support/fixtures/vcr_cassettes/user_management/create_organization_membership/valid_multiple_roles.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/support/fixtures/vcr_cassettes/user_management/deactivate_organization_membership.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/support/fixtures/vcr_cassettes/user_management/get_organization_membership.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/no_options.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_options.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/support/fixtures/vcr_cassettes/user_management/list_organization_memberships/with_statuses_option.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/support/fixtures/vcr_cassettes/user_management/reactivate_organization_membership.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/support/fixtures/vcr_cassettes/user_management/update_organization_membership/valid.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)