-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduced fontpackage namespace, updates for directory namespace in …
…SharePoint API
- Loading branch information
Showing
55 changed files
with
632 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from typing import TYPE_CHECKING | ||
|
||
from office365.runtime.paths.service_operation import ServiceOperationPath | ||
from office365.sharepoint.entity import Entity | ||
|
||
if TYPE_CHECKING: | ||
from office365.sharepoint.client_context import ClientContext | ||
|
||
|
||
class SiteMoveService(Entity): | ||
""" """ | ||
|
||
def __init__( | ||
self, | ||
context, | ||
site_id, | ||
site_subscription_id=None, | ||
source_database_id=None, | ||
target_database_id=None, | ||
): | ||
# type: (ClientContext, str, str, str, str) -> None | ||
"""""" | ||
static_path = ServiceOperationPath( | ||
"Microsoft.SharePoint.Administration.SiteMove.Service.SiteMoveService", | ||
{ | ||
"siteId": site_id, | ||
"siteSubscriptionId": site_subscription_id, | ||
"sourceDatabaseId": source_database_id, | ||
"targetDatabaseId": target_database_id, | ||
}, | ||
) | ||
super(SiteMoveService, self).__init__(context, static_path) | ||
|
||
@property | ||
def entity_type_name(self): | ||
return "Microsoft.SharePoint.Administration.SiteMove.Service.SiteMoveService" |
11 changes: 11 additions & 0 deletions
11
office365/sharepoint/administration/sitemove/service_info.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from office365.runtime.client_value import ClientValue | ||
|
||
|
||
class SiteMoveServiceInfo(ClientValue): | ||
""" """ | ||
|
||
@property | ||
def entity_type_name(self): | ||
return ( | ||
"Microsoft.SharePoint.Administration.SiteMove.Service.SiteMoveServiceInfo" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from typing import Optional | ||
|
||
from office365.sharepoint.entity import Entity | ||
|
||
|
||
class ConnectorResult(Entity): | ||
""" """ | ||
|
||
@property | ||
def context_data(self): | ||
# type: () -> Optional[str] | ||
return self.properties.get("ContextData", None) | ||
|
||
@property | ||
def value(self): | ||
# type: () -> Optional[str] | ||
return self.properties.get("Value", None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from typing import TYPE_CHECKING, Optional | ||
|
||
from office365.runtime.paths.resource_path import ResourcePath | ||
from office365.runtime.paths.service_operation import ServiceOperationPath | ||
from office365.sharepoint.entity_collection import EntityCollection | ||
from office365.sharepoint.fontpackages.font_package import FontPackage | ||
|
||
if TYPE_CHECKING: | ||
from office365.sharepoint.client_context import ClientContext | ||
|
||
|
||
class FontPackageCollection(EntityCollection): | ||
"""Represents a collection of View resources.""" | ||
|
||
def __init__(self, context, resource_path=None): | ||
# type: (ClientContext, Optional[ResourcePath]) -> None | ||
super(FontPackageCollection, self).__init__(context, FontPackage, resource_path) | ||
|
||
def get_by_title(self, title): | ||
""" | ||
:param str title: The title of the font package to return. | ||
""" | ||
return FontPackage( | ||
self.context, | ||
ServiceOperationPath("GetByTitle", [title], self.resource_path), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from office365.runtime.client_value import ClientValue | ||
|
||
|
||
class FontPackageCreationParameters(ClientValue): | ||
"""""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from office365.sharepoint.entity import Entity | ||
|
||
|
||
class FontPackage(Entity): | ||
"""Represents a font package.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from office365.sharepoint.entity import Entity | ||
|
||
|
||
class OutOfBoxFontPackageSettings(Entity): | ||
"""""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
office365/sharepoint/marketplace/corporatecuratedgallery/card_designs.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from office365.sharepoint.entity import Entity | ||
|
||
|
||
class CardDesigns(Entity): | ||
"""""" | ||
|
||
@property | ||
def entity_type_name(self): | ||
return "Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CardDesigns" |
14 changes: 14 additions & 0 deletions
14
office365/sharepoint/marketplace/corporatecuratedgallery/teams_package_download.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
from typing import AnyStr | ||
|
||
from office365.runtime.client_result import ClientResult | ||
from office365.runtime.queries.service_operation import ServiceOperationQuery | ||
from office365.sharepoint.entity import Entity | ||
|
||
|
||
class TeamsPackageDownload(Entity): | ||
"""""" | ||
|
||
def download_teams(self): | ||
# type: () -> ClientResult[AnyStr] | ||
""" """ | ||
return_type = ClientResult(self.context) | ||
qry = ServiceOperationQuery( | ||
self, "DownloadTeams", None, None, None, return_type | ||
) | ||
self.context.add_query(qry) | ||
return return_type | ||
|
||
@property | ||
def entity_type_name(self): | ||
return "Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.TeamsPackageDownload" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.