Skip to content

Commit

Permalink
Merge branch 'shem/update_release_configurations_use_flint' of github…
Browse files Browse the repository at this point in the history
….com:microsoftgraph/msgraph-sdk-python into shem/update_release_configurations_use_flint
  • Loading branch information
shemogumbe committed Jun 12, 2024
2 parents cd699f3 + 93f1d29 commit 42cfcf0
Show file tree
Hide file tree
Showing 1,170 changed files with 3,612 additions and 12,861 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/project-auto-add.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ on:
types:
- opened
branches:
- 'main'
- "main"

jobs:
track_issue:
if: github.actor != 'dependabot[bot]'
if: github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
steps:
- name: Generate token
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ client = GraphServiceClient(credentials=credentials, scopes=scopes)

After you have a **GraphServiceClient** that is authenticated, you can begin making calls against the service. The requests against the service look like our [REST API](https://docs.microsoft.com/graph/api/overview?view=graph-rest-1.0).

> **Note**: This SDK offers an asynchronous API by default. Async is a concurrency model that is far more efficient than multi-threading, and can provide significant performance benefits and enable the use of long-lived network connections such as WebSockets. We support popular python async envronments such as `asyncio`, `anyio` or `trio`.
> **Note**: This SDK offers an asynchronous API by default. Async is a concurrency model that is far more efficient than multi-threading, and can provide significant performance benefits and enable the use of long-lived network connections such as WebSockets. We support popular python async environments such as `asyncio`, `anyio` or `trio`.
The following is a complete example that shows how to fetch a user from Microsoft Graph.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> bytes:
"""
The attachment content.
Read the properties and relationships of a serviceAnnouncementAttachment object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: bytes
Find more info here: https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -101,7 +102,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
The attachment content.
Read the properties and relationships of a serviceAnnouncementAttachment object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
param request_adapter: The request adapter to use to execute the requests.
Returns: None
"""
super().__init__(request_adapter, "{+baseurl}/agreementAcceptances{?%24count,%24filter,%24search,%24select,%24skip,%24top}", path_parameters)
super().__init__(request_adapter, "{+baseurl}/agreementAcceptances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)

def by_agreement_acceptance_id(self,agreement_acceptance_id: str) -> AgreementAcceptanceItemRequestBuilder:
"""
Expand Down Expand Up @@ -139,8 +139,12 @@ def get_query_parameter(self,original_name: str) -> str:
raise TypeError("original_name cannot be null.")
if original_name == "count":
return "%24count"
if original_name == "expand":
return "%24expand"
if original_name == "filter":
return "%24filter"
if original_name == "orderby":
return "%24orderby"
if original_name == "search":
return "%24search"
if original_name == "select":
Expand All @@ -154,9 +158,15 @@ def get_query_parameter(self,original_name: str) -> str:
# Include count of items
count: Optional[bool] = None

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

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

# Order items by property values
orderby: Optional[List[str]] = None

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

Expand Down
12 changes: 11 additions & 1 deletion msgraph/generated/agreements/agreements_request_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
param request_adapter: The request adapter to use to execute the requests.
Returns: None
"""
super().__init__(request_adapter, "{+baseurl}/agreements{?%24count,%24filter,%24search,%24select,%24skip,%24top}", path_parameters)
super().__init__(request_adapter, "{+baseurl}/agreements{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)

def by_agreement_id(self,agreement_id: str) -> AgreementItemRequestBuilder:
"""
Expand Down Expand Up @@ -139,8 +139,12 @@ def get_query_parameter(self,original_name: str) -> str:
raise TypeError("original_name cannot be null.")
if original_name == "count":
return "%24count"
if original_name == "expand":
return "%24expand"
if original_name == "filter":
return "%24filter"
if original_name == "orderby":
return "%24orderby"
if original_name == "search":
return "%24search"
if original_name == "select":
Expand All @@ -154,9 +158,15 @@ def get_query_parameter(self,original_name: str) -> str:
# Include count of items
count: Optional[bool] = None

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

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

# Order items by property values
orderby: Optional[List[str]] = None

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[BotRequestBuilderGetQueryParameters]] = None) -> Optional[TeamworkBot]:
"""
The details of the bot specified in the Teams app manifest.
Get the bot associated with a specific definition of the TeamsApp.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[TeamworkBot]
Find more info here: https://learn.microsoft.com/graph/api/teamworkbot-get?view=graph-rest-1.0
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -103,7 +104,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[BotRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
The details of the bot specified in the Teams app manifest.
Get the bot associated with a specific definition of the TeamsApp.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -147,7 +148,7 @@ class BotRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryPara
@dataclass
class BotRequestBuilderGetQueryParameters():
"""
The details of the bot specified in the Teams app manifest.
Get the bot associated with a specific definition of the TeamsApp.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[ConversationMemberItemRequestBuilderGetQueryParameters]] = None) -> Optional[ConversationMember]:
"""
Retrieve a conversationMember from a chat or channel.
Retrieve a conversationMember from a chat.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[ConversationMember]
Find more info here: https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0
Find more info here: https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -105,7 +105,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ConversationMemberItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Retrieve a conversationMember from a chat or channel.
Retrieve a conversationMember from a chat.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -149,7 +149,7 @@ class ConversationMemberItemRequestBuilderDeleteRequestConfiguration(RequestConf
@dataclass
class ConversationMemberItemRequestBuilderGetQueryParameters():
"""
Retrieve a conversationMember from a chat or channel.
Retrieve a conversationMember from a chat.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> bytes:
"""
The unique identifier for an entity. Read-only.
Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: bytes
Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -98,7 +99,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
The unique identifier for an entity. Read-only.
Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ def by_call_record_id(self,call_record_id: str) -> CallRecordItemRequestBuilder:

async def get(self,request_configuration: Optional[RequestConfiguration[CallRecordsRequestBuilderGetQueryParameters]] = None) -> Optional[CallRecordCollectionResponse]:
"""
Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[CallRecordCollectionResponse]
Find more info here: https://learn.microsoft.com/graph/api/callrecords-cloudcommunications-list-callrecords?view=graph-rest-1.0
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -124,7 +125,7 @@ async def post(self,body: CallRecord, request_configuration: Optional[RequestCon

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CallRecordsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -170,7 +171,7 @@ def count(self) -> CountRequestBuilder:
@dataclass
class CallRecordsRequestBuilderGetQueryParameters():
"""
Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
if TYPE_CHECKING:
from ....models.call_records.call_record import CallRecord
from ....models.o_data_errors.o_data_error import ODataError
from .organizer_v2.organizer_v2_request_builder import Organizer_v2RequestBuilder
from .participants_v2.participants_v2_request_builder import Participants_v2RequestBuilder
from .sessions.sessions_request_builder import SessionsRequestBuilder

class CallRecordItemRequestBuilder(BaseRequestBuilder):
Expand Down Expand Up @@ -50,7 +52,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[CallRecordItemRequestBuilderGetQueryParameters]] = None) -> Optional[CallRecord]:
"""
Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
Retrieve the properties and relationships of a callRecord object. You can get the id of a callRecord in two ways:* Subscribe to change notifications to the /communications/callRecords endpoint.* Use the callChainId property of a call. The call record is available only after the associated call is completed.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[CallRecord]
Find more info here: https://learn.microsoft.com/graph/api/callrecords-callrecord-get?view=graph-rest-1.0
Expand Down Expand Up @@ -105,7 +107,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CallRecordItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
Retrieve the properties and relationships of a callRecord object. You can get the id of a callRecord in two ways:* Subscribe to change notifications to the /communications/callRecords endpoint.* Use the callChainId property of a call. The call record is available only after the associated call is completed.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -139,6 +141,24 @@ def with_url(self,raw_url: str) -> CallRecordItemRequestBuilder:
raise TypeError("raw_url cannot be null.")
return CallRecordItemRequestBuilder(self.request_adapter, raw_url)

@property
def organizer_v2(self) -> Organizer_v2RequestBuilder:
"""
Provides operations to manage the organizer_v2 property of the microsoft.graph.callRecords.callRecord entity.
"""
from .organizer_v2.organizer_v2_request_builder import Organizer_v2RequestBuilder

return Organizer_v2RequestBuilder(self.request_adapter, self.path_parameters)

@property
def participants_v2(self) -> Participants_v2RequestBuilder:
"""
Provides operations to manage the participants_v2 property of the microsoft.graph.callRecords.callRecord entity.
"""
from .participants_v2.participants_v2_request_builder import Participants_v2RequestBuilder

return Participants_v2RequestBuilder(self.request_adapter, self.path_parameters)

@property
def sessions(self) -> SessionsRequestBuilder:
"""
Expand All @@ -158,7 +178,7 @@ class CallRecordItemRequestBuilderDeleteRequestConfiguration(RequestConfiguratio
@dataclass
class CallRecordItemRequestBuilderGetQueryParameters():
"""
Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
Retrieve the properties and relationships of a callRecord object. You can get the id of a callRecord in two ways:* Subscribe to change notifications to the /communications/callRecords endpoint.* Use the callChainId property of a call. The call record is available only after the associated call is completed.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Loading

0 comments on commit 42cfcf0

Please sign in to comment.