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

feat: update vmware service #5926

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

sanket-ibm
Copy link

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Output from acceptance testing:

=== RUN   TestAccIbmVmaasVdcDataSourceBasic
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the ready_to_use state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is deleted.
--- PASS: TestAccIbmVmaasVdcDataSourceBasic (1449.58s)


=== RUN   TestAccIbmVmaasVdcDataSourceAllArgs
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the ready_to_use state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is deleted.
--- PASS: TestAccIbmVmaasVdcDataSourceAllArgs (1425.18s)
PASS
ok  	github.com/IBM-Cloud/terraform-provider-ibm/terraform-provider-ibm/ibm/service/vmware	1425.196s
=== RUN   TestAccIbmVmaasVdcBasic
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the ready_to_use state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is deleted.
--- PASS: TestAccIbmVmaasVdcBasic (1452.41s)
PASS
ok  	github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/vmware	1452.512s


=== RUN   TestAccIbmVmaasVdcAllArgs
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the creating state ....
The vdc is currently in the ready_to_use state ....
The vdc is currently in the modifying state ....
The vdc is currently in the modifying state ....
The vdc is currently in the modifying state ....
The vdc is currently in the modifying state ....
The vdc is currently in the modifying state ....
The vdc is currently in the modifying state ....
The vdc is currently in the modifying state ....
The vdc is currently in the ready_to_use state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is currently in the deleting state ....
The vdc is deleted.
--- PASS: TestAccIbmVmaasVdcAllArgs (1562.17s)
PASS
ok  	github.com/IBM-Cloud/terraform-provider-ibm/terraform-provider-ibm/ibm/service/vmware	1562.191s

vmwareURL := ContructEndpoint(fmt.Sprintf("api.%s.vmware", c.Region), cloudEndpoint+"/v1")
vmwareClientOptions := &vmwarev1.VmwareV1Options{
Authenticator: authenticator,
URL: EnvFallBack([]string{"VMWARE_URL"}, vmwareURL),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Append IBMCLOUD to VMWARE_URL to keep inline with all other services

@@ -157,6 +161,18 @@ func ResourceIbmVmaasVdc() *schema.Resource {
Description: "The public IP addresses assigned to the edge.",
Elem: &schema.Schema{Type: schema.TypeString},
},
"private_ips": &schema.Schema{
Copy link
Collaborator

Choose a reason for hiding this comment

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

The top attribute "edges" is computed the inner attributes can't be optioanl

Copy link
Collaborator

Choose a reason for hiding this comment

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

Same comment holds for all below changes

@@ -3,7 +3,7 @@ layout: "ibm"
page_title: "IBM : ibm_vmaas_vdc"
description: |-
Get information about vmaas_vdc
subcategory: "VMware as a Service API"
subcategory: "VMware Cloud Foundation as a Service API"
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need this big name for subcategory?
This subcategory is for docs in registy
Screenshot 2025-01-23 at 6 23 11 PM

Copy link
Author

Choose a reason for hiding this comment

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

I'll shorten it to VCF as a Service API

@sanket-ibm sanket-ibm requested a review from hkantare January 24, 2025 05:06
@@ -3,7 +3,7 @@ layout: "ibm"
page_title: "IBM : ibm_vmaas_vdc"
description: |-
Get information about vmaas_vdc
subcategory: "VMware as a Service API"
subcategory: "VCF as a Service API"
Copy link
Collaborator

Choose a reason for hiding this comment

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

why are we renaming from VMware to VCF.
We should rename in subcategory.txt

@sanket-ibm sanket-ibm requested a review from hkantare January 24, 2025 16:25
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.

2 participants