-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3121 from hashicorp/data/regeneration-from-655211…
…244cbdae7e2b0cace7942afb0d63ea746f-rest-api-specs Data: Rest Api Specs - regenerating based on 6552112
- Loading branch information
Showing
229 changed files
with
6,635 additions
and
1 deletion.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
data/Pandora.Definitions.ResourceManager/DevCenter/ServiceDefinition-GenerationSettings.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.DevCenter; | ||
|
||
public partial class Service | ||
{ | ||
public bool Generate => true; | ||
} |
21 changes: 21 additions & 0 deletions
21
data/Pandora.Definitions.ResourceManager/DevCenter/ServiceDefinition.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,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> | ||
{ | ||
|
||
}; | ||
} |
6 changes: 6 additions & 0 deletions
6
...finitions.ResourceManager/DevCenter/v2023_04_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.DevCenter.v2023_04_01; | ||
|
||
public partial class Definition | ||
{ | ||
public bool Generate => true; | ||
} |
31 changes: 31 additions & 0 deletions
31
data/Pandora.Definitions.ResourceManager/DevCenter/v2023_04_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,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(), | ||
}; | ||
} |
14 changes: 14 additions & 0 deletions
14
...sourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-DomainJoinType.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,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, | ||
} |
26 changes: 26 additions & 0 deletions
26
...rceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-HealthCheckStatus.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 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, | ||
} |
56 changes: 56 additions & 0 deletions
56
...rceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/Constant-ProvisioningState.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,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, | ||
} |
30 changes: 30 additions & 0 deletions
30
...efinitions.ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/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,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), | ||
}; | ||
} |
32 changes: 32 additions & 0 deletions
32
...nager/DevCenter/v2023_04_01/AttachedNetworkConnections/Model-AttachedNetworkConnection.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.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; } | ||
} |
33 changes: 33 additions & 0 deletions
33
...enter/v2023_04_01/AttachedNetworkConnections/Model-AttachedNetworkConnectionProperties.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.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; } | ||
} |
33 changes: 33 additions & 0 deletions
33
...enter/v2023_04_01/AttachedNetworkConnections/Operation-AttachedNetworksListByDevCenter.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 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; } | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...vCenter/v2023_04_01/AttachedNetworkConnections/Operation-AttachedNetworksListByProject.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 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; } | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...esourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/ResourceId-DevCenterId.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,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"), | ||
}; | ||
} |
28 changes: 28 additions & 0 deletions
28
....ResourceManager/DevCenter/v2023_04_01/AttachedNetworkConnections/ResourceId-ProjectId.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,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"), | ||
}; | ||
} |
Oops, something went wrong.