lib/models/directory.rb in microsoft_graph-0.21.0 vs lib/models/directory.rb in microsoft_graph-0.22.1
- old
+ new
@@ -8,10 +8,16 @@
include MicrosoftKiotaAbstractions::Parsable
##
# Conceptual container for user and group directory objects.
@administrative_units
##
+ # Group of related custom security attribute definitions.
+ @attribute_sets
+ ##
+ # Schema of a custom security attributes (key-value pairs).
+ @custom_security_attribute_definitions
+ ##
# Recently deleted items. Read-only. Nullable.
@deleted_items
##
# Configure domain federation with organizations whose identity provider (IdP) supports either the SAML or WS-Fed protocol.
@federation_configurations
@@ -25,20 +31,35 @@
def administrative_units
return @administrative_units
end
##
## Sets the administrativeUnits property value. Conceptual container for user and group directory objects.
- ## @param value Value to set for the administrative_units property.
+ ## @param value Value to set for the administrativeUnits property.
## @return a void
##
def administrative_units=(value)
@administrative_units = value
end
##
- ## Instantiates a new Directory and sets the default values.
+ ## Gets the attributeSets property value. Group of related custom security attribute definitions.
+ ## @return a attribute_set
+ ##
+ def attribute_sets
+ return @attribute_sets
+ end
+ ##
+ ## Sets the attributeSets property value. Group of related custom security attribute definitions.
+ ## @param value Value to set for the attributeSets property.
## @return a void
##
+ def attribute_sets=(value)
+ @attribute_sets = value
+ end
+ ##
+ ## Instantiates a new directory and sets the default values.
+ ## @return a void
+ ##
def initialize()
super
end
##
## Creates a new instance of the appropriate class based on discriminator value
@@ -48,19 +69,34 @@
def self.create_from_discriminator_value(parse_node)
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
return Directory.new
end
##
+ ## Gets the customSecurityAttributeDefinitions property value. Schema of a custom security attributes (key-value pairs).
+ ## @return a custom_security_attribute_definition
+ ##
+ def custom_security_attribute_definitions
+ return @custom_security_attribute_definitions
+ end
+ ##
+ ## Sets the customSecurityAttributeDefinitions property value. Schema of a custom security attributes (key-value pairs).
+ ## @param value Value to set for the customSecurityAttributeDefinitions property.
+ ## @return a void
+ ##
+ def custom_security_attribute_definitions=(value)
+ @custom_security_attribute_definitions = value
+ end
+ ##
## Gets the deletedItems property value. Recently deleted items. Read-only. Nullable.
## @return a directory_object
##
def deleted_items
return @deleted_items
end
##
## Sets the deletedItems property value. Recently deleted items. Read-only. Nullable.
- ## @param value Value to set for the deleted_items property.
+ ## @param value Value to set for the deletedItems property.
## @return a void
##
def deleted_items=(value)
@deleted_items = value
end
@@ -71,11 +107,11 @@
def federation_configurations
return @federation_configurations
end
##
## Sets the federationConfigurations property value. Configure domain federation with organizations whose identity provider (IdP) supports either the SAML or WS-Fed protocol.
- ## @param value Value to set for the federation_configurations property.
+ ## @param value Value to set for the federationConfigurations property.
## @return a void
##
def federation_configurations=(value)
@federation_configurations = value
end
@@ -84,10 +120,12 @@
## @return a i_dictionary
##
def get_field_deserializers()
return super.merge({
"administrativeUnits" => lambda {|n| @administrative_units = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AdministrativeUnit.create_from_discriminator_value(pn) }) },
+ "attributeSets" => lambda {|n| @attribute_sets = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AttributeSet.create_from_discriminator_value(pn) }) },
+ "customSecurityAttributeDefinitions" => lambda {|n| @custom_security_attribute_definitions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CustomSecurityAttributeDefinition.create_from_discriminator_value(pn) }) },
"deletedItems" => lambda {|n| @deleted_items = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) },
"federationConfigurations" => lambda {|n| @federation_configurations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::IdentityProviderBase.create_from_discriminator_value(pn) }) },
"onPremisesSynchronization" => lambda {|n| @on_premises_synchronization = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::OnPremisesDirectorySynchronization.create_from_discriminator_value(pn) }) },
})
end
@@ -98,11 +136,11 @@
def on_premises_synchronization
return @on_premises_synchronization
end
##
## Sets the onPremisesSynchronization property value. A container for on-premises directory synchronization functionalities that are available for the organization.
- ## @param value Value to set for the on_premises_synchronization property.
+ ## @param value Value to set for the onPremisesSynchronization property.
## @return a void
##
def on_premises_synchronization=(value)
@on_premises_synchronization = value
end
@@ -113,9 +151,11 @@
##
def serialize(writer)
raise StandardError, 'writer cannot be null' if writer.nil?
super
writer.write_collection_of_object_values("administrativeUnits", @administrative_units)
+ writer.write_collection_of_object_values("attributeSets", @attribute_sets)
+ writer.write_collection_of_object_values("customSecurityAttributeDefinitions", @custom_security_attribute_definitions)
writer.write_collection_of_object_values("deletedItems", @deleted_items)
writer.write_collection_of_object_values("federationConfigurations", @federation_configurations)
writer.write_collection_of_object_values("onPremisesSynchronization", @on_premises_synchronization)
end
end