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.
-
#resource_role_scopes ⇒ Object
Gets the resourceRoleScopes property value.
-
#resource_role_scopes=(value) ⇒ Object
Sets the resourceRoleScopes 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.
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
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_with ⇒ Object
Gets the accessPackagesIncompatibleWith property value. The access packages that are incompatible with this package. Read-only.
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.
55 56 57 |
# File 'lib/models/access_package.rb', line 55 def access_packages_incompatible_with=(value) @access_packages_incompatible_with = value end |
#assignment_policies ⇒ Object
Gets the assignmentPolicies property value. Read-only. Nullable. Supports $expand.
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.
70 71 72 |
# File 'lib/models/access_package.rb', line 70 def assignment_policies=(value) @assignment_policies = value end |
#catalog ⇒ Object
Gets the catalog property value. Required when creating the access package. Read-only. Nullable.
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.
85 86 87 |
# File 'lib/models/access_package.rb', line 85 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.
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.
107 108 109 |
# File 'lib/models/access_package.rb', line 107 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. The description of the access package.
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.
131 132 133 |
# File 'lib/models/access_package.rb', line 131 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. Required. The display name of the access package. Supports $filter (eq, contains).
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).
146 147 148 |
# File 'lib/models/access_package.rb', line 146 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_packages ⇒ Object
Gets the incompatibleAccessPackages property value. The access packages whose assigned users are ineligible to be assigned this 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.
180 181 182 |
# File 'lib/models/access_package.rb', line 180 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.
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.
195 196 197 |
# File 'lib/models/access_package.rb', line 195 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.
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.
210 211 212 |
# File 'lib/models/access_package.rb', line 210 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.
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.
225 226 227 |
# File 'lib/models/access_package.rb', line 225 def modified_date_time=(value) @modified_date_time = value end |
#resource_role_scopes ⇒ Object
Gets the resourceRoleScopes property value. The resource roles and scopes in this access package.
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.
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
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 |