Class: MicrosoftGraph::Models::AccessReviewStage
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/access_review_stage.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
-
#decisions ⇒ Object
Gets the decisions property value.
-
#decisions=(value) ⇒ Object
Sets the decisions property value.
-
#end_date_time ⇒ Object
Gets the endDateTime property value.
-
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value.
-
#fallback_reviewers ⇒ Object
Gets the fallbackReviewers property value.
-
#fallback_reviewers=(value) ⇒ Object
Sets the fallbackReviewers property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new accessReviewStage and sets the default values.
-
#reviewers ⇒ Object
Gets the reviewers property value.
-
#reviewers=(value) ⇒ Object
Sets the reviewers 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.
-
#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 accessReviewStage and sets the default values.
32 33 34 |
# File 'lib/models/access_review_stage.rb', line 32 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
40 41 42 43 |
# File 'lib/models/access_review_stage.rb', line 40 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AccessReviewStage.new end |
Instance Method Details
#decisions ⇒ Object
Gets the decisions property value. Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed.
48 49 50 |
# File 'lib/models/access_review_stage.rb', line 48 def decisions return @decisions end |
#decisions=(value) ⇒ Object
Sets the decisions property value. Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed.
56 57 58 |
# File 'lib/models/access_review_stage.rb', line 56 def decisions=(value) @decisions = value end |
#end_date_time ⇒ Object
Gets the endDateTime property value. The date and time in ISO 8601 format and UTC time when the review stage is scheduled to end. This property is the cumulative total of the durationInDays for all stages. Read-only.
63 64 65 |
# File 'lib/models/access_review_stage.rb', line 63 def end_date_time return @end_date_time end |
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value. The date and time in ISO 8601 format and UTC time when the review stage is scheduled to end. This property is the cumulative total of the durationInDays for all stages. Read-only.
71 72 73 |
# File 'lib/models/access_review_stage.rb', line 71 def end_date_time=(value) @end_date_time = value end |
#fallback_reviewers ⇒ Object
Gets the fallbackReviewers property value. This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user’s manager does not exist.
78 79 80 |
# File 'lib/models/access_review_stage.rb', line 78 def fallback_reviewers return @fallback_reviewers end |
#fallback_reviewers=(value) ⇒ Object
Sets the fallbackReviewers property value. This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user’s manager does not exist.
86 87 88 |
# File 'lib/models/access_review_stage.rb', line 86 def fallback_reviewers=(value) @fallback_reviewers = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
93 94 95 96 97 98 99 100 101 102 |
# File 'lib/models/access_review_stage.rb', line 93 def get_field_deserializers() return super.merge({ "decisions" => lambda {|n| @decisions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewInstanceDecisionItem.create_from_discriminator_value(pn) }) }, "endDateTime" => lambda {|n| @end_date_time = n.get_date_time_value() }, "fallbackReviewers" => lambda {|n| @fallback_reviewers = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewReviewerScope.create_from_discriminator_value(pn) }) }, "reviewers" => lambda {|n| @reviewers = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessReviewReviewerScope.create_from_discriminator_value(pn) }) }, "startDateTime" => lambda {|n| @start_date_time = n.get_date_time_value() }, "status" => lambda {|n| @status = n.get_string_value() }, }) end |
#reviewers ⇒ Object
Gets the reviewers property value. This collection of access review scopes is used to define who the reviewers are. For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API.
107 108 109 |
# File 'lib/models/access_review_stage.rb', line 107 def reviewers return @reviewers end |
#reviewers=(value) ⇒ Object
Sets the reviewers property value. This collection of access review scopes is used to define who the reviewers are. For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API.
115 116 117 |
# File 'lib/models/access_review_stage.rb', line 115 def reviewers=(value) @reviewers = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
123 124 125 126 127 128 129 130 131 132 |
# File 'lib/models/access_review_stage.rb', line 123 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("decisions", @decisions) writer.write_date_time_value("endDateTime", @end_date_time) writer.write_collection_of_object_values("fallbackReviewers", @fallback_reviewers) writer.write_collection_of_object_values("reviewers", @reviewers) writer.write_date_time_value("startDateTime", @start_date_time) writer.write_string_value("status", @status) end |
#start_date_time ⇒ Object
Gets the startDateTime property value. The date and time in ISO 8601 format and UTC time when the review stage is scheduled to start. Read-only.
137 138 139 |
# File 'lib/models/access_review_stage.rb', line 137 def start_date_time return @start_date_time end |
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value. The date and time in ISO 8601 format and UTC time when the review stage is scheduled to start. Read-only.
145 146 147 |
# File 'lib/models/access_review_stage.rb', line 145 def start_date_time=(value) @start_date_time = value end |
#status ⇒ Object
Gets the status property value. Specifies the status of an accessReviewStage. Possible values: Initializing, NotStarted, Starting, InProgress, Completing, Completed, AutoReviewing, and AutoReviewed. Supports $orderby, and $filter (eq only). Read-only.
152 153 154 |
# File 'lib/models/access_review_stage.rb', line 152 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. Specifies the status of an accessReviewStage. Possible values: Initializing, NotStarted, Starting, InProgress, Completing, Completed, AutoReviewing, and AutoReviewed. Supports $orderby, and $filter (eq only). Read-only.
160 161 162 |
# File 'lib/models/access_review_stage.rb', line 160 def status=(value) @status = value end |