Class: MicrosoftGraph::Models::IntuneBrand

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

Overview

intuneBrand contains data which is used in customizing the appearance of the Company Portal applications as well as the end user web portal.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new intuneBrand and sets the default values.



78
79
80
# File 'lib/models/intune_brand.rb', line 78

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 intune_brand

Raises:

  • (StandardError)


146
147
148
149
# File 'lib/models/intune_brand.rb', line 146

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return IntuneBrand.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



63
64
65
# File 'lib/models/intune_brand.rb', line 63

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



71
72
73
# File 'lib/models/intune_brand.rb', line 71

def additional_data=(value)
    @additional_data = value
end

#contact_i_t_email_addressObject

Gets the contactITEmailAddress property value. Email address of the person/organization responsible for IT support.

Returns:

  • a string



85
86
87
# File 'lib/models/intune_brand.rb', line 85

def contact_i_t_email_address
    return @contact_i_t_email_address
end

#contact_i_t_email_address=(value) ⇒ Object

Sets the contactITEmailAddress property value. Email address of the person/organization responsible for IT support.

Parameters:

  • value

    Value to set for the contactITEmailAddress property.

Returns:

  • a void



93
94
95
# File 'lib/models/intune_brand.rb', line 93

def contact_i_t_email_address=(value)
    @contact_i_t_email_address = value
end

#contact_i_t_nameObject

Gets the contactITName property value. Name of the person/organization responsible for IT support.

Returns:

  • a string



100
101
102
# File 'lib/models/intune_brand.rb', line 100

def contact_i_t_name
    return @contact_i_t_name
end

#contact_i_t_name=(value) ⇒ Object

Sets the contactITName property value. Name of the person/organization responsible for IT support.

Parameters:

  • value

    Value to set for the contactITName property.

Returns:

  • a void



108
109
110
# File 'lib/models/intune_brand.rb', line 108

def contact_i_t_name=(value)
    @contact_i_t_name = value
end

#contact_i_t_notesObject

Gets the contactITNotes property value. Text comments regarding the person/organization responsible for IT support.

Returns:

  • a string



115
116
117
# File 'lib/models/intune_brand.rb', line 115

def contact_i_t_notes
    return @contact_i_t_notes
end

#contact_i_t_notes=(value) ⇒ Object

Sets the contactITNotes property value. Text comments regarding the person/organization responsible for IT support.

Parameters:

  • value

    Value to set for the contactITNotes property.

Returns:

  • a void



123
124
125
# File 'lib/models/intune_brand.rb', line 123

def contact_i_t_notes=(value)
    @contact_i_t_notes = value
end

#contact_i_t_phone_numberObject

Gets the contactITPhoneNumber property value. Phone number of the person/organization responsible for IT support.

Returns:

  • a string



130
131
132
# File 'lib/models/intune_brand.rb', line 130

def contact_i_t_phone_number
    return @contact_i_t_phone_number
end

#contact_i_t_phone_number=(value) ⇒ Object

Sets the contactITPhoneNumber property value. Phone number of the person/organization responsible for IT support.

Parameters:

  • value

    Value to set for the contactITPhoneNumber property.

Returns:

  • a void



138
139
140
# File 'lib/models/intune_brand.rb', line 138

def contact_i_t_phone_number=(value)
    @contact_i_t_phone_number = value
end

#dark_background_logoObject

Gets the darkBackgroundLogo property value. Logo image displayed in Company Portal apps which have a dark background behind the logo.

Returns:

  • a mime_content



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

def 
    return 
end

#dark_background_logo=(value) ⇒ Object

Sets the darkBackgroundLogo property value. Logo image displayed in Company Portal apps which have a dark background behind the logo.

Parameters:

  • value

    Value to set for the darkBackgroundLogo property.

Returns:

  • a void



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

def dark_background_logo=(value)
     = value
end

#display_nameObject

Gets the displayName property value. Company/organization name that is displayed to end users.

