Class: MicrosoftGraph::Models::UnifiedRoleEligibilityScheduleInstance
- Inherits:
-
UnifiedRoleScheduleInstanceBase
- Object
- Entity
- UnifiedRoleScheduleInstanceBase
- MicrosoftGraph::Models::UnifiedRoleEligibilityScheduleInstance
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/unified_role_eligibility_schedule_instance.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
-
#end_date_time ⇒ Object
Gets the endDateTime property value.
-
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new unifiedRoleEligibilityScheduleInstance and sets the default values.
-
#member_type ⇒ Object
Gets the memberType property value.
-
#member_type=(value) ⇒ Object
Sets the memberType property value.
-
#role_eligibility_schedule_id ⇒ Object
Gets the roleEligibilityScheduleId property value.
-
#role_eligibility_schedule_id=(value) ⇒ Object
Sets the roleEligibilityScheduleId property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#start_date_time ⇒ Object
Gets the startDateTime property value.
-
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value.
Methods inherited from UnifiedRoleScheduleInstanceBase
#app_scope, #app_scope=, #app_scope_id, #app_scope_id=, #directory_scope, #directory_scope=, #directory_scope_id, #directory_scope_id=, #principal, #principal=, #principal_id, #principal_id=, #role_definition, #role_definition=, #role_definition_id, #role_definition_id=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new unifiedRoleEligibilityScheduleInstance and sets the default values.
26 27 28 |
# File 'lib/models/unified_role_eligibility_schedule_instance.rb', line 26 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
34 35 36 37 |
# File 'lib/models/unified_role_eligibility_schedule_instance.rb', line 34 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return UnifiedRoleEligibilityScheduleInstance.new end |
Instance Method Details
#end_date_time ⇒ Object
Gets the endDateTime property value. The end date of the schedule instance.
42 43 44 |
# File 'lib/models/unified_role_eligibility_schedule_instance.rb', line 42 def end_date_time return @end_date_time end |
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value. The end date of the schedule instance.
50 51 52 |
# File 'lib/models/unified_role_eligibility_schedule_instance.rb', line 50 def end_date_time=(value) @end_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
57 58 59 60 61 62 63 64 |
# File 'lib/models/unified_role_eligibility_schedule_instance.rb', line 57 def get_field_deserializers() return super.merge({ "endDateTime" => lambda {|n| @end_date_time = n.get_date_time_value() }, "memberType" => lambda {|n| @member_type = n.get_string_value() }, "roleEligibilityScheduleId" => lambda {|n| @role_eligibility_schedule_id = n.get_string_value() }, "startDateTime" => lambda {|n| @start_date_time = n.get_date_time_value() }, }) end |
#member_type ⇒ Object
Gets the memberType property value. How the role eligibility is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleEligibilitySchedule can be managed by the caller. Supports $filter (eq, ne).
69 70 71 |
# File 'lib/models/unified_role_eligibility_schedule_instance.rb', line 69 def member_type return @member_type end |
#member_type=(value) ⇒ Object
Sets the memberType property value. How the role eligibility is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleEligibilitySchedule can be managed by the caller. Supports $filter (eq, ne).
77 78 79 |
# File 'lib/models/unified_role_eligibility_schedule_instance.rb', line 77 def member_type=(value) @member_type = value end |
#role_eligibility_schedule_id ⇒ Object
Gets the roleEligibilityScheduleId property value. The identifier of the unifiedRoleEligibilitySchedule object from which this instance was created. Supports $filter (eq, ne).
84 85 86 |
# File 'lib/models/unified_role_eligibility_schedule_instance.rb', line 84 def role_eligibility_schedule_id return @role_eligibility_schedule_id end |
#role_eligibility_schedule_id=(value) ⇒ Object
Sets the roleEligibilityScheduleId property value. The identifier of the unifiedRoleEligibilitySchedule object from which this instance was created. Supports $filter (eq, ne).
92 93 94 |
# File 'lib/models/unified_role_eligibility_schedule_instance.rb', line 92 def role_eligibility_schedule_id=(value) @role_eligibility_schedule_id = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
100 101 102 103 104 105 106 107 |
# File 'lib/models/unified_role_eligibility_schedule_instance.rb', line 100 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_date_time_value("endDateTime", @end_date_time) writer.write_string_value("memberType", @member_type) writer.write_string_value("roleEligibilityScheduleId", @role_eligibility_schedule_id) writer.write_date_time_value("startDateTime", @start_date_time) end |
#start_date_time ⇒ Object
Gets the startDateTime property value. When this instance starts.
112 113 114 |
# File 'lib/models/unified_role_eligibility_schedule_instance.rb', line 112 def start_date_time return @start_date_time end |
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value. When this instance starts.
120 121 122 |
# File 'lib/models/unified_role_eligibility_schedule_instance.rb', line 120 def start_date_time=(value) @start_date_time = value end |