Class: MicrosoftGraph::Models::CustomSecurityAttributeDefinition
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/custom_security_attribute_definition.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
-
#allowed_values ⇒ Object
Gets the allowedValues property value.
-
#allowed_values=(value) ⇒ Object
Sets the allowedValues property value.
-
#attribute_set ⇒ Object
Gets the attributeSet property value.
-
#attribute_set=(value) ⇒ Object
Sets the attributeSet property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new customSecurityAttributeDefinition and sets the default values.
-
#is_collection ⇒ Object
Gets the isCollection property value.
-
#is_collection=(value) ⇒ Object
Sets the isCollection property value.
-
#is_searchable ⇒ Object
Gets the isSearchable property value.
-
#is_searchable=(value) ⇒ Object
Sets the isSearchable property value.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
-
#type ⇒ Object
Gets the type property value.
-
#type=(value) ⇒ Object
Sets the type property value.
-
#use_pre_defined_values_only ⇒ Object
Gets the usePreDefinedValuesOnly property value.
-
#use_pre_defined_values_only=(value) ⇒ Object
Sets the usePreDefinedValuesOnly property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new customSecurityAttributeDefinition and sets the default values.
70 71 72 |
# File 'lib/models/custom_security_attribute_definition.rb', line 70 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
78 79 80 81 |
# File 'lib/models/custom_security_attribute_definition.rb', line 78 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return CustomSecurityAttributeDefinition.new end |
Instance Method Details
#allowed_values ⇒ Object
Gets the allowedValues property value. Values that are predefined for this custom security attribute. This navigation property is not returned by default and must be specified in an $expand query. For example, /directory/customSecurityAttributeDefinitions?$expand=allowedValues.
40 41 42 |
# File 'lib/models/custom_security_attribute_definition.rb', line 40 def allowed_values return @allowed_values end |
#allowed_values=(value) ⇒ Object
Sets the allowedValues property value. Values that are predefined for this custom security attribute. This navigation property is not returned by default and must be specified in an $expand query. For example, /directory/customSecurityAttributeDefinitions?$expand=allowedValues.
48 49 50 |
# File 'lib/models/custom_security_attribute_definition.rb', line 48 def allowed_values=(value) @allowed_values = value end |
#attribute_set ⇒ Object
Gets the attributeSet property value. Name of the attribute set. Case insensitive.
55 56 57 |
# File 'lib/models/custom_security_attribute_definition.rb', line 55 def attribute_set return @attribute_set end |
#attribute_set=(value) ⇒ Object
Sets the attributeSet property value. Name of the attribute set. Case insensitive.
63 64 65 |
# File 'lib/models/custom_security_attribute_definition.rb', line 63 def attribute_set=(value) @attribute_set = value end |
#description ⇒ Object
Gets the description property value. Description of the custom security attribute. Can be up to 128 characters long and include Unicode characters. Can be changed later.
86 87 88 |
# File 'lib/models/custom_security_attribute_definition.rb', line 86 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Description of the custom security attribute. Can be up to 128 characters long and include Unicode characters. Can be changed later.
94 95 96 |
# File 'lib/models/custom_security_attribute_definition.rb', line 94 def description=(value) @description = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/models/custom_security_attribute_definition.rb', line 101 def get_field_deserializers() return super.merge({ "allowedValues" => lambda {|n| @allowed_values = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AllowedValue.create_from_discriminator_value(pn) }) }, "attributeSet" => lambda {|n| @attribute_set = n.get_string_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "isCollection" => lambda {|n| @is_collection = n.get_boolean_value() }, "isSearchable" => lambda {|n| @is_searchable = n.get_boolean_value() }, "name" => lambda {|n| @name = n.get_string_value() }, "status" => lambda {|n| @status = n.get_string_value() }, "type" => lambda {|n| @type = n.get_string_value() }, "usePreDefinedValuesOnly" => lambda {|n| @use_pre_defined_values_only = n.get_boolean_value() }, }) end |
#is_collection ⇒ Object
Gets the isCollection property value. Indicates whether multiple values can be assigned to the custom security attribute. Cannot be changed later. If type is set to Boolean, isCollection cannot be set to true.
118 119 120 |
# File 'lib/models/custom_security_attribute_definition.rb', line 118 def is_collection return @is_collection end |
#is_collection=(value) ⇒ Object
Sets the isCollection property value. Indicates whether multiple values can be assigned to the custom security attribute. Cannot be changed later. If type is set to Boolean, isCollection cannot be set to true.
126 127 128 |
# File 'lib/models/custom_security_attribute_definition.rb', line 126 def is_collection=(value) @is_collection = value end |
#is_searchable ⇒ Object
Gets the isSearchable property value. Indicates whether custom security attribute values are indexed for searching on objects that are assigned attribute values. Cannot be changed later.
133 134 135 |
# File 'lib/models/custom_security_attribute_definition.rb', line 133 def is_searchable return @is_searchable end |
#is_searchable=(value) ⇒ Object
Sets the isSearchable property value. Indicates whether custom security attribute values are indexed for searching on objects that are assigned attribute values. Cannot be changed later.
141 142 143 |
# File 'lib/models/custom_security_attribute_definition.rb', line 141 def is_searchable=(value) @is_searchable = value end |
#name ⇒ Object
Gets the name property value. Name of the custom security attribute. Must be unique within an attribute set. Can be up to 32 characters long and include Unicode characters. Cannot contain spaces or special characters. Cannot be changed later. Case insensitive.
148 149 150 |
# File 'lib/models/custom_security_attribute_definition.rb', line 148 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. Name of the custom security attribute. Must be unique within an attribute set. Can be up to 32 characters long and include Unicode characters. Cannot contain spaces or special characters. Cannot be changed later. Case insensitive.
156 157 158 |
# File 'lib/models/custom_security_attribute_definition.rb', line 156 def name=(value) @name = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/models/custom_security_attribute_definition.rb', line 164 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("allowedValues", @allowed_values) writer.write_string_value("attributeSet", @attribute_set) writer.write_string_value("description", @description) writer.write_boolean_value("isCollection", @is_collection) writer.write_boolean_value("isSearchable", @is_searchable) writer.write_string_value("name", @name) writer.write_string_value("status", @status) writer.write_string_value("type", @type) writer.write_boolean_value("usePreDefinedValuesOnly", @use_pre_defined_values_only) end |
#status ⇒ Object
Gets the status property value. Specifies whether the custom security attribute is active or deactivated. Acceptable values are: Available and Deprecated. Can be changed later.
181 182 183 |
# File 'lib/models/custom_security_attribute_definition.rb', line 181 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. Specifies whether the custom security attribute is active or deactivated. Acceptable values are: Available and Deprecated. Can be changed later.
189 190 191 |
# File 'lib/models/custom_security_attribute_definition.rb', line 189 def status=(value) @status = value end |
#type ⇒ Object
Gets the type property value. Data type for the custom security attribute values. Supported types are: Boolean, Integer, and String. Cannot be changed later.
196 197 198 |
# File 'lib/models/custom_security_attribute_definition.rb', line 196 def type return @type end |
#type=(value) ⇒ Object
Sets the type property value. Data type for the custom security attribute values. Supported types are: Boolean, Integer, and String. Cannot be changed later.
204 205 206 |
# File 'lib/models/custom_security_attribute_definition.rb', line 204 def type=(value) @type = value end |
#use_pre_defined_values_only ⇒ Object
Gets the usePreDefinedValuesOnly property value. Indicates whether only predefined values can be assigned to the custom security attribute. If set to false, free-form values are allowed. Can later be changed from true to false, but cannot be changed from false to true. If type is set to Boolean, usePreDefinedValuesOnly cannot be set to true.
211 212 213 |
# File 'lib/models/custom_security_attribute_definition.rb', line 211 def use_pre_defined_values_only return @use_pre_defined_values_only end |
#use_pre_defined_values_only=(value) ⇒ Object
Sets the usePreDefinedValuesOnly property value. Indicates whether only predefined values can be assigned to the custom security attribute. If set to false, free-form values are allowed. Can later be changed from true to false, but cannot be changed from false to true. If type is set to Boolean, usePreDefinedValuesOnly cannot be set to true.
219 220 221 |
# File 'lib/models/custom_security_attribute_definition.rb', line 219 def use_pre_defined_values_only=(value) @use_pre_defined_values_only = value end |