Class: MicrosoftGraph::Models::AccessReviewInstanceDecisionItem
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/access_review_instance_decision_item.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
-
#access_review_id ⇒ Object
Gets the accessReviewId property value.
-
#access_review_id=(value) ⇒ Object
Sets the accessReviewId property value.
-
#applied_by ⇒ Object
Gets the appliedBy property value.
-
#applied_by=(value) ⇒ Object
Sets the appliedBy property value.
-
#applied_date_time ⇒ Object
Gets the appliedDateTime property value.
-
#applied_date_time=(value) ⇒ Object
Sets the appliedDateTime property value.
-
#apply_result ⇒ Object
Gets the applyResult property value.
-
#apply_result=(value) ⇒ Object
Sets the applyResult property value.
-
#decision ⇒ Object
Gets the decision property value.
-
#decision=(value) ⇒ Object
Sets the decision property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new accessReviewInstanceDecisionItem and sets the default values.
-
#justification ⇒ Object
Gets the justification property value.
-
#justification=(value) ⇒ Object
Sets the justification property value.
-
#principal ⇒ Object
Gets the principal property value.
-
#principal=(value) ⇒ Object
Sets the principal property value.
-
#principal_link ⇒ Object
Gets the principalLink property value.
-
#principal_link=(value) ⇒ Object
Sets the principalLink property value.
-
#recommendation ⇒ Object
Gets the recommendation property value.
-
#recommendation=(value) ⇒ Object
Sets the recommendation property value.
-
#resource ⇒ Object
Gets the resource property value.
-
#resource=(value) ⇒ Object
Sets the resource property value.
-
#resource_link ⇒ Object
Gets the resourceLink property value.
-
#resource_link=(value) ⇒ Object
Sets the resourceLink property value.
-
#reviewed_by ⇒ Object
Gets the reviewedBy property value.
-
#reviewed_by=(value) ⇒ Object
Sets the reviewedBy property value.
-
#reviewed_date_time ⇒ Object
Gets the reviewedDateTime property value.
-
#reviewed_date_time=(value) ⇒ Object
Sets the reviewedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new accessReviewInstanceDecisionItem and sets the default values.
113 114 115 |
# File 'lib/models/access_review_instance_decision_item.rb', line 113 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
121 122 123 124 |
# File 'lib/models/access_review_instance_decision_item.rb', line 121 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AccessReviewInstanceDecisionItem.new end |
Instance Method Details
#access_review_id ⇒ Object
Gets the accessReviewId property value. The identifier of the accessReviewInstance parent. Supports $select. Read-only.
53 54 55 |
# File 'lib/models/access_review_instance_decision_item.rb', line 53 def access_review_id return @access_review_id end |
#access_review_id=(value) ⇒ Object
Sets the accessReviewId property value. The identifier of the accessReviewInstance parent. Supports $select. Read-only.
61 62 63 |
# File 'lib/models/access_review_instance_decision_item.rb', line 61 def access_review_id=(value) @access_review_id = value end |
#applied_by ⇒ Object
Gets the appliedBy property value. The identifier of the user who applied the decision. Read-only.
68 69 70 |
# File 'lib/models/access_review_instance_decision_item.rb', line 68 def applied_by return @applied_by end |
#applied_by=(value) ⇒ Object
Sets the appliedBy property value. The identifier of the user who applied the decision. Read-only.
76 77 78 |
# File 'lib/models/access_review_instance_decision_item.rb', line 76 def applied_by=(value) @applied_by = value end |
#applied_date_time ⇒ Object
Gets the appliedDateTime property value. The timestamp when the approval decision was applied.00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn’t applied the decision or it was automatically applied. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $select. Read-only.
83 84 85 |
# File 'lib/models/access_review_instance_decision_item.rb', line 83 def applied_date_time return @applied_date_time end |
#applied_date_time=(value) ⇒ Object
Sets the appliedDateTime property value. The timestamp when the approval decision was applied.00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn’t applied the decision or it was automatically applied. The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $select. Read-only.
91 92 93 |
# File 'lib/models/access_review_instance_decision_item.rb', line 91 def applied_date_time=(value) @applied_date_time = value end |
#apply_result ⇒ Object
Gets the applyResult property value. The result of applying the decision. Possible values: New, AppliedSuccessfully, AppliedWithUnknownFailure, AppliedSuccessfullyButObjectNotFound and ApplyNotSupported. Supports $select, $orderby, and $filter (eq only). Read-only.
98 99 100 |
# File 'lib/models/access_review_instance_decision_item.rb', line 98 def apply_result return @apply_result end |
#apply_result=(value) ⇒ Object
Sets the applyResult property value. The result of applying the decision. Possible values: New, AppliedSuccessfully, AppliedWithUnknownFailure, AppliedSuccessfullyButObjectNotFound and ApplyNotSupported. Supports $select, $orderby, and $filter (eq only). Read-only.
106 107 108 |
# File 'lib/models/access_review_instance_decision_item.rb', line 106 def apply_result=(value) @apply_result = value end |
#decision ⇒ Object
Gets the decision property value. Result of the review. Possible values: Approve, Deny, NotReviewed, or DontKnow. Supports $select, $orderby, and $filter (eq only).
129 130 131 |
# File 'lib/models/access_review_instance_decision_item.rb', line 129 def decision return @decision end |
#decision=(value) ⇒ Object
Sets the decision property value. Result of the review. Possible values: Approve, Deny, NotReviewed, or DontKnow. Supports $select, $orderby, and $filter (eq only).
137 138 139 |
# File 'lib/models/access_review_instance_decision_item.rb', line 137 def decision=(value) @decision = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
# File 'lib/models/access_review_instance_decision_item.rb', line 144 def get_field_deserializers() return super.merge({ "accessReviewId" => lambda {|n| @access_review_id = n.get_string_value() }, "appliedBy" => lambda {|n| @applied_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::UserIdentity.create_from_discriminator_value(pn) }) }, "appliedDateTime" => lambda {|n| @applied_date_time = n.get_date_time_value() }, "applyResult" => lambda {|n| @apply_result = n.get_string_value() }, "decision" => lambda {|n| @decision = n.get_string_value() }, "justification" => lambda {|n| @justification = n.get_string_value() }, "principal" => lambda {|n| @principal = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Identity.create_from_discriminator_value(pn) }) }, "principalLink" => lambda {|n| @principal_link = n.get_string_value() }, "recommendation" => lambda {|n| @recommendation = n.get_string_value() }, "resource" => lambda {|n| @resource = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceDecisionItemResource.create_from_discriminator_value(pn) }) }, "resourceLink" => lambda {|n| @resource_link = n.get_string_value() }, "reviewedBy" => lambda {|n| @reviewed_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::UserIdentity.create_from_discriminator_value(pn) }) }, "reviewedDateTime" => lambda {|n| @reviewed_date_time = n.get_date_time_value() }, }) end |
#justification ⇒ Object
Gets the justification property value. Justification left by the reviewer when they made the decision.
165 166 167 |
# File 'lib/models/access_review_instance_decision_item.rb', line 165 def justification return @justification end |
#justification=(value) ⇒ Object
Sets the justification property value. Justification left by the reviewer when they made the decision.
173 174 175 |
# File 'lib/models/access_review_instance_decision_item.rb', line 173 def justification=(value) @justification = value end |
#principal ⇒ Object
Gets the principal property value. Every decision item in an access review represents a principal’s access to a resource. This property represents details of the principal. For example, if a decision item represents access of User ‘Bob’ to Group ‘Sales’ - The principal is ‘Bob’ and the resource is ‘Sales’. Principals can be of two types - userIdentity and servicePrincipalIdentity. Supports $select. Read-only.
180 181 182 |
# File 'lib/models/access_review_instance_decision_item.rb', line 180 def principal return @principal end |
#principal=(value) ⇒ Object
Sets the principal property value. Every decision item in an access review represents a principal’s access to a resource. This property represents details of the principal. For example, if a decision item represents access of User ‘Bob’ to Group ‘Sales’ - The principal is ‘Bob’ and the resource is ‘Sales’. Principals can be of two types - userIdentity and servicePrincipalIdentity. Supports $select. Read-only.
188 189 190 |
# File 'lib/models/access_review_instance_decision_item.rb', line 188 def principal=(value) @principal = value end |
#principal_link ⇒ Object
Gets the principalLink property value. A link to the principal object. For example, graph.microsoft.com/v1.0/users/a6c7aecb-cbfd-4763-87ef-e91b4bd509d9. Read-only.
195 196 197 |
# File 'lib/models/access_review_instance_decision_item.rb', line 195 def principal_link return @principal_link end |
#principal_link=(value) ⇒ Object
Sets the principalLink property value. A link to the principal object. For example, graph.microsoft.com/v1.0/users/a6c7aecb-cbfd-4763-87ef-e91b4bd509d9. Read-only.
203 204 205 |
# File 'lib/models/access_review_instance_decision_item.rb', line 203 def principal_link=(value) @principal_link = value end |
#recommendation ⇒ Object
Gets the recommendation property value. A system-generated recommendation for the approval decision based off last interactive sign-in to tenant. Recommend approve if sign-in is within thirty days of start of review. Recommend deny if sign-in is greater than thirty days of start of review. Recommendation not available otherwise. Possible values: Approve, Deny, or NoInfoAvailable. Supports $select, $orderby, and $filter (eq only). Read-only.
210 211 212 |
# File 'lib/models/access_review_instance_decision_item.rb', line 210 def recommendation return @recommendation end |
#recommendation=(value) ⇒ Object
Sets the recommendation property value. A system-generated recommendation for the approval decision based off last interactive sign-in to tenant. Recommend approve if sign-in is within thirty days of start of review. Recommend deny if sign-in is greater than thirty days of start of review. Recommendation not available otherwise. Possible values: Approve, Deny, or NoInfoAvailable. Supports $select, $orderby, and $filter (eq only). Read-only.
218 219 220 |
# File 'lib/models/access_review_instance_decision_item.rb', line 218 def recommendation=(value) @recommendation = value end |
#resource ⇒ Object
Gets the resource property value. Every decision item in an access review represents a principal’s access to a resource. This property represents details of the resource. For example, if a decision item represents access of User ‘Bob’ to Group ‘Sales’ - The principal is Bob and the resource is ‘Sales’. Resources can be of multiple types. See accessReviewInstanceDecisionItemResource. Read-only.
225 226 227 |
# File 'lib/models/access_review_instance_decision_item.rb', line 225 def resource return @resource end |
#resource=(value) ⇒ Object
Sets the resource property value. Every decision item in an access review represents a principal’s access to a resource. This property represents details of the resource. For example, if a decision item represents access of User ‘Bob’ to Group ‘Sales’ - The principal is Bob and the resource is ‘Sales’. Resources can be of multiple types. See accessReviewInstanceDecisionItemResource. Read-only.
233 234 235 |
# File 'lib/models/access_review_instance_decision_item.rb', line 233 def resource=(value) @resource = value end |
#resource_link ⇒ Object
Gets the resourceLink property value. A link to the resource. For example, graph.microsoft.com/v1.0/servicePrincipals/c86300f3-8695-4320-9f6e-32a2555f5ff8. Supports $select. Read-only.
240 241 242 |
# File 'lib/models/access_review_instance_decision_item.rb', line 240 def resource_link return @resource_link end |
#resource_link=(value) ⇒ Object
Sets the resourceLink property value. A link to the resource. For example, graph.microsoft.com/v1.0/servicePrincipals/c86300f3-8695-4320-9f6e-32a2555f5ff8. Supports $select. Read-only.
248 249 250 |
# File 'lib/models/access_review_instance_decision_item.rb', line 248 def resource_link=(value) @resource_link = value end |
#reviewed_by ⇒ Object
Gets the reviewedBy property value. The identifier of the reviewer.00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn’t reviewed. Supports $select. Read-only.
255 256 257 |
# File 'lib/models/access_review_instance_decision_item.rb', line 255 def reviewed_by return @reviewed_by end |
#reviewed_by=(value) ⇒ Object
Sets the reviewedBy property value. The identifier of the reviewer.00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn’t reviewed. Supports $select. Read-only.
263 264 265 |
# File 'lib/models/access_review_instance_decision_item.rb', line 263 def reviewed_by=(value) @reviewed_by = value end |
#reviewed_date_time ⇒ Object
Gets the reviewedDateTime property value. The timestamp when the review decision occurred. Supports $select. Read-only.
270 271 272 |
# File 'lib/models/access_review_instance_decision_item.rb', line 270 def reviewed_date_time return @reviewed_date_time end |
#reviewed_date_time=(value) ⇒ Object
Sets the reviewedDateTime property value. The timestamp when the review decision occurred. Supports $select. Read-only.
278 279 280 |
# File 'lib/models/access_review_instance_decision_item.rb', line 278 def reviewed_date_time=(value) @reviewed_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 |
# File 'lib/models/access_review_instance_decision_item.rb', line 286 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("accessReviewId", @access_review_id) writer.write_object_value("appliedBy", @applied_by) writer.write_date_time_value("appliedDateTime", @applied_date_time) writer.write_string_value("applyResult", @apply_result) writer.write_string_value("decision", @decision) writer.write_string_value("justification", @justification) writer.write_object_value("principal", @principal) writer.write_string_value("principalLink", @principal_link) writer.write_string_value("recommendation", @recommendation) writer.write_object_value("resource", @resource) writer.write_string_value("resourceLink", @resource_link) writer.write_object_value("reviewedBy", @reviewed_by) writer.write_date_time_value("reviewedDateTime", @reviewed_date_time) end |