Class: MicrosoftGraph::Models::AccessPackageAssignmentRequestCallbackData
- Inherits:
-
CustomExtensionData
- Object
- CustomExtensionData
- MicrosoftGraph::Models::AccessPackageAssignmentRequestCallbackData
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/access_package_assignment_request_callback_data.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
-
#custom_extension_stage_instance_detail ⇒ Object
Gets the customExtensionStageInstanceDetail property value.
-
#custom_extension_stage_instance_detail=(value) ⇒ Object
Sets the customExtensionStageInstanceDetail property value.
-
#custom_extension_stage_instance_id ⇒ Object
Gets the customExtensionStageInstanceId property value.
-
#custom_extension_stage_instance_id=(value) ⇒ Object
Sets the customExtensionStageInstanceId property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new accessPackageAssignmentRequestCallbackData and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#stage ⇒ Object
Gets the stage property value.
-
#stage=(value) ⇒ Object
Sets the stage property value.
-
#state ⇒ Object
Gets the state property value.
-
#state=(value) ⇒ Object
Sets the state property value.
Methods inherited from CustomExtensionData
#additional_data, #additional_data=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new accessPackageAssignmentRequestCallbackData and sets the default values.
25 26 27 28 |
# File 'lib/models/access_package_assignment_request_callback_data.rb', line 25 def initialize() super @odata_type = "#microsoft.graph.accessPackageAssignmentRequestCallbackData" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
34 35 36 37 |
# File 'lib/models/access_package_assignment_request_callback_data.rb', line 34 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AccessPackageAssignmentRequestCallbackData.new end |
Instance Method Details
#custom_extension_stage_instance_detail ⇒ Object
Gets the customExtensionStageInstanceDetail property value. Details for the callback.
42 43 44 |
# File 'lib/models/access_package_assignment_request_callback_data.rb', line 42 def custom_extension_stage_instance_detail return @custom_extension_stage_instance_detail end |
#custom_extension_stage_instance_detail=(value) ⇒ Object
Sets the customExtensionStageInstanceDetail property value. Details for the callback.
50 51 52 |
# File 'lib/models/access_package_assignment_request_callback_data.rb', line 50 def custom_extension_stage_instance_detail=(value) @custom_extension_stage_instance_detail = value end |
#custom_extension_stage_instance_id ⇒ Object
Gets the customExtensionStageInstanceId property value. Unique identifier of the callout to the custom extension.
57 58 59 |
# File 'lib/models/access_package_assignment_request_callback_data.rb', line 57 def custom_extension_stage_instance_id return @custom_extension_stage_instance_id end |
#custom_extension_stage_instance_id=(value) ⇒ Object
Sets the customExtensionStageInstanceId property value. Unique identifier of the callout to the custom extension.
65 66 67 |
# File 'lib/models/access_package_assignment_request_callback_data.rb', line 65 def custom_extension_stage_instance_id=(value) @custom_extension_stage_instance_id = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
72 73 74 75 76 77 78 79 |
# File 'lib/models/access_package_assignment_request_callback_data.rb', line 72 def get_field_deserializers() return super.merge({ "customExtensionStageInstanceDetail" => lambda {|n| @custom_extension_stage_instance_detail = n.get_string_value() }, "customExtensionStageInstanceId" => lambda {|n| @custom_extension_stage_instance_id = n.get_string_value() }, "stage" => lambda {|n| @stage = n.get_enum_value(MicrosoftGraph::Models::AccessPackageCustomExtensionStage) }, "state" => lambda {|n| @state = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
85 86 87 88 89 90 91 92 |
# File 'lib/models/access_package_assignment_request_callback_data.rb', line 85 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("customExtensionStageInstanceDetail", @custom_extension_stage_instance_detail) writer.write_string_value("customExtensionStageInstanceId", @custom_extension_stage_instance_id) writer.write_enum_value("stage", @stage) writer.write_string_value("state", @state) end |
#stage ⇒ Object
Gets the stage property value. Indicates the stage at which the custom callout extension will be executed. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue.
97 98 99 |
# File 'lib/models/access_package_assignment_request_callback_data.rb', line 97 def stage return @stage end |
#stage=(value) ⇒ Object
Sets the stage property value. Indicates the stage at which the custom callout extension will be executed. The possible values are: assignmentRequestCreated, assignmentRequestApproved, assignmentRequestGranted, assignmentRequestRemoved, assignmentFourteenDaysBeforeExpiration, assignmentOneDayBeforeExpiration, unknownFutureValue.
105 106 107 |
# File 'lib/models/access_package_assignment_request_callback_data.rb', line 105 def stage=(value) @stage = value end |
#state ⇒ Object
Gets the state property value. Allow the extension to be able to deny or cancel the request submitted by the requestor. The supported values are Denied and Canceled. This property can only be set for an assignmentRequestCreated stage.
112 113 114 |
# File 'lib/models/access_package_assignment_request_callback_data.rb', line 112 def state return @state end |
#state=(value) ⇒ Object
Sets the state property value. Allow the extension to be able to deny or cancel the request submitted by the requestor. The supported values are Denied and Canceled. This property can only be set for an assignmentRequestCreated stage.
120 121 122 |
# File 'lib/models/access_package_assignment_request_callback_data.rb', line 120 def state=(value) @state = value end |