Class: MicrosoftGraph::Models::DeviceCompliancePolicy
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/device_compliance_policy.rb
Overview
This is the base class for Compliance policy. Compliance policies are platform specific and individual per-platform compliance policies inherit from here.
Direct Known Subclasses
AndroidCompliancePolicy, AndroidWorkProfileCompliancePolicy, IosCompliancePolicy, MacOSCompliancePolicy, Windows10CompliancePolicy, Windows10MobileCompliancePolicy, Windows81CompliancePolicy, WindowsPhone81CompliancePolicy
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
-
#assignments ⇒ Object
Gets the assignments property value.
-
#assignments=(value) ⇒ Object
Sets the assignments property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#device_setting_state_summaries ⇒ Object
Gets the deviceSettingStateSummaries property value.
-
#device_setting_state_summaries=(value) ⇒ Object
Sets the deviceSettingStateSummaries property value.
-
#device_status_overview ⇒ Object
Gets the deviceStatusOverview property value.
-
#device_status_overview=(value) ⇒ Object
Sets the deviceStatusOverview property value.
-
#device_statuses ⇒ Object
Gets the deviceStatuses property value.
-
#device_statuses=(value) ⇒ Object
Sets the deviceStatuses property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new deviceCompliancePolicy and sets the default values.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#scheduled_actions_for_rule ⇒ Object
Gets the scheduledActionsForRule property value.
-
#scheduled_actions_for_rule=(value) ⇒ Object
Sets the scheduledActionsForRule property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#user_status_overview ⇒ Object
Gets the userStatusOverview property value.
-
#user_status_overview=(value) ⇒ Object
Sets the userStatusOverview property value.
-
#user_statuses ⇒ Object
Gets the userStatuses property value.
-
#user_statuses=(value) ⇒ Object
Sets the userStatuses property value.
-
#version ⇒ Object
Gets the version property value.
-
#version=(value) ⇒ Object
Sets the version property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new deviceCompliancePolicy and sets the default values.
67 68 69 |
# File 'lib/models/device_compliance_policy.rb', line 67 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
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/models/device_compliance_policy.rb', line 90 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.androidCompliancePolicy" return AndroidCompliancePolicy.new when "#microsoft.graph.androidWorkProfileCompliancePolicy" return AndroidWorkProfileCompliancePolicy.new when "#microsoft.graph.iosCompliancePolicy" return IosCompliancePolicy.new when "#microsoft.graph.macOSCompliancePolicy" return MacOSCompliancePolicy.new when "#microsoft.graph.windows10CompliancePolicy" return Windows10CompliancePolicy.new when "#microsoft.graph.windows10MobileCompliancePolicy" return Windows10MobileCompliancePolicy.new when "#microsoft.graph.windows81CompliancePolicy" return Windows81CompliancePolicy.new when "#microsoft.graph.windowsPhone81CompliancePolicy" return WindowsPhone81CompliancePolicy.new end end return DeviceCompliancePolicy.new end |
Instance Method Details
#assignments ⇒ Object
Gets the assignments property value. The collection of assignments for this compliance policy.
52 53 54 |
# File 'lib/models/device_compliance_policy.rb', line 52 def assignments return @assignments end |
#assignments=(value) ⇒ Object
Sets the assignments property value. The collection of assignments for this compliance policy.
60 61 62 |
# File 'lib/models/device_compliance_policy.rb', line 60 def assignments=(value) @assignments = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. DateTime the object was created.
74 75 76 |
# File 'lib/models/device_compliance_policy.rb', line 74 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. DateTime the object was created.
82 83 84 |
# File 'lib/models/device_compliance_policy.rb', line 82 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. Admin provided description of the Device Configuration.
120 121 122 |
# File 'lib/models/device_compliance_policy.rb', line 120 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Admin provided description of the Device Configuration.
128 129 130 |
# File 'lib/models/device_compliance_policy.rb', line 128 def description=(value) @description = value end |
#device_setting_state_summaries ⇒ Object
Gets the deviceSettingStateSummaries property value. Compliance Setting State Device Summary
135 136 137 |
# File 'lib/models/device_compliance_policy.rb', line 135 def device_setting_state_summaries return @device_setting_state_summaries end |
#device_setting_state_summaries=(value) ⇒ Object
Sets the deviceSettingStateSummaries property value. Compliance Setting State Device Summary
143 144 145 |
# File 'lib/models/device_compliance_policy.rb', line 143 def device_setting_state_summaries=(value) @device_setting_state_summaries = value end |
#device_status_overview ⇒ Object
Gets the deviceStatusOverview property value. Device compliance devices status overview
150 151 152 |
# File 'lib/models/device_compliance_policy.rb', line 150 def device_status_overview return @device_status_overview end |
#device_status_overview=(value) ⇒ Object
Sets the deviceStatusOverview property value. Device compliance devices status overview
158 159 160 |
# File 'lib/models/device_compliance_policy.rb', line 158 def device_status_overview=(value) @device_status_overview = value end |
#device_statuses ⇒ Object
Gets the deviceStatuses property value. List of DeviceComplianceDeviceStatus.
165 166 167 |
# File 'lib/models/device_compliance_policy.rb', line 165 def device_statuses return @device_statuses end |
#device_statuses=(value) ⇒ Object
Sets the deviceStatuses property value. List of DeviceComplianceDeviceStatus.
173 174 175 |
# File 'lib/models/device_compliance_policy.rb', line 173 def device_statuses=(value) @device_statuses = value end |
#display_name ⇒ Object
Gets the displayName property value. Admin provided name of the device configuration.
180 181 182 |
# File 'lib/models/device_compliance_policy.rb', line 180 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Admin provided name of the device configuration.
188 189 190 |
# File 'lib/models/device_compliance_policy.rb', line 188 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 |
# File 'lib/models/device_compliance_policy.rb', line 195 def get_field_deserializers() return super.merge({ "assignments" => lambda {|n| @assignments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyAssignment.create_from_discriminator_value(pn) }) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "deviceSettingStateSummaries" => lambda {|n| @device_setting_state_summaries = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SettingStateDeviceSummary.create_from_discriminator_value(pn) }) }, "deviceStatusOverview" => lambda {|n| @device_status_overview = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DeviceComplianceDeviceOverview.create_from_discriminator_value(pn) }) }, "deviceStatuses" => lambda {|n| @device_statuses = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceComplianceDeviceStatus.create_from_discriminator_value(pn) }) }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, "scheduledActionsForRule" => lambda {|n| @scheduled_actions_for_rule = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceComplianceScheduledActionForRule.create_from_discriminator_value(pn) }) }, "userStatusOverview" => lambda {|n| @user_status_overview = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DeviceComplianceUserOverview.create_from_discriminator_value(pn) }) }, "userStatuses" => lambda {|n| @user_statuses = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceComplianceUserStatus.create_from_discriminator_value(pn) }) }, "version" => lambda {|n| @version = n.get_number_value() }, }) end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. DateTime the object was last modified.
215 216 217 |
# File 'lib/models/device_compliance_policy.rb', line 215 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. DateTime the object was last modified.
223 224 225 |
# File 'lib/models/device_compliance_policy.rb', line 223 def last_modified_date_time=(value) @last_modified_date_time = value end |
#scheduled_actions_for_rule ⇒ Object
Gets the scheduledActionsForRule property value. The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies.
230 231 232 |
# File 'lib/models/device_compliance_policy.rb', line 230 def scheduled_actions_for_rule return @scheduled_actions_for_rule end |
#scheduled_actions_for_rule=(value) ⇒ Object
Sets the scheduledActionsForRule property value. The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies.
238 239 240 |
# File 'lib/models/device_compliance_policy.rb', line 238 def scheduled_actions_for_rule=(value) @scheduled_actions_for_rule = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 |
# File 'lib/models/device_compliance_policy.rb', line 246 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("assignments", @assignments) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("description", @description) writer.write_collection_of_object_values("deviceSettingStateSummaries", @device_setting_state_summaries) writer.write_object_value("deviceStatusOverview", @device_status_overview) writer.write_collection_of_object_values("deviceStatuses", @device_statuses) writer.write_string_value("displayName", @display_name) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_collection_of_object_values("scheduledActionsForRule", @scheduled_actions_for_rule) writer.write_object_value("userStatusOverview", @user_status_overview) writer.write_collection_of_object_values("userStatuses", @user_statuses) writer.write_number_value("version", @version) end |
#user_status_overview ⇒ Object
Gets the userStatusOverview property value. Device compliance users status overview
266 267 268 |
# File 'lib/models/device_compliance_policy.rb', line 266 def user_status_overview return @user_status_overview end |
#user_status_overview=(value) ⇒ Object
Sets the userStatusOverview property value. Device compliance users status overview
274 275 276 |
# File 'lib/models/device_compliance_policy.rb', line 274 def user_status_overview=(value) @user_status_overview = value end |
#user_statuses ⇒ Object
Gets the userStatuses property value. List of DeviceComplianceUserStatus.
281 282 283 |
# File 'lib/models/device_compliance_policy.rb', line 281 def user_statuses return @user_statuses end |
#user_statuses=(value) ⇒ Object
Sets the userStatuses property value. List of DeviceComplianceUserStatus.
289 290 291 |
# File 'lib/models/device_compliance_policy.rb', line 289 def user_statuses=(value) @user_statuses = value end |
#version ⇒ Object
Gets the version property value. Version of the device configuration.
296 297 298 |
# File 'lib/models/device_compliance_policy.rb', line 296 def version return @version end |
#version=(value) ⇒ Object
Sets the version property value. Version of the device configuration.
304 305 306 |
# File 'lib/models/device_compliance_policy.rb', line 304 def version=(value) @version = value end |