Class: MicrosoftGraph::Models::SecurityDataSourceContainer
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_data_source_container.rb
Direct Known Subclasses
SecurityEdiscoveryCustodian, SecurityEdiscoveryNoncustodialDataSource
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
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime 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.
-
#hold_status ⇒ Object
Gets the holdStatus property value.
-
#hold_status=(value) ⇒ Object
Sets the holdStatus property value.
-
#initialize ⇒ Object
constructor
Instantiates a new securityDataSourceContainer 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.
-
#released_date_time ⇒ Object
Gets the releasedDateTime property value.
-
#released_date_time=(value) ⇒ Object
Sets the releasedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new securityDataSourceContainer and sets the default values.
32 33 34 |
# File 'lib/models/security_data_source_container.rb', line 32 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
55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/models/security_data_source_container.rb', line 55 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.security.ediscoveryCustodian" return SecurityEdiscoveryCustodian.new when "#microsoft.graph.security.ediscoveryNoncustodialDataSource" return SecurityEdiscoveryNoncustodialDataSource.new end end return SecurityDataSourceContainer.new end |
Instance Method Details
#created_date_time ⇒ Object
Gets the createdDateTime property value. Created date and time of the dataSourceContainer entity.
39 40 41 |
# File 'lib/models/security_data_source_container.rb', line 39 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. Created date and time of the dataSourceContainer entity.
47 48 49 |
# File 'lib/models/security_data_source_container.rb', line 47 def created_date_time=(value) @created_date_time = value end |
#display_name ⇒ Object
Gets the displayName property value. Display name of the dataSourceContainer entity.
73 74 75 |
# File 'lib/models/security_data_source_container.rb', line 73 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Display name of the dataSourceContainer entity.
81 82 83 |
# File 'lib/models/security_data_source_container.rb', line 81 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
88 89 90 91 92 93 94 95 96 97 |
# File 'lib/models/security_data_source_container.rb', line 88 def get_field_deserializers() return super.merge({ "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "holdStatus" => lambda {|n| @hold_status = n.get_enum_value(MicrosoftGraph::Models::SecurityDataSourceHoldStatus) }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, "releasedDateTime" => lambda {|n| @released_date_time = n.get_date_time_value() }, "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::SecurityDataSourceContainerStatus) }, }) end |
#hold_status ⇒ Object
Gets the holdStatus property value. The hold status of the dataSourceContainer. The possible values are: notApplied, applied, applying, removing, partial
102 103 104 |
# File 'lib/models/security_data_source_container.rb', line 102 def hold_status return @hold_status end |
#hold_status=(value) ⇒ Object
Sets the holdStatus property value. The hold status of the dataSourceContainer. The possible values are: notApplied, applied, applying, removing, partial
110 111 112 |
# File 'lib/models/security_data_source_container.rb', line 110 def hold_status=(value) @hold_status = value end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. Last modified date and time of the dataSourceContainer.
117 118 119 |
# File 'lib/models/security_data_source_container.rb', line 117 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. Last modified date and time of the dataSourceContainer.
125 126 127 |
# File 'lib/models/security_data_source_container.rb', line 125 def last_modified_date_time=(value) @last_modified_date_time = value end |
#released_date_time ⇒ Object
Gets the releasedDateTime property value. Date and time that the dataSourceContainer was released from the case.
132 133 134 |
# File 'lib/models/security_data_source_container.rb', line 132 def released_date_time return @released_date_time end |
#released_date_time=(value) ⇒ Object
Sets the releasedDateTime property value. Date and time that the dataSourceContainer was released from the case.
140 141 142 |
# File 'lib/models/security_data_source_container.rb', line 140 def released_date_time=(value) @released_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
148 149 150 151 152 153 154 155 156 157 |
# File 'lib/models/security_data_source_container.rb', line 148 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("displayName", @display_name) writer.write_enum_value("holdStatus", @hold_status) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_date_time_value("releasedDateTime", @released_date_time) writer.write_enum_value("status", @status) end |
#status ⇒ Object
Gets the status property value. Latest status of the dataSourceContainer. Possible values are: Active, Released.
162 163 164 |
# File 'lib/models/security_data_source_container.rb', line 162 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. Latest status of the dataSourceContainer. Possible values are: Active, Released.
170 171 172 |
# File 'lib/models/security_data_source_container.rb', line 170 def status=(value) @status = value end |