Class: MicrosoftGraph::Models::SecurityBlobContainerEvidence

Inherits:
SecurityAlertEvidence show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_blob_container_evidence.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SecurityAlertEvidence

#additional_data, #additional_data=, #created_date_time, #created_date_time=, #detailed_roles, #detailed_roles=, #odata_type, #odata_type=, #remediation_status, #remediation_status=, #remediation_status_details, #remediation_status_details=, #roles, #roles=, #tags, #tags=, #verdict, #verdict=

Constructor Details

#initializeObject

Instantiates a new securityBlobContainerEvidence and sets the default values.



22
23
24
25
# File 'lib/models/security_blob_container_evidence.rb', line 22

def initialize()
    super
    @odata_type = "#microsoft.graph.security.blobContainerEvidence"
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_blob_container_evidence

Raises:

  • (StandardError)


31
32
33
34
# File 'lib/models/security_blob_container_evidence.rb', line 31

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return SecurityBlobContainerEvidence.new
end

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



39
40
41
42
43
44
45
# File 'lib/models/security_blob_container_evidence.rb', line 39

def get_field_deserializers()
    return super.merge({
        "name" => lambda {|n| @name = n.get_string_value() },
        "storageResource" => lambda {|n| @storage_resource = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityAzureResourceEvidence.create_from_discriminator_value(pn) }) },
        "url" => lambda {|n| @url = n.get_string_value() },
    })
end

#nameObject

Gets the name property value. The name of the blob container.

Returns:

  • a string



50
51
52
# File 'lib/models/security_blob_container_evidence.rb', line 50

def name
    return @name
end

#name=(value) ⇒ Object

Sets the name property value. The name of the blob container.

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



58
59
60
# File 'lib/models/security_blob_container_evidence.rb', line 58

def name=(value)
    @name = 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)


66
67
68
69
70
71
72
# File 'lib/models/security_blob_container_evidence.rb', line 66

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("name", @name)
    writer.write_object_value("storageResource", @storage_resource)
    writer.write_string_value("url", @url)
end

#storage_resourceObject

Gets the storageResource property value. The storage which the blob container belongs to.

Returns:

  • a security_azure_resource_evidence



77
78
79
# File 'lib/models/security_blob_container_evidence.rb', line 77

def storage_resource
    return @storage_resource
end

#storage_resource=(value) ⇒ Object

Sets the storageResource property value. The storage which the blob container belongs to.

Parameters:

  • value

    Value to set for the storageResource property.

Returns:

  • a void



85
86
87
# File 'lib/models/security_blob_container_evidence.rb', line 85

def storage_resource=(value)
    @storage_resource = value
end

#urlObject

Gets the url property value. The full URL representation of the blob container.

Returns:

  • a string



92
93
94
# File 'lib/models/security_blob_container_evidence.rb', line 92

def url
    return @url
end

#url=(value) ⇒ Object

Sets the url property value. The full URL representation of the blob container.

Parameters:

  • value

    Value to set for the url property.

Returns:

  • a void



100
101
102
# File 'lib/models/security_blob_container_evidence.rb', line 100

def url=(value)
    @url = value
end