Class: MicrosoftGraph::Models::UnifiedRoleManagementPolicyRuleTarget
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::UnifiedRoleManagementPolicyRuleTarget
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/unified_role_management_policy_rule_target.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.
-
#caller ⇒ Object
Gets the caller property value.
-
#caller=(value) ⇒ Object
Sets the caller property value.
-
#enforced_settings ⇒ Object
Gets the enforcedSettings property value.
-
#enforced_settings=(value) ⇒ Object
Sets the enforcedSettings property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#inheritable_settings ⇒ Object
Gets the inheritableSettings property value.
-
#inheritable_settings=(value) ⇒ Object
Sets the inheritableSettings property value.
-
#initialize ⇒ Object
constructor
Instantiates a new unifiedRoleManagementPolicyRuleTarget and sets the default values.
-
#level ⇒ Object
Gets the level property value.
-
#level=(value) ⇒ Object
Sets the level property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#operations ⇒ Object
Gets the operations property value.
-
#operations=(value) ⇒ Object
Sets the operations property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#target_objects ⇒ Object
Gets the targetObjects property value.
-
#target_objects=(value) ⇒ Object
Sets the targetObjects property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new unifiedRoleManagementPolicyRuleTarget and sets the default values.
67 68 69 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 67 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
75 76 77 78 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 75 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return UnifiedRoleManagementPolicyRuleTarget.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.
37 38 39 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 37 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.
45 46 47 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 45 def additional_data=(value) @additional_data = value end |
#caller ⇒ Object
Gets the caller property value. The type of caller that’s the target of the policy rule. Allowed values are: None, Admin, EndUser.
52 53 54 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 52 def caller return @caller end |
#caller=(value) ⇒ Object
Sets the caller property value. The type of caller that’s the target of the policy rule. Allowed values are: None, Admin, EndUser.
60 61 62 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 60 def caller=(value) @caller = value end |
#enforced_settings ⇒ Object
Gets the enforcedSettings property value. The list of role settings that are enforced and cannot be overridden by child scopes. Use All for all settings.
83 84 85 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 83 def enforced_settings return @enforced_settings end |
#enforced_settings=(value) ⇒ Object
Sets the enforcedSettings property value. The list of role settings that are enforced and cannot be overridden by child scopes. Use All for all settings.
91 92 93 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 91 def enforced_settings=(value) @enforced_settings = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 98 def get_field_deserializers() return { "caller" => lambda {|n| @caller = n.get_string_value() }, "enforcedSettings" => lambda {|n| @enforced_settings = n.get_collection_of_primitive_values(String) }, "inheritableSettings" => lambda {|n| @inheritable_settings = n.get_collection_of_primitive_values(String) }, "level" => lambda {|n| @level = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "operations" => lambda {|n| @operations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UnifiedRoleManagementPolicyRuleTargetOperations.create_from_discriminator_value(pn) }) }, "targetObjects" => lambda {|n| @target_objects = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, } end |
#inheritable_settings ⇒ Object
Gets the inheritableSettings property value. The list of role settings that can be inherited by child scopes. Use All for all settings.
113 114 115 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 113 def inheritable_settings return @inheritable_settings end |
#inheritable_settings=(value) ⇒ Object
Sets the inheritableSettings property value. The list of role settings that can be inherited by child scopes. Use All for all settings.
121 122 123 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 121 def inheritable_settings=(value) @inheritable_settings = value end |
#level ⇒ Object
Gets the level property value. The role assignment type that’s the target of policy rule. Allowed values are: Eligibility, Assignment.
128 129 130 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 128 def level return @level end |
#level=(value) ⇒ Object
Sets the level property value. The role assignment type that’s the target of policy rule. Allowed values are: Eligibility, Assignment.
136 137 138 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 136 def level=(value) @level = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
143 144 145 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 143 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
151 152 153 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 151 def odata_type=(value) @odata_type = value end |
#operations ⇒ Object
Gets the operations property value. The role management operations that are the target of the policy rule. Allowed values are: All, Activate, Deactivate, Assign, Update, Remove, Extend, Renew.
158 159 160 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 158 def operations return @operations end |
#operations=(value) ⇒ Object
Sets the operations property value. The role management operations that are the target of the policy rule. Allowed values are: All, Activate, Deactivate, Assign, Update, Remove, Extend, Renew.
166 167 168 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 166 def operations=(value) @operations = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 174 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("caller", @caller) writer.write_collection_of_primitive_values("enforcedSettings", @enforced_settings) writer.write_collection_of_primitive_values("inheritableSettings", @inheritable_settings) writer.write_string_value("level", @level) writer.write_string_value("@odata.type", @odata_type) writer.write_collection_of_object_values("operations", @operations) writer.write_collection_of_object_values("targetObjects", @target_objects) writer.write_additional_data(@additional_data) end |
#target_objects ⇒ Object
Gets the targetObjects property value. The targetObjects property
189 190 191 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 189 def target_objects return @target_objects end |
#target_objects=(value) ⇒ Object
Sets the targetObjects property value. The targetObjects property
197 198 199 |
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 197 def target_objects=(value) @target_objects = value end |