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

Unable to fetch zip file for 39.0 #19

Open
ccouzens opened this issue Dec 30, 2024 · 1 comment
Open

Unable to fetch zip file for 39.0 #19

ccouzens opened this issue Dec 30, 2024 · 1 comment

Comments

@ccouzens
Copy link
Owner

39.0 is available

https://developer.broadcom.com/xapis/vmware-cloud-director-api/39.0/

The link to the documentation zip file goes to https://developer.broadcom.com/xapis/vmware-cloud-director-api/39.0/schema-files.zip/, which is a 404. Without the zip file, I cannot generate the schema for this version.

If you can figure out the location of the zip file, please let me know so I can use it.

@ccouzens
Copy link
Owner Author

I've found it here

https://developer.broadcom.com/xapis/vmware-cloud-director-api/39.0/x-references/

And although the download link seems to change every-time, it does seem reusable

diff --git a/makefile b/makefile
index 61d1df5..ca33556 100644
--- a/makefile
+++ b/makefile
@@ -34,7 +34,8 @@ specs = \
 37.1.yml \
 37.2.yml \
 38.0.yml \
-38.1.yml
+38.1.yml \
+39.0.yml
 
 .PHONY : all
 all : $(specs)
@@ -111,6 +112,10 @@ website/38.1.zip:
        mkdir -p $(dir $@)
        curl https://vdc-repo.vmware.com/vmwb-repository/dcr-public/41315fde-2af1-4ea3-9172-36b7857aa0cd/a627618b-a055-4c39-a044-14daccc6dacc/doc/a627618b-a055-4c39-a044-14daccc6dacc.zip > $@
 
+website/39.0.zip:
+       mkdir -p $(dir $@)
+       curl 'https://dp-downloads.broadcom.com/?file=schema-files.zip&oid=158422&id=AeDOLpUvJ_6lG6S04n9RFjaVcIA-HWTIqAy_axmHXLeY6ibkiyW2b90x_NHVxI0=&specDownload=true&verify=1735554384-rcc5xAHG1dJ0DecmMNFW%2BziWZs3TwK1H8qDDAxH03gQ%3D' > $@
+
 ./%.json: website/%.zip
        (cd transformer; RUST_LOG=transformer=debug cargo run --release) < $< > $@

But, it seems the structure inside the zip file has changed. I think this is where my vcloud journey ends.

Error: specified file not found in archive

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

No branches or pull requests

1 participant