Skip to content

Commit 1df40bd

Browse files
authored
Merge branch 'main' into shem/update_release_configurtaion_use_flint
2 parents 7d88507 + a608475 commit 1df40bd

File tree

2,272 files changed

+37011
-19506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,272 files changed

+37011
-19506
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# This workflow is used to add new issues to GitHub GraphSDKs Project
2+
3+
name: Add Issue or PR to project
4+
on:
5+
issues:
6+
types:
7+
- opened
8+
pull_request:
9+
types:
10+
- opened
11+
branches:
12+
- "main"
13+
14+
jobs:
15+
track_issue:
16+
if: github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.fork == false
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Generate token
20+
id: generate_token
21+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
22+
with:
23+
app_id: ${{ secrets.GRAPHBOT_APP_ID }}
24+
private_key: ${{ secrets.GRAPHBOT_APP_PEM }}
25+
26+
- name: Get project data
27+
env:
28+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
29+
ORGANIZATION: microsoftgraph
30+
PROJECT_NUMBER: 55
31+
run: |
32+
gh api graphql -f query='
33+
query($org: String!, $number: Int!) {
34+
organization(login: $org){
35+
projectV2(number: $number) {
36+
id
37+
fields(first:20) {
38+
nodes {
39+
... on ProjectV2SingleSelectField {
40+
id
41+
name
42+
options {
43+
id
44+
name
45+
}
46+
}
47+
}
48+
}
49+
}
50+
}
51+
}' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json
52+
53+
echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV
54+
echo 'LANGUAGE_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Language") | .id' project_data.json) >> $GITHUB_ENV
55+
echo 'LANGUAGE_OPTION_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Language") | .options[] | select(.name=="Python") |.id' project_data.json) >> $GITHUB_ENV
56+
57+
- name: Add Issue or PR to project
58+
env:
59+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
60+
ISSUE_ID: ${{ github.event_name == 'issues' && github.event.issue.node_id || github.event.pull_request.node_id }}
61+
run: |
62+
item_id="$( gh api graphql -f query='
63+
mutation($project:ID!, $issue:ID!) {
64+
addProjectV2ItemById(input: {projectId: $project, contentId: $issue}) {
65+
item {
66+
id
67+
}
68+
}
69+
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectV2ItemById.item.id')"
70+
71+
echo 'ITEM_ID='$item_id >> $GITHUB_ENV
72+
73+
- name: Set Language
74+
env:
75+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
76+
run: |
77+
gh api graphql -f query='
78+
mutation (
79+
$project: ID!
80+
$item: ID!
81+
$language_field: ID!
82+
$language_value: String!
83+
) {
84+
set_status: updateProjectV2ItemFieldValue(input: {
85+
projectId: $project
86+
itemId: $item
87+
fieldId: $language_field
88+
value: {singleSelectOptionId: $language_value}
89+
}) {
90+
projectV2Item {
91+
id
92+
}
93+
}
94+
}' -f project=$PROJECT_ID -f item=$ITEM_ID -f language_field=$LANGUAGE_FIELD_ID -f language_value=${{ env.LANGUAGE_OPTION_ID }} --silent

msgraph_beta/generated/admin/service_announcement/messages/item/attachments/item/content/content_request_builder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
4949

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

102103
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
103104
"""
104-
The attachment content.
105+
Read the properties and relationships of a serviceAnnouncementAttachment object.
105106
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
106107
Returns: RequestInformation
107108
"""

msgraph_beta/generated/admin/windows/updates/updatable_assets/item/updatable_asset_item_request_builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
5454

5555
async def get(self,request_configuration: Optional[RequestConfiguration[UpdatableAssetItemRequestBuilderGetQueryParameters]] = None) -> Optional[UpdatableAsset]:
5656
"""
57-
Read the properties of an azureADDevice object.
57+
Read the properties and relationships of an updatableAsset object.
5858
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5959
Returns: Optional[UpdatableAsset]
60-
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-beta
60+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-get?view=graph-rest-beta
6161
"""
6262
request_info = self.to_get_request_information(
6363
request_configuration
@@ -109,7 +109,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
109109

110110
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[UpdatableAssetItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
111111
"""
112-
Read the properties of an azureADDevice object.
112+
Read the properties and relationships of an updatableAsset object.
113113
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
114114
Returns: RequestInformation
115115
"""
@@ -189,7 +189,7 @@ class UpdatableAssetItemRequestBuilderDeleteRequestConfiguration(RequestConfigur
189189
@dataclass
190190
class UpdatableAssetItemRequestBuilderGetQueryParameters():
191191
"""
192-
Read the properties of an azureADDevice object.
192+
Read the properties and relationships of an updatableAsset object.
193193
"""
194194
def get_query_parameter(self,original_name: str) -> str:
195195
"""

msgraph_beta/generated/admin/windows/updates/update_policies/item/compliance_changes/item/compliance_change_item_request_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Complian
7272

7373
async def patch(self,body: ComplianceChange, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ComplianceChange]:
7474
"""
75-
Update the properties of a complianceChange object.
75+
Update the properties of a contentApproval object.
7676
param body: The request body
7777
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
7878
Returns: Optional[ComplianceChange]
79-
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-beta
79+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-update?view=graph-rest-beta
8080
"""
8181
if not body:
8282
raise TypeError("body cannot be null.")
@@ -118,7 +118,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
118118

119119
def to_patch_request_information(self,body: ComplianceChange, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
120120
"""
121-
Update the properties of a complianceChange object.
121+
Update the properties of a contentApproval object.
122122
param body: The request body
123123
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
124124
Returns: RequestInformation

msgraph_beta/generated/agreement_acceptances/agreement_acceptances_request_builder.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
2929
param request_adapter: The request adapter to use to execute the requests.
3030
Returns: None
3131
"""
32-
super().__init__(request_adapter, "{+baseurl}/agreementAcceptances{?%24count,%24filter,%24search,%24select,%24skip,%24top}", path_parameters)
32+
super().__init__(request_adapter, "{+baseurl}/agreementAcceptances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)
3333

3434
def by_agreement_acceptance_id(self,agreement_acceptance_id: str) -> AgreementAcceptanceItemRequestBuilder:
3535
"""
@@ -139,8 +139,12 @@ def get_query_parameter(self,original_name: str) -> str:
139139
raise TypeError("original_name cannot be null.")
140140
if original_name == "count":
141141
return "%24count"
142+
if original_name == "expand":
143+
return "%24expand"
142144
if original_name == "filter":
143145
return "%24filter"
146+
if original_name == "orderby":
147+
return "%24orderby"
144148
if original_name == "search":
145149
return "%24search"
146150
if original_name == "select":
@@ -154,9 +158,15 @@ def get_query_parameter(self,original_name: str) -> str:
154158
# Include count of items
155159
count: Optional[bool] = None
156160

161+
# Expand related entities
162+
expand: Optional[List[str]] = None
163+
157164
# Filter items by property values
158165
filter: Optional[str] = None
159166

167+
# Order items by property values
168+
orderby: Optional[List[str]] = None
169+
160170
# Search items by search phrases
161171
search: Optional[str] = None
162172

msgraph_beta/generated/agreements/agreements_request_builder.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
2929
param request_adapter: The request adapter to use to execute the requests.
3030
Returns: None
3131
"""
32-
super().__init__(request_adapter, "{+baseurl}/agreements{?%24count,%24filter,%24search,%24select,%24skip,%24top}", path_parameters)
32+
super().__init__(request_adapter, "{+baseurl}/agreements{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)
3333

3434
def by_agreement_id(self,agreement_id: str) -> AgreementItemRequestBuilder:
3535
"""
@@ -139,8 +139,12 @@ def get_query_parameter(self,original_name: str) -> str:
139139
raise TypeError("original_name cannot be null.")
140140
if original_name == "count":
141141
return "%24count"
142+
if original_name == "expand":
143+
return "%24expand"
142144
if original_name == "filter":
143145
return "%24filter"
146+
if original_name == "orderby":
147+
return "%24orderby"
144148
if original_name == "search":
145149
return "%24search"
146150
if original_name == "select":
@@ -154,9 +158,15 @@ def get_query_parameter(self,original_name: str) -> str:
154158
# Include count of items
155159
count: Optional[bool] = None
156160

161+
# Expand related entities
162+
expand: Optional[List[str]] = None
163+
157164
# Filter items by property values
158165
filter: Optional[str] = None
159166

167+
# Order items by property values
168+
orderby: Optional[List[str]] = None
169+
160170
# Search items by search phrases
161171
search: Optional[str] = None
162172

msgraph_beta/generated/app/calls/item/participants/invite/invite_request_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
3232

3333
async def post(self,body: InvitePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[InviteParticipantsOperation]:
3434
"""
35-
Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
35+
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
3636
param body: The request body
3737
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3838
Returns: Optional[InviteParticipantsOperation]
39-
Find more info here: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-beta
39+
Find more info here: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-beta
4040
"""
4141
if not body:
4242
raise TypeError("body cannot be null.")
@@ -56,7 +56,7 @@ async def post(self,body: InvitePostRequestBody, request_configuration: Optional
5656

5757
def to_post_request_information(self,body: InvitePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
5858
"""
59-
Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
59+
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
6060
param body: The request body
6161
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
6262
Returns: RequestInformation

msgraph_beta/generated/app_catalogs/teams_apps/item/app_definitions/item/bot/bot_request_builder.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
4949

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

104105
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[BotRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
105106
"""
106-
The details of the bot specified in the Teams app manifest.
107+
Get the bot associated with a specific definition of the TeamsApp.
107108
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
108109
Returns: RequestInformation
109110
"""
@@ -147,7 +148,7 @@ class BotRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryPara
147148
@dataclass
148149
class BotRequestBuilderGetQueryParameters():
149150
"""
150-
The details of the bot specified in the Teams app manifest.
151+
Get the bot associated with a specific definition of the TeamsApp.
151152
"""
152153
def get_query_parameter(self,original_name: str) -> str:
153154
"""

msgraph_beta/generated/app_catalogs/teams_apps/item/app_definitions/item/color_icon/color_icon_request_builder.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
5050

5151
async def get(self,request_configuration: Optional[RequestConfiguration[ColorIconRequestBuilderGetQueryParameters]] = None) -> Optional[TeamsAppIcon]:
5252
"""
53-
The color version of the Teams app's icon.
53+
Retrieve a Teams app icon associated with a specific definition of an app.
5454
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5555
Returns: Optional[TeamsAppIcon]
56+
Find more info here: https://learn.microsoft.com/graph/api/teamsappicon-get?view=graph-rest-beta
5657
"""
5758
request_info = self.to_get_request_information(
5859
request_configuration
@@ -104,7 +105,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
104105

105106
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ColorIconRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
106107
"""
107-
The color version of the Teams app's icon.
108+
Retrieve a Teams app icon associated with a specific definition of an app.
108109
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
109110
Returns: RequestInformation
110111
"""
@@ -157,7 +158,7 @@ class ColorIconRequestBuilderDeleteRequestConfiguration(RequestConfiguration[Que
157158
@dataclass
158159
class ColorIconRequestBuilderGetQueryParameters():
159160
"""
160-
The color version of the Teams app's icon.
161+
Retrieve a Teams app icon associated with a specific definition of an app.
161162
"""
162163
def get_query_parameter(self,original_name: str) -> str:
163164
"""

msgraph_beta/generated/app_catalogs/teams_apps/item/app_definitions/item/color_icon/hosted_content/hosted_content_request_builder.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
5050

5151
async def get(self,request_configuration: Optional[RequestConfiguration[HostedContentRequestBuilderGetQueryParameters]] = None) -> Optional[TeamworkHostedContent]:
5252
"""
53-
The contents of the app icon if the icon is hosted within the Teams infrastructure.
53+
Retrieve the hosted content in an app's icon.
5454
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5555
Returns: Optional[TeamworkHostedContent]
56+
Find more info here: https://learn.microsoft.com/graph/api/teamworkhostedcontent-get?view=graph-rest-beta
5657
"""
5758
request_info = self.to_get_request_information(
5859
request_configuration
@@ -104,7 +105,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
104105

105106
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[HostedContentRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
106107
"""
107-
The contents of the app icon if the icon is hosted within the Teams infrastructure.
108+
Retrieve the hosted content in an app's icon.
108109
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
109110
Returns: RequestInformation
110111
"""
@@ -157,7 +158,7 @@ class HostedContentRequestBuilderDeleteRequestConfiguration(RequestConfiguration
157158
@dataclass
158159
class HostedContentRequestBuilderGetQueryParameters():
159160
"""
160-
The contents of the app icon if the icon is hosted within the Teams infrastructure.
161+
Retrieve the hosted content in an app's icon.
161162
"""
162163
def get_query_parameter(self,original_name: str) -> str:
163164
"""

0 commit comments

Comments
 (0)