Class: MicrosoftGraph::Models::UnifiedRoleManagementPolicyRuleTarget

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/unified_role_management_policy_rule_target.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a unified_role_management_policy_rule_target

Raises:

  • (StandardError)


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_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



45
46
47
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 45

def additional_data=(value)
    @additional_data = value
end

#callerObject

Gets the caller property value. The type of caller that’s the target of the policy rule. Allowed values are: None, Admin, EndUser.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the caller property.

Returns:

  • a void



60
61
62
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 60

def caller=(value)
    @caller = value
end

#enforced_settingsObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the enforcedSettings property.

Returns:

  • a void



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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_settingsObject

Gets the inheritableSettings property value. The list of role settings that can be inherited by child scopes. Use All for all settings.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the inheritableSettings property.

Returns:

  • a void



121
122
123
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 121

def inheritable_settings=(value)
    @inheritable_settings = value
end

#levelObject

Gets the level property value. The role assignment type that’s the target of policy rule. Allowed values are: Eligibility, Assignment.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the level property.

Returns:

  • a void



136
137
138
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 136

def level=(value)
    @level = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



151
152
153
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 151

def odata_type=(value)
    @odata_type = value
end

#operationsObject

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.

Returns:

  • a unified_role_management_policy_rule_target_operations



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.

Parameters:

  • value

    Value to set for the operations property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_objectsObject

Gets the targetObjects property value. The targetObjects property

Returns:

  • a directory_object



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

Parameters:

  • value

    Value to set for the targetObjects property.

Returns:

  • a void



197
198
199
# File 'lib/models/unified_role_management_policy_rule_target.rb', line 197

def target_objects=(value)
    @target_objects = value
end