@azure-tools/typespec-providerhub-controller 0.43.0-dev.0 → 0.43.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/providerhub/model.sq +1 -1
- package/templates/providerhub/modelCopy.sq +0 -6
- package/templates/providerhub/modelCopyExtension.sq +4 -4
- package/templates/providerhub/modelVersionComposite.sq +0 -4
- package/templates/providerhub/resourceControllerBase.sq +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-providerhub-controller",
|
|
3
|
-
"version": "0.43.0-dev.
|
|
3
|
+
"version": "0.43.0-dev.1",
|
|
4
4
|
"description": "Azure TypeSpec ProviderHub service controller code generator",
|
|
5
5
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
6
6
|
"readme": "https://github.com/Azure/typespec-azure/blob/main/README.md",
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
using System;
|
|
7
7
|
using System.Collections.Generic;
|
|
8
|
-
using Newtonsoft.Json;
|
|
9
8
|
using Microsoft.TypeSpec.ProviderHub.Controller;
|
|
10
9
|
{{#if (and discriminatorInfo (ne discriminatorBaseType.namespace namespace))}}
|
|
11
10
|
using {{discriminatorBaseType.namespace}};
|
|
12
11
|
{{/if}}
|
|
12
|
+
using Newtonsoft.Json;
|
|
13
13
|
|
|
14
14
|
namespace {{nameSpace}}.Service.Models
|
|
15
15
|
{
|
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
// <auto-generated />
|
|
5
5
|
|
|
6
|
-
using System;
|
|
7
|
-
using System.ComponentModel;
|
|
8
|
-
using System.Runtime.Serialization;
|
|
9
|
-
using Newtonsoft.Json;
|
|
10
|
-
using Microsoft.TypeSpec.ProviderHub.Controller;
|
|
11
|
-
|
|
12
6
|
namespace Microsoft.{{serviceName}}.Service.Models
|
|
13
7
|
{
|
|
14
8
|
/// <summary>
|
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
// <auto-generated />
|
|
5
5
|
|
|
6
|
-
using System;
|
|
7
|
-
using System.ComponentModel;
|
|
8
|
-
using System.Runtime.Serialization;
|
|
9
|
-
using Newtonsoft.Json;
|
|
10
6
|
using Microsoft.TypeSpec.ProviderHub.Controller;
|
|
11
7
|
|
|
12
8
|
namespace Microsoft.{{serviceName}}.Service.Models
|
|
@@ -28,11 +24,15 @@ namespace Microsoft.{{serviceName}}.Service.Models
|
|
|
28
24
|
switch (copySettings)
|
|
29
25
|
{
|
|
30
26
|
case CopySettings.UsePatchSemantics:
|
|
27
|
+
{
|
|
31
28
|
helper.CopyForPatch(source, target);
|
|
32
29
|
break;
|
|
30
|
+
}
|
|
33
31
|
case CopySettings.UsePutSemantics:
|
|
32
|
+
{
|
|
34
33
|
helper.CopyForPut(source, target);
|
|
35
34
|
break;
|
|
35
|
+
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -12,7 +12,6 @@ using System.Threading;
|
|
|
12
12
|
using System.Threading.Tasks;
|
|
13
13
|
using Microsoft.AspNetCore.Mvc;
|
|
14
14
|
using Microsoft.Extensions.Logging;
|
|
15
|
-
using Microsoft.TypeSpec.ProviderHub;
|
|
16
15
|
using Microsoft.TypeSpec.ProviderHub.Controller;
|
|
17
16
|
{{#if (and res.resourceTypePath includeSubscriptionLifeCycleController)}}
|
|
18
17
|
using Microsoft.TypeSpec.ProviderHub.Controller.SubscriptionLifeCycle;
|