Class: MicrosoftGraph::Models::DelegatedAdminRelationshipRequest
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/delegated_admin_relationship_request.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
-
#action ⇒ Object
Gets the action property value.
-
#action=(value) ⇒ Object
Sets the action property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new delegatedAdminRelationshipRequest 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.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new delegatedAdminRelationshipRequest and sets the default values.
41 42 43 |
# File 'lib/models/delegated_admin_relationship_request.rb', line 41 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
64 65 66 67 |
# File 'lib/models/delegated_admin_relationship_request.rb', line 64 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return DelegatedAdminRelationshipRequest.new end |
Instance Method Details
#action ⇒ Object
Gets the action property value. The action property
26 27 28 |
# File 'lib/models/delegated_admin_relationship_request.rb', line 26 def action return @action end |
#action=(value) ⇒ Object
Sets the action property value. The action property
34 35 36 |
# File 'lib/models/delegated_admin_relationship_request.rb', line 34 def action=(value) @action = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. The date and time in ISO 8601 format and in UTC time when the relationship request was created. Read-only.
48 49 50 |
# File 'lib/models/delegated_admin_relationship_request.rb', line 48 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The date and time in ISO 8601 format and in UTC time when the relationship request was created. Read-only.
56 57 58 |
# File 'lib/models/delegated_admin_relationship_request.rb', line 56 def created_date_time=(value) @created_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
72 73 74 75 76 77 78 79 |
# File 'lib/models/delegated_admin_relationship_request.rb', line 72 def get_field_deserializers() return super.merge({ "action" => lambda {|n| @action = n.get_enum_value(MicrosoftGraph::Models::DelegatedAdminRelationshipRequestAction) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::DelegatedAdminRelationshipRequestStatus) }, }) end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. The date and time in ISO 8601 format and UTC time when this relationship request was last modified. Read-only.
84 85 86 |
# File 'lib/models/delegated_admin_relationship_request.rb', line 84 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. The date and time in ISO 8601 format and UTC time when this relationship request was last modified. Read-only.
92 93 94 |
# File 'lib/models/delegated_admin_relationship_request.rb', line 92 def last_modified_date_time=(value) @last_modified_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
100 101 102 103 104 105 106 107 |
# File 'lib/models/delegated_admin_relationship_request.rb', line 100 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_enum_value("action", @action) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_enum_value("status", @status) end |
#status ⇒ Object
Gets the status property value. The status of the request. Read-only. The possible values are: created, pending, succeeded, failed, unknownFutureValue.
112 113 114 |
# File 'lib/models/delegated_admin_relationship_request.rb', line 112 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. The status of the request. Read-only. The possible values are: created, pending, succeeded, failed, unknownFutureValue.
120 121 122 |
# File 'lib/models/delegated_admin_relationship_request.rb', line 120 def status=(value) @status = value end |