Skip to content

sdk, tspconfig / client.tsp for vmware #29308

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
3e2bad2
java, tspconfig for vmware
weidongxu-microsoft Jun 4, 2024
2e5b359
client.tsp
weidongxu-microsoft Jun 4, 2024
c6295ba
fix service-dir
weidongxu-microsoft Jun 4, 2024
8a61801
flatten
weidongxu-microsoft Jun 4, 2024
80423b0
rename
weidongxu-microsoft Jun 4, 2024
2c5e0e8
rename
weidongxu-microsoft Jun 4, 2024
2c6e8e8
suppress
weidongxu-microsoft Jun 4, 2024
b5afded
format
weidongxu-microsoft Jun 4, 2024
ce474e2
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft Jun 4, 2024
abcc864
rename
weidongxu-microsoft Jun 4, 2024
1826d34
format
weidongxu-microsoft Jun 4, 2024
08ad783
use friendlyName
weidongxu-microsoft Jun 4, 2024
0d0fe2a
remove java
weidongxu-microsoft Jun 4, 2024
fd8bc65
format
weidongxu-microsoft Jun 4, 2024
1adc195
rename
weidongxu-microsoft Jun 4, 2024
3b5fb15
flatten
weidongxu-microsoft Jun 4, 2024
3c4baa7
suppress
weidongxu-microsoft Jun 4, 2024
9d8942e
Update tspconfig.yaml
msyyc Jun 4, 2024
a17ecba
update
weidongxu-microsoft Jun 5, 2024
aee5dd1
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft Jun 5, 2024
0d74042
format
weidongxu-microsoft Jun 5, 2024
3f33367
update
weidongxu-microsoft Jun 5, 2024
1418642
limit rename of Id/Ip to java
weidongxu-microsoft Jun 5, 2024
6db531b
Update client.tsp
msyyc Jun 14, 2024
82782dc
Merge branch 'main' into java_tsp-conf_vmware
msyyc Jun 19, 2024
0bd5487
Update client.tsp
msyyc Jun 19, 2024
866aa77
Update client.tsp
msyyc Jun 20, 2024
f618ec7
Merge branch 'main' into java_tsp-conf_vmware
msyyc Jun 20, 2024
bfb56fe
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft Jun 20, 2024
cedbb38
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft Jul 22, 2024
5db81e0
remove op rename
weidongxu-microsoft Jul 22, 2024
12f22a2
Update tspconfig.yaml
msyyc Jul 22, 2024
6fbd918
use ArmLroLocationHeader
weidongxu-microsoft Jul 22, 2024
6df5e07
Merge branch 'java_tsp-conf_vmware' of https://github.com/weidongxu-m…
weidongxu-microsoft Jul 22, 2024
7d8d07c
Merge branch 'main' into java_tsp-conf_vmware
msyyc Jul 22, 2024
4cd2134
Update tspconfig.yaml
msyyc Jul 22, 2024
c530ebf
operation groups
weidongxu-microsoft Jul 23, 2024
8c405e8
temporary disable rename to ResourceIdentityType
weidongxu-microsoft Jul 23, 2024
a434707
add client
weidongxu-microsoft Jul 23, 2024
487745a
add missing og
weidongxu-microsoft Jul 23, 2024
0843a19
python client name
weidongxu-microsoft Jul 23, 2024
d0a7cd8
remove tag
weidongxu-microsoft Jul 23, 2024
ffd9019
fix
weidongxu-microsoft Jul 23, 2024
5ac4ef3
naming for java
weidongxu-microsoft Jul 23, 2024
7dcc0aa
flatten
weidongxu-microsoft Jul 24, 2024
a191627
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft Aug 27, 2024
9b70801
Revert "fix"
weidongxu-microsoft Aug 27, 2024
c532d81
Revert "remove tag"
weidongxu-microsoft Aug 27, 2024
b034e82
fix client.tsp
weidongxu-microsoft Aug 27, 2024
fcf7f36
fix tspconfig
weidongxu-microsoft Aug 27, 2024
b3549ce
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft Aug 27, 2024
3a77cf7
try autoRouteForSingleton
weidongxu-microsoft Aug 28, 2024
07aac9f
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft Dec 20, 2024
2884ecd
ArmLroLocationHeader
weidongxu-microsoft Dec 20, 2024
5c7d36f
remove autoRouteForSingleton
weidongxu-microsoft Dec 20, 2024
2e3b511
format
weidongxu-microsoft Dec 20, 2024
50b61ec
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft Jan 6, 2025
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
325 changes: 323 additions & 2 deletions specification/vmware/Microsoft.AVS.Management/client.tsp
Original file line number Diff line number Diff line change
@@ -1,9 +1,330 @@
import "./main.tsp";
import "@azure-tools/typespec-client-generator-core";
import "@azure-tools/typespec-azure-resource-manager";

import "./main.tsp";

using TypeSpec.Versioning;
using Azure.ClientGenerator.Core;
using Azure.ResourceManager.CommonTypes;
using Microsoft.AVS;

