class ChannelInfo
ChannelInfo is a data class representing Microsoft SharePoint Portal channel information, inheriting from ClientValue to provide serialization capabilities for SharePoint API interactions.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/portal/channels/info.py
4 - 7
simple
Purpose
This class serves as a data transfer object (DTO) for SharePoint Portal channel information. It extends ClientValue to enable proper serialization/deserialization when communicating with SharePoint REST APIs. The class identifies itself as a 'Microsoft.SharePoint.Portal.ChannelInfo' entity type, which is used by the SharePoint client library to properly handle channel-related data structures in API requests and responses.
Source Code
class ChannelInfo(ClientValue):
@property
def entity_type_name(self):
return "Microsoft.SharePoint.Portal.ChannelInfo"
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 as defined by the SharePoint API schema.
Return Value
Instantiation returns a ChannelInfo object that can be used to represent SharePoint channel data. The entity_type_name property returns the string 'Microsoft.SharePoint.Portal.ChannelInfo', which identifies the SharePoint entity type for API serialization.
Class Interface
Methods
@property entity_type_name(self) -> str
property
Purpose: Returns the SharePoint entity type identifier for this class, used by the Office365 SDK for proper serialization and API communication
Returns: String 'Microsoft.SharePoint.Portal.ChannelInfo' identifying the SharePoint entity type
Attributes
| Name | Type | Description | Scope |
|---|---|---|---|
entity_type_name |
str | Read-only property that returns the SharePoint entity type name 'Microsoft.SharePoint.Portal.ChannelInfo', used for API serialization | instance |
Dependencies
office365
Required Imports
from office365.runtime.client_value import ClientValue
from office365.sharepoint.portal.channel_info import ChannelInfo
Usage Example
from office365.sharepoint.portal.channel_info import ChannelInfo
from office365.runtime.client_value import ClientValue
# Instantiate a ChannelInfo object
channel = ChannelInfo()
# Access the entity type name (used internally by the SDK)
entity_type = channel.entity_type_name
print(entity_type) # Output: Microsoft.SharePoint.Portal.ChannelInfo
# Typically used within SharePoint context operations
# Example: When retrieving or creating channels in SharePoint
# ctx = ClientContext(site_url).with_credentials(credentials)
# channel_info = ChannelInfo()
# Set properties as needed based on SharePoint API requirements
Best Practices
- This class is primarily used internally by the Office365 SDK for SharePoint operations and should be instantiated when working with SharePoint channel data
- The entity_type_name property should not be modified as it's used for proper API serialization
- Inherit from this class if you need to extend channel information with custom properties
- Use this class in conjunction with SharePoint ClientContext for proper authentication and API communication
- Properties should be set according to the SharePoint Portal Channel API schema
- This is a lightweight data container - avoid adding business logic to instances
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class ChannelInfoCollection 83.4% similar
-
class OrgNewsSiteInfo 73.3% similar
-
class WebInfoCreationInformation 72.1% similar
-
class TranslationItemInfo 70.6% similar
-
class ChannelIdentity 69.0% similar