Class: MicrosoftGraph::Models::Windows10SecureAssessmentConfiguration

Inherits:
DeviceConfiguration show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/windows10_secure_assessment_configuration.rb

Overview

This topic provides descriptions of the declared methods, properties and relationships exposed by the secureAssessment 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 windows10SecureAssessmentConfiguration and sets the default values.



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

def initialize()
    super
    @odata_type = "#microsoft.graph.windows10SecureAssessmentConfiguration"
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 windows10_secure_assessment_configuration

Raises:

  • (StandardError)


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

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return Windows10SecureAssessmentConfiguration.new
end

Instance Method Details

#allow_printingObject

Gets the allowPrinting property value. Indicates whether or not to allow the app from printing during the test.

Returns:

  • a boolean



30
31
32
# File 'lib/models/windows10_secure_assessment_configuration.rb', line 30

def allow_printing
    return @allow_printing
end

#allow_printing=(value) ⇒ Object

Sets the allowPrinting property value. Indicates whether or not to allow the app from printing during the test.

Parameters:

  • value

    Value to set for the allowPrinting property.

Returns:

  • a void



38
39
40
# File 'lib/models/windows10_secure_assessment_configuration.rb', line 38

def allow_printing=(value)
    @allow_printing = value
end

#allow_screen_captureObject

Gets the allowScreenCapture property value. Indicates whether or not to allow screen capture capability during a test.

Returns:

  • a boolean



45
46
47
# File 'lib/models/windows10_secure_assessment_configuration.rb', line 45

def allow_screen_capture
    return @allow_screen_capture
end

#allow_screen_capture=(value) ⇒ Object

Sets the allowScreenCapture property value. Indicates whether or not to allow screen capture capability during a test.

Parameters:

  • value

    Value to set for the allowScreenCapture property.

Returns:

  • a void



53
54
55
# File 'lib/models/windows10_secure_assessment_configuration.rb', line 53

def allow_screen_capture=(value)
    @allow_screen_capture = value
end

#allow_text_suggestionObject

Gets the allowTextSuggestion property value. Indicates whether or not to allow text suggestions during the test.

Returns:

  • a boolean



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

def allow_text_suggestion
    return @allow_text_suggestion
end

#allow_text_suggestion=(value) ⇒ Object

Sets the allowTextSuggestion property value. Indicates whether or not to allow text suggestions during the test.

Parameters:

  • value

    Value to set for the allowTextSuggestion property.

Returns:

  • a void



68
69
70
# File 'lib/models/windows10_secure_assessment_configuration.rb', line 68

def allow_text_suggestion=(value)
    @allow_text_suggestion = value
end

#configuration_accountObject

Gets the configurationAccount property value. The account used to configure the Windows device for taking the test. The user can be a domain account (domain/user), an AAD account ([email protected]) or a local account (username).

Returns:

  • a string



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

def 
    return 
end

#configuration_account=(value) ⇒ Object

Sets the configurationAccount property value. The account used to configure the Windows device for taking the test. The user can be a domain account (domain/user), an AAD account ([email protected]) or a local account (username).

Parameters:

  • value

    Value to set for the configurationAccount property.

Returns:

  • a void



83
84
85
# File 'lib/models/windows10_secure_assessment_configuration.rb', line 83

def configuration_account=(value)
     = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



107
108
109
110
111
112
113
114
115
# File 'lib/models/windows10_secure_assessment_configuration.rb', line 107

def get_field_deserializers()
    return super.merge({
        "allowPrinting" => lambda {|n| @allow_printing = n.get_boolean_value() },
        "allowScreenCapture" => lambda {|n| @allow_screen_capture = n.get_boolean_value() },
        "allowTextSuggestion" => lambda {|n| @allow_text_suggestion = n.get_boolean_value() },
        "configurationAccount" => lambda {|n|  = n.get_string_value() },
        "launchUri" => lambda {|n| @launch_uri = n.get_string_value() },
    })
end

#launch_uriObject

Gets the launchUri property value. Url link to an assessment that’s automatically loaded when the secure assessment browser is launched. It has to be a valid Url (http://msdn.microsoft.com/).

Returns:

  • a string



120
121
122
# File 'lib/models/windows10_secure_assessment_configuration.rb', line 120

def launch_uri
    return @launch_uri
end

#launch_uri=(value) ⇒ Object

Sets the launchUri property value. Url link to an assessment that’s automatically loaded when the secure assessment browser is launched. It has to be a valid Url (http://msdn.microsoft.com/).

Parameters:

  • value

    Value to set for the launchUri property.

Returns:

  • a void



128
129
130
# File 'lib/models/windows10_secure_assessment_configuration.rb', line 128

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


136
137
138
139
140
141
142
143
144
# File 'lib/models/windows10_secure_assessment_configuration.rb', line 136

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_boolean_value("allowPrinting", @allow_printing)
    writer.write_boolean_value("allowScreenCapture", @allow_screen_capture)
    writer.write_boolean_value("allowTextSuggestion", @allow_text_suggestion)
    writer.write_string_value("configurationAccount", )
    writer.write_string_value("launchUri", @launch_uri)
end