-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Weidong Xu (weidongxu-microsoft)
wants to merge
57
commits into
Azure:main
from
weidongxu-microsoft:java_tsp-conf_vmware
Closed
Changes from 45 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
3e2bad2
java, tspconfig for vmware
weidongxu-microsoft 2e5b359
client.tsp
weidongxu-microsoft c6295ba
fix service-dir
weidongxu-microsoft 8a61801
flatten
weidongxu-microsoft 80423b0
rename
weidongxu-microsoft 2c5e0e8
rename
weidongxu-microsoft 2c6e8e8
suppress
weidongxu-microsoft b5afded
format
weidongxu-microsoft ce474e2
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft abcc864
rename
weidongxu-microsoft 1826d34
format
weidongxu-microsoft 08ad783
use friendlyName
weidongxu-microsoft 0d0fe2a
remove java
weidongxu-microsoft fd8bc65
format
weidongxu-microsoft 1adc195
rename
weidongxu-microsoft 3b5fb15
flatten
weidongxu-microsoft 3c4baa7
suppress
weidongxu-microsoft 9d8942e
Update tspconfig.yaml
msyyc a17ecba
update
weidongxu-microsoft aee5dd1
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft 0d74042
format
weidongxu-microsoft 3f33367
update
weidongxu-microsoft 1418642
limit rename of Id/Ip to java
weidongxu-microsoft 6db531b
Update client.tsp
msyyc 82782dc
Merge branch 'main' into java_tsp-conf_vmware
msyyc 0bd5487
Update client.tsp
msyyc 866aa77
Update client.tsp
msyyc f618ec7
Merge branch 'main' into java_tsp-conf_vmware
msyyc bfb56fe
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft cedbb38
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft 5db81e0
remove op rename
weidongxu-microsoft 12f22a2
Update tspconfig.yaml
msyyc 6fbd918
use ArmLroLocationHeader
weidongxu-microsoft 6df5e07
Merge branch 'java_tsp-conf_vmware' of https://github.com/weidongxu-m…
weidongxu-microsoft 7d8d07c
Merge branch 'main' into java_tsp-conf_vmware
msyyc 4cd2134
Update tspconfig.yaml
msyyc c530ebf
operation groups
weidongxu-microsoft 8c405e8
temporary disable rename to ResourceIdentityType
weidongxu-microsoft a434707
add client
weidongxu-microsoft 487745a
add missing og
weidongxu-microsoft 0843a19
python client name
weidongxu-microsoft d0a7cd8
remove tag
weidongxu-microsoft ffd9019
fix
weidongxu-microsoft 5ac4ef3
naming for java
weidongxu-microsoft 7dcc0aa
flatten
weidongxu-microsoft a191627
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft 9b70801
Revert "fix"
weidongxu-microsoft c532d81
Revert "remove tag"
weidongxu-microsoft b034e82
fix client.tsp
weidongxu-microsoft fcf7f36
fix tspconfig
weidongxu-microsoft b3549ce
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft 3a77cf7
try autoRouteForSingleton
weidongxu-microsoft 07aac9f
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft 2884ecd
ArmLroLocationHeader
weidongxu-microsoft 5c7d36f
remove autoRouteForSingleton
weidongxu-microsoft 2e3b511
format
weidongxu-microsoft 50b61ec
Merge branch 'main' into java_tsp-conf_vmware
weidongxu-microsoft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
105 changes: 105 additions & 0 deletions
105
specification/vmware/Microsoft.AVS.Management/client.tsp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| import "@azure-tools/typespec-client-generator-core"; | ||
| import "@azure-tools/typespec-azure-resource-manager"; | ||
|
|
||
| import "./main.tsp"; | ||
|
|
||
| using Azure.ClientGenerator.Core; | ||
| using Microsoft.AVS; | ||
|
|
||
| // flatten | ||
| #suppress "deprecated" "property flatten for SDK backward compatibility" | ||
| @@flattenProperty(Azure.ResourceManager.TrackedResource.properties); | ||
| #suppress "deprecated" "property flatten for SDK backward compatibility" | ||
| @@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(WorkloadNetworkDhcp.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); | ||
|
|
||
| // operation | ||
| @@clientName(WorkloadNetworks.getPublicIP, "getPublicIp", "java"); | ||
| @@clientName(WorkloadNetworks.createPublicIP, "createPublicIp", "java"); | ||
| @@clientName(WorkloadNetworks.deletePublicIP, "deletePublicIp", "java"); | ||
|
|
||
| // 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" | ||
| ); | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
@flattenPropertydecorate (which is the only one recognized by TCGC).