Class: MicrosoftGraph::Models::DataPolicyOperation
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/data_policy_operation.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
-
#completed_date_time ⇒ Object
Gets the completedDateTime property value.
-
#completed_date_time=(value) ⇒ Object
Sets the completedDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new dataPolicyOperation and sets the default values.
-
#progress ⇒ Object
Gets the progress property value.
-
#progress=(value) ⇒ Object
Sets the progress property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
-
#storage_location ⇒ Object
Gets the storageLocation property value.
-
#storage_location=(value) ⇒ Object
Sets the storageLocation property value.
-
#submitted_date_time ⇒ Object
Gets the submittedDateTime property value.
-
#submitted_date_time=(value) ⇒ Object
Sets the submittedDateTime property value.
-
#user_id ⇒ Object
Gets the userId property value.
-
#user_id=(value) ⇒ Object
Sets the userId property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_time ⇒ Object
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.
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.
40 41 42 |
# File 'lib/models/data_policy_operation.rb', line 40 def completed_date_time=(value) @completed_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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 |
#progress ⇒ Object
Gets the progress property value. Specifies the progress of an operation.
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.
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
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 |
#status ⇒ Object
Gets the status property value. Possible values are: notStarted, running, complete, failed, unknownFutureValue.
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.
115 116 117 |
# File 'lib/models/data_policy_operation.rb', line 115 def status=(value) @status = value end |
#storage_location ⇒ Object
Gets the storageLocation property value. The URL location to where data is being exported for export requests.
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.
130 131 132 |
# File 'lib/models/data_policy_operation.rb', line 130 def storage_location=(value) @storage_location = value end |
#submitted_date_time ⇒ Object
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
137 138 139 |
# File 'lib/models/data_policy_operation.rb', line 137 def submitted_date_time 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
145 146 147 |
# File 'lib/models/data_policy_operation.rb', line 145 def submitted_date_time=(value) @submitted_date_time = value end |
#user_id ⇒ Object
Gets the userId property value. The id for the user on whom the operation is performed.
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.
160 161 162 |
# File 'lib/models/data_policy_operation.rb', line 160 def user_id=(value) @user_id = value end |