Skip to content

Commit

Permalink
Merge pull request #3121 from hashicorp/data/regeneration-from-655211…
Browse files Browse the repository at this point in the history
…244cbdae7e2b0cace7942afb0d63ea746f-rest-api-specs

Data: Rest Api Specs - regenerating based on 6552112
  • Loading branch information
tombuildsstuff authored Oct 5, 2023
2 parents 6552112 + bee5c8d commit 680dd09
Show file tree
Hide file tree
Showing 229 changed files with 6,635 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Pandora.Definitions.ResourceManager.DevCenter;

public partial class Service
{
public bool Generate => true;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using Pandora.Definitions.Interfaces;
using System.Collections.Generic;


// 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.DevCenter;

public partial class Service : ServiceDefinition
{
public string Name => "DevCenter";
public string? ResourceProvider => "Microsoft.DevCenter";
public string? TerraformPackageName => null;

public IEnumerable<TerraformResourceDefinition> TerraformResources => new List<TerraformResourceDefinition>
{

};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01;

public partial class Definition
{
public bool Generate => true;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System.Collections.Generic;
using Pandora.Definitions.Interfaces;

namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01;

public partial class Definition : ApiVersionDefinition
{
public string ApiVersion => "2023-04-01";
public bool Preview => false;
public Source Source => Source.ResourceManagerRestApiSpecs;

public IEnumerable<ResourceDefinition> Resources => new List<ResourceDefinition>
{
new AttachedNetworkConnections.Definition(),
new Catalogs.Definition(),
new CheckNameAvailability.Definition(),
new DevBoxDefinitions.Definition(),
new DevCenters.Definition(),
new EnvironmentTypes.Definition(),
new Galleries.Definition(),
new ImageVersions.Definition(),
new Images.Definition(),
new NetworkConnection.Definition(),
new NetworkConnections.Definition(),
new Pools.Definition(),
new Projects.Definition(),
new SKUs.Definition(),
new Schedules.Definition(),
new Usages.Definition(),
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using Pandora.Definitions.Attributes;
using System.ComponentModel;

namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.AttachedNetworkConnections;

[ConstantType(ConstantTypeAttribute.ConstantType.String)]
internal enum DomainJoinTypeConstant
{
[Description("AzureADJoin")]
AzureADJoin,

[Description("HybridAzureADJoin")]
HybridAzureADJoin,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Pandora.Definitions.Attributes;
using System.ComponentModel;

namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.AttachedNetworkConnections;

[ConstantType(ConstantTypeAttribute.ConstantType.String)]
internal enum HealthCheckStatusConstant
{
[Description("Failed")]
Failed,

[Description("Passed")]
Passed,

[Description("Pending")]
Pending,

[Description("Running")]
Running,

[Description("Unknown")]
Unknown,

[Description("Warning")]
Warning,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
using Pandora.Definitions.Attributes;
using System.ComponentModel;

namespace Pandora.Definitions.ResourceManager.DevCenter.v2023_04_01.AttachedNetworkConnections;

[ConstantType(ConstantTypeAttribute.ConstantType.String)]
internal enum ProvisioningStateConstant
{
[Description("Accepted")]
Accepted,

[Description("Canceled")]
Canceled,

[Description("Created")]
Created,

[Description("Creating")]
Creating,

[Description("Deleted")]
Deleted,

[Description("Deleting")]
Deleting,

[Description("Failed")]
Failed,

[Description("MovingResources")]
MovingResources,

[Description("NotSpecified")]
NotSpecified,

[Description("RolloutInProgress")]
RolloutInProgress,

[Description("Running")]
Running,

[Description("StorageProvisioningFailed")]
StorageProvisioningFailed,

[Description("Succeeded")]
Succeeded,

[Description("TransientFailure")]
TransientFailure,

[Description("Updated")]
Updated,

[Description("Updating")]
Updating,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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.DevCenter.v2023_04_01.AttachedNetworkConnections;

internal class Definition : ResourceDefinition
{
public string Name => "AttachedNetworkConnections";
public IEnumerable<Interfaces.ApiOperation> Operations => new List<Interfaces.ApiOperation>
{
new AttachedNetworksListByDevCenterOperation(),
new AttachedNetworksListByProjectOperation(),
};
public IEnumerable<System.Type> Constants => new List<System.Type>
{
typeof(DomainJoinTypeConstant),
typeof(HealthCheckStatusConstant),
typeof(ProvisioningStateConstant),
};
public IEnumerable<System.Type> Models => new List<System.Type>
{
typeof(AttachedNetworkConnectionModel),
typeof(AttachedNetworkConnectionPropertiesModel),
};
}
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.DevCenter.v2023_04_01.AttachedNetworkConnections;


internal class AttachedNetworkConnectionModel
{
[JsonPropertyName("id")]
public string? Id { get; set; }

[JsonPropertyName("name")]
public string? Name { get; set; }

[JsonPropertyName("properties")]
public AttachedNetworkConnectionPropertiesModel? Properties { get; set; }

[JsonPropertyName("systemData")]
public CustomTypes.SystemData? SystemData { get; set; }

[JsonPropertyName("type")]
public string? Type { 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.DevCenter.v2023_04_01.AttachedNetworkConnections;


internal class AttachedNetworkConnectionPropertiesModel
{
[JsonPropertyName("domainJoinType")]
public DomainJoinTypeConstant? DomainJoinType { get; set; }

[JsonPropertyName("healthCheckStatus")]
public HealthCheckStatusConstant? HealthCheckStatus { get; set; }

[JsonPropertyName("networkConnectionId")]
[Required]
public string NetworkConnectionId { get; set; }

[JsonPropertyName("networkConnectionLocation")]
public string? NetworkConnectionLocation { get; set; }

[JsonPropertyName("provisioningState")]
public ProvisioningStateConstant? ProvisioningState { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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.DevCenter.v2023_04_01.AttachedNetworkConnections;

internal class AttachedNetworksListByDevCenterOperation : Pandora.Definitions.Operations.ListOperation
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new DevCenterId();

public override Type NestedItemType() => typeof(AttachedNetworkConnectionModel);

public override Type? OptionsObject() => typeof(AttachedNetworksListByDevCenterOperation.AttachedNetworksListByDevCenterOptions);

public override string? UriSuffix() => "/attachednetworks";

internal class AttachedNetworksListByDevCenterOptions
{
[QueryStringName("$top")]
[Optional]
public int Top { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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.DevCenter.v2023_04_01.AttachedNetworkConnections;

internal class AttachedNetworksListByProjectOperation : Pandora.Definitions.Operations.ListOperation
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new ProjectId();

public override Type NestedItemType() => typeof(AttachedNetworkConnectionModel);

public override Type? OptionsObject() => typeof(AttachedNetworksListByProjectOperation.AttachedNetworksListByProjectOptions);

public override string? UriSuffix() => "/attachednetworks";

internal class AttachedNetworksListByProjectOptions
{
[QueryStringName("$top")]
[Optional]
public int Top { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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.DevCenter.v2023_04_01.AttachedNetworkConnections;

internal class DevCenterId : ResourceID
{
public string? CommonAlias => null;

public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devCenters/{devCenterName}";

public List<ResourceIDSegment> Segments => new List<ResourceIDSegment>
{
ResourceIDSegment.Static("staticSubscriptions", "subscriptions"),
ResourceIDSegment.SubscriptionId("subscriptionId"),
ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"),
ResourceIDSegment.ResourceGroup("resourceGroupName"),
ResourceIDSegment.Static("staticProviders", "providers"),
ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"),
ResourceIDSegment.Static("staticDevCenters", "devCenters"),
ResourceIDSegment.UserSpecified("devCenterName"),
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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.DevCenter.v2023_04_01.AttachedNetworkConnections;

internal class ProjectId : ResourceID
{
public string? CommonAlias => null;

public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}";

public List<ResourceIDSegment> Segments => new List<ResourceIDSegment>
{
ResourceIDSegment.Static("staticSubscriptions", "subscriptions"),
ResourceIDSegment.SubscriptionId("subscriptionId"),
ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"),
ResourceIDSegment.ResourceGroup("resourceGroupName"),
ResourceIDSegment.Static("staticProviders", "providers"),
ResourceIDSegment.ResourceProvider("staticMicrosoftDevCenter", "Microsoft.DevCenter"),
ResourceIDSegment.Static("staticProjects", "projects"),
ResourceIDSegment.UserSpecified("projectName"),
};
}
Loading

0 comments on commit 680dd09

Please sign in to comment.