Class: MicrosoftGraph::Models::SchedulingGroup

Inherits:
ChangeTrackedEntity show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/scheduling_group.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ChangeTrackedEntity

#created_date_time, #created_date_time=, #last_modified_by, #last_modified_by=, #last_modified_date_time, #last_modified_date_time=

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new schedulingGroup and sets the default values.



22
23
24
25
# File 'lib/models/scheduling_group.rb', line 22

def initialize()
    super
    @odata_type = "#microsoft.graph.schedulingGroup"
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 scheduling_group

Raises:

  • (StandardError)


31
32
33
34
# File 'lib/models/scheduling_group.rb', line 31

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return SchedulingGroup.new
end

Instance Method Details

#display_nameObject

Gets the displayName property value. The display name for the schedulingGroup. Required.

Returns:

  • a string



39
40
41
# File 'lib/models/scheduling_group.rb', line 39

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The display name for the schedulingGroup. Required.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



47
48
49
# File 'lib/models/scheduling_group.rb', line 47

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



54
55
56
57
58
59
60
# File 'lib/models/scheduling_group.rb', line 54

def get_field_deserializers()
    return super.merge({
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "isActive" => lambda {|n| @is_active = n.get_boolean_value() },
        "userIds" => lambda {|n| @user_ids = n.get_collection_of_primitive_values(String) },
    })
end

#is_activeObject

Gets the isActive property value. Indicates whether the schedulingGroup can be used when creating new entities or updating existing ones. Required.

Returns:

  • a boolean



65
66
67
# File 'lib/models/scheduling_group.rb', line 65

def is_active
    return @is_active
end

#is_active=(value) ⇒ Object

Sets the isActive property value. Indicates whether the schedulingGroup can be used when creating new entities or updating existing ones. Required.

Parameters:

  • value

    Value to set for the isActive property.

Returns:

  • a void



73
74
75
# File 'lib/models/scheduling_group.rb', line 73

def is_active=(value)
    @is_active = 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)


81
82
83
84
85
86
# File 'lib/models/scheduling_group.rb', line 81

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("displayName", @display_name)
    writer.write_collection_of_primitive_values("userIds", @user_ids)
end

#user_idsObject

Gets the userIds property value. The list of user IDs that are a member of the schedulingGroup. Required.

Returns:

  • a string



91
92
93
# File 'lib/models/scheduling_group.rb', line 91

def user_ids
    return @user_ids
end

#user_ids=(value) ⇒ Object

Sets the userIds property value. The list of user IDs that are a member of the schedulingGroup. Required.

Parameters:

  • value

    Value to set for the userIds property.

Returns:

  • a void



99
100
101
# File 'lib/models/scheduling_group.rb', line 99

def user_ids=(value)
    @user_ids = value
end