Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
bfcb69b
chore(deps-dev): bump typing-extensions from 4.14.1 to 4.15.0
dependabot[bot] Oct 6, 2025
ac6d7bb
chore(deps-dev): bump cffi from 1.17.1 to 2.0.0
dependabot[bot] Oct 6, 2025
44d01e5
chore(deps-dev): bump msgraph-core from 1.3.5 to 1.3.8
dependabot[bot] Oct 6, 2025
c5d75e1
chore(deps-dev): bump platformdirs from 4.3.8 to 4.4.0
dependabot[bot] Oct 6, 2025
5937689
chore(deps-dev): bump mypy from 1.17.1 to 1.18.2
dependabot[bot] Oct 6, 2025
3e63f74
chore(deps-dev): bump pycparser from 2.22 to 2.23
dependabot[bot] Oct 6, 2025
ebe8dfd
chore(deps): bump github/codeql-action from 3 to 4
dependabot[bot] Oct 8, 2025
b8ffcc9
chore(deps): bump actions/upload-artifact from 4 to 5
dependabot[bot] Oct 27, 2025
d14c46f
chore(deps-dev): bump the open-telemetry group with 3 updates
dependabot[bot] Oct 31, 2025
99d887f
chore(deps-dev): bump the kiota group with 7 updates
dependabot[bot] Oct 31, 2025
006bd7c
chore(deps-dev): bump the azure-identity group with 2 updates
dependabot[bot] Oct 31, 2025
5962974
feat(generation): update request builders and models
Nov 4, 2025
e8217a3
Merge remote-tracking branch 'remotes/origin/dependabot/github_action…
MIchaelMainer Nov 6, 2025
e47e6f5
Merge remote-tracking branch 'remotes/origin/dependabot/github_action…
MIchaelMainer Nov 6, 2025
5bdcc31
Merge remote-tracking branch 'remotes/origin/dependabot/pip/azure-ide…
MIchaelMainer Nov 6, 2025
9dabe7d
Merge remote-tracking branch 'remotes/origin/dependabot/pip/cffi-2.0.…
MIchaelMainer Nov 6, 2025
afa5aff
Merge remote-tracking branch 'remotes/origin/dependabot/pip/kiota-7b3…
MIchaelMainer Nov 6, 2025
1770ab9
Merge remote-tracking branch 'remotes/origin/dependabot/pip/msgraph-c…
MIchaelMainer Nov 6, 2025
7fc7480
Merge remote-tracking branch 'remotes/origin/dependabot/pip/mypy-1.18…
MIchaelMainer Nov 6, 2025
2852e41
Merge remote-tracking branch 'remotes/origin/dependabot/pip/open-tele…
MIchaelMainer Nov 6, 2025
eaeec88
Merge remote-tracking branch 'remotes/origin/dependabot/pip/platformd…
MIchaelMainer Nov 6, 2025
ab0fdf1
Merge remote-tracking branch 'remotes/origin/dependabot/pip/pycparser…
MIchaelMainer Nov 6, 2025
fe14365
Merge remote-tracking branch 'remotes/origin/dependabot/pip/typing-ex…
MIchaelMainer Nov 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -64,7 +64,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@v4

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -77,6 +77,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"
4 changes: 2 additions & 2 deletions .github/workflows/validate-public-api-surface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload patch file as artifact
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
continue-on-error: true
with:
name: patch
path: '*.patch'
- name: Upload explanations file as artifact
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
continue-on-error: true
with:
name: explanations
Expand Down
2 changes: 1 addition & 1 deletion msgraph/generated/base_graph_service_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def permission_grants(self) -> PermissionGrantsRequestBuilder:
@property
def places(self) -> PlacesRequestBuilder:
"""
The places property
Provides operations to manage the collection of place entities.
"""
from .places.places_request_builder import PlacesRequestBuilder

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
if TYPE_CHECKING:
from .....models.education_assignment_settings import EducationAssignmentSettings
from .....models.o_data_errors.o_data_error import ODataError
from .default_grading_scheme.default_grading_scheme_request_builder import DefaultGradingSchemeRequestBuilder
from .grading_categories.grading_categories_request_builder import GradingCategoriesRequestBuilder
from .grading_schemes.grading_schemes_request_builder import GradingSchemesRequestBuilder

class AssignmentSettingsRequestBuilder(BaseRequestBuilder):
"""
Expand Down Expand Up @@ -140,6 +142,15 @@ def with_url(self,raw_url: str) -> AssignmentSettingsRequestBuilder:
raise TypeError("raw_url cannot be null.")
return AssignmentSettingsRequestBuilder(self.request_adapter, raw_url)

@property
def default_grading_scheme(self) -> DefaultGradingSchemeRequestBuilder:
"""
Provides operations to manage the defaultGradingScheme property of the microsoft.graph.educationAssignmentSettings entity.
"""
from .default_grading_scheme.default_grading_scheme_request_builder import DefaultGradingSchemeRequestBuilder

return DefaultGradingSchemeRequestBuilder(self.request_adapter, self.path_parameters)

@property
def grading_categories(self) -> GradingCategoriesRequestBuilder:
"""
Expand All @@ -149,6 +160,15 @@ def grading_categories(self) -> GradingCategoriesRequestBuilder:

return GradingCategoriesRequestBuilder(self.request_adapter, self.path_parameters)

@property
def grading_schemes(self) -> GradingSchemesRequestBuilder:
"""
Provides operations to manage the gradingSchemes property of the microsoft.graph.educationAssignmentSettings entity.
"""
from .grading_schemes.grading_schemes_request_builder import GradingSchemesRequestBuilder

return GradingSchemesRequestBuilder(self.request_adapter, self.path_parameters)

@dataclass
class AssignmentSettingsRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]):
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
from kiota_abstractions.default_query_parameters import QueryParameters
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
from kiota_abstractions.request_option import RequestOption
from kiota_abstractions.serialization import Parsable, ParsableFactory
from typing import Any, Optional, TYPE_CHECKING, Union
from warnings import warn

if TYPE_CHECKING:
from ......models.education_grading_scheme import EducationGradingScheme
from ......models.o_data_errors.o_data_error import ODataError

class DefaultGradingSchemeRequestBuilder(BaseRequestBuilder):
"""
Provides operations to manage the defaultGradingScheme property of the microsoft.graph.educationAssignmentSettings entity.
"""
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
"""
Instantiates a new DefaultGradingSchemeRequestBuilder and sets the default values.
param path_parameters: The raw url or the url-template parameters for the request.
param request_adapter: The request adapter to use to execute the requests.
Returns: None
"""
super().__init__(request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/defaultGradingScheme{?%24expand,%24select}", path_parameters)

async def get(self,request_configuration: Optional[RequestConfiguration[DefaultGradingSchemeRequestBuilderGetQueryParameters]] = None) -> Optional[EducationGradingScheme]:
"""
The default grading scheme for assignments created in this class.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[EducationGradingScheme]
"""
request_info = self.to_get_request_information(
request_configuration
)
from ......models.o_data_errors.o_data_error import ODataError

error_mapping: dict[str, type[ParsableFactory]] = {
"XXX": ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
from ......models.education_grading_scheme import EducationGradingScheme

return await self.request_adapter.send_async(request_info, EducationGradingScheme, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DefaultGradingSchemeRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
The default grading scheme for assignments created in this class.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
request_info.headers.try_add("Accept", "application/json")
return request_info

def with_url(self,raw_url: str) -> DefaultGradingSchemeRequestBuilder:
"""
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
param raw_url: The raw URL to use for the request builder.
Returns: DefaultGradingSchemeRequestBuilder
"""
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return DefaultGradingSchemeRequestBuilder(self.request_adapter, raw_url)

@dataclass
class DefaultGradingSchemeRequestBuilderGetQueryParameters():
"""
The default grading scheme for assignments created in this class.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Maps the query parameters names to their encoded names for the URI template parsing.
param original_name: The original query parameter name in the class.
Returns: str
"""
if original_name is None:
raise TypeError("original_name cannot be null.")
if original_name == "expand":
return "%24expand"
if original_name == "select":
return "%24select"
return original_name

# Expand related entities
expand: Optional[list[str]] = None

# Select properties to be returned
select: Optional[list[str]] = None


@dataclass
class DefaultGradingSchemeRequestBuilderGetRequestConfiguration(RequestConfiguration[DefaultGradingSchemeRequestBuilderGetQueryParameters]):
"""
Configuration for the request such as headers, query parameters, and middleware options.
"""
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)


Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
from kiota_abstractions.default_query_parameters import QueryParameters
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
from kiota_abstractions.request_option import RequestOption
from kiota_abstractions.serialization import Parsable, ParsableFactory
from typing import Any, Optional, TYPE_CHECKING, Union
from warnings import warn

if TYPE_CHECKING:
from .......models.o_data_errors.o_data_error import ODataError

class CountRequestBuilder(BaseRequestBuilder):
"""
Provides operations to count the resources in the collection.
"""
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
"""
Instantiates a new CountRequestBuilder and sets the default values.
param path_parameters: The raw url or the url-template parameters for the request.
param request_adapter: The request adapter to use to execute the requests.
Returns: None
"""
super().__init__(request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes/$count{?%24filter,%24search}", path_parameters)

async def get(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> Optional[int]:
"""
Get the number of the resource
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[int]
"""
request_info = self.to_get_request_information(
request_configuration
)
from .......models.o_data_errors.o_data_error import ODataError

error_mapping: dict[str, type[ParsableFactory]] = {
"XXX": ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
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:
"""
Get the number of the resource
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
request_info.headers.try_add("Accept", "text/plain;q=0.9")
return request_info

def with_url(self,raw_url: str) -> CountRequestBuilder:
"""
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
param raw_url: The raw URL to use for the request builder.
Returns: CountRequestBuilder
"""
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return CountRequestBuilder(self.request_adapter, raw_url)

@dataclass
class CountRequestBuilderGetQueryParameters():
"""
Get the number of the resource
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Maps the query parameters names to their encoded names for the URI template parsing.
param original_name: The original query parameter name in the class.
Returns: str
"""
if original_name is None:
raise TypeError("original_name cannot be null.")
if original_name == "filter":
return "%24filter"
if original_name == "search":
return "%24search"
return original_name

# Filter items by property values
filter: Optional[str] = None

# Search items by search phrases
search: Optional[str] = None


@dataclass
class CountRequestBuilderGetRequestConfiguration(RequestConfiguration[CountRequestBuilderGetQueryParameters]):
"""
Configuration for the request such as headers, query parameters, and middleware options.
"""
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)


Loading