Class: MicrosoftGraph::Models::UnifiedRoleAssignmentScheduleInstance

Inherits:
UnifiedRoleScheduleInstanceBase show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/unified_role_assignment_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 unifiedRoleAssignmentScheduleInstance and sets the default values.



65
66
67
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 65

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_assignment_schedule_instance

Raises:

  • (StandardError)


73
74
75
76
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 73

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return UnifiedRoleAssignmentScheduleInstance.new
end

Instance Method Details

#activated_usingObject

Gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand.

Returns:

  • a unified_role_eligibility_schedule_instance



35
36
37
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 35

def activated_using
    return @activated_using
end

#activated_using=(value) ⇒ Object

Sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand.

Parameters:

  • value

    Value to set for the activatedUsing property.

Returns:

  • a void



43
44
45
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 43

def activated_using=(value)
    @activated_using = value
end

#assignment_typeObject

Gets the assignmentType property value. Type of the assignment which can either be Assigned or Activated. Supports $filter (eq, ne).

Returns:

  • a string



50
51
52
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 50

def assignment_type
    return @assignment_type
end

#assignment_type=(value) ⇒ Object

Sets the assignmentType property value. Type of the assignment which can either be Assigned or Activated. Supports $filter (eq, ne).

Parameters:

  • value

    Value to set for the assignmentType property.

Returns:

  • a void



58
59
60
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 58

def assignment_type=(value)
    @assignment_type = value
end

#end_date_timeObject

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

Returns:

  • a date_time



81
82
83
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 81

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



89
90
91
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 89

def end_date_time=(value)
    @end_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



96
97
98
99
100
101
102
103
104
105
106
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 96

def get_field_deserializers()
    return super.merge({
        "activatedUsing" => lambda {|n| @activated_using = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::UnifiedRoleEligibilityScheduleInstance.create_from_discriminator_value(pn) }) },
        "assignmentType" => lambda {|n| @assignment_type = n.get_string_value() },
        "endDateTime" => lambda {|n| @end_date_time = n.get_date_time_value() },
        "memberType" => lambda {|n| @member_type = n.get_string_value() },
        "roleAssignmentOriginId" => lambda {|n| @role_assignment_origin_id = n.get_string_value() },
        "roleAssignmentScheduleId" => lambda {|n| @role_assignment_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 assignments is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne).

Returns:

  • a string



111
112
113
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 111

def member_type
    return @member_type
end

#member_type=(value) ⇒ Object

Sets the memberType property value. How the assignments is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne).

Parameters:

  • value

    Value to set for the memberType property.

Returns:

  • a void



119
120
121
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 119

def member_type=(value)
    @member_type = value
end

#role_assignment_origin_idObject

Gets the roleAssignmentOriginId property value. The identifier of the role assignment in Azure AD. Supports $filter (eq, ne).

Returns:

  • a string



126
127
128
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 126

def role_assignment_origin_id
    return @role_assignment_origin_id
end

#role_assignment_origin_id=(value) ⇒ Object

Sets the roleAssignmentOriginId property value. The identifier of the role assignment in Azure AD. Supports $filter (eq, ne).

Parameters:

  • value

    Value to set for the roleAssignmentOriginId property.

Returns:

  • a void



134
135
136
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 134

def role_assignment_origin_id=(value)
    @role_assignment_origin_id = value
end

#role_assignment_schedule_idObject

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

Returns:

  • a string



141
142
143
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 141

def role_assignment_schedule_id
    return @role_assignment_schedule_id
end

#role_assignment_schedule_id=(value) ⇒ Object

Sets the roleAssignmentScheduleId property value. The identifier of the unifiedRoleAssignmentSchedule object from which this instance was created. Supports $filter (eq, ne).

Parameters:

  • value

    Value to set for the roleAssignmentScheduleId property.

Returns:

  • a void



149
150
151
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 149

def role_assignment_schedule_id=(value)
    @role_assignment_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)


157
158
159
160
161
162
163
164
165
166
167
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 157

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("activatedUsing", @activated_using)
    writer.write_string_value("assignmentType", @assignment_type)
    writer.write_date_time_value("endDateTime", @end_date_time)
    writer.write_string_value("memberType", @member_type)
    writer.write_string_value("roleAssignmentOriginId", @role_assignment_origin_id)
    writer.write_string_value("roleAssignmentScheduleId", @role_assignment_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



172
173
174
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 172

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



180
181
182
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 180

def start_date_time=(value)
    @start_date_time = value
end