Skip to content

Commit 0459946

Browse files
authored
[Az.DigitalTwins] Update generation tool version: autorest.powershell v3->v4 (#27899)
1 parent a1cce68 commit 0459946

File tree

84 files changed

+3934
-3204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+3934
-3204
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DigitalTwins")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.2")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.2")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+

src/DigitalTwins/DigitalTwins.Autorest/README.md

Lines changed: 9 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -37,51 +37,36 @@ module-version: 0.3.0
3737
title: DigitalTwins
3838
subject-prefix: $(service-name)
3939

40-
identity-correction-for-post: true
41-
resourcegroup-append: true
42-
nested-object-to-string: true
43-
44-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
45-
use-extension:
46-
"@autorest/powershell": "3.x"
47-
4840
directive:
4941
- where:
5042
subject: DigitalTwin
5143
set:
5244
subject: Instance
53-
- where:
54-
subject: DigitalTwinEndpoint
55-
set:
56-
subject: Endpoint
5745
- where:
5846
subject: DigitalTwinNameAvailability
5947
set:
6048
subject: InstanceNameAvailability
6149
- where:
6250
verb: Set
63-
hide: true
51+
remove: true
6452

6553
- where:
6654
subject: Instance
67-
variant: ^Create$|^CreateViaIdentity$
55+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
6856
remove: true
69-
7057
- where:
71-
subject: PrivateEndpointConnection
72-
variant: ^Create$|^CreateViaIdentity$
58+
variant: ^(Check)(?!.*?(Expanded|JsonFilePath|JsonString))
7359
remove: true
74-
7560
- where:
76-
variant: ^Update$|^UpdateViaIdentity$|^Check$|^CheckViaIdentity$
61+
variant: ^CreateViaIdentityExpanded$
7762
remove: true
7863

7964
- where:
80-
verb: New
81-
subject: Endpoint
65+
verb: New|Update
66+
subject: DigitalTwinsEndpoint
8267
hide: true
8368
- where:
84-
verb: New
69+
verb: New|Update
8570
subject: TimeSeriesDatabaseConnection
8671
hide: true
8772

@@ -94,6 +79,7 @@ directive:
9479
- EndpointType
9580
- AuthenticationType
9681
- ResourceGroupName
82+
9783
- where:
9884
model-name: DigitalTwinsDescription
9985
set:
@@ -102,23 +88,7 @@ directive:
10288
- Name
10389
- Location
10490
- ResourceGroupName
105-
- where:
106-
model-name: PrivateEndpointConnection
107-
set:
108-
format-table:
109-
properties:
110-
- Name
111-
- GroupId
112-
- PrivateLinkServiceConnectionStateStatus
113-
- ResourceGroupName
114-
- where:
115-
model-name: GroupIdInformation
116-
set:
117-
format-table:
118-
properties:
119-
- GroupId
120-
- Name
121-
- ResourceGroupName
91+
12292
- where:
12393
model-name: TimeSeriesDatabaseConnection
12494
set:
@@ -128,12 +98,4 @@ directive:
12898
- ConnectionType
12999
- ProvisioningState
130100
- ResourceGroupName
131-
132-
- from: source-file-csharp
133-
where: $
134-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResourceProperties Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResourceProperties Property');
135-
136-
- from: source-file-csharp
137-
where: $
138-
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnectionProperties Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnectionProperties Property');
139101
```

src/DigitalTwins/DigitalTwins.Autorest/UX/Microsoft.DigitalTwins/digitalTwinsInstances-privateEndpointConnections.json

Lines changed: 0 additions & 95 deletions
This file was deleted.

src/DigitalTwins/DigitalTwins.Autorest/UX/Microsoft.DigitalTwins/digitalTwinsInstances-privateLinkResources.json

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)