Class: MicrosoftGraph::Models::LearningProvider

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/learning_provider.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 LearningProvider and sets the default values.



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

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 learning_provider

Raises:

  • (StandardError)


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

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

Instance Method Details

#display_nameObject

Gets the displayName property value. The display name that appears in Viva Learning. Required.

Returns:

  • a string



50
51
52
# File 'lib/models/learning_provider.rb', line 50

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The display name that appears in Viva Learning. Required.

Parameters:

  • value

    Value to set for the display_name property.

Returns:

  • a void



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

def display_name=(value)
    @display_name = 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
75
# File 'lib/models/learning_provider.rb', line 65

def get_field_deserializers()
    return super.merge({
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "learningContents" => lambda {|n| @learning_contents = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::LearningContent.create_from_discriminator_value(pn) }) },
        "loginWebUrl" => lambda {|n| @login_web_url = n.get_string_value() },
        "longLogoWebUrlForDarkTheme" => lambda {|n| @long_logo_web_url_for_dark_theme = n.get_string_value() },
        "longLogoWebUrlForLightTheme" => lambda {|n| @long_logo_web_url_for_light_theme = n.get_string_value() },
        "squareLogoWebUrlForDarkTheme" => lambda {|n| @square_logo_web_url_for_dark_theme = n.get_string_value() },
        "squareLogoWebUrlForLightTheme" => lambda {|n| @square_logo_web_url_for_light_theme = n.get_string_value() },
    })
end

#learning_contentsObject

Gets the learningContents property value. Learning catalog items for the provider.

Returns:

  • a learning_content



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

def learning_contents
    return @learning_contents
end

#learning_contents=(value) ⇒ Object

Sets the learningContents property value. Learning catalog items for the provider.

Parameters:

  • value

    Value to set for the learning_contents property.

Returns:

  • a void



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

def learning_contents=(value)
    @learning_contents = value
end

#login_web_urlObject

Gets the loginWebUrl property value. Authentication URL to access the courses for the provider. Optional.

Returns:

  • a string



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

def 
    return @login_web_url
end

#login_web_url=(value) ⇒ Object

Sets the loginWebUrl property value. Authentication URL to access the courses for the provider. Optional.

Parameters:

  • value

    Value to set for the login_web_url property.

Returns:

  • a void



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

def (value)
    @login_web_url = value
end

#long_logo_web_url_for_dark_themeObject

Gets the longLogoWebUrlForDarkTheme property value. The long logo URL for the dark mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required.

Returns:

  • a string



110
111
112
# File 'lib/models/learning_provider.rb', line 110

def long_logo_web_url_for_dark_theme
    return @long_logo_web_url_for_dark_theme
end

#long_logo_web_url_for_dark_theme=(value) ⇒ Object

Sets the longLogoWebUrlForDarkTheme property value. The long logo URL for the dark mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required.

Parameters:

  • value

    Value to set for the long_logo_web_url_for_dark_theme property.

Returns:

  • a void



118
119
120
# File 'lib/models/learning_provider.rb', line 118

def long_logo_web_url_for_dark_theme=(value)
    @long_logo_web_url_for_dark_theme = value
end

#long_logo_web_url_for_light_themeObject

Gets the longLogoWebUrlForLightTheme property value. The long logo URL for the light mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required.

Returns:

  • a string



125
126
127
# File 'lib/models/learning_provider.rb', line 125

def long_logo_web_url_for_light_theme
    return @long_logo_web_url_for_light_theme
end

#long_logo_web_url_for_light_theme=(value) ⇒ Object

Sets the longLogoWebUrlForLightTheme property value. The long logo URL for the light mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required.

Parameters:

  • value

    Value to set for the long_logo_web_url_for_light_theme property.

Returns:

  • a void



133
134
135
# File 'lib/models/learning_provider.rb', line 133

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


141
142
143
144
145
146
147
148
149
150
151
# File 'lib/models/learning_provider.rb', line 141

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("displayName", @display_name)
    writer.write_collection_of_object_values("learningContents", @learning_contents)
    writer.write_string_value("loginWebUrl", @login_web_url)
    writer.write_string_value("longLogoWebUrlForDarkTheme", @long_logo_web_url_for_dark_theme)
    writer.write_string_value("longLogoWebUrlForLightTheme", @long_logo_web_url_for_light_theme)
    writer.write_string_value("squareLogoWebUrlForDarkTheme", @square_logo_web_url_for_dark_theme)
    writer.write_string_value("squareLogoWebUrlForLightTheme", @square_logo_web_url_for_light_theme)
end

#square_logo_web_url_for_dark_themeObject

Gets the squareLogoWebUrlForDarkTheme property value. The square logo URL for the dark mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required.

Returns:

  • a string



156
157
158
# File 'lib/models/learning_provider.rb', line 156

def square_logo_web_url_for_dark_theme
    return @square_logo_web_url_for_dark_theme
end

#square_logo_web_url_for_dark_theme=(value) ⇒ Object

Sets the squareLogoWebUrlForDarkTheme property value. The square logo URL for the dark mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required.

Parameters:

  • value

    Value to set for the square_logo_web_url_for_dark_theme property.

Returns:

  • a void



164
165
166
# File 'lib/models/learning_provider.rb', line 164

def square_logo_web_url_for_dark_theme=(value)
    @square_logo_web_url_for_dark_theme = value
end

#square_logo_web_url_for_light_themeObject

Gets the squareLogoWebUrlForLightTheme property value. The square logo URL for the light mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required.

Returns:

  • a string



171
172
173
# File 'lib/models/learning_provider.rb', line 171

def square_logo_web_url_for_light_theme
    return @square_logo_web_url_for_light_theme
end

#square_logo_web_url_for_light_theme=(value) ⇒ Object

Sets the squareLogoWebUrlForLightTheme property value. The square logo URL for the light mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required.

Parameters:

  • value

    Value to set for the square_logo_web_url_for_light_theme property.

Returns:

  • a void



179
180
181
# File 'lib/models/learning_provider.rb', line 179

def square_logo_web_url_for_light_theme=(value)
    @square_logo_web_url_for_light_theme = value
end