Class: MicrosoftGraph::Models::AccessPackage
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/access_package.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_packages_incompatible_with ⇒ Object
Gets the accessPackagesIncompatibleWith property value.
-
#access_packages_incompatible_with=(value) ⇒ Object
Sets the accessPackagesIncompatibleWith property value.
-
#assignment_policies ⇒ Object
Gets the assignmentPolicies property value.
-
#assignment_policies=(value) ⇒ Object
Sets the assignmentPolicies property value.
-
#catalog ⇒ Object
Gets the catalog property value.
-
#catalog=(value) ⇒ Object
Sets the catalog property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#incompatible_access_packages ⇒ Object
Gets the incompatibleAccessPackages property value.
-
#incompatible_access_packages=(value) ⇒ Object
Sets the incompatibleAccessPackages property value.
-
#incompatible_groups ⇒ Object
Gets the incompatibleGroups property value.
-
#incompatible_groups=(value) ⇒ Object
Sets the incompatibleGroups property value.
-
#initialize ⇒ Object
constructor
Instantiates a new accessPackage and sets the default values.
-
#is_hidden ⇒ Object
Gets the isHidden property value.
-
#is_hidden=(value) ⇒ Object
Sets the isHidden property value.
-
#modified_date_time ⇒ Object
Gets the modifiedDateTime property value.
-
#modified_date_time=(value) ⇒ Object
Sets the modifiedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_with ⇒ Object
Gets the accessPackagesIncompatibleWith property value. The access packages that are incompatible with this package. Read-only.
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.
52 53 54 |
# File 'lib/models/access_package.rb', line 52 def access_packages_incompatible_with=(value) @access_packages_incompatible_with = value end |
#assignment_policies ⇒ Object
Gets the assignmentPolicies property value. The assignmentPolicies property
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
67 68 69 |
# File 'lib/models/access_package.rb', line 67 def assignment_policies=(value) @assignment_policies = value end |
#catalog ⇒ Object
Gets the catalog property value. The catalog property
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
82 83 84 |
# File 'lib/models/access_package.rb', line 82 def catalog=(value) @catalog = value end |
#created_date_time ⇒ Object
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.
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.
104 105 106 |
# File 'lib/models/access_package.rb', line 104 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. The description of the access package.
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.
128 129 130 |
# File 'lib/models/access_package.rb', line 128 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The display name of the access package. Supports $filter (eq, contains).
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).
143 144 145 |
# File 'lib/models/access_package.rb', line 143 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_packages ⇒ Object
Gets the incompatibleAccessPackages property value. The access packages whose assigned users are ineligible to be assigned this 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.
176 177 178 |
# File 'lib/models/access_package.rb', line 176 def incompatible_access_packages=(value) @incompatible_access_packages = value end |
#incompatible_groups ⇒ Object
Gets the incompatibleGroups property value. The groups whose members are ineligible to be assigned this access package.
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.
191 192 193 |
# File 'lib/models/access_package.rb', line 191 def incompatible_groups=(value) @incompatible_groups = value end |
#is_hidden ⇒ Object
Gets the isHidden property value. Whether the access package is hidden from the requestor.
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.
206 207 208 |
# File 'lib/models/access_package.rb', line 206 def is_hidden=(value) @is_hidden = value end |
#modified_date_time ⇒ Object
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.
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.
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
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 |