Class: MicrosoftGraph::Models::UnifiedRoleAssignmentScheduleInstance
- Inherits:
-
UnifiedRoleScheduleInstanceBase
- Object
- Entity
- UnifiedRoleScheduleInstanceBase
- MicrosoftGraph::Models::UnifiedRoleAssignmentScheduleInstance
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/unified_role_assignment_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
-
#activated_using ⇒ Object
Gets the activatedUsing property value.
-
#activated_using=(value) ⇒ Object
Sets the activatedUsing property value.
-
#assignment_type ⇒ Object
Gets the assignmentType property value.
-
#assignment_type=(value) ⇒ Object
Sets the assignmentType property value.
-
#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 unifiedRoleAssignmentScheduleInstance and sets the default values.
-
#member_type ⇒ Object
Gets the memberType property value.
-
#member_type=(value) ⇒ Object
Sets the memberType property value.
-
#role_assignment_origin_id ⇒ Object
Gets the roleAssignmentOriginId property value.
-
#role_assignment_origin_id=(value) ⇒ Object
Sets the roleAssignmentOriginId property value.
-
#role_assignment_schedule_id ⇒ Object
Gets the roleAssignmentScheduleId property value.
-
#role_assignment_schedule_id=(value) ⇒ Object
Sets the roleAssignmentScheduleId 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 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
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_using ⇒ Object
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.
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.
43 44 45 |
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 43 def activated_using=(value) @activated_using = value end |
#assignment_type ⇒ Object
Gets the assignmentType property value. Type of the assignment which can either be Assigned or Activated. Supports $filter (eq, ne).
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).
58 59 60 |
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 58 def assignment_type=(value) @assignment_type = value end |
#end_date_time ⇒ Object
Gets the endDateTime property value. The end date of the schedule instance.
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.
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_deserializers ⇒ Object
The deserialization information for the current model
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_type ⇒ Object
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).
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).
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_id ⇒ Object
Gets the roleAssignmentOriginId property value. The identifier of the role assignment in Azure AD. Supports $filter (eq, ne).
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).
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_id ⇒ Object
Gets the roleAssignmentScheduleId property value. The identifier of the unifiedRoleAssignmentSchedule object from which this instance was created. Supports $filter (eq, ne).
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).
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
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_time ⇒ Object
Gets the startDateTime property value. When this instance starts.
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.
180 181 182 |
# File 'lib/models/unified_role_assignment_schedule_instance.rb', line 180 def start_date_time=(value) @start_date_time = value end |