Skip to content

[Az.DigitalTwins] Update generation tool version: autorest.powershell v3->v4 #27899

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

Merged
merged 6 commits into from
Jun 12, 2025
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
27 changes: 27 additions & 0 deletions src/DigitalTwins/DigitalTwins.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DigitalTwins")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.2")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.2")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]

56 changes: 9 additions & 47 deletions src/DigitalTwins/DigitalTwins.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,51 +37,36 @@ module-version: 0.3.0
title: DigitalTwins
subject-prefix: $(service-name)

identity-correction-for-post: true
resourcegroup-append: true
nested-object-to-string: true

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"

directive:
- where:
subject: DigitalTwin
set:
subject: Instance
- where:
subject: DigitalTwinEndpoint
set:
subject: Endpoint
- where:
subject: DigitalTwinNameAvailability
set:
subject: InstanceNameAvailability
- where:
verb: Set
hide: true
remove: true

- where:
subject: Instance
variant: ^Create$|^CreateViaIdentity$
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true

- where:
subject: PrivateEndpointConnection
variant: ^Create$|^CreateViaIdentity$
variant: ^(Check)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true

- where:
variant: ^Update$|^UpdateViaIdentity$|^Check$|^CheckViaIdentity$
variant: ^CreateViaIdentityExpanded$
remove: true

- where:
verb: New
subject: Endpoint
verb: New|Update
subject: DigitalTwinsEndpoint
hide: true
- where:
verb: New
verb: New|Update
subject: TimeSeriesDatabaseConnection
hide: true

Expand All @@ -94,6 +79,7 @@ directive:
- EndpointType
- AuthenticationType
- ResourceGroupName

- where:
model-name: DigitalTwinsDescription
set:
Expand All @@ -102,23 +88,7 @@ directive:
- Name
- Location
- ResourceGroupName
- where:
model-name: PrivateEndpointConnection
set:
format-table:
properties:
- Name
- GroupId
- PrivateLinkServiceConnectionStateStatus
- ResourceGroupName
- where:
model-name: GroupIdInformation
set:
format-table:
properties:
- GroupId
- Name
- ResourceGroupName

- where:
model-name: TimeSeriesDatabaseConnection
set:
Expand All @@ -128,12 +98,4 @@ directive:
- ConnectionType
- ProvisioningState
- ResourceGroupName

- from: source-file-csharp
where: $
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResourceProperties Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResourceProperties Property');

- from: source-file-csharp
where: $
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnectionProperties Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnectionProperties Property');
```

This file was deleted.

This file was deleted.

Loading