Class: MicrosoftGraph::Models::Request
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/request.rb
Direct Known Subclasses
UnifiedRoleAssignmentScheduleRequest, UnifiedRoleEligibilityScheduleRequest, UserConsentRequest
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
-
#approval_id ⇒ Object
Gets the approvalId property value.
-
#approval_id=(value) ⇒ Object
Sets the approvalId property value.
-
#completed_date_time ⇒ Object
Gets the completedDateTime property value.
-
#completed_date_time=(value) ⇒ Object
Sets the completedDateTime property value.
-
#created_by ⇒ Object
Gets the createdBy property value.
-
#created_by=(value) ⇒ Object
Sets the createdBy property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#custom_data ⇒ Object
Gets the customData property value.
-
#custom_data=(value) ⇒ Object
Sets the customData property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new request and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new request and sets the default values.
62 63 64 |
# File 'lib/models/request.rb', line 62 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
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/models/request.rb', line 100 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.unifiedRoleAssignmentScheduleRequest" return UnifiedRoleAssignmentScheduleRequest.new when "#microsoft.graph.unifiedRoleEligibilityScheduleRequest" return UnifiedRoleEligibilityScheduleRequest.new when "#microsoft.graph.userConsentRequest" return UserConsentRequest.new end end return Request.new end |
Instance Method Details
#approval_id ⇒ Object
Gets the approvalId property value. The identifier of the approval of the request.
32 33 34 |
# File 'lib/models/request.rb', line 32 def approval_id return @approval_id end |
#approval_id=(value) ⇒ Object
Sets the approvalId property value. The identifier of the approval of the request.
40 41 42 |
# File 'lib/models/request.rb', line 40 def approval_id=(value) @approval_id = value end |
#completed_date_time ⇒ Object
Gets the completedDateTime property value. The request completion date time.
47 48 49 |
# File 'lib/models/request.rb', line 47 def completed_date_time return @completed_date_time end |
#completed_date_time=(value) ⇒ Object
Sets the completedDateTime property value. The request completion date time.
55 56 57 |
# File 'lib/models/request.rb', line 55 def completed_date_time=(value) @completed_date_time = value end |
#created_by ⇒ Object
Gets the createdBy property value. The principal that created the request.
69 70 71 |
# File 'lib/models/request.rb', line 69 def created_by return @created_by end |
#created_by=(value) ⇒ Object
Sets the createdBy property value. The principal that created the request.
77 78 79 |
# File 'lib/models/request.rb', line 77 def created_by=(value) @created_by = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. The request creation date time.
84 85 86 |
# File 'lib/models/request.rb', line 84 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The request creation date time.
92 93 94 |
# File 'lib/models/request.rb', line 92 def created_date_time=(value) @created_date_time = value end |
#custom_data ⇒ Object
Gets the customData property value. Free text field to define any custom data for the request. Not used.
120 121 122 |
# File 'lib/models/request.rb', line 120 def custom_data return @custom_data end |
#custom_data=(value) ⇒ Object
Sets the customData property value. Free text field to define any custom data for the request. Not used.
128 129 130 |
# File 'lib/models/request.rb', line 128 def custom_data=(value) @custom_data = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
135 136 137 138 139 140 141 142 143 144 |
# File 'lib/models/request.rb', line 135 def get_field_deserializers() return super.merge({ "approvalId" => lambda {|n| @approval_id = n.get_string_value() }, "completedDateTime" => lambda {|n| @completed_date_time = n.get_date_time_value() }, "createdBy" => lambda {|n| @created_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "customData" => lambda {|n| @custom_data = n.get_string_value() }, "status" => lambda {|n| @status = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
150 151 152 153 154 155 156 157 158 159 |
# File 'lib/models/request.rb', line 150 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("approvalId", @approval_id) writer.write_date_time_value("completedDateTime", @completed_date_time) writer.write_object_value("createdBy", @created_by) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("customData", @custom_data) writer.write_string_value("status", @status) end |
#status ⇒ Object
Gets the status property value. The status of the request. Not nullable. The possible values are: Canceled, Denied, Failed, Granted, PendingAdminDecision, PendingApproval, PendingProvisioning, PendingScheduleCreation, Provisioned, Revoked, and ScheduleCreated. Not nullable.
164 165 166 |
# File 'lib/models/request.rb', line 164 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. The status of the request. Not nullable. The possible values are: Canceled, Denied, Failed, Granted, PendingAdminDecision, PendingApproval, PendingProvisioning, PendingScheduleCreation, Provisioned, Revoked, and ScheduleCreated. Not nullable.
172 173 174 |
# File 'lib/models/request.rb', line 172 def status=(value) @status = value end |