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.



92
93
94
# File 'lib/models/access_package.rb', line 92

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)


115
116
117
118
# File 'lib/models/access_package.rb', line 115

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



47
48
49
# File 'lib/models/access_package.rb', line 47

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 accessPackagesIncompatibleWith property.

Returns:

  • a void



55
56
57
# File 'lib/models/access_package.rb', line 55

def access_packages_incompatible_with=(value)
    @access_packages_incompatible_with = value
end

#assignment_policiesObject

Gets the assignmentPolicies property value. Read-only. Nullable. Supports $expand.

Returns:

  • a access_package_assignment_policy



62
63
64
# File 'lib/models/access_package.rb', line 62

def assignment_policies
    return @assignment_policies
end

#assignment_policies=(value) ⇒ Object

Sets the assignmentPolicies property value. Read-only. Nullable. Supports $expand.

Parameters:

  • value

    Value to set for the assignmentPolicies property.

Returns:

  • a void



70
71
72
# File 'lib/models/access_package.rb', line 70

def assignment_policies=(value)
    @assignment_policies = value
end

#catalogObject

Gets the catalog property value. Required when creating the access package. Read-only. Nullable.

Returns:

  • a access_package_catalog



77
78
79
# File 'lib/models/access_package.rb', line 77

def catalog
    return @catalog
end

#catalog=(value) ⇒ Object

Sets the catalog property value. Required when creating the access package. Read-only. Nullable.

Parameters:

  • value

    Value to set for the catalog property.

Returns:

  • a void



85
86
87
# File 'lib/models/access_package.rb', line 85

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



99
100
101
# File 'lib/models/access_package.rb', line 99

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 createdDateTime property.

Returns:

  • a void



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

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



123
124
125
# File 'lib/models/access_package.rb', line 123

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



131
132
133
# File 'lib/models/access_package.rb', line 131

def description=(value)
    @description = value
end

#display_nameObject

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

Returns:

  • a string



138
139
140
# File 'lib/models/access_package.rb', line 138

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

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

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



146
147
148
# File 'lib/models/access_package.rb', line 146

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'lib/models/access_package.rb', line 153

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() },
        "resourceRoleScopes" => lambda {|n| @resource_role_scopes = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRoleScope.create_from_discriminator_value(pn) }) },
    })
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



172
173
174
# File 'lib/models/access_package.rb', line 172

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 incompatibleAccessPackages property.

Returns:

  • a void



180
181
182
# File 'lib/models/access_package.rb', line 180

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



187
188
189
# File 'lib/models/access_package.rb', line 187

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 incompatibleGroups property.

Returns:

  • a void



195
196
197
# File 'lib/models/access_package.rb', line 195

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



202
203
204
# File 'lib/models/access_package.rb', line 202

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 isHidden property.

Returns:

  • a void



210
211
212
# File 'lib/models/access_package.rb', line 210

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



217
218
219
# File 'lib/models/access_package.rb', line 217

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 modifiedDateTime property.

Returns:

  • a void



225
226
227
# File 'lib/models/access_package.rb', line 225

def modified_date_time=(value)
    @modified_date_time = value
end

#resource_role_scopesObject

Gets the resourceRoleScopes property value. The resource roles and scopes in this access package.

Returns:

  • a access_package_resource_role_scope



232
233
234
# File 'lib/models/access_package.rb', line 232

def resource_role_scopes
    return @resource_role_scopes
end

#resource_role_scopes=(value) ⇒ Object

Sets the resourceRoleScopes property value. The resource roles and scopes in this access package.

Parameters:

  • value

    Value to set for the resourceRoleScopes property.

Returns:

  • a void



240
241
242
# File 'lib/models/access_package.rb', line 240

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


248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
# File 'lib/models/access_package.rb', line 248

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)
    writer.write_collection_of_object_values("resourceRoleScopes", @resource_role_scopes)
end