Class: MicrosoftGraph::Models::DelegatedAdminRelationship

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



95
96
97
# File 'lib/models/delegated_admin_relationship.rb', line 95

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

Raises:

  • (StandardError)


118
119
120
121
# File 'lib/models/delegated_admin_relationship.rb', line 118

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

Instance Method Details

#access_assignmentsObject

Gets the accessAssignments property value. The access assignments associated with the delegated admin relationship.

Returns:

  • a delegated_admin_access_assignment



50
51
52
# File 'lib/models/delegated_admin_relationship.rb', line 50

def access_assignments
    return @access_assignments
end

#access_assignments=(value) ⇒ Object

Sets the accessAssignments property value. The access assignments associated with the delegated admin relationship.

Parameters:

  • value

    Value to set for the accessAssignments property.

Returns:

  • a void



58
59
60
# File 'lib/models/delegated_admin_relationship.rb', line 58

def access_assignments=(value)
    @access_assignments = value
end

#access_detailsObject

Gets the accessDetails property value. The accessDetails property

Returns:

  • a delegated_admin_access_details



65
66
67
# File 'lib/models/delegated_admin_relationship.rb', line 65

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



73
74
75
# File 'lib/models/delegated_admin_relationship.rb', line 73

def access_details=(value)
    @access_details = value
end

#activated_date_timeObject

Gets the activatedDateTime property value. The date and time in ISO 8601 format and in UTC time when the relationship became active. Read-only.

Returns:

  • a date_time



80
81
82
# File 'lib/models/delegated_admin_relationship.rb', line 80

def activated_date_time
    return @activated_date_time
end

#activated_date_time=(value) ⇒ Object

Sets the activatedDateTime property value. The date and time in ISO 8601 format and in UTC time when the relationship became active. Read-only.

Parameters:

  • value

    Value to set for the activatedDateTime property.

Returns:

  • a void



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

def activated_date_time=(value)
    @activated_date_time = value
end

#created_date_timeObject

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

Returns:

  • a date_time



102
103
104
# File 'lib/models/delegated_admin_relationship.rb', line 102

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

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



110
111
112
# File 'lib/models/delegated_admin_relationship.rb', line 110

def created_date_time=(value)
    @created_date_time = value
end

#customerObject

Gets the customer property value. The display name and unique identifier of the customer of the relationship. This is configured either by the partner at the time the relationship is created or by the system after the customer approves the relationship. Cannot be changed by the customer.

Returns:

  • a delegated_admin_relationship_customer_participant



126
127
128
# File 'lib/models/delegated_admin_relationship.rb', line 126

def customer
    return @customer
end

#customer=(value) ⇒ Object

Sets the customer property value. The display name and unique identifier of the customer of the relationship. This is configured either by the partner at the time the relationship is created or by the system after the customer approves the relationship. Cannot be changed by the customer.

Parameters:

  • value

    Value to set for the customer property.

Returns:

  • a void



134
135
136
# File 'lib/models/delegated_admin_relationship.rb', line 134

def customer=(value)
    @customer = value
end

#display_nameObject

Gets the displayName property value. The display name of the relationship used for ease of identification. Must be unique across all delegated admin relationships of the partner. This is set by the partner only when the relationship is in the created status and cannot be changed by the customer.

Returns:

  • a string



141
142
143
# File 'lib/models/delegated_admin_relationship.rb', line 141

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The display name of the relationship used for ease of identification. Must be unique across all delegated admin relationships of the partner. This is set by the partner only when the relationship is in the created status and cannot be changed by the customer.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



149
150
151
# File 'lib/models/delegated_admin_relationship.rb', line 149

def display_name=(value)
    @display_name = value
end

#durationObject

Gets the duration property value. The duration of the relationship in ISO 8601 format. Must be a value between P1D and P2Y inclusive. This is set by the partner only when the relationship is in the created status and cannot be changed by the customer.

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



156
157
158
# File 'lib/models/delegated_admin_relationship.rb', line 156

def duration
    return @duration
end

#duration=(value) ⇒ Object

Sets the duration property value. The duration of the relationship in ISO 8601 format. Must be a value between P1D and P2Y inclusive. This is set by the partner only when the relationship is in the created status and cannot be changed by the customer.

Parameters:

  • value

    Value to set for the duration property.

Returns:

  • a void



164
165
166
# File 'lib/models/delegated_admin_relationship.rb', line 164

def duration=(value)
    @duration = value
end

#end_date_timeObject

Gets the endDateTime property value. The date and time in ISO 8601 format and in UTC time when the status of relationship changes to either terminated or expired. Calculated as endDateTime = activatedDateTime + duration. Read-only.

