Class: MicrosoftGraph::Models::AccessPackage

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



89
90
91
# File 'lib/models/access_package.rb', line 89

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

Raises:

  • (StandardError)


112
113
114
115
# File 'lib/models/access_package.rb', line 112

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

Instance Method Details

#access_packages_incompatible_withObject

Gets the accessPackagesIncompatibleWith property value. The access packages that are incompatible with this package. Read-only.

Returns:

  • a access_package



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

def access_packages_incompatible_with
    return @access_packages_incompatible_with
end

#access_packages_incompatible_with=(value) ⇒ Object

Sets the accessPackagesIncompatibleWith property value. The access packages that are incompatible with this package. Read-only.

Parameters:

  • value

    Value to set for the access_packages_incompatible_with property.

Returns:

  • a void



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

def access_packages_incompatible_with=(value)
    @access_packages_incompatible_with = value
end

#assignment_policiesObject

Gets the assignmentPolicies property value. The assignmentPolicies property

Returns:

  • a access_package_assignment_policy



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

def assignment_policies
    return @assignment_policies
end

#assignment_policies=(value) ⇒ Object

Sets the assignmentPolicies property value. The assignmentPolicies property

Parameters:

  • value

    Value to set for the assignment_policies property.

Returns:

  • a void



67
68
69
# File 'lib/models/access_package.rb', line 67

def assignment_policies=(value)
    @assignment_policies = value
end

#catalogObject

Gets the catalog property value. The catalog property

Returns:

  • a access_package_catalog



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

def catalog
    return @catalog
end

#catalog=(value) ⇒ Object

Sets the catalog property value. The catalog property

Parameters:

  • value

    Value to set for the catalog property.

Returns:

  • a void



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

def catalog=(value)
    @catalog = value
end

#created_date_timeObject

Gets the createdDateTime 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



96
97
98
# File 'lib/models/access_package.rb', line 96

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime 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 created_date_time property.

Returns:

  • a void



104
105
106
# File 'lib/models/access_package.rb', line 104

def created_date_time=(value)
    @created_date_time = value
end

#descriptionObject

Gets the description property value. The description of the access package.

Returns:

  • a string



120
121
122
# File 'lib/models/access_package.rb', line 120

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. The description of the access package.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



128
129
130
# File 'lib/models/access_package.rb', line 128

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. The display name of the access package. Supports $filter (eq, contains).

Returns:

  • a string



135
136
137
# File 'lib/models/access_package.rb', line 135

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The display name of the access package. Supports $filter (eq, contains).

Parameters:

  • value

    Value to set for the display_name property.

Returns:

  • a void



143
144
145
# File 'lib/models/access_package.rb', line 143

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



150
151
152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/models/access_package.rb', line 150

def get_field_deserializers()
    return super.merge({
        "accessPackagesIncompatibleWith" => lambda {|n| @access_packages_incompatible_with = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }) },
        "assignmentPolicies" => lambda {|n| @assignment_policies = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageAssignmentPolicy.create_from_discriminator_value(pn) }) },
        "catalog" => lambda {|n| @catalog = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AccessPackageCatalog.create_from_discriminator_value(pn) }) },
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "description" => lambda {|n| @description = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "incompatibleAccessPackages" => lambda {|n| @incompatible_access_packages = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }) },
        "incompatibleGroups" => lambda {|n| @incompatible_groups = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }) },
        "isHidden" => lambda {|n| @is_hidden = n.get_boolean_value() },
        "modifiedDateTime" => lambda {|n| @modified_date_time = n.get_date_time_value() },
    })
end

#incompatible_access_packagesObject

Gets the incompatibleAccessPackages property value. The access packages whose assigned users are ineligible to be assigned this access package.

Returns:

  • a access_package



168
169
170
# File 'lib/models/access_package.rb', line 168

def incompatible_access_packages
    return @incompatible_access_packages
end

#incompatible_access_packages=(value) ⇒ Object

Sets the incompatibleAccessPackages property value. The access packages whose assigned users are ineligible to be assigned this access package.

Parameters:

  • value

    Value to set for the incompatible_access_packages property.

Returns:

  • a void



176
177
178
# File 'lib/models/access_package.rb', line 176

def incompatible_access_packages=(value)
    @incompatible_access_packages = value
end

#incompatible_groupsObject

Gets the incompatibleGroups property value. The groups whose members are ineligible to be assigned this access package.

Returns:

  • a group



183
184
185
# File 'lib/models/access_package.rb', line 183

def incompatible_groups
    return @incompatible_groups
end

#incompatible_groups=(value) ⇒ Object

Sets the incompatibleGroups property value. The groups whose members are ineligible to be assigned this access package.

Parameters:

  • value

    Value to set for the incompatible_groups property.

Returns:

  • a void



191
192
193
# File 'lib/models/access_package.rb', line 191

def incompatible_groups=(value)
    @incompatible_groups = value
end

#is_hiddenObject

Gets the isHidden property value. Whether the access package is hidden from the requestor.

Returns:

  • a boolean



198
199
200
# File 'lib/models/access_package.rb', line 198

def is_hidden
    return @is_hidden
end

#is_hidden=(value) ⇒ Object

Sets the isHidden property value. Whether the access package is hidden from the requestor.

Parameters:

  • value

    Value to set for the is_hidden property.

Returns:

  • a void



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

def is_hidden=(value)
    @is_hidden = value
end

#modified_date_timeObject

Gets the modifiedDateTime 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



213
214
215
# File 'lib/models/access_package.rb', line 213

def modified_date_time
    return @modified_date_time
end

#modified_date_time=(value) ⇒ Object

Sets the modifiedDateTime 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 modified_date_time property.

Returns:

  • a void



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

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


229
230
231
232
233
234
235
236
237
238
239
240
241
242
# File 'lib/models/access_package.rb', line 229

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("accessPackagesIncompatibleWith", @access_packages_incompatible_with)
    writer.write_collection_of_object_values("assignmentPolicies", @assignment_policies)
    writer.write_object_value("catalog", @catalog)
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_string_value("description", @description)
    writer.write_string_value("displayName", @display_name)
    writer.write_collection_of_object_values("incompatibleAccessPackages", @incompatible_access_packages)
    writer.write_collection_of_object_values("incompatibleGroups", @incompatible_groups)
    writer.write_boolean_value("isHidden", @is_hidden)
    writer.write_date_time_value("modifiedDateTime", @modified_date_time)
end