Class: MicrosoftGraph::Models::CustomExtensionCalloutInstance

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/custom_extension_callout_instance.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new customExtensionCalloutInstance and sets the default values.



49
50
51
# File 'lib/models/custom_extension_callout_instance.rb', line 49

def initialize()
    @additional_data = Hash.new
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 custom_extension_callout_instance

Raises:

  • (StandardError)


57
58
59
60
# File 'lib/models/custom_extension_callout_instance.rb', line 57

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

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



34
35
36
# File 'lib/models/custom_extension_callout_instance.rb', line 34

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



42
43
44
# File 'lib/models/custom_extension_callout_instance.rb', line 42

def additional_data=(value)
    @additional_data = value
end

#custom_extension_idObject

Gets the customExtensionId property value. Identification of the custom extension that was triggered at this instance.

Returns:

  • a string



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

def custom_extension_id
    return @custom_extension_id
end

#custom_extension_id=(value) ⇒ Object

Sets the customExtensionId property value. Identification of the custom extension that was triggered at this instance.

Parameters:

  • value

    Value to set for the customExtensionId property.

Returns:

  • a void



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

def custom_extension_id=(value)
    @custom_extension_id = value
end

#detailObject

Gets the detail property value. Details provided by the logic app during the callback of the request instance.

Returns:

  • a string



80
81
82
# File 'lib/models/custom_extension_callout_instance.rb', line 80

def detail
    return @detail
end

#detail=(value) ⇒ Object

Sets the detail property value. Details provided by the logic app during the callback of the request instance.

Parameters:

  • value

    Value to set for the detail property.

Returns:

  • a void



88
89
90
# File 'lib/models/custom_extension_callout_instance.rb', line 88

def detail=(value)
    @detail = value
end

#external_correlation_idObject

Gets the externalCorrelationId property value. The unique run identifier for the logic app.

Returns:

  • a string



95
96
97
# File 'lib/models/custom_extension_callout_instance.rb', line 95

def external_correlation_id
    return @external_correlation_id
end

#external_correlation_id=(value) ⇒ Object

Sets the externalCorrelationId property value. The unique run identifier for the logic app.

Parameters:

  • value

    Value to set for the externalCorrelationId property.

Returns:

  • a void



103
104
105
# File 'lib/models/custom_extension_callout_instance.rb', line 103

def external_correlation_id=(value)
    @external_correlation_id = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



110
111
112
113
114
115
116
117
118
119
# File 'lib/models/custom_extension_callout_instance.rb', line 110

def get_field_deserializers()
    return {
        "customExtensionId" => lambda {|n| @custom_extension_id = n.get_string_value() },
        "detail" => lambda {|n| @detail = n.get_string_value() },
        "externalCorrelationId" => lambda {|n| @external_correlation_id = n.get_string_value() },
        "id" => lambda {|n| @id = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::CustomExtensionCalloutInstanceStatus) },
    }
end

#idObject

Gets the id property value. Unique identifier for the callout instance. Read-only.

Returns:

  • a string



124
125
126
# File 'lib/models/custom_extension_callout_instance.rb', line 124

def id
    return @id
end

#id=(value) ⇒ Object

Sets the id property value. Unique identifier for the callout instance. Read-only.

Parameters:

  • value

    Value to set for the id property.

Returns:

  • a void



132
133
134
# File 'lib/models/custom_extension_callout_instance.rb', line 132

def id=(value)
    @id = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



139
140
141
# File 'lib/models/custom_extension_callout_instance.rb', line 139

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



147
148
149
# File 'lib/models/custom_extension_callout_instance.rb', line 147

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


155
156
157
158
159
160
161
162
163
164
# File 'lib/models/custom_extension_callout_instance.rb', line 155

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("customExtensionId", @custom_extension_id)
    writer.write_string_value("detail", @detail)
    writer.write_string_value("externalCorrelationId", @external_correlation_id)
    writer.write_string_value("id", @id)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_enum_value("status", @status)
    writer.write_additional_data(@additional_data)
end

#statusObject

Gets the status property value. The status of the request to the custom extension. The possible values are: calloutSent, callbackReceived, calloutFailed, callbackTimedOut, waitingForCallback, unknownFutureValue.

Returns:

  • a custom_extension_callout_instance_status



169
170
171
# File 'lib/models/custom_extension_callout_instance.rb', line 169

def status
    return @status
end

#status=(value) ⇒ Object

Sets the status property value. The status of the request to the custom extension. The possible values are: calloutSent, callbackReceived, calloutFailed, callbackTimedOut, waitingForCallback, unknownFutureValue.

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



177
178
179
# File 'lib/models/custom_extension_callout_instance.rb', line 177

def status=(value)
    @status = value
end