Class: MicrosoftGraph::Models::CustomCalloutExtension

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new customCalloutExtension and sets the default values.



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

def initialize()
    super
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_callout_extension

Raises:

  • (StandardError)


66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/models/custom_callout_extension.rb', line 66

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    mapping_value_node = parse_node.get_child_node("@odata.type")
    unless mapping_value_node.nil? then
        mapping_value = mapping_value_node.get_string_value
        case mapping_value
            when "#microsoft.graph.accessPackageAssignmentRequestWorkflowExtension"
                return AccessPackageAssignmentRequestWorkflowExtension.new
            when "#microsoft.graph.accessPackageAssignmentWorkflowExtension"
                return AccessPackageAssignmentWorkflowExtension.new
            when "#microsoft.graph.identityGovernance.customTaskExtension"
                return IdentityGovernanceCustomTaskExtension.new
        end
    end
    return CustomCalloutExtension.new
end

Instance Method Details

#authentication_configurationObject

Gets the authenticationConfiguration property value. Configuration for securing the API call to the logic app. For example, using OAuth client credentials flow.

Returns:

  • a custom_extension_authentication_configuration



28
29
30
# File 'lib/models/custom_callout_extension.rb', line 28

def authentication_configuration
    return @authentication_configuration
end

#authentication_configuration=(value) ⇒ Object

Sets the authenticationConfiguration property value. Configuration for securing the API call to the logic app. For example, using OAuth client credentials flow.

Parameters:

  • value

    Value to set for the authenticationConfiguration property.

Returns:

  • a void



36
37
38
# File 'lib/models/custom_callout_extension.rb', line 36

def authentication_configuration=(value)
    @authentication_configuration = value
end

#client_configurationObject

Gets the clientConfiguration property value. HTTP connection settings that define how long Azure AD can wait for a connection to a logic app, how many times you can retry a timed-out connection and the exception scenarios when retries are allowed.

Returns:

  • a custom_extension_client_configuration



43
44
45
# File 'lib/models/custom_callout_extension.rb', line 43

def client_configuration
    return @client_configuration
end

#client_configuration=(value) ⇒ Object

Sets the clientConfiguration property value. HTTP connection settings that define how long Azure AD can wait for a connection to a logic app, how many times you can retry a timed-out connection and the exception scenarios when retries are allowed.

Parameters:

  • value

    Value to set for the clientConfiguration property.

Returns:

  • a void



51
52
53
# File 'lib/models/custom_callout_extension.rb', line 51

def client_configuration=(value)
    @client_configuration = value
end

#descriptionObject

Gets the description property value. Description for the customCalloutExtension object.

Returns:

  • a string



86
87
88
# File 'lib/models/custom_callout_extension.rb', line 86

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. Description for the customCalloutExtension object.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



94
95
96
# File 'lib/models/custom_callout_extension.rb', line 94

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. Display name for the customCalloutExtension object.

Returns:

  • a string



101
102
103
# File 'lib/models/custom_callout_extension.rb', line 101

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. Display name for the customCalloutExtension object.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



109
110
111
# File 'lib/models/custom_callout_extension.rb', line 109

def display_name=(value)
    @display_name = value
end

#endpoint_configurationObject

Gets the endpointConfiguration property value. The type and details for configuring the endpoint to call the logic app’s workflow.

Returns:

  • a custom_extension_endpoint_configuration



116
117
118
# File 'lib/models/custom_callout_extension.rb', line 116

def endpoint_configuration
    return @endpoint_configuration
end

#endpoint_configuration=(value) ⇒ Object

Sets the endpointConfiguration property value. The type and details for configuring the endpoint to call the logic app’s workflow.

Parameters:

  • value

    Value to set for the endpointConfiguration property.

Returns:

  • a void



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

def endpoint_configuration=(value)
    @endpoint_configuration = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



131
132
133
134
135
136
137
138
139
# File 'lib/models/custom_callout_extension.rb', line 131

def get_field_deserializers()
    return super.merge({
        "authenticationConfiguration" => lambda {|n| @authentication_configuration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CustomExtensionAuthenticationConfiguration.create_from_discriminator_value(pn) }) },
        "clientConfiguration" => lambda {|n| @client_configuration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CustomExtensionClientConfiguration.create_from_discriminator_value(pn) }) },
        "description" => lambda {|n| @description = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "endpointConfiguration" => lambda {|n| @endpoint_configuration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CustomExtensionEndpointConfiguration.create_from_discriminator_value(pn) }) },
    })
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


145
146
147
148
149
150
151
152
153
# File 'lib/models/custom_callout_extension.rb', line 145

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("authenticationConfiguration", @authentication_configuration)
    writer.write_object_value("clientConfiguration", @client_configuration)
    writer.write_string_value("description", @description)
    writer.write_string_value("displayName", @display_name)
    writer.write_object_value("endpointConfiguration", @endpoint_configuration)
end