Skip to content

Commit

Permalink
Merge pull request #2495 from microsoftgraph/dev
Browse files Browse the repository at this point in the history
Release  5.53.0
  • Loading branch information
andrueastman committed May 16, 2024
2 parents 28f7005 + 53cc068 commit 1aa5bf9
Show file tree
Hide file tree
Showing 14,587 changed files with 142,125 additions and 99,100 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
@@ -1,12 +1,19 @@
# This workflow is used to add new issues to GitHub Projects (Beta)
# This workflow is used to add new issues to GitHub GraphSDKs Project

name: Add PR to project
name: Add Issue or PR to project
on:
issues:
types:
- opened
pull_request:
types:
- opened
branches:
- 'dev'

jobs:
track_issue:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Generate token
Expand All @@ -20,7 +27,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
ORGANIZATION: microsoftgraph
PROJECT_NUMBER: 28
PROJECT_NUMBER: 55
run: |
gh api graphql -f query='
query($org: String!, $number: Int!) {
Expand All @@ -44,13 +51,13 @@ jobs:
}' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json
echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV
echo 'STATUS_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Status") | .id' project_data.json) >> $GITHUB_ENV
echo 'TRIAGE_OPTION_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Status") | .options[] | select(.name=="Needs Triage 🔍") |.id' project_data.json) >> $GITHUB_ENV
echo 'LANGUAGE_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Language") | .id' project_data.json) >> $GITHUB_ENV
echo 'LANGUAGE_OPTION_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Language") | .options[] | select(.name=="Csharp") |.id' project_data.json) >> $GITHUB_ENV
- name: Add Issue to project
- name: Add Issue or PR to project
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
ISSUE_ID: ${{ github.event.issue.node_id }}
ISSUE_ID: ${{ github.event_name == 'issues' && github.event.issue.node_id || github.event.pull_request.node_id }}
run: |
item_id="$( gh api graphql -f query='
mutation($project:ID!, $issue:ID!) {
Expand All @@ -60,28 +67,28 @@ jobs:
}
}
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectV2ItemById.item.id')"
echo 'ITEM_ID='$item_id >> $GITHUB_ENV
- name: Set Triage
- name: Set Language
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
gh api graphql -f query='
mutation (
$project: ID!
$item: ID!
$status_field: ID!
$status_value: String!
$language_field: ID!
$language_value: String!
) {
set_status: updateProjectV2ItemFieldValue(input: {
projectId: $project
itemId: $item
fieldId: $status_field
value: {singleSelectOptionId: $status_value}
fieldId: $language_field
value: {singleSelectOptionId: $language_value}
}) {
projectV2Item {
id
}
}
}' -f project=$PROJECT_ID -f item=$ITEM_ID -f status_field=$STATUS_FIELD_ID -f status_value=${{ env.TRIAGE_OPTION_ID }} --silent
}' -f project=$PROJECT_ID -f item=$ITEM_ID -f language_field=$LANGUAGE_FIELD_ID -f language_value=${{ env.LANGUAGE_OPTION_ID }} --silent
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v

## [Unreleased]

## [5.53.0] - 2024-05-16

- Latest metadata updates from 14th May 2024.

## [5.52.0] - 2024-05-08

- Latest metadata updates from 7th May 2024.
Expand Down
10 changes: 10 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Microsoft Open Source Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).

Resources:

- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
- Employees can reach out at [aka.ms/opensource/moderation-support](https://aka.ms/opensource/moderation-support)
13 changes: 7 additions & 6 deletions src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace Microsoft.Graph.Admin {
namespace Microsoft.Graph.Admin
{
/// <summary>
/// Provides operations to manage the admin singleton.
/// </summary>
public class AdminRequestBuilder : BaseRequestBuilder
public class AdminRequestBuilder : BaseRequestBuilder
{
/// <summary>Provides operations to manage the edge property of the microsoft.graph.admin entity.</summary>
public EdgeRequestBuilder Edge
Expand Down Expand Up @@ -80,7 +81,7 @@ public async Task<Microsoft.Graph.Models.Admin> GetAsync(Action<RequestConfigura
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.Admin>(requestInfo, Microsoft.Graph.Models.Admin.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand All @@ -105,7 +106,7 @@ public async Task<Microsoft.Graph.Models.Admin> PatchAsync(Microsoft.Graph.Model
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.Admin>(requestInfo, Microsoft.Graph.Models.Admin.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand Down Expand Up @@ -189,14 +190,14 @@ public class AdminRequestBuilderGetQueryParameters
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class AdminRequestBuilderGetRequestConfiguration : RequestConfiguration<AdminRequestBuilderGetQueryParameters>
public class AdminRequestBuilderGetRequestConfiguration : RequestConfiguration<AdminRequestBuilderGetQueryParameters>
{
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class AdminRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
public class AdminRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
}
Expand Down
17 changes: 9 additions & 8 deletions src/Microsoft.Graph/Generated/Admin/Edge/EdgeRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace Microsoft.Graph.Admin.Edge {
namespace Microsoft.Graph.Admin.Edge
{
/// <summary>
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.
/// </summary>
public class EdgeRequestBuilder : BaseRequestBuilder
public class EdgeRequestBuilder : BaseRequestBuilder
{
/// <summary>Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.</summary>
public InternetExplorerModeRequestBuilder InternetExplorerMode
Expand Down Expand Up @@ -55,7 +56,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
var requestInfo = ToDeleteRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand All @@ -78,7 +79,7 @@ public async Task<Microsoft.Graph.Models.Edge> GetAsync(Action<RequestConfigurat
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.Edge>(requestInfo, Microsoft.Graph.Models.Edge.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand All @@ -103,7 +104,7 @@ public async Task<Microsoft.Graph.Models.Edge> PatchAsync(Microsoft.Graph.Models
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.Edge>(requestInfo, Microsoft.Graph.Models.Edge.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand Down Expand Up @@ -180,7 +181,7 @@ public EdgeRequestBuilder WithUrl(string rawUrl)
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class EdgeRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
public class EdgeRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
/// <summary>
Expand Down Expand Up @@ -213,14 +214,14 @@ public class EdgeRequestBuilderGetQueryParameters
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class EdgeRequestBuilderGetRequestConfiguration : RequestConfiguration<EdgeRequestBuilderGetQueryParameters>
public class EdgeRequestBuilderGetRequestConfiguration : RequestConfiguration<EdgeRequestBuilderGetQueryParameters>
{
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class EdgeRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
public class EdgeRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace Microsoft.Graph.Admin.Edge.InternetExplorerMode {
namespace Microsoft.Graph.Admin.Edge.InternetExplorerMode
{
/// <summary>
/// Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.
/// </summary>
public class InternetExplorerModeRequestBuilder : BaseRequestBuilder
public class InternetExplorerModeRequestBuilder : BaseRequestBuilder
{
/// <summary>Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.</summary>
public SiteListsRequestBuilder SiteLists
Expand Down Expand Up @@ -55,7 +56,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
var requestInfo = ToDeleteRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand All @@ -78,7 +79,7 @@ public async Task<Microsoft.Graph.Models.InternetExplorerMode> GetAsync(Action<R
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.InternetExplorerMode>(requestInfo, Microsoft.Graph.Models.InternetExplorerMode.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand All @@ -103,7 +104,7 @@ public async Task<Microsoft.Graph.Models.InternetExplorerMode> PatchAsync(Micros
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.InternetExplorerMode>(requestInfo, Microsoft.Graph.Models.InternetExplorerMode.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand Down Expand Up @@ -180,7 +181,7 @@ public InternetExplorerModeRequestBuilder WithUrl(string rawUrl)
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class InternetExplorerModeRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
public class InternetExplorerModeRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
/// <summary>
Expand Down Expand Up @@ -213,14 +214,14 @@ public class InternetExplorerModeRequestBuilderGetQueryParameters
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class InternetExplorerModeRequestBuilderGetRequestConfiguration : RequestConfiguration<InternetExplorerModeRequestBuilderGetQueryParameters>
public class InternetExplorerModeRequestBuilderGetRequestConfiguration : RequestConfiguration<InternetExplorerModeRequestBuilderGetQueryParameters>
{
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class InternetExplorerModeRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
public class InternetExplorerModeRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace Microsoft.Graph.Admin.Edge.InternetExplorerMode.SiteLists.Count {
namespace Microsoft.Graph.Admin.Edge.InternetExplorerMode.SiteLists.Count
{
/// <summary>
/// Provides operations to count the resources in the collection.
/// </summary>
public class CountRequestBuilder : BaseRequestBuilder
public class CountRequestBuilder : BaseRequestBuilder
{
/// <summary>
/// Instantiates a new <see cref="CountRequestBuilder"/> and sets the default values.
Expand Down Expand Up @@ -49,7 +50,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendPrimitiveAsync<int?>(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand Down Expand Up @@ -111,7 +112,7 @@ public class CountRequestBuilderGetQueryParameters
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration<CountRequestBuilderGetQueryParameters>
public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration<CountRequestBuilderGetQueryParameters>
{
}
}
Expand Down

0 comments on commit 1aa5bf9

Please sign in to comment.