Class: MicrosoftGraph::Models::AccessPackageAssignment

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/access_package_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 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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a access_package_assignment

Raises:

  • (StandardError)


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_packageObject

Gets the accessPackage property value. Read-only. Nullable. Supports $filter (eq) on the id property and $expand query parameters.

Returns:

  • a access_package



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.

Parameters:

  • value

    Value to set for the accessPackage property.

Returns:

  • a void



46
47
48
# File 'lib/models/access_package_assignment.rb', line 46

def access_package=(value)
    @access_package = value
end

#assignment_policyObject

Gets the assignmentPolicy property value. Read-only. Supports $filter (eq) on the id property and $expand query parameters.

Returns:

  • a access_package_assignment_policy



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.

Parameters:

  • value

    Value to set for the assignmentPolicy property.

Returns:

  • a void



61
62
63
# File 'lib/models/access_package_assignment.rb', line 61

def assignment_policy=(value)
    @assignment_policy = value
end

#custom_extension_callout_instancesObject

Gets the customExtensionCalloutInstances property value. Information about all the custom extension calls that were made during the access package assignment workflow.

Returns:

  • a custom_extension_callout_instance



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.

Parameters:

  • value

    Value to set for the customExtensionCalloutInstances property.

Returns:

  • a void



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_timeObject

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.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the expiredDateTime property.

Returns:

  • a void



107
108
109
# File 'lib/models/access_package_assignment.rb', line 107

def expired_date_time=(value)
    @expired_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#scheduleObject

Gets the schedule property value. When the access assignment is to be in place. Read-only.

Returns:

  • a entitlement_management_schedule



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.

Parameters:

  • value

    Value to set for the schedule property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#stateObject

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).

Returns:

  • a access_package_assignment_state



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).

Parameters:

  • value

    Value to set for the state property.

Returns:

  • a void



170
171
172
# File 'lib/models/access_package_assignment.rb', line 170

def state=(value)
    @state = value
end

#statusObject

Gets the status property value. More information about the assignment lifecycle. Possible values include Delivering, Delivered, NearExpiry1DayNotificationTriggered, or ExpiredNotificationTriggered. Read-only.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



185
186
187
# File 'lib/models/access_package_assignment.rb', line 185

def status=(value)
    @status = value
end

#targetObject

Gets the target property value. The subject of the access package assignment. Read-only. Nullable. Supports $expand. Supports $filter (eq) on objectId.

Returns:

  • a access_package_subject



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.

Parameters:

  • value

    Value to set for the target property.

Returns:

  • a void



200
201
202
# File 'lib/models/access_package_assignment.rb', line 200

def target=(value)
    @target = value
end