Class: MicrosoftGraph::Models::AccessPackageAssignment
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/access_package_assignment.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_package ⇒ Object
Gets the accessPackage property value.
-
#access_package=(value) ⇒ Object
Sets the accessPackage property value.
-
#assignment_policy ⇒ Object
Gets the assignmentPolicy property value.
-
#assignment_policy=(value) ⇒ Object
Sets the assignmentPolicy property value.
-
#custom_extension_callout_instances ⇒ Object
Gets the customExtensionCalloutInstances property value.
-
#custom_extension_callout_instances=(value) ⇒ Object
Sets the customExtensionCalloutInstances property value.
-
#expired_date_time ⇒ Object
Gets the expiredDateTime property value.
-
#expired_date_time=(value) ⇒ Object
Sets the expiredDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new accessPackageAssignment and sets the default values.
-
#schedule ⇒ Object
Gets the schedule property value.
-
#schedule=(value) ⇒ Object
Sets the schedule property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#state ⇒ Object
Gets the state property value.
-
#state=(value) ⇒ Object
Sets the state property value.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
-
#target ⇒ Object
Gets the target property value.
-
#target=(value) ⇒ Object
Sets the target property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new accessPackageAssignment and sets the default values.
68 69 70 |
# File 'lib/models/access_package_assignment.rb', line 68 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
76 77 78 79 |
# File 'lib/models/access_package_assignment.rb', line 76 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AccessPackageAssignment.new end |
Instance Method Details
#access_package ⇒ Object
Gets the accessPackage property value. Read-only. Nullable. Supports $filter (eq) on the id property and $expand query parameters.
38 39 40 |
# File 'lib/models/access_package_assignment.rb', line 38 def access_package return @access_package end |
#access_package=(value) ⇒ Object
Sets the accessPackage property value. Read-only. Nullable. Supports $filter (eq) on the id property and $expand query parameters.
46 47 48 |
# File 'lib/models/access_package_assignment.rb', line 46 def access_package=(value) @access_package = value end |
#assignment_policy ⇒ Object
Gets the assignmentPolicy property value. Read-only. Supports $filter (eq) on the id property and $expand query parameters.
53 54 55 |
# File 'lib/models/access_package_assignment.rb', line 53 def assignment_policy return @assignment_policy end |
#assignment_policy=(value) ⇒ Object
Sets the assignmentPolicy property value. Read-only. Supports $filter (eq) on the id property and $expand query parameters.
61 62 63 |
# File 'lib/models/access_package_assignment.rb', line 61 def assignment_policy=(value) @assignment_policy = value end |
#custom_extension_callout_instances ⇒ Object
Gets the customExtensionCalloutInstances property value. Information about all the custom extension calls that were made during the access package assignment workflow.
84 85 86 |
# File 'lib/models/access_package_assignment.rb', line 84 def custom_extension_callout_instances return @custom_extension_callout_instances end |
#custom_extension_callout_instances=(value) ⇒ Object
Sets the customExtensionCalloutInstances property value. Information about all the custom extension calls that were made during the access package assignment workflow.
92 93 94 |
# File 'lib/models/access_package_assignment.rb', line 92 def custom_extension_callout_instances=(value) @custom_extension_callout_instances = value end |
#expired_date_time ⇒ Object
Gets the expiredDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
99 100 101 |
# File 'lib/models/access_package_assignment.rb', line 99 def expired_date_time return @expired_date_time end |
#expired_date_time=(value) ⇒ Object
Sets the expiredDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
107 108 109 |
# File 'lib/models/access_package_assignment.rb', line 107 def expired_date_time=(value) @expired_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/models/access_package_assignment.rb', line 114 def get_field_deserializers() return super.merge({ "accessPackage" => lambda {|n| @access_package = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }) }, "assignmentPolicy" => lambda {|n| @assignment_policy = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentPolicy.create_from_discriminator_value(pn) }) }, "customExtensionCalloutInstances" => lambda {|n| @custom_extension_callout_instances = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CustomExtensionCalloutInstance.create_from_discriminator_value(pn) }) }, "expiredDateTime" => lambda {|n| @expired_date_time = n.get_date_time_value() }, "schedule" => lambda {|n| @schedule = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::EntitlementManagementSchedule.create_from_discriminator_value(pn) }) }, "state" => lambda {|n| @state = n.get_enum_value(MicrosoftGraph::Models::AccessPackageAssignmentState) }, "status" => lambda {|n| @status = n.get_string_value() }, "target" => lambda {|n| @target = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AccessPackageSubject.create_from_discriminator_value(pn) }) }, }) end |
#schedule ⇒ Object
Gets the schedule property value. When the access assignment is to be in place. Read-only.
130 131 132 |
# File 'lib/models/access_package_assignment.rb', line 130 def schedule return @schedule end |
#schedule=(value) ⇒ Object
Sets the schedule property value. When the access assignment is to be in place. Read-only.
138 139 140 |
# File 'lib/models/access_package_assignment.rb', line 138 def schedule=(value) @schedule = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/models/access_package_assignment.rb', line 146 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("accessPackage", @access_package) writer.write_object_value("assignmentPolicy", @assignment_policy) writer.write_collection_of_object_values("customExtensionCalloutInstances", @custom_extension_callout_instances) writer.write_date_time_value("expiredDateTime", @expired_date_time) writer.write_object_value("schedule", @schedule) writer.write_enum_value("state", @state) writer.write_string_value("status", @status) writer.write_object_value("target", @target) end |
#state ⇒ Object
Gets the state property value. The state of the access package assignment. The possible values are: delivering, partiallyDelivered, delivered, expired, deliveryFailed, unknownFutureValue. Read-only. Supports $filter (eq).
162 163 164 |
# File 'lib/models/access_package_assignment.rb', line 162 def state return @state end |
#state=(value) ⇒ Object
Sets the state property value. The state of the access package assignment. The possible values are: delivering, partiallyDelivered, delivered, expired, deliveryFailed, unknownFutureValue. Read-only. Supports $filter (eq).
170 171 172 |
# File 'lib/models/access_package_assignment.rb', line 170 def state=(value) @state = value end |
#status ⇒ Object
Gets the status property value. More information about the assignment lifecycle. Possible values include Delivering, Delivered, NearExpiry1DayNotificationTriggered, or ExpiredNotificationTriggered. Read-only.
177 178 179 |
# File 'lib/models/access_package_assignment.rb', line 177 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. More information about the assignment lifecycle. Possible values include Delivering, Delivered, NearExpiry1DayNotificationTriggered, or ExpiredNotificationTriggered. Read-only.
185 186 187 |
# File 'lib/models/access_package_assignment.rb', line 185 def status=(value) @status = value end |
#target ⇒ Object
Gets the target property value. The subject of the access package assignment. Read-only. Nullable. Supports $expand. Supports $filter (eq) on objectId.
192 193 194 |
# File 'lib/models/access_package_assignment.rb', line 192 def target return @target end |
#target=(value) ⇒ Object
Sets the target property value. The subject of the access package assignment. Read-only. Nullable. Supports $expand. Supports $filter (eq) on objectId.
200 201 202 |
# File 'lib/models/access_package_assignment.rb', line 200 def target=(value) @target = value end |