Skip to content

Commit

Permalink
feat(generation): update request builders and models
Browse files Browse the repository at this point in the history
Update generated files with build 169540
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Nov 5, 2024
1 parent ec978a0 commit b862e18
Show file tree
Hide file tree
Showing 9,477 changed files with 36,273 additions and 4,178 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .......models.browser_shared_cookie import BrowserSharedCookie
from .......models.browser_site import BrowserSite

writer.write_str_value("revision", self.revision)
writer.write_collection_of_object_values("sharedCookies", self.shared_cookies)
writer.write_collection_of_object_values("sites", self.sites)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
6 changes: 3 additions & 3 deletions msgraph_beta/generated/admin/entra/entra_request_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[EntraRequestBuilderGetQueryParameters]] = None) -> Optional[Entra]:
"""
Get entra from admin
A container for Microsoft Entra resources. Read-only.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[Entra]
"""
Expand Down Expand Up @@ -108,7 +108,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[EntraRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get entra from admin
A container for Microsoft Entra resources. Read-only.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -164,7 +164,7 @@ class EntraRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryPa
@dataclass
class EntraRequestBuilderGetQueryParameters():
"""
Get entra from admin
A container for Microsoft Entra resources. Read-only.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[UxSettingRequestBuilderGetQueryParameters]] = None) -> Optional[UxSetting]:
"""
Get uxSetting from admin
Get the properties and relationships of a uxSetting object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[UxSetting]
Find more info here: https://learn.microsoft.com/graph/api/uxsetting-get?view=graph-rest-beta
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
request_info = self.to_get_request_information(
Expand All @@ -71,10 +72,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[UxSettin

async def patch(self,body: UxSetting, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[UxSetting]:
"""
Update the navigation property uxSetting in admin
Update the properties of a uxSetting object.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[UxSetting]
Find more info here: https://learn.microsoft.com/graph/api/uxsetting-update?view=graph-rest-beta
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
if body is None:
Expand Down Expand Up @@ -107,7 +109,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[UxSettingRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get uxSetting from admin
Get the properties and relationships of a uxSetting object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand All @@ -119,7 +121,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi

def to_patch_request_information(self,body: UxSetting, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Update the navigation property uxSetting in admin
Update the properties of a uxSetting object.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
Expand Down Expand Up @@ -154,7 +156,7 @@ class UxSettingRequestBuilderDeleteRequestConfiguration(RequestConfiguration[Que
@dataclass
class UxSettingRequestBuilderGetQueryParameters():
"""
Get uxSetting from admin
Get the properties and relationships of a uxSetting object.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
}
if not self.request_adapter:
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
return await self.request_adapter.send_primitive_async(request_info, int, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .........models.windows_updates.updatable_asset import UpdatableAsset

writer.write_collection_of_object_values("assets", self.assets)
writer.write_additional_data_value(self.additional_data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from .........models.windows_updates.updatable_asset import UpdatableAsset

writer.write_collection_of_object_values("assets", self.assets)
writer.write_additional_data_value(self.additional_data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
from ........models.windows_updates.updatable_asset import UpdatableAsset
from ........models.windows_updates.update_category import UpdateCategory

writer.write_collection_of_object_values("assets", self.assets)
writer.write_enum_value("updateCategory", self.update_category)
writer.write_additional_data_value(self.additional_data)
Expand Down
Loading

0 comments on commit b862e18

Please sign in to comment.