Returns:

  • a date_time



171
172
173
# File 'lib/models/delegated_admin_relationship.rb', line 171

def end_date_time
    return @end_date_time
end

#end_date_time=(value) ⇒ Object

Sets the endDateTime property value. The date and time in ISO 8601 format and in UTC time when the status of relationship changes to either terminated or expired. Calculated as endDateTime = activatedDateTime + duration. Read-only.

Parameters:

  • value

    Value to set for the endDateTime property.

Returns:

  • a void



179
180
181
# File 'lib/models/delegated_admin_relationship.rb', line 179

def end_date_time=(value)
    @end_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/models/delegated_admin_relationship.rb', line 186

def get_field_deserializers()
    return super.merge({
        "accessAssignments" => lambda {|n| @access_assignments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DelegatedAdminAccessAssignment.create_from_discriminator_value(pn) }) },
        "accessDetails" => lambda {|n| @access_details = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DelegatedAdminAccessDetails.create_from_discriminator_value(pn) }) },
        "activatedDateTime" => lambda {|n| @activated_date_time = n.get_date_time_value() },
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "customer" => lambda {|n| @customer = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DelegatedAdminRelationshipCustomerParticipant.create_from_discriminator_value(pn) }) },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "duration" => lambda {|n| @duration = n.get_duration_value() },
        "endDateTime" => lambda {|n| @end_date_time = n.get_date_time_value() },
        "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() },
        "operations" => lambda {|n| @operations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DelegatedAdminRelationshipOperation.create_from_discriminator_value(pn) }) },
        "requests" => lambda {|n| @requests = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DelegatedAdminRelationshipRequest.create_from_discriminator_value(pn) }) },
        "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::DelegatedAdminRelationshipStatus) },
    })
end

#last_modified_date_timeObject

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

Returns:

  • a date_time



206
207
208
# File 'lib/models/delegated_admin_relationship.rb', line 206

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 in UTC time when the relationship was last modified. Read-only.

Parameters:

  • value

    Value to set for the lastModifiedDateTime property.

Returns:

  • a void



214
215
216
# File 'lib/models/delegated_admin_relationship.rb', line 214

def last_modified_date_time=(value)
    @last_modified_date_time = value
end

#operationsObject

Gets the operations property value. The long running operations associated with the delegated admin relationship.

Returns:

  • a delegated_admin_relationship_operation



221
222
223
# File 'lib/models/delegated_admin_relationship.rb', line 221

def operations
    return @operations
end

#operations=(value) ⇒ Object

Sets the operations property value. The long running operations associated with the delegated admin relationship.

Parameters:

  • value

    Value to set for the operations property.

Returns:

  • a void



229
230
231
# File 'lib/models/delegated_admin_relationship.rb', line 229

def operations=(value)
    @operations = value
end

#requestsObject

Gets the requests property value. The requests associated with the delegated admin relationship.

Returns:

  • a delegated_admin_relationship_request



236
237
238
# File 'lib/models/delegated_admin_relationship.rb', line 236

def requests
    return @requests
end

#requests=(value) ⇒ Object

Sets the requests property value. The requests associated with the delegated admin relationship.

Parameters:

  • value

    Value to set for the requests property.

Returns:

  • a void



244
245
246
# File 'lib/models/delegated_admin_relationship.rb', line 244

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


252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# File 'lib/models/delegated_admin_relationship.rb', line 252

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("accessAssignments", @access_assignments)
    writer.write_object_value("accessDetails", @access_details)
    writer.write_date_time_value("activatedDateTime", @activated_date_time)
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_object_value("customer", @customer)
    writer.write_string_value("displayName", @display_name)
    writer.write_duration_value("duration", @duration)
    writer.write_date_time_value("endDateTime", @end_date_time)
    writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time)
    writer.write_collection_of_object_values("operations", @operations)
    writer.write_collection_of_object_values("requests", @requests)
    writer.write_enum_value("status", @status)
end

#statusObject

Gets the status property value. The status of the relationship. Read Only. The possible values are: activating, active, approvalPending, approved, created, expired, expiring, terminated, terminating, terminationRequested, unknownFutureValue. Supports $orderBy.

Returns:

  • a delegated_admin_relationship_status



272
273
274
# File 'lib/models/delegated_admin_relationship.rb', line 272

def status
    return @status
end

#status=(value) ⇒ Object

Sets the status property value. The status of the relationship. Read Only. The possible values are: activating, active, approvalPending, approved, created, expired, expiring, terminated, terminating, terminationRequested, unknownFutureValue. Supports $orderBy.

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



280
281
282
# File 'lib/models/delegated_admin_relationship.rb', line 280

def status=(value)
    @status = value
end