Class: MicrosoftGraph::Models::UnifiedRoleEligibilityScheduleInstance

Inherits:
UnifiedRoleScheduleInstanceBase show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/unified_role_eligibility_schedule_instance.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a unified_role_eligibility_schedule_instance

Raises:

  • (StandardError)


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_timeObject

Gets the endDateTime property value. The end date of the schedule instance.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the endDateTime property.

Returns:

  • a void



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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_typeObject

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).

Returns:

  • a string



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).

Parameters:

  • value

    Value to set for the memberType property.

Returns:

  • a void



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_idObject

Gets the roleEligibilityScheduleId property value. The identifier of the unifiedRoleEligibilitySchedule object from which this instance was created. Supports $filter (eq, ne).

Returns:

  • a string



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).

Parameters:

  • value

    Value to set for the roleEligibilityScheduleId property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_timeObject

Gets the startDateTime property value. When this instance starts.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the startDateTime property.

Returns:

  • a void



120
121
122
# File 'lib/models/unified_role_eligibility_schedule_instance.rb', line 120

def start_date_time=(value)
    @start_date_time = value
end