Skip to content

Commit

Permalink
Merge pull request #2458 from microsoftgraph/dev
Browse files Browse the repository at this point in the history
Release 5.50.0
  • Loading branch information
andrueastman authored Apr 25, 2024
2 parents e2a175f + e3966b5 commit 1eb86d0
Show file tree
Hide file tree
Showing 7,578 changed files with 31,795 additions and 18,359 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2.0.0
uses: dependabot/fetch-metadata@v2.1.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validatePullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
env:
solutionName: Microsoft.Graph.sln
steps:
- uses: actions/[email protected].2
- uses: actions/[email protected].4
- name: Setup .NET
uses: actions/[email protected]
with:
Expand Down
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.50.0] - 2024-04-17

- Latest metadata updates from 24th April 2024.

## [5.49.0] - 2024-04-17

- Latest metadata updates from 17th April 2024.
Expand Down
24 changes: 8 additions & 16 deletions docs/tokencredentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ InteractiveBrowserCredential interactiveBrowserCredential = new InteractiveBrows

GraphServiceClient graphClient = new GraphServiceClient(interactiveBrowserCredential, scopes); // you can pass the TokenCredential directly to the GraphServiceClient
User me = await graphClient.Me.Request()
.GetAsync();
User me = await graphClient.Me.GetAsync();
```

## 2. UsernamePasswordCredential
Expand All @@ -32,8 +31,7 @@ UsernamePasswordCredential usernamePasswordCredential = new UsernamePasswordCred

GraphServiceClient graphClient = new GraphServiceClient(usernamePasswordCredential, scopes); // you can pass the TokenCredential directly to the GraphServiceClient
User me = await graphClient.Me.Request()
.GetAsync();
User me = await graphClient.Me.GetAsync();
```


