Class: MicrosoftGraph::Models::ManagedAppOperation
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/managed_app_operation.rb
Overview
Represents an operation applied against an app registration.
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
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new managedAppOperation and sets the default values.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#state ⇒ Object
Gets the state property value.
-
#state=(value) ⇒ Object
Sets the state property value.
-
#version ⇒ Object
Gets the version property value.
-
#version=(value) ⇒ Object
Sets the version property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new managedAppOperation and sets the default values.
28 29 30 |
# File 'lib/models/managed_app_operation.rb', line 28 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
36 37 38 39 |
# File 'lib/models/managed_app_operation.rb', line 36 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ManagedAppOperation.new end |
Instance Method Details
#display_name ⇒ Object
Gets the displayName property value. The operation name.
44 45 46 |
# File 'lib/models/managed_app_operation.rb', line 44 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The operation name.
52 53 54 |
# File 'lib/models/managed_app_operation.rb', line 52 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
59 60 61 62 63 64 65 66 |
# File 'lib/models/managed_app_operation.rb', line 59 def get_field_deserializers() return super.merge({ "displayName" => lambda {|n| @display_name = n.get_string_value() }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, "state" => lambda {|n| @state = n.get_string_value() }, "version" => lambda {|n| @version = n.get_string_value() }, }) end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. The last time the app operation was modified.
71 72 73 |
# File 'lib/models/managed_app_operation.rb', line 71 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. The last time the app operation was modified.
79 80 81 |
# File 'lib/models/managed_app_operation.rb', line 79 def last_modified_date_time=(value) @last_modified_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
87 88 89 90 91 92 93 94 |
# File 'lib/models/managed_app_operation.rb', line 87 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("displayName", @display_name) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_string_value("state", @state) writer.write_string_value("version", @version) end |
#state ⇒ Object
Gets the state property value. The current state of the operation
99 100 101 |
# File 'lib/models/managed_app_operation.rb', line 99 def state return @state end |
#state=(value) ⇒ Object
Sets the state property value. The current state of the operation
107 108 109 |
# File 'lib/models/managed_app_operation.rb', line 107 def state=(value) @state = value end |
#version ⇒ Object
Gets the version property value. Version of the entity.
114 115 116 |
# File 'lib/models/managed_app_operation.rb', line 114 def version return @version end |
#version=(value) ⇒ Object
Sets the version property value. Version of the entity.
122 123 124 |
# File 'lib/models/managed_app_operation.rb', line 122 def version=(value) @version = value end |