@client(
{
name: "AvsClient",
service: Microsoft.AVS,
},
"java,csharp,javascript,go"
)
@client(
{
name: "AVSClient",
service: Microsoft.AVS,
},
"python"
)
@useDependency(Microsoft.AVS.Versions.v2023_09_01)
namespace Customization;

@@clientName(Microsoft.AVS, "AzureVMwareSolutionAPI", "javascript");
@@clientName(Microsoft.AVS, "AVS", "python");

// operation group per interface
#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface Operations extends Microsoft.AVS.Operations {}

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface Locations extends Microsoft.AVS.Locations {}

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface PrivateClouds extends Microsoft.AVS.PrivateClouds {}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, every operationGroup was added.

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface Clusters extends Microsoft.AVS.Clusters {}

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface Datastores extends Microsoft.AVS.Datastores {}

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface HcxEnterpriseSites extends Microsoft.AVS.HcxEnterpriseSites {}

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface Authorizations extends Microsoft.AVS.Authorizations {}

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface GlobalReachConnections extends Microsoft.AVS.GlobalReachConnections {}

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface CloudLinks extends Microsoft.AVS.CloudLinks {}

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface Addons extends Microsoft.AVS.Addons {}

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface VirtualMachines extends Microsoft.AVS.VirtualMachines {}

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface PlacementPolicies extends Microsoft.AVS.PlacementPolicies {}

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface ScriptPackages extends Microsoft.AVS.ScriptPackages {}

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface ScriptCmdlets extends Microsoft.AVS.ScriptCmdlets {}

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface ScriptExecutions extends Microsoft.AVS.ScriptExecutions {}

#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "operationGroup"
@operationGroup
interface IscsiPaths extends Microsoft.AVS.IscsiPaths {}

// group multiple interfaces into single operation group
#suppress "@azure-tools/typespec-client-generator-core/client-service" "operationGroup"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator"
#suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation"
@operationGroup
interface WorkloadNetworks {
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
list is Microsoft.AVS.WorkloadNetworks.list;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
get is Microsoft.AVS.WorkloadNetworks.get;

#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
@clientName("listSegments")
listSegments is Microsoft.AVS.WorkloadNetworkSegments.list;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
@clientName("getSegment")
getSegment is Microsoft.AVS.WorkloadNetworkSegments.get;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/invalid-final-state" "MUST CHANGE ON NEXT UPDATE"
@clientName("createSegment")
createSegment is Microsoft.AVS.WorkloadNetworkSegments.create;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
@clientName("updateSegment")
updateSegment is Microsoft.AVS.WorkloadNetworkSegments.update;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes"
@clientName("deleteSegment")
deleteSegment is Microsoft.AVS.WorkloadNetworkSegments.deleteSegment;

#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
listDhcp is Microsoft.AVS.WorkloadNetworkDhcpConfigurations.list;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation"
getDhcp is Microsoft.AVS.WorkloadNetworkDhcpConfigurations.get;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/invalid-final-state" "MUST CHANGE ON NEXT UPDATE"
createDhcp is Microsoft.AVS.WorkloadNetworkDhcpConfigurations.create;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
updateDhcp is Microsoft.AVS.WorkloadNetworkDhcpConfigurations.update;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes"
deleteDhcp is Microsoft.AVS.WorkloadNetworkDhcpConfigurations.delete;

#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
listGateways is Microsoft.AVS.WorkloadNetworkGateways.list;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
getGateway is Microsoft.AVS.WorkloadNetworkGateways.get;

#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
listPortMirroring is Microsoft.AVS.WorkloadNetworkPortMirroringProfiles.list;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
getPortMirroring is Microsoft.AVS.WorkloadNetworkPortMirroringProfiles.get;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/invalid-final-state" "MUST CHANGE ON NEXT UPDATE"
createPortMirroring is Microsoft.AVS.WorkloadNetworkPortMirroringProfiles.create;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
updatePortMirroring is Microsoft.AVS.WorkloadNetworkPortMirroringProfiles.update;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation"
deletePortMirroring is Microsoft.AVS.WorkloadNetworkPortMirroringProfiles.delete;

#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/casing-style" "Can not change existing operationId."
listVMGroups is Microsoft.AVS.WorkloadNetworkVmGroups.list;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/casing-style" "Can not change existing operationId."
getVMGroup is Microsoft.AVS.WorkloadNetworkVmGroups.get;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/casing-style" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/invalid-final-state" "MUST CHANGE ON NEXT UPDATE"
createVMGroup is Microsoft.AVS.WorkloadNetworkVmGroups.create;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/casing-style" "Can not change existing operationId."
updateVMGroup is Microsoft.AVS.WorkloadNetworkVmGroups.update;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/casing-style" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation"
deleteVMGroup is Microsoft.AVS.WorkloadNetworkVmGroups.delete;

#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
listVirtualMachines is Microsoft.AVS.WorkloadNetworkVirtualMachines.list;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
getVirtualMachine is Microsoft.AVS.WorkloadNetworkVirtualMachines.get;

#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
listDnsServices is Microsoft.AVS.WorkloadNetworkDnsServices.list;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
getDnsService is Microsoft.AVS.WorkloadNetworkDnsServices.get;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/invalid-final-state" "MUST CHANGE ON NEXT UPDATE"
createDnsService is Microsoft.AVS.WorkloadNetworkDnsServices.create;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
updateDnsService is Microsoft.AVS.WorkloadNetworkDnsServices.update;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation"
deleteDnsService is Microsoft.AVS.WorkloadNetworkDnsServices.delete;

#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
listDnsZones is Microsoft.AVS.WorkloadNetworkDnsZones.list;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
getDnsZone is Microsoft.AVS.WorkloadNetworkDnsZones.get;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/invalid-final-state" "MUST CHANGE ON NEXT UPDATE"
createDnsZone is Microsoft.AVS.WorkloadNetworkDnsZones.create;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
updateDnsZone is Microsoft.AVS.WorkloadNetworkDnsZones.update;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation"
deleteDnsZone is Microsoft.AVS.WorkloadNetworkDnsZones.delete;

#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/casing-style" "Can not change existing operationId."
@clientName("listPublicIps", "java")
listPublicIPs is Microsoft.AVS.WorkloadNetworkPublicIps.list;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/casing-style" "Can not change existing operationId."
@clientName("getPublicIp", "java")
getPublicIP is Microsoft.AVS.WorkloadNetworkPublicIps.get;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/casing-style" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/invalid-final-state" "MUST CHANGE ON NEXT UPDATE"
@clientName("createPublicIp", "java")
createPublicIP is Microsoft.AVS.WorkloadNetworkPublicIps.create;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-core/casing-style" "Can not change existing operationId."
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation"
@clientName("deletePublicIp", "java")
deletePublicIP is Microsoft.AVS.WorkloadNetworkPublicIps.delete;
}

