Class: MicrosoftGraph::Models::OpenShiftChangeRequest
- Inherits:
-
ScheduleChangeRequest
- Object
- Entity
- ChangeTrackedEntity
- ScheduleChangeRequest
- MicrosoftGraph::Models::OpenShiftChangeRequest
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/open_shift_change_request.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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new openShiftChangeRequest and sets the default values.
-
#open_shift_id ⇒ Object
Gets the openShiftId property value.
-
#open_shift_id=(value) ⇒ Object
Sets the openShiftId property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from ScheduleChangeRequest
#assigned_to, #assigned_to=, #manager_action_date_time, #manager_action_date_time=, #manager_action_message, #manager_action_message=, #manager_user_id, #manager_user_id=, #sender_date_time, #sender_date_time=, #sender_message, #sender_message=, #sender_user_id, #sender_user_id=, #state, #state=
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 openShiftChangeRequest and sets the default values.
16 17 18 19 |
# File 'lib/models/open_shift_change_request.rb', line 16 def initialize() super @odata_type = "#microsoft.graph.openShiftChangeRequest" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
25 26 27 28 |
# File 'lib/models/open_shift_change_request.rb', line 25 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return OpenShiftChangeRequest.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
33 34 35 36 37 |
# File 'lib/models/open_shift_change_request.rb', line 33 def get_field_deserializers() return super.merge({ "openShiftId" => lambda {|n| @open_shift_id = n.get_string_value() }, }) end |
#open_shift_id ⇒ Object
Gets the openShiftId property value. ID for the open shift.
42 43 44 |
# File 'lib/models/open_shift_change_request.rb', line 42 def open_shift_id return @open_shift_id end |
#open_shift_id=(value) ⇒ Object
Sets the openShiftId property value. ID for the open shift.
50 51 52 |
# File 'lib/models/open_shift_change_request.rb', line 50 def open_shift_id=(value) @open_shift_id = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
58 59 60 61 62 |
# File 'lib/models/open_shift_change_request.rb', line 58 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("openShiftId", @open_shift_id) end |