Skip to content

Commit 73128fc

Browse files
Add rename rules to all the mgmt RPs (Azure#27664)
* first step of making cosmosdb correct * regenerate cosmosdb * add rules in deviceupdate * add rules to eventhub * update * add new rules to network * add rules to resorucemanager * add rules to resources * add rules to service bus * update rules in sql * add rules to storage * first step of appservice * update appservice * update websubpub * export api * fix cosmosdb * fix storage tests * fix appservice * update template * update
1 parent a18f9d1 commit 73128fc

File tree

92 files changed

+881
-608
lines changed

Some content is hidden

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

92 files changed

+881
-608
lines changed

eng/templates/Azure.ResourceManager.Template/src/autorest.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ output-folder: Generated/
1313
clear-output-folder: true
1414
skip-csproj: true
1515
tagPrefix SwaggerVersionTag
16+
1617
rename-rules:
18+
CPU: Cpu
19+
CPUs: Cpus
1720
Os: OS
1821
Ip: IP
1922
Ips: IPs
@@ -29,6 +32,7 @@ rename-rules:
2932
Ipv4: IPv4
3033
Ipv6: IPv6
3134
Ipsec: IPsec
35+
SSO: Sso
3236
URI: Uri
3337

3438
```

sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/autorest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ skip-csproj: true
1212
no-property-type-replacement: RegenerateKeyOptions
1313
modelerfour:
1414
flatten-payloads: false
15+
1516
rename-rules:
1617
CPU: Cpu
1718
CPUs: Cpus
@@ -32,6 +33,7 @@ rename-rules:
3233
Ipsec: IPsec
3334
SSO: Sso
3435
URI: Uri
36+
3537
directive:
3638
- rename-model:
3739
from: ConfigurationStoreUpdateParameters

sdk/azurestackhci/Azure.ResourceManager.Hci/src/autorest.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,29 @@ require: https://github.com/Azure/azure-rest-api-specs/blob/75b53c0708590483bb21
1212
tag: package-2021-09
1313
output-folder: Generated/
1414
clear-output-folder: true
15+
1516
rename-rules:
17+
CPU: Cpu
18+
CPUs: Cpus
1619
Os: OS
20+
Ip: IP
21+
Ips: IPs
22+
ID: Id
23+
IDs: Ids
24+
VM: Vm
25+
VMs: Vms
26+
Vmos: VmOS
27+
VMScaleSet: VmScaleSet
28+
DNS: Dns
29+
VPN: Vpn
30+
NAT: Nat
31+
WAN: Wan
32+
Ipv4: IPv4
33+
Ipv6: IPv6
34+
Ipsec: IPsec
35+
SSO: Sso
36+
URI: Uri
37+
1738
directive:
1839
- from: extensions.json
1940
where: $.definitions.Extension

sdk/cdn/Azure.ResourceManager.Cdn/src/autorest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ rename-rules:
3030
IDs: Ids
3131
VM: Vm
3232
VMs: Vms
33+
Vmos: VmOS
3334
VMScaleSet: VmScaleSet
3435
DNS: Dns
3536
VPN: Vpn

sdk/communication/Azure.ResourceManager.Communication/src/autorest.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ skip-csproj: true
1212
modelerfour:
1313
flatten-payloads: false
1414
override-operation-name:
15-
CommunicationService_CheckNameAvailability: CheckCommunicationNameAvailability
15+
CommunicationService_CheckNameAvailability: CheckCommunicationNameAvailability
16+
1617
rename-rules:
1718
CPU: Cpu
1819
CPUs: Cpus
@@ -23,6 +24,7 @@ rename-rules:
2324
IDs: Ids
2425
VM: Vm
2526
VMs: Vms
27+
Vmos: VmOS
2628
VMScaleSet: VmScaleSet
2729
DNS: Dns
2830
VPN: Vpn
@@ -33,6 +35,7 @@ rename-rules:
3335
Ipsec: IPsec
3436
SSO: Sso
3537
URI: Uri
38+
3639
directive:
3740
- rename-model:
3841
from: CommunicationServiceResource

sdk/compute/Azure.ResourceManager.Compute/src/autorest.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ skip-csproj: true
1717
output-folder: ./Generated
1818

1919
rename-rules:
20+
CPU: Cpu
21+
CPUs: Cpus
2022
Os: OS
2123
Ip: IP
2224
Ips: IPs
@@ -30,6 +32,11 @@ rename-rules:
3032
VPN: Vpn
3133
NAT: Nat
3234
WAN: Wan
35+
Ipv4: IPv4
36+
Ipv6: IPv6
37+
Ipsec: IPsec
38+
SSO: Sso
39+
URI: Uri
3340

3441
#TODO: remove after we resolve why RestorePoint has no list
3542
list-exception:

sdk/cosmosdb/Azure.ResourceManager.CosmosDB/api/Azure.ResourceManager.CosmosDB.netstandard2.0.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ public DatabaseAccountData(Azure.Core.AzureLocation location) : base (default(Az
442442
public System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.CosmosDB.Models.FailoverPolicy> FailoverPolicies { get { throw null; } }
443443
public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } }
444444
public string InstanceId { get { throw null; } }
445-
public System.Collections.Generic.IList<Azure.ResourceManager.CosmosDB.Models.IpAddressOrRange> IpRules { get { throw null; } }
445+
public System.Collections.Generic.IList<Azure.ResourceManager.CosmosDB.Models.IPAddressOrRange> IPRules { get { throw null; } }
446446
public bool? IsVirtualNetworkFilterEnabled { get { throw null; } set { } }
447447
public System.Uri KeyVaultKeyUri { get { throw null; } set { } }
448448
public Azure.ResourceManager.CosmosDB.Models.DatabaseAccountKind? Kind { get { throw null; } set { } }
@@ -1429,7 +1429,7 @@ public ClusterResourceProperties() { }
14291429
public System.Collections.Generic.IReadOnlyList<Azure.ResourceManager.CosmosDB.Models.Certificate> GossipCertificates { get { throw null; } }
14301430
public int? HoursBetweenBackups { get { throw null; } set { } }
14311431
public string InitialCassandraAdminPassword { get { throw null; } set { } }
1432-
public string PrometheusEndpointIpAddress { get { throw null; } set { } }
1432+
public string PrometheusEndpointIPAddress { get { throw null; } set { } }
14331433
public Azure.ResourceManager.CosmosDB.Models.ManagedCassandraProvisioningState? ProvisioningState { get { throw null; } set { } }
14341434
public bool? RepairEnabled { get { throw null; } set { } }
14351435
public string RestoreFromBackupId { get { throw null; } set { } }
@@ -1456,7 +1456,7 @@ internal ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacenter
14561456
public double? CpuUsage { get { throw null; } }
14571457
public long? DiskFreeKB { get { throw null; } }
14581458
public long? DiskUsedKB { get { throw null; } }
1459-
public string HostID { get { throw null; } }
1459+
public string HostId { get { throw null; } }
14601460
public string Load { get { throw null; } }
14611461
public long? MemoryBuffersAndCachedKB { get { throw null; } }
14621462
public long? MemoryFreeKB { get { throw null; } }
@@ -1667,7 +1667,7 @@ public DatabaseAccountCreateUpdateData(Azure.Core.AzureLocation location, System
16671667
public bool? EnableFreeTier { get { throw null; } set { } }
16681668
public bool? EnableMultipleWriteLocations { get { throw null; } set { } }
16691669
public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } }
1670-
public System.Collections.Generic.IList<Azure.ResourceManager.CosmosDB.Models.IpAddressOrRange> IpRules { get { throw null; } }
1670+
public System.Collections.Generic.IList<Azure.ResourceManager.CosmosDB.Models.IPAddressOrRange> IPRules { get { throw null; } }
16711671
public bool? IsVirtualNetworkFilterEnabled { get { throw null; } set { } }
16721672
public System.Uri KeyVaultKeyUri { get { throw null; } set { } }
16731673
public Azure.ResourceManager.CosmosDB.Models.DatabaseAccountKind? Kind { get { throw null; } set { } }
@@ -1896,10 +1896,10 @@ public IndexingPolicy() { }
18961896
public static bool operator !=(Azure.ResourceManager.CosmosDB.Models.IndexKind left, Azure.ResourceManager.CosmosDB.Models.IndexKind right) { throw null; }
18971897
public override string ToString() { throw null; }
18981898
}
1899-
public partial class IpAddressOrRange
1899+
public partial class IPAddressOrRange
19001900
{
1901-
public IpAddressOrRange() { }
1902-
public string IpAddressOrRangeValue { get { throw null; } set { } }
1901+
public IPAddressOrRange() { }
1902+
public string IPAddressOrRangeValue { get { throw null; } set { } }
19031903
}
19041904
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
19051905
public readonly partial struct KeyKind : System.IEquatable<Azure.ResourceManager.CosmosDB.Models.KeyKind>
@@ -2155,7 +2155,7 @@ public PatchableDatabaseAccountData() { }
21552155
public bool? EnableFreeTier { get { throw null; } set { } }
21562156
public bool? EnableMultipleWriteLocations { get { throw null; } set { } }
21572157
public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } }
2158-
public System.Collections.Generic.IList<Azure.ResourceManager.CosmosDB.Models.IpAddressOrRange> IpRules { get { throw null; } }
2158+
public System.Collections.Generic.IList<Azure.ResourceManager.CosmosDB.Models.IPAddressOrRange> IPRules { get { throw null; } }
21592159
public bool? IsVirtualNetworkFilterEnabled { get { throw null; } set { } }
21602160
public System.Uri KeyVaultKeyUri { get { throw null; } set { } }
21612161
public string Location { get { throw null; } set { } }
@@ -2370,7 +2370,7 @@ public RestoreParameters() { }
23702370
public partial class SeedNode
23712371
{
23722372
public SeedNode() { }
2373-
public string IpAddress { get { throw null; } set { } }
2373+
public string IPAddress { get { throw null; } set { } }
23742374
}
23752375
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
23762376
public readonly partial struct ServerVersion : System.IEquatable<Azure.ResourceManager.CosmosDB.Models.ServerVersion>

sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountData.cs

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

sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ClusterResourceProperties.cs

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

sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacentersItemsPropertiesNodesItems.cs

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

0 commit comments

Comments
 (0)