Class: MicrosoftGraph::Models::UnifiedRoleManagementPolicy
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/unified_role_management_policy.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
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#effective_rules ⇒ Object
Gets the effectiveRules property value.
-
#effective_rules=(value) ⇒ Object
Sets the effectiveRules property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new unifiedRoleManagementPolicy and sets the default values.
-
#is_organization_default ⇒ Object
Gets the isOrganizationDefault property value.
-
#is_organization_default=(value) ⇒ Object
Sets the isOrganizationDefault property value.
-
#last_modified_by ⇒ Object
Gets the lastModifiedBy property value.
-
#last_modified_by=(value) ⇒ Object
Sets the lastModifiedBy property value.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#rules ⇒ Object
Gets the rules property value.
-
#rules=(value) ⇒ Object
Sets the rules property value.
-
#scope_id ⇒ Object
Gets the scopeId property value.
-
#scope_id=(value) ⇒ Object
Sets the scopeId property value.
-
#scope_type ⇒ Object
Gets the scopeType property value.
-
#scope_type=(value) ⇒ Object
Sets the scopeType 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 unifiedRoleManagementPolicy and sets the default values.
41 42 43 |
# File 'lib/models/unified_role_management_policy.rb', line 41 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
49 50 51 52 |
# File 'lib/models/unified_role_management_policy.rb', line 49 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return UnifiedRoleManagementPolicy.new end |
Instance Method Details
#description ⇒ Object
Gets the description property value. Description for the policy.
57 58 59 |
# File 'lib/models/unified_role_management_policy.rb', line 57 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Description for the policy.
65 66 67 |
# File 'lib/models/unified_role_management_policy.rb', line 65 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. Display name for the policy.
72 73 74 |
# File 'lib/models/unified_role_management_policy.rb', line 72 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Display name for the policy.
80 81 82 |
# File 'lib/models/unified_role_management_policy.rb', line 80 def display_name=(value) @display_name = value end |
#effective_rules ⇒ Object
Gets the effectiveRules property value. The list of effective rules like approval rules and expiration rules evaluated based on inherited referenced rules. For example, if there is a tenant-wide policy to enforce enabling an approval rule, the effective rule will be to enable approval even if the policy has a rule to disable approval. Supports $expand.
87 88 89 |
# File 'lib/models/unified_role_management_policy.rb', line 87 def effective_rules return @effective_rules end |
#effective_rules=(value) ⇒ Object
Sets the effectiveRules property value. The list of effective rules like approval rules and expiration rules evaluated based on inherited referenced rules. For example, if there is a tenant-wide policy to enforce enabling an approval rule, the effective rule will be to enable approval even if the policy has a rule to disable approval. Supports $expand.
95 96 97 |
# File 'lib/models/unified_role_management_policy.rb', line 95 def effective_rules=(value) @effective_rules = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/models/unified_role_management_policy.rb', line 102 def get_field_deserializers() return super.merge({ "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "effectiveRules" => lambda {|n| @effective_rules = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UnifiedRoleManagementPolicyRule.create_from_discriminator_value(pn) }) }, "isOrganizationDefault" => lambda {|n| @is_organization_default = n.get_boolean_value() }, "lastModifiedBy" => lambda {|n| @last_modified_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Identity.create_from_discriminator_value(pn) }) }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, "rules" => lambda {|n| @rules = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UnifiedRoleManagementPolicyRule.create_from_discriminator_value(pn) }) }, "scopeId" => lambda {|n| @scope_id = n.get_string_value() }, "scopeType" => lambda {|n| @scope_type = n.get_string_value() }, }) end |
#is_organization_default ⇒ Object
Gets the isOrganizationDefault property value. This can only be set to true for a single tenant-wide policy which will apply to all scopes and roles. Set the scopeId to / and scopeType to Directory. Supports $filter (eq, ne).
119 120 121 |
# File 'lib/models/unified_role_management_policy.rb', line 119 def is_organization_default return @is_organization_default end |
#is_organization_default=(value) ⇒ Object
Sets the isOrganizationDefault property value. This can only be set to true for a single tenant-wide policy which will apply to all scopes and roles. Set the scopeId to / and scopeType to Directory. Supports $filter (eq, ne).
127 128 129 |
# File 'lib/models/unified_role_management_policy.rb', line 127 def is_organization_default=(value) @is_organization_default = value end |
#last_modified_by ⇒ Object
Gets the lastModifiedBy property value. The identity who last modified the role setting.
134 135 136 |
# File 'lib/models/unified_role_management_policy.rb', line 134 def last_modified_by return @last_modified_by end |
#last_modified_by=(value) ⇒ Object
Sets the lastModifiedBy property value. The identity who last modified the role setting.
142 143 144 |
# File 'lib/models/unified_role_management_policy.rb', line 142 def last_modified_by=(value) @last_modified_by = value end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. The time when the role setting was last modified.
149 150 151 |
# File 'lib/models/unified_role_management_policy.rb', line 149 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. The time when the role setting was last modified.
157 158 159 |
# File 'lib/models/unified_role_management_policy.rb', line 157 def last_modified_date_time=(value) @last_modified_date_time = value end |
#rules ⇒ Object
Gets the rules property value. The collection of rules like approval rules and expiration rules. Supports $expand.
164 165 166 |
# File 'lib/models/unified_role_management_policy.rb', line 164 def rules return @rules end |
#rules=(value) ⇒ Object
Sets the rules property value. The collection of rules like approval rules and expiration rules. Supports $expand.
172 173 174 |
# File 'lib/models/unified_role_management_policy.rb', line 172 def rules=(value) @rules = value end |
#scope_id ⇒ Object
Gets the scopeId property value. The identifier of the scope where the policy is created. Can be / for the tenant or a group ID. Required.
179 180 181 |
# File 'lib/models/unified_role_management_policy.rb', line 179 def scope_id return @scope_id end |
#scope_id=(value) ⇒ Object
Sets the scopeId property value. The identifier of the scope where the policy is created. Can be / for the tenant or a group ID. Required.
187 188 189 |
# File 'lib/models/unified_role_management_policy.rb', line 187 def scope_id=(value) @scope_id = value end |
#scope_type ⇒ Object
Gets the scopeType property value. The type of the scope where the policy is created. One of Directory, DirectoryRole. Required.
194 195 196 |
# File 'lib/models/unified_role_management_policy.rb', line 194 def scope_type return @scope_type end |
#scope_type=(value) ⇒ Object
Sets the scopeType property value. The type of the scope where the policy is created. One of Directory, DirectoryRole. Required.
202 203 204 |
# File 'lib/models/unified_role_management_policy.rb', line 202 def scope_type=(value) @scope_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/models/unified_role_management_policy.rb', line 210 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_collection_of_object_values("effectiveRules", @effective_rules) writer.write_boolean_value("isOrganizationDefault", @is_organization_default) writer.write_object_value("lastModifiedBy", @last_modified_by) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_collection_of_object_values("rules", @rules) writer.write_string_value("scopeId", @scope_id) writer.write_string_value("scopeType", @scope_type) end |