-
Notifications
You must be signed in to change notification settings - Fork 85
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
API wrapper generator changes for VPC #1221
Conversation
/test-all |
/test-all |
c6bac15
to
6ea23e2
Compare
/test-all |
nsxt/utils.go
Outdated
elemSchema["vpc_id"] = &schema.Schema{ | ||
Type: schema.TypeString, | ||
Description: "Id of the VPC which the resource belongs to.", | ||
Optional: true, |
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.
For VPC-specific resources, vpc_id
should be required, is that correct? Should this helper be able to return schema with required vpc_id
?
Add VPC to context and handle it accordingly in tests and wrappers. Signed-off-by: Kobi Samoray <[email protected]>
/test-all |
@@ -986,7 +989,6 @@ | |||
- New | |||
- Get | |||
- Delete | |||
- List |
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.
Was this removed intentionally or accidentally?
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.
This was specified twice within that object (line 992) - it's a bug. That failed the generator (probably added at some point by mistake without running the generator).
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.
Got it I did not see the duplicatin
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.
LGTM, let's start getting this in.
Add VPC to context and handle it accordingly in tests and wrappers.