1111from office365 .runtime .client_value_collection import ClientValueCollection
1212from office365 .runtime .paths .resource_path import ResourcePath
1313from office365 .runtime .types .collections import StringCollection
14+ from office365 .runtime .types .odata_property import odata
1415
1516
1617class Organization (DirectoryObject ):
@@ -19,6 +20,7 @@ class Organization(DirectoryObject):
1920 which operate and are provisioned at the tenant-level.
2021 """
2122
23+ @odata (name = "assignedPlans" )
2224 @property
2325 def assigned_plans (self ) -> ClientValueCollection [AssignedPlan ]:
2426 """The plans that are assigned to the organization."""
@@ -31,6 +33,7 @@ def branding(self) -> OrganizationalBranding:
3133 OrganizationalBranding (self .context , ResourcePath ("branding" , self .resource_path )),
3234 )
3335
36+ @odata (name = "businessPhones" )
3437 @property
3538 def business_phones (self ) -> StringCollection :
3639 """
@@ -47,6 +50,7 @@ def extensions(self) -> EntityCollection[Extension]:
4750 EntityCollection (self .context , Extension , ResourcePath ("extensions" , self .resource_path )),
4851 )
4952
53+ @odata (name = "certificateBasedAuthConfiguration" )
5054 @property
5155 def certificate_based_auth_configuration (self ) -> EntityCollection [CertificateBasedAuthConfiguration ]:
5256 """Navigation property to manage certificate-based authentication configuration.
@@ -61,23 +65,13 @@ def certificate_based_auth_configuration(self) -> EntityCollection[CertificateBa
6165 ),
6266 )
6367
68+ @odata (name = "provisionedPlans" )
6469 @property
6570 def provisioned_plans (self ) -> ClientValueCollection [ProvisionedPlan ]:
6671 return self .properties .get ("provisionedPlans" , ClientValueCollection (ProvisionedPlan ))
6772
73+ @odata (name = "verifiedDomains" )
6874 @property
6975 def verified_domains (self ) -> ClientValueCollection [VerifiedDomain ]:
7076 """The collection of domains associated with this tenant."""
7177 return self .properties .get ("verifiedDomains" , ClientValueCollection (VerifiedDomain ))
72-
73- def get_property (self , name , default_value = None ):
74- if default_value is None :
75- property_mapping = {
76- "assignedPlans" : self .assigned_plans ,
77- "certificateBasedAuthConfiguration" : self .certificate_based_auth_configuration ,
78- "businessPhones" : self .business_phones ,
79- "provisionedPlans" : self .provisioned_plans ,
80- "verifiedDomains" : self .verified_domains ,
81- }
82- default_value = property_mapping .get (name , None )
83- return super ().get_property (name , default_value )
0 commit comments