Expand All @@ -57,8 +55,7 @@ DeviceCodeCredential deviceCodeCredential = new DeviceCodeCredential(deviceCodeC

GraphServiceClient graphClient = new GraphServiceClient(deviceCodeCredential, scopes);

User me = await graphClient.Me.Request()
.GetAsync();
User me = await graphClient.Me.GetAsync();
```

## 4. ClientSecretCredential
Expand All @@ -73,8 +70,7 @@ ClientSecretCredential clientSecretCredential = new ClientSecretCredential(tenan

GraphServiceClient graphClient = new GraphServiceClient(clientSecretCredential, scopes);

User me = await graphClient.Users["user-id"].Request()
.GetAsync();
User me = await graphClient.Users["user-id"].GetAsync();
```

## 5. ClientCertificateCredential
Expand All @@ -91,8 +87,7 @@ ClientCertificateCredential clientCertificateCredential = new ClientCertificateC
GraphServiceClient graphClient = new GraphServiceClient(clientCertificateCredential, scopes);

User me = await graphClient.Users["user-id"].Request()
.GetAsync();
User me = await graphClient.Users["user-id"].GetAsync();
```

## 6. AuthorizationCodeCredential
Expand All @@ -106,8 +101,7 @@ AuthorizationCodeCredential authorizationCodeCredential = new AuthorizationCodeC

GraphServiceClient graphClient = new GraphServiceClient(authorizationCodeCredential, scopes);

User me = await graphClient.Me.Request()
.GetAsync();
User me = await graphClient.Me.GetAsync();
```

# Other TokenCredentials
Expand All @@ -133,8 +127,7 @@ EnvironmentCredential environmentCredential = new EnvironmentCredential();

GraphServiceClient graphClient = new GraphServiceClient(environmentCredential, scopes);

User me = await graphClient.Me.Request()
.GetAsync();
User me = await graphClient.Me.GetAsync();
```

## 2. ChainedTokenCredential
Expand All @@ -157,8 +150,7 @@ ChainedTokenCredential chainedTokenCredential = new ChainedTokenCredential(token

GraphServiceClient graphClient = new GraphServiceClient(chainedTokenCredential, scopes);

User me = await graphClient.Me.Request()
.GetAsync();
User me = await graphClient.Me.GetAsync();
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ public BrowserSiteListItemRequestBuilder(string rawUrl, IRequestAdapter requestA
{
}
/// <summary>
/// Delete a browserSiteList object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/internetexplorermode-delete-sitelists?view=graph-rest-1.0" />
/// Delete navigation property siteLists for admin
/// </summary>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand All @@ -73,8 +72,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Get a browserSiteList that contains browserSite and browserSharedCookie resources.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/browsersitelist-get?view=graph-rest-1.0" />
/// A collection of site lists to support Internet Explorer mode.
/// </summary>
/// <returns>A <see cref="BrowserSiteList"/></returns>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
Expand All @@ -97,8 +95,7 @@ public async Task<BrowserSiteList> GetAsync(Action<RequestConfiguration<BrowserS
return await RequestAdapter.SendAsync<BrowserSiteList>(requestInfo, BrowserSiteList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Update the properties of a browserSiteList object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/browsersitelist-update?view=graph-rest-1.0" />
/// Update the navigation property siteLists in admin
/// </summary>
/// <returns>A <see cref="BrowserSiteList"/></returns>
/// <param name="body">The request body</param>
Expand All @@ -123,7 +120,7 @@ public async Task<BrowserSiteList> PatchAsync(BrowserSiteList body, Action<Reque
return await RequestAdapter.SendAsync<BrowserSiteList>(requestInfo, BrowserSiteList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Delete a browserSiteList object.
/// Delete navigation property siteLists for admin
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand All @@ -142,7 +139,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
return requestInfo;
}
/// <summary>
/// Get a browserSiteList that contains browserSite and browserSharedCookie resources.
/// A collection of site lists to support Internet Explorer mode.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand All @@ -161,7 +158,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Br
return requestInfo;
}
/// <summary>
/// Update the properties of a browserSiteList object.
/// Update the navigation property siteLists in admin
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="body">The request body</param>
Expand Down Expand Up @@ -199,7 +196,7 @@ public class BrowserSiteListItemRequestBuilderDeleteRequestConfiguration : Reque
{
}
/// <summary>
/// Get a browserSiteList that contains browserSite and browserSharedCookie resources.
/// A collection of site lists to support Internet Explorer mode.
/// </summary>
public class BrowserSiteListItemRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
using System.Linq;
using System;
namespace Microsoft.Graph.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish {
#pragma warning disable CS1591
public class PublishPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
#pragma warning restore CS1591
{
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData {
get { return BackingStore?.Get<IDictionary<string, object>>("AdditionalData"); }
set { BackingStore?.Set("AdditionalData", value); }
get { return BackingStore.Get<IDictionary<string, object>>("AdditionalData") ?? throw new InvalidOperationException("AdditionalData can not be null"); }
set { BackingStore.Set("AdditionalData", value); }
}
/// <summary>Stores model information.</summary>
public IBackingStore BackingStore { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ public BrowserSharedCookieItemRequestBuilder(string rawUrl, IRequestAdapter requ
{
}
/// <summary>
/// Delete a browserSharedCookie from a browserSiteList.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/browsersitelist-delete-sharedcookies?view=graph-rest-1.0" />
/// Delete navigation property sharedCookies for admin
/// </summary>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand All @@ -55,8 +54,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/browsersharedcookie-get?view=graph-rest-1.0" />
/// A collection of shared cookies defined for the site list.
/// </summary>
/// <returns>A <see cref="BrowserSharedCookie"/></returns>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
Expand All @@ -79,8 +77,7 @@ public async Task<BrowserSharedCookie> GetAsync(Action<RequestConfiguration<Brow
return await RequestAdapter.SendAsync<BrowserSharedCookie>(requestInfo, BrowserSharedCookie.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Update the properties of a browserSharedCookie object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/browsersharedcookie-update?view=graph-rest-1.0" />
/// Update the navigation property sharedCookies in admin
/// </summary>
/// <returns>A <see cref="BrowserSharedCookie"/></returns>
/// <param name="body">The request body</param>
Expand All @@ -105,7 +102,7 @@ public async Task<BrowserSharedCookie> PatchAsync(BrowserSharedCookie body, Acti
return await RequestAdapter.SendAsync<BrowserSharedCookie>(requestInfo, BrowserSharedCookie.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Delete a browserSharedCookie from a browserSiteList.
/// Delete navigation property sharedCookies for admin
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand All @@ -124,7 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
return requestInfo;
}
/// <summary>
/// Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode.
/// A collection of shared cookies defined for the site list.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand All @@ -143,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Br
return requestInfo;
}
/// <summary>
/// Update the properties of a browserSharedCookie object.
/// Update the navigation property sharedCookies in admin
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="body">The request body</param>
Expand Down Expand Up @@ -181,7 +178,7 @@ public class BrowserSharedCookieItemRequestBuilderDeleteRequestConfiguration : R
{
}
/// <summary>
/// Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode.
/// A collection of shared cookies defined for the site list.
/// </summary>
public class BrowserSharedCookieItemRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ public SharedCookiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter
{
}
/// <summary>
/// Get a list of the browserSharedCookie objects and their properties.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/browsersitelist-list-sharedcookies?view=graph-rest-1.0" />
/// A collection of shared cookies defined for the site list.
/// </summary>
/// <returns>A <see cref="BrowserSharedCookieCollectionResponse"/></returns>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
Expand All @@ -75,8 +74,7 @@ public async Task<BrowserSharedCookieCollectionResponse> GetAsync(Action<Request
return await RequestAdapter.SendAsync<BrowserSharedCookieCollectionResponse>(requestInfo, BrowserSharedCookieCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Create a new browserSharedCookie object in a browserSiteList.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/browsersitelist-post-sharedcookies?view=graph-rest-1.0" />
/// Create new navigation property to sharedCookies for admin
/// </summary>
/// <returns>A <see cref="BrowserSharedCookie"/></returns>
/// <param name="body">The request body</param>
Expand All @@ -101,7 +99,7 @@ public async Task<BrowserSharedCookie> PostAsync(BrowserSharedCookie body, Actio
return await RequestAdapter.SendAsync<BrowserSharedCookie>(requestInfo, BrowserSharedCookie.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Get a list of the browserSharedCookie objects and their properties.
/// A collection of shared cookies defined for the site list.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand All @@ -120,7 +118,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Sh
return requestInfo;
}
/// <summary>
/// Create a new browserSharedCookie object in a browserSiteList.
/// Create new navigation property to sharedCookies for admin
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="body">The request body</param>
Expand Down Expand Up @@ -151,7 +149,7 @@ public SharedCookiesRequestBuilder WithUrl(string rawUrl)
return new SharedCookiesRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get a list of the browserSharedCookie objects and their properties.
/// A collection of shared cookies defined for the site list.
/// </summary>
public class SharedCookiesRequestBuilderGetQueryParameters
{
Expand Down
Loading

0 comments on commit 1eb86d0

Please sign in to comment.