Class: MicrosoftGraph::Models::ScopedRoleMembership
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/scoped_role_membership.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#administrative_unit_id ⇒ Object
Gets the administrativeUnitId property value.
-
#administrative_unit_id=(value) ⇒ Object
Sets the administrativeUnitId property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new scopedRoleMembership and sets the default values.
-
#role_id ⇒ Object
Gets the roleId property value.
-
#role_id=(value) ⇒ Object
Sets the roleId property value.
-
#role_member_info ⇒ Object
Gets the roleMemberInfo property value.
-
#role_member_info=(value) ⇒ Object
Sets the roleMemberInfo property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new scopedRoleMembership and sets the default values.
37 38 39 |
# File 'lib/models/scoped_role_membership.rb', line 37 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
45 46 47 48 |
# File 'lib/models/scoped_role_membership.rb', line 45 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ScopedRoleMembership.new end |
Instance Method Details
#administrative_unit_id ⇒ Object
Gets the administrativeUnitId property value. Unique identifier for the administrative unit that the directory role is scoped to
22 23 24 |
# File 'lib/models/scoped_role_membership.rb', line 22 def administrative_unit_id return @administrative_unit_id end |
#administrative_unit_id=(value) ⇒ Object
Sets the administrativeUnitId property value. Unique identifier for the administrative unit that the directory role is scoped to
30 31 32 |
# File 'lib/models/scoped_role_membership.rb', line 30 def administrative_unit_id=(value) @administrative_unit_id = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
53 54 55 56 57 58 59 |
# File 'lib/models/scoped_role_membership.rb', line 53 def get_field_deserializers() return super.merge({ "administrativeUnitId" => lambda {|n| @administrative_unit_id = n.get_string_value() }, "roleId" => lambda {|n| @role_id = n.get_string_value() }, "roleMemberInfo" => lambda {|n| @role_member_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Identity.create_from_discriminator_value(pn) }) }, }) end |
#role_id ⇒ Object
Gets the roleId property value. Unique identifier for the directory role that the member is in.
64 65 66 |
# File 'lib/models/scoped_role_membership.rb', line 64 def role_id return @role_id end |
#role_id=(value) ⇒ Object
Sets the roleId property value. Unique identifier for the directory role that the member is in.
72 73 74 |
# File 'lib/models/scoped_role_membership.rb', line 72 def role_id=(value) @role_id = value end |
#role_member_info ⇒ Object
Gets the roleMemberInfo property value. The roleMemberInfo property
79 80 81 |
# File 'lib/models/scoped_role_membership.rb', line 79 def role_member_info return @role_member_info end |
#role_member_info=(value) ⇒ Object
Sets the roleMemberInfo property value. The roleMemberInfo property
87 88 89 |
# File 'lib/models/scoped_role_membership.rb', line 87 def role_member_info=(value) @role_member_info = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
95 96 97 98 99 100 101 |
# File 'lib/models/scoped_role_membership.rb', line 95 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("administrativeUnitId", @administrative_unit_id) writer.write_string_value("roleId", @role_id) writer.write_object_value("roleMemberInfo", @role_member_info) end |