Class: MicrosoftGraph::Models::DelegatedAdminAccessAssignment

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



59
60
61
# File 'lib/models/delegated_admin_access_assignment.rb', line 59

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_access_assignment

Raises:

  • (StandardError)


82
83
84
85
# File 'lib/models/delegated_admin_access_assignment.rb', line 82

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

Instance Method Details

#access_containerObject

Gets the accessContainer property value. The accessContainer property

Returns:

  • a delegated_admin_access_container



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

def access_container
    return @access_container
end

#access_container=(value) ⇒ Object

Sets the accessContainer property value. The accessContainer property

Parameters:

  • value

    Value to set for the accessContainer property.

Returns:

  • a void



37
38
39
# File 'lib/models/delegated_admin_access_assignment.rb', line 37

def access_container=(value)
    @access_container = value
end

#access_detailsObject

Gets the accessDetails property value. The accessDetails property

Returns:

  • a delegated_admin_access_details



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

def access_details
    return @access_details
end

#access_details=(value) ⇒ Object

Sets the accessDetails property value. The accessDetails property

Parameters:

  • value

    Value to set for the accessDetails property.

Returns:

  • a void



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

def access_details=(value)
    @access_details = value
end

#created_date_timeObject

Gets the createdDateTime property value. The date and time in ISO 8601 format and in UTC time when the access assignment was created. Read-only.

Returns:

  • a date_time



66
67
68
# File 'lib/models/delegated_admin_access_assignment.rb', line 66

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 access assignment was created. Read-only.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



74
75
76
# File 'lib/models/delegated_admin_access_assignment.rb', line 74

def created_date_time=(value)
    @created_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



90
91
92
93
94
95
96
97
98
# File 'lib/models/delegated_admin_access_assignment.rb', line 90

def get_field_deserializers()
    return super.merge({
        "accessContainer" => lambda {|n| @access_container = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DelegatedAdminAccessContainer.create_from_discriminator_value(pn) }) },
        "accessDetails" => lambda {|n| @access_details = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DelegatedAdminAccessDetails.create_from_discriminator_value(pn) }) },
        "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::DelegatedAdminAccessAssignmentStatus) },
    })
end

#last_modified_date_timeObject

Gets the lastModifiedDateTime property value. The date and time in ISO 8601 and in UTC time when this access assignment was last modified. Read-only.

Returns:

  • a date_time



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

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 and in UTC time when this access assignment was last modified. Read-only.

Parameters:

  • value

    Value to set for the lastModifiedDateTime property.

Returns:

  • a void



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

def last_modified_date_time=(value)
    @last_modified_date_time = 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_access_assignment.rb', line 119

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("accessContainer", @access_container)
    writer.write_object_value("accessDetails", @access_details)
    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

#statusObject

Gets the status property value. The status of the access assignment. Read-only. The possible values are: pending, active, deleting, deleted, error, unknownFutureValue.

Returns:

  • a delegated_admin_access_assignment_status



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

def status
    return @status
end

#status=(value) ⇒ Object

Sets the status property value. The status of the access assignment. Read-only. The possible values are: pending, active, deleting, deleted, error, unknownFutureValue.

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



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

def status=(value)
    @status = value
end