Class: MicrosoftGraph::Models::SharedPCConfiguration

Inherits:
DeviceConfiguration show all
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

Instance Method Summary collapse

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

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a shared_p_c_configuration

Raises:

  • (StandardError)


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_policyObject

Gets the accountManagerPolicy property value. Specifies how accounts are managed on a shared PC. Only applies when disableAccountManager is false.

Returns:

  • a shared_p_c_account_manager_policy



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

def 
    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.

Parameters:

  • value

    Value to set for the accountManagerPolicy property.

Returns:

  • a void



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

def (value)
    @account_manager_policy = value
end

#allow_local_storageObject

Gets the allowLocalStorage property value. Specifies whether local storage is allowed on a shared PC.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the allowLocalStorage property.

Returns:

  • a void



75
76
77
# File 'lib/models/shared_p_c_configuration.rb', line 75

def allow_local_storage=(value)
    @allow_local_storage = value
end

#allowed_accountsObject

Gets the allowedAccounts property value. Type of accounts that are allowed to share the PC.

Returns:

  • a shared_p_c_allowed_account_type



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.

Parameters:

  • value

    Value to set for the allowedAccounts property.

Returns:

  • a void



90
91
92
# File 'lib/models/shared_p_c_configuration.rb', line 90

def allowed_accounts=(value)
    @allowed_accounts = value
end

#disable_account_managerObject

Gets the disableAccountManager property value. Disables the account manager for shared PC mode.

Returns:

  • a boolean



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

def 
    return 
end

#disable_account_manager=(value) ⇒ Object

Sets the disableAccountManager property value. Disables the account manager for shared PC mode.

Parameters:

  • value

    Value to set for the disableAccountManager property.

Returns:

  • a void



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

def (value)
     = value
end

#disable_edu_policiesObject

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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the disableEduPolicies property.

Returns:

  • a void



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_policiesObject

Gets the disablePowerPolicies property value. Specifies whether the default shared PC power policies should be disabled.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the disablePowerPolicies property.

Returns:

  • a void



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_resumeObject

Gets the disableSignInOnResume property value. Disables the requirement to sign in whenever the device wakes up from sleep mode.

Returns:

  • a boolean



159
160
161
# File 'lib/models/shared_p_c_configuration.rb', line 159

def 
    return 
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.

Parameters:

  • value

    Value to set for the disableSignInOnResume property.

Returns:

  • a void



167
168
169
# File 'lib/models/shared_p_c_configuration.rb', line 167

def (value)
     = value
end

#enabledObject

Gets the enabled property value. Enables shared PC mode and applies the shared pc policies.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the enabled property.

Returns:

  • a void



182
183
184
# File 'lib/models/shared_p_c_configuration.rb', line 182

def enabled=(value)
    @enabled = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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|  = 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|  = 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_secondsObject

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.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the idleTimeBeforeSleepInSeconds property.

Returns:

  • a void



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_nameObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the kioskAppDisplayName property.

Returns:

  • a void



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_idObject

Gets the kioskAppUserModelId property value. Specifies the application user model ID of the app to use with assigned access.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the kioskAppUserModelId property.

Returns:

  • a void



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_timeObject

Gets the maintenanceStartTime property value. Specifies the daily start time of maintenance hour.

Returns:

  • a time



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.

Parameters:

  • value

    Value to set for the maintenanceStartTime property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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", )
    writer.write_boolean_value("disableEduPolicies", @disable_edu_policies)
    writer.write_boolean_value("disablePowerPolicies", @disable_power_policies)
    writer.write_boolean_value("disableSignInOnResume", )
    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