Class: MicrosoftGraph::Models::ConfigurationManagerCollectionAssignmentTarget
- Inherits:
-
DeviceAndAppManagementAssignmentTarget
- Object
- DeviceAndAppManagementAssignmentTarget
- MicrosoftGraph::Models::ConfigurationManagerCollectionAssignmentTarget
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/configuration_manager_collection_assignment_target.rb
Overview
Represents an assignment to a Configuration Manager Collection.
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
-
#collection_id ⇒ Object
Gets the collectionId property value.
-
#collection_id=(value) ⇒ Object
Sets the collectionId property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new configurationManagerCollectionAssignmentTarget and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from DeviceAndAppManagementAssignmentTarget
#additional_data, #additional_data=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new configurationManagerCollectionAssignmentTarget and sets the default values.
33 34 35 36 |
# File 'lib/models/configuration_manager_collection_assignment_target.rb', line 33 def initialize() super @odata_type = "#microsoft.graph.configurationManagerCollectionAssignmentTarget" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
42 43 44 45 |
# File 'lib/models/configuration_manager_collection_assignment_target.rb', line 42 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ConfigurationManagerCollectionAssignmentTarget.new end |
Instance Method Details
#collection_id ⇒ Object
Gets the collectionId property value. The collection Id that is the target of the assignment.
18 19 20 |
# File 'lib/models/configuration_manager_collection_assignment_target.rb', line 18 def collection_id return @collection_id end |
#collection_id=(value) ⇒ Object
Sets the collectionId property value. The collection Id that is the target of the assignment.
26 27 28 |
# File 'lib/models/configuration_manager_collection_assignment_target.rb', line 26 def collection_id=(value) @collection_id = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
50 51 52 53 54 |
# File 'lib/models/configuration_manager_collection_assignment_target.rb', line 50 def get_field_deserializers() return super.merge({ "collectionId" => lambda {|n| @collection_id = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
60 61 62 63 64 |
# File 'lib/models/configuration_manager_collection_assignment_target.rb', line 60 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("collectionId", @collection_id) end |