Class: MicrosoftGraph::Models::AccessReviewStage

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/access_review_stage.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a access_review_stage

Raises:

  • (StandardError)


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

#decisionsObject

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.

Returns:

  • a access_review_instance_decision_item



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.

Parameters:

  • value

    Value to set for the decisions property.

Returns:

  • a void



56
57
58
# File 'lib/models/access_review_stage.rb', line 56

def decisions=(value)
    @decisions = value
end

#end_date_timeObject

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.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the endDateTime property.

Returns:

  • a void



71
72
73
# File 'lib/models/access_review_stage.rb', line 71

def end_date_time=(value)
    @end_date_time = value
end

#fallback_reviewersObject

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.

Returns:

  • a access_review_reviewer_scope



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.

Parameters:

  • value

    Value to set for the fallbackReviewers property.

Returns:

  • a void



86
87
88
# File 'lib/models/access_review_stage.rb', line 86

def fallback_reviewers=(value)
    @fallback_reviewers = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#reviewersObject

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.

Returns:

  • a access_review_reviewer_scope



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.

Parameters:

  • value

    Value to set for the reviewers property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_timeObject

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.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the startDateTime property.

Returns:

  • a void



145
146
147
# File 'lib/models/access_review_stage.rb', line 145

def start_date_time=(value)
    @start_date_time = value
end

#statusObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



160
161
162
# File 'lib/models/access_review_stage.rb', line 160

def status=(value)
    @status = value
end