Skip to content

Commit

Permalink
Merge pull request #621 from microsoftgraph/feature/5.0
Browse files Browse the repository at this point in the history
Merge feature/5.0 to master
  • Loading branch information
andrueastman authored Feb 28, 2023
2 parents 2777ed4 + b2dc757 commit fe79214
Show file tree
Hide file tree
Showing 52,867 changed files with 3,245,932 additions and 2,403,239 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
13 changes: 9 additions & 4 deletions .github/workflows/validatePullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,28 @@ name: Validate Pull Request
on:
workflow_dispatch:
push:
branches: [ 'master' ]
branches: [ 'feature/5.0', 'master' ]
pull_request:
branches: [ 'master' ]
branches: [ 'feature/5.0', 'master' ]

jobs:
build:
runs-on: ubuntu-latest
env:
solutionName: Microsoft.Graph.Beta.sln
projectName: src/Microsoft.Graph/Microsoft.Graph.Beta.csproj
steps:
- uses: actions/checkout@v3.3.0
- name: Setup .NET
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: 6.0.x
dotnet-version: 7.x
- name: Restore dependencies
run: dotnet restore ${{ env.solutionName }}
- name: Build for netstandard2.0
run: dotnet build ${{ env.projectName }} -f netstandard2.0 --no-restore -c Release
- name: Build for netstandard2.1
run: dotnet build ${{ env.projectName }} -f netstandard2.1 --no-restore -c Release
- name: Build
run: dotnet build ${{ env.solutionName }} --no-restore -c Release
- name: Test
Expand All @@ -42,4 +47,4 @@ jobs:
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v2
11 changes: 6 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ project.lock.json
Package.StoreAssociation.xml

# Build results
**/[Dd]ebug/
**/[Dd]ebugPublic/
**/[Rr]elease/
**/[Rr]eleases/
**/bin/[Dd]ebug/
**/bin/[Dd]ebugPublic/
**/bin/[Rr]elease/
**/bin/[Rr]eleases/
**/x64/
**/x86/
**/build/
Expand All @@ -33,4 +33,5 @@ Package.StoreAssociation.xml
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
UpgradeLog*.htm
.idea/
179 changes: 179 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project does NOT adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and packages shipped from the beta service library will always be in `preview` as changes to the API are for non production use and commonly ship breaking changes.

## [Unreleased]

## [5.19.0-preview] - 2023-02-09

