Azure / Azure/autorest.cli

[MM] issues encountered when generating SpringCloud terraform codes

Open
#65 0 comments 0 reactions 1 assignee Claimed by @chunyu3 View on GitHub
Dominant language
TypeScript
Stars
8
Forks
18
PR merge metrics
No merged PRs in 30d

Description

using file: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/appplatform.json

# issue 1
it generates
```
client := meta.(*ArmClient).servicesClient
```

however, it should like this
```
client := meta.(*ArmClient).AppPlatform.ServicesClient
```

# issue 2
```
'serviceName': !ruby/object:Api::Azure::SDKTypeDefinition::StringObject
id_portion: Spring
go_variable_name: name
```
attribute `serviceName` and `name` generates two attribute `name` in terraform codes

# issue 3
attribute `config_server_properties` should be flattened

# issue 4
generation code `Uri` is not consistent with go sdk model attribute `URI`

# issue 5
generation code
```
resource := appplatform.ServiceResource{
ClusterResourceProperties: ....
}
```

however, in go sdk model, the attribute is `Properties` but not `ClusterResourceProperties`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.