Skip to content
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

Merged
merged 1 commit into from
Jun 11, 2024
Merged

Conversation

ksamoray
Copy link
Collaborator

Add VPC to context and handle it accordingly in tests and wrappers.

@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray
Copy link
Collaborator Author

ksamoray commented Jun 2, 2024

/test-all

@ksamoray ksamoray force-pushed the vpc-api-gen branch 2 times, most recently from c6bac15 to 6ea23e2 Compare June 4, 2024 11:38
@ksamoray
Copy link
Collaborator Author

ksamoray commented Jun 4, 2024

/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,
Copy link
Collaborator

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]>
@ksamoray
Copy link
Collaborator Author

ksamoray commented Jun 5, 2024

/test-all

@@ -986,7 +989,6 @@
- New
- Get
- Delete
- List
Copy link
Member

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?

Copy link
Collaborator Author

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).

Copy link
Member

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

@ksamoray ksamoray requested review from annakhm and salv-orlando June 9, 2024 13:00
Copy link
Member

@salv-orlando salv-orlando left a 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.

@ksamoray ksamoray merged commit 2077922 into vmware:master Jun 11, 2024
8 checks passed
@ksamoray ksamoray deleted the vpc-api-gen branch June 11, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants