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

Add support for Provider VDCs read functions and upgrade Compute Policies version #502

Merged
merged 17 commits into from
Sep 1, 2022

Conversation

adambarreiro
Copy link
Collaborator

@adambarreiro adambarreiro commented Aug 25, 2022

Description

This PR sets the foundations required for vmware/terraform-provider-vcd#904:

  • Adds retrieval support for Provider VDCs, both "regular" and the "extension". The extension is a superset of attributes not present in "regular" Provider VDC endpoints. In VCD UI, both endpoints are used.
  • Updates VDC Compute Policies retrieval methods AdminVdc.GetAllAssignedVdcComputePolicies and Org.GetAllVdcComputePolicies from OpenAPI v1.0.0 to v2.0.0, this version supports more filtering options like isVgpuPolicy
  • Adds some utility private functions and fixes some typos.

Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro adambarreiro changed the title Init Add support for VM Placement Policies Aug 25, 2022
abarreiro added 10 commits August 25, 2022 12:17
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
fmt
Signed-off-by: abarreiro <abarreiro@vmware.com>
Fix
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro adambarreiro changed the title Add support for VM Placement Policies Add support for Provider VDCs and upgrade Compute Policies version Aug 29, 2022
Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro adambarreiro self-assigned this Aug 29, 2022
abarreiro added 2 commits August 29, 2022 11:20
Signed-off-by: abarreiro <abarreiro@vmware.com>
…ctor into add-placement-policy-support

Signed-off-by: abarreiro <abarreiro@vmware.com>
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

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

It looks great - just a few queries before approval

types/v56/constants.go Show resolved Hide resolved
types/v56/types.go Show resolved Hide resolved
govcd/provider_vdc.go Outdated Show resolved Hide resolved
types/v56/types.go Outdated Show resolved Hide resolved
abarreiro added 3 commits August 29, 2022 14:43
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro
Copy link
Collaborator Author

I removed Vdcs slice from ProviderVdc struct as I confirmed that this field is never populated nor used.

@adambarreiro adambarreiro changed the title Add support for Provider VDCs and upgrade Compute Policies version Add support for Provider VDCs read functions and upgrade Compute Policies version Aug 30, 2022
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

LGTM!

@adambarreiro adambarreiro merged commit 6176f3e into vmware:main Sep 1, 2022
@adambarreiro adambarreiro deleted the add-placement-policy-support branch September 1, 2022 07:56
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.

4 participants