Class: MicrosoftGraph::Models::DelegatedAdminRelationship
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/delegated_admin_relationship.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
-
#access_assignments ⇒ Object
Gets the accessAssignments property value.
-
#access_assignments=(value) ⇒ Object
Sets the accessAssignments property value.
-
#access_details ⇒ Object
Gets the accessDetails property value.
-
#access_details=(value) ⇒ Object
Sets the accessDetails property value.
-
#activated_date_time ⇒ Object
Gets the activatedDateTime property value.
-
#activated_date_time=(value) ⇒ Object
Sets the activatedDateTime property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#customer ⇒ Object
Gets the customer property value.
-
#customer=(value) ⇒ Object
Sets the customer property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#duration ⇒ Object
Gets the duration property value.
-
#duration=(value) ⇒ Object
Sets the duration property value.
-
#end_date_time ⇒ Object
Gets the endDateTime property value.
-
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new delegatedAdminRelationship 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.
-
#operations ⇒ Object
Gets the operations property value.
-
#operations=(value) ⇒ Object
Sets the operations property value.
-
#requests ⇒ Object
Gets the requests property value.
-
#requests=(value) ⇒ Object
Sets the requests 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 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
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_assignments ⇒ Object
Gets the accessAssignments property value. The access assignments associated with the delegated admin relationship.
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.
58 59 60 |
# File 'lib/models/delegated_admin_relationship.rb', line 58 def access_assignments=(value) @access_assignments = value end |
#access_details ⇒ Object
Gets the accessDetails property value. The accessDetails property
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
73 74 75 |
# File 'lib/models/delegated_admin_relationship.rb', line 73 def access_details=(value) @access_details = value end |
#activated_date_time ⇒ Object
Gets the activatedDateTime property value. The date and time in ISO 8601 format and in UTC time when the relationship became active. Read-only.
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.
88 89 90 |
# File 'lib/models/delegated_admin_relationship.rb', line 88 def activated_date_time=(value) @activated_date_time = 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 was created. Read-only.
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.
110 111 112 |
# File 'lib/models/delegated_admin_relationship.rb', line 110 def created_date_time=(value) @created_date_time = value end |
#customer ⇒ Object
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.
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.
134 135 136 |
# File 'lib/models/delegated_admin_relationship.rb', line 134 def customer=(value) @customer = value end |
#display_name ⇒ Object
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.
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.
149 150 151 |
# File 'lib/models/delegated_admin_relationship.rb', line 149 def display_name=(value) @display_name = value end |
#duration ⇒ Object
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.
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.
164 165 166 |
# File 'lib/models/delegated_admin_relationship.rb', line 164 def duration=(value) @duration = value end |
#end_date_time ⇒ Object
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.
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.
179 180 181 |
# File 'lib/models/delegated_admin_relationship.rb', line 179 def end_date_time=(value) @end_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_time ⇒ Object
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.
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.
214 215 216 |
# File 'lib/models/delegated_admin_relationship.rb', line 214 def last_modified_date_time=(value) @last_modified_date_time = value end |
#operations ⇒ Object
Gets the operations property value. The long running operations associated with the delegated admin relationship.
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.
229 230 231 |
# File 'lib/models/delegated_admin_relationship.rb', line 229 def operations=(value) @operations = value end |
#requests ⇒ Object
Gets the requests property value. The requests associated with the delegated admin relationship.
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.
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
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 |
#status ⇒ Object
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.
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.
280 281 282 |
# File 'lib/models/delegated_admin_relationship.rb', line 280 def status=(value) @status = value end |