Class: MicrosoftGraph::Models::SecurityFileDetails

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a security_file_details

Raises:

  • (StandardError)


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_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



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



51
52
53
# File 'lib/models/security_file_details.rb', line 51

def additional_data=(value)
    @additional_data = value
end

#file_nameObject

Gets the fileName property value. The name of the file.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the fileName property.

Returns:

  • a void



82
83
84
# File 'lib/models/security_file_details.rb', line 82

def file_name=(value)
    @file_name = value
end

#file_pathObject

Gets the filePath property value. The file path (location) of the file instance.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the filePath property.

Returns:

  • a void



97
98
99
# File 'lib/models/security_file_details.rb', line 97

def file_path=(value)
    @file_path = value
end

#file_publisherObject

Gets the filePublisher property value. The publisher of the file.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the filePublisher property.

Returns:

  • a void



112
113
114
# File 'lib/models/security_file_details.rb', line 112

def file_publisher=(value)
    @file_publisher = value
end

#file_sizeObject

Gets the fileSize property value. The size of the file in bytes.

Returns:

  • a int64



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.

Parameters:

  • value

    Value to set for the fileSize property.

Returns:

  • a void



127
128
129
# File 'lib/models/security_file_details.rb', line 127

def file_size=(value)
    @file_size = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#issuerObject

Gets the issuer property value. The certificate authority (CA) that issued the certificate.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the issuer property.

Returns:

  • a void



159
160
161
# File 'lib/models/security_file_details.rb', line 159

def issuer=(value)
    @issuer = value
end

#odata_typeObject

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

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#sha1Object

Gets the sha1 property value. The Sha1 cryptographic hash of the file content.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the sha1 property.

Returns:

  • a void



207
208
209
# File 'lib/models/security_file_details.rb', line 207

def sha1=(value)
    @sha1 = value
end

#sha256Object

Gets the sha256 property value. The Sha256 cryptographic hash of the file content.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the sha256 property.

Returns:

  • a void



222
223
224
# File 'lib/models/security_file_details.rb', line 222

def sha256=(value)
    @sha256 = value
end

#signerObject

Gets the signer property value. The signer of the signed file.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the signer property.

Returns:

  • a void



237
238
239
# File 'lib/models/security_file_details.rb', line 237

def signer=(value)
    @signer = value
end