msgraph-sdk 1.35.0__py3-none-any.whl → 1.36.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. msgraph/_version.py +1 -1
  2. msgraph/generated/applications/item/restore/restore_request_builder.py +2 -2
  3. msgraph/generated/contacts/item/restore/restore_request_builder.py +2 -2
  4. msgraph/generated/contracts/item/restore/restore_request_builder.py +2 -2
  5. msgraph/generated/device_app_management/device_app_management_request_builder.py +2 -2
  6. msgraph/generated/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.py +4 -4
  7. msgraph/generated/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.py +1 -1
  8. msgraph/generated/device_app_management/managed_app_policies/managed_app_policies_request_builder.py +4 -4
  9. msgraph/generated/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.py +1 -1
  10. msgraph/generated/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.py +1 -1
  11. msgraph/generated/device_app_management/managed_app_registrations/item/managed_app_registration_item_request_builder.py +4 -4
  12. msgraph/generated/device_app_management/managed_e_books/item/assignments/assignments_request_builder.py +3 -3
  13. msgraph/generated/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.py +3 -3
  14. msgraph/generated/device_app_management/managed_e_books/item/managed_e_book_item_request_builder.py +4 -4
  15. msgraph/generated/device_app_management/managed_e_books/managed_e_books_request_builder.py +4 -4
  16. msgraph/generated/device_app_management/mobile_app_configurations/mobile_app_configurations_request_builder.py +4 -4
  17. msgraph/generated/device_app_management/mobile_apps/item/mobile_app_item_request_builder.py +10 -10
  18. msgraph/generated/device_app_management/mobile_apps/mobile_apps_request_builder.py +7 -7
  19. msgraph/generated/device_management/device_compliance_policies/device_compliance_policies_request_builder.py +7 -7
  20. msgraph/generated/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.py +6 -6
  21. msgraph/generated/device_management/device_configurations/device_configurations_request_builder.py +7 -7
  22. msgraph/generated/device_management/device_configurations/item/device_configuration_item_request_builder.py +10 -10
  23. msgraph/generated/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.py +7 -7
  24. msgraph/generated/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.py +6 -6
  25. msgraph/generated/device_management/device_management_request_builder.py +2 -2
  26. msgraph/generated/device_management/role_definitions/item/role_definition_item_request_builder.py +7 -7
  27. msgraph/generated/devices/item/restore/restore_request_builder.py +2 -2
  28. msgraph/generated/directory/administrative_units/item/administrative_unit_item_request_builder.py +3 -3
  29. msgraph/generated/directory/deleted_items/deleted_items_request_builder.py +3 -3
  30. msgraph/generated/directory/deleted_items/graph_group/graph_group_request_builder.py +3 -3
  31. msgraph/generated/directory/deleted_items/item/directory_object_item_request_builder.py +5 -5
  32. msgraph/generated/directory/deleted_items/item/graph_group/graph_group_request_builder.py +3 -3
  33. msgraph/generated/directory/deleted_items/item/restore/restore_request_builder.py +2 -2
  34. msgraph/generated/directory/public_key_infrastructure/certificate_based_auth_configurations/certificate_based_auth_configurations_request_builder.py +7 -5
  35. msgraph/generated/directory/public_key_infrastructure/certificate_based_auth_configurations/item/certificate_authorities/certificate_authorities_request_builder.py +7 -5
  36. msgraph/generated/directory/public_key_infrastructure/certificate_based_auth_configurations/item/certificate_authorities/item/certificate_authority_detail_item_request_builder.py +9 -7
  37. msgraph/generated/directory/public_key_infrastructure/certificate_based_auth_configurations/item/certificate_based_auth_pki_item_request_builder.py +10 -7
  38. msgraph/generated/directory/public_key_infrastructure/certificate_based_auth_configurations/item/upload/upload_request_builder.py +3 -2
  39. msgraph/generated/directory/public_key_infrastructure/public_key_infrastructure_request_builder.py +3 -3
  40. msgraph/generated/directory_objects/item/restore/restore_request_builder.py +2 -2
  41. msgraph/generated/directory_role_templates/item/restore/restore_request_builder.py +2 -2
  42. msgraph/generated/directory_roles/item/restore/restore_request_builder.py +2 -2
  43. msgraph/generated/drives/item/items/item/retention_label/retention_label_request_builder.py +3 -3
  44. msgraph/generated/group_setting_templates/item/restore/restore_request_builder.py +2 -2
  45. msgraph/generated/groups/groups_request_builder.py +3 -3
  46. msgraph/generated/groups/item/conversations/conversations_request_builder.py +3 -3
  47. msgraph/generated/groups/item/conversations/item/conversation_item_request_builder.py +1 -1
  48. msgraph/generated/groups/item/conversations/item/threads/item/reply/reply_request_builder.py +3 -3
  49. msgraph/generated/groups/item/restore/restore_request_builder.py +2 -2
  50. msgraph/generated/groups/item/threads/item/conversation_thread_item_request_builder.py +1 -1
  51. msgraph/generated/groups/item/threads/item/posts/posts_request_builder.py +4 -4
  52. msgraph/generated/groups/item/threads/item/reply/reply_request_builder.py +3 -3
  53. msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py +3 -3
  54. msgraph/generated/identity_governance/entitlement_management/access_packages/item/access_package_item_request_builder.py +4 -4
  55. msgraph/generated/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py +6 -6
  56. msgraph/generated/kiota-dom-export.txt +99 -0
  57. msgraph/generated/kiota-lock.json +1 -1
  58. msgraph/generated/models/administrative_unit.py +1 -1
  59. msgraph/generated/models/call_event.py +84 -0
  60. msgraph/generated/models/call_event_type.py +8 -0
  61. msgraph/generated/models/certificate_authority_detail.py +10 -10
  62. msgraph/generated/models/certificate_based_auth_pki.py +5 -5
  63. msgraph/generated/models/device.py +1 -1
  64. msgraph/generated/models/directory.py +1 -1
  65. msgraph/generated/models/emergency_call_event.py +68 -0
  66. msgraph/generated/models/emergency_caller_info.py +77 -0
  67. msgraph/generated/models/entity.py +21 -0
  68. msgraph/generated/models/group.py +1 -1
  69. msgraph/generated/models/partners/billing/billing_reconciliation.py +7 -0
  70. msgraph/generated/models/partners/billing/unbilled_reconciliation.py +53 -0
  71. msgraph/generated/models/public_key_infrastructure_root.py +1 -1
  72. msgraph/generated/models/user.py +1 -1
  73. msgraph/generated/models/workbook_worksheet_protection_options.py +11 -11
  74. msgraph/generated/organization/item/branding/localizations/item/banner_logo/banner_logo_request_builder.py +3 -3
  75. msgraph/generated/organization/item/organization_item_request_builder.py +7 -7
  76. msgraph/generated/organization/item/restore/restore_request_builder.py +2 -2
  77. msgraph/generated/permission_grants/item/restore/restore_request_builder.py +2 -2
  78. msgraph/generated/reports/partners/billing/reconciliation/reconciliation_request_builder.py +10 -0
  79. msgraph/generated/reports/partners/billing/reconciliation/unbilled/microsoft_graph_partners_billing_export/export_post_request_body.py +68 -0
  80. msgraph/generated/reports/partners/billing/reconciliation/unbilled/microsoft_graph_partners_billing_export/microsoft_graph_partners_billing_export_request_builder.py +89 -0
  81. msgraph/generated/reports/partners/billing/reconciliation/unbilled/unbilled_request_builder.py +198 -0
  82. msgraph/generated/service_principals/item/restore/restore_request_builder.py +2 -2
  83. msgraph/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py +6 -6
  84. msgraph/generated/teams/item/channels/item/members/members_request_builder.py +3 -3
  85. msgraph/generated/teams/item/channels/item/messages/messages_request_builder.py +3 -3
  86. msgraph/generated/teams/item/schedule/shifts/item/shift_item_request_builder.py +2 -2
  87. msgraph/generated/tenant_relationships/multi_tenant_organization/multi_tenant_organization_request_builder.py +3 -3
  88. msgraph/generated/users/item/presence/presence_request_builder.py +4 -4
  89. msgraph/generated/users/item/restore/restore_request_builder.py +2 -2
  90. msgraph/generated/users/item/user_item_request_builder.py +7 -7
  91. msgraph/generated/users/users_request_builder.py +3 -3
  92. msgraph/generated/users_with_user_principal_name/users_with_user_principal_name_request_builder.py +7 -7
  93. {msgraph_sdk-1.35.0.dist-info → msgraph_sdk-1.36.0.dist-info}/METADATA +1 -1
  94. {msgraph_sdk-1.35.0.dist-info → msgraph_sdk-1.36.0.dist-info}/RECORD +96 -88
  95. {msgraph_sdk-1.35.0.dist-info → msgraph_sdk-1.36.0.dist-info}/WHEEL +0 -0
  96. {msgraph_sdk-1.35.0.dist-info → msgraph_sdk-1.36.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,53 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
5
+ from typing import Any, Optional, TYPE_CHECKING, Union
6
+
7
+ if TYPE_CHECKING:
8
+ from ...entity import Entity
9
+
10
+ from ...entity import Entity
11
+
12
+ @dataclass
13
+ class UnbilledReconciliation(Entity, Parsable):
14
+ # The OdataType property
15
+ odata_type: Optional[str] = None
16
+
17
+ @staticmethod
18
+ def create_from_discriminator_value(parse_node: ParseNode) -> UnbilledReconciliation:
19
+ """
20
+ Creates a new instance of the appropriate class based on discriminator value
21
+ param parse_node: The parse node to use to read the discriminator value and create the object
22
+ Returns: UnbilledReconciliation
23
+ """
24
+ if parse_node is None:
25
+ raise TypeError("parse_node cannot be null.")
26
+ return UnbilledReconciliation()
27
+
28
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
29
+ """
30
+ The deserialization information for the current model
31
+ Returns: dict[str, Callable[[ParseNode], None]]
32
+ """
33
+ from ...entity import Entity
34
+
35
+ from ...entity import Entity
36
+
37
+ fields: dict[str, Callable[[Any], None]] = {
38
+ }
39
+ super_fields = super().get_field_deserializers()
40
+ fields.update(super_fields)
41
+ return fields
42
+
43
+ def serialize(self,writer: SerializationWriter) -> None:
44
+ """
45
+ Serializes information the current object
46
+ param writer: Serialization writer to use to serialize this model
47
+ Returns: None
48
+ """
49
+ if writer is None:
50
+ raise TypeError("writer cannot be null.")
51
+ super().serialize(writer)
52
+
53
+
@@ -12,7 +12,7 @@ from .entity import Entity
12
12
 
13
13
  @dataclass
14
14
  class PublicKeyInfrastructureRoot(Entity, Parsable):
15
- # The certificateBasedAuthConfigurations property
15
+ # The collection of public key infrastructure instances for the certificate-based authentication feature for users.
16
16
  certificate_based_auth_configurations: Optional[list[CertificateBasedAuthPki]] = None
17
17
  # The OdataType property
18
18
  odata_type: Optional[str] = None
@@ -178,7 +178,7 @@ class User(DirectoryObject, Parsable):
178
178
  insights: Optional[ItemInsights] = None
179
179
  # A list for the user to describe their interests. Returned only on $select.
180
180
  interests: Optional[list[str]] = None
181
- # The isManagementRestricted property
181
+ # true if the user is a member of a restricted management administrative unit. If not set, the default value is null and the default behavior is false. Read-only. To manage a user who is a member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. Returned only on $select.
182
182
  is_management_restricted: Optional[bool] = None
183
183
  # Don't use – reserved for future use.
184
184
  is_resource_account: Optional[bool] = None
@@ -12,27 +12,27 @@ class WorkbookWorksheetProtectionOptions(AdditionalDataHolder, BackedModel, Pars
12
12
 
13
13
  # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
14
14
  additional_data: dict[str, Any] = field(default_factory=dict)
15
- # Indicates whether the worksheet protection option to allow the use of the autofilter feature is enabled.
15
+ # Represents the worksheet protection option of allowing using auto filter feature.
16
16
  allow_auto_filter: Optional[bool] = None
17
- # Indicates whether the worksheet protection option to allow deleting columns is enabled.
17
+ # Represents the worksheet protection option of allowing deleting columns.
18
18
  allow_delete_columns: Optional[bool] = None
19
- # Indicates whether the worksheet protection option to allow deleting rows is enabled.
19
+ # Represents the worksheet protection option of allowing deleting rows.
20
20
  allow_delete_rows: Optional[bool] = None
21
- # Indicates whether the worksheet protection option to allow formatting cells is enabled.
21
+ # Represents the worksheet protection option of allowing formatting cells.
22
22
  allow_format_cells: Optional[bool] = None
23
- # Indicates whether the worksheet protection option to allow formatting columns is enabled.
23
+ # Represents the worksheet protection option of allowing formatting columns.
24
24
  allow_format_columns: Optional[bool] = None
25
- # Indicates whether the worksheet protection option to allow formatting rows is enabled.
25
+ # Represents the worksheet protection option of allowing formatting rows.
26
26
  allow_format_rows: Optional[bool] = None
27
- # Indicates whether the worksheet protection option to allow inserting columns is enabled.
27
+ # Represents the worksheet protection option of allowing inserting columns.
28
28
  allow_insert_columns: Optional[bool] = None
29
- # Indicates whether the worksheet protection option to allow inserting hyperlinks is enabled.
29
+ # Represents the worksheet protection option of allowing inserting hyperlinks.
30
30
  allow_insert_hyperlinks: Optional[bool] = None
31
- # Indicates whether the worksheet protection option to allow inserting rows is enabled.
31
+ # Represents the worksheet protection option of allowing inserting rows.
32
32
  allow_insert_rows: Optional[bool] = None
33
- # Indicates whether the worksheet protection option to allow the use of the pivot table feature is enabled.
33
+ # Represents the worksheet protection option of allowing using pivot table feature.
34
34
  allow_pivot_tables: Optional[bool] = None
35
- # Indicates whether the worksheet protection option to allow the use of the sort feature is enabled.
35
+ # Represents the worksheet protection option of allowing using sort feature.
36
36
  allow_sort: Optional[bool] = None
37
37
  # The OdataType property
38
38
  odata_type: Optional[str] = None
@@ -49,10 +49,10 @@ class BannerLogoRequestBuilder(BaseRequestBuilder):
49
49
 
50
50
  async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[bytes]:
51
51
  """
52
- Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method.
52
+ Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL.
53
53
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
54
54
  Returns: bytes
55
- Find more info here: https://learn.microsoft.com/graph/api/organizationalbranding-get?view=graph-rest-1.0
55
+ Find more info here: https://learn.microsoft.com/graph/api/organizationalbrandinglocalization-get?view=graph-rest-1.0
56
56
  """
57
57
  request_info = self.to_get_request_information(
58
58
  request_configuration
@@ -104,7 +104,7 @@ class BannerLogoRequestBuilder(BaseRequestBuilder):
104
104
 
105
105
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
106
106
  """
107
- Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method.
107
+ Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL.
108
108
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
109
109
  Returns: RequestInformation
110
110
  """
@@ -59,10 +59,10 @@ class OrganizationItemRequestBuilder(BaseRequestBuilder):
59
59
 
60
60
  async def get(self,request_configuration: Optional[RequestConfiguration[OrganizationItemRequestBuilderGetQueryParameters]] = None) -> Optional[Organization]:
61
61
  """
62
- Read properties and relationships of the organization object.
62
+ Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance.
63
63
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
64
64
  Returns: Optional[Organization]
65
- Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-organization-get?view=graph-rest-1.0
65
+ Find more info here: https://learn.microsoft.com/graph/api/organization-get?view=graph-rest-1.0
66
66
  """
67
67
  request_info = self.to_get_request_information(
68
68
  request_configuration
@@ -80,11 +80,11 @@ class OrganizationItemRequestBuilder(BaseRequestBuilder):
80
80
 
81
81
  async def patch(self,body: Organization, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[Organization]:
82
82
  """
83
- Update the properties of a organization object.
83
+ Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization.
84
84
  param body: The request body
85
85
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
86
86
  Returns: Optional[Organization]
87
- Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-organization-update?view=graph-rest-1.0
87
+ Find more info here: https://learn.microsoft.com/graph/api/organization-update?view=graph-rest-1.0
88
88
  """
89
89
  if body is None:
90
90
  raise TypeError("body cannot be null.")
@@ -115,7 +115,7 @@ class OrganizationItemRequestBuilder(BaseRequestBuilder):
115
115
 
116
116
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[OrganizationItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
117
117
  """
118
- Read properties and relationships of the organization object.
118
+ Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance.
119
119
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
120
120
  Returns: RequestInformation
121
121
  """
@@ -126,7 +126,7 @@ class OrganizationItemRequestBuilder(BaseRequestBuilder):
126
126
 
127
127
  def to_patch_request_information(self,body: Organization, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
128
128
  """
129
- Update the properties of a organization object.
129
+ Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization.
130
130
  param body: The request body
131
131
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
132
132
  Returns: RequestInformation
@@ -240,7 +240,7 @@ class OrganizationItemRequestBuilder(BaseRequestBuilder):
240
240
  @dataclass
241
241
  class OrganizationItemRequestBuilderGetQueryParameters():
242
242
  """
243
- Read properties and relationships of the organization object.
243
+ Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance.
244
244
  """
245
245
  def get_query_parameter(self,original_name: str) -> str:
246
246
  """
@@ -32,7 +32,7 @@ class RestoreRequestBuilder(BaseRequestBuilder):
32
32
 
33
33
  async def post(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DirectoryObject]:
34
34
  """
35
- Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
35
+ Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal
36
36
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
37
37
  Returns: Optional[DirectoryObject]
38
38
  Find more info here: https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0
@@ -53,7 +53,7 @@ class RestoreRequestBuilder(BaseRequestBuilder):
53
53
 
54
54
  def to_post_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
55
55
  """
56
- Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
56
+ Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal
57
57
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
58
58
  Returns: RequestInformation
59
59
  """
@@ -32,7 +32,7 @@ class RestoreRequestBuilder(BaseRequestBuilder):
32
32
 
33
33
  async def post(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DirectoryObject]:
34
34
  """
35
- Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
35
+ Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal
36
36
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
37
37
  Returns: Optional[DirectoryObject]
38
38
  Find more info here: https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0
@@ -53,7 +53,7 @@ class RestoreRequestBuilder(BaseRequestBuilder):
53
53
 
54
54
  def to_post_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
55
55
  """
56
- Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
56
+ Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal
57
57
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
58
58
  Returns: RequestInformation
59
59
  """
@@ -17,6 +17,7 @@ if TYPE_CHECKING:
17
17
  from .....models.o_data_errors.o_data_error import ODataError
18
18
  from .....models.partners.billing.billing_reconciliation import BillingReconciliation
19
19
  from .billed.billed_request_builder import BilledRequestBuilder
20
+ from .unbilled.unbilled_request_builder import UnbilledRequestBuilder
20
21
 
21
22
  class ReconciliationRequestBuilder(BaseRequestBuilder):
22
23
  """
@@ -148,6 +149,15 @@ class ReconciliationRequestBuilder(BaseRequestBuilder):
148
149
 
149
150
  return BilledRequestBuilder(self.request_adapter, self.path_parameters)
150
151
 
152
+ @property
153
+ def unbilled(self) -> UnbilledRequestBuilder:
154
+ """
155
+ Provides operations to manage the unbilled property of the microsoft.graph.partners.billing.billingReconciliation entity.
156
+ """
157
+ from .unbilled.unbilled_request_builder import UnbilledRequestBuilder
158
+
159
+ return UnbilledRequestBuilder(self.request_adapter, self.path_parameters)
160
+
151
161
  @dataclass
152
162
  class ReconciliationRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]):
153
163
  """
@@ -0,0 +1,68 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
5
+ from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
6
+ from typing import Any, Optional, TYPE_CHECKING, Union
7
+
8
+ if TYPE_CHECKING:
9
+ from .......models.partners.billing.attribute_set import AttributeSet
10
+ from .......models.partners.billing.billing_period import BillingPeriod
11
+
12
+ @dataclass
13
+ class ExportPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
14
+ # Stores model information.
15
+ backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
16
+
17
+ # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
18
+ additional_data: dict[str, Any] = field(default_factory=dict)
19
+ # The attributeSet property
20
+ attribute_set: Optional[AttributeSet] = None
21
+ # The billingPeriod property
22
+ billing_period: Optional[BillingPeriod] = None
23
+ # The currencyCode property
24
+ currency_code: Optional[str] = None
25
+
26
+ @staticmethod
27
+ def create_from_discriminator_value(parse_node: ParseNode) -> ExportPostRequestBody:
28
+ """
29
+ Creates a new instance of the appropriate class based on discriminator value
30
+ param parse_node: The parse node to use to read the discriminator value and create the object
31
+ Returns: ExportPostRequestBody
32
+ """
33
+ if parse_node is None:
34
+ raise TypeError("parse_node cannot be null.")
35
+ return ExportPostRequestBody()
36
+
37
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
38
+ """
39
+ The deserialization information for the current model
40
+ Returns: dict[str, Callable[[ParseNode], None]]
41
+ """
42
+ from .......models.partners.billing.attribute_set import AttributeSet
43
+ from .......models.partners.billing.billing_period import BillingPeriod
44
+
45
+ from .......models.partners.billing.attribute_set import AttributeSet
46
+ from .......models.partners.billing.billing_period import BillingPeriod
47
+
48
+ fields: dict[str, Callable[[Any], None]] = {
49
+ "attributeSet": lambda n : setattr(self, 'attribute_set', n.get_enum_value(AttributeSet)),
50
+ "billingPeriod": lambda n : setattr(self, 'billing_period', n.get_enum_value(BillingPeriod)),
51
+ "currencyCode": lambda n : setattr(self, 'currency_code', n.get_str_value()),
52
+ }
53
+ return fields
54
+
55
+ def serialize(self,writer: SerializationWriter) -> None:
56
+ """
57
+ Serializes information the current object
58
+ param writer: Serialization writer to use to serialize this model
59
+ Returns: None
60
+ """
61
+ if writer is None:
62
+ raise TypeError("writer cannot be null.")
63
+ writer.write_enum_value("attributeSet", self.attribute_set)
64
+ writer.write_enum_value("billingPeriod", self.billing_period)
65
+ writer.write_str_value("currencyCode", self.currency_code)
66
+ writer.write_additional_data_value(self.additional_data)
67
+
68
+
@@ -0,0 +1,89 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.base_request_builder import BaseRequestBuilder
5
+ from kiota_abstractions.base_request_configuration import RequestConfiguration
6
+ from kiota_abstractions.default_query_parameters import QueryParameters
7
+ from kiota_abstractions.get_path_parameters import get_path_parameters
8
+ from kiota_abstractions.method import Method
9
+ from kiota_abstractions.request_adapter import RequestAdapter
10
+ from kiota_abstractions.request_information import RequestInformation
11
+ from kiota_abstractions.request_option import RequestOption
12
+ from kiota_abstractions.serialization import Parsable, ParsableFactory
13
+ from typing import Any, Optional, TYPE_CHECKING, Union
14
+ from warnings import warn
15
+
16
+ if TYPE_CHECKING:
17
+ from .......models.o_data_errors.o_data_error import ODataError
18
+ from .......models.partners.billing.operation import Operation
19
+ from .export_post_request_body import ExportPostRequestBody
20
+
21
+ class MicrosoftGraphPartnersBillingExportRequestBuilder(BaseRequestBuilder):
22
+ """
23
+ Provides operations to call the export method.
24
+ """
25
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
26
+ """
27
+ Instantiates a new MicrosoftGraphPartnersBillingExportRequestBuilder and sets the default values.
28
+ param path_parameters: The raw url or the url-template parameters for the request.
29
+ param request_adapter: The request adapter to use to execute the requests.
30
+ Returns: None
31
+ """
32
+ super().__init__(request_adapter, "{+baseurl}/reports/partners/billing/reconciliation/unbilled/microsoft.graph.partners.billing.export", path_parameters)
33
+
34
+ async def post(self,body: ExportPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[Operation]:
35
+ """
36
+ Invoke action export
37
+ param body: The request body
38
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
39
+ Returns: Optional[Operation]
40
+ """
41
+ if body is None:
42
+ raise TypeError("body cannot be null.")
43
+ request_info = self.to_post_request_information(
44
+ body, request_configuration
45
+ )
46
+ from .......models.o_data_errors.o_data_error import ODataError
47
+
48
+ error_mapping: dict[str, type[ParsableFactory]] = {
49
+ "XXX": ODataError,
50
+ }
51
+ if not self.request_adapter:
52
+ raise Exception("Http core is null")
53
+ from .......models.partners.billing.operation import Operation
54
+
55
+ return await self.request_adapter.send_async(request_info, Operation, error_mapping)
56
+
57
+ def to_post_request_information(self,body: ExportPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
58
+ """
59
+ Invoke action export
60
+ param body: The request body
61
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
62
+ Returns: RequestInformation
63
+ """
64
+ if body is None:
65
+ raise TypeError("body cannot be null.")
66
+ request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
67
+ request_info.configure(request_configuration)
68
+ request_info.headers.try_add("Accept", "application/json")
69
+ request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
70
+ return request_info
71
+
72
+ def with_url(self,raw_url: str) -> MicrosoftGraphPartnersBillingExportRequestBuilder:
73
+ """
74
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
75
+ param raw_url: The raw URL to use for the request builder.
76
+ Returns: MicrosoftGraphPartnersBillingExportRequestBuilder
77
+ """
78
+ if raw_url is None:
79
+ raise TypeError("raw_url cannot be null.")
80
+ return MicrosoftGraphPartnersBillingExportRequestBuilder(self.request_adapter, raw_url)
81
+
82
+ @dataclass
83
+ class MicrosoftGraphPartnersBillingExportRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
84
+ """
85
+ Configuration for the request such as headers, query parameters, and middleware options.
86
+ """
87
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
88
+
89
+
@@ -0,0 +1,198 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.base_request_builder import BaseRequestBuilder
5
+ from kiota_abstractions.base_request_configuration import RequestConfiguration
6
+ from kiota_abstractions.default_query_parameters import QueryParameters
7
+ from kiota_abstractions.get_path_parameters import get_path_parameters
8
+ from kiota_abstractions.method import Method
9
+ from kiota_abstractions.request_adapter import RequestAdapter
10
+ from kiota_abstractions.request_information import RequestInformation
11
+ from kiota_abstractions.request_option import RequestOption
12
+ from kiota_abstractions.serialization import Parsable, ParsableFactory
13
+ from typing import Any, Optional, TYPE_CHECKING, Union
14
+ from warnings import warn
15
+
16
+ if TYPE_CHECKING:
17
+ from ......models.o_data_errors.o_data_error import ODataError
18
+ from ......models.partners.billing.unbilled_reconciliation import UnbilledReconciliation
19
+ from .microsoft_graph_partners_billing_export.microsoft_graph_partners_billing_export_request_builder import MicrosoftGraphPartnersBillingExportRequestBuilder
20
+
21
+ class UnbilledRequestBuilder(BaseRequestBuilder):
22
+ """
23
+ Provides operations to manage the unbilled property of the microsoft.graph.partners.billing.billingReconciliation entity.
24
+ """
25
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
26
+ """
27
+ Instantiates a new UnbilledRequestBuilder and sets the default values.
28
+ param path_parameters: The raw url or the url-template parameters for the request.
29
+ param request_adapter: The request adapter to use to execute the requests.
30
+ Returns: None
31
+ """
32
+ super().__init__(request_adapter, "{+baseurl}/reports/partners/billing/reconciliation/unbilled{?%24expand,%24select}", path_parameters)
33
+
34
+ async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
35
+ """
36
+ Delete navigation property unbilled for reports
37
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
38
+ Returns: None
39
+ """
40
+ request_info = self.to_delete_request_information(
41
+ request_configuration
42
+ )
43
+ from ......models.o_data_errors.o_data_error import ODataError
44
+
45
+ error_mapping: dict[str, type[ParsableFactory]] = {
46
+ "XXX": ODataError,
47
+ }
48
+ if not self.request_adapter:
49
+ raise Exception("Http core is null")
50
+ return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
51
+
52
+ async def get(self,request_configuration: Optional[RequestConfiguration[UnbilledRequestBuilderGetQueryParameters]] = None) -> Optional[UnbilledReconciliation]:
53
+ """
54
+ Get unbilled from reports
55
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
56
+ Returns: Optional[UnbilledReconciliation]
57
+ """
58
+ request_info = self.to_get_request_information(
59
+ request_configuration
60
+ )
61
+ from ......models.o_data_errors.o_data_error import ODataError
62
+
63
+ error_mapping: dict[str, type[ParsableFactory]] = {
64
+ "XXX": ODataError,
65
+ }
66
+ if not self.request_adapter:
67
+ raise Exception("Http core is null")
68
+ from ......models.partners.billing.unbilled_reconciliation import UnbilledReconciliation
69
+
70
+ return await self.request_adapter.send_async(request_info, UnbilledReconciliation, error_mapping)
71
+
72
+ async def patch(self,body: UnbilledReconciliation, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[UnbilledReconciliation]:
73
+ """
74
+ Update the navigation property unbilled in reports
75
+ param body: The request body
76
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
77
+ Returns: Optional[UnbilledReconciliation]
78
+ """
79
+ if body is None:
80
+ raise TypeError("body cannot be null.")
81
+ request_info = self.to_patch_request_information(
82
+ body, request_configuration
83
+ )
84
+ from ......models.o_data_errors.o_data_error import ODataError
85
+
86
+ error_mapping: dict[str, type[ParsableFactory]] = {
87
+ "XXX": ODataError,
88
+ }
89
+ if not self.request_adapter:
90
+ raise Exception("Http core is null")
91
+ from ......models.partners.billing.unbilled_reconciliation import UnbilledReconciliation
92
+
93
+ return await self.request_adapter.send_async(request_info, UnbilledReconciliation, error_mapping)
94
+
95
+ def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
96
+ """
97
+ Delete navigation property unbilled for reports
98
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
99
+ Returns: RequestInformation
100
+ """
101
+ request_info = RequestInformation(Method.DELETE, self.url_template, self.path_parameters)
102
+ request_info.configure(request_configuration)
103
+ request_info.headers.try_add("Accept", "application/json")
104
+ return request_info
105
+
106
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[UnbilledRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
107
+ """
108
+ Get unbilled from reports
109
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
110
+ Returns: RequestInformation
111
+ """
112
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
113
+ request_info.configure(request_configuration)
114
+ request_info.headers.try_add("Accept", "application/json")
115
+ return request_info
116
+
117
+ def to_patch_request_information(self,body: UnbilledReconciliation, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
118
+ """
119
+ Update the navigation property unbilled in reports
120
+ param body: The request body
121
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
122
+ Returns: RequestInformation
123
+ """
124
+ if body is None:
125
+ raise TypeError("body cannot be null.")
126
+ request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters)
127
+ request_info.configure(request_configuration)
128
+ request_info.headers.try_add("Accept", "application/json")
129
+ request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
130
+ return request_info
131
+
132
+ def with_url(self,raw_url: str) -> UnbilledRequestBuilder:
133
+ """
134
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
135
+ param raw_url: The raw URL to use for the request builder.
136
+ Returns: UnbilledRequestBuilder
137
+ """
138
+ if raw_url is None:
139
+ raise TypeError("raw_url cannot be null.")
140
+ return UnbilledRequestBuilder(self.request_adapter, raw_url)
141
+
142
+ @property
143
+ def microsoft_graph_partners_billing_export(self) -> MicrosoftGraphPartnersBillingExportRequestBuilder:
144
+ """
145
+ Provides operations to call the export method.
146
+ """
147
+ from .microsoft_graph_partners_billing_export.microsoft_graph_partners_billing_export_request_builder import MicrosoftGraphPartnersBillingExportRequestBuilder
148
+
149
+ return MicrosoftGraphPartnersBillingExportRequestBuilder(self.request_adapter, self.path_parameters)
150
+
151
+ @dataclass
152
+ class UnbilledRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]):
153
+ """
154
+ Configuration for the request such as headers, query parameters, and middleware options.
155
+ """
156
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
157
+
158
+ @dataclass
159
+ class UnbilledRequestBuilderGetQueryParameters():
160
+ """
161
+ Get unbilled from reports
162
+ """
163
+ def get_query_parameter(self,original_name: str) -> str:
164
+ """
165
+ Maps the query parameters names to their encoded names for the URI template parsing.
166
+ param original_name: The original query parameter name in the class.
167
+ Returns: str
168
+ """
169
+ if original_name is None:
170
+ raise TypeError("original_name cannot be null.")
171
+ if original_name == "expand":
172
+ return "%24expand"
173
+ if original_name == "select":
174
+ return "%24select"
175
+ return original_name
176
+
177
+ # Expand related entities
178
+ expand: Optional[list[str]] = None
179
+
180
+ # Select properties to be returned
181
+ select: Optional[list[str]] = None
182
+
183
+
184
+ @dataclass
185
+ class UnbilledRequestBuilderGetRequestConfiguration(RequestConfiguration[UnbilledRequestBuilderGetQueryParameters]):
186
+ """
187
+ Configuration for the request such as headers, query parameters, and middleware options.
188
+ """
189
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
190
+
191
+ @dataclass
192
+ class UnbilledRequestBuilderPatchRequestConfiguration(RequestConfiguration[QueryParameters]):
193
+ """
194
+ Configuration for the request such as headers, query parameters, and middleware options.
195
+ """
196
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
197
+
198
+