Skip to content

Commit

Permalink
data: regenerating based on the latest Swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
hc-github-team-tf-azure committed Jul 24, 2023
1 parent a09108a commit 75659ea
Show file tree
Hide file tree
Showing 962 changed files with 28,118 additions and 0 deletions.
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;
}
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(),
};
}
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,
}
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),
};
}
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; }
}
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; }
}
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; }
}
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; }
}
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; }
}
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; }
}
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; }
}
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; }
}
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);


}
Loading

0 comments on commit 75659ea

Please sign in to comment.