class TenantCdnUrl
A client value class representing a SharePoint Tenant CDN URL entity, providing type identification for Microsoft SharePoint Tenant CDN URL objects.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/tenant/cdn_url.py
4 - 7
simple
Purpose
This class serves as a data model for SharePoint Tenant CDN URLs within the Office365 SDK. It inherits from ClientValue to provide serialization and deserialization capabilities for SharePoint API interactions. The class is primarily used to represent and handle CDN URL configurations at the tenant level in SharePoint Online environments.
Source Code
class TenantCdnUrl(ClientValue):
@property
def entity_type_name(self):
return "Microsoft.SharePoint.TenantCdn.TenantCdnUrl"
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
__init__: Inherits constructor from ClientValue base class. The base class typically accepts keyword arguments that map to the entity's properties, allowing initialization of CDN URL attributes through the parent class constructor.
Return Value
Instantiation returns a TenantCdnUrl object that represents a SharePoint Tenant CDN URL entity. The entity_type_name property returns the string 'Microsoft.SharePoint.TenantCdn.TenantCdnUrl', which identifies the entity type in SharePoint API communications.
Class Interface
Methods
@property entity_type_name(self) -> str
property
Purpose: Returns the SharePoint entity type identifier for Tenant CDN URL objects
Returns: A string containing 'Microsoft.SharePoint.TenantCdn.TenantCdnUrl', which is the entity type name used by SharePoint API for identifying this entity type
Attributes
| Name | Type | Description | Scope |
|---|---|---|---|
entity_type_name |
str | Read-only property that returns the SharePoint entity type identifier 'Microsoft.SharePoint.TenantCdn.TenantCdnUrl' | instance |
Dependencies
office365
Required Imports
from office365.runtime.client_value import ClientValue
from office365.sharepoint.tenant.cdn.tenant_cdn_url import TenantCdnUrl
Usage Example
from office365.sharepoint.tenant.cdn.tenant_cdn_url import TenantCdnUrl
from office365.runtime.client_value import ClientValue
# Instantiate a TenantCdnUrl object
cdn_url = TenantCdnUrl()
# Access the entity type name
entity_type = cdn_url.entity_type_name
print(entity_type) # Output: Microsoft.SharePoint.TenantCdn.TenantCdnUrl
# Typically used in context of SharePoint API operations
# The object would be populated with CDN URL data from SharePoint responses
# or used to send CDN URL configuration to SharePoint
Best Practices
- This class is typically instantiated by the Office365 SDK internally when deserializing SharePoint API responses, rather than being manually created by developers.
- The entity_type_name property is used by the SDK for proper serialization/deserialization with SharePoint REST API.
- When working with Tenant CDN URLs, use this class in conjunction with SharePoint Tenant administration APIs.
- Do not override the entity_type_name property as it must match the exact SharePoint entity type identifier.
- Ensure proper authentication and tenant admin permissions before attempting to work with Tenant CDN configurations.
- This class inherits all functionality from ClientValue, including property setting and getting mechanisms.
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class TenantCdnApi 79.2% similar
-
class Office365Tenant 71.7% similar
-
class SPOTenantWebTemplate 71.1% similar
-
class SiteCreationSource 64.5% similar
-
class CollaborativeUsers 63.6% similar