Class: MicrosoftGraph::Models::ConfigurationManagerClientEnabledFeatures

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/configuration_manager_client_enabled_features.rb

Overview

configuration Manager client enabled features

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new configurationManagerClientEnabledFeatures and sets the default values.



69
70
71
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 69

def initialize()
    @additional_data = Hash.new
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 configuration_manager_client_enabled_features

Raises:

  • (StandardError)


77
78
79
80
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 77

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

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



39
40
41
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 39

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



47
48
49
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 47

def additional_data=(value)
    @additional_data = value
end

#compliance_policyObject

Gets the compliancePolicy property value. Whether compliance policy is managed by Intune

Returns:

  • a boolean



54
55
56
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 54

def compliance_policy
    return @compliance_policy
end

#compliance_policy=(value) ⇒ Object

Sets the compliancePolicy property value. Whether compliance policy is managed by Intune

Parameters:

  • value

    Value to set for the compliancePolicy property.

Returns:

  • a void



62
63
64
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 62

def compliance_policy=(value)
    @compliance_policy = value
end

#device_configurationObject

Gets the deviceConfiguration property value. Whether device configuration is managed by Intune

Returns:

  • a boolean



85
86
87
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 85

def device_configuration
    return @device_configuration
end

#device_configuration=(value) ⇒ Object

Sets the deviceConfiguration property value. Whether device configuration is managed by Intune

Parameters:

  • value

    Value to set for the deviceConfiguration property.

Returns:

  • a void



93
94
95
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 93

def device_configuration=(value)
    @device_configuration = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



100
101
102
103
104
105
106
107
108
109
110
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 100

def get_field_deserializers()
    return {
        "compliancePolicy" => lambda {|n| @compliance_policy = n.get_boolean_value() },
        "deviceConfiguration" => lambda {|n| @device_configuration = n.get_boolean_value() },
        "inventory" => lambda {|n| @inventory = n.get_boolean_value() },
        "modernApps" => lambda {|n| @modern_apps = n.get_boolean_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "resourceAccess" => lambda {|n| @resource_access = n.get_boolean_value() },
        "windowsUpdateForBusiness" => lambda {|n| @windows_update_for_business = n.get_boolean_value() },
    }
end

#inventoryObject

Gets the inventory property value. Whether inventory is managed by Intune

Returns:

  • a boolean



115
116
117
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 115

def inventory
    return @inventory
end

#inventory=(value) ⇒ Object

Sets the inventory property value. Whether inventory is managed by Intune

Parameters:

  • value

    Value to set for the inventory property.

Returns:

  • a void



123
124
125
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 123

def inventory=(value)
    @inventory = value
end

#modern_appsObject

Gets the modernApps property value. Whether modern application is managed by Intune

Returns:

  • a boolean



130
131
132
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 130

def modern_apps
    return @modern_apps
end

#modern_apps=(value) ⇒ Object

Sets the modernApps property value. Whether modern application is managed by Intune

Parameters:

  • value

    Value to set for the modernApps property.

Returns:

  • a void



138
139
140
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 138

def modern_apps=(value)
    @modern_apps = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



145
146
147
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 145

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



153
154
155
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 153

def odata_type=(value)
    @odata_type = value
end

#resource_accessObject

Gets the resourceAccess property value. Whether resource access is managed by Intune

Returns:

  • a boolean



160
161
162
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 160

def resource_access
    return @resource_access
end

#resource_access=(value) ⇒ Object

Sets the resourceAccess property value. Whether resource access is managed by Intune

Parameters:

  • value

    Value to set for the resourceAccess property.

Returns:

  • a void



168
169
170
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 168

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


176
177
178
179
180
181
182
183
184
185
186
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 176

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_boolean_value("compliancePolicy", @compliance_policy)
    writer.write_boolean_value("deviceConfiguration", @device_configuration)
    writer.write_boolean_value("inventory", @inventory)
    writer.write_boolean_value("modernApps", @modern_apps)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_boolean_value("resourceAccess", @resource_access)
    writer.write_boolean_value("windowsUpdateForBusiness", @windows_update_for_business)
    writer.write_additional_data(@additional_data)
end

#windows_update_for_businessObject

Gets the windowsUpdateForBusiness property value. Whether Windows Update for Business is managed by Intune

Returns:

  • a boolean



191
192
193
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 191

def windows_update_for_business
    return @windows_update_for_business
end

#windows_update_for_business=(value) ⇒ Object

Sets the windowsUpdateForBusiness property value. Whether Windows Update for Business is managed by Intune

Parameters:

  • value

    Value to set for the windowsUpdateForBusiness property.

Returns:

  • a void



199
200
201
# File 'lib/models/configuration_manager_client_enabled_features.rb', line 199

def windows_update_for_business=(value)
    @windows_update_for_business = value
end