Class: MicrosoftGraph::Models::AppLogCollectionRequest

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/app_log_collection_request.rb

Overview

Entity for AppLogCollectionRequest contains all logs values.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new appLogCollectionRequest and sets the default values.



43
44
45
# File 'lib/models/app_log_collection_request.rb', line 43

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

Parameters:

  • parse_node

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

Returns:

  • a app_log_collection_request

Raises:

  • (StandardError)


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

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

Instance Method Details

#completed_date_timeObject

Gets the completedDateTime property value. Time at which the upload log request reached a completed state if not completed yet NULL will be returned.

Returns:

  • a date_time



28
29
30
# File 'lib/models/app_log_collection_request.rb', line 28

def completed_date_time
    return @completed_date_time
end

#completed_date_time=(value) ⇒ Object

Sets the completedDateTime property value. Time at which the upload log request reached a completed state if not completed yet NULL will be returned.

Parameters:

  • value

    Value to set for the completedDateTime property.

Returns:

  • a void



36
37
38
# File 'lib/models/app_log_collection_request.rb', line 36

def completed_date_time=(value)
    @completed_date_time = value
end

#custom_log_foldersObject

Gets the customLogFolders property value. List of log folders.

Returns:

  • a string



59
60
61
# File 'lib/models/app_log_collection_request.rb', line 59

def custom_log_folders
    return @custom_log_folders
end

#custom_log_folders=(value) ⇒ Object

Sets the customLogFolders property value. List of log folders.

Parameters:

  • value

    Value to set for the customLogFolders property.

Returns:

  • a void



67
68
69
# File 'lib/models/app_log_collection_request.rb', line 67

def custom_log_folders=(value)
    @custom_log_folders = value
end

#error_messageObject

Gets the errorMessage property value. Indicates error message if any during the upload process.

Returns:

  • a string



74
75
76
# File 'lib/models/app_log_collection_request.rb', line 74

def error_message
    return @error_message
end

#error_message=(value) ⇒ Object

Sets the errorMessage property value. Indicates error message if any during the upload process.

Parameters:

  • value

    Value to set for the errorMessage property.

Returns:

  • a void



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

def error_message=(value)
    @error_message = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



89
90
91
92
93
94
95
96
# File 'lib/models/app_log_collection_request.rb', line 89

def get_field_deserializers()
    return super.merge({
        "completedDateTime" => lambda {|n| @completed_date_time = n.get_date_time_value() },
        "customLogFolders" => lambda {|n| @custom_log_folders = n.get_collection_of_primitive_values(String) },
        "errorMessage" => lambda {|n| @error_message = n.get_string_value() },
        "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::AppLogUploadState) },
    })
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


102
103
104
105
106
107
108
109
# File 'lib/models/app_log_collection_request.rb', line 102

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_date_time_value("completedDateTime", @completed_date_time)
    writer.write_collection_of_primitive_values("customLogFolders", @custom_log_folders)
    writer.write_string_value("errorMessage", @error_message)
    writer.write_enum_value("status", @status)
end

#statusObject

Gets the status property value. AppLogUploadStatus

Returns:

  • a app_log_upload_state



114
115
116
# File 'lib/models/app_log_collection_request.rb', line 114

def status
    return @status
end

#status=(value) ⇒ Object

Sets the status property value. AppLogUploadStatus

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



122
123
124
# File 'lib/models/app_log_collection_request.rb', line 122

def status=(value)
    @status = value
end