Class: MicrosoftGraph::Models::ApplicationTemplate

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



52
53
54
# File 'lib/models/application_template.rb', line 52

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 application_template

Raises:

  • (StandardError)


60
61
62
63
# File 'lib/models/application_template.rb', line 60

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

Instance Method Details

#categoriesObject

Gets the categories property value. The list of categories for the application. Supported values can be: Collaboration, Business Management, Consumer, Content management, CRM, Data services, Developer services, E-commerce, Education, ERP, Finance, Health, Human resources, IT infrastructure, Mail, Management, Marketing, Media, Productivity, Project management, Telecommunications, Tools, Travel, and Web design & hosting.

Returns:

  • a string



37
38
39
# File 'lib/models/application_template.rb', line 37

def categories
    return @categories
end

#categories=(value) ⇒ Object

Sets the categories property value. The list of categories for the application. Supported values can be: Collaboration, Business Management, Consumer, Content management, CRM, Data services, Developer services, E-commerce, Education, ERP, Finance, Health, Human resources, IT infrastructure, Mail, Management, Marketing, Media, Productivity, Project management, Telecommunications, Tools, Travel, and Web design & hosting.

Parameters:

  • value

    Value to set for the categories property.

Returns:

  • a void



45
46
47
# File 'lib/models/application_template.rb', line 45

def categories=(value)
    @categories = value
end

#descriptionObject

Gets the description property value. A description of the application.

Returns:

  • a string



68
69
70
# File 'lib/models/application_template.rb', line 68

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. A description of the application.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



76
77
78
# File 'lib/models/application_template.rb', line 76

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. The name of the application.

Returns:

  • a string



83
84
85
# File 'lib/models/application_template.rb', line 83

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The name of the application.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



91
92
93
# File 'lib/models/application_template.rb', line 91

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



98
99
100
101
102
103
104
105
106
107
108
109
# File 'lib/models/application_template.rb', line 98

def get_field_deserializers()
    return super.merge({
        "categories" => lambda {|n| @categories = n.get_collection_of_primitive_values(String) },
        "description" => lambda {|n| @description = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "homePageUrl" => lambda {|n| @home_page_url = n.get_string_value() },
        "logoUrl" => lambda {|n| @logo_url = n.get_string_value() },
        "publisher" => lambda {|n| @publisher = n.get_string_value() },
        "supportedProvisioningTypes" => lambda {|n| @supported_provisioning_types = n.get_collection_of_primitive_values(String) },
        "supportedSingleSignOnModes" => lambda {|n| @supported_single_sign_on_modes = n.get_collection_of_primitive_values(String) },
    })
end

#home_page_urlObject

Gets the homePageUrl property value. The home page URL of the application.

Returns:

  • a string



114
115
116
# File 'lib/models/application_template.rb', line 114

def home_page_url
    return @home_page_url
end

#home_page_url=(value) ⇒ Object

Sets the homePageUrl property value. The home page URL of the application.

Parameters:

  • value

    Value to set for the homePageUrl property.

Returns:

  • a void



122
123
124
# File 'lib/models/application_template.rb', line 122

def home_page_url=(value)
    @home_page_url = value
end

#logo_urlObject

Gets the logoUrl property value. The URL to get the logo for this application.

Returns:

  • a string



129
130
131
# File 'lib/models/application_template.rb', line 129

def logo_url
    return @logo_url
end

#logo_url=(value) ⇒ Object

Sets the logoUrl property value. The URL to get the logo for this application.

Parameters:

  • value

    Value to set for the logoUrl property.

Returns:

  • a void



137
138
139
# File 'lib/models/application_template.rb', line 137

def logo_url=(value)
    @logo_url = value
end

#publisherObject

Gets the publisher property value. The name of the publisher for this application.

Returns:

  • a string



144
145
146
# File 'lib/models/application_template.rb', line 144

def publisher
    return @publisher
end

#publisher=(value) ⇒ Object

Sets the publisher property value. The name of the publisher for this application.

Parameters:

  • value

    Value to set for the publisher property.

Returns:

  • a void



152
153
154
# File 'lib/models/application_template.rb', line 152

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


160
161
162
163
164
165
166
167
168
169
170
171
# File 'lib/models/application_template.rb', line 160

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_primitive_values("categories", @categories)
    writer.write_string_value("description", @description)
    writer.write_string_value("displayName", @display_name)
    writer.write_string_value("homePageUrl", @home_page_url)
    writer.write_string_value("logoUrl", @logo_url)
    writer.write_string_value("publisher", @publisher)
    writer.write_collection_of_primitive_values("supportedProvisioningTypes", @supported_provisioning_types)
    writer.write_collection_of_primitive_values("supportedSingleSignOnModes", @supported_single_sign_on_modes)
end

#supported_provisioning_typesObject

Gets the supportedProvisioningTypes property value. The list of provisioning modes supported by this application. The only valid value is sync.

Returns:

  • a string



176
177
178
# File 'lib/models/application_template.rb', line 176

def supported_provisioning_types
    return @supported_provisioning_types
end

#supported_provisioning_types=(value) ⇒ Object

Sets the supportedProvisioningTypes property value. The list of provisioning modes supported by this application. The only valid value is sync.

Parameters:

  • value

    Value to set for the supportedProvisioningTypes property.

Returns:

  • a void



184
185
186
# File 'lib/models/application_template.rb', line 184

def supported_provisioning_types=(value)
    @supported_provisioning_types = value
end

#supported_single_sign_on_modesObject

Gets the supportedSingleSignOnModes property value. The list of single sign-on modes supported by this application. The supported values are oidc, password, saml, and notSupported.

Returns:

  • a string



191
192
193
# File 'lib/models/application_template.rb', line 191

def supported_single_sign_on_modes
    return @supported_single_sign_on_modes
end

#supported_single_sign_on_modes=(value) ⇒ Object

Sets the supportedSingleSignOnModes property value. The list of single sign-on modes supported by this application. The supported values are oidc, password, saml, and notSupported.

Parameters:

  • value

    Value to set for the supportedSingleSignOnModes property.

Returns:

  • a void



199
200
201
# File 'lib/models/application_template.rb', line 199

def supported_single_sign_on_modes=(value)
    @supported_single_sign_on_modes = value
end