Class: MicrosoftGraph::Models::SharedPCConfiguration
- Inherits:
-
DeviceConfiguration
- Object
- Entity
- DeviceConfiguration
- MicrosoftGraph::Models::SharedPCConfiguration
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/shared_p_c_configuration.rb
Overview
This topic provides descriptions of the declared methods, properties and relationships exposed by the sharedPCConfiguration resource.
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
-
#account_manager_policy ⇒ Object
Gets the accountManagerPolicy property value.
-
#account_manager_policy=(value) ⇒ Object
Sets the accountManagerPolicy property value.
-
#allow_local_storage ⇒ Object
Gets the allowLocalStorage property value.
-
#allow_local_storage=(value) ⇒ Object
Sets the allowLocalStorage property value.
-
#allowed_accounts ⇒ Object
Gets the allowedAccounts property value.
-
#allowed_accounts=(value) ⇒ Object
Sets the allowedAccounts property value.
-
#disable_account_manager ⇒ Object
Gets the disableAccountManager property value.
-
#disable_account_manager=(value) ⇒ Object
Sets the disableAccountManager property value.
-
#disable_edu_policies ⇒ Object
Gets the disableEduPolicies property value.
-
#disable_edu_policies=(value) ⇒ Object
Sets the disableEduPolicies property value.
-
#disable_power_policies ⇒ Object
Gets the disablePowerPolicies property value.
-
#disable_power_policies=(value) ⇒ Object
Sets the disablePowerPolicies property value.
-
#disable_sign_in_on_resume ⇒ Object
Gets the disableSignInOnResume property value.
-
#disable_sign_in_on_resume=(value) ⇒ Object
Sets the disableSignInOnResume property value.
-
#enabled ⇒ Object
Gets the enabled property value.
-
#enabled=(value) ⇒ Object
Sets the enabled property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#idle_time_before_sleep_in_seconds ⇒ Object
Gets the idleTimeBeforeSleepInSeconds property value.
-
#idle_time_before_sleep_in_seconds=(value) ⇒ Object
Sets the idleTimeBeforeSleepInSeconds property value.
-
#initialize ⇒ Object
constructor
Instantiates a new sharedPCConfiguration and sets the default values.
-
#kiosk_app_display_name ⇒ Object
Gets the kioskAppDisplayName property value.
-
#kiosk_app_display_name=(value) ⇒ Object
Sets the kioskAppDisplayName property value.
-
#kiosk_app_user_model_id ⇒ Object
Gets the kioskAppUserModelId property value.
-
#kiosk_app_user_model_id=(value) ⇒ Object
Sets the kioskAppUserModelId property value.
-
#maintenance_start_time ⇒ Object
Gets the maintenanceStartTime property value.
-
#maintenance_start_time=(value) ⇒ Object
Sets the maintenanceStartTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from DeviceConfiguration
#assignments, #assignments=, #created_date_time, #created_date_time=, #description, #description=, #device_setting_state_summaries, #device_setting_state_summaries=, #device_status_overview, #device_status_overview=, #device_statuses, #device_statuses=, #display_name, #display_name=, #last_modified_date_time, #last_modified_date_time=, #user_status_overview, #user_status_overview=, #user_statuses, #user_statuses=, #version, #version=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new sharedPCConfiguration and sets the default values.
97 98 99 100 |
# File 'lib/models/shared_p_c_configuration.rb', line 97 def initialize() super @odata_type = "#microsoft.graph.sharedPCConfiguration" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
106 107 108 109 |
# File 'lib/models/shared_p_c_configuration.rb', line 106 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SharedPCConfiguration.new end |
Instance Method Details
#account_manager_policy ⇒ Object
Gets the accountManagerPolicy property value. Specifies how accounts are managed on a shared PC. Only applies when disableAccountManager is false.
52 53 54 |
# File 'lib/models/shared_p_c_configuration.rb', line 52 def account_manager_policy return @account_manager_policy end |
#account_manager_policy=(value) ⇒ Object
Sets the accountManagerPolicy property value. Specifies how accounts are managed on a shared PC. Only applies when disableAccountManager is false.
60 61 62 |
# File 'lib/models/shared_p_c_configuration.rb', line 60 def account_manager_policy=(value) @account_manager_policy = value end |
#allow_local_storage ⇒ Object
Gets the allowLocalStorage property value. Specifies whether local storage is allowed on a shared PC.
67 68 69 |
# File 'lib/models/shared_p_c_configuration.rb', line 67 def allow_local_storage return @allow_local_storage end |
#allow_local_storage=(value) ⇒ Object
Sets the allowLocalStorage property value. Specifies whether local storage is allowed on a shared PC.
75 76 77 |
# File 'lib/models/shared_p_c_configuration.rb', line 75 def allow_local_storage=(value) @allow_local_storage = value end |
#allowed_accounts ⇒ Object
Gets the allowedAccounts property value. Type of accounts that are allowed to share the PC.
82 83 84 |
# File 'lib/models/shared_p_c_configuration.rb', line 82 def allowed_accounts return @allowed_accounts end |
#allowed_accounts=(value) ⇒ Object
Sets the allowedAccounts property value. Type of accounts that are allowed to share the PC.
90 91 92 |
# File 'lib/models/shared_p_c_configuration.rb', line 90 def allowed_accounts=(value) @allowed_accounts = value end |
#disable_account_manager ⇒ Object
Gets the disableAccountManager property value. Disables the account manager for shared PC mode.
114 115 116 |
# File 'lib/models/shared_p_c_configuration.rb', line 114 def disable_account_manager return @disable_account_manager end |
#disable_account_manager=(value) ⇒ Object
Sets the disableAccountManager property value. Disables the account manager for shared PC mode.
122 123 124 |
# File 'lib/models/shared_p_c_configuration.rb', line 122 def disable_account_manager=(value) @disable_account_manager = value end |
#disable_edu_policies ⇒ Object
Gets the disableEduPolicies property value. Specifies whether the default shared PC education environment policies should be disabled. For Windows 10 RS2 and later, this policy will be applied without setting Enabled to true.
129 130 131 |
# File 'lib/models/shared_p_c_configuration.rb', line 129 def disable_edu_policies return @disable_edu_policies end |
#disable_edu_policies=(value) ⇒ Object
Sets the disableEduPolicies property value. Specifies whether the default shared PC education environment policies should be disabled. For Windows 10 RS2 and later, this policy will be applied without setting Enabled to true.
137 138 139 |
# File 'lib/models/shared_p_c_configuration.rb', line 137 def disable_edu_policies=(value) @disable_edu_policies = value end |
#disable_power_policies ⇒ Object
Gets the disablePowerPolicies property value. Specifies whether the default shared PC power policies should be disabled.
144 145 146 |
# File 'lib/models/shared_p_c_configuration.rb', line 144 def disable_power_policies return @disable_power_policies end |
#disable_power_policies=(value) ⇒ Object
Sets the disablePowerPolicies property value. Specifies whether the default shared PC power policies should be disabled.
152 153 154 |
# File 'lib/models/shared_p_c_configuration.rb', line 152 def disable_power_policies=(value) @disable_power_policies = value end |
#disable_sign_in_on_resume ⇒ Object
Gets the disableSignInOnResume property value. Disables the requirement to sign in whenever the device wakes up from sleep mode.
159 160 161 |
# File 'lib/models/shared_p_c_configuration.rb', line 159 def disable_sign_in_on_resume return @disable_sign_in_on_resume end |
#disable_sign_in_on_resume=(value) ⇒ Object
Sets the disableSignInOnResume property value. Disables the requirement to sign in whenever the device wakes up from sleep mode.
167 168 169 |
# File 'lib/models/shared_p_c_configuration.rb', line 167 def disable_sign_in_on_resume=(value) @disable_sign_in_on_resume = value end |
#enabled ⇒ Object
Gets the enabled property value. Enables shared PC mode and applies the shared pc policies.
174 175 176 |
# File 'lib/models/shared_p_c_configuration.rb', line 174 def enabled return @enabled end |
#enabled=(value) ⇒ Object
Sets the enabled property value. Enables shared PC mode and applies the shared pc policies.
182 183 184 |
# File 'lib/models/shared_p_c_configuration.rb', line 182 def enabled=(value) @enabled = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/models/shared_p_c_configuration.rb', line 189 def get_field_deserializers() return super.merge({ "accountManagerPolicy" => lambda {|n| @account_manager_policy = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SharedPCAccountManagerPolicy.create_from_discriminator_value(pn) }) }, "allowLocalStorage" => lambda {|n| @allow_local_storage = n.get_boolean_value() }, "allowedAccounts" => lambda {|n| @allowed_accounts = n.get_enum_value(MicrosoftGraph::Models::SharedPCAllowedAccountType) }, "disableAccountManager" => lambda {|n| @disable_account_manager = n.get_boolean_value() }, "disableEduPolicies" => lambda {|n| @disable_edu_policies = n.get_boolean_value() }, "disablePowerPolicies" => lambda {|n| @disable_power_policies = n.get_boolean_value() }, "disableSignInOnResume" => lambda {|n| @disable_sign_in_on_resume = n.get_boolean_value() }, "enabled" => lambda {|n| @enabled = n.get_boolean_value() }, "idleTimeBeforeSleepInSeconds" => lambda {|n| @idle_time_before_sleep_in_seconds = n.get_number_value() }, "kioskAppDisplayName" => lambda {|n| @kiosk_app_display_name = n.get_string_value() }, "kioskAppUserModelId" => lambda {|n| @kiosk_app_user_model_id = n.get_string_value() }, "maintenanceStartTime" => lambda {|n| @maintenance_start_time = n.get_time_value() }, }) end |
#idle_time_before_sleep_in_seconds ⇒ Object
Gets the idleTimeBeforeSleepInSeconds property value. Specifies the time in seconds that a device must sit idle before the PC goes to sleep. Setting this value to 0 prevents the sleep timeout from occurring.
209 210 211 |
# File 'lib/models/shared_p_c_configuration.rb', line 209 def idle_time_before_sleep_in_seconds return @idle_time_before_sleep_in_seconds end |
#idle_time_before_sleep_in_seconds=(value) ⇒ Object
Sets the idleTimeBeforeSleepInSeconds property value. Specifies the time in seconds that a device must sit idle before the PC goes to sleep. Setting this value to 0 prevents the sleep timeout from occurring.
217 218 219 |
# File 'lib/models/shared_p_c_configuration.rb', line 217 def idle_time_before_sleep_in_seconds=(value) @idle_time_before_sleep_in_seconds = value end |
#kiosk_app_display_name ⇒ Object
Gets the kioskAppDisplayName property value. Specifies the display text for the account shown on the sign-in screen which launches the app specified by SetKioskAppUserModelId. Only applies when KioskAppUserModelId is set.
224 225 226 |
# File 'lib/models/shared_p_c_configuration.rb', line 224 def kiosk_app_display_name return @kiosk_app_display_name end |
#kiosk_app_display_name=(value) ⇒ Object
Sets the kioskAppDisplayName property value. Specifies the display text for the account shown on the sign-in screen which launches the app specified by SetKioskAppUserModelId. Only applies when KioskAppUserModelId is set.
232 233 234 |
# File 'lib/models/shared_p_c_configuration.rb', line 232 def kiosk_app_display_name=(value) @kiosk_app_display_name = value end |
#kiosk_app_user_model_id ⇒ Object
Gets the kioskAppUserModelId property value. Specifies the application user model ID of the app to use with assigned access.
239 240 241 |
# File 'lib/models/shared_p_c_configuration.rb', line 239 def kiosk_app_user_model_id return @kiosk_app_user_model_id end |
#kiosk_app_user_model_id=(value) ⇒ Object
Sets the kioskAppUserModelId property value. Specifies the application user model ID of the app to use with assigned access.
247 248 249 |
# File 'lib/models/shared_p_c_configuration.rb', line 247 def kiosk_app_user_model_id=(value) @kiosk_app_user_model_id = value end |
#maintenance_start_time ⇒ Object
Gets the maintenanceStartTime property value. Specifies the daily start time of maintenance hour.
254 255 256 |
# File 'lib/models/shared_p_c_configuration.rb', line 254 def maintenance_start_time return @maintenance_start_time end |
#maintenance_start_time=(value) ⇒ Object
Sets the maintenanceStartTime property value. Specifies the daily start time of maintenance hour.
262 263 264 |
# File 'lib/models/shared_p_c_configuration.rb', line 262 def maintenance_start_time=(value) @maintenance_start_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 |
# File 'lib/models/shared_p_c_configuration.rb', line 270 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("accountManagerPolicy", @account_manager_policy) writer.write_boolean_value("allowLocalStorage", @allow_local_storage) writer.write_enum_value("allowedAccounts", @allowed_accounts) writer.write_boolean_value("disableAccountManager", @disable_account_manager) writer.write_boolean_value("disableEduPolicies", @disable_edu_policies) writer.write_boolean_value("disablePowerPolicies", @disable_power_policies) writer.write_boolean_value("disableSignInOnResume", @disable_sign_in_on_resume) writer.write_boolean_value("enabled", @enabled) writer.write_number_value("idleTimeBeforeSleepInSeconds", @idle_time_before_sleep_in_seconds) writer.write_string_value("kioskAppDisplayName", @kiosk_app_display_name) writer.write_string_value("kioskAppUserModelId", @kiosk_app_user_model_id) writer.write_time_value("maintenanceStartTime", @maintenance_start_time) end |