Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data: regenerating based on ad6e8f1c7a49d8ef4c408b11b9f1c00ca861b5c8 #941

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Pandora.Definitions.ResourceManager.DesktopVirtualization;

public partial class Service
{
public bool Generate => true;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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.DesktopVirtualization;

public partial class Service : ServiceDefinition
{
public string Name => "DesktopVirtualization";
public string? ResourceProvider => "Microsoft.DesktopVirtualization";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Pandora.Definitions.ResourceManager.DesktopVirtualization.v2021_09_03_preview;

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

namespace Pandora.Definitions.ResourceManager.DesktopVirtualization.v2021_09_03_preview;
public partial class Definition : ApiVersionDefinition
{
public string ApiVersion => "2021-09-03-preview";
public bool Preview => true;
public Source Source => Source.ResourceManagerRestApiSpecs;

public IEnumerable<ResourceDefinition> Resources => new List<ResourceDefinition>
{
new Application.Definition(),
new ApplicationGroup.Definition(),
new Desktop.Definition(),
new HostPool.Definition(),
new MSIXPackage.Definition(),
new MsixImage.Definition(),
new PrivateLink.Definition(),
new ScalingPlan.Definition(),
new SessionHost.Definition(),
new StartMenuItem.Definition(),
new UserSession.Definition(),
new Workspace.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.DesktopVirtualization.v2021_09_03_preview.Application;

[ConstantType(ConstantTypeAttribute.ConstantType.String)]
internal enum CommandLineSettingConstant
{
[Description("Allow")]
Allow,

[Description("DoNotAllow")]
DoNotAllow,

[Description("Require")]
Require,
}
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.DesktopVirtualization.v2021_09_03_preview.Application;

[ConstantType(ConstantTypeAttribute.ConstantType.String)]
internal enum RemoteApplicationTypeConstant
{
[Description("InBuilt")]
InBuilt,

[Description("MsixApplication")]
MsixApplication,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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.DesktopVirtualization.v2021_09_03_preview.Application;

internal class Definition : ResourceDefinition
{
public string Name => "Application";
public IEnumerable<Interfaces.ApiOperation> Operations => new List<Interfaces.ApiOperation>
{
new CreateOrUpdateOperation(),
new DeleteOperation(),
new GetOperation(),
new ListOperation(),
new UpdateOperation(),
};
}
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.DesktopVirtualization.v2021_09_03_preview.Application;


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

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

[JsonPropertyName("properties")]
[Required]
public ApplicationPropertiesModel 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,23 @@
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.DesktopVirtualization.v2021_09_03_preview.Application;


internal class ApplicationPatchModel
{
[JsonPropertyName("properties")]
public ApplicationPatchPropertiesModel? Properties { get; set; }

[JsonPropertyName("tags")]
public CustomTypes.Tags? Tags { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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.DesktopVirtualization.v2021_09_03_preview.Application;


internal class ApplicationPatchPropertiesModel
{
[JsonPropertyName("applicationType")]
public RemoteApplicationTypeConstant? ApplicationType { get; set; }

[JsonPropertyName("commandLineArguments")]
public string? CommandLineArguments { get; set; }

[JsonPropertyName("commandLineSetting")]
public CommandLineSettingConstant? CommandLineSetting { get; set; }

[JsonPropertyName("description")]
public string? Description { get; set; }

[JsonPropertyName("filePath")]
public string? FilePath { get; set; }

[JsonPropertyName("friendlyName")]
public string? FriendlyName { get; set; }

[JsonPropertyName("iconIndex")]
public int? IconIndex { get; set; }

[JsonPropertyName("iconPath")]
public string? IconPath { get; set; }

[JsonPropertyName("msixPackageApplicationId")]
public string? MsixPackageApplicationId { get; set; }

[JsonPropertyName("msixPackageFamilyName")]
public string? MsixPackageFamilyName { get; set; }

[JsonPropertyName("showInPortal")]
public bool? ShowInPortal { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
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.DesktopVirtualization.v2021_09_03_preview.Application;


internal class ApplicationPropertiesModel
{
[JsonPropertyName("applicationType")]
public RemoteApplicationTypeConstant? ApplicationType { get; set; }

[JsonPropertyName("commandLineArguments")]
public string? CommandLineArguments { get; set; }

[JsonPropertyName("commandLineSetting")]
[Required]
public CommandLineSettingConstant CommandLineSetting { get; set; }

[JsonPropertyName("description")]
public string? Description { get; set; }

[JsonPropertyName("filePath")]
public string? FilePath { get; set; }

[JsonPropertyName("friendlyName")]
public string? FriendlyName { get; set; }

[JsonPropertyName("iconContent")]
public string? IconContent { get; set; }

[JsonPropertyName("iconHash")]
public string? IconHash { get; set; }

[JsonPropertyName("iconIndex")]
public int? IconIndex { get; set; }

[JsonPropertyName("iconPath")]
public string? IconPath { get; set; }

[JsonPropertyName("msixPackageApplicationId")]
public string? MsixPackageApplicationId { get; set; }

[JsonPropertyName("msixPackageFamilyName")]
public string? MsixPackageFamilyName { get; set; }

[JsonPropertyName("objectId")]
public string? ObjectId { get; set; }

[JsonPropertyName("showInPortal")]
public bool? ShowInPortal { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using Pandora.Definitions.Attributes;
using Pandora.Definitions.CustomTypes;
using Pandora.Definitions.Interfaces;
using Pandora.Definitions.Operations;
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.DesktopVirtualization.v2021_09_03_preview.Application;

internal class CreateOrUpdateOperation : Operations.PutOperation
{
public override Type? RequestObject() => typeof(ApplicationModel);

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

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


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using Pandora.Definitions.Attributes;
using Pandora.Definitions.CustomTypes;
using Pandora.Definitions.Interfaces;
using Pandora.Definitions.Operations;
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.DesktopVirtualization.v2021_09_03_preview.Application;

internal class DeleteOperation : Operations.DeleteOperation
{
public override IEnumerable<HttpStatusCode> ExpectedStatusCodes() => new List<HttpStatusCode>
{
HttpStatusCode.NoContent,
HttpStatusCode.OK,
};

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


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using Pandora.Definitions.Attributes;
using Pandora.Definitions.CustomTypes;
using Pandora.Definitions.Interfaces;
using Pandora.Definitions.Operations;
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.DesktopVirtualization.v2021_09_03_preview.Application;

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

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


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using Pandora.Definitions.Attributes;
using Pandora.Definitions.CustomTypes;
using Pandora.Definitions.Interfaces;
using Pandora.Definitions.Operations;
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.DesktopVirtualization.v2021_09_03_preview.Application;

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

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

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

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


}
Loading