Skip to content

Commit 11c22ba

Browse files
simplified namespaces (Azure#47027)
1 parent 82b9a17 commit 11c22ba

File tree

13 files changed

+34
-35
lines changed

13 files changed

+34
-35
lines changed

sdk/cloudmachine/Azure.CloudMachine.Web/api/Azure.CloudMachine.Web.net8.0.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace System.ClientModel.TypeSpec
1+
namespace Azure.CloudMachine
22
{
33
public static partial class CloudMachineExtensions
44
{

sdk/cloudmachine/Azure.CloudMachine.Web/src/CloudMachineExtensions.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
using System.Reflection;
5-
using Microsoft.AspNetCore.Mvc;
4+
using System;
65
using System.Diagnostics;
76
using System.IO;
7+
using System.Reflection;
88
using System.Threading.Tasks;
99
using Azure.CloudMachine;
10+
using Microsoft.AspNetCore.Builder;
1011
using Microsoft.AspNetCore.Http;
12+
using Microsoft.AspNetCore.Mvc;
1113
using Microsoft.AspNetCore.Routing;
12-
using Microsoft.AspNetCore.Builder;
1314

14-
namespace System.ClientModel.TypeSpec;
15+
namespace Azure.CloudMachine;
1516

1617
/// <summary>
1718
/// ASp.NET Core extension methods for mapping a service implementation to a set of HTTP endpoints.

sdk/cloudmachine/Azure.CloudMachine/src/CoreServices/StorageServices.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
using Azure.Storage.Blobs.Models;
1212
using Azure.Storage.Blobs.Specialized;
1313
using Azure.Messaging.ServiceBus;
14-
using System.Net.Mime;
1514
using ContentType = Azure.Core.ContentType;
16-
using System.Collections.Generic;
1715

1816
namespace Azure.CloudMachine;
1917

sdk/cloudmachine/Azure.CloudMachine/src/extensions/ChatTools.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using System.Reflection;
99
using System.Text;
1010
using System.Text.Json;
11-
using Azure.Messaging.EventGrid.SystemEvents;
1211
using OpenAI.Chat;
1312

1413
namespace Azure.CloudMachine.OpenAI;

sdk/cloudmachine/Azure.CloudMachine/tests/CloudMachineTests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
using System;
77
using System.Threading;
8-
using Azure.Provisioning.CloudMachine;
9-
using Azure.Provisioning.CloudMachine.KeyVault;
10-
using Azure.Provisioning.CloudMachine.OpenAI;
118
using Azure.Security.KeyVault.Secrets;
129
using Azure.CloudMachine.OpenAI;
1310
using Azure.CloudMachine.KeyVault;

sdk/provisioning/Azure.Provisioning.CloudMachine/api/Azure.Provisioning.CloudMachine.netstandard2.0.cs

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
namespace Azure.Provisioning.CloudMachine
1+
namespace Azure.CloudMachine
22
{
3-
public abstract partial class CloudMachineFeature
4-
{
5-
protected CloudMachineFeature() { }
6-
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
7-
public abstract void AddTo(Azure.Provisioning.CloudMachine.CloudMachineInfrastructure cm);
8-
}
93
public partial class CloudMachineInfrastructure
104
{
115
public CloudMachineInfrastructure(string cmId) { }
@@ -16,19 +10,19 @@ public void AddEndpoints<T>() { }
1610
public void AddFeature(Azure.Provisioning.CloudMachine.CloudMachineFeature resource) { }
1711
public void AddResource(Azure.Provisioning.Primitives.NamedProvisionableConstruct resource) { }
1812
public Azure.Provisioning.ProvisioningPlan Build(Azure.Provisioning.ProvisioningBuildOptions? context = null) { throw null; }
19-
public static bool Configure(string[] args, System.Action<Azure.Provisioning.CloudMachine.CloudMachineInfrastructure>? configure = null) { throw null; }
13+
public static bool Configure(string[] args, System.Action<Azure.CloudMachine.CloudMachineInfrastructure>? configure = null) { throw null; }
2014
}
2115
}
22-
namespace Azure.Provisioning.CloudMachine.KeyVault
16+
namespace Azure.CloudMachine.KeyVault
2317
{
2418
public partial class KeyVaultFeature : Azure.Provisioning.CloudMachine.CloudMachineFeature
2519
{
2620
public KeyVaultFeature(Azure.Provisioning.KeyVault.KeyVaultSku? sku = null) { }
2721
public Azure.Provisioning.KeyVault.KeyVaultSku Sku { get { throw null; } set { } }
28-
public override void AddTo(Azure.Provisioning.CloudMachine.CloudMachineInfrastructure infrastructure) { }
22+
public override void AddTo(Azure.CloudMachine.CloudMachineInfrastructure infrastructure) { }
2923
}
3024
}
31-
namespace Azure.Provisioning.CloudMachine.OpenAI
25+
namespace Azure.CloudMachine.OpenAI
3226
{
3327
public partial class AIModel
3428
{
@@ -39,9 +33,18 @@ public AIModel(string model, string modelVersion) { }
3933
public partial class OpenAIFeature : Azure.Provisioning.CloudMachine.CloudMachineFeature
4034
{
4135
public OpenAIFeature() { }
42-
public Azure.Provisioning.CloudMachine.OpenAI.AIModel? Chat { get { throw null; } set { } }
43-
public Azure.Provisioning.CloudMachine.OpenAI.AIModel? Embeddings { get { throw null; } set { } }
44-
public override void AddTo(Azure.Provisioning.CloudMachine.CloudMachineInfrastructure cloudMachine) { }
36+
public Azure.CloudMachine.OpenAI.AIModel? Chat { get { throw null; } set { } }
37+
public Azure.CloudMachine.OpenAI.AIModel? Embeddings { get { throw null; } set { } }
38+
public override void AddTo(Azure.CloudMachine.CloudMachineInfrastructure cloudMachine) { }
39+
}
40+
}
41+
namespace Azure.Provisioning.CloudMachine
42+
{
43+
public abstract partial class CloudMachineFeature
44+
{
45+
protected CloudMachineFeature() { }
46+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
47+
public abstract void AddTo(Azure.CloudMachine.CloudMachineInfrastructure cm);
4548
}
4649
}
4750
namespace System.ClientModel.TypeSpec

sdk/provisioning/Azure.Provisioning.CloudMachine/src/AzureSdkExtensions/AIModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
namespace Azure.Provisioning.CloudMachine.OpenAI;
4+
namespace Azure.CloudMachine.OpenAI;
55

66
public class AIModel
77
{

sdk/provisioning/Azure.Provisioning.CloudMachine/src/AzureSdkExtensions/KeyVaultFeature.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
// Licensed under the MIT License.
33

44
using Azure.Provisioning.Authorization;
5+
using Azure.Provisioning.CloudMachine;
56
using Azure.Provisioning.Expressions;
67
using Azure.Provisioning.KeyVault;
78

8-
namespace Azure.Provisioning.CloudMachine.KeyVault;
9+
namespace Azure.CloudMachine.KeyVault;
910

1011
public class KeyVaultFeature : CloudMachineFeature
1112
{

sdk/provisioning/Azure.Provisioning.CloudMachine/src/AzureSdkExtensions/OpenAIFeature.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
using System;
55
using Azure.Provisioning.Authorization;
6+
using Azure.Provisioning.CloudMachine;
67
using Azure.Provisioning.CognitiveServices;
78

8-
namespace Azure.Provisioning.CloudMachine.OpenAI;
9+
namespace Azure.CloudMachine.OpenAI;
910

1011
public class OpenAIFeature : CloudMachineFeature
1112
{

sdk/provisioning/Azure.Provisioning.CloudMachine/src/CDKLevel3/CloudMachineFeature.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the MIT License.
33

44
using System.ComponentModel;
5+
using Azure.CloudMachine;
56

67
namespace Azure.Provisioning.CloudMachine;
78

0 commit comments

Comments
 (0)