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.
CodeGen from PR 22428 in Azure/azure-rest-api-specs
Merge a970719b3b9060c58137ed9e3dc058a8868eb4d9 into 48c0c2036efcf0ccae7c0592a597699aac75ec4d
- Loading branch information
SDKAuto
committed
Feb 8, 2023
1 parent
8afc22b
commit 91c2833
Showing
639 changed files
with
96,059 additions
and
0 deletions.
There are no files selected for viewing
20,243 changes: 20,243 additions & 0 deletions
20,243
swaggerci/mediaservices/generated/api/AzureMediaServices.cs
Large diffs are not rendered by default.
Oops, something went wrong.
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,34 @@ | ||
// 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.MediaServices.Models | ||
{ | ||
using static Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Extensions; | ||
|
||
/// <summary>Any object</summary> | ||
public partial class Any : | ||
Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.IAny, | ||
Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.IAnyInternal | ||
{ | ||
|
||
/// <summary>Creates an new <see cref="Any" /> instance.</summary> | ||
public Any() | ||
{ | ||
|
||
} | ||
} | ||
/// Any object | ||
public partial interface IAny : | ||
Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.IJsonSerializable | ||
{ | ||
|
||
} | ||
/// Any object | ||
internal partial interface IAnyInternal | ||
|
||
{ | ||
|
||
} | ||
} |
104 changes: 104 additions & 0 deletions
104
swaggerci/mediaservices/generated/api/Models/Any.json.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,104 @@ | ||
// 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.MediaServices.Models | ||
{ | ||
using static Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Extensions; | ||
|
||
/// <summary>Any object</summary> | ||
public partial class Any | ||
{ | ||
|
||
/// <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.MediaServices.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.MediaServices.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.MediaServices.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.MediaServices.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 Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject container, ref bool returnNow); | ||
|
||
/// <summary> | ||
/// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject into a new instance of <see cref="Any" />. | ||
/// </summary> | ||
/// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject instance to deserialize from.</param> | ||
internal Any(Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject json) | ||
{ | ||
bool returnNow = false; | ||
BeforeFromJson(json, ref returnNow); | ||
if (returnNow) | ||
{ | ||
return; | ||
} | ||
AfterFromJson(json); | ||
} | ||
|
||
/// <summary> | ||
/// Deserializes a <see cref="Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonNode"/> into an instance of Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.IAny. | ||
/// </summary> | ||
/// <param name="node">a <see cref="Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonNode" /> to deserialize from.</param> | ||
/// <returns>an instance of Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.IAny.</returns> | ||
public static Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.IAny FromJson(Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonNode node) | ||
{ | ||
return node is Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject json ? new Any(json) : null; | ||
} | ||
|
||
/// <summary> | ||
/// Serializes this instance of <see cref="Any" /> into a <see cref="Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonNode" />. | ||
/// </summary> | ||
/// <param name="container">The <see cref="Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject"/> container to serialize this object into. If the caller | ||
/// passes in <c>null</c>, a new instance will be created and returned to the caller.</param> | ||
/// <param name="serializationMode">Allows the caller to choose the depth of the serialization. See <see cref="Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.SerializationMode"/>.</param> | ||
/// <returns> | ||
/// a serialized instance of <see cref="Any" /> as a <see cref="Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonNode" />. | ||
/// </returns> | ||
public Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.SerializationMode serializationMode) | ||
{ | ||
container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject(); | ||
|
||
bool returnNow = false; | ||
BeforeToJson(ref container, ref returnNow); | ||
if (returnNow) | ||
{ | ||
return container; | ||
} | ||
AfterToJson(ref container); | ||
return container; | ||
} | ||
} | ||
} |
74 changes: 74 additions & 0 deletions
74
swaggerci/mediaservices/generated/api/Models/Api20/ErrorAdditionalInfo.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,74 @@ | ||
// 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.MediaServices.Models.Api20 | ||
{ | ||
using static Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Extensions; | ||
|
||
/// <summary>The resource management error additional info.</summary> | ||
public partial class ErrorAdditionalInfo : | ||
Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.Api20.IErrorAdditionalInfo, | ||
Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.Api20.IErrorAdditionalInfoInternal | ||
{ | ||
|
||
/// <summary>Backing field for <see cref="Info" /> property.</summary> | ||
private Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.IAny _info; | ||
|
||
/// <summary>The additional info.</summary> | ||
[Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.MediaServices.PropertyOrigin.Owned)] | ||
public Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.IAny Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.Any()); } | ||
|
||
/// <summary>Internal Acessors for Info</summary> | ||
Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.Api20.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.Any()); set { {_info = value;} } } | ||
|
||
/// <summary>Internal Acessors for Type</summary> | ||
string Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.Api20.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } | ||
|
||
/// <summary>Backing field for <see cref="Type" /> property.</summary> | ||
private string _type; | ||
|
||
/// <summary>The additional info type.</summary> | ||
[Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.MediaServices.PropertyOrigin.Owned)] | ||
public string Type { get => this._type; } | ||
|
||
/// <summary>Creates an new <see cref="ErrorAdditionalInfo" /> instance.</summary> | ||
public ErrorAdditionalInfo() | ||
{ | ||
|
||
} | ||
} | ||
/// The resource management error additional info. | ||
public partial interface IErrorAdditionalInfo : | ||
Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.IJsonSerializable | ||
{ | ||
/// <summary>The additional info.</summary> | ||
[Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Info( | ||
Required = false, | ||
ReadOnly = true, | ||
Description = @"The additional info.", | ||
SerializedName = @"info", | ||
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.IAny) })] | ||
Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.IAny Info { get; } | ||
/// <summary>The additional info type.</summary> | ||
[Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Info( | ||
Required = false, | ||
ReadOnly = true, | ||
Description = @"The additional info type.", | ||
SerializedName = @"type", | ||
PossibleTypes = new [] { typeof(string) })] | ||
string Type { get; } | ||
|
||
} | ||
/// The resource management error additional info. | ||
internal partial interface IErrorAdditionalInfoInternal | ||
|
||
{ | ||
/// <summary>The additional info.</summary> | ||
Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.IAny Info { get; set; } | ||
/// <summary>The additional info type.</summary> | ||
string Type { get; set; } | ||
|
||
} | ||
} |
116 changes: 116 additions & 0 deletions
116
swaggerci/mediaservices/generated/api/Models/Api20/ErrorAdditionalInfo.json.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,116 @@ | ||
// 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.MediaServices.Models.Api20 | ||
{ | ||
using static Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Extensions; | ||
|
||
/// <summary>The resource management error additional info.</summary> | ||
public partial class ErrorAdditionalInfo | ||
{ | ||
|
||
/// <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.MediaServices.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.MediaServices.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.MediaServices.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.MediaServices.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 Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject container, ref bool returnNow); | ||
|
||
/// <summary> | ||
/// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject into a new instance of <see cref="ErrorAdditionalInfo" />. | ||
/// </summary> | ||
/// <param name="json">A Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject instance to deserialize from.</param> | ||
internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject json) | ||
{ | ||
bool returnNow = false; | ||
BeforeFromJson(json, ref returnNow); | ||
if (returnNow) | ||
{ | ||
return; | ||
} | ||
{_type = If( json?.PropertyT<Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonString>("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} | ||
{_info = If( json?.PropertyT<Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject>("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.Any.FromJson(__jsonInfo) : Info;} | ||
AfterFromJson(json); | ||
} | ||
|
||
/// <summary> | ||
/// Deserializes a <see cref="Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonNode"/> into an instance of Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.Api20.IErrorAdditionalInfo. | ||
/// </summary> | ||
/// <param name="node">a <see cref="Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonNode" /> to deserialize from.</param> | ||
/// <returns> | ||
/// an instance of Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.Api20.IErrorAdditionalInfo. | ||
/// </returns> | ||
public static Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Models.Api20.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonNode node) | ||
{ | ||
return node is Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo(json) : null; | ||
} | ||
|
||
/// <summary> | ||
/// Serializes this instance of <see cref="ErrorAdditionalInfo" /> into a <see cref="Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonNode" />. | ||
/// </summary> | ||
/// <param name="container">The <see cref="Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject"/> container to serialize this object into. If the caller | ||
/// passes in <c>null</c>, a new instance will be created and returned to the caller.</param> | ||
/// <param name="serializationMode">Allows the caller to choose the depth of the serialization. See <see cref="Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.SerializationMode"/>.</param> | ||
/// <returns> | ||
/// a serialized instance of <see cref="ErrorAdditionalInfo" /> as a <see cref="Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonNode" />. | ||
/// </returns> | ||
public Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.SerializationMode serializationMode) | ||
{ | ||
container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonObject(); | ||
|
||
bool returnNow = false; | ||
BeforeToJson(ref container, ref returnNow); | ||
if (returnNow) | ||
{ | ||
return container; | ||
} | ||
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.SerializationMode.IncludeReadOnly)) | ||
{ | ||
AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); | ||
} | ||
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.SerializationMode.IncludeReadOnly)) | ||
{ | ||
AddIf( null != this._info ? (Microsoft.Azure.PowerShell.Cmdlets.MediaServices.Runtime.Json.JsonNode) this._info.ToJson(null,serializationMode) : null, "info" ,container.Add ); | ||
} | ||
AfterToJson(ref container); | ||
return container; | ||
} | ||
} | ||
} |
Oops, something went wrong.