Class: MicrosoftGraph::Models::OrganizationalBranding
- Inherits:
-
OrganizationalBrandingProperties
- Object
- Entity
- OrganizationalBrandingProperties
- MicrosoftGraph::Models::OrganizationalBranding
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/organizational_branding.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new organizationalBranding and sets the default values.
-
#localizations ⇒ Object
Gets the localizations property value.
-
#localizations=(value) ⇒ Object
Sets the localizations property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from OrganizationalBrandingProperties
#background_color, #background_color=, #background_image, #background_image=, #background_image_relative_url, #background_image_relative_url=, #banner_logo, #banner_logo=, #banner_logo_relative_url, #banner_logo_relative_url=, #cdn_list, #cdn_list=, #custom_account_reset_credentials_url, #custom_account_reset_credentials_url=, #custom_c_s_s, #custom_c_s_s=, #custom_c_s_s_relative_url, #custom_c_s_s_relative_url=, #custom_cannot_access_your_account_text, #custom_cannot_access_your_account_text=, #custom_cannot_access_your_account_url, #custom_cannot_access_your_account_url=, #custom_forgot_my_password_text, #custom_forgot_my_password_text=, #custom_privacy_and_cookies_text, #custom_privacy_and_cookies_text=, #custom_privacy_and_cookies_url, #custom_privacy_and_cookies_url=, #custom_reset_it_now_text, #custom_reset_it_now_text=, #custom_terms_of_use_text, #custom_terms_of_use_text=, #custom_terms_of_use_url, #custom_terms_of_use_url=, #favicon, #favicon=, #favicon_relative_url, #favicon_relative_url=, #header_background_color, #header_background_color=, #header_logo, #header_logo=, #header_logo_relative_url, #header_logo_relative_url=, #login_page_layout_configuration, #login_page_layout_configuration=, #login_page_text_visibility_settings, #login_page_text_visibility_settings=, #sign_in_page_text, #sign_in_page_text=, #square_logo, #square_logo=, #square_logo_dark, #square_logo_dark=, #square_logo_dark_relative_url, #square_logo_dark_relative_url=, #square_logo_relative_url, #square_logo_relative_url=, #username_hint_text, #username_hint_text=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new organizationalBranding and sets the default values.
16 17 18 19 |
# File 'lib/models/organizational_branding.rb', line 16 def initialize() super @odata_type = "#microsoft.graph.organizationalBranding" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
25 26 27 28 |
# File 'lib/models/organizational_branding.rb', line 25 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return OrganizationalBranding.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
33 34 35 36 37 |
# File 'lib/models/organizational_branding.rb', line 33 def get_field_deserializers() return super.merge({ "localizations" => lambda {|n| @localizations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::OrganizationalBrandingLocalization.create_from_discriminator_value(pn) }) }, }) end |
#localizations ⇒ Object
Gets the localizations property value. Add different branding based on a locale.
42 43 44 |
# File 'lib/models/organizational_branding.rb', line 42 def localizations return @localizations end |
#localizations=(value) ⇒ Object
Sets the localizations property value. Add different branding based on a locale.
50 51 52 |
# File 'lib/models/organizational_branding.rb', line 50 def localizations=(value) @localizations = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
58 59 60 61 62 |
# File 'lib/models/organizational_branding.rb', line 58 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("localizations", @localizations) end |