Returns:

  • a string



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

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. Company/organization name that is displayed to end users.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



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

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/models/intune_brand.rb', line 184

def get_field_deserializers()
    return {
        "contactITEmailAddress" => lambda {|n| @contact_i_t_email_address = n.get_string_value() },
        "contactITName" => lambda {|n| @contact_i_t_name = n.get_string_value() },
        "contactITNotes" => lambda {|n| @contact_i_t_notes = n.get_string_value() },
        "contactITPhoneNumber" => lambda {|n| @contact_i_t_phone_number = n.get_string_value() },
        "darkBackgroundLogo" => lambda {|n|  = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::MimeContent.create_from_discriminator_value(pn) }) },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "lightBackgroundLogo" => lambda {|n|  = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::MimeContent.create_from_discriminator_value(pn) }) },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "onlineSupportSiteName" => lambda {|n| @online_support_site_name = n.get_string_value() },
        "onlineSupportSiteUrl" => lambda {|n| @online_support_site_url = n.get_string_value() },
        "privacyUrl" => lambda {|n| @privacy_url = n.get_string_value() },
        "showDisplayNameNextToLogo" => lambda {|n|  = n.get_boolean_value() },
        "showLogo" => lambda {|n|  = n.get_boolean_value() },
        "showNameNextToLogo" => lambda {|n|  = n.get_boolean_value() },
        "themeColor" => lambda {|n| @theme_color = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::RgbColor.create_from_discriminator_value(pn) }) },
    }
end

#light_background_logoObject

Gets the lightBackgroundLogo property value. Logo image displayed in Company Portal apps which have a light background behind the logo.

Returns:

  • a mime_content



207
208
209
# File 'lib/models/intune_brand.rb', line 207

def 
    return 
end

#light_background_logo=(value) ⇒ Object

Sets the lightBackgroundLogo property value. Logo image displayed in Company Portal apps which have a light background behind the logo.

Parameters:

  • value

    Value to set for the lightBackgroundLogo property.

Returns:

  • a void



215
216
217
# File 'lib/models/intune_brand.rb', line 215

def light_background_logo=(value)
     = value
end

#odata_typeObject

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

Returns:

  • a string



222
223
224
# File 'lib/models/intune_brand.rb', line 222

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



230
231
232
# File 'lib/models/intune_brand.rb', line 230

def odata_type=(value)
    @odata_type = value
end

#online_support_site_nameObject

Gets the onlineSupportSiteName property value. Display name of the company/organization’s IT helpdesk site.

Returns:

  • a string



237
238
239
# File 'lib/models/intune_brand.rb', line 237

def online_support_site_name
    return @online_support_site_name
end

#online_support_site_name=(value) ⇒ Object

Sets the onlineSupportSiteName property value. Display name of the company/organization’s IT helpdesk site.

Parameters:

  • value

    Value to set for the onlineSupportSiteName property.

Returns:

  • a void



245
246
247
# File 'lib/models/intune_brand.rb', line 245

def online_support_site_name=(value)
    @online_support_site_name = value
end

#online_support_site_urlObject

Gets the onlineSupportSiteUrl property value. URL to the company/organization’s IT helpdesk site.

Returns:

  • a string



252
253
254
# File 'lib/models/intune_brand.rb', line 252

def online_support_site_url
    return @online_support_site_url
end

#online_support_site_url=(value) ⇒ Object

Sets the onlineSupportSiteUrl property value. URL to the company/organization’s IT helpdesk site.

Parameters:

  • value

    Value to set for the onlineSupportSiteUrl property.

Returns:

  • a void



260
261
262
# File 'lib/models/intune_brand.rb', line 260

def online_support_site_url=(value)
    @online_support_site_url = value
end

#privacy_urlObject

Gets the privacyUrl property value. URL to the company/organization’s privacy policy.

Returns:

  • a string



267
268
269
# File 'lib/models/intune_brand.rb', line 267

