Skip to content

Commit 3f0b2aa

Browse files
authored
Remove inheritance relation of AccountUpdateOptions to InstanceUpdateOptions (Azure#27038)
1 parent da5b63c commit 3f0b2aa

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/api/Azure.ResourceManager.DeviceUpdate.netstandard2.0.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,12 @@ public ConnectionDetails() { }
300300
public static bool operator !=(Azure.ResourceManager.DeviceUpdate.Models.CreatedByType left, Azure.ResourceManager.DeviceUpdate.Models.CreatedByType right) { throw null; }
301301
public override string ToString() { throw null; }
302302
}
303-
public partial class DeviceUpdateAccountUpdateOptions : Azure.ResourceManager.DeviceUpdate.Models.DeviceUpdateInstanceUpdateOptions
303+
public partial class DeviceUpdateAccountUpdateOptions
304304
{
305305
public DeviceUpdateAccountUpdateOptions() { }
306306
public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } }
307307
public string Location { get { throw null; } set { } }
308+
public System.Collections.Generic.IDictionary<string, string> Tags { get { throw null; } }
308309
}
309310
public partial class DeviceUpdateInstanceUpdateOptions
310311
{

sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountUpdateOptions.cs

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/autorest.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,17 @@ directive:
2929
transform: $['x-ms-client-name'] = 'privateIPAddress'
3030
- remove-operation: Accounts_Head # Not supported yet
3131
- remove-operation: Instances_Head # Not supported yet
32-
- rename-model:
33-
from: AccountUpdate
34-
to: DeviceUpdateAccountUpdateOptions
35-
- rename-model:
36-
from: TagUpdate
37-
to: TagUpdateOptions
32+
- from: swagger-document
33+
where: $.definitions.AccountUpdate
34+
transform: delete $['allOf']
35+
- from: swagger-document
36+
where: $.definitions.AccountUpdate.properties
37+
transform: >
38+
$['tags'] = {
39+
"type": "object",
40+
"description": "List of key value pairs that describe the resource. This will overwrite the existing tags.",
41+
"additionalProperties": {
42+
"type": "string"
43+
}
44+
}
3845
```

0 commit comments

Comments
 (0)