-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29dc9a7
commit f3fbd5c
Showing
7 changed files
with
322 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
sdk/core/Azure.Core.Experimental/src/DynamicJsonNameMapping.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
|
||
namespace Azure.Core.Dynamic | ||
{ | ||
/// <summary> | ||
/// Options for setting new DynamicJson properties. | ||
/// </summary> | ||
public enum DynamicJsonNameMapping | ||
{ | ||
/// <summary> | ||
/// Properties are accessed and written in the JSON buffer with the same casing as the DynamicJson property. | ||
/// </summary> | ||
None = 0, | ||
|
||
/// <summary> | ||
/// A "PascalCase" DynamicJson property can be used to read and set "camelCase" properties that exist in the JSON buffer. | ||
/// New properties are written to the JSON buffer with the same casing as the DynamicJson property. | ||
/// </summary> | ||
PascalCaseGetters = 1, | ||
|
||
/// <summary> | ||
/// Default settings for Azure services. | ||
/// A "PascalCase" DynamicJson property can be used to read and set "camelCase" properties that exist in the JSON buffer. | ||
/// New properties are written to the JSON buffer using "camelCase" property names. | ||
/// </summary> | ||
PascalCaseGettersCamelCaseSetters = 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.