class OrgNewsSiteInfo
A data class representing organizational news site information in SharePoint, inheriting from ClientValue to provide serialization capabilities for SharePoint API interactions.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/orgnewssite/info.py
4 - 7
simple
Purpose
OrgNewsSiteInfo serves as a data transfer object (DTO) for SharePoint organizational news site information. It extends ClientValue to enable proper serialization/deserialization when communicating with SharePoint REST APIs. The class identifies itself with a specific entity type name used by SharePoint's type system for organizational news sites.
Source Code
class OrgNewsSiteInfo(ClientValue):
@property
def entity_type_name(self):
return "Microsoft.SharePoint.OrgNewsSite.OrgNewsSiteInfo"
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
bases: Inherits from ClientValue, which provides base functionality for client-side value objects that can be serialized to/from SharePoint API formats. This inheritance enables the class to be used in SharePoint API requests and responses.
Return Value
Instantiation returns an OrgNewsSiteInfo object that can be used to represent organizational news site data in SharePoint operations. The entity_type_name property returns the string 'Microsoft.SharePoint.OrgNewsSite.OrgNewsSiteInfo', which is the SharePoint type identifier.
Class Interface
Methods
@property
def entity_type_name(self) -> str
property
Purpose: Returns the SharePoint entity type identifier for organizational news site information objects
Returns: A string containing the fully qualified SharePoint type name: 'Microsoft.SharePoint.OrgNewsSite.OrgNewsSiteInfo'
Attributes
| Name | Type | Description | Scope |
|---|---|---|---|
entity_type_name |
str | Read-only property that returns the SharePoint entity type identifier used for serialization and type identification in SharePoint API calls | instance |
Dependencies
office365
Required Imports
from office365.runtime.client_value import ClientValue
Usage Example
from office365.runtime.client_value import ClientValue
from office365.sharepoint.orgnewssite.org_news_site_info import OrgNewsSiteInfo
# Instantiate the organizational news site info object
org_news_info = OrgNewsSiteInfo()
# Access the entity type name (used internally by SharePoint API)
type_name = org_news_info.entity_type_name
print(type_name) # Output: Microsoft.SharePoint.OrgNewsSite.OrgNewsSiteInfo
# This object would typically be used in SharePoint API operations
# For example, when retrieving or setting organizational news site properties
Best Practices
- This class is primarily used internally by the office365 library for SharePoint API operations
- Do not modify the entity_type_name property as it must match SharePoint's expected type identifier
- Instantiate this class when working with SharePoint organizational news site operations
- The class inherits serialization behavior from ClientValue, so additional attributes can be added and will be automatically serialized
- This is a lightweight data container - avoid adding business logic to this class
- Use this class in conjunction with SharePoint client context objects for API operations
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class OrganizationNewsSiteReference 84.8% similar
-
class OrgNewsSiteApi 78.1% similar
-
class GroupSiteInfo 76.2% similar
-
class OrganizationNews 76.0% similar
-
class SitePageVersionInfo 74.4% similar