Class: MicrosoftGraph::Models::SecurityFileDetails
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::SecurityFileDetails
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_file_details.rb
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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#file_name ⇒ Object
Gets the fileName property value.
-
#file_name=(value) ⇒ Object
Sets the fileName property value.
-
#file_path ⇒ Object
Gets the filePath property value.
-
#file_path=(value) ⇒ Object
Sets the filePath property value.
-
#file_publisher ⇒ Object
Gets the filePublisher property value.
-
#file_publisher=(value) ⇒ Object
Sets the filePublisher property value.
-
#file_size ⇒ Object
Gets the fileSize property value.
-
#file_size=(value) ⇒ Object
Sets the fileSize property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new securityFileDetails and sets the default values.
-
#issuer ⇒ Object
Gets the issuer property value.
-
#issuer=(value) ⇒ Object
Sets the issuer property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#sha1 ⇒ Object
Gets the sha1 property value.
-
#sha1=(value) ⇒ Object
Sets the sha1 property value.
-
#sha256 ⇒ Object
Gets the sha256 property value.
-
#sha256=(value) ⇒ Object
Sets the sha256 property value.
-
#signer ⇒ Object
Gets the signer property value.
-
#signer=(value) ⇒ Object
Sets the signer property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new securityFileDetails and sets the default values.
58 59 60 |
# File 'lib/models/security_file_details.rb', line 58 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
66 67 68 69 |
# File 'lib/models/security_file_details.rb', line 66 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityFileDetails.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
43 44 45 |
# File 'lib/models/security_file_details.rb', line 43 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.
51 52 53 |
# File 'lib/models/security_file_details.rb', line 51 def additional_data=(value) @additional_data = value end |
#file_name ⇒ Object
Gets the fileName property value. The name of the file.
74 75 76 |
# File 'lib/models/security_file_details.rb', line 74 def file_name return @file_name end |
#file_name=(value) ⇒ Object
Sets the fileName property value. The name of the file.
82 83 84 |
# File 'lib/models/security_file_details.rb', line 82 def file_name=(value) @file_name = value end |
#file_path ⇒ Object
Gets the filePath property value. The file path (location) of the file instance.
89 90 91 |
# File 'lib/models/security_file_details.rb', line 89 def file_path return @file_path end |
#file_path=(value) ⇒ Object
Sets the filePath property value. The file path (location) of the file instance.
97 98 99 |
# File 'lib/models/security_file_details.rb', line 97 def file_path=(value) @file_path = value end |
#file_publisher ⇒ Object
Gets the filePublisher property value. The publisher of the file.
104 105 106 |
# File 'lib/models/security_file_details.rb', line 104 def file_publisher return @file_publisher end |
#file_publisher=(value) ⇒ Object
Sets the filePublisher property value. The publisher of the file.
112 113 114 |
# File 'lib/models/security_file_details.rb', line 112 def file_publisher=(value) @file_publisher = value end |
#file_size ⇒ Object
Gets the fileSize property value. The size of the file in bytes.
119 120 121 |
# File 'lib/models/security_file_details.rb', line 119 def file_size return @file_size end |
#file_size=(value) ⇒ Object
Sets the fileSize property value. The size of the file in bytes.
127 128 129 |
# File 'lib/models/security_file_details.rb', line 127 def file_size=(value) @file_size = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/models/security_file_details.rb', line 134 def get_field_deserializers() return { "fileName" => lambda {|n| @file_name = n.get_string_value() }, "filePath" => lambda {|n| @file_path = n.get_string_value() }, "filePublisher" => lambda {|n| @file_publisher = n.get_string_value() }, "fileSize" => lambda {|n| @file_size = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, "issuer" => lambda {|n| @issuer = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "sha1" => lambda {|n| @sha1 = n.get_string_value() }, "sha256" => lambda {|n| @sha256 = n.get_string_value() }, "signer" => lambda {|n| @signer = n.get_string_value() }, } end |
#issuer ⇒ Object
Gets the issuer property value. The certificate authority (CA) that issued the certificate.
151 152 153 |
# File 'lib/models/security_file_details.rb', line 151 def issuer return @issuer end |
#issuer=(value) ⇒ Object
Sets the issuer property value. The certificate authority (CA) that issued the certificate.
159 160 161 |
# File 'lib/models/security_file_details.rb', line 159 def issuer=(value) @issuer = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
166 167 168 |
# File 'lib/models/security_file_details.rb', line 166 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
174 175 176 |
# File 'lib/models/security_file_details.rb', line 174 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'lib/models/security_file_details.rb', line 182 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("fileName", @file_name) writer.write_string_value("filePath", @file_path) writer.write_string_value("filePublisher", @file_publisher) writer.write_object_value("fileSize", @file_size) writer.write_string_value("issuer", @issuer) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("sha1", @sha1) writer.write_string_value("sha256", @sha256) writer.write_string_value("signer", @signer) writer.write_additional_data(@additional_data) end |
#sha1 ⇒ Object
Gets the sha1 property value. The Sha1 cryptographic hash of the file content.
199 200 201 |
# File 'lib/models/security_file_details.rb', line 199 def sha1 return @sha1 end |
#sha1=(value) ⇒ Object
Sets the sha1 property value. The Sha1 cryptographic hash of the file content.
207 208 209 |
# File 'lib/models/security_file_details.rb', line 207 def sha1=(value) @sha1 = value end |
#sha256 ⇒ Object
Gets the sha256 property value. The Sha256 cryptographic hash of the file content.
214 215 216 |
# File 'lib/models/security_file_details.rb', line 214 def sha256 return @sha256 end |
#sha256=(value) ⇒ Object
Sets the sha256 property value. The Sha256 cryptographic hash of the file content.
222 223 224 |
# File 'lib/models/security_file_details.rb', line 222 def sha256=(value) @sha256 = value end |
#signer ⇒ Object
Gets the signer property value. The signer of the signed file.
229 230 231 |
# File 'lib/models/security_file_details.rb', line 229 def signer return @signer end |
#signer=(value) ⇒ Object
Sets the signer property value. The signer of the signed file.
237 238 239 |
# File 'lib/models/security_file_details.rb', line 237 def signer=(value) @signer = value end |