Class: MicrosoftGraph::Models::AccessPackageAssignmentRequestCallbackData

Inherits:
CustomExtensionData
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/access_package_assignment_request_callback_data.rb

Class Method Summary collapse

Instance Method Summary collapse

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

Parameters:

  • parse_node —

    The parse node to use to read the discriminator value and create the object

Returns:

  • a access_package_assignment_request_callback_data

Raises:

  • (StandardError)


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.

Returns:

  • a string



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.

Parameters:

  • value —

    Value to set for the customExtensionStageInstanceDetail property.

Returns:

  • a void



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.

Returns:

  • a string



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.

Parameters:

  • value —

    Value to set for the customExtensionStageInstanceId property.

Returns:

  • a void



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

Returns:

  • a i_dictionary



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

Parameters:

  • writer —

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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.

Returns:

  • a access_package_custom_extension_stage



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.

Parameters:

  • value —

    Value to set for the stage property.

Returns:

  • a void



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.

Returns:

  • a string



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.

Parameters:

  • value —

    Value to set for the state property.

Returns:

  • a void



120
121
122
# File 'lib/models/access_package_assignment_request_callback_data.rb', line 120

def state=(value)
    @state = value
end