Skip to content

Commit

Permalink
Merge pull request #2843 from hashicorp/data/regeneration-from-4e1678…
Browse files Browse the repository at this point in the history
…b1d7558ee2e07d24c8517dcd302ea83f1c

Data: regenerating based on 4e1678b
  • Loading branch information
tombuildsstuff authored Jul 28, 2023
2 parents 4e1678b + 06520b5 commit 3b4e3d7
Show file tree
Hide file tree
Showing 514 changed files with 14,425 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Pandora.Definitions.ResourceManager.ContainerApps.v2022_11_01_preview;

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.ContainerApps.v2022_11_01_preview;

public partial class Definition : ApiVersionDefinition
{
public string ApiVersion => "2022-11-01-preview";
public bool Preview => true;
public Source Source => Source.ResourceManagerRestApiSpecs;

public IEnumerable<ResourceDefinition> Resources => new List<ResourceDefinition>
{
new AvailableWorkloadProfiles.Definition(),
new BillingMeters.Definition(),
new Certificates.Definition(),
new ConnectedEnvironments.Definition(),
new ConnectedEnvironmentsStorages.Definition(),
new ContainerApps.Definition(),
new ContainerAppsAuthConfigs.Definition(),
new ContainerAppsRevisionReplicas.Definition(),
new ContainerAppsRevisions.Definition(),
new ContainerAppsSourceControls.Definition(),
new DaprComponents.Definition(),
new Diagnostics.Definition(),
new Jobs.Definition(),
new ManagedCertificates.Definition(),
new ManagedEnvironments.Definition(),
new ManagedEnvironmentsStorages.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.ContainerApps.v2022_11_01_preview.AvailableWorkloadProfiles;

[ConstantType(ConstantTypeAttribute.ConstantType.String)]
internal enum ApplicabilityConstant
{
[Description("Custom")]
Custom,

[Description("LocationDefault")]
LocationDefault,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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.ContainerApps.v2022_11_01_preview.AvailableWorkloadProfiles;

internal class Definition : ResourceDefinition
{
public string Name => "AvailableWorkloadProfiles";
public IEnumerable<Interfaces.ApiOperation> Operations => new List<Interfaces.ApiOperation>
{
new GetOperation(),
};
public IEnumerable<System.Type> Constants => new List<System.Type>
{
typeof(ApplicabilityConstant),
};
public IEnumerable<System.Type> Models => new List<System.Type>
{
typeof(AvailableWorkloadProfileModel),
typeof(AvailableWorkloadProfilePropertiesModel),
};
}
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.ContainerApps.v2022_11_01_preview.AvailableWorkloadProfiles;


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

[JsonPropertyName("location")]
public CustomTypes.Location? Location { get; set; }

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

[JsonPropertyName("properties")]
public AvailableWorkloadProfilePropertiesModel? 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,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.ContainerApps.v2022_11_01_preview.AvailableWorkloadProfiles;


internal class AvailableWorkloadProfilePropertiesModel
{
[JsonPropertyName("applicability")]
public ApplicabilityConstant? Applicability { get; set; }

[JsonPropertyName("category")]
public string? Category { get; set; }

[JsonPropertyName("cores")]
public int? Cores { get; set; }

[JsonPropertyName("displayName")]
public string? DisplayName { get; set; }

[JsonPropertyName("memoryGiB")]
public int? MemoryGiB { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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.ContainerApps.v2022_11_01_preview.AvailableWorkloadProfiles;

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

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

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

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


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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.ContainerApps.v2022_11_01_preview.AvailableWorkloadProfiles;

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

public string ID => "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{locationName}";

public List<ResourceIDSegment> Segments => new List<ResourceIDSegment>
{
ResourceIDSegment.Static("staticSubscriptions", "subscriptions"),
ResourceIDSegment.SubscriptionId("subscriptionId"),
ResourceIDSegment.Static("staticProviders", "providers"),
ResourceIDSegment.ResourceProvider("staticMicrosoftApp", "Microsoft.App"),
ResourceIDSegment.Static("staticLocations", "locations"),
ResourceIDSegment.UserSpecified("locationName"),
};
}
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.ContainerApps.v2022_11_01_preview.BillingMeters;

internal class Definition : ResourceDefinition
{
public string Name => "BillingMeters";
public IEnumerable<Interfaces.ApiOperation> Operations => new List<Interfaces.ApiOperation>
{
new GetOperation(),
};
public IEnumerable<System.Type> Constants => new List<System.Type>
{

};
public IEnumerable<System.Type> Models => new List<System.Type>
{
typeof(BillingMeterModel),
typeof(BillingMeterCollectionModel),
typeof(BillingMeterPropertiesModel),
};
}
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.ContainerApps.v2022_11_01_preview.BillingMeters;


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

[JsonPropertyName("location")]
public CustomTypes.Location? Location { get; set; }

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

[JsonPropertyName("properties")]
public BillingMeterPropertiesModel? 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,21 @@
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.ContainerApps.v2022_11_01_preview.BillingMeters;


internal class BillingMeterCollectionModel
{
[JsonPropertyName("value")]
[Required]
public List<BillingMeterModel> Value { 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.ContainerApps.v2022_11_01_preview.BillingMeters;


internal class BillingMeterPropertiesModel
{
[JsonPropertyName("category")]
public string? Category { get; set; }

[JsonPropertyName("displayName")]
public string? DisplayName { get; set; }

[JsonPropertyName("meterType")]
public string? MeterType { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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.ContainerApps.v2022_11_01_preview.BillingMeters;

internal class GetOperation : Pandora.Definitions.Operations.GetOperation
{
public override ResourceID? ResourceId() => new LocationId();

public override Type? ResponseObject() => typeof(BillingMeterCollectionModel);

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


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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.ContainerApps.v2022_11_01_preview.BillingMeters;

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

public string ID => "/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{locationName}";

public List<ResourceIDSegment> Segments => new List<ResourceIDSegment>
{
ResourceIDSegment.Static("staticSubscriptions", "subscriptions"),
ResourceIDSegment.SubscriptionId("subscriptionId"),
ResourceIDSegment.Static("staticProviders", "providers"),
ResourceIDSegment.ResourceProvider("staticMicrosoftApp", "Microsoft.App"),
ResourceIDSegment.Static("staticLocations", "locations"),
ResourceIDSegment.UserSpecified("locationName"),
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using Pandora.Definitions.Attributes;
using System.ComponentModel;

namespace Pandora.Definitions.ResourceManager.ContainerApps.v2022_11_01_preview.Certificates;

[ConstantType(ConstantTypeAttribute.ConstantType.String)]
internal enum CertificateProvisioningStateConstant
{
[Description("Canceled")]
Canceled,

[Description("DeleteFailed")]
DeleteFailed,

[Description("Failed")]
Failed,

[Description("Pending")]
Pending,

[Description("Succeeded")]
Succeeded,
}
Loading

0 comments on commit 3b4e3d7

Please sign in to comment.