Skip to content

Commit

Permalink
Merge branch 'main' into generator-msgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Sep 8, 2023
2 parents 9fee068 + 4d4c013 commit 5884b91
Show file tree
Hide file tree
Showing 187 changed files with 320 additions and 231 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ internal class ChangeVnetOperation : Pandora.Definitions.Operations.ListOperatio

public override Type? RequestObject() => typeof(VirtualNetworkProfileModel);

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOpera

public override Type? RequestObject() => typeof(AppServiceEnvironmentResourceModel);

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ internal class CreateOrUpdateMultiRolePoolOperation : Pandora.Definitions.Operat

public override Type? RequestObject() => typeof(WorkerPoolResourceModel);

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation

public override bool LongRunning() => true;

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

public override Type? OptionsObject() => typeof(DeleteOperation.DeleteOptions);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal class DeleteAseCustomDnsSuffixConfigurationOperation : Pandora.Definiti
HttpStatusCode.OK,
};

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pandora.Definitions.ResourceManager.Web.v2022_09_01.AppServiceEnvironm

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pandora.Definitions.ResourceManager.Web.v2022_09_01.AppServiceEnvironm

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pandora.Definitions.ResourceManager.Web.v2022_09_01.AppServiceEnvironm

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class GetInboundNetworkDependenciesEndpointsOperation : Pandora.Definit
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pandora.Definitions.ResourceManager.Web.v2022_09_01.AppServiceEnvironm

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class GetOutboundNetworkDependenciesEndpointsOperation : Pandora.Defini
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class GetPrivateEndpointConnectionListOperation : Pandora.Definitions.O
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pandora.Definitions.ResourceManager.Web.v2022_09_01.AppServiceEnvironm

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pandora.Definitions.ResourceManager.Web.v2022_09_01.AppServiceEnvironm

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class ListAppServicePlansOperation : Pandora.Definitions.Operations.Lis
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class ListCapacitiesOperation : Pandora.Definitions.Operations.ListOper
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pandora.Definitions.ResourceManager.Web.v2022_09_01.AppServiceEnvironm

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

public override Type? ResponseObject() => typeof(List<HostingEnvironmentDiagnosticsModel>);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class ListMultiRoleMetricDefinitionsOperation : Pandora.Definitions.Ope
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class ListMultiRolePoolSkusOperation : Pandora.Definitions.Operations.L
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class ListMultiRolePoolsOperation : Pandora.Definitions.Operations.List
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class ListMultiRoleUsagesOperation : Pandora.Definitions.Operations.Lis
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pandora.Definitions.ResourceManager.Web.v2022_09_01.AppServiceEnvironm

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

public override Type? ResponseObject() => typeof(List<OperationModel>);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class ListUsagesOperation : Pandora.Definitions.Operations.ListOperatio
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class ListWebAppsOperation : Pandora.Definitions.Operations.ListOperati
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class ListWorkerPoolsOperation : Pandora.Definitions.Operations.ListOpe
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal class RebootOperation : Pandora.Definitions.Operations.PostOperation

public override Type? RequestObject() => null;

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ internal class ResumeOperation : Pandora.Definitions.Operations.ListOperation

public override Type? RequestObject() => null;

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ internal class SuspendOperation : Pandora.Definitions.Operations.ListOperation

public override Type? RequestObject() => null;

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal class TestUpgradeAvailableNotificationOperation : Pandora.Definitions.O

public override Type? RequestObject() => null;

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation

public override Type? RequestObject() => typeof(AppServiceEnvironmentPatchResourceModel);

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal class UpdateAseCustomDnsSuffixConfigurationOperation : Pandora.Definiti

public override Type? RequestObject() => typeof(CustomDnsSuffixConfigurationModel);

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal class UpdateAseNetworkingConfigurationOperation : Pandora.Definitions.O

public override Type? RequestObject() => typeof(AseV3NetworkingConfigurationModel);

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal class UpdateMultiRolePoolOperation : Pandora.Definitions.Operations.Pat

public override Type? RequestObject() => typeof(WorkerPoolResourceModel);

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ internal class UpgradeOperation : Pandora.Definitions.Operations.PostOperation

public override Type? RequestObject() => null;

public override ResourceID? ResourceId() => new HostingEnvironmentId();
public override ResourceID? ResourceId() => new AppServiceEnvironmentId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@

namespace Pandora.Definitions.ResourceManager.Web.v2022_09_01.AppServiceEnvironments;

internal class HostingEnvironmentId : ResourceID
internal class AppServiceEnvironmentId : ResourceID
{
public string? CommonAlias => null;
public string? CommonAlias => "AppServiceEnvironment";

public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}";

public List<ResourceIDSegment> Segments => new List<ResourceIDSegment>
{
ResourceIDSegment.Static("staticSubscriptions", "subscriptions"),
ResourceIDSegment.Static("subscriptions", "subscriptions"),
ResourceIDSegment.SubscriptionId("subscriptionId"),
ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"),
ResourceIDSegment.Static("resourceGroups", "resourceGroups"),
ResourceIDSegment.ResourceGroup("resourceGroupName"),
ResourceIDSegment.Static("staticProviders", "providers"),
ResourceIDSegment.ResourceProvider("staticMicrosoftWeb", "Microsoft.Web"),
ResourceIDSegment.Static("staticHostingEnvironments", "hostingEnvironments"),
ResourceIDSegment.Static("providers", "providers"),
ResourceIDSegment.ResourceProvider("resourceProvider", "Microsoft.Web"),
ResourceIDSegment.Static("hostingEnvironments", "hostingEnvironments"),
ResourceIDSegment.UserSpecified("hostingEnvironmentName"),
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOpera

public override Type? RequestObject() => typeof(AppServicePlanModel);

public override ResourceID? ResourceId() => new ServerFarmId();
public override ResourceID? ResourceId() => new AppServicePlanId();

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation
HttpStatusCode.OK,
};

public override ResourceID? ResourceId() => new ServerFarmId();
public override ResourceID? ResourceId() => new AppServicePlanId();


}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pandora.Definitions.ResourceManager.Web.v2022_09_01.AppServicePlans;

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pandora.Definitions.ResourceManager.Web.v2022_09_01.AppServicePlans;

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pandora.Definitions.ResourceManager.Web.v2022_09_01.AppServicePlans;

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Pandora.Definitions.ResourceManager.Web.v2022_09_01.AppServicePlans;

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

public override Type? ResponseObject() => typeof(List<CapabilityModel>);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class ListHybridConnectionsOperation : Pandora.Definitions.Operations.L
{
public override string? FieldContainingPaginationDetails() => "nextLink";

public override ResourceID? ResourceId() => new ServerFarmId();
public override ResourceID? ResourceId() => new AppServicePlanId();

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

Expand Down
Loading

0 comments on commit 5884b91

Please sign in to comment.