Class: MicrosoftGraph::Models::AccessPackageCatalog

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



80
81
82
# File 'lib/models/access_package_catalog.rb', line 80

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_catalog

Raises:

  • (StandardError)


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

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

Instance Method Details

#access_packagesObject

Gets the accessPackages property value. The access packages in this catalog. Read-only. Nullable.

Returns:

  • a access_package



50
51
52
# File 'lib/models/access_package_catalog.rb', line 50

def access_packages
    return @access_packages
end

#access_packages=(value) ⇒ Object

Sets the accessPackages property value. The access packages in this catalog. Read-only. Nullable.

Parameters:

  • value

    Value to set for the accessPackages property.

Returns:

  • a void



58
59
60
# File 'lib/models/access_package_catalog.rb', line 58

def access_packages=(value)
    @access_packages = value
end

#catalog_typeObject

Gets the catalogType property value. Whether the catalog is created by a user or entitlement management. The possible values are: userManaged, serviceDefault, serviceManaged, unknownFutureValue.

Returns:

  • a access_package_catalog_type



65
66
67
# File 'lib/models/access_package_catalog.rb', line 65

def catalog_type
    return @catalog_type
end

#catalog_type=(value) ⇒ Object

Sets the catalogType property value. Whether the catalog is created by a user or entitlement management. The possible values are: userManaged, serviceDefault, serviceManaged, unknownFutureValue.

Parameters:

  • value

    Value to set for the catalogType property.

Returns:

  • a void



73
74
75
# File 'lib/models/access_package_catalog.rb', line 73

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



87
88
89
# File 'lib/models/access_package_catalog.rb', line 87

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



95
96
97
# File 'lib/models/access_package_catalog.rb', line 95

def created_date_time=(value)
    @created_date_time = value
end

#custom_workflow_extensionsObject

Gets the customWorkflowExtensions property value. The customWorkflowExtensions property

Returns:

  • a custom_callout_extension



111
112
113
# File 'lib/models/access_package_catalog.rb', line 111

def custom_workflow_extensions
    return @custom_workflow_extensions
end

#custom_workflow_extensions=(value) ⇒ Object

Sets the customWorkflowExtensions property value. The customWorkflowExtensions property

Parameters:

  • value

    Value to set for the customWorkflowExtensions property.

Returns:

  • a void



119
120
121
# File 'lib/models/access_package_catalog.rb', line 119

def custom_workflow_extensions=(value)
    @custom_workflow_extensions = value
end

#descriptionObject

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

Returns:

  • a string



126
127
128
# File 'lib/models/access_package_catalog.rb', line 126

def description
    return @description
end

#description=(value) ⇒ Object

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

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



134
135
136
# File 'lib/models/access_package_catalog.rb', line 134

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. The display name of the access package catalog.

Returns:

  • a string



141
142
143
# File 'lib/models/access_package_catalog.rb', line 141

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The display name of the access package catalog.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



149
150
151
# File 'lib/models/access_package_catalog.rb', line 149

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# File 'lib/models/access_package_catalog.rb', line 156

def get_field_deserializers()
    return super.merge({
        "accessPackages" => lambda {|n| @access_packages = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackage.create_from_discriminator_value(pn) }) },
        "catalogType" => lambda {|n| @catalog_type = n.get_enum_value(MicrosoftGraph::Models::AccessPackageCatalogType) },
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "customWorkflowExtensions" => lambda {|n| @custom_workflow_extensions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CustomCalloutExtension.create_from_discriminator_value(pn) }) },
        "description" => lambda {|n| @description = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "isExternallyVisible" => lambda {|n| @is_externally_visible = n.get_boolean_value() },
        "modifiedDateTime" => lambda {|n| @modified_date_time = n.get_date_time_value() },
        "resourceRoles" => lambda {|n| @resource_roles = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceRole.create_from_discriminator_value(pn) }) },
        "resourceScopes" => lambda {|n| @resource_scopes = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageResourceScope.create_from_discriminator_value(pn) }) },
        "resources" => lambda {|n| @resources = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AccessPackageResource.create_from_discriminator_value(pn) }) },
        "state" => lambda {|n| @state = n.get_enum_value(MicrosoftGraph::Models::AccessPackageCatalogState) },
    })
