🔍 Code Extractor

class SiteCreationDefaultStorageQuota

Maturity: 24

A class representing the default storage quota configuration for SharePoint site creation, inheriting from ClientValue to provide serialization capabilities for Microsoft Online SharePoint Tenant Administration.

File:
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/tenant/administration/sites/creation_default_storage_quota.py
Lines:
4 - 7
Complexity:
simple

Purpose

This class serves as a data transfer object (DTO) for managing default storage quota settings when creating SharePoint sites through the Tenant Administration API. It inherits from ClientValue to enable proper serialization/deserialization when communicating with SharePoint Online REST APIs. The class is primarily used to configure and retrieve storage quota defaults for new site collections.

Source Code

class SiteCreationDefaultStorageQuota(ClientValue):
    @property
    def entity_type_name(self):
        return "Microsoft.Online.SharePoint.TenantAdministration.SiteCreationDefaultStorageQuota"

Parameters

Name Type Default Kind
bases ClientValue -

Parameter Details

__init__: Inherits constructor from ClientValue base class. No explicit constructor is defined, so it uses the parent class's initialization which typically accepts keyword arguments for property initialization.

Return Value

Instantiation returns a SiteCreationDefaultStorageQuota object that can be used to represent storage quota settings in SharePoint Tenant Administration operations. The entity_type_name property returns a string identifying the SharePoint entity type.

Class Interface

Methods

@property entity_type_name(self) -> str property

Purpose: Returns the fully qualified entity type name used by SharePoint Online REST API to identify this object type

Returns: String containing 'Microsoft.Online.SharePoint.TenantAdministration.SiteCreationDefaultStorageQuota' which identifies this entity type in SharePoint's type system

Attributes

Name Type Description Scope
entity_type_name str Read-only property that returns the SharePoint entity type identifier for this class instance

Dependencies

  • office365

Required Imports

from office365.runtime.client_value import ClientValue

Usage Example

from office365.runtime.client_value import ClientValue
from office365.sharepoint.tenant.administration.site_creation_default_storage_quota import SiteCreationDefaultStorageQuota

# Instantiate the storage quota object
storage_quota = SiteCreationDefaultStorageQuota()

# Access the entity type name (typically used internally by the SDK)
entity_type = storage_quota.entity_type_name
print(entity_type)  # Output: Microsoft.Online.SharePoint.TenantAdministration.SiteCreationDefaultStorageQuota

# This object would typically be used with SharePoint Tenant Administration client
# to configure or retrieve default storage quotas for site creation

Best Practices

  • This class is typically instantiated and used internally by the Office365 SDK when working with SharePoint Tenant Administration APIs
  • Do not modify the entity_type_name property as it must match the exact SharePoint API entity type
  • Use this class in conjunction with SharePoint Tenant Administration client objects for proper context
  • The class inherits serialization behavior from ClientValue, so properties set on instances will be automatically serialized for API calls
  • This is a lightweight DTO class - avoid adding business logic directly to it
  • Instances are typically short-lived and created for specific API operations

Similar Components

AI-powered semantic similarity - components with related functionality:

  • class SiteCreationData 75.0% similar

    A data class representing site creation information for SharePoint Online tenant administration, including creation count and source GUID.

    From: /tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/tenant/administration/sites/creation_data.py
  • class SiteCreationSource 73.4% similar

    A client value class representing a source for SharePoint site creation, containing a collection of site creation data objects.

    From: /tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/tenant/administration/sites/creation_source.py
  • class SiteCreationProperties 73.0% similar

    A data class that encapsulates the properties required to create a new SharePoint site, including URL, owner, title, and template information.

    From: /tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/tenant/administration/sites/creation_properties.py
  • class SiteStateProperties 66.2% similar

    A data class representing SharePoint site state properties for tenant administration operations.

    From: /tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/tenant/administration/sites/state_properties.py
  • class SiteAdministratorsInfo 65.7% similar

    A data class representing site administrator information in SharePoint Online tenant administration, including email, login name, and display name.

    From: /tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/tenant/administration/sites/administrators_info.py
← Back to Browse