Class: MicrosoftGraph::Models::EducationTeamsAppResource

Inherits:
EducationResource show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/education_teams_app_resource.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from EducationResource

#additional_data, #additional_data=, #created_by, #created_by=, #created_date_time, #created_date_time=, #display_name, #display_name=, #last_modified_by, #last_modified_by=, #last_modified_date_time, #last_modified_date_time=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new educationTeamsAppResource and sets the default values.



55
56
57
58
# File 'lib/models/education_teams_app_resource.rb', line 55

def initialize()
    super
    @odata_type = "#microsoft.graph.educationTeamsAppResource"
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 education_teams_app_resource

Raises:

  • (StandardError)


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

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

Instance Method Details

#app_icon_web_urlObject

Gets the appIconWebUrl property value. URL that points to the icon of the app.

Returns:

  • a string



25
26
27
# File 'lib/models/education_teams_app_resource.rb', line 25

def app_icon_web_url
    return @app_icon_web_url
end

#app_icon_web_url=(value) ⇒ Object

Sets the appIconWebUrl property value. URL that points to the icon of the app.

Parameters:

  • value

    Value to set for the appIconWebUrl property.

Returns:

  • a void



33
34
35
# File 'lib/models/education_teams_app_resource.rb', line 33

def app_icon_web_url=(value)
    @app_icon_web_url = value
end

#app_idObject

Gets the appId property value. Teams app ID of the application.

Returns:

  • a string



40
41
42
# File 'lib/models/education_teams_app_resource.rb', line 40

def app_id
    return @app_id
end

#app_id=(value) ⇒ Object

Sets the appId property value. Teams app ID of the application.

Parameters:

  • value

    Value to set for the appId property.

Returns:

  • a void



48
49
50
# File 'lib/models/education_teams_app_resource.rb', line 48

def app_id=(value)
    @app_id = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



72
73
74
75
76
77
78
79
# File 'lib/models/education_teams_app_resource.rb', line 72

def get_field_deserializers()
    return super.merge({
        "appIconWebUrl" => lambda {|n| @app_icon_web_url = n.get_string_value() },
        "appId" => lambda {|n| @app_id = n.get_string_value() },
        "teamsEmbeddedContentUrl" => lambda {|n| @teams_embedded_content_url = n.get_string_value() },
        "webUrl" => lambda {|n| @web_url = 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/education_teams_app_resource.rb', line 85

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("appIconWebUrl", @app_icon_web_url)
    writer.write_string_value("appId", @app_id)
    writer.write_string_value("teamsEmbeddedContentUrl", @teams_embedded_content_url)
    writer.write_string_value("webUrl", @web_url)
end

#teams_embedded_content_urlObject

Gets the teamsEmbeddedContentUrl property value. URL for the app resource that will be opened by Teams.

Returns:

  • a string



97
98
99
# File 'lib/models/education_teams_app_resource.rb', line 97

def teams_embedded_content_url
    return @teams_embedded_content_url
end

#teams_embedded_content_url=(value) ⇒ Object

Sets the teamsEmbeddedContentUrl property value. URL for the app resource that will be opened by Teams.

Parameters:

  • value

    Value to set for the teamsEmbeddedContentUrl property.

Returns:

  • a void



105
106
107
# File 'lib/models/education_teams_app_resource.rb', line 105

def teams_embedded_content_url=(value)
    @teams_embedded_content_url = value
end

#web_urlObject

Gets the webUrl property value. URL for the app resource that can be opened in the browser.

Returns:

  • a string



112
113
114
# File 'lib/models/education_teams_app_resource.rb', line 112

def web_url
    return @web_url
end

#web_url=(value) ⇒ Object

Sets the webUrl property value. URL for the app resource that can be opened in the browser.

Parameters:

  • value

    Value to set for the webUrl property.

Returns:

  • a void



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

def web_url=(value)
    @web_url = value
end