- [Breaking] Namespace and Request Builder renaming to align to paths defined in metadata (https://github.com/microsoft/kiota/issues/2209)
- Latest metadata updates from 7th February 2023 snapshot.

## [5.18.0-preview] - 2023-01-25

- Adds support for nullable reference types.
- Latest metadata updates from 24th January 2023 snapshot.

## [5.17.0-preview] - 2023-01-16

### Changed

- Fixed a regression where passing custom base url would not be reflected in the requests.
- Latest metadata updates from 12th January 2023 snapshot.

## [5.16.0-preview] - 2023-01-11

### Changed

- [Breaking] Renames `CreateXXXRequestInformation` methods to `ToXXXRequestInformation
- Adds `IAuthenticationProvider` parameter to GraphServiceClient constructor taking a httpClient instance.
- Latest metadata updates from 12th January 2023 snapshot

## [5.15.0-preview] - 2022-12-16

### Added

- Adds support for multi value headers
- Adds support for URI Form Encoded(`application/x-www-form-urlencoded`) serialization

### Changed

- Fixes Guid types represented as strings
- Latest metadata updates from 14th December 2022 snapshot

## [5.14.0-preview] - 2022-11-23

### Changed

- Adds baseUrl parameter to GraphServiceClient constructor to allow for easier updating of target endpoint
- Adds ItemWithPath for request builder to enable path retrieval of drive items
- Fix for default OdataType property in models causing errors from the API
- Latest metadata updates from 22nd November 2022 snapshot

## [5.13.0-preview] - 2022-10-18

### Changed

- Adds OdataDeltaLink property to collection responses for delta
- Changes the ResponeHandler parameter in request builders to be a RequestOption in dotnet [#1858](https://github.com/microsoft/kiota/issues/1858)
- Latest metadata updates from 18th October 2022 snapshot

## [5.12.0-preview] - 2022-09-28

### Changed

- Fixes incorrect types for collection types referencing enums - [Kiota #1846](https://github.com/microsoft/kiota/pull/1846)
- Fixes missing return object types for PATCH/POST/PUT calls - https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet/issues/478
- Fixes missing QueryParameters for odata functions e.g delta
- Latest metadata updates from 27th September 2022 snapshot

## [5.11.0-preview] - 2022-09-13

### Changed

- Latest metadata updates from 13th September 2022 snapshot
- Dependency updates
- MAUI support
- Fix incorrected nested paths that would point to incorrect request builders.

## [5.10.0-preview] - 2022-07-20

### Added

- Latest metadata updates from 19th July 2022 snapshot
- Fix for missing @odata.type properties in models

## [5.9.0-preview] - 2022-07-13

### Added

- Adds support for cancellation token support on large file uploads.

### Changed

- Latest metadata updates from 12th July 2022 snapshot
- Fixed incorrect casing of some properties on serialization [#483]

## [5.8.0-preview] - 2022-06-30

### Changed

- Latest metadata updates from 29th June 2022 snapshot
- Fixed missing derived models not directly referenced in openApi paths

## [5.7.0-preview] - 2022-06-21

### Added

- Latest metadata updates from 21st June 2022 snapshot

### Changed

- Fixed missing derived models not directly referenced in openApi paths

## [5.6.0-preview] - 2022-06-09

### Added

- Latest metadata updates from 7th June 2022 snapshot
- Adds missing odata cast paths for the places API
- Adds functionality to send the relevant accept header request execution

### Changed

- Fixed missing response error mappings for OData functions/actions
- Fixed missing actions/functions defined on collection navigation properties
- Fixed missing derived models not directly referenced in openApi paths
- Fixed paging for odata functions/actions e.g. delta requests

## [5.5.0-preview] - 2022-06-02

### Added

- Adds missing odata cast paths to enable requests for specific kind of objects

### Changed

- Fixes exceptions on deserialization of payload that do not have @odata.type
- Fixes instances with missing key values for path parameters

## [5.4.0-preview] - 2022-05-20

### Changed

- [Breaking] Adds support CAE in the authentication provider
- [Breaking] Generated request parameter objects renamed to include http method name
- Enables the backing store to enable dirty tracking of objects

## [5.3.0-preview] - 2022-05-06

### Changed

- [Breaking] Request configuration revamp to support [Kiota #1494](https://github.com/microsoft/kiota/issues/1494)

## [5.2.0-preview] - 2022-04-20

### Changed

- Rename queryOptions parameters to be more descriptive

## [5.1.0-preview] - 2022-04-05

### Added

- Added support for vendor specific content types
- Added support for 204 no content responses

### Changed

- Update namespaces to be more discoverable (beta lib uses Microsoft.Graph.Beta namespace)
- Rename queryOptions parameters to be more descriptive

## [5.0.0-preview] - 2022-03-24

### Added

- Initial Kiota generated SDK version
38 changes: 19 additions & 19 deletions Microsoft.Graph.Beta.sln
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26403.0
# Visual Studio Version 17
VisualStudioVersion = 17.1.31903.286
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Graph.Beta", "src\Microsoft.Graph\Microsoft.Graph.Beta.csproj", "{660FA73B-987D-4085-A230-1B04F7EAEFBC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Graph.DotnetCore.Test", "tests\Microsoft.Graph.DotnetCore.Test\Microsoft.Graph.DotnetCore.Test.csproj", "{A46FC884-EDDC-4617-9B52-37017A90241D}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Graph.DotnetCore.Test", "tests\Microsoft.Graph.DotnetCore.Test\Microsoft.Graph.DotnetCore.Test.csproj", "{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -34,22 +34,22 @@ Global
{660FA73B-987D-4085-A230-1B04F7EAEFBC}.Release|x64.Build.0 = Release|Any CPU
{660FA73B-987D-4085-A230-1B04F7EAEFBC}.Release|x86.ActiveCfg = Release|Any CPU
{660FA73B-987D-4085-A230-1B04F7EAEFBC}.Release|x86.Build.0 = Release|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Debug|ARM.ActiveCfg = Debug|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Debug|ARM.Build.0 = Debug|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Debug|x64.ActiveCfg = Debug|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Debug|x64.Build.0 = Debug|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Debug|x86.ActiveCfg = Debug|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Debug|x86.Build.0 = Debug|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Release|Any CPU.Build.0 = Release|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Release|ARM.ActiveCfg = Release|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Release|ARM.Build.0 = Release|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Release|x64.ActiveCfg = Release|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Release|x64.Build.0 = Release|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Release|x86.ActiveCfg = Release|Any CPU
{A46FC884-EDDC-4617-9B52-37017A90241D}.Release|x86.Build.0 = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|ARM.ActiveCfg = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|ARM.Build.0 = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|x64.ActiveCfg = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|x64.Build.0 = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|x86.ActiveCfg = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Debug|x86.Build.0 = Debug|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|Any CPU.Build.0 = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|ARM.ActiveCfg = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|ARM.Build.0 = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|x64.ActiveCfg = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|x64.Build.0 = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|x86.ActiveCfg = Release|Any CPU
{15DE269F-3B76-461C-9954-EC2A8FF9B9E8}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
5 changes: 5 additions & 0 deletions Nuget.Config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
</packageSources>
</configuration>
46 changes: 7 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ The Microsoft Graph Beta .NET Client Library 0.x targets .NetStandard 1.1 and .N

The Microsoft Graph Beta .NET Client Library 4.x targets .NetStandard 2.0 and .Net Framework 4.6.2.

The Microsoft Graph Beta .NET Client Library 5.x targets .NetStandard 2.0

## Installation via NuGet

To install the client library via NuGet:
Expand All @@ -22,45 +24,7 @@ To install the client library via NuGet:

## Using the beta client along with the v1.0 library

Both the v1.0 and beta Microsoft Graph endpoints share the same namespace. This results in both the v1.0 and beta generated libraries sharing the same namespace. You can use the beta library by itself with no changes to your environment. If you plan to use the beta endpoint in addition to the v1.0 endpoint, you'l have a couple of integration steps you'll need to follow to enable a beta client to be used alongside the v1.0 client which is obtained with the `Microsoft.Graph` (v1.0) NuGet package.

If your project (.csproj) uses a Reference element to reference the Microsoft.Graph.Beta library, you'll need to specify the DLL alias within the <Aliases> element. We suggest that you use the BetaLib alias, although any alias will do:

```
<Reference Include="Microsoft.Graph.Beta, Version=0.35.0-preview, Culture=neutral">
<SpecificVersion>False</SpecificVersion>
<HintPath>Resources\Microsoft.Graph.Beta.dll</HintPath>
<Aliases>BetaLib</Aliases>
</Reference>
```

If your project (.csproj) uses a PackageReference element to reference the Microsoft.Graph.Beta library, you'll need to specify the DLL alias within the <Aliases> element. Again, we suggest that you use the BetaLib alias, although any alias will do:

```
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences">
<ItemGroup>
<ReferencePath Condition="'%(FileName)' == 'Microsoft.Graph.Beta'">
<Aliases>BetaLib</Aliases>
</ReferencePath>
</ItemGroup>
</Target>
```

> The project reference approach to aliasing DLLs will be updated and is on the NuGet [backlog](https://github.com/NuGet/Home/issues/4989#issuecomment-311042085).
Now, you set the `extern alias` directive (above all using directives) to get access to the Microsoft.Graph.Beta library. We suggest that you alias the namespace to `Beta`:

```
extern alias BetaLib;
using Beta = BetaLib.Microsoft.Graph;
```

You can now reference the Microsoft.Graph.Beta objects like this:

```
var contact = new Beta.Contact();
Beta.GraphServiceClient betaClient = new Beta.GraphServiceClient();
```
The Beta library is generated with the `Microsoft.Graph.Beta` namespace. This means that it can be used alongside the V1 package by using the `Microsoft.Graph` namespace while using the `Microsoft.Graph.Beta` namespace from the beta library.

## Getting started

Expand All @@ -79,6 +43,10 @@ Between 0.x and 4.x there were some major breaking changes:

View the upgrade guide [here](https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/docs/upgrade-to-v4.md)..

### Upgrading to v5

View the upgrade guide [here](https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/feature/5.0/docs/upgrade-to-v5.md)..

## Issues

To view or log issues, see [issues](https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet/issues).
Expand Down
Loading

0 comments on commit fe79214

Please sign in to comment.