def privacy_url
    return @privacy_url
end

#privacy_url=(value) ⇒ Object

Sets the privacyUrl property value. URL to the company/organization’s privacy policy.

Parameters:

  • value

    Value to set for the privacyUrl property.

Returns:

  • a void



275
276
277
# File 'lib/models/intune_brand.rb', line 275

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


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
# File 'lib/models/intune_brand.rb', line 283

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("contactITEmailAddress", @contact_i_t_email_address)
    writer.write_string_value("contactITName", @contact_i_t_name)
    writer.write_string_value("contactITNotes", @contact_i_t_notes)
    writer.write_string_value("contactITPhoneNumber", @contact_i_t_phone_number)
    writer.write_object_value("darkBackgroundLogo", )
    writer.write_string_value("displayName", @display_name)
    writer.write_object_value("lightBackgroundLogo", )
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("onlineSupportSiteName", @online_support_site_name)
    writer.write_string_value("onlineSupportSiteUrl", @online_support_site_url)
    writer.write_string_value("privacyUrl", @privacy_url)
    writer.write_boolean_value("showDisplayNameNextToLogo", )
    writer.write_boolean_value("showLogo", )
    writer.write_boolean_value("showNameNextToLogo", )
    writer.write_object_value("themeColor", @theme_color)
    writer.write_additional_data(@additional_data)
end

#show_display_name_next_to_logoObject

Gets the showDisplayNameNextToLogo property value. Boolean that represents whether the administrator-supplied display name will be shown next to the logo image.

Returns:

  • a boolean



306
307
308
# File 'lib/models/intune_brand.rb', line 306

def 
    return 
end

#show_display_name_next_to_logo=(value) ⇒ Object

Sets the showDisplayNameNextToLogo property value. Boolean that represents whether the administrator-supplied display name will be shown next to the logo image.

Parameters:

  • value

    Value to set for the showDisplayNameNextToLogo property.

Returns:

  • a void



314
315
316
# File 'lib/models/intune_brand.rb', line 314

def show_display_name_next_to_logo=(value)
     = value
end

#show_logoObject

Gets the showLogo property value. Boolean that represents whether the administrator-supplied logo images are shown or not shown.

Returns:

  • a boolean



321
322
323
# File 'lib/models/intune_brand.rb', line 321

def 
    return 
end

#show_logo=(value) ⇒ Object

Sets the showLogo property value. Boolean that represents whether the administrator-supplied logo images are shown or not shown.

Parameters:

  • value

    Value to set for the showLogo property.

Returns:

  • a void



329
330
331
# File 'lib/models/intune_brand.rb', line 329

def show_logo=(value)
     = value
end

#show_name_next_to_logoObject

Gets the showNameNextToLogo property value. Boolean that represents whether the administrator-supplied display name will be shown next to the logo image.

Returns:

  • a boolean



336
337
338
# File 'lib/models/intune_brand.rb', line 336

def 
    return 
end

#show_name_next_to_logo=(value) ⇒ Object

Sets the showNameNextToLogo property value. Boolean that represents whether the administrator-supplied display name will be shown next to the logo image.

Parameters:

  • value

    Value to set for the showNameNextToLogo property.

Returns:

  • a void



344
345
346
# File 'lib/models/intune_brand.rb', line 344

def show_name_next_to_logo=(value)
     = value
end

#theme_colorObject

Gets the themeColor property value. Primary theme color used in the Company Portal applications and web portal.

Returns:

  • a rgb_color



351
352
353
# File 'lib/models/intune_brand.rb', line 351

def theme_color
    return @theme_color
end

#theme_color=(value) ⇒ Object

Sets the themeColor property value. Primary theme color used in the Company Portal applications and web portal.

Parameters:

  • value

    Value to set for the themeColor property.

Returns:

  • a void



359
360
361
# File 'lib/models/intune_brand.rb', line 359

def theme_color=(value)
    @theme_color = value
end