Class: MicrosoftGraph::Models::InformationalUrl

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new informationalUrl and sets the default values.



49
50
51
# File 'lib/models/informational_url.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 informational_url

Raises:

  • (StandardError)


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

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return InformationalUrl.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/informational_url.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/informational_url.rb', line 42

def additional_data=(value)
    @additional_data = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



65
66
67
68
69
70
71
72
73
74
# File 'lib/models/informational_url.rb', line 65

def get_field_deserializers()
    return {
        "logoUrl" => lambda {|n| @logo_url = n.get_string_value() },
        "marketingUrl" => lambda {|n| @marketing_url = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "privacyStatementUrl" => lambda {|n| @privacy_statement_url = n.get_string_value() },
        "supportUrl" => lambda {|n| @support_url = n.get_string_value() },
        "termsOfServiceUrl" => lambda {|n| @terms_of_service_url = n.get_string_value() },
    }
end

#logo_urlObject

Gets the logoUrl property value. CDN URL to the application’s logo, Read-only.

Returns:

  • a string



79
80
81
# File 'lib/models/informational_url.rb', line 79

def logo_url
    return @logo_url
end

#logo_url=(value) ⇒ Object

Sets the logoUrl property value. CDN URL to the application’s logo, Read-only.

Parameters:

  • value

    Value to set for the logoUrl property.

Returns:

  • a void



87
88
89
# File 'lib/models/informational_url.rb', line 87

def logo_url=(value)
    @logo_url = value
end

#marketing_urlObject

Gets the marketingUrl property value. Link to the application’s marketing page. For example, www.contoso.com/app/marketing

Returns:

  • a string



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

def marketing_url
    return @marketing_url
end

#marketing_url=(value) ⇒ Object

Sets the marketingUrl property value. Link to the application’s marketing page. For example, www.contoso.com/app/marketing

Parameters:

  • value

    Value to set for the marketingUrl property.

Returns:

  • a void



102
103
104
# File 'lib/models/informational_url.rb', line 102

def marketing_url=(value)
    @marketing_url = value
end

#odata_typeObject

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

Returns:

  • a string



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

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



117
118
119
# File 'lib/models/informational_url.rb', line 117

def odata_type=(value)
    @odata_type = value
end

#privacy_statement_urlObject

Gets the privacyStatementUrl property value. Link to the application’s privacy statement. For example, www.contoso.com/app/privacy

Returns:

  • a string



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

def privacy_statement_url
    return @privacy_statement_url
end

#privacy_statement_url=(value) ⇒ Object

Sets the privacyStatementUrl property value. Link to the application’s privacy statement. For example, www.contoso.com/app/privacy

Parameters:

  • value

    Value to set for the privacyStatementUrl property.

Returns:

  • a void



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

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


140
141
142
143
144
145
146
147
148
149
# File 'lib/models/informational_url.rb', line 140

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("logoUrl", @logo_url)
    writer.write_string_value("marketingUrl", @marketing_url)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("privacyStatementUrl", @privacy_statement_url)
    writer.write_string_value("supportUrl", @support_url)
    writer.write_string_value("termsOfServiceUrl", @terms_of_service_url)
    writer.write_additional_data(@additional_data)
end

#support_urlObject

Gets the supportUrl property value. Link to the application’s support page. For example, www.contoso.com/app/support

Returns:

  • a string



154
155
156
# File 'lib/models/informational_url.rb', line 154

def support_url
    return @support_url
end

#support_url=(value) ⇒ Object

Sets the supportUrl property value. Link to the application’s support page. For example, www.contoso.com/app/support

Parameters:

  • value

    Value to set for the supportUrl property.

Returns:

  • a void



162
163
164
# File 'lib/models/informational_url.rb', line 162

def support_url=(value)
    @support_url = value
end

#terms_of_service_urlObject

Gets the termsOfServiceUrl property value. Link to the application’s terms of service statement. For example, www.contoso.com/app/termsofservice

Returns:

  • a string



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

def terms_of_service_url
    return @terms_of_service_url
end

#terms_of_service_url=(value) ⇒ Object

Sets the termsOfServiceUrl property value. Link to the application’s terms of service statement. For example, www.contoso.com/app/termsofservice

Parameters:

  • value

    Value to set for the termsOfServiceUrl property.

Returns:

  • a void



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

def terms_of_service_url=(value)
    @terms_of_service_url = value
end