Class: MicrosoftGraph::Models::AccessPackageAssignmentReviewSettings
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::AccessPackageAssignmentReviewSettings
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/access_package_assignment_review_settings.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#expiration_behavior ⇒ Object
Gets the expirationBehavior property value.
-
#expiration_behavior=(value) ⇒ Object
Sets the expirationBehavior 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 accessPackageAssignmentReviewSettings and sets the default values.
-
#is_enabled ⇒ Object
Gets the isEnabled property value.
-
#is_enabled=(value) ⇒ Object
Sets the isEnabled property value.
-
#is_recommendation_enabled ⇒ Object
Gets the isRecommendationEnabled property value.
-
#is_recommendation_enabled=(value) ⇒ Object
Sets the isRecommendationEnabled property value.
-
#is_reviewer_justification_required ⇒ Object
Gets the isReviewerJustificationRequired property value.
-
#is_reviewer_justification_required=(value) ⇒ Object
Sets the isReviewerJustificationRequired property value.
-
#is_self_review ⇒ Object
Gets the isSelfReview property value.
-
#is_self_review=(value) ⇒ Object
Sets the isSelfReview property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#primary_reviewers ⇒ Object
Gets the primaryReviewers property value.
-
#primary_reviewers=(value) ⇒ Object
Sets the primaryReviewers property value.
-
#schedule ⇒ Object
Gets the schedule property value.
-
#schedule=(value) ⇒ Object
Sets the schedule property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new accessPackageAssignmentReviewSettings and sets the default values.
58 59 60 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 58 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
66 67 68 69 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 66 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AccessPackageAssignmentReviewSettings.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
43 44 45 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 43 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
51 52 53 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 51 def additional_data=(value) @additional_data = value end |
#expiration_behavior ⇒ Object
Gets the expirationBehavior property value. The default decision to apply if the access is not reviewed. The possible values are: keepAccess, removeAccess, acceptAccessRecommendation, unknownFutureValue.
74 75 76 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 74 def expiration_behavior return @expiration_behavior end |
#expiration_behavior=(value) ⇒ Object
Sets the expirationBehavior property value. The default decision to apply if the access is not reviewed. The possible values are: keepAccess, removeAccess, acceptAccessRecommendation, unknownFutureValue.
82 83 84 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 82 def expiration_behavior=(value) @expiration_behavior = value end |
#fallback_reviewers ⇒ Object
Gets the fallbackReviewers property value. This collection specifies the users who will be the fallback reviewers when the primary reviewers don’t respond.
89 90 91 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 89 def fallback_reviewers return @fallback_reviewers end |
#fallback_reviewers=(value) ⇒ Object
Sets the fallbackReviewers property value. This collection specifies the users who will be the fallback reviewers when the primary reviewers don’t respond.
97 98 99 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 97 def fallback_reviewers=(value) @fallback_reviewers = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 104 def get_field_deserializers() return { "expirationBehavior" => lambda {|n| @expiration_behavior = n.get_enum_value(MicrosoftGraph::Models::AccessReviewExpirationBehavior) }, "fallbackReviewers" => lambda {|n| @fallback_reviewers = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SubjectSet.create_from_discriminator_value(pn) }) }, "isEnabled" => lambda {|n| @is_enabled = n.get_boolean_value() }, "isRecommendationEnabled" => lambda {|n| @is_recommendation_enabled = n.get_boolean_value() }, "isReviewerJustificationRequired" => lambda {|n| @is_reviewer_justification_required = n.get_boolean_value() }, "isSelfReview" => lambda {|n| @is_self_review = n.get_boolean_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "primaryReviewers" => lambda {|n| @primary_reviewers = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SubjectSet.create_from_discriminator_value(pn) }) }, "schedule" => lambda {|n| @schedule = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::EntitlementManagementSchedule.create_from_discriminator_value(pn) }) }, } end |
#is_enabled ⇒ Object
Gets the isEnabled property value. If true, access reviews are required for assignments through this policy.
121 122 123 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 121 def is_enabled return @is_enabled end |
#is_enabled=(value) ⇒ Object
Sets the isEnabled property value. If true, access reviews are required for assignments through this policy.
129 130 131 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 129 def is_enabled=(value) @is_enabled = value end |
#is_recommendation_enabled ⇒ Object
Gets the isRecommendationEnabled property value. Specifies whether to display recommendations to the reviewer. The default value is true.
136 137 138 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 136 def is_recommendation_enabled return @is_recommendation_enabled end |
#is_recommendation_enabled=(value) ⇒ Object
Sets the isRecommendationEnabled property value. Specifies whether to display recommendations to the reviewer. The default value is true.
144 145 146 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 144 def is_recommendation_enabled=(value) @is_recommendation_enabled = value end |
#is_reviewer_justification_required ⇒ Object
Gets the isReviewerJustificationRequired property value. Specifies whether the reviewer must provide justification for the approval. The default value is true.
151 152 153 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 151 def is_reviewer_justification_required return @is_reviewer_justification_required end |
#is_reviewer_justification_required=(value) ⇒ Object
Sets the isReviewerJustificationRequired property value. Specifies whether the reviewer must provide justification for the approval. The default value is true.
159 160 161 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 159 def is_reviewer_justification_required=(value) @is_reviewer_justification_required = value end |
#is_self_review ⇒ Object
Gets the isSelfReview property value. Specifies whether the principals can review their own assignments.
166 167 168 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 166 def is_self_review return @is_self_review end |
#is_self_review=(value) ⇒ Object
Sets the isSelfReview property value. Specifies whether the principals can review their own assignments.
174 175 176 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 174 def is_self_review=(value) @is_self_review = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
181 182 183 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 181 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
189 190 191 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 189 def odata_type=(value) @odata_type = value end |
#primary_reviewers ⇒ Object
Gets the primaryReviewers property value. This collection specifies the users or group of users who will review the access package assignments.
196 197 198 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 196 def primary_reviewers return @primary_reviewers end |
#primary_reviewers=(value) ⇒ Object
Sets the primaryReviewers property value. This collection specifies the users or group of users who will review the access package assignments.
204 205 206 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 204 def primary_reviewers=(value) @primary_reviewers = value end |
#schedule ⇒ Object
Gets the schedule property value. When the first review should start and how often it should recur.
211 212 213 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 211 def schedule return @schedule end |
#schedule=(value) ⇒ Object
Sets the schedule property value. When the first review should start and how often it should recur.
219 220 221 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 219 def schedule=(value) @schedule = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
227 228 229 230 231 232 233 234 235 236 237 238 239 |
# File 'lib/models/access_package_assignment_review_settings.rb', line 227 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_enum_value("expirationBehavior", @expiration_behavior) writer.write_collection_of_object_values("fallbackReviewers", @fallback_reviewers) writer.write_boolean_value("isEnabled", @is_enabled) writer.write_boolean_value("isRecommendationEnabled", @is_recommendation_enabled) writer.write_boolean_value("isReviewerJustificationRequired", @is_reviewer_justification_required) writer.write_boolean_value("isSelfReview", @is_self_review) writer.write_string_value("@odata.type", @odata_type) writer.write_collection_of_object_values("primaryReviewers", @primary_reviewers) writer.write_object_value("schedule", @schedule) writer.write_additional_data(@additional_data) end |