Class: MicrosoftGraph::Models::DataPolicyOperation

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

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 dataPolicyOperation and sets the default values.



47
48
49
# File 'lib/models/data_policy_operation.rb', line 47

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 data_policy_operation

Raises:

  • (StandardError)


55
56
57
58
# File 'lib/models/data_policy_operation.rb', line 55

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

Instance Method Details

#completed_date_timeObject

Gets the completedDateTime property value. Represents when the request for this data policy operation was completed, in UTC time, using the ISO 8601 format. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Null until the operation completes.

Returns:

  • a date_time



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

def completed_date_time
    return @completed_date_time
end

#completed_date_time=(value) ⇒ Object

Sets the completedDateTime property value. Represents when the request for this data policy operation was completed, in UTC time, using the ISO 8601 format. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Null until the operation completes.

Parameters:

  • value

    Value to set for the completedDateTime property.

Returns:

  • a void



40
41
42
# File 'lib/models/data_policy_operation.rb', line 40

def completed_date_time=(value)
    @completed_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



63
64
65
66
67
68
69
70
71
72
# File 'lib/models/data_policy_operation.rb', line 63

def get_field_deserializers()
    return super.merge({
        "completedDateTime" => lambda {|n| @completed_date_time = n.get_date_time_value() },
        "progress" => lambda {|n| @progress = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
        "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::DataPolicyOperationStatus) },
        "storageLocation" => lambda {|n| @storage_location = n.get_string_value() },
        "submittedDateTime" => lambda {|n| @submitted_date_time = n.get_date_time_value() },
        "userId" => lambda {|n| @user_id = n.get_string_value() },
    })
end

#progressObject

Gets the progress property value. Specifies the progress of an operation.

Returns:

  • a double



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

def progress
    return @progress
end

#progress=(value) ⇒ Object

Sets the progress property value. Specifies the progress of an operation.

Parameters:

  • value

    Value to set for the progress property.

Returns:

  • a void



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

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


93
94
95
96
97
98
99
100
101
102
# File 'lib/models/data_policy_operation.rb', line 93

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_date_time_value("completedDateTime", @completed_date_time)
    writer.write_object_value("progress", @progress)
    writer.write_enum_value("status", @status)
    writer.write_string_value("storageLocation", @storage_location)
    writer.write_date_time_value("submittedDateTime", @submitted_date_time)
    writer.write_string_value("userId", @user_id)
end

#statusObject

Gets the status property value. Possible values are: notStarted, running, complete, failed, unknownFutureValue.

Returns:

  • a data_policy_operation_status



107
108
109
# File 'lib/models/data_policy_operation.rb', line 107

def status
    return @status
end

#status=(value) ⇒ Object

Sets the status property value. Possible values are: notStarted, running, complete, failed, unknownFutureValue.

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



115
116
117
# File 'lib/models/data_policy_operation.rb', line 115

def status=(value)
    @status = value
end

#storage_locationObject

Gets the storageLocation property value. The URL location to where data is being exported for export requests.

Returns:

  • a string



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

def storage_location
    return @storage_location
end

#storage_location=(value) ⇒ Object

Sets the storageLocation property value. The URL location to where data is being exported for export requests.

Parameters:

  • value

    Value to set for the storageLocation property.

Returns:

  • a void



130
131
132
# File 'lib/models/data_policy_operation.rb', line 130

def storage_location=(value)
    @storage_location = value
end

#submitted_date_timeObject

Gets the submittedDateTime property value. Represents when the request for this data operation was submitted, in UTC time, using the ISO 8601 format. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z

Returns:

  • a date_time



137
138
139
# File 'lib/models/data_policy_operation.rb', line 137

def 
    return @submitted_date_time
end

#submitted_date_time=(value) ⇒ Object

Sets the submittedDateTime property value. Represents when the request for this data operation was submitted, in UTC time, using the ISO 8601 format. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z

Parameters:

  • value

    Value to set for the submittedDateTime property.

Returns:

  • a void



145
146
147
# File 'lib/models/data_policy_operation.rb', line 145

def (value)
    @submitted_date_time = value
end

#user_idObject

Gets the userId property value. The id for the user on whom the operation is performed.

Returns:

  • a string



152
153
154
# File 'lib/models/data_policy_operation.rb', line 152

def user_id
    return @user_id
end

#user_id=(value) ⇒ Object

Sets the userId property value. The id for the user on whom the operation is performed.

Parameters:

  • value

    Value to set for the userId property.

Returns:

  • a void



160
161
162
# File 'lib/models/data_policy_operation.rb', line 160

def user_id=(value)
    @user_id = value
end