forked from Azure/azure-powershell
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Resources from generation to main (Azure#25408)
* Move Resources to main * Update ChangeLog.md --------- Co-authored-by: Yabo Hu <[email protected]>
- Loading branch information
1 parent
ff38392
commit 8c1d35d
Showing
162 changed files
with
14,058 additions
and
13,325 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
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
66 changes: 66 additions & 0 deletions
66
src/Resources/Policy.Autorest/custom/PolicyDefinitionPropertiesPolicyRule.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,66 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
|
||
namespace Microsoft.Azure.PowerShell.Cmdlets.Policy.Models | ||
{ | ||
using Microsoft.Azure.PowerShell.Cmdlets.Policy.Runtime.Json; | ||
|
||
/// <summary>The policy rule.</summary> | ||
public partial class PolicyDefinitionPropertiesPolicyRule | ||
{ | ||
|
||
/// <summary> | ||
/// <c>AfterFromJson</c> will be called after the json deserialization has finished, allowing customization of the object | ||
/// before it is returned. Implement this method in a partial class to enable this behavior | ||
/// </summary> | ||
/// <param name="json">The JsonNode that should be deserialized into this object.</param> | ||
|
||
partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.Policy.Runtime.Json.JsonObject json) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// <c>AfterToJson</c> will be called after the json serialization has finished, allowing customization of the <see cref="Microsoft.Azure.PowerShell.Cmdlets.Policy.Runtime.Json.JsonObject" | ||
/// /> before it is returned. Implement this method in a partial class to enable this behavior | ||
/// </summary> | ||
/// <param name="container">The JSON container that the serialization result will be placed in.</param> | ||
|
||
partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Policy.Runtime.Json.JsonObject container) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// <c>BeforeFromJson</c> will be called before the json deserialization has commenced, allowing complete customization of | ||
/// the object before it is deserialized. | ||
/// If you wish to disable the default deserialization entirely, return <c>true</c> in the <paramref name= "returnNow" /> | ||
/// output parameter. | ||
/// Implement this method in a partial class to enable this behavior. | ||
/// </summary> | ||
/// <param name="json">The JsonNode that should be deserialized into this object.</param> | ||
/// <param name="returnNow">Determines if the rest of the deserialization should be processed, or if the method should return | ||
/// instantly.</param> | ||
|
||
partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.Policy.Runtime.Json.JsonObject json, ref bool returnNow) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// <c>BeforeToJson</c> will be called before the json serialization has commenced, allowing complete customization of the | ||
/// object before it is serialized. | ||
/// If you wish to disable the default serialization entirely, return <c>true</c> in the <paramref name="returnNow" /> output | ||
/// parameter. | ||
/// Implement this method in a partial class to enable this behavior. | ||
/// </summary> | ||
/// <param name="container">The JSON container that the serialization result will be placed in.</param> | ||
/// <param name="returnNow">Determines if the rest of the serialization should be processed, or if the method should return | ||
/// instantly.</param> | ||
|
||
partial void BeforeToJson(ref JsonObject container, ref bool returnNow) | ||
{ | ||
// this call marks null property values properly to allow them to be serialized to JSON correctly | ||
SerializationHelpers.SetSentinel(((Runtime.IAssociativeArray<global::System.Object>)this).AdditionalProperties); | ||
} | ||
} | ||
} |
Oops, something went wrong.