Class: MicrosoftGraph::Models::TeamsAsyncOperation
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/teams_async_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
-
#attempts_count ⇒ Object
Gets the attemptsCount property value.
-
#attempts_count=(value) ⇒ Object
Sets the attemptsCount property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#error ⇒ Object
Gets the error property value.
-
#error=(value) ⇒ Object
Sets the error property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new teamsAsyncOperation and sets the default values.
-
#last_action_date_time ⇒ Object
Gets the lastActionDateTime property value.
-
#last_action_date_time=(value) ⇒ Object
Sets the lastActionDateTime property value.
-
#operation_type ⇒ Object
Gets the operationType property value.
-
#operation_type=(value) ⇒ Object
Sets the operationType 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.
-
#target_resource_id ⇒ Object
Gets the targetResourceId property value.
-
#target_resource_id=(value) ⇒ Object
Sets the targetResourceId property value.
-
#target_resource_location ⇒ Object
Gets the targetResourceLocation property value.
-
#target_resource_location=(value) ⇒ Object
Sets the targetResourceLocation property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new teamsAsyncOperation and sets the default values.
53 54 55 |
# File 'lib/models/teams_async_operation.rb', line 53 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
76 77 78 79 |
# File 'lib/models/teams_async_operation.rb', line 76 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return TeamsAsyncOperation.new end |
Instance Method Details
#attempts_count ⇒ Object
Gets the attemptsCount property value. Number of times the operation was attempted before being marked successful or failed.
38 39 40 |
# File 'lib/models/teams_async_operation.rb', line 38 def attempts_count return @attempts_count end |
#attempts_count=(value) ⇒ Object
Sets the attemptsCount property value. Number of times the operation was attempted before being marked successful or failed.
46 47 48 |
# File 'lib/models/teams_async_operation.rb', line 46 def attempts_count=(value) @attempts_count = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. Time when the operation was created.
60 61 62 |
# File 'lib/models/teams_async_operation.rb', line 60 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. Time when the operation was created.
68 69 70 |
# File 'lib/models/teams_async_operation.rb', line 68 def created_date_time=(value) @created_date_time = value end |
#error ⇒ Object
Gets the error property value. Any error that causes the async operation to fail.
84 85 86 |
# File 'lib/models/teams_async_operation.rb', line 84 def error return @error end |
#error=(value) ⇒ Object
Sets the error property value. Any error that causes the async operation to fail.
92 93 94 |
# File 'lib/models/teams_async_operation.rb', line 92 def error=(value) @error = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/models/teams_async_operation.rb', line 99 def get_field_deserializers() return super.merge({ "attemptsCount" => lambda {|n| @attempts_count = n.get_number_value() }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "error" => lambda {|n| @error = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::OperationError.create_from_discriminator_value(pn) }) }, "lastActionDateTime" => lambda {|n| @last_action_date_time = n.get_date_time_value() }, "operationType" => lambda {|n| @operation_type = n.get_enum_value(MicrosoftGraph::Models::TeamsAsyncOperationType) }, "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::TeamsAsyncOperationStatus) }, "targetResourceId" => lambda {|n| @target_resource_id = n.get_string_value() }, "targetResourceLocation" => lambda {|n| @target_resource_location = n.get_string_value() }, }) end |
#last_action_date_time ⇒ Object
Gets the lastActionDateTime property value. Time when the async operation was last updated.
115 116 117 |
# File 'lib/models/teams_async_operation.rb', line 115 def last_action_date_time return @last_action_date_time end |
#last_action_date_time=(value) ⇒ Object
Sets the lastActionDateTime property value. Time when the async operation was last updated.
123 124 125 |
# File 'lib/models/teams_async_operation.rb', line 123 def last_action_date_time=(value) @last_action_date_time = value end |
#operation_type ⇒ Object
Gets the operationType property value. The operationType property
130 131 132 |
# File 'lib/models/teams_async_operation.rb', line 130 def operation_type return @operation_type end |
#operation_type=(value) ⇒ Object
Sets the operationType property value. The operationType property
138 139 140 |
# File 'lib/models/teams_async_operation.rb', line 138 def operation_type=(value) @operation_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/models/teams_async_operation.rb', line 146 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_number_value("attemptsCount", @attempts_count) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_object_value("error", @error) writer.write_date_time_value("lastActionDateTime", @last_action_date_time) writer.write_enum_value("operationType", @operation_type) writer.write_enum_value("status", @status) writer.write_string_value("targetResourceId", @target_resource_id) writer.write_string_value("targetResourceLocation", @target_resource_location) end |
#status ⇒ Object
Gets the status property value. The status property
162 163 164 |
# File 'lib/models/teams_async_operation.rb', line 162 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. The status property
170 171 172 |
# File 'lib/models/teams_async_operation.rb', line 170 def status=(value) @status = value end |
#target_resource_id ⇒ Object
Gets the targetResourceId property value. The ID of the object that’s created or modified as result of this async operation, typically a team.
177 178 179 |
# File 'lib/models/teams_async_operation.rb', line 177 def target_resource_id return @target_resource_id end |
#target_resource_id=(value) ⇒ Object
Sets the targetResourceId property value. The ID of the object that’s created or modified as result of this async operation, typically a team.
185 186 187 |
# File 'lib/models/teams_async_operation.rb', line 185 def target_resource_id=(value) @target_resource_id = value end |
#target_resource_location ⇒ Object
Gets the targetResourceLocation property value. The location of the object that’s created or modified as result of this async operation. This URL should be treated as an opaque value and not parsed into its component paths.
192 193 194 |
# File 'lib/models/teams_async_operation.rb', line 192 def target_resource_location return @target_resource_location end |
#target_resource_location=(value) ⇒ Object
Sets the targetResourceLocation property value. The location of the object that’s created or modified as result of this async operation. This URL should be treated as an opaque value and not parsed into its component paths.
200 201 202 |
# File 'lib/models/teams_async_operation.rb', line 200 def target_resource_location=(value) @target_resource_location = value end |