Class: MicrosoftGraph::Models::UserSettings
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/user_settings.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
-
#contribution_to_content_discovery_as_organization_disabled ⇒ Object
Gets the contributionToContentDiscoveryAsOrganizationDisabled property value.
-
#contribution_to_content_discovery_as_organization_disabled=(value) ⇒ Object
Sets the contributionToContentDiscoveryAsOrganizationDisabled property value.
-
#contribution_to_content_discovery_disabled ⇒ Object
Gets the contributionToContentDiscoveryDisabled property value.
-
#contribution_to_content_discovery_disabled=(value) ⇒ Object
Sets the contributionToContentDiscoveryDisabled property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new userSettings and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#shift_preferences ⇒ Object
Gets the shiftPreferences property value.
-
#shift_preferences=(value) ⇒ Object
Sets the shiftPreferences property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new userSettings and sets the default values.
22 23 24 |
# File 'lib/models/user_settings.rb', line 22 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
60 61 62 63 |
# File 'lib/models/user_settings.rb', line 60 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return UserSettings.new end |
Instance Method Details
#contribution_to_content_discovery_as_organization_disabled ⇒ Object
Gets the contributionToContentDiscoveryAsOrganizationDisabled property value. Reflects the organization level setting controlling delegate access to the trending API. When set to true, the organization doesn’t have access to Office Delve. The relevancy of the content displayed in Microsoft 365, for example in Suggested sites in SharePoint Home and the Discover view in OneDrive for Business is affected for the whole organization. This setting is read-only and can only be changed by administrators in the SharePoint admin center.
29 30 31 |
# File 'lib/models/user_settings.rb', line 29 def contribution_to_content_discovery_as_organization_disabled return @contribution_to_content_discovery_as_organization_disabled end |
#contribution_to_content_discovery_as_organization_disabled=(value) ⇒ Object
Sets the contributionToContentDiscoveryAsOrganizationDisabled property value. Reflects the organization level setting controlling delegate access to the trending API. When set to true, the organization doesn’t have access to Office Delve. The relevancy of the content displayed in Microsoft 365, for example in Suggested sites in SharePoint Home and the Discover view in OneDrive for Business is affected for the whole organization. This setting is read-only and can only be changed by administrators in the SharePoint admin center.
37 38 39 |
# File 'lib/models/user_settings.rb', line 37 def contribution_to_content_discovery_as_organization_disabled=(value) @contribution_to_content_discovery_as_organization_disabled = value end |
#contribution_to_content_discovery_disabled ⇒ Object
Gets the contributionToContentDiscoveryDisabled property value. When set to true, the delegate access to the user’s trending API is disabled. When set to true, documents in the user’s Office Delve are disabled. When set to true, the relevancy of the content displayed in Microsoft 365, for example in Suggested sites in SharePoint Home and the Discover view in OneDrive for Business is affected. Users can control this setting in Office Delve.
44 45 46 |
# File 'lib/models/user_settings.rb', line 44 def contribution_to_content_discovery_disabled return @contribution_to_content_discovery_disabled end |
#contribution_to_content_discovery_disabled=(value) ⇒ Object
Sets the contributionToContentDiscoveryDisabled property value. When set to true, the delegate access to the user’s trending API is disabled. When set to true, documents in the user’s Office Delve are disabled. When set to true, the relevancy of the content displayed in Microsoft 365, for example in Suggested sites in SharePoint Home and the Discover view in OneDrive for Business is affected. Users can control this setting in Office Delve.
52 53 54 |
# File 'lib/models/user_settings.rb', line 52 def contribution_to_content_discovery_disabled=(value) @contribution_to_content_discovery_disabled = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
68 69 70 71 72 73 74 |
# File 'lib/models/user_settings.rb', line 68 def get_field_deserializers() return super.merge({ "contributionToContentDiscoveryAsOrganizationDisabled" => lambda {|n| @contribution_to_content_discovery_as_organization_disabled = n.get_boolean_value() }, "contributionToContentDiscoveryDisabled" => lambda {|n| @contribution_to_content_discovery_disabled = n.get_boolean_value() }, "shiftPreferences" => lambda {|n| @shift_preferences = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ShiftPreferences.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
80 81 82 83 84 85 86 |
# File 'lib/models/user_settings.rb', line 80 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_boolean_value("contributionToContentDiscoveryAsOrganizationDisabled", @contribution_to_content_discovery_as_organization_disabled) writer.write_boolean_value("contributionToContentDiscoveryDisabled", @contribution_to_content_discovery_disabled) writer.write_object_value("shiftPreferences", @shift_preferences) end |
#shift_preferences ⇒ Object
Gets the shiftPreferences property value. The shiftPreferences property
91 92 93 |
# File 'lib/models/user_settings.rb', line 91 def shift_preferences return @shift_preferences end |
#shift_preferences=(value) ⇒ Object
Sets the shiftPreferences property value. The shiftPreferences property
99 100 101 |
# File 'lib/models/user_settings.rb', line 99 def shift_preferences=(value) @shift_preferences = value end |