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

Consolate on DevHomeAzureExtension namespace #230

Merged
merged 1 commit into from
Jun 26, 2024
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/AzureExtension/AzureExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
// Licensed under the MIT License.

using System.Runtime.InteropServices;
using AzureExtension.DevBox;
using AzureExtension.Providers;
using AzureExtension.QuickStartPlayground;
using DevHomeAzureExtension.DevBox;
using DevHomeAzureExtension.DeveloperId;
using DevHomeAzureExtension.Providers;
using DevHomeAzureExtension.QuickStartPlayground;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Windows.DevHome.SDK;
Expand Down
2 changes: 1 addition & 1 deletion src/AzureExtension/Contracts/IAICredentialService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Security;

namespace AzureExtension.Contracts;
namespace DevHomeAzureExtension.Contracts;

public interface IAICredentialService
{
Expand Down
2 changes: 1 addition & 1 deletion src/AzureExtension/Contracts/IArmTokenService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using Microsoft.Windows.DevHome.SDK;

namespace AzureExtension.Contracts;
namespace DevHomeAzureExtension.Contracts;

// ARMTokenService is a service that provides an Azure Resource Manager (ARM) token.
public interface IArmTokenService
Expand Down
2 changes: 1 addition & 1 deletion src/AzureExtension/Contracts/IAzureOpenAIService.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.Contracts;
namespace DevHomeAzureExtension.Contracts;

public enum OpenAIEndpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/AzureExtension/Contracts/IDataTokenService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using Microsoft.Windows.DevHome.SDK;

namespace AzureExtension.Contracts;
namespace DevHomeAzureExtension.Contracts;

public interface IDataTokenService
{
Expand Down
2 changes: 1 addition & 1 deletion src/AzureExtension/Contracts/IDevBoxAuthService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using Microsoft.Windows.DevHome.SDK;

namespace AzureExtension.Contracts;
namespace DevHomeAzureExtension.Contracts;

public interface IDevBoxAuthService
{
Expand Down
6 changes: 3 additions & 3 deletions src/AzureExtension/Contracts/IDevBoxCreationManager.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using AzureExtension.DevBox;
using AzureExtension.DevBox.Models;
using DevHomeAzureExtension.DevBox;
using DevHomeAzureExtension.DevBox.Models;
using Microsoft.Windows.DevHome.SDK;

namespace AzureExtension.Contracts;
namespace DevHomeAzureExtension.Contracts;

public interface IDevBoxCreationManager
{
Expand Down
6 changes: 3 additions & 3 deletions src/AzureExtension/Contracts/IDevBoxManagementService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// Licensed under the MIT License.

using System.Text.Json;
using AzureExtension.DevBox.DevBoxJsonToCsClasses;
using AzureExtension.DevBox.Models;
using DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;
using DevHomeAzureExtension.DevBox.Models;
using Microsoft.Windows.DevHome.SDK;

namespace AzureExtension.Contracts;
namespace DevHomeAzureExtension.Contracts;

public interface IDevBoxManagementService
{
Expand Down
6 changes: 3 additions & 3 deletions src/AzureExtension/Contracts/IDevBoxOperationWatcher.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using AzureExtension.DevBox;
using AzureExtension.DevBox.Models;
using DevHomeAzureExtension.DevBox;
using DevHomeAzureExtension.DevBox.Models;
using Microsoft.Windows.DevHome.SDK;

namespace AzureExtension.Contracts;
namespace DevHomeAzureExtension.Contracts;

/// <summary>
/// Interface used to watch Dev Box operations asynchronously that take place in the Dev Center.
Expand Down
2 changes: 1 addition & 1 deletion src/AzureExtension/Contracts/IInstalledAppsService.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.Contracts;
namespace DevHomeAzureExtension.Contracts;

public interface IInstalledAppsService
{
Expand Down
2 changes: 1 addition & 1 deletion src/AzureExtension/Contracts/IPackagesService.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.Contracts;
namespace DevHomeAzureExtension.Contracts;

using Windows.ApplicationModel;

Expand Down
4 changes: 2 additions & 2 deletions src/AzureExtension/Contracts/ITimeSpanService.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using AzureExtension.DevBox;
using DevHomeAzureExtension.DevBox;

namespace AzureExtension.Contracts;
namespace DevHomeAzureExtension.Contracts;

/// <summary>
/// Interface that an operation watcher can use to get the time span based on the action to perform.
Expand Down
6 changes: 3 additions & 3 deletions src/AzureExtension/DevBox/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// Licensed under the MIT License.

using System.Text.Json;
using AzureExtension.DevBox.DevBoxJsonToCsClasses;
using AzureExtension.DevBox.Helpers;
using DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;
using DevHomeAzureExtension.DevBox.Helpers;
using DevHomeAzureExtension.Helpers;
using Windows.ApplicationModel;
using Windows.Storage;

namespace AzureExtension.DevBox;
namespace DevHomeAzureExtension.DevBox;

public static class Constants
{
Expand Down
12 changes: 6 additions & 6 deletions src/AzureExtension/DevBox/DevBoxInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
using System.Text;
using System.Text.Json;
using System.Web;
using AzureExtension.Contracts;
using AzureExtension.DevBox.DevBoxJsonToCsClasses;
using AzureExtension.DevBox.Helpers;
using AzureExtension.DevBox.Models;
using AzureExtension.Services.DevBox;
using DevHomeAzureExtension.Contracts;
using DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;
using DevHomeAzureExtension.DevBox.Helpers;
using DevHomeAzureExtension.DevBox.Models;
using DevHomeAzureExtension.Helpers;
using DevHomeAzureExtension.Services.DevBox;
using Microsoft.Windows.DevHome.SDK;
using Serilog;
using Windows.ApplicationModel;
using Windows.Foundation;

namespace AzureExtension.DevBox;
namespace DevHomeAzureExtension.DevBox;

public delegate DevBoxInstance DevBoxInstanceFactory(IDeveloperId developerId, DevBoxMachineState devBoxJson);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// This is used to represent the json object that we send with the "create Dev Box" request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Text.Json.Serialization;

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents the HardwareProfile object within a response from a Dev Box rest API call.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents the ImageReference object within a response from a Dev Box rest API call.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using AzureExtension.DevBox.Models;
using DevHomeAzureExtension.DevBox.Models;

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// https://azure.github.io/typespec-azure/docs/howtos/Azure%20Core/long-running-operations
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// This class represents the state of a DevBox machine. It is the class representation of
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents the response from the Dev Center API for getting a list of DevBoxes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Licensed under the MIT License.

using System.Text.Json.Serialization;
using AzureExtension.DevBox.Models;
using DevHomeAzureExtension.DevBox.Models;

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents the DevBoxOperation object within a response from a Dev Box rest API call.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents a list of DevBoxOperation object's within a response from a Dev Box rest API call.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents a DevBoxOperationResult object within a response from a Dev Box rest API call.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents a OsDisk object within a response from a Dev Box rest API call.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents a Pool object within a response from a Dev Box rest API call.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents a list of Pool object's within a response from a Dev Box rest API call.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents a StopOnDisconnect object within a response from a Dev Box rest API call.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents a DevBoxProject object within a response from a Dev Box rest API call.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents a ProjectProperties object within a response from a Dev Box rest API call.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents a List of DevBoxProject objects within a response from a Dev Box rest API call.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents the data returned from a request to retrieve the remote connection information for a Dev Box.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Represents the StorageProfile object within a response from a Dev Box rest API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Licensed under the MIT License.

using System.Text.Json.Serialization;
using AzureExtension.DevBox.Models;
using DevHomeAzureExtension.DevBox.Models;

namespace AzureExtension.DevBox.DevBoxJsonToCsClasses;
namespace DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;

/// <summary>
/// Used to generate the source code for the classes that we deserialize Json to objects for the DevBox feature.
Expand Down
8 changes: 4 additions & 4 deletions src/AzureExtension/DevBox/DevBoxProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
using System.Collections.Concurrent;
using System.Text;
using System.Text.Json;
using AzureExtension.Contracts;
using AzureExtension.DevBox.DevBoxJsonToCsClasses;
using AzureExtension.DevBox.Models;
using DevHomeAzureExtension.Contracts;
using DevHomeAzureExtension.DevBox.DevBoxJsonToCsClasses;
using DevHomeAzureExtension.DevBox.Models;
using DevHomeAzureExtension.Helpers;
using Microsoft.Windows.DevHome.SDK;
using Serilog;
using Windows.Foundation;

namespace AzureExtension.DevBox;
namespace DevHomeAzureExtension.DevBox;

/// <summary>
/// Implements the IComputeSystemProvider interface to provide DevBoxes as ComputeSystems.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.Exceptions;
namespace DevHomeAzureExtension.DevBox.Exceptions;

public class DevBoxCreationException : Exception
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace AzureExtension.DevBox.Exceptions;
namespace DevHomeAzureExtension.DevBox.Exceptions;

public class DevBoxNameInvalidException : Exception
{
Expand Down
Loading
Loading