-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
data: regenerating based on the latest Swagger
- Loading branch information
hc-github-team-tf-azure
committed
Jul 24, 2023
1 parent
a09108a
commit 75659ea
Showing
962 changed files
with
28,118 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...Definitions.ResourceManager/Compute/v2023_03_01/ApiVersionDefinition-GenerationSetting.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,6 @@ | ||
namespace Pandora.Definitions.ResourceManager.Compute.v2023_03_01; | ||
|
||
public partial class Definition | ||
{ | ||
public bool Generate => true; | ||
} |
40 changes: 40 additions & 0 deletions
40
data/Pandora.Definitions.ResourceManager/Compute/v2023_03_01/ApiVersionDefinition.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,40 @@ | ||
using System.Collections.Generic; | ||
using Pandora.Definitions.Interfaces; | ||
|
||
namespace Pandora.Definitions.ResourceManager.Compute.v2023_03_01; | ||
|
||
public partial class Definition : ApiVersionDefinition | ||
{ | ||
public string ApiVersion => "2023-03-01"; | ||
public bool Preview => false; | ||
public Source Source => Source.ResourceManagerRestApiSpecs; | ||
|
||
public IEnumerable<ResourceDefinition> Resources => new List<ResourceDefinition> | ||
{ | ||
new AvailabilitySets.Definition(), | ||
new CapacityReservation.Definition(), | ||
new CapacityReservationGroups.Definition(), | ||
new CapacityReservations.Definition(), | ||
new DedicatedHost.Definition(), | ||
new DedicatedHostGroups.Definition(), | ||
new DedicatedHosts.Definition(), | ||
new Images.Definition(), | ||
new LogAnalytics.Definition(), | ||
new ProximityPlacementGroups.Definition(), | ||
new RestorePointCollections.Definition(), | ||
new RestorePoints.Definition(), | ||
new SshPublicKeys.Definition(), | ||
new VirtualMachineExtensionImages.Definition(), | ||
new VirtualMachineExtensions.Definition(), | ||
new VirtualMachineImages.Definition(), | ||
new VirtualMachineRunCommands.Definition(), | ||
new VirtualMachineScaleSetExtensions.Definition(), | ||
new VirtualMachineScaleSetRollingUpgrades.Definition(), | ||
new VirtualMachineScaleSetVMExtensions.Definition(), | ||
new VirtualMachineScaleSetVMRunCommands.Definition(), | ||
new VirtualMachineScaleSetVMs.Definition(), | ||
new VirtualMachineScaleSets.Definition(), | ||
new VirtualMachineSizes.Definition(), | ||
new VirtualMachines.Definition(), | ||
}; | ||
} |
17 changes: 17 additions & 0 deletions
17
...nitions.ResourceManager/Compute/v2023_03_01/AvailabilitySets/Constant-StatusLevelTypes.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,17 @@ | ||
using Pandora.Definitions.Attributes; | ||
using System.ComponentModel; | ||
|
||
namespace Pandora.Definitions.ResourceManager.Compute.v2023_03_01.AvailabilitySets; | ||
|
||
[ConstantType(ConstantTypeAttribute.ConstantType.String)] | ||
internal enum StatusLevelTypesConstant | ||
{ | ||
[Description("Error")] | ||
Error, | ||
|
||
[Description("Info")] | ||
Info, | ||
|
||
[Description("Warning")] | ||
Warning, | ||
} |
39 changes: 39 additions & 0 deletions
39
data/Pandora.Definitions.ResourceManager/Compute/v2023_03_01/AvailabilitySets/Definition.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,39 @@ | ||
using System.Collections.Generic; | ||
using Pandora.Definitions.Interfaces; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.Compute.v2023_03_01.AvailabilitySets; | ||
|
||
internal class Definition : ResourceDefinition | ||
{ | ||
public string Name => "AvailabilitySets"; | ||
public IEnumerable<Interfaces.ApiOperation> Operations => new List<Interfaces.ApiOperation> | ||
{ | ||
new CreateOrUpdateOperation(), | ||
new DeleteOperation(), | ||
new GetOperation(), | ||
new ListOperation(), | ||
new ListAvailableSizesOperation(), | ||
new ListBySubscriptionOperation(), | ||
new UpdateOperation(), | ||
}; | ||
public IEnumerable<System.Type> Constants => new List<System.Type> | ||
{ | ||
typeof(StatusLevelTypesConstant), | ||
}; | ||
public IEnumerable<System.Type> Models => new List<System.Type> | ||
{ | ||
typeof(AvailabilitySetModel), | ||
typeof(AvailabilitySetPropertiesModel), | ||
typeof(AvailabilitySetUpdateModel), | ||
typeof(InstanceViewStatusModel), | ||
typeof(SkuModel), | ||
typeof(SubResourceModel), | ||
typeof(VirtualMachineSizeModel), | ||
typeof(VirtualMachineSizeListResultModel), | ||
}; | ||
} |
39 changes: 39 additions & 0 deletions
39
...Definitions.ResourceManager/Compute/v2023_03_01/AvailabilitySets/Model-AvailabilitySet.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,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.Attributes.Validation; | ||
using Pandora.Definitions.CustomTypes; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.Compute.v2023_03_01.AvailabilitySets; | ||
|
||
|
||
internal class AvailabilitySetModel | ||
{ | ||
[JsonPropertyName("id")] | ||
public string? Id { get; set; } | ||
|
||
[JsonPropertyName("location")] | ||
[Required] | ||
public CustomTypes.Location Location { get; set; } | ||
|
||
[JsonPropertyName("name")] | ||
public string? Name { get; set; } | ||
|
||
[JsonPropertyName("properties")] | ||
public AvailabilitySetPropertiesModel? Properties { get; set; } | ||
|
||
[JsonPropertyName("sku")] | ||
public SkuModel? Sku { get; set; } | ||
|
||
[JsonPropertyName("tags")] | ||
public CustomTypes.Tags? Tags { get; set; } | ||
|
||
[JsonPropertyName("type")] | ||
public string? Type { get; set; } | ||
} |
32 changes: 32 additions & 0 deletions
32
...s.ResourceManager/Compute/v2023_03_01/AvailabilitySets/Model-AvailabilitySetProperties.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,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.Attributes.Validation; | ||
using Pandora.Definitions.CustomTypes; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.Compute.v2023_03_01.AvailabilitySets; | ||
|
||
|
||
internal class AvailabilitySetPropertiesModel | ||
{ | ||
[JsonPropertyName("platformFaultDomainCount")] | ||
public int? PlatformFaultDomainCount { get; set; } | ||
|
||
[JsonPropertyName("platformUpdateDomainCount")] | ||
public int? PlatformUpdateDomainCount { get; set; } | ||
|
||
[JsonPropertyName("proximityPlacementGroup")] | ||
public SubResourceModel? ProximityPlacementGroup { get; set; } | ||
|
||
[JsonPropertyName("statuses")] | ||
public List<InstanceViewStatusModel>? Statuses { get; set; } | ||
|
||
[JsonPropertyName("virtualMachines")] | ||
public List<SubResourceModel>? VirtualMachines { get; set; } | ||
} |
26 changes: 26 additions & 0 deletions
26
...tions.ResourceManager/Compute/v2023_03_01/AvailabilitySets/Model-AvailabilitySetUpdate.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,26 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.Attributes.Validation; | ||
using Pandora.Definitions.CustomTypes; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.Compute.v2023_03_01.AvailabilitySets; | ||
|
||
|
||
internal class AvailabilitySetUpdateModel | ||
{ | ||
[JsonPropertyName("properties")] | ||
public AvailabilitySetPropertiesModel? Properties { get; set; } | ||
|
||
[JsonPropertyName("sku")] | ||
public SkuModel? Sku { get; set; } | ||
|
||
[JsonPropertyName("tags")] | ||
public CustomTypes.Tags? Tags { get; set; } | ||
} |
33 changes: 33 additions & 0 deletions
33
...initions.ResourceManager/Compute/v2023_03_01/AvailabilitySets/Model-InstanceViewStatus.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,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.Attributes.Validation; | ||
using Pandora.Definitions.CustomTypes; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.Compute.v2023_03_01.AvailabilitySets; | ||
|
||
|
||
internal class InstanceViewStatusModel | ||
{ | ||
[JsonPropertyName("code")] | ||
public string? Code { get; set; } | ||
|
||
[JsonPropertyName("displayStatus")] | ||
public string? DisplayStatus { get; set; } | ||
|
||
[JsonPropertyName("level")] | ||
public StatusLevelTypesConstant? Level { get; set; } | ||
|
||
[JsonPropertyName("message")] | ||
public string? Message { get; set; } | ||
|
||
[DateFormat(DateFormatAttribute.DateFormat.RFC3339)] | ||
[JsonPropertyName("time")] | ||
public DateTime? Time { get; set; } | ||
} |
26 changes: 26 additions & 0 deletions
26
data/Pandora.Definitions.ResourceManager/Compute/v2023_03_01/AvailabilitySets/Model-Sku.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,26 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.Attributes.Validation; | ||
using Pandora.Definitions.CustomTypes; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.Compute.v2023_03_01.AvailabilitySets; | ||
|
||
|
||
internal class SkuModel | ||
{ | ||
[JsonPropertyName("capacity")] | ||
public int? Capacity { get; set; } | ||
|
||
[JsonPropertyName("name")] | ||
public string? Name { get; set; } | ||
|
||
[JsonPropertyName("tier")] | ||
public string? Tier { get; set; } | ||
} |
20 changes: 20 additions & 0 deletions
20
...ora.Definitions.ResourceManager/Compute/v2023_03_01/AvailabilitySets/Model-SubResource.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,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.Attributes.Validation; | ||
using Pandora.Definitions.CustomTypes; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.Compute.v2023_03_01.AvailabilitySets; | ||
|
||
|
||
internal class SubResourceModel | ||
{ | ||
[JsonPropertyName("id")] | ||
public string? Id { get; set; } | ||
} |
35 changes: 35 additions & 0 deletions
35
...initions.ResourceManager/Compute/v2023_03_01/AvailabilitySets/Model-VirtualMachineSize.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,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.Attributes.Validation; | ||
using Pandora.Definitions.CustomTypes; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.Compute.v2023_03_01.AvailabilitySets; | ||
|
||
|
||
internal class VirtualMachineSizeModel | ||
{ | ||
[JsonPropertyName("maxDataDiskCount")] | ||
public int? MaxDataDiskCount { get; set; } | ||
|
||
[JsonPropertyName("memoryInMB")] | ||
public int? MemoryInMB { get; set; } | ||
|
||
[JsonPropertyName("name")] | ||
public string? Name { get; set; } | ||
|
||
[JsonPropertyName("numberOfCores")] | ||
public int? NumberOfCores { get; set; } | ||
|
||
[JsonPropertyName("osDiskSizeInMB")] | ||
public int? OsDiskSizeInMB { get; set; } | ||
|
||
[JsonPropertyName("resourceDiskSizeInMB")] | ||
public int? ResourceDiskSizeInMB { get; set; } | ||
} |
20 changes: 20 additions & 0 deletions
20
...esourceManager/Compute/v2023_03_01/AvailabilitySets/Model-VirtualMachineSizeListResult.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,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.Attributes.Validation; | ||
using Pandora.Definitions.CustomTypes; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.Compute.v2023_03_01.AvailabilitySets; | ||
|
||
|
||
internal class VirtualMachineSizeListResultModel | ||
{ | ||
[JsonPropertyName("value")] | ||
public List<VirtualMachineSizeModel>? Value { get; set; } | ||
} |
29 changes: 29 additions & 0 deletions
29
...initions.ResourceManager/Compute/v2023_03_01/AvailabilitySets/Operation-CreateOrUpdate.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,29 @@ | ||
using Pandora.Definitions.Attributes; | ||
using Pandora.Definitions.CustomTypes; | ||
using Pandora.Definitions.Interfaces; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net; | ||
|
||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
|
||
namespace Pandora.Definitions.ResourceManager.Compute.v2023_03_01.AvailabilitySets; | ||
|
||
internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation | ||
{ | ||
public override IEnumerable<HttpStatusCode> ExpectedStatusCodes() => new List<HttpStatusCode> | ||
{ | ||
HttpStatusCode.OK, | ||
}; | ||
|
||
public override Type? RequestObject() => typeof(AvailabilitySetModel); | ||
|
||
public override ResourceID? ResourceId() => new AvailabilitySetId(); | ||
|
||
public override Type? ResponseObject() => typeof(AvailabilitySetModel); | ||
|
||
|
||
} |
Oops, something went wrong.