Skip to content

Generator: Update SDK /services/iaas#8613

Open
stackit-pipeline wants to merge 2 commits into
mainfrom
oas-bot-29342540531/iaas
Open

Generator: Update SDK /services/iaas#8613
stackit-pipeline wants to merge 2 commits into
mainfrom
oas-bot-29342540531/iaas

Conversation

@stackit-pipeline

Copy link
Copy Markdown
Contributor

Generated from GitHub run 29342540531
spec comparison: stackitcloud/stackit-api-specifications@2215407...f05986b

)

const (
CreateSuccess = "CREATED"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we still need these or can we use the generated enum values from the SDK?

}
if i.VPCNetworkRangeIPv4 != nil {
if i.VPCNetworkRangeIPv4.Status == nil {
return "", errors.New("status is missing in response")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
return "", errors.New("status is missing in response")
return "", errors.New("ipv4 status is missing in response")

}
if i.VPCNetworkRangeIPv6 != nil {
if i.VPCNetworkRangeIPv6.Status == nil {
return "", errors.New("status is missing in response")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
return "", errors.New("status is missing in response")
return "", errors.New("ipv6 status is missing in response")

}
if i.VPCNetworkRangeIPv4 != nil {
if i.VPCNetworkRangeIPv4.Status == nil {
return "", errors.New("status is missing in response")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
return "", errors.New("status is missing in response")
return "", errors.New("ipv4 status is missing in response")

Same here. Maybe it would make sense to define a own private function to to get the VPC Network range state which you can re-use in the createOrUpdateNetworkRangeWaitHandler and the DeleteVPCNetworkRangeWaitHandler implementations. It's currently duplicated logic.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You could in theory do the same for the VPC Region wait handlers. But that's really just a nitpick, do it as you want m8 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants