Class: MicrosoftGraph::Models::OpenShift
- Inherits:
-
ChangeTrackedEntity
- Object
- Entity
- ChangeTrackedEntity
- MicrosoftGraph::Models::OpenShift
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/open_shift.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
-
#draft_open_shift ⇒ Object
Gets the draftOpenShift property value.
-
#draft_open_shift=(value) ⇒ Object
Sets the draftOpenShift property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new openShift and sets the default values.
-
#scheduling_group_id ⇒ Object
Gets the schedulingGroupId property value.
-
#scheduling_group_id=(value) ⇒ Object
Sets the schedulingGroupId property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#shared_open_shift ⇒ Object
Gets the sharedOpenShift property value.
-
#shared_open_shift=(value) ⇒ Object
Sets the sharedOpenShift property value.
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
#initialize ⇒ Object
Instantiates a new openShift and sets the default values.
22 23 24 25 |
# File 'lib/models/open_shift.rb', line 22 def initialize() super @odata_type = "#microsoft.graph.openShift" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
31 32 33 34 |
# File 'lib/models/open_shift.rb', line 31 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return OpenShift.new end |
Instance Method Details
#draft_open_shift ⇒ Object
Gets the draftOpenShift property value. An unpublished open shift.
39 40 41 |
# File 'lib/models/open_shift.rb', line 39 def draft_open_shift return @draft_open_shift end |
#draft_open_shift=(value) ⇒ Object
Sets the draftOpenShift property value. An unpublished open shift.
47 48 49 |
# File 'lib/models/open_shift.rb', line 47 def draft_open_shift=(value) @draft_open_shift = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
54 55 56 57 58 59 60 |
# File 'lib/models/open_shift.rb', line 54 def get_field_deserializers() return super.merge({ "draftOpenShift" => lambda {|n| @draft_open_shift = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::OpenShiftItem.create_from_discriminator_value(pn) }) }, "schedulingGroupId" => lambda {|n| @scheduling_group_id = n.get_string_value() }, "sharedOpenShift" => lambda {|n| @shared_open_shift = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::OpenShiftItem.create_from_discriminator_value(pn) }) }, }) end |
#scheduling_group_id ⇒ Object
Gets the schedulingGroupId property value. ID for the scheduling group that the open shift belongs to.
65 66 67 |
# File 'lib/models/open_shift.rb', line 65 def scheduling_group_id return @scheduling_group_id end |
#scheduling_group_id=(value) ⇒ Object
Sets the schedulingGroupId property value. ID for the scheduling group that the open shift belongs to.
73 74 75 |
# File 'lib/models/open_shift.rb', line 73 def scheduling_group_id=(value) @scheduling_group_id = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
81 82 83 84 85 86 87 |
# File 'lib/models/open_shift.rb', line 81 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("draftOpenShift", @draft_open_shift) writer.write_string_value("schedulingGroupId", @scheduling_group_id) writer.write_object_value("sharedOpenShift", @shared_open_shift) end |
#shared_open_shift ⇒ Object
Gets the sharedOpenShift property value. A published open shift.
92 93 94 |
# File 'lib/models/open_shift.rb', line 92 def shared_open_shift return @shared_open_shift end |
#shared_open_shift=(value) ⇒ Object
Sets the sharedOpenShift property value. A published open shift.
100 101 102 |
# File 'lib/models/open_shift.rb', line 100 def shared_open_shift=(value) @shared_open_shift = value end |