// flatten
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(Azure.ResourceManager.TrackedResource.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should just turn on flattening for the spec rather than having all of these.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume the flattening on the spec only apply to the Swagger output? Does it add @flattenProperty decorate (which is the only one recognized by TCGC).

@@flattenProperty(Azure.ResourceManager.Foundations.ResourceUpdateModel.properties
);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(Azure.ResourceManager.Foundations.ProxyResourceUpdateModel.properties
);

#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(Location.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(Cluster.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(Datastore.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(HcxEnterpriseSite.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(ExpressRouteAuthorization.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(GlobalReachConnection.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(WorkloadNetwork.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(WorkloadNetworkSegment.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(WorkloadNetworkGateway.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(WorkloadNetworkPortMirroring.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(WorkloadNetworkVMGroup.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(WorkloadNetworkVirtualMachine.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(WorkloadNetworkDnsService.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(WorkloadNetworkDnsZone.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(WorkloadNetworkPublicIP.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(CloudLink.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(VirtualMachine.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(ScriptPackage.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(ScriptCmdlet.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(ScriptExecution.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(IscsiPath.properties);

#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(PrivateCloudUpdate.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(ClusterUpdate.properties);
#suppress "deprecated" "property flatten for SDK backward compatibility"
@@flattenProperty(PlacementPolicyUpdate.properties);

// model
@@clientName(Azure.ResourceManager.CommonTypes.SystemAssignedServiceIdentity,
"PrivateCloudIdentity"
);
// name conflict with Azure.ResourceManager.CommonTypes.ResourceIdentityType
// @@clientName(Azure.ResourceManager.CommonTypes.SystemAssignedServiceIdentityType,
// "ResourceIdentityType"
// );

@@clientName(VmVmPlacementPolicyProperties, "VmPlacementPolicyProperties");
@@clientName(WorkloadNetworkPublicIP, "WorkloadNetworkPublicIp", "java");
@@clientName(WorkloadNetworkPublicIPProvisioningState,
"WorkloadNetworkPublicIpProvisioningState",
"java"
);

// property
@@clientName(Circuit.expressRouteID, "expressRouteId", "java");
@@clientName(Circuit.expressRoutePrivatePeeringID,
"expressRoutePrivatePeeringId",
"java"
);
@@clientName(WorkloadNetworkPublicIPProperties,
"WorkloadNetworkPublicIpProperties",
"java"
);
@@clientName(WorkloadNetworkPublicIPProperties.publicIPBlock,
"publicIpBlock",
"java"
);
2 changes: 1 addition & 1 deletion specification/vmware/Microsoft.AVS.Management/clusters.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ interface Clusters {
...CreatedResponse;

...Azure.Core.Foundations.RetryAfterHeader;
...LocationHeader;
...ArmLroLocationHeader;

@bodyRoot
@doc("The updated cluster.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ interface PlacementPolicies {
): ArmResponse<PlacementPolicy> | {
...AcceptedResponse;
...Azure.Core.Foundations.RetryAfterHeader;
...LocationHeader;
...ArmLroLocationHeader;

@bodyRoot
@doc("The updatd placement policy.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ interface PrivateClouds {
...CreatedResponse;

...Azure.Core.Foundations.RetryAfterHeader;
...LocationHeader;
...ArmLroLocationHeader;

@bodyRoot
@doc("The updated private cloud.")
Expand Down
Loading
Loading