Class: MicrosoftGraph::Models::DelegatedAdminRelationshipOperation

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/delegated_admin_relationship_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 delegatedAdminRelationshipOperation and sets the default values.



29
30
31
# File 'lib/models/delegated_admin_relationship_operation.rb', line 29

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 delegated_admin_relationship_operation

Raises:

  • (StandardError)


52
53
54
55
# File 'lib/models/delegated_admin_relationship_operation.rb', line 52

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

Instance Method Details

#created_date_timeObject

Gets the createdDateTime property value. The time in ISO 8601 format and in UTC time when the long-running operation was created. Read-only.

Returns:

  • a date_time



36
37
38
# File 'lib/models/delegated_admin_relationship_operation.rb', line 36

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime property value. The time in ISO 8601 format and in UTC time when the long-running operation was created. Read-only.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



44
45
46
# File 'lib/models/delegated_admin_relationship_operation.rb', line 44

def created_date_time=(value)
    @created_date_time = value
end

#dataObject

Gets the data property value. The data (payload) for the operation. Read-only.

Returns:

  • a string



60
61
62
# File 'lib/models/delegated_admin_relationship_operation.rb', line 60

def data
    return @data
end

#data=(value) ⇒ Object

Sets the data property value. The data (payload) for the operation. Read-only.

Parameters:

  • value

    Value to set for the data property.

Returns:

  • a void



68
69
70
# File 'lib/models/delegated_admin_relationship_operation.rb', line 68

def data=(value)
    @data = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



75
76
77
78
79
80
81
82
83
# File 'lib/models/delegated_admin_relationship_operation.rb', line 75

def get_field_deserializers()
    return super.merge({
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "data" => lambda {|n| @data = n.get_string_value() },
        "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() },
        "operationType" => lambda {|n| @operation_type = n.get_enum_value(MicrosoftGraph::Models::DelegatedAdminRelationshipOperationType) },
        "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::LongRunningOperationStatus) },
    })
end

#last_modified_date_timeObject

Gets the lastModifiedDateTime property value. The time in ISO 8601 format and in UTC time when the long-running operation was last modified. Read-only.

Returns:

  • a date_time



88
89
90
# File 'lib/models/delegated_admin_relationship_operation.rb', line 88

def last_modified_date_time
    return @last_modified_date_time
end

#last_modified_date_time=(value) ⇒ Object

Sets the lastModifiedDateTime property value. The time in ISO 8601 format and in UTC time when the long-running operation was last modified. Read-only.

Parameters:

  • value

    Value to set for the lastModifiedDateTime property.

Returns:

  • a void



96
97
98
# File 'lib/models/delegated_admin_relationship_operation.rb', line 96

def last_modified_date_time=(value)
    @last_modified_date_time = value
end

#operation_typeObject

Gets the operationType property value. The operationType property

Returns:

  • a delegated_admin_relationship_operation_type



103
104
105
# File 'lib/models/delegated_admin_relationship_operation.rb', line 103

def operation_type
    return @operation_type
end

#operation_type=(value) ⇒ Object

Sets the operationType property value. The operationType property

Parameters:

  • value

    Value to set for the operationType property.

Returns:

  • a void



111
112
113
# File 'lib/models/delegated_admin_relationship_operation.rb', line 111

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


119
120
121
122
123
124
125
126
127
# File 'lib/models/delegated_admin_relationship_operation.rb', line 119

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_string_value("data", @data)
    writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time)
    writer.write_enum_value("operationType", @operation_type)
    writer.write_enum_value("status", @status)
end

#statusObject

Gets the status property value. The status property

Returns:

  • a long_running_operation_status



132
133
134
# File 'lib/models/delegated_admin_relationship_operation.rb', line 132

def status
    return @status
end

#status=(value) ⇒ Object

Sets the status property value. The status property

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



140
141
142
# File 'lib/models/delegated_admin_relationship_operation.rb', line 140

def status=(value)
    @status = value
end