end

#is_externally_visibleObject

Gets the isExternallyVisible property value. Whether the access packages in this catalog can be requested by users outside of the tenant.

Returns:

  • a boolean



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

def is_externally_visible
    return @is_externally_visible
end

#is_externally_visible=(value) ⇒ Object

Sets the isExternallyVisible property value. Whether the access packages in this catalog can be requested by users outside of the tenant.

Parameters:

  • value

    Value to set for the isExternallyVisible property.

Returns:

  • a void



184
185
186
# File 'lib/models/access_package_catalog.rb', line 184

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



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

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



199
200
201
# File 'lib/models/access_package_catalog.rb', line 199

def modified_date_time=(value)
    @modified_date_time = value
end

#resource_rolesObject

Gets the resourceRoles property value. The resourceRoles property

Returns:

  • a access_package_resource_role



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

def resource_roles
    return @resource_roles
end

#resource_roles=(value) ⇒ Object

Sets the resourceRoles property value. The resourceRoles property

Parameters:

  • value

    Value to set for the resourceRoles property.

Returns:

  • a void



214
215
216
# File 'lib/models/access_package_catalog.rb', line 214

def resource_roles=(value)
    @resource_roles = value
end

#resource_scopesObject

Gets the resourceScopes property value. The resourceScopes property

Returns:

  • a access_package_resource_scope



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

def resource_scopes
    return @resource_scopes
end

#resource_scopes=(value) ⇒ Object

Sets the resourceScopes property value. The resourceScopes property

Parameters:

  • value

    Value to set for the resourceScopes property.

Returns:

  • a void



229
230
231
# File 'lib/models/access_package_catalog.rb', line 229

def resource_scopes=(value)
    @resource_scopes = value
end

#resourcesObject

Gets the resources property value. Access package resources in this catalog.

Returns:

  • a access_package_resource



236
237
238
# File 'lib/models/access_package_catalog.rb', line 236

def resources
    return @resources
end

#resources=(value) ⇒ Object

Sets the resources property value. Access package resources in this catalog.

Parameters:

  • value

    Value to set for the resources property.

Returns:

  • a void



244
245
246
# File 'lib/models/access_package_catalog.rb', line 244

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


252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# File 'lib/models/access_package_catalog.rb', line 252

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("accessPackages", @access_packages)
    writer.write_enum_value("catalogType", @catalog_type)
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_collection_of_object_values("customWorkflowExtensions", @custom_workflow_extensions)
    writer.write_string_value("description", @description)
    writer.write_string_value("displayName", @display_name)
    writer.write_boolean_value("isExternallyVisible", @is_externally_visible)
    writer.write_date_time_value("modifiedDateTime", @modified_date_time)
    writer.write_collection_of_object_values("resourceRoles", @resource_roles)
    writer.write_collection_of_object_values("resourceScopes", @resource_scopes)
    writer.write_collection_of_object_values("resources", @resources)
    writer.write_enum_value("state", @state)
end

#stateObject

Gets the state property value. Has the value published if the access packages are available for management. The possible values are: unpublished, published, unknownFutureValue.

Returns:

  • a access_package_catalog_state



272
273
274
# File 'lib/models/access_package_catalog.rb', line 272

def state
    return @state
end

#state=(value) ⇒ Object

Sets the state property value. Has the value published if the access packages are available for management. The possible values are: unpublished, published, unknownFutureValue.

Parameters:

  • value

    Value to set for the state property.

Returns:

  • a void



280
281
282
# File 'lib/models/access_package_catalog.rb', line 280

def state=(value)